/* PhasePointAnalytics.com — direction A "The ledger": the one-pager's paper desk,
   Schibsted Grotesk headings, Fraunces ledes, Source Sans body, Evident blue as the one accent.
   Red and green appear only for down and up. */
:root {
  --desk: #EDEAE3; --paper: #FBFAF7; --paper-2: #F3F1EB; --line: #DCD8CF; --hair: #E8E5DE;
  --ink: #15161A; --ink-2: #3D3C38; --mute: #5F5C55;
  --blue: #3B6FE8; --blue-deep: #2A53B8; --blue-wash: #E9EFFD;
  --ai: #7A4E0E; --ai-wash: #F7EEDC; --up: #1E6B3C; --down: #A3391F;
  --sg: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --fr: "Fraunces", Georgia, serif;
  --text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 1px rgba(21,22,26,.04), 0 10px 20px -10px rgba(21,22,26,.18), 0 40px 70px -40px rgba(21,22,26,.35);
  --shadow-sm: 0 1px 1px rgba(21,22,26,.05), 0 14px 28px -18px rgba(21,22,26,.35);
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--desk); color: var(--ink); font: 17px/1.55 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--sg); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
h1 { font-size: clamp(38px, 6vw, 72px); max-width: 16ch; }
h2 { font-size: clamp(30px, 3.8vw, 46px); max-width: 22ch; }
h3 { font: 500 22px/1.2 var(--fr); letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { font: 600 12px/1 var(--sg); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); }
.lede { font-family: var(--fr); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
.sub { color: var(--ink-2); font-size: 18px; max-width: 62ch; }
.cap { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; max-width: 72ch; }
.cap b, .sub b { color: var(--ink); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }

/* header */
.site-head { padding: 22px 0 0; }
.site-head .row { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); position: relative; }
.brand .mark { width: 22px; height: 22px; flex: none; }
.brand .word { font: 600 19px/1 var(--sg); letter-spacing: -0.02em; position: relative; display: inline-block; }
.brand .word::after { content: attr(data-sub); position: absolute; left: 62%; top: 100%; margin-top: -3px; font: 600 8.5px/1 var(--sg); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); opacity: .55; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px 24px; flex-wrap: wrap; font: 600 14px/1 var(--sg); }
.nav a { color: var(--ink-2); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); }
.btn { display: inline-block; font: 600 15px/1 var(--sg); text-decoration: none; padding: 13px 20px; border-radius: 6px; border: 1px solid transparent; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-line { border-color: #C9C6BD; color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; color: #000; }
.nav .btn { padding: 11px 16px; }
.nav a.btn-ink { color: var(--paper); }
.nav a.btn-ink:hover { color: #fff; box-shadow: none; }
.nav .demo { color: var(--blue-deep); }

/* sections */
section { padding: 72px 0; }
.head { display: grid; gap: 12px; max-width: 66ch; }
.sheet { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(21,22,26,.06); }
.sheet.sm { box-shadow: var(--shadow-sm); }
.sheet.dark { background: #17223E; border-color: transparent; }
.sheet.dark img { border-radius: inherit; }
.sheet.lift { border-color: var(--blue); box-shadow: 0 0 0 6px var(--blue-wash), var(--shadow); }
figure { margin: 0; display: grid; gap: 10px; }
figcaption { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
figcaption b { color: var(--ink); font-weight: 600; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark .lede, .band-dark .sub, .band-dark p { color: #D6D3CB; }
.band-dark a { color: #9DB7F4; }
.band-dark a.btn-paper { color: var(--ink); }
.rule { border-top: 2px solid var(--ink); padding-top: 26px; }
.two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }

/* hero stack */
.hero { padding-top: 64px; padding-bottom: 40px; display: grid; gap: 26px; }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.stack { position: relative; padding-bottom: 318px; margin-top: 16px; }
.stack .main { position: relative; z-index: 1; }
.stack .over { position: absolute; z-index: 2; }
.stack .over.deck { right: -8px; bottom: 0; width: 50%; transform: rotate(-.6deg); }
.stack .over.check { left: 2%; bottom: 0; width: 37%; transform: rotate(.8deg); }
.hero > .cap { margin-top: -6px; }

/* problem */
.problem p { font-family: var(--fr); font-size: clamp(21px, 2.5vw, 27px); line-height: 1.35; max-width: 38ch; }
.problem p + p { color: var(--blue-deep); margin-top: 12px; }

/* trust rail */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 30px; border-top: 2px solid var(--blue); }
.st { display: grid; gap: 10px; align-content: start; }
.who { justify-self: start; font: 700 11px/1 var(--sg); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px; color: var(--blue-deep); background: var(--blue-wash); }
.who.ai { color: var(--ai); background: var(--ai-wash); }
.who.you { color: var(--paper); background: var(--ink); }
.st p { font-size: 15.5px; color: var(--ink-2); }
.count { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.count > div { background: var(--paper); padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.count .v { font: 600 clamp(28px, 3.4vw, 42px)/1 var(--sg); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.count .l { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.count .drop .v, .count .drop .l { color: var(--down); }
.count .cite .v { color: var(--blue-deep); }
.drop-note { font-family: var(--fr); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; max-width: 30ch; }
.drop-note b { font-weight: 500; color: var(--down); }

/* lists */
.gets { list-style: none; margin: 0; padding: 0; display: grid; }
.gets li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.gets li:first-child { border-top: 0; padding-top: 0; }
.gets b { font: 500 18px/1.3 var(--fr); }
.gets span { color: var(--ink-2); font-size: 15.5px; }

/* horizontal strip: vertical scroll moves the strip sideways, then releases the page.
   On phones, with reduced motion, or without the script, it is a plain swipeable strip. */
.hstrip { position: relative; }
.hstrip .pin { position: sticky; top: 0; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; align-content: start; padding: 28px 0 22px; }
.hstrip .pin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.hstrip .pin-head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.hstrip .pin-head .sub { font-size: 16px; max-width: 52ch; }
.hstrip .viewport { overflow: hidden; align-self: center; }
.hstrip .track { display: flex; gap: 48px; will-change: transform; }
.hstrip .panel { flex: 0 0 100%; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: 36px; align-items: center; }
.hstrip .panel-text { display: grid; gap: 10px; align-content: center; }
.hstrip .panel-text .k { font: 600 14px/1 var(--sg); color: var(--blue-deep); }
.hstrip .panel h3 { font: 500 clamp(22px, 2.2vw, 27px)/1.2 var(--fr); }
.hstrip .panel p { font-size: 16px; color: var(--ink-2); max-width: 44ch; }
.hstrip .panel .sees { font-size: 13.5px; color: var(--ai); background: var(--ai-wash); border-radius: 6px; padding: 8px 10px; justify-self: start; max-width: 44ch; }
.hstrip .panel .sees b { font-weight: 700; }
.hstrip .panel figure { gap: 8px; }
.hstrip .panel figure .sheet { width: fit-content; max-width: 100%; margin: 0 auto; }
.hstrip .panel figure img { max-height: clamp(260px, 34vw, 520px); width: auto; max-width: 100%; }
.hstrip .panel figcaption { text-align: center; font-size: 13.5px; }
.hstrip .dots { display: flex; gap: 10px; align-items: center; }
.hstrip .dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); padding: 0; cursor: pointer; transition: width .25s, background .25s; }
.hstrip .dots button:hover { background: var(--mute); }
.hstrip .dots button[aria-current="true"] { width: 26px; border-radius: 5px; background: var(--blue); }
.hstrip .dots .lbl { font: 600 13px/1 var(--sg); color: var(--mute); margin-left: 8px; font-variant-numeric: tabular-nums; }
.hstrip .dots .hint { font: 500 13px/1 var(--text); color: var(--mute); margin-left: auto; }
.band-dark .hstrip .panel p, .band-dark .hstrip .panel figcaption { color: #D6D3CB; }
.band-dark .hstrip .panel-text .k { color: #9DB7F4; }
.band-dark .hstrip .dots button { background: #3D3C38; }
.band-dark .hstrip .dots button[aria-current="true"] { background: #9DB7F4; }
.band-dark .hstrip .dots .lbl, .band-dark .hstrip .dots .hint { color: #9A978F; }
.band-dark .sheet { border-color: rgba(255,255,255,.08); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
@media (prefers-reduced-motion: reduce) { .hstrip .dots button { transition: none; } }
.hstrip.native .pin { position: static; min-height: 0; padding: 48px 0; }
.hstrip.native .viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.hstrip.native .viewport::-webkit-scrollbar { display: none; }
.hstrip.native .track { transform: none !important; gap: 20px; }
.hstrip.native .panel { scroll-snap-align: start; grid-template-columns: minmax(0, 1fr); gap: 14px; flex-basis: 88%; align-content: start; }
.hstrip.native .panel figure img { max-height: none; width: 100%; }
.hstrip.native .dots .hint { display: none; }


/* Tabbed stepper: tabs left, one screen right, advancing on its own until touched.
   Sizes come from the container's width, never the window's height. */
.stepper { display: grid; gap: 28px; }
.st-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.st-head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.st-head .aside, .film-head .aside { font: 400 15px/1.5 var(--text); color: var(--mute); max-width: 44ch; border-left: 2px solid var(--line); padding-left: 14px; margin: 0; align-self: flex-end; }
.st-head .aside a, .film-head .aside a { font: 600 14px/1 var(--sg); text-decoration: none; }
.st-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.st-side { display: grid; }
.st-tabs { display: grid; border-top: 1px solid var(--line); }
.st-tab { position: relative; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 10px 14px 0; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 12px; font: inherit; color: var(--ink); transition: padding .2s, background .2s; }
.st-tab .k { grid-column: 1; grid-row: 1; font: 600 12px/1.7 var(--sg); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-deep); white-space: nowrap; }
.st-tab b { grid-column: 2; grid-row: 1; font: 500 18px/1.3 var(--fr); }
.st-tab .d { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--ink-2); }
.st-tab .bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--blue); }
.st-tab.on { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; background: linear-gradient(90deg, var(--blue-wash), transparent 70%); }
.st-tab.on b { color: var(--blue-deep); }
.stepper.auto .st-tab.on .bar { animation: st-fill var(--auto, 6s) linear forwards; }
@keyframes st-fill { from { width: 0 } to { width: 100% } }
.st-stage { display: grid; gap: 12px; }
.st-panel { display: grid; gap: 12px; }
.st-panel[hidden] { display: none; }
.st-panel .st-text { display: grid; gap: 8px; }
.st-panel .st-text p { font-size: 15.5px; color: var(--ink-2); max-width: 70ch; }
.st-panel .sees { font-size: 13.5px; color: var(--ai); background: var(--ai-wash); border-radius: 6px; padding: 8px 10px; justify-self: stretch; }
.st-panel .sees b { font-weight: 700; }
.st-frame { height: clamp(300px, 36vw, 500px); display: grid; align-items: start; justify-items: start; }
.st-frame .sheet { max-height: 100%; width: fit-content; max-width: 100%; }
.st-frame img { max-height: clamp(300px, 36vw, 500px); width: auto; max-width: 100%; }
.st-panel figcaption { font-size: 14px; }
.st-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.st-nav .st-count { font: 600 13px/1 var(--sg); color: var(--mute); font-variant-numeric: tabular-nums; }
.st-nav .btns { display: flex; gap: 8px; }
.st-nav button { font: 600 14px/1 var(--sg); color: var(--blue-deep); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; cursor: pointer; }
.st-nav button:hover { border-color: var(--blue); }
.band-dark .st-tabs, .band-dark .st-tab { border-color: #3D3C38; }
.band-dark .st-tab, .band-dark .st-tab b { color: var(--paper); }
.band-dark .st-tab .d, .band-dark .st-panel .st-text p { color: #D6D3CB; }
.band-dark .st-tab.on { background: linear-gradient(90deg, rgba(157,183,244,.15), transparent 70%); }
.band-dark .st-tab.on b, .band-dark .st-tab .k { color: #9DB7F4; }
.band-dark .st-nav button { background: transparent; color: #9DB7F4; border-color: #3D3C38; }
.band-dark .st-head .aside { color: #9A978F; border-color: #3D3C38; }
.band-dark .st-nav .st-count { color: #9A978F; }
@media (max-width: 860px) {
  .st-body { grid-template-columns: minmax(0, 1fr); }
  .st-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line); gap: 0 18px; scrollbar-width: none; }
  .st-tab { border-bottom: 0; grid-template-columns: auto; padding: 10px 0; white-space: nowrap; }
  .st-tab .k { display: none; }
  .st-tab .d { display: none; }
  .st-tab b { grid-column: 1; font: 600 14px/1 var(--sg); }
  .st-tab.on { box-shadow: inset 0 -2px 0 var(--blue); padding-left: 0; background: none; }
  .st-frame, .st-frame img { height: auto; max-height: none; }
  .st-frame img { width: 100%; }
}

.st-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
.st-figs > figure:first-child { grid-column: 1 / -1; }
.st-figs.two > figure:first-child { grid-column: auto; }
.st-figs figure { gap: 8px; }
.st-figs figcaption { font-size: 14px; line-height: 1.45; }
.st-figs figcaption b { display: block; font: 500 17px/1.25 var(--fr); margin-bottom: 2px; color: inherit; }
.band-dark .st-figs figcaption b, .band-dark figcaption b { color: var(--paper); }
.band-dark figcaption, .band-dark .st-panel .st-text p { color: #D6D3CB; }
@media (max-width: 760px) { .st-figs { grid-template-columns: minmax(0, 1fr); } }

/* Fanned screens: one lead image with the others overlapping, numbered to match the captions below. */
.fan { position: relative; width: 100%; }
.fan .fan-img { position: absolute; }
.fan .fan-img .sheet { width: 100%; }
.fan .fan-img img { width: 100%; height: auto; max-height: none; }
.fan .fan-n { position: absolute; top: -8px; left: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-deep); color: #fff; font: 600 10.5px/18px var(--sg); text-align: center; opacity: .9; }
.fan3 { padding-bottom: 57%; }
.fan3 .a { left: 0; top: 0; width: 66%; z-index: 1; }
.fan3 .b { right: 0; top: 8%; width: 44%; z-index: 2; transform: rotate(.6deg); }
.fan3 .c { left: 22%; bottom: 0; width: 56%; z-index: 3; transform: rotate(-.6deg); }
.fan2 { padding-bottom: 58%; }
.fan2 .a { left: 0; top: 0; width: 72%; z-index: 1; }
.fan2 .b { right: 0; bottom: 0; width: 56%; z-index: 2; transform: rotate(.8deg); }
.fan2.tight { padding-bottom: 52%; }
.fan2.tight .a { width: 70%; }
.fan2.tight .b { width: 44%; bottom: 0; }
.fan-caps { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; counter-reset: fc; }
.fan-caps li { position: relative; padding-left: 28px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.fan-caps li::before { counter-increment: fc; content: counter(fc); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-deep); color: #fff; font: 600 10.5px/18px var(--sg); text-align: center; opacity: .9; }
.fan-caps li b { display: block; font: 500 16px/1.25 var(--fr); margin-bottom: 2px; color: var(--ink); }
.band-dark .fan-caps li { color: #D6D3CB; }
.band-dark .fan-caps li b { color: var(--paper); }
.fan2 ~ .fan-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-frame .fan { height: 100%; padding-bottom: 0; }
.st-frame .fan.fan2.tight { width: min(100%, 760px); padding-bottom: 52%; height: auto; }
.st-frame:has(.fan) { height: auto; margin-bottom: 4px; }
@media (max-width: 760px) {
  .fan, .fan2, .fan3, .fan2.tight { padding-bottom: 0; display: grid; gap: 12px; }
  .fan .fan-img { position: static; width: 100% !important; transform: none !important; }
  .fan .fan-n { top: 6px; left: 6px; }
  .fan-caps, .fan2 ~ .fan-caps { grid-template-columns: minmax(0, 1fr); }
}

/* Data diagram (from the one-pager): two raised sheets, floating stage labels, the rule between them. */
.dg { display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); gap: 12px 0; align-items: stretch; min-width: 0; }
.dg .stg { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 0 2px; }
.dg .stg div { font: 600 13px/1.3 var(--sg); color: var(--ink); padding: 0 14px 8px 14px; border-bottom: 2px solid var(--blue); margin-right: 6px; display: flex; gap: 8px; align-items: baseline; }
.dg .stg div small { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 11px/18px var(--sg); text-align: center; }
.dg .lt { grid-column: 1; align-self: center; padding-right: 18px; display: grid; gap: 3px; }
.dg .lt b { font: 600 16px/1.2 var(--sg); letter-spacing: -0.01em; color: var(--ink); }
.dg .lt span { font-size: 12.5px; line-height: 1.35; color: var(--mute); }
.dg .lt.ai b { color: var(--ai); }
.dg .ln { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-radius: 12px; border: 1px solid rgba(21,22,26,.06); box-shadow: var(--shadow); overflow: hidden; }
.dg .ln > div { padding: 16px 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; border-left: 1px solid var(--line); }
.dg .ln > div:nth-child(even) { background: rgba(21,22,26,.03); }
.dg .ln.ai > div:nth-child(even) { background: rgba(138,90,18,.07); }
.dg .ln > div:first-child { border-left: 0; }
.dg .ln > div b { color: var(--ink); font-weight: 600; }
.dg .ln.ai { background: var(--ai-wash); border-color: rgba(138,90,18,.12); }
.dg .ln.ai > div { border-left-color: rgba(138,90,18,.22); }
.dg .ln .none { color: var(--up); font-weight: 600; }
.dg .ln .gate { color: var(--ai); font-weight: 600; }
.dg .ln .m { display: none; }
.dg .dg-rule { grid-column: 2 / -1; display: grid; gap: 6px; padding: 6px 0 2px; }
.dg .dg-rule .t { font: 600 14px/1.3 var(--sg); color: var(--ink); }
.dg .dg-rule .t span { color: var(--ai); font-weight: 500; }
.dg .dg-rule i { display: block; height: 3px; background: var(--ink); border-radius: 2px; }
@media (max-width: 900px) {
  .dg { grid-template-columns: minmax(0, 1fr); } .dg .stg { display: none; } .dg .lt, .dg .ln, .dg .dg-rule { grid-column: 1; } .dg .ln { grid-template-columns: minmax(0, 1fr); } .dg .ln > div { border-left: 0; border-top: 1px solid var(--hair); } .dg .ln > div:first-child { border-top: 0; } .dg .ln .m { display: block; font: 600 11px/1.6 var(--sg); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); }
}

/* Film strip: cards that snap sideways, with arrows and dots. */
.film { display: grid; gap: 22px; }
.film-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.film-head h2 { font-size: clamp(26px, 3.2vw, 40px); }

.film-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 6px 0 10px; }
.film-viewport::-webkit-scrollbar { display: none; }
.film-track { display: flex; gap: 24px; }
.film-card { flex: 0 0 min(78%, 860px); scroll-snap-align: start; display: grid; gap: 12px; opacity: .55; transition: opacity .35s; }
.film-card.on { opacity: 1; }
.film-frame { height: clamp(220px, 30vw, 440px); display: grid; align-items: center; justify-items: start; }
.film-frame .sheet { max-height: 100%; width: fit-content; max-width: 100%; }
.film-frame img { max-height: clamp(220px, 30vw, 440px); width: auto; max-width: 100%; }
.film-text { display: grid; gap: 4px; }
.film-text .k { font: 600 13px/1 var(--sg); color: var(--blue-deep); }
.film-text h3 { font-size: 20px; }
.film-text p { font-size: 15px; color: var(--ink-2); max-width: 70ch; }
.film-nav { display: flex; align-items: center; gap: 12px; }
.film-nav button { font: 600 14px/1 var(--sg); color: var(--blue-deep); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; cursor: pointer; }
.film-dots { display: flex; gap: 8px; align-items: center; margin-left: 8px; }
.film-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); padding: 0; cursor: pointer; transition: width .25s; }
.film-dots button[aria-current="true"] { width: 26px; border-radius: 5px; background: var(--blue); }
.film-count { font: 600 13px/1 var(--sg); color: var(--mute); margin-left: auto; font-variant-numeric: tabular-nums; }
.band-dark .film-text p { color: #D6D3CB; }
.band-dark .film-text .k { color: #9DB7F4; }
.band-dark .film-nav button { background: transparent; color: #9DB7F4; border-color: #3D3C38; }
.band-dark .film-dots button { background: #3D3C38; }
.band-dark .film-dots button[aria-current="true"] { background: #9DB7F4; }
@media (max-width: 860px) {
  .film-card { flex-basis: 86%; }
  .film-frame, .film-frame img { height: auto; max-height: none; }
  .film-frame img { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .film-card, .st-tab { transition: none; } .stepper.auto .st-tab.on .bar { animation: none; } }

/* door / cta cards */
.door { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 18px 22px; }
.door b { font: 500 20px/1.2 var(--fr); display: block; margin-bottom: 4px; }
.door span { color: var(--ink-2); font-size: 15px; }

/* data table (what the AI sees) */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.tbl th { font: 600 12px/1.4 var(--sg); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.tbl td:first-child { font-weight: 600; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.tag { display: inline-block; font: 600 11px/1 var(--sg); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; }
.tag.in { color: var(--up); background: #E4F1E8; }
.tag.req { color: var(--blue-deep); background: var(--blue-wash); }
.tag.soon { color: var(--ai); background: var(--ai-wash); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cd { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.cd h3 { font-size: 20px; }
.cd ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ink-2); display: grid; gap: 6px; }
.cd li b { color: var(--ink); font-weight: 600; }

/* scorecard */
.score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.score-group { display: grid; gap: 0; border-top: 2px solid var(--ink); padding-top: 10px; align-content: start; }
.score-group h3 { font: 600 12px/1.6 var(--sg); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.score-row .what { font-size: 15px; }
.score-row .r { font: 600 17px/1.1 var(--sg); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.score-row .n { grid-column: 1 / -1; font-size: 13.5px; color: var(--mute); line-height: 1.4; }
@media (max-width: 760px) { .score { grid-template-columns: minmax(0, 1fr); } }

/* principles (under the hood) */
.princ { display: grid; gap: 0; counter-reset: p; }
.princ > article { border-top: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 20px; }
.princ > article::before { counter-increment: p; content: counter(p, decimal-leading-zero); font: 500 28px/1 var(--fr); color: var(--blue-deep); grid-row: 1 / span 4; }
.princ h3 { font-size: 23px; }
.princ p { font-size: 15.5px; color: var(--ink-2); max-width: 70ch; }
.princ p b { color: var(--ink); font-weight: 600; }
.princ .lim { color: var(--mute); }

/* footer */
.site-foot { border-top: 1px solid var(--ink); padding: 26px 0 56px; }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 14px; color: var(--mute); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot .meta { display: grid; gap: 4px; text-align: right; }

/* page intros */
.intro { padding: 56px 0 24px; display: grid; gap: 14px; }
.intro .lede { max-width: 60ch; }
.video-slot { aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, var(--paper) 0 10px, var(--paper-2) 10px 20px); border: 1px dashed var(--mute); border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: 15px; }
.video-slot b { display: block; font: 600 13px/1.4 var(--sg); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 6px; }

@media (max-width: 960px) {
  .rail, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .count { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two, .grid3, .cards { grid-template-columns: minmax(0, 1fr); }
    .stack { padding-bottom: 0; display: grid; gap: 14px; }
  .stack .over { position: static; width: 100%; transform: none; }
  .stack .over.check { width: 100%; }
}
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .rail, .grid4, .grid2, .count { grid-template-columns: minmax(0, 1fr); }
  .door { grid-template-columns: minmax(0, 1fr); }
  .site-foot .meta { text-align: left; }
  .princ > article { grid-template-columns: minmax(0, 1fr); }
  .princ > article::before { grid-row: auto; }
}
@media print {
  .site-head .nav, .skip { display: none; }
}
