/* ==========================================================================
   Kisaka information technology consultancy page
   Layout follows ventriloc.ca's data visualization page: a hero whose screen
   bleeds off the right edge, a criteria strip where their partner logos sit,
   a text-and-screen block, a pinned sideways scroller for the seven service
   areas, a statement over three columns, a sticky index beside the AI
   advisory areas, a numbered list and a closing panel.
   Shared type, buttons, breadcrumb, reveals and the sticky index come from
   css/kisaka-advisory.css (the financial management page). The drawings
   come from scripts/make_it_diagrams.py; motion lives in js/kisaka-it.js.
   ========================================================================== */

/* --adv-muted is darkened here so small grey text clears 4.5:1 on cream,
   white and the warm panels. */
.kisaka-it-page
   {
      --adv-muted: #6b6064;
      --it-panel: #e9e5df;
      --it-deep: var(--adv-red-deep);
      --it-warm: var(--adv-panel-warm);
      --it-cream: #f5f3f0;
      --it-cream-soft: rgba(245, 243, 240, 0.68);
   }

/* ===== Screens =====
   Each drawing sits on paper like a window. Inside a coloured panel it is
   pushed in from the top-left and runs off the far edges, as Ventriloc's
   screens do. */
.kisaka-it .it-screen
   {
      padding: 0;
      border-radius: 12px;
      box-shadow: 0 0 0 1px rgba(31, 31, 29, 0.06), 0 24px 60px -16px rgba(82, 26, 34, 0.16);
   }

.kisaka-it .it-screen .adv-diagram
   {
      border-radius: inherit;
   }

/* Small label on a panel, in place of Ventriloc's "this animation is
   interactive" chip. Says plainly that the screen is an illustration. */
.it-chip
   {
      position: absolute;
      z-index: 2;
      top: 20px;
      left: 20px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px 6px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.78);
      -webkit-backdrop-filter: blur(6px);
      backdrop-filter: blur(6px);
      font-size: 12px;
      line-height: 1.2;
      color: var(--adv-body);
   }

.it-chip::before
   {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--adv-red);
   }

/* Inside the padded feature panels the chip sits above the paper. */
.it-feature__media .it-chip
   {
      position: static;
      margin-bottom: 16px;
   }

/* ===== Hero ===== */
.it-hero
   {
      position: relative;
      overflow: hidden;
   }

/* .adv-hero's padding shorthand would wipe the shell's side gutters. */
.adv-hero.it-hero__grid
   {
      display: flex;
      align-items: center;
      min-height: min(100svh, 1000px);
      padding-left: var(--adv-gutter);
      padding-right: var(--adv-gutter);
   }

.it-hero__copy
   {
      position: relative;
      z-index: 1;
      width: 46%;
      max-width: 580px;
   }

.kisaka-adv .it-hero__title
   {
      max-width: 18ch;
      text-wrap: balance;
   }

.kisaka-adv .it-hero__lead
   {
      max-width: 480px;
      margin-top: 28px;
      font-size: 18px;
      color: var(--adv-body);
   }

.it-hero__media
   {
      position: absolute;
      top: calc(var(--kisaka-header-h, 72px) + 24px);
      right: 0;
      bottom: 0;
      width: 49vw;
      overflow: hidden;
      background: var(--it-panel);
   }

.kisaka-it .it-hero__screen
   {
      position: absolute;
      top: 12%;
      left: 12%;
      width: max(640px, 100%);
   }

/* ===== Criteria strip =====
   A ruled sheet in the drawings' hand: a tick ruler across the top, a
   hairline between each standard, and the acronym set large like a mark.
   On arrival the ruler draws left to right, the dividers drop, then the
   marks rise one after another. */
.it-criteria
   {
      padding: clamp(64px, 8vw, 112px) 0 0;
   }

.it-criteria__head
   {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 14px;
   }

.kisaka-adv .it-criteria__label
   {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      font-weight: 500;
      line-height: 1.4;
      color: var(--adv-ink);
   }

.kisaka-adv .it-criteria__label::before
   {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--adv-red);
   }

