/* Editorial identity: asphalt, paper, road paint. Components retain their data hooks. */
:root[data-theme="light"], :root {
  --bg:#f3f1e9; --surface:#faf9f5; --surface-2:#eae8df; --surface-3:#dfddd3;
  --text:#222720; --text-2:#52574e; --muted:#656b60;
  --accent:#a93615; --accent-hover:#82260f; --accent-ink:#fff; --accent-soft:#f3dfd3;
  --border:rgba(40,48,35,.17); --border-strong:rgba(40,48,35,.32);
  --radius:4px; --radius-sm:3px; --radius-xs:2px; --shadow:none;
  --maxw:1440px; --gutter:clamp(20px,4.2vw,72px); --header-h:84px;
  --font:'Inter',Arial,sans-serif;
}
:root[data-theme="dark"] {
  --bg:#171c18; --surface:#202720; --surface-2:#252d25; --surface-3:#323b31;
  --text:#eeeee4; --text-2:#c0c6b9; --muted:#a6afa0; --accent:#ff9b73;
  --accent-hover:#ffbda3; --accent-ink:#271b15; --accent-soft:#493022;
  --border:rgba(224,234,213,.16); --border-strong:rgba(224,234,213,.3);
  --radius:4px; --shadow:none;
}
::selection { background:#df5c31; color:#fff; }
.site-header { background:var(--bg); backdrop-filter:none; border-bottom:1px solid var(--border-strong); }
.header-inner { height:var(--header-h); }
.brand { gap:0; }
.brand-mark { display:none; }
.brand-text { font-size:24px; font-weight:700; letter-spacing:-1.1px; line-height:1; }
.brand-dot { color:var(--accent); padding:0 2px; }
.brand-sub { display:block; font:9px var(--mono); letter-spacing:2.3px; margin-top:8px; }
.site-nav a { border-radius:0; font-size:12px; font-weight:500; }
.site-nav a.is-current { color:var(--accent); background:none; box-shadow:inset 0 -2px var(--accent); }
.site-nav .nav-cta { background:var(--text); color:var(--bg); border-radius:2px; }
.icon-btn { border-radius:50%; }
.hero { padding:28px 0 0; background:var(--bg); }
.hero-meta { display:flex; align-items:center; justify-content:space-between; font:10px var(--mono); letter-spacing:1.2px; color:var(--muted); }
.status-dot { display:inline-block; width:6px; height:6px; background:#db6139; border-radius:50%; margin-right:8px; vertical-align:middle; }
.hero-heading { display:grid; grid-template-columns:1fr 240px; align-items:end; gap:24px; margin:42px 0 34px; }
.hero h1 { font-size:clamp(42px,5.85vw,87px); line-height:1.02; letter-spacing:-.062em; font-weight:500; max-width:none; margin:0; }
.hero h1 span { color:var(--muted); }
.hero-intro { font-size:14px; line-height:1.65; padding-bottom:5px; }
.hero-intro p { margin-bottom:20px; }
.text-link { text-decoration:none; color:var(--text); font-size:12px; font-weight:600; display:inline-flex; gap:25px; border-bottom:1px solid var(--border-strong); padding-bottom:8px; }
.observation { margin:0; background:#222a22; color:#f6f5ea; }
.observation-bar { display:flex; justify-content:space-between; padding:12px 18px; font:10px var(--mono); letter-spacing:1px; }
.observation-bar b { font-weight:400; margin-left:20px; color:#c2c9b9; }
.observation-screen { position:relative; aspect-ratio:2.75; overflow:hidden; }
.observation-screen video { width:100%; height:100%; object-fit:cover; object-position:center 48%; display:block; }
.observation-screen::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(10,20,12,.74),transparent 62%); pointer-events:none; transition:opacity .6s; }
.observation-caption { position:absolute; z-index:1; top:18%; left:4%; transition:opacity .4s; pointer-events:none; }
.observation-caption p { font-size:clamp(26px,3.6vw,50px); line-height:1.08; letter-spacing:-.035em; margin:20px 0; }
.observation-caption>span:last-child { font:9px var(--mono); letter-spacing:2px; }
.frame-corner { display:block; width:25px; height:25px; border-left:2px solid #ff824b; border-top:2px solid #ff824b; }
.film-control { position:absolute; z-index:2; bottom:22px; right:24px; background:#f3f1e9; color:#222720; border:0; padding:13px 20px; font:12px var(--font); cursor:pointer; display:flex; gap:12px; align-items:center; }
.film-control:hover { background:#f3aa83; }
.observation.is-playing .observation-caption, .observation.is-playing .observation-screen::after { opacity:0; }
.observation.is-playing .observation-screen { aspect-ratio:16/9; }
.observation.is-playing video { object-fit:contain; }
.observation figcaption { display:flex; justify-content:space-between; gap:16px; padding:13px 18px; color:#c4cbbd; font:10px var(--mono); }
.observation figcaption a { color:#fff; text-decoration:none; }
.hero-bottom { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:25px 0 30px; }
.hero-bottom p { font-size:13px; color:var(--text-2); margin:0; }
.btn { border-radius:2px; padding:14px 20px; font-size:12px; transition:background .2s,transform .2s; }
.btn:hover { transform:translateY(-2px); }
.btn span { margin-left:25px; }
.stat-row { gap:0; border-top:1px solid var(--border-strong); border-bottom:1px solid var(--border-strong); }
.stat-row .stat { border:0; border-right:1px solid var(--border); border-radius:0; background:none; box-shadow:none; padding:24px 28px; display:flex; flex-direction:column-reverse; gap:10px; }
.stat-row .stat:first-child { padding-left:0; }
.stat-row .stat:last-child { border-right:0; }
.stat-row .stat dd { font-size:clamp(34px,3.8vw,52px); font-weight:500; letter-spacing:-.05em; }
.stat-row .stat dt { font:10px var(--mono); text-transform:uppercase; letter-spacing:.6px; }
.section { padding:90px 0; }
.section-head { max-width:none; display:grid; grid-template-columns:1fr; margin-bottom:40px; }
.kicker { font:10px var(--mono); letter-spacing:1px; color:var(--accent); padding-top:10px; }
.section-head h2 { font-size:clamp(30px,3.9vw,54px); font-weight:500; line-height:1.06; letter-spacing:-.045em; max-width:800px; margin:0; }
.section-head .section-lead { grid-column:1; margin-top:18px; font-size:14px; max-width:650px; }
.card { border-radius:4px; padding:26px; box-shadow:none; }
.card h3 { font-size:16px; letter-spacing:-.025em; }
.card p { font-size:14px; }
.problem-cards { gap:0; border-top:1px solid var(--border-strong); border-bottom:1px solid var(--border-strong); margin-bottom:36px; counter-reset:problem; }
.problem-cards .card { border:0; border-right:1px solid var(--border); background:none; padding:30px; border-radius:0; }
.problem-cards .card:first-child { padding-left:0; }
.problem-cards .card:last-child { border:0; }
.problem-cards .card::before { counter-increment:problem; content:'0' counter(problem); display:block; font:11px var(--mono); color:var(--accent); margin-bottom:28px; }
.problem-cards .card h3 { font-size:24px; font-weight:500; }
.problem-cards .card p { font-size:13px; line-height:1.8; }
.pipeline-card { background:var(--surface); }
.technical-details { border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin:25px 0 35px; }
.technical-details summary { padding:22px 0; cursor:pointer; font-weight:500; }
.technical-details summary span { float:right; font:11px var(--mono); padding-top:5px; color:var(--muted); }
.technical-details[open] { padding-bottom:25px; }
.steps li { border-radius:2px; box-shadow:none; }
.vtab { border-radius:2px; transition:background .2s; }
.vtab[aria-selected="true"] { box-shadow:inset 0 -3px var(--accent); }
#results-panel { padding:20px; border-color:var(--border-strong); }
.class-grid { gap:0; }
.class-card { border-radius:0; }
.site-footer { background:#222a22; color:#eeeede; padding:55px 0; }
.footer-inner { display:flex; flex-wrap:wrap; align-items:end; gap:28px; }
.footer-wordmark { font-size:clamp(38px,6vw,80px); line-height:1; letter-spacing:-.065em; }
.footer-wordmark span { color:#f27d4b; }
.site-footer .muted { color:#b5bead; max-width:320px; }
.reveal-ready { opacity:0; transform:translateY(20px); transition:opacity .65s,transform .65s; }
.reveal-ready.is-visible { opacity:1; transform:none; }
.reading-progress { height:2px; position:fixed; top:0; left:0; width:100%; background:#dc6139; transform:scaleX(0); transform-origin:left; z-index:100; pointer-events:none; }
@media(min-width:901px) { .site-nav { margin-left:auto; } }
@media(max-width:1100px) { .hero-heading { grid-template-columns:1fr 190px; }.site-nav a { padding:8px; }.brand-text { font-size:21px; }}
@media(max-width:760px) {
  :root { --header-h:72px; }
  .hero-meta { font-size:8px; letter-spacing:.5px; }.hero-meta>span:last-child { display:none; }
  .hero-heading { grid-template-columns:1fr; margin:30px 0 25px; gap:22px; }
  .hero h1 { font-size:clamp(39px,8.4vw,60px); }
  .hero-intro { display:flex; justify-content:space-between; gap:15px; font-size:12px; align-items:end; }.hero-intro p { margin:0; }.text-link { font-size:11px; gap:8px; }
  .observation-screen { aspect-ratio:1.45; }.observation-bar { font-size:8px; padding:10px; }.observation-bar>span:last-child { display:none; }
  .observation-caption { left:6%; }.observation-caption p { font-size:32px; }.observation-caption>span:last-child { font-size:7px; }
  .film-control { bottom:12px; right:12px; font-size:11px; padding:10px 13px; }
  .observation figcaption { padding:12px; font-size:9px; flex-direction:column; gap:8px; }
  .hero-bottom { align-items:start; flex-direction:column; padding:22px 0; }
  .stat-row { grid-template-columns:1fr 1fr; }.stat-row .stat { padding:20px 0 20px 20px; }.stat-row .stat:nth-child(odd) { padding-left:0; }.stat-row .stat:nth-child(even) { border-right:0; }.stat-row .stat:nth-child(-n+2) { border-bottom:1px solid var(--border); }.stat-row .stat dt { font-size:9px; }
  .section { padding:55px 0; }.section-head { grid-template-columns:1fr; gap:12px; margin-bottom:28px; }.section-head .section-lead { grid-column:1; margin:0; }.section-head h2 { font-size:36px; }
  .problem-cards .card { padding:24px 0; border-right:0; border-bottom:1px solid var(--border); }.problem-cards .card::before { margin-bottom:12px; }
  .technical-details summary span { float:none; display:block; padding-top:8px; }.card { padding:18px; }
  .footer-inner { align-items:start; flex-direction:column; }
}
@media(prefers-reduced-motion:reduce) { .reveal-ready { opacity:1; transform:none; }.btn:hover { transform:none; } }
.team-pending { display:flex; align-items:center; gap:35px; padding:30px 0; border-top:1px solid var(--border-strong); }
.team-stamp { flex-shrink:0; display:grid; place-items:center; width:110px; height:110px; border:1px solid var(--border-strong); font:20px var(--mono); color:var(--accent); }
.team-pending h3 { font-size:26px; font-weight:500; }.team-pending p { margin-bottom:8px; }
.site-nav .nav-cta:hover { background:var(--accent); color:var(--accent-ink); }
.site-nav .nav-cta { color:var(--bg) !important; }
@media(max-width:760px) { .team-pending { align-items:start; gap:20px; }.team-stamp { width:65px; height:65px; font-size:12px; } }
/* Team roster: shared baselines and a small captain designation. */
#team-root > .section-lead { font-size:13px; color:var(--muted); margin-bottom:32px; }
.team-grid { gap:0; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--border-strong); }
.team-grid > .card.member { background:transparent; border:0; border-radius:0; box-shadow:none; border-right:1px solid var(--border); padding:24px 30px 12px; gap:0; }
.team-grid > .card.member:first-child { padding-left:0; }
.team-grid > .card.member:last-child { border-right:0; padding-right:0; }
.member-topline { display:flex; justify-content:space-between; align-items:center; height:25px; margin-bottom:28px; }
.member-index { font:11px var(--mono); color:var(--muted); letter-spacing:1px; }
.captain-badge { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font:500 10px var(--mono); letter-spacing:.5px; }
.captain-badge span { font-size:15px; }
.member-head { align-items:flex-start; }
.member-head h3 { font-weight:500; line-height:1.25; }
.member-surname { display:block; font-size:clamp(21px,2.1vw,30px); letter-spacing:-.035em; }
.member-given { display:block; font-size:14px; font-weight:400; letter-spacing:0; color:var(--text-2); margin-top:7px; }
.member-head p.member-role { font-size:12px; line-height:1.7; color:var(--muted); margin-top:24px; max-width:245px; }
.member .social:empty { display:none; }
@media(max-width:760px) {
 .team-grid { grid-template-columns:1fr; }
 .team-grid > .card.member, .team-grid > .card.member:first-child, .team-grid > .card.member:last-child { padding:23px 0 26px; border-right:0; border-bottom:1px solid var(--border); }
 .member-topline { margin-bottom:16px; }
 .member-surname { font-size:28px; }
 .member-head p.member-role { margin-top:15px; max-width:none; }
}

/* Text-led opening. No footage, badges or decorative telemetry. */
.hero { padding:0; }
.hero-composition { padding:100px 0 65px; }
.hero h1.hero-statement { display:block; font-size:clamp(58px,8.4vw,122px); font-weight:500; line-height:1.04; letter-spacing:-.065em; margin:0; max-width:none; }
.hero-statement .hero-line { display:block; color:var(--text); }
.hero-statement .hero-line + .hero-line { margin-top:7px; color:#a6afa0; }
.hero-statement em { font-family:Georgia,'Times New Roman',serif; font-weight:400; letter-spacing:-.055em; color:#eea27b; }
.hero-summary { display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-top:65px; align-items:start; }
.hero-summary > p { font-size:15px; color:var(--muted); margin:0; padding-top:3px; }
.hero-summary-right { max-width:480px; }
.hero-summary-right > p { font-size:17px; line-height:1.65; color:var(--text-2); margin:0 0 26px; }
.hero-actions { display:flex; align-items:center; gap:30px; flex-wrap:wrap; }
.hero-actions .btn { padding:17px 22px; }
.hero-secondary { display:inline-flex; gap:20px; align-items:center; color:var(--text); text-decoration:none; font-size:12px; padding:12px 0; border-bottom:1px solid var(--border-strong); transition:color .2s,border-color .2s; }
.hero-secondary:hover { color:var(--accent); border-color:var(--accent); }
#hero-stats .stat { padding-top:24px; padding-bottom:25px; }
#hero-stats .stat dd { font-size:clamp(30px,3vw,43px); }
@media(prefers-reduced-motion:no-preference) {
 .hero-line { animation:hero-arrive .85s cubic-bezier(.2,.7,.2,1) both; }
 .hero-line:nth-child(2) { animation-delay:.12s; }
 .hero-summary { animation:hero-arrive .85s .24s cubic-bezier(.2,.7,.2,1) both; }
 @keyframes hero-arrive { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
}
@media(max-width:760px) {
 .hero-composition { padding:60px 0 38px; }
 .hero h1.hero-statement { font-size:clamp(43px,8.4vw,64px); line-height:1.12; }
 .hero-statement em { display:block; }
 .hero-summary { grid-template-columns:1fr; gap:22px; margin-top:36px; }
 .hero-summary > p { font-size:13px; }
 .hero-summary-right > p { font-size:15px; }
 .hero-actions { gap:18px; }
 .hero-actions .btn { padding:15px 16px; }
 .hero-actions .btn span { margin-left:8px; }
 .hero-secondary { gap:10px; }
}
/* Demo workspace: one upload surface and a quiet, structured status column. */
#demo .demo-grid { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:0; align-items:stretch; border:1px solid var(--border-strong); border-radius:8px; overflow:hidden; background:#1b221c; }
#demo .demo-grid > .card { border:0; border-radius:0; padding:32px; background:transparent; }
#demo .demo-grid > .demo-status { border-left:1px solid var(--border); background:#20281f; }
#demo .card-head { margin-bottom:25px; gap:12px; }
#demo .card-head h3 { font-size:16px; font-weight:500; }
#demo .server-pill { font-size:10px; border:0; background:none; padding:0; }
#demo .dropzone { min-height:260px; border:1px dashed #5e6a58; border-radius:5px; background:#171e18; padding:30px 20px; gap:10px; }
#demo .dropzone:hover, #demo .dropzone.is-drag, #demo .dropzone:focus-within { border-color:var(--accent); background:#252b21; }
#demo .dropzone svg { width:42px; height:42px; padding:0; margin-bottom:16px; stroke-width:1.2; transition:transform .2s; }
#demo .dropzone:hover svg { transform:translateY(-4px); }
#demo .dropzone .dz-title { font-size:29px; font-weight:500; letter-spacing:-1px; }
#demo .dz-instruction { font-size:13px; color:var(--text-2); }
#demo .dropzone .dz-sub { margin-top:14px; font:10px var(--mono); color:var(--muted); }
#demo .demo-upload > .demo-actions { margin-top:18px; }
#demo .demo-upload > .demo-actions .btn-primary { flex:1; min-height:46px; }
#demo .demo-notes { margin-top:22px; border-top:1px solid var(--border); padding-top:17px; }
#demo .demo-notes summary { cursor:pointer; font-size:11px; color:var(--muted); }
#demo .limits { font-size:12px; line-height:1.7; }
#demo .status-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; margin:0 0 30px; }
#demo .status-steps li { border:0; border-radius:0; border-top:2px solid #45503f; padding:10px 0 0; background:none; font:10px var(--mono); font-weight:400; }
#demo .status-steps li.is-current { border-color:var(--accent); color:var(--accent); }
#demo .status-steps li.is-done { border-color:var(--good-ink); color:var(--good-ink); }
#demo .status-steps li.is-error { border-color:var(--critical); color:var(--critical); }
#demo .status-title { font-size:20px; font-weight:500; letter-spacing:-.4px; margin-bottom:8px; }
#demo .status-sub { font-size:12px; line-height:1.7; max-width:350px; }
.demo-deliverables { margin-top:25px; }
.demo-deliverable { display:flex; gap:18px; border-top:1px solid var(--border); padding:16px 0; }
.deliverable-index { font:10px var(--mono); color:var(--accent); padding-top:3px; }
.demo-deliverable h4 { font-size:13px; font-weight:500; margin:0 0 5px; }
#demo .demo-deliverable p { font-size:11px; line-height:1.65; color:var(--muted); margin:0; }
@media(max-width:860px) {
 #demo .demo-grid { grid-template-columns:1fr; }
 #demo .demo-grid > .card { padding:24px; }
 #demo .demo-grid > .demo-status { border-left:0; border-top:1px solid var(--border); }
}
@media(max-width:480px) {
 #demo .demo-grid > .card { padding:20px; }
 #demo .dropzone { min-height:230px; padding:25px 10px; }
 #demo .dropzone .dz-title { font-size:25px; }
 #demo .dropzone .dz-sub { font-size:9px; }
}
/* Report chapters, one compact slide at a time. */
.report-deck { border-top:1px solid var(--border-strong); border-bottom:1px solid var(--border-strong); }
.report-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 0; border-bottom:1px solid var(--border); }
.report-tabs { display:flex; gap:24px; }
.report-tabs button { border:0; background:none; color:var(--muted); padding:10px 0; cursor:pointer; font:13px var(--font); border-bottom:2px solid transparent; }
.report-tabs button[aria-selected=true] { color:var(--text); border-color:var(--accent); }
.report-controls { display:flex; align-items:center; gap:8px; }
.report-counter { font:11px var(--mono); color:var(--muted); margin-right:15px; white-space:nowrap; }
.report-arrow { width:36px; height:36px; border:1px solid var(--border-strong); background:transparent; border-radius:50%; color:var(--text); font-size:18px; cursor:pointer; transition:background .2s; }
.report-arrow:hover { background:var(--surface-3); }
.report-slide { padding:30px 0 22px; }
.report-slide > h3 { font-size:clamp(24px,2.5vw,34px); font-weight:500; letter-spacing:-.035em; margin-bottom:30px; }
.report-highlights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px; }
.report-point-number { font:10px var(--mono); color:var(--accent); }
.report-highlights h4 { font-size:15px; font-weight:500; margin:12px 0 8px; }
.report-highlights p { font-size:13px; color:var(--muted); line-height:1.65; max-width:300px; margin:0; }
.report-details { margin-top:28px; }
.report-details summary { cursor:pointer; font-size:12px; color:var(--text-2); width:fit-content; padding:5px 0; }
.report-details ul { max-width:850px; font-size:13px; line-height:1.8; color:var(--text-2); margin:20px 0 0; }
.report-details li { margin-bottom:14px; }
.report-evidence-link { display:inline-block; margin-top:20px; font-size:12px; color:var(--muted); text-decoration:none; }
@media(prefers-reduced-motion:no-preference) { .report-highlights { animation:hero-arrive .3s ease both; } }
@media(max-width:640px) {
 .report-toolbar { flex-wrap:wrap; gap:12px; }
 .report-tabs { gap:18px; width:100%; }
 .report-tabs button { font-size:12px; }
 .report-controls { margin-left:auto; }
 .report-highlights { grid-template-columns:1fr; gap:20px; }
 .report-highlights article { display:grid; grid-template-columns:25px 1fr; column-gap:10px; }
 .report-point-number { grid-row:1/3; padding-top:3px; }
 .report-highlights h4 { margin:0 0 5px; }
 .report-highlights p { grid-column:2; max-width:none; }
 .report-slide > h3 { font-size:25px; margin-bottom:25px; }
}

/* Team roster: the three cards share their grid rows (subgrid), so the role, "Built for this
   project" and the links start on the same line in every card. */
@media(min-width:761px) {
 .team-grid > .card.member { display:grid; grid-row:span 4; grid-template-rows:subgrid; row-gap:0; }
}
.member-built { padding:22px 0 28px; }
.member-built h4 { margin:0 0 14px; font:500 10px var(--mono); letter-spacing:1.2px; text-transform:uppercase; color:var(--muted); }
.member .social { align-self:end; border-top:1px solid var(--border); padding-top:22px; }
@media(max-width:760px) { .member-built { padding-bottom:20px; } .member .social { align-self:stretch; padding-top:18px; } }
