/* White-first editorial palette. Layout and motion stay in site.css. */
:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --surface: #f1f2f4;
  --text: #1d1d1f;
  --muted: #61656b;
  --line: #d9dce0;
  --accent: #45667f;
  --paper: #f1f2f4;
  --ink: #24292e;
  background: var(--bg);
  color: var(--text);
}

body { background: var(--bg); }
::selection { background: #d7e3ec; color: #172733; }
.site-header {
  background: rgba(251, 251, 253, .9);
  border-bottom-color: rgba(29, 29, 31, .09);
}
.wordmark-dot { color: #56758b; }
.site-header nav a[aria-current]:after { background: var(--text); }
.motion-toggle:hover { color: var(--text); }
.muted-heading { color: #686c72; }
.section-number, .role-divider { color: #6b737b; }
.text-link { border-bottom-color: #949aa1; }
.text-link:hover { color: #111113; border-bottom-color: #111113; }
.hero-projects a { color: #424b53; }
.hero-projects a:hover { color: #111113; }
.hero-project-index, .hero-projects a>span:last-child { color: #617587; }
.horizon { background: #dfe3e7; }
.horizon span { background: linear-gradient(90deg, transparent, #718fa7, transparent); }
.tags, .detail-intro, .section-nav { color: var(--muted); }
.section-nav a:hover { color: var(--text); }
.project-meta span, .output-index, .cost-items>div>span,
.map-caption, .caption, .interest-row>span { color: #626e78; }
.cost-items b { color: #66798a; }
.status-label { color: #53616e; border-color: #bec7cf; }

/* The fieldwork illustration reads as a light research sheet. */
.project-visual {
  background: var(--surface);
  border-color: #d7dce1;
}
.project-visual:hover { border-color: #8293a1; }
.research-diagram { background: var(--surface); color: var(--text); }
.research-diagram .diagram-caption,
.research-diagram .diagram-foot,
.research-diagram .diagram-rows span,
.research-diagram .diagram-rows small { color: #5f6d79; }
.research-diagram .diagram-rows>div { border-color: #cdd4da; }

/* Dark islands retain their own foreground and focus palette. */
.chair-diagram, .workflow-demo, .footer-band {
  --text: #eceef0;
  --muted: #aab3bc;
  --line: #343b42;
  --accent: #a4b9cb;
  color-scheme: dark;
  color: var(--text);
}
.chair-diagram { background: linear-gradient(140deg, #20252a, #14181c); }
.chair-diagram .eyebrow,
.chair-diagram .diagram-caption,
.chair-diagram .diagram-foot { color: #aab3bc; }
.workflow-demo { background: #14181c; border-color: #3b434b; }
.workflow-demo .demo-tabs button { color: #aab7c3; }
.workflow-demo .demo-tabs button[aria-selected="true"] { color: #f0f3f5; }
.footer-band { background: #171a1e; }
.site-footer { border-top: 0; }
.site-footer a:hover { color: #fff; }

/* A real product screenshot, separate from the workflow illustration. */
.project-actions { display:flex; flex-wrap:wrap; gap:18px 32px; margin:-20px 0 40px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.site-preview { background:#171a1e; color:#eceef0; }
.site-preview-bar { display:flex; justify-content:space-between; gap:16px; padding:18px 22px; font:11px "SFMono-Regular",Consolas,monospace; letter-spacing:.08em; color:#b8c3cd; }
.site-preview img { display:block; width:100%; height:auto; }
.site-preview-caption { padding:16px 22px; font-size:11px; line-height:1.6; color:#b8c3cd; }
.live-product-section { padding-block:65px 25px; }
.product-screen { display:block; border:1px solid #cbd2d9; border-radius:4px; overflow:hidden; }
.product-screen:hover { border-color:#617587; }
@media(max-width:700px){.project-actions{margin:0 0 30px;gap:16px 24px}.live-product-section{padding-block:40px 10px}.site-preview-bar{padding:14px;font-size:10px}.site-preview-caption{padding:12px 14px}}

/* Freight branches: a small disclosure, not another scrolling section. */
.site-header nav { align-items:center; height:100%; }
.nav-branch { position:relative; display:flex; align-items:center; height:100%; }
.branch-toggle { display:inline-flex; align-items:center; justify-content:center; width:32px; height:44px; padding:0; border:0; background:transparent; color:var(--muted); }
.branch-toggle[hidden], .branch-panel[hidden] { display:none; }
.branch-toggle svg { transition:transform .18s ease; }
.branch-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.branch-panel { position:absolute; top:100%; left:-20px; width:220px; padding:10px; background:#fbfbfd; border:1px solid var(--line); border-radius:10px; box-shadow:0 14px 35px rgba(29,29,31,.10); }
.site-header nav .branch-panel a { display:block; padding:14px 16px; border-radius:5px; font-size:14px; color:var(--muted); }
.site-header nav .branch-panel a:hover, .site-header nav .branch-panel a:focus-visible, .site-header nav .branch-panel a[aria-current] { color:var(--text); background:#eceef1; }
.site-header nav .branch-panel a[aria-current]:after { display:none; }
.nav-branch[data-project="model-un"] .branch-panel { left:auto; right:0; }
.nav-parent { white-space:nowrap; }
.freight-sections a[aria-current] { color:var(--text); text-decoration:underline; text-underline-offset:8px; }
.branch-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding-block:45px 85px; }
.branch-card { position:relative; border:1px solid var(--line); padding:32px; min-width:0; background:var(--surface); border-radius:4px; transition:border-color .2s,transform .2s; }
.branch-card:hover { border-color:#8293a1; transform:translateY(-3px); }
.branch-card h2 { font-size:clamp(28px,3vw,42px); margin:30px 0 16px; }
.branch-card p { color:var(--muted); font-size:15px; max-width:80%; margin-bottom:0; }
.branch-arrow { position:absolute; bottom:32px; right:32px; font-size:23px; color:var(--accent); }
.branch-hero.detail-hero h1 { font-size:clamp(48px,6.5vw,90px); }
@media(max-width:700px) {
  .site-header { height:110px; }
  .site-header nav { height:auto; gap:8px; }
  .nav-branch { height:44px; }
  .branch-toggle { width:32px; }
  .branch-panel { left:-45px; top:100%; width:210px; }
  .site-header nav a[aria-current]:after { bottom:-13px; }
  .branch-grid { grid-template-columns:1fr; padding-block:30px 55px; gap:16px; }
  .branch-card { padding:26px; }
  .branch-card h2 { margin-top:22px; }
  .branch-arrow { bottom:26px; right:26px; }
}
@media(max-width:380px) { .branch-toggle { width:24px; } }

/* Source-backed Freight content: compact evidence and expandable product details. */
.freight-origin { padding-top:34px; margin-bottom:0; color:var(--muted); font-size:17px; }
.freight-evidence { padding-block:65px; }
.evidence-grid { display:grid; grid-template-columns:1fr 1.15fr; gap:8%; }
.research-question h2 { font-size:clamp(30px,3.3vw,48px); margin:22px 0; }
.research-question>p:not(.eyebrow) { max-width:460px; color:var(--muted); font-size:16px; }
.research-question>.caption { font-size:12px; }
.survey-table { border-collapse:collapse; width:100%; table-layout:fixed; }
.survey-table th { text-align:left; font-weight:400; }
.survey-table thead th { padding:0 0 14px; font-size:12px; color:var(--muted); }
.survey-table th:first-child { width:49%; }
.survey-table th:nth-child(2) { width:16%; }
.survey-table tbody th, .survey-table td { padding:17px 0; border-top:1px solid #c6ccd2; }
.survey-table tbody th { font-size:15px; padding-right:14px; line-height:1.4; }
.survey-table td:nth-child(2) { font-size:26px; font-variant-numeric:tabular-nums; letter-spacing:-.04em; }
.survey-meter meter { display:block; width:100%; height:7px; border:0; background:#d6dbe0; border-radius:0; }
.survey-meter meter::-webkit-meter-bar { height:7px; border:0; border-radius:0; background:#d6dbe0; }
.survey-meter meter::-webkit-meter-optimum-value { background:#52697c; border-radius:0; }
.survey-meter meter::-moz-meter-bar { background:#52697c; }
.research-reading, .freight-product-content { padding-block:60px 25px; }
.research-reading-grid { display:grid; grid-template-columns:1fr 1.15fr; gap:8%; }
.research-reading h2 { font-size:clamp(30px,3vw,44px); margin-top:22px; }
.research-reading-grid>div>p:not(.eyebrow), .cost-design p:not(.eyebrow), .product-audiences p:not(.eyebrow) { font-size:16px; color:var(--muted); }
.source-note + .source-note { margin-top:0; border-top:0; }
.research-reading .source-note summary, .freight-product-content .source-note summary { gap:12px; }
.question-list { padding-left:22px; font-size:14px; color:var(--muted); line-height:1.7; }
.question-list li + li { margin-top:12px; }
.product-audiences { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.product-audiences h2 { font-size:clamp(24px,2.5vw,36px); margin:15px 0 12px; }
.product-modules { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; margin-top:30px; align-items:start; }
.product-modules details { border-top:1px solid var(--line); padding:22px 0; }
.product-modules summary { position:relative; cursor:pointer; list-style:none; padding-right:20px; }
.product-modules summary::-webkit-details-marker { display:none; }
.product-modules h3 { font-size:22px; margin-top:18px; }
.product-modules .module-plus { position:absolute; right:5px; top:0; width:20px; height:20px; line-height:20px; text-align:center; font-size:20px; color:var(--muted); }
.product-modules [open] .module-plus { transform:rotate(45deg); }
.product-modules p { margin:18px 0 0; font-size:14px; color:var(--muted); }
.cost-design { display:grid; grid-template-columns:1fr 1fr; gap:8%; margin-top:48px; padding:40px; background:var(--surface); }
.cost-design h2 { font-size:clamp(30px,3vw,44px); margin:20px 0; }
.cost-design p:last-child { margin-bottom:0; }
.cost-assumptions ul { list-style:none; padding:0; margin:0; }
.cost-assumptions li { padding:20px 0; border-bottom:1px solid var(--line); font-size:20px; letter-spacing:-.025em; }
.cost-assumptions li:first-child { border-top:1px solid var(--line); }
@media(max-width:900px) { .product-modules { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  .evidence-grid, .research-reading-grid, .cost-design { grid-template-columns:1fr; gap:30px; }
  .freight-evidence { padding-block:40px; }
  .research-reading, .freight-product-content { padding-block:40px 10px; }
  .product-audiences { grid-template-columns:1fr; gap:22px; }
  .product-modules { gap:12px 20px; }
  .product-modules h3 { font-size:19px; }
  .cost-design { margin-top:25px; padding:24px; }
  .survey-table th:first-child { width:57%; }
  .survey-table th:nth-child(2) { width:20%; }
  .survey-table tbody th { font-size:14px; }
  .survey-table td:nth-child(2) { font-size:24px; }
}
@media(max-width:380px) { .product-modules { grid-template-columns:1fr; } }

/* Documentary stills retain the full frame at every viewport width. */
.fieldwork-media { padding-block:30px 40px; }
.fieldwork-figure { margin:0; }
.fieldwork-figure img { display:block; width:100%; height:auto; object-fit:contain; }
.fieldwork-figure figcaption { margin-top:14px; color:var(--muted); font-size:12px; line-height:1.65; }
.fieldwork-media + .freight-origin { padding-top:0; }
@media(max-width:700px) { .fieldwork-media { padding-block:18px 30px; } }

/* Integrated Field Research hero: real SDR candid frame, not the AI mockup.
   The glasses end near 49% of the uncropped photo; fade coordinates are
   relative to that photo, excluding the white title-offset area. */
body[data-page="freight-research"] .site-header { border-bottom-color:transparent; }
.field-research-hero { --research-photo-offset:88px; position:relative; isolation:isolate; }
.research-hero-scene { position:relative; margin:0; padding-top:var(--research-photo-offset); }
.research-hero-scene img { display:block; width:100%; height:auto; object-fit:contain; }
.research-hero-scene::after {
  content:""; position:absolute; inset:var(--research-photo-offset) 0 0; pointer-events:none;
  background:linear-gradient(180deg, #fbfbfd 0%, rgba(251,251,253,.94) 12%, rgba(251,251,253,.65) 22%, rgba(251,251,253,.36) 32%, rgba(251,251,253,.16) 40%, rgba(251,251,253,.06) 45%, rgba(251,251,253,0) 49%);
}
.research-hero-content { position:absolute; inset:0 0 auto; z-index:1; max-width:none; padding:38px clamp(24px,4.15vw,80px) 0; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.research-hero-nav { display:flex; align-items:center; gap:28px; font-size:16px; flex-shrink:0; }
.research-hero-nav a { display:inline-flex; align-items:center; min-height:44px; }
.research-hero-nav a { color:#50545a; }
.research-hero-nav a:hover { color:#1d1d1f; }
.research-hero-content h1 { font-size:clamp(48px,8.6vw,156px); font-weight:600; line-height:1; letter-spacing:-.06em; color:#171719; white-space:nowrap; }
.research-intro.detail-intro { max-width:1600px; margin:0 auto; padding-block:24px 30px; font-size:16px; }
@media(max-width:900px) {
  .field-research-hero { --research-photo-offset:70px; }
  .research-hero-content { padding-top:12px; flex-direction:column; align-items:stretch; gap:7px; }
  .research-hero-nav { order:-1; justify-content:flex-end; gap:24px; font-size:14px; }
}
@media(max-width:700px) {
  .field-research-hero { --research-photo-offset:48px; }
  .research-hero-content { padding-top:0; flex-direction:column; align-items:stretch; gap:7px; }
  .research-hero-nav { order:-1; justify-content:flex-end; gap:24px; font-size:12px; }
  .research-hero-content h1 { font-size:clamp(32px,10.1vw,70px); }
  .research-intro.detail-intro { padding-block:20px 26px; font-size:14px; }
}