.it-criteria__count,
.it-criteria__no
   {
      font-family: var(--kisaka-font-accent), 'Google Sans Flex', sans-serif;
      font-size: 12px;
      font-weight: 500;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.04em;
      color: var(--adv-muted);
   }

.it-criteria__list
   {
      position: relative;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      padding-top: 12px;
      border-bottom: 1px solid var(--adv-line-strong);
   }

/* Ruler: a full line, minor ticks every 8px and a major tick every 64px. */
.it-criteria__list::before
   {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 12px;
      background:
         linear-gradient(var(--adv-ink), var(--adv-ink)) top left / 100% 1px no-repeat,
         repeating-linear-gradient(90deg, var(--adv-faint) 0 1px, transparent 1px 64px) top left / 100% 9px no-repeat,
         repeating-linear-gradient(90deg, var(--adv-line-strong) 0 1px, transparent 1px 8px) top left / 100% 5px no-repeat;
      -webkit-transform-origin: left center;
      transform-origin: left center;
   }

.it-criteria__list li
   {
      position: relative;
      display: flex;
   }

/* Each cell links down to its standard in the list near the end. Every
   caption gets a two-line slot, so the marks share one baseline. */
.kisaka-adv .it-criteria__link
   {
      flex: 1 1 auto;
      display: grid;
      grid-template-rows: auto minmax(28px, 1fr) auto calc(10px + 2.7em);
      font-size: 13px;
      min-height: clamp(150px, 13vw, 190px);
      padding: 18px clamp(16px, 2vw, 28px) 24px;
      color: inherit;
      text-decoration: none;
   }

.kisaka-adv .it-criteria__link:hover .it-criteria__mark,
.kisaka-adv .it-criteria__link:focus-visible .it-criteria__mark
   {
      color: var(--adv-red);
   }

.kisaka-adv .it-criteria__link:focus-visible
   {
      outline: 2px solid var(--adv-red);
      outline-offset: -2px;
   }

.it-criteria__list li + li::before
   {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 1px;
      background: var(--adv-line-strong);
      -webkit-transform-origin: center top;
      transform-origin: center top;
   }

.it-criteria__no
   {
      grid-row: 1;
   }

.kisaka-adv .it-criteria__mark
   {
      grid-row: 3;
      font-family: var(--kisaka-font-accent), 'Google Sans Flex', sans-serif;
      font-size: clamp(34px, 3.6vw, 52px);
      font-weight: 500;
      line-height: 0.95;
      letter-spacing: -0.035em;
      color: var(--adv-ink);
   }

.kisaka-adv .it-criteria__name
   {
      grid-row: 4;
      align-self: start;
      margin-top: 10px;
      max-width: 22ch;
      font-size: 13px;
      font-weight: 500;
      line-height: 1.35;
      color: var(--adv-body);
   }

/* The sheet itself stays put; its pieces carry the arrival. */
.adv-motion .it-criteria__list[data-adv-reveal]
   {
      opacity: 1;
      -webkit-transform: none;
      transform: none;
   }

.adv-motion .it-criteria__list::before
   {
      -webkit-transform: scaleX(0);
      transform: scaleX(0);
      -webkit-transition: -webkit-transform 1100ms var(--adv-ease);
      transition: transform 1100ms var(--adv-ease);
   }

.adv-motion .it-criteria__list li + li::before
   {
      -webkit-transform: scaleY(0);
      transform: scaleY(0);
      -webkit-transition: -webkit-transform 800ms var(--adv-ease);
      transition: transform 800ms var(--adv-ease);
      transition-delay: calc(250ms + var(--i) * 90ms);
   }

.adv-motion .it-criteria__link > span
   {
      opacity: 0;
      -webkit-transform: translate3d(0, 22px, 0);
      transform: translate3d(0, 22px, 0);
      -webkit-transition: opacity 600ms ease, -webkit-transform 900ms var(--adv-ease);
      transition: opacity 600ms ease, transform 900ms var(--adv-ease);
      transition-delay: calc(320ms + var(--i) * 110ms);
   }

.adv-motion .it-criteria__link > .it-criteria__name
   {
      transition-delay: calc(420ms + var(--i) * 110ms);
   }

