@font-face {
  font-family: Geist;
  src: url(media/geist.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url(media/geist-mono.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Castoro;
  src: url(media/castoro.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Castoro;
  src: url(media/castoro-italic.woff2) format("woff2");
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5f5f3;
  --canvas: #f8f6ef;
  --white: #fffdf8;
  --mist: #e7eee8;
  --clay: #f2e9dc;
  --sky: #e8eff3;
  --ink: #243731;
  --text: #394b45;
  --muted: #52625c;
  --rule: #c9d1c8;
  --accent: #2f6f84;
  --accent-deep: #22576a;
  --accent-text: #ffffff;
  --brand-ink: #0a0a0a;
  --brand-muted: #6f6f6f;
  --shadow: 0 16px 36px rgb(36 55 49 / 16%);
  --radius: 14px;
  --body: Geist, system-ui, sans-serif;
  --display: Castoro, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --section-space: clamp(3.5rem, 8vw, 7.5rem);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5.3rem; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.58 var(--body); }
::selection { background: #d0e3e5; color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.chapter:focus { outline: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .26em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
.shell { width: min(1240px, calc(100% - 2 * clamp(1.1rem, 5vw, 5rem))); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: 1rem; z-index: 10; background: var(--white); padding: .65rem 1rem; transform: translateY(-150%); }
.skip:focus { transform: none; }

.bar { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar-inner { display: flex; align-items: center; gap: clamp(.75rem, 2.7vw, 2.4rem); min-height: 68px; }
.brand, .wordmark { display: inline-flex; align-items: center; gap: .46rem; }
.brand { color: var(--brand-ink); font: 500 1.08rem/1 var(--mono); text-decoration: none; letter-spacing: -.03em; flex-shrink: 0; }
.mark-cutout { fill: var(--paper); }
.wordmark i { width: 1px; height: 1rem; background: var(--accent); }
.wordmark small { font-size: 1em; font-weight: 400; color: var(--brand-muted); }
.bar nav { display: flex; gap: clamp(.7rem, 2vw, 1.65rem); margin-left: auto; }
.bar nav a { display: flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 590; text-decoration: none; }
.bar nav a:hover { color: var(--accent-deep); text-decoration: underline; }
.chapter-menu { display: none; position: relative; margin-left: auto; }
.chapter-menu nav { position: absolute; top: calc(100% + .55rem); right: 0; display: grid; min-width: 12rem; gap: 0; padding: .5rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.chapter-menu nav a { padding-inline: .65rem; }
.chapter-menu summary { color: var(--text); font-size: .86rem; font-weight: 620; min-height: 44px; display: flex; align-items: center; gap: .34rem; cursor: pointer; }
.chapter-menu summary::after, .territory-counts summary::after, .ops-gallery summary::after { content: ""; width: .43rem; height: .43rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.12rem) rotate(45deg); }
.chapter-menu[open] summary::after, .territory-counts[open] summary::after, .ops-gallery details[open] summary::after { transform: translateY(.07rem) rotate(225deg); }

.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; font-size: .92rem; font-weight: 650; }
.button { padding: .55rem .94rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background-color .18s ease, border-color .18s ease; }
.primary { color: var(--accent-text); background: var(--accent); }
.primary:hover { background: var(--accent-deep); }
.outline { background: transparent; color: var(--ink); border-color: #8a9c93; }
.outline:hover { background: var(--mist); }
.quiet-button { background: transparent; color: var(--ink); }
.quiet-button:hover { background: var(--clay); }
.button:disabled { opacity: .46; cursor: default; }
.text-link { color: var(--accent-deep); justify-content: flex-start; }
.text-link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; gap: .55rem 1.4rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.arrow { position: relative; width: .9em; height: 1px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: .39em; height: .39em; border: solid currentColor; border-width: 1px 1px 0 0; transform: translateY(-50%) rotate(45deg); }

.chapter { padding-block: var(--section-space); }
.hero { padding-top: clamp(2.8rem, 5.4vw, 5rem); padding-bottom: clamp(2.1rem, 4vw, 4rem); }
.hero-layout { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(3.25rem, 6.15vw, 5.6rem); line-height: 1.03; }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.2rem); line-height: 1.06; }
h3 { font-size: clamp(1.15rem, 1.75vw, 1.45rem); line-height: 1.25; text-wrap: pretty; }
.lead, .section-head > p { font-size: clamp(1.03rem, 1.42vw, 1.22rem); color: var(--text); max-width: 48ch; }
.hero-copy .lead { margin-top: 1.15rem; }
.hero h1 { font-size: clamp(3.2rem, 5.6vw, 5.3rem); }
.hero-scene { min-width: 0; }
.app-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  justify-items: center;
  gap: clamp(.64rem, 2vw, 1.65rem);
  padding: clamp(.88rem, 2.4vw, 2.25rem);
  background: var(--mist);
  border-radius: var(--radius);
}
.app-preview img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
.app-entrance { max-width: 260px; }
.app-receipt { max-width: 208px; }
.hero-scene figcaption { margin-top: .55rem; color: var(--muted); font-size: .82rem; text-align: center; }
.meta { font: 500 .78rem/1.45 var(--mono); color: var(--muted); }
.hero-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2rem, 4.4vw, 3.5rem); border-block: 1px solid var(--rule); }
.hero-route a { display: flex; align-items: flex-start; column-gap: .85rem; padding: .92rem .5rem; text-decoration: none; }
.hero-route a + a { padding-left: clamp(.9rem, 2.5vw, 2rem); border-left: 1px solid var(--rule); }
.hero-route a:hover strong { text-decoration: underline; }
.route-index { color: var(--accent-deep); font: 500 .77rem/2.1 var(--mono); }
.hero-route strong, .hero-route small { display: block; }
.hero-route small { color: var(--muted); font-size: .82rem; margin-top: .1rem; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(1.3rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(1.45rem, 4.2vw, 3.3rem); }
.note { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.origin { background: var(--mist); }
.mode-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.mode-split article { padding: clamp(1.1rem, 3vw, 2rem) clamp(1rem, 3.4vw, 2.7rem) clamp(1.2rem, 3vw, 2.35rem) 0; }
.mode-split article + article { padding-left: clamp(1rem, 3.4vw, 2.7rem); border-left: 1px solid var(--rule); }
.mode-split h3 { font: 400 clamp(1.5rem, 2.8vw, 2.25rem)/1.15 var(--display); margin-block: .5rem .6rem; max-width: 24ch; }
.mode-split article p:last-child { color: var(--text); max-width: 55ch; }
.origin .note { margin-top: 1rem; }

.demo { background: var(--white); }
.screen-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 3vw, 2.1rem); }
.screen { display: grid; place-items: center; height: clamp(215px, 27vw, 340px); background: var(--clay); border-radius: var(--radius); padding: clamp(.55rem, 1.4vw, 1.1rem); }
.screen-story figure:nth-child(2) .screen { background: var(--mist); }
.screen-story figure:last-child .screen { background: var(--sky); }
.screen img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.screen-story figcaption, .video-grid figcaption { display: grid; gap: .12rem; padding-block: .65rem; }
.screen-story figcaption span, .video-grid figcaption span { font-size: .86rem; color: var(--muted); }
.chapter-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; margin-top: .65rem; }
.videos { background: var(--clay); }
.video-grid { display: grid; grid-template-columns: minmax(0, .33fr) minmax(0, 1fr); align-items: start; gap: clamp(1.1rem, 4vw, 3.5rem); }
.video-grid figure:first-child { width: min(100%, 234px); justify-self: end; }
.video-grid video { width: 100%; border-radius: var(--radius); background: var(--white); }
.mobile-video { aspect-ratio: 9 / 16; }
.desktop-video { aspect-ratio: 16 / 9; }
.videos .note { margin-top: .6rem; }
.gaman-video { background: var(--white); }
.reference-video { width: min(100%, 54rem); margin-inline: auto; }
.reference-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); background: var(--paper); }
.reference-video figcaption { margin-top: .35rem; }