.adv-motion .it-criteria__list[data-adv-from="above"] .it-criteria__link > span
   {
      -webkit-transform: translate3d(0, -16px, 0);
      transform: translate3d(0, -16px, 0);
   }

.adv-motion .it-criteria__list.is-in::before
   {
      -webkit-transform: scaleX(1);
      transform: scaleX(1);
   }

.adv-motion .it-criteria__list.is-in li + li::before
   {
      -webkit-transform: scaleY(1);
      transform: scaleY(1);
   }

.adv-motion .it-criteria__list.is-in .it-criteria__link > span
   {
      opacity: 1;
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
   }

@media (prefers-reduced-motion: reduce)
   {
      .adv-motion .it-criteria__list::before,
      .adv-motion .it-criteria__list li + li::before,
      .adv-motion .it-criteria__link > span
         {
            opacity: 1;
            -webkit-transform: none;
            transform: none;
            -webkit-transition: none;
            transition: none;
         }
   }

/* ===== Text and screen ===== */
.it-media__grid
   {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
      gap: clamp(40px, 7vw, 120px);
      align-items: center;
   }

.it-media__panel
   {
      position: relative;
      overflow: hidden;
      aspect-ratio: 679 / 731;
      border-radius: 20px;
      background: var(--it-warm);
   }

.kisaka-it .it-media__screen
   {
      position: absolute;
      top: 14%;
      left: 8%;
      width: 96%;
   }

.kisaka-adv .it-media__title
   {
      font-size: clamp(26px, 2.6vw, 40px);
      font-weight: 400;
      line-height: 1.14;
      letter-spacing: -0.025em;
      color: var(--adv-ink);
      text-wrap: balance;
   }

.it-media__text
   {
      max-width: 480px;
      margin-top: 22px;
   }

.it-media__text p
   {
      font-size: 16px;
      color: var(--adv-body);
   }

.it-media__text p + p
   {
      margin-top: 14px;
   }

/* ===== Seven areas: pinned sideways scroller =====
   The section is as tall as the track is wide. While it passes, the pin
   holds the screen and js/kisaka-it.js slides the track left. Cards away
   from the reading position fade back, like Ventriloc's. */
.it-rail
   {
      position: relative;
   }

.it-rail__pin
   {
      display: flex;
      flex-direction: column;
      padding: clamp(40px, 6vh, 72px) 0 clamp(32px, 5vh, 56px);
   }

.it-rail.is-pinned .it-rail__pin
   {
      position: sticky;
      top: var(--kisaka-header-h, 72px);
      height: calc(100svh - var(--kisaka-header-h, 72px));
      overflow: hidden;
   }

.it-rail__head
   {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 40px;
      margin-bottom: clamp(28px, 4vh, 48px);
   }

.it-rail__head .adv-lead
   {
      max-width: 560px;
      margin-top: 14px;
   }

.it-rail__meter
   {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 12px;
      flex: 0 0 auto;
      width: 180px;
   }

.it-rail__count
   {
      font-size: 13px;
      font-weight: 500;
      font-variant-numeric: tabular-nums;
      color: var(--adv-muted);
   }

.it-rail__count span
   {
      color: var(--adv-red);
   }

.it-rail__bar
   {
      position: relative;
      width: 100%;
      height: 2px;
      border-radius: 1px;
      background: var(--adv-line-strong);
   }

.it-rail__bar span
   {
      position: absolute;
      inset: 0;
      background: var(--adv-red);
      transform: scaleX(var(--it-rail-progress, 0));
      transform-origin: left center;
   }

.it-rail__viewport
   {
      flex: 1 1 auto;
      min-height: 0;
   }

/* Unpinned (short or zoomed screens, reduced motion, before the script
   runs): the seven areas stack, each picture beside its copy. */
.it-rail__track
   {
      display: flex;
      flex-direction: column;
      gap: clamp(64px, 8vw, 112px);
      max-width: calc(var(--adv-shell) + 2 * var(--adv-gutter));
      margin: 0 auto;
      padding: 0 var(--adv-gutter);
   }

.it-card
   {
      display: flex;
      align-items: flex-start;
      gap: clamp(32px, 5vw, 80px);
   }

.it-card__media
   {
      position: relative;
      flex: 0 0 auto;
      overflow: hidden;
      width: min(46%, 520px);
      aspect-ratio: 427 / 462;
      border-radius: 20px;
      background: var(--it-panel);
   }

.it-card__media--deep
   {
      background: var(--it-deep);
   }

.it-card__media--warm
   {
      background: var(--it-warm);
   }

.kisaka-it .it-card__screen
   {
      position: absolute;
      top: 12%;
      left: 8%;
      width: 96%;
   }

.it-card__copy
   {
      flex: 1 1 auto;
      max-width: 560px;
   }

/* The counter only means something while the row slides. */
.it-rail:not(.is-pinned) .it-rail__meter
   {
      display: none;
   }

/* Pinned: one row that slides left as the page scrolls. The script only
   pins when the longest copy fits the screen. */
.it-rail.is-pinned .it-rail__track
   {
      flex-direction: row;
      gap: clamp(48px, 6vw, 96px);
      width: max-content;
      max-width: none;
      height: 100%;
      margin: 0;
      padding-left: max(var(--adv-gutter), calc((100vw - var(--adv-shell)) / 2));
      will-change: transform;
   }

.it-rail.is-pinned .it-card
   {
      gap: clamp(24px, 3vw, 40px);
      height: 100%;
   }

/* Only the pictures of the other cards fade back; their copy stays
   readable at full contrast. */
.it-rail.is-pinned .it-card__media
   {
      -webkit-transition: opacity 500ms ease;
      transition: opacity 500ms ease;
   }

.it-rail.is-pinned .it-card:not(.is-current) .it-card__media
   {
      opacity: 0.32;
   }

.it-rail.is-pinned .it-card__media
   {
      width: auto;
      height: min(100%, 520px);
   }

.it-rail.is-pinned .it-card__copy
   {
      flex: 0 0 auto;
      width: clamp(320px, 30vw, 430px);
      max-width: none;
   }

/* One label style across the page: the card, column and feature labels,
   the AI eyebrow, the criteria label and the closing label. */
.kisaka-adv .it-features .adv-eyebrow
   {
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0;
      text-transform: none;
   }

.kisaka-adv .it-card__kicker
   {
      font-size: 13px;
      font-weight: 500;
      line-height: 1.4;
      letter-spacing: 0;
      text-transform: none;
      color: var(--adv-red);
   }

.kisaka-adv .it-card__title
   {
      margin-top: 12px;
      font-size: clamp(19px, 1.5vw, 22px);
      font-weight: 500;
      line-height: 1.22;
      letter-spacing: -0.012em;
      color: var(--adv-ink);
      text-wrap: balance;
   }

.it-card__copy p:not(.it-card__kicker)
   {
      margin-top: 12px;
      font-size: 15px;
      line-height: 1.55;
      color: var(--adv-body);
   }

/* ===== Statement over three columns =====
   The statement takes the left two thirds; the lead settles at its foot on
   the right, so the head spans the page like the columns below it. */
.it-columns .adv-shell
   {
      display: grid;
      grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
      column-gap: clamp(32px, 5vw, 80px);
   }

.kisaka-adv .it-columns__title
   {
      max-width: 20ch;
      font-size: clamp(30px, 4vw, 60px);
      font-weight: 400;
      line-height: 1.08;
      letter-spacing: -0.03em;
      color: var(--adv-ink);
   }

.kisaka-adv .it-columns__title em
   {
      font-style: normal;
      color: var(--adv-red);
   }

.kisaka-adv .it-columns__lead
   {
      align-self: end;
      max-width: 400px;
      margin-top: 22px;
      font-size: 18px;
      color: var(--adv-body);
   }

.it-columns__grid
   {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(28px, 4vw, 64px);
      margin-top: clamp(48px, 6vw, 80px);
      padding-top: 32px;
      border-top: 1px solid var(--adv-line-strong);
   }