.territory { background: var(--canvas); }
.territory-layout, .insight-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: start; gap: clamp(1.2rem, 4vw, 3.6rem); }
.product-evidence { min-width: 0; }
.product-evidence > a { display: block; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.product-evidence img { width: 100%; border-radius: calc(var(--radius) - 1px); }
.product-evidence figcaption { display: flex; flex-wrap: wrap; gap: .14rem .9rem; justify-content: space-between; padding: .55rem .17rem 0; font-size: .82rem; color: var(--muted); }
.product-evidence strong { color: var(--ink); }
.pin-legend { display: flex; gap: .65rem 1.1rem; padding: 0; margin: .65rem 0 .35rem; list-style: none; font-size: .86rem; }
.pin-legend li { display: flex; align-items: center; gap: .45rem; }
.pin-legend i { width: .87rem; height: .87rem; border: 1px solid #7f6636; border-radius: 50%; background: #d4a017; }
.pin-legend li:last-child i { background: #3d9b74; border-color: #386750; }
.insights { background: var(--mist); }
.insights .section-head h2 { max-width: 19ch; }
.insight-reading { display: grid; gap: .9rem; }
.insight-reading > div + div { border-top: 1px solid var(--rule); padding-top: .7rem; }
.insight-reading dt { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .66rem; }
.insight-reading dt strong { font: 400 clamp(1.54rem, 2.65vw, 2.25rem)/1.15 var(--display); color: var(--ink); }
.insight-reading dt span { font-weight: 650; }
.insight-reading dd { color: var(--text); margin-top: .21rem; font-size: .94rem; }
.insight-status { margin-top: .6rem; }
.territory-copy > p { color: var(--text); margin: .5rem 0 .35rem; }
.territory-counts { margin-top: .5rem; border-block: 1px solid var(--rule); }
.territory-counts summary, .ops-gallery summary { cursor: pointer; display: flex; align-items: center; gap: .75rem; min-height: 48px; padding-block: .5rem; font-weight: 650; }
.territory-counts summary::after, .ops-gallery summary::after { margin-left: auto; flex-shrink: 0; margin-right: .25rem; }
.territory-counts p { margin-bottom: .6rem; font-size: .91rem; }
.territory-counts a { display: block; margin-bottom: .75rem; }
.territory-counts img { width: 100%; border: 1px solid var(--rule); border-radius: 7px; }

.classification { background: var(--sky); }
.classification-example { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(1.15rem, 5vw, 4.5rem); align-items: start; }
.voice-note { background: var(--white); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 2rem); }
.voice-note figcaption { color: var(--muted); font-size: .86rem; }
.voice-note blockquote { font: italic clamp(1.6rem, 3.4vw, 2.53rem)/1.18 var(--display); margin-top: .65rem; }
.ai-reading h3 { margin-bottom: .6rem; }
.ai-reading dl { border-block: 1px solid var(--rule); }
.ai-reading dl div { padding-block: .6rem; }
.ai-reading dl div + div { border-top: 1px solid var(--rule); }
.ai-reading dt { font-weight: 650; }
.ai-reading dd { color: var(--text); }
.ai-note { margin-top: .85rem; }

.ai-uses { background: var(--white); }
.ai-examples { border-block: 1px solid var(--rule); }
.ai-examples > div {
  display: grid;
  grid-template-columns: minmax(0, .44fr) minmax(0, 1fr);
  gap: .4rem clamp(1.3rem, 5vw, 4.25rem);
  padding-block: clamp(.9rem, 2vw, 1.35rem);
}
.ai-examples > div + div { border-top: 1px solid var(--rule); }
.ai-examples dt { font-weight: 650; line-height: 1.35; }
.ai-examples dd p { font: italic clamp(1.13rem, 2vw, 1.52rem)/1.3 var(--display); }
.ai-examples dd span { display: block; margin-top: .25rem; color: var(--muted); font-size: .9rem; }

.operation { background: var(--white); }
.ops-layout { display: grid; grid-template-columns: minmax(0, .59fr) minmax(0, 1.41fr); align-items: start; gap: clamp(1.2rem, 4vw, 4rem); }
.case-record { background: var(--mist); border-radius: var(--radius); padding: clamp(1rem, 2.6vw, 1.85rem); }
.folio { font: 500 clamp(1.1rem, 2.18vw, 1.66rem)/1.4 var(--mono); overflow-wrap: anywhere; margin: .21rem 0 .6rem; }
.case-record h3 { margin-bottom: .2rem; }
.case-record > p:not(.meta, .folio) { color: var(--muted); }
.case-record .note { margin-top: .78rem; }
.ops-gallery { border-top: 1px solid var(--rule); }
.ops-gallery details { border-bottom: 1px solid var(--rule); }
.ops-gallery summary span { font: 500 .84rem/1.4 var(--mono); color: var(--accent-deep); min-width: .7rem; }
.ops-gallery summary:hover, .territory-counts summary:hover { color: var(--accent-deep); }
.ops-shot { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: .72rem 1.05rem; align-items: start; padding-block: .2rem .85rem; }
.ops-shot p { font-size: .91rem; color: var(--text); }
.ops-shot p a { color: var(--accent-deep); }
.ops-shot > a { display: block; background: var(--paper); border-radius: 9px; }
.ops-shot img { width: 100%; max-height: 230px; object-fit: contain; object-position: top; border: 1px solid var(--rule); border-radius: 9px; }

.governance { background: var(--mist); }
.responsibilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.responsibilities div { padding: 1.25rem clamp(.85rem, 2.7vw, 2rem); }
.responsibilities div:first-child { padding-left: 0; }
.responsibilities div + div { border-left: 1px solid var(--rule); }
.responsibilities dt { font: 400 clamp(1.4rem, 2.2vw, 1.83rem)/1.2 var(--display); margin-bottom: .45rem; }
.responsibilities dd { color: var(--text); }
.footer { background: var(--paper); }
.footer .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding-block: 1rem; color: var(--muted); font-size: .83rem; }

body.deck { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
body.deck .bar nav, body.deck .chapter-menu, body.deck #present, body.deck .footer, body.deck .hero-route { display: none; }
body.deck .bar-inner { min-height: 54px; }
body.deck .chapter { min-height: 100%; padding-block: clamp(1.35rem, 4vh, 3.8rem); }
.deck .section-head { margin-bottom: clamp(1rem, 3vh, 2.15rem); }
.deck .hero-layout { min-height: min(61vh, 560px); }
.deck .app-preview img { max-height: 51vh; width: auto; object-fit: contain; }
.deck .screen { height: min(38vh, 340px); }
.deck .video-grid video { max-height: min(50vh, 410px); object-fit: contain; }
.deck .reference-video { width: min(100%, 90vh, 54rem); }
.deck .product-evidence img { max-height: 48vh; object-fit: contain; }
.deck .ops-shot img { max-height: min(26vh, 230px); }
.deck-controls { display: flex; flex-wrap: wrap; gap: .25rem .55rem; align-items: center; justify-content: center; position: sticky; bottom: 0; z-index: 4; background: var(--paper); border-top: 1px solid var(--rule); padding: .55rem; }
.deck-controls output { font: 500 .85rem/1.3 var(--mono); min-width: 3.35rem; text-align: center; }
@media (min-width: 851px) and (max-height: 760px) {
  body.deck .operation { padding-block: 1.35rem; }
  .deck .operation h2 { font-size: clamp(2.3rem, 4vw, 3.3rem); }
  .deck .ops-shot img { max-height: 24vh; }
}
@media (max-width: 850px) {
  .bar-inner > nav { display: none; }
  .chapter-menu { display: block; }
  .hero-layout, .section-head { grid-template-columns: 1fr; gap: 1.15rem; }
  .hero-layout { gap: 1.65rem; }
  .hero-break { display: none; }
  .territory-layout, .insight-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .76fr); }
  .ops-layout { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); }
}
@media (max-width: 590px) {
  html { scroll-padding-top: 4.6rem; }
  .bar-inner { gap: .55rem; min-height: 59px; }
  .brand, .wordmark { gap: .33rem; }
  .brand { font-size: .99rem; }
  .brand svg { width: 20px; height: 20px; }
  .bar .button { padding-inline: .59rem; font-size: .82rem; }
  .hero { padding-top: 2.55rem; }
  .hero h1 { font-size: clamp(2.9rem, 11.4vw, 4.15rem); }
  .hero-copy .lead { margin-top: .77rem; }
  .actions { margin-top: 1rem; gap: .35rem 1.05rem; }
  .hero-route, .mode-split, .responsibilities, .territory-layout, .insight-layout, .classification-example, .ops-layout { grid-template-columns: 1fr; }
  .ai-examples > div { grid-template-columns: 1fr; }
  .hero-route a + a, .mode-split article + article, .responsibilities div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .hero-route a, .hero-route a + a { padding: .72rem .17rem; }
  .mode-split article, .mode-split article + article, .responsibilities div { padding: 1rem 0; }
  .screen-story { grid-template-columns: 1fr; }
  .screen { height: clamp(225px, 72vw, 305px); }
  .video-grid { grid-template-columns: 1fr; }
  .video-grid figure:first-child { justify-self: start; width: min(100%, 216px); }
  .ops-shot { grid-template-columns: 1fr; }
  .ops-shot img { max-height: none; }
  .deck .app-preview img { width: 100%; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