.kisaka-adv .it-columns__kicker
   {
      font-size: 13px;
      font-weight: 500;
      line-height: 1.4;
      letter-spacing: 0;
      text-transform: none;
      color: var(--adv-red);
   }

.it-columns__grid--four
   {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }

.kisaka-adv .it-columns__grid h3
   {
      margin-top: 12px;
      font-size: 19px;
      font-weight: 500;
      line-height: 1.25;
      letter-spacing: -0.01em;
      color: var(--adv-ink);
   }

.it-columns__grid p:not(.it-columns__kicker)
   {
      margin-top: 12px;
      font-size: 15px;
      color: var(--adv-body);
   }

/* ===== AI advisory with sticky index ===== */
.it-features
   {
      background: var(--adv-card);
   }

.it-features__grid
   {
      display: grid;
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
      gap: clamp(40px, 6vw, 96px);
      align-items: start;
   }

.it-features__aside
   {
      align-self: stretch;
   }

.it-features__sticky
   {
      position: sticky;
      top: calc(var(--kisaka-header-h, 72px) + 48px);
   }

.it-features__sticky .adv-lead
   {
      margin-top: 18px;
   }

/* Ventriloc's index: square bullet on the area in view, the rest faded. */
.kisaka-adv .it-toc a:not(.is-active):not(:hover)
   {
      color: var(--adv-muted);
   }

.kisaka-adv .it-toc a span
   {
      font-size: 15px;
      font-weight: 500;
      line-height: 1.35;
   }

.kisaka-adv .it-toc li + li
   {
      margin-top: 12px;
   }

.kisaka-adv .it-toc a::before
   {
      top: 6px;
      width: 8px;
      height: 8px;
   }

.it-features__list
   {
      display: flex;
      flex-direction: column;
      gap: clamp(72px, 9vw, 120px);
   }

.it-feature
   {
      scroll-margin-top: calc(var(--kisaka-header-h, 72px) + 32px);
   }

.kisaka-adv .it-feature__kicker
   {
      font-size: 13px;
      font-weight: 500;
      line-height: 1.4;
      letter-spacing: 0;
      text-transform: none;
      color: var(--adv-red);
   }

.kisaka-adv .it-feature__title
   {
      margin-top: 10px;
      font-size: clamp(22px, 2vw, 28px);
      font-weight: 400;
      line-height: 1.18;
      letter-spacing: -0.02em;
      color: var(--adv-ink);
   }

.kisaka-adv .it-feature__text
   {
      max-width: 560px;
      margin-top: 14px;
      font-size: 17px;
      color: var(--adv-body);
   }

.it-feature__media
   {
      margin-top: 28px;
      padding: clamp(24px, 4vw, 56px);
      border-radius: 20px;
      background: var(--it-panel);
   }

/* ===== Standards: numbered list ===== */
.kisaka-adv .it-list__title
   {
      font-size: clamp(26px, 2.6vw, 40px);
      font-weight: 400;
      line-height: 1.14;
      letter-spacing: -0.025em;
      color: var(--adv-ink);
   }

.kisaka-adv .it-list__title em
   {
      font-style: normal;
      color: var(--adv-red);
   }

.kisaka-adv .it-list__lead
   {
      max-width: 680px;
      margin-top: 20px;
      font-size: 17px;
      color: var(--adv-body);
   }

.it-list__rows
   {
      margin-top: clamp(40px, 5vw, 64px);
      border-top: 1px solid var(--adv-line-strong);
   }

.it-list__rows li
   {
      display: grid;
      grid-template-columns: 56px minmax(0, 5fr) minmax(0, 7fr);
      gap: 24px;
      align-items: baseline;
      padding: 22px 0;
      border-bottom: 1px solid var(--adv-line-strong);
   }

.it-list__n
   {
      font-size: 14px;
      font-variant-numeric: tabular-nums;
      color: var(--adv-muted);
   }

.kisaka-adv .it-list__name strong
   {
      display: block;
      font-size: 16px;
      font-weight: 600;
      color: var(--adv-ink);
   }

.kisaka-adv .it-list__name span
   {
      display: block;
      margin-top: 2px;
      font-size: 14px;
      color: var(--adv-muted);
   }

.kisaka-adv .it-list__text
   {
      font-size: 16px;
      color: var(--adv-body);
   }

/* ===== Closing panel ===== */
.it-cta
   {
      padding: 0 0 clamp(72px, 8vw, 120px);
   }

/* Deep wine panel so the page ends on its own ask before the red footer.
   The headline fills the left; the text and button settle bottom right.
   A cream tick ruler runs along the top, the criteria strip's motif. */
.it-cta__panel
   {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
      grid-template-rows: auto 1fr auto;
      grid-template-areas:
         "label label"
         "title text"
         "title action";
      column-gap: clamp(40px, 6vw, 96px);
      row-gap: 28px;
      padding: clamp(48px, 6vw, 88px) clamp(32px, 5vw, 72px) clamp(40px, 5vw, 72px);
      border-radius: 20px;
      background: var(--it-deep);
      color: var(--it-cream);
   }

.it-cta__panel::before
   {
      content: "";
      position: absolute;
      top: 0;
      left: clamp(32px, 5vw, 72px);
      right: clamp(32px, 5vw, 72px);
      height: 10px;
      background:
         repeating-linear-gradient(90deg, rgba(245, 243, 240, 0.4) 0 1px, transparent 1px 64px) top left / 100% 10px no-repeat,
         repeating-linear-gradient(90deg, rgba(245, 243, 240, 0.18) 0 1px, transparent 1px 8px) top left / 100% 5px no-repeat;
   }

.kisaka-adv .it-cta__label
   {
      grid-area: label;
      margin-bottom: clamp(16px, 3vw, 40px);
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      font-weight: 500;
      color: var(--it-cream);
   }

.kisaka-adv .it-cta__label::before
   {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--it-cream);
   }

/* The body's children join the panel grid: headline left, ask right. */
.it-cta__body
   {
      display: contents;
   }

.kisaka-adv .it-cta__title
   {
      grid-area: title;
      align-self: end;
      max-width: 15ch;
      font-size: clamp(34px, 4.2vw, 64px);
      font-weight: 400;
      line-height: 1.04;
      letter-spacing: -0.035em;
      color: var(--it-cream);
      text-wrap: balance;
   }

.it-cta__title span
   {
      color: var(--it-cream-soft);
   }

.kisaka-adv .it-cta__text
   {
      grid-area: text;
      align-self: end;
      max-width: 400px;
      margin: 0;
      font-size: 17px;
      color: var(--it-cream-soft);
   }

.it-cta .adv-actions
   {
      grid-area: action;
      margin-top: 0;
   }

/* A panel without a label: the headline and its line run wide on the left
   and the buttons stand in a narrow column on the right, level with the
   text's last row, so neither side is left empty. */
.it-cta__panel:not(:has(.it-cta__label))
   {
      grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
      grid-template-rows: auto auto;
      grid-template-areas:
         "title action"
         "text action";
      row-gap: 20px;
      align-items: end;
   }

.kisaka-adv .it-cta__panel:not(:has(.it-cta__label)) .it-cta__title
   {
      max-width: none;
      text-wrap: pretty;
   }

.kisaka-adv .it-cta__panel:not(:has(.it-cta__label)) .it-cta__text
   {
      align-self: start;
      max-width: 560px;
   }

.it-cta__panel:not(:has(.it-cta__label)) .adv-actions
   {
      flex-direction: column;
      align-items: stretch;
      align-self: end;
      gap: 12px;
   }

.it-cta__panel:not(:has(.it-cta__label)) .adv-actions .adv-btn
   {
      justify-content: space-between;
   }

.kisaka-adv .it-cta .adv-btn:focus-visible
   {
      outline-color: var(--it-cream);
   }

/* ===== Reading text in Newsreader, as on the financial page ===== */
.kisaka-adv :is(.it-hero__lead,
.it-media__text p,
.it-card__copy p:not(.it-card__kicker),
.it-columns__lead,
.it-columns__grid p:not(.it-columns__kicker),
.it-feature__text,
.it-list__lead,
.it-list__text,
.it-cta__text)
   {
      font-family: "Newsreader", Georgia, "Times New Roman", serif;
      font-optical-sizing: auto;
      font-size-adjust: 0.5;
      letter-spacing: 0;
   }

/* ===== Responsive ===== */

@media (max-width: 420px)
   {
      .kisaka-adv.kisaka-it .adv-kicker
         {
            font-size: 12px;
         }

      .kisaka-it .adv-kicker__path
         {
            white-space: normal;
         }
   }

@media (max-width: 1100px)
   {
      .kisaka-adv .it-criteria__mark
         {
            font-size: clamp(30px, 4vw, 44px);
         }
   }

@media (max-width: 900px)
   {
      .adv-hero.it-hero__grid
         {
            min-height: 0;
         }

      .it-hero__copy
         {
            width: 100%;
         }

      .it-hero__media
         {
            position: relative;
            top: auto;
            width: calc(100% - var(--adv-gutter));
            margin-left: var(--adv-gutter);
            aspect-ratio: 5 / 4;
            border-radius: 20px 0 0 20px;
         }

      .kisaka-it .it-hero__screen
         {
            top: 64px;
            left: 24px;
            width: 640px;
         }

      .it-media__grid, .it-features__grid, .it-cta__panel
         {
            grid-template-columns: minmax(0, 1fr);
         }

      .it-cta__panel
         {
            grid-template-rows: auto;
            grid-template-areas:
               "label"
               "title"
               "text"
               "action";
            row-gap: 20px;
         }

      .it-cta__panel:not(:has(.it-cta__label))
         {
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: auto;
            grid-template-areas:
               "title"
               "text"
               "action";
         }

      .it-media__panel
         {
            aspect-ratio: 1 / 1;
         }

      .it-rail__head
         {
            flex-direction: column;
            align-items: flex-start;
         }

      .it-rail__meter
         {
            display: none;
         }

      .it-rail__track
         {
            gap: 64px;
         }

      .it-card
         {
            flex-direction: column;
            align-items: stretch;
         }

      .it-card__media
         {
            width: 100%;
         }

      .it-card__copy
         {
            max-width: none;
         }

      .it-columns .adv-shell, .it-columns__grid
         {
            grid-template-columns: minmax(0, 1fr);
         }

      .it-features__sticky
         {
            position: static;
         }

      .it-toc
         {
            display: none;
         }

      .it-list__rows li
         {
            grid-template-columns: 44px minmax(0, 1fr);
            row-gap: 8px;
         }

      .it-list__text
         {
            grid-column: 2;
         }
   }

@media (max-width: 600px)
   {
      .it-criteria__list
         {
            grid-template-columns: repeat(2, minmax(0, 1fr));
         }

      .kisaka-adv .it-criteria__link
         {
            min-height: 132px;
            padding: 14px 16px 20px;
         }

      .it-criteria__list li:nth-child(odd)::before
         {
            display: none;
         }

      .it-criteria__list li:nth-child(n + 3)
         {
            border-top: 1px solid var(--adv-line-strong);
         }

      .kisaka-adv .it-criteria__link
         {
            grid-template-rows: auto minmax(18px, 1fr) auto calc(10px + 2.7em);
         }

      .kisaka-adv .it-criteria__mark
         {
            font-size: 34px;
         }

      /* Phones: the drawing panels run edge to edge so the drawings keep
         readable labels. The AI drawings hold a minimum size and swipe
         sideways inside their panel. */
      .it-media__panel, .it-card__media, .it-feature__media
         {
            margin-left: calc(-1 * var(--adv-gutter));
            margin-right: calc(-1 * var(--adv-gutter));
            width: auto;
            border-radius: 0;
         }

      .kisaka-it .it-media__screen, .kisaka-it .it-card__screen
         {
            left: var(--adv-gutter);
            width: calc(100% - var(--adv-gutter));
         }

      .it-feature__media
         {
            overflow-x: auto;
            padding: 16px var(--adv-gutter) 20px;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
         }

      .it-feature__media::-webkit-scrollbar
         {
            display: none;
         }

      .it-feature__screen
         {
            min-width: 440px;
         }
   }
