@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #06090b;
  --bg-2: #0c1216;
  --text: #eef3f3;
  --muted: #9aa7ad;
  --line: rgba(214, 236, 242, .14);
  --accent: #7de6ff;
  --paper: #eef2f1;
  --paper-text: #0b1114;
  --paper-muted: #46545a;
  --paper-line: rgba(11, 17, 20, .14);
  --wrap: min(100% - 2rem, 1320px);
  --header: 72px;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; background: var(--bg); scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; color: var(--text); background: var(--bg); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--text); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.eyebrow { margin-bottom: 1.25rem; font: 500 .875rem/1.4 var(--mono); letter-spacing: .02em; color: var(--muted); }
.paper .eyebrow { color: var(--paper-muted); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border: 1px solid var(--text); border-radius: 999px; background: var(--text); color: var(--bg); font: 500 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.button:hover { background: var(--accent); border-color: var(--accent); }
.button-small { min-height: 40px; padding: 0 1.1rem; font-size: .875rem; }
.button-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button-ghost:hover { background: transparent; border-color: var(--text); }
.text-link { font-size: .9375rem; text-underline-offset: .35em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.text-link:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }

/* Header */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header); padding-inline: max(1rem, (100% - 1320px) / 2); display: flex; align-items: center; gap: 2rem; transition: background .3s, color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(6, 9, 11, .82); backdrop-filter: blur(16px); border-color: var(--line); }
.site-header.on-paper { background: rgba(238, 242, 241, .86); color: var(--paper-text); border-color: var(--paper-line); }
.site-header.on-paper .button { background: var(--paper-text); color: var(--paper); border-color: var(--paper-text); }
.site-header.on-paper .button:hover { background: #20343c; }
.brand { display: inline-flex; align-items: center; gap: .55rem; margin-right: auto; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.site-nav { display: flex; gap: 2rem; }
.site-nav a { font-size: .9375rem; text-decoration: none; opacity: .82; padding-block: .75rem; }
.site-nav a:hover { opacity: 1; }
.menu-button { display: none; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: 500 .9375rem var(--sans); cursor: pointer; }
.on-paper .menu-button { border-color: var(--paper-line); }
.menu { position: fixed; z-index: 100; inset: 0; padding: 1.25rem 1rem 2rem; display: flex; flex-direction: column; gap: 2rem; background: var(--bg); }
.menu[hidden] { display: none; }
.menu-close { align-self: flex-end; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font: 500 .9375rem var(--sans); cursor: pointer; }
.menu nav { display: grid; gap: .25rem; margin-top: 1rem; }
.menu nav a { padding: .6rem 0; font-size: 2rem; letter-spacing: -.03em; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu .button { align-self: flex-start; }

/* Scene: hero + scroll-built machine */
.scene { position: relative; height: 380vh; }
.scene-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); isolation: isolate; }
.scene-poster img, .scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-canvas { opacity: 0; transition: opacity .4s; }
.scene.is-live .scene-canvas { opacity: 1; }
.scene-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(90deg, rgba(6,9,11,.94) 0%, rgba(6,9,11,.72) 32%, rgba(6,9,11,.12) 64%, rgba(6,9,11,0) 100%),
  linear-gradient(0deg, rgba(6,9,11,.85) 0%, rgba(6,9,11,0) 30%),
  linear-gradient(180deg, rgba(6,9,11,.6) 0%, rgba(6,9,11,0) 18%); }
.scene-hero, .chapters { position: absolute; z-index: 2; left: max(1rem, (100% - 1320px) / 2); width: min(640px, 100% - 2rem); }
.scene-hero { top: 50%; transform: translateY(-50%); will-change: opacity, transform; }
.scene-hero h1 { font-size: clamp(3rem, 7.4vw, 7rem); font-weight: 600; line-height: .96; letter-spacing: -.045em; }
.lede { max-width: 33rem; margin-top: 1.75rem; color: #c9d4d8; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.chapters { bottom: clamp(5.5rem, 14vh, 9rem); margin: 0; padding: 0; list-style: none; }
.chapter { position: absolute; bottom: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.chapter h2 { margin-bottom: 1.1rem; font: italic 400 clamp(3.25rem, 7vw, 6.25rem)/.95 var(--serif); letter-spacing: -.02em; }
.chapter h2 em { font-style: italic; }
.chapter p { max-width: 30rem; color: #c9d4d8; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.rail { position: absolute; z-index: 3; left: max(1rem, (100% - 1320px) / 2); right: max(1rem, (100% - 1320px) / 2); bottom: 2.25rem; display: flex; justify-content: space-between; padding-top: .9rem; border-top: 1px solid var(--line); font: 500 .875rem var(--mono); color: var(--muted); opacity: 0; transition: opacity .3s; }
.rail i { position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.scene.is-building .rail { opacity: 1; }
.scroll-hint { position: absolute; z-index: 3; right: max(1rem, (100% - 1320px) / 2); bottom: 2.25rem; font: 500 .875rem var(--mono); color: var(--muted); transition: opacity .3s; }
.scene.is-building .scroll-hint { opacity: 0; }

/* Static scene (reduced motion / Save-Data / no JS canvas) */
.is-static .scene { height: auto; }
.is-static .scene-stage { position: relative; height: auto; min-height: 100svh; padding: calc(var(--header) + 4rem) 0 4rem; display: flex; flex-direction: column; justify-content: center; }
.is-static .scene-canvas, .is-static .rail, .is-static .scroll-hint { display: none; }
.is-static .scene-shade { background: linear-gradient(90deg, rgba(6,9,11,.92), rgba(6,9,11,.55)), linear-gradient(0deg, rgba(6,9,11,.92) 0%, rgba(6,9,11,.25) 55%); }
.is-static .scene-hero { position: relative; top: auto; left: auto; transform: none; width: var(--wrap); margin-inline: auto; }
.is-static .chapters { position: relative; left: auto; bottom: auto; width: var(--wrap); margin: 5rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.is-static .chapter { position: relative; opacity: 1; visibility: visible; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.is-static .chapter h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }

/* Sections */
.section { padding-block: clamp(5rem, 11vw, 9.5rem); }
.paper { background: var(--paper); color: var(--paper-text); color-scheme: light; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 2rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .eyebrow { margin: .6rem 0 0; }
.section h2 { font-size: clamp(2.25rem, 4.4vw, 4.25rem); font-weight: 560; line-height: 1.02; letter-spacing: -.04em; max-width: 18ch; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--paper-line); }
.service { padding: 2.25rem 2.5rem 2.5rem 0; border-bottom: 1px solid var(--paper-line); }
.service:nth-child(even) { padding: 2.25rem 0 2.5rem 2.5rem; border-left: 1px solid var(--paper-line); }
.service h3 { margin-bottom: .9rem; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 560; letter-spacing: -.025em; }
.service p { max-width: 32rem; color: var(--paper-muted); }
.deliverables { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.deliverables li { padding: .35rem .7rem; border: 1px solid var(--paper-line); border-radius: 999px; font: 500 .875rem var(--mono); color: var(--paper-text); }

/* Blueprint intake */
.blueprint { background: radial-gradient(120% 80% at 80% 0%, #0f2129 0%, var(--bg) 60%); }
.blueprint-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.blueprint-intro > p { max-width: 32rem; margin-top: 1.25rem; color: var(--muted); }
.intake { margin-top: 2.5rem; }
.steps { display: flex; gap: .5rem; margin-bottom: 1.75rem; font: 500 .875rem var(--mono); }
.steps span { flex: 1; padding-top: .6rem; border-top: 2px solid var(--line); color: var(--muted); transition: color .3s, border-color .3s; }
.steps .is-active, .steps .is-done { border-color: var(--accent); color: var(--text); }
.step { margin: 0; padding: 0; border: 0; display: grid; gap: .6rem; }
.step legend { margin-bottom: 1rem; padding: 0; font-size: 1.375rem; font-weight: 560; letter-spacing: -.02em; }
.step label, .label { font-size: .9375rem; color: #c9d4d8; }
.step label:not(:first-of-type), .step .label + .chips + label { margin-top: .9rem; }
.optional, .hint { color: var(--muted); font-size: .875rem; }
textarea, input:not([type="checkbox"]), select { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--text); font: inherit; font-size: 1rem; }
textarea { resize: vertical; min-height: 9rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--bg-2); }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(125, 230, 255, .18); }
[aria-invalid="true"] { border-color: #ff9a8a !important; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; margin: 0 !important; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; transition: background .2s, border-color .2s, color .2s; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1rem !important; font-size: .9375rem; }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.form-error { min-height: 1.5rem; margin-top: 1rem; color: #ffb4a8; font-size: .9375rem; }
.form-actions { display: flex; gap: .75rem; margin-top: .5rem; }
.ai-note { margin-top: 1.25rem; color: var(--muted); font-size: .875rem; }
.intake-done { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--accent); border-radius: 14px; }
.intake-done h3 { margin-bottom: .5rem; font-size: 1.375rem; font-weight: 560; }
.intake-done p { color: #c9d4d8; }

.sheet { position: sticky; top: calc(var(--header) + 2rem); margin: 0; border: 1px solid rgba(125, 230, 255, .35); border-radius: 16px; overflow: hidden; background:
  linear-gradient(rgba(125,230,255,.07) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, rgba(125,230,255,.07) 1px, transparent 1px) 0 0 / 24px 24px,
  #0a1a21; }
.sheet-paper { padding: clamp(1.25rem, 3vw, 2rem); }
.sheet-drawing { width: 100%; height: auto; fill: none; stroke: #b8f1ff; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.sheet-drawing .thin { stroke-width: .7; opacity: .7; }
.sheet-drawing .accent { stroke: var(--accent); stroke-width: 1.5; }
.sheet-drawing .dash { stroke-dasharray: .04 .03; opacity: .75; }
.sheet-drawing text { fill: #9fdcec; stroke: none; font: 500 8.5px var(--mono); letter-spacing: .02em; }
/* Strokes trace themselves, module by module (--i), each time the drawing changes. */
.sheet-drawing.is-tracing .module path:not(.dash), .sheet-drawing.is-tracing .module rect:not(.dash), .sheet-drawing.is-tracing .module circle:not(.dash) { stroke-dasharray: 1; animation: trace 1.1s var(--ease) both; animation-delay: calc(var(--i) * .22s); }
.sheet-drawing.is-tracing .module text, .sheet-drawing.is-tracing .module .dash { animation: ink .5s ease both; animation-delay: calc(var(--i) * .22s + .6s); }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ink { from { opacity: 0; } }
.sheet-legend { margin: .5rem 0 1.5rem; font: 500 .875rem var(--mono); color: var(--muted); }
.sheet-fields { margin: 0; }
.sheet-fields dt { margin-bottom: .3rem; font: 500 .875rem var(--mono); color: var(--accent); }
.sheet-fields dd { margin: 0; color: #d7e3e6; font-size: .9375rem; overflow-wrap: anywhere; }
.sheet-fields dd.is-empty { color: var(--muted); }
.sheet-result { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed rgba(125,230,255,.35); color: #d7e3e6; font-size: .9375rem; }
.sheet-result h4 { margin: 1rem 0 .35rem; font: 500 .875rem var(--mono); color: var(--accent); }
.sheet-result ul { margin: 0; padding-left: 1.1rem; }
.turnstile { margin-top: 1rem; min-height: 65px; }
/* Agent conversation */
.agent-log { display: grid; gap: .6rem; margin-bottom: .75rem; }
.bubble { max-width: 92%; padding: .75rem 1rem; border-radius: 14px; font-size: .9375rem; }
.bubble-ai { justify-self: start; background: rgba(125, 230, 255, .08); border: 1px solid rgba(125, 230, 255, .3); }
.bubble-you { justify-self: end; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.bubble.is-thinking { color: var(--muted); animation: ink 1s ease infinite alternate; }
.unlock { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--accent); border-radius: 14px; }
.unlock h3 { margin-bottom: .5rem; font-size: 1.375rem; font-weight: 560; }
.unlock > p:not(.ai-note):not(.form-error) { color: #c9d4d8; margin-bottom: 1rem; }
.unlock .consent { margin: 0 0 .5rem !important; }
/* Locked part of the preview: visible structure, unreadable content. */
.sheet-locked { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed rgba(125,230,255,.35); }
.locked-label { margin-bottom: .75rem; font: 500 .875rem var(--mono); color: var(--accent); }
.locked-part { margin-bottom: .9rem; animation: reveal .6s var(--ease) both; animation-delay: calc(var(--i) * .12s); }
.locked-part h4 { margin: 0 0 .4rem; font: 500 .875rem var(--mono); color: #d7e3e6; }
.locked-part span { display: block; height: .55rem; margin-bottom: .35rem; border-radius: 4px; background: linear-gradient(90deg, rgba(125,230,255,.22), rgba(125,230,255,.06)); filter: blur(2px); }
.locked-part span:last-child { width: 65%; }
.result-part { animation: reveal .6s var(--ease) both; animation-delay: calc(var(--i) * .35s); }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
/* Title block: the table in the corner of an engineering drawing. */
.title-block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(125, 230, 255, .35); font-family: var(--mono); }
.title-block > div { min-width: 0; padding: .6rem .9rem; border-right: 1px solid rgba(125, 230, 255, .2); border-bottom: 1px solid rgba(125, 230, 255, .2); }
/* Rows: project | type, stage, start, rev | date, drawn by */
.title-block .tb-project { grid-column: 1 / -1; }
.title-block .tb-status { grid-column: span 3; }
.title-block .tb-project, .title-block > div:nth-child(5), .title-block .tb-status { border-right: 0; }
.title-block > div:nth-child(n+6) { border-bottom: 0; }
.title-block span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.title-block strong { display: block; margin-top: .15rem; font-size: .875rem; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-block .tb-project strong { font-size: 1rem; }
.title-block strong.is-empty { color: var(--muted); }

/* Journey */
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; counter-reset: j; }
.journey li { padding-top: 1.5rem; border-top: 1px solid var(--paper-line); counter-increment: j; text-align: center; }
.journey li::before { content: counter(j); display: block; margin-bottom: 2.5rem; font: italic 400 3.5rem/1 var(--serif); color: #1b7d96; }
.journey h3 { margin-bottom: .75rem; font-size: 1.5rem; font-weight: 560; letter-spacing: -.02em; }
.journey p { max-width: 24rem; margin-inline: auto; color: var(--paper-muted); }

/* Founders */
/* Text-only until a new founders photo exists. */
.founders-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 2rem; }
.founders-copy { grid-column: 2; }
.founders-copy p:not(.eyebrow) { margin-top: 1.25rem; color: var(--muted); max-width: 36rem; font-size: 1.1875rem; }

/* FAQ */
.faq-grid .section-head { grid-template-columns: 1fr; margin-bottom: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 4rem; align-items: start; }
.faq { border-top: 1px solid var(--paper-line); }
.faq details { border-bottom: 1px solid var(--paper-line); }
.faq summary { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-size: 1.1875rem; font-weight: 520; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.5rem/1 var(--sans); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40rem; padding-bottom: 1.5rem; color: var(--paper-muted); }

/* Closing + footer */
.closing { padding-block: clamp(6rem, 13vw, 11rem); background:
  linear-gradient(180deg, rgba(6,9,11,.55), rgba(6,9,11,.92)), url("frames/desktop/f100.webp") center / cover no-repeat; }
.closing h2 { max-width: 14ch; font-size: clamp(2.5rem, 5.6vw, 5.25rem); font-weight: 560; line-height: 1; letter-spacing: -.045em; }
.site-footer { padding-block: 3.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-brand { color: var(--text); font-weight: 600; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address strong { color: var(--text); font-weight: 500; }
.site-footer nav { display: grid; gap: .6rem; align-content: start; }
.site-footer .ai-note { margin: 0; }

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .menu-button { display: inline-flex; align-items: center; }
  .blueprint-grid, .founders-grid, .faq-grid { grid-template-columns: 1fr; }
  .sheet { position: relative; top: auto; }
  .founders-copy { grid-column: auto; }
}

@media (max-width: 760px) {
  :root { --header: 64px; }
  .header-cta { display: none; }
  .scene { height: 320vh; }
  .scene-shade { background: linear-gradient(0deg, rgba(6,9,11,.96) 0%, rgba(6,9,11,.78) 42%, rgba(6,9,11,.15) 72%, rgba(6,9,11,.35) 100%); }
  .scene-hero { top: auto; bottom: 5.5rem; transform: none; }
  .scene-hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .chapters { bottom: 6rem; }
  .chapter h2 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .scroll-hint { display: none; }
  .rail { bottom: 1.5rem; }
  .is-static .chapters { grid-template-columns: 1fr; margin-top: 3rem; }
  .section-head { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 2rem 0; border-left: 0; }
  .journey { grid-template-columns: 1fr; }
  .journey li::before { margin-bottom: 1rem; }
  .sheet-fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Demo mode (?demo): narration bar and button press highlight */
.demo-bar { position: fixed; z-index: 300; left: 50%; bottom: 1.25rem; transform: translateX(-50%); width: min(100% - 2rem, 760px); display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem .85rem 1.1rem; border: 1px solid rgba(125, 230, 255, .45); border-radius: 14px; background: rgba(6, 9, 11, .92); backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); font-size: .9375rem; }
.demo-bar span[data-demo-text] { flex: 1; }
.demo-bar a { color: var(--accent); }
.demo-bar button { min-height: 36px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: .875rem; cursor: pointer; }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, .2); flex: none; animation: ink 1s ease infinite alternate; }
.demo-press { box-shadow: 0 0 0 4px rgba(125, 230, 255, .55) !important; transform: scale(.97); }

/* Chat with the AI */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chat { display: grid; gap: .6rem; }
.chat .agent-log { max-height: 340px; overflow-y: auto; padding-right: .25rem; margin-bottom: 0; scroll-behavior: smooth; }
.chat-input { display: flex; gap: .5rem; align-items: flex-end; }
.chat-input textarea { min-height: 3.2rem; resize: none; }
.bubble { white-space: pre-wrap; }

/* Our story */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 2rem; }
.story-grid .eyebrow { margin-top: .6rem; }
.story-copy p { max-width: 38rem; margin-top: 1.25rem; color: var(--paper-muted); font-size: 1.1875rem; }
.story-copy p:first-of-type { color: var(--paper-text); }
@media (max-width: 1024px) { .story-grid { grid-template-columns: 1fr; } }

/* Aura: avatar, name and typing indicator */
.aura-row { display: grid; grid-template-columns: 32px 1fr; column-gap: .6rem; align-items: start; justify-self: start; max-width: 96%; }
.aura-row .bubble { grid-column: 2; max-width: none; justify-self: start; }
.aura-avatar { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #183842, #0a1a21); box-shadow: 0 0 0 1px rgba(125, 230, 255, .45), 0 0 18px rgba(125, 230, 255, .18); }
.aura-avatar svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.aura-avatar circle { stroke-width: .8; stroke-dasharray: 2 2.4; opacity: .7; }
.aura-name { grid-column: 2; margin-bottom: .2rem; font: 500 .8125rem var(--mono); color: var(--accent); }
.typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .35; animation: typing 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Our story photo */
.story-photo { margin: 2.5rem 0 0; }
.story-photo img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 60px rgba(11, 17, 20, .18); }
.story-photo figcaption { margin-top: .75rem; font: 500 .875rem var(--mono); color: var(--paper-muted); }

/* Language */
.i18n-loading body { opacity: 0; }
body { transition: opacity .2s; }
.lang-switch select { width: auto; padding: .45rem 2.2rem .45rem .8rem; font-size: .875rem; }

/* Logo, as on the shirts: light version on dark sections, dark version on paper */
.brand { gap: .65rem; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-logo.brand-mark-dark, .on-paper .brand-logo.brand-mark-light { display: none; }
.on-paper .brand-logo.brand-mark-dark { display: block; }
@media (max-width: 760px) { .brand-logo { height: 36px; } }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { width: auto; height: 44px; }

/* Language pills in the header */
.lang-pills { display: flex; gap: .2rem; margin-left: -1rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; }
.on-paper .lang-pills { border-color: var(--paper-line); }
.lang-pills button { min-width: 2.4rem; min-height: 32px; padding: 0 .6rem; border: 0; border-radius: 999px; background: none; color: inherit; font: 500 .8125rem var(--mono); opacity: .7; cursor: pointer; }
.lang-pills button:hover { opacity: 1; }
.lang-pills button[aria-pressed="true"] { background: var(--text); color: var(--bg); opacity: 1; }
.on-paper .lang-pills button[aria-pressed="true"] { background: var(--paper-text); color: var(--paper); }
@media (max-width: 760px) { .lang-pills button { min-width: 2.1rem; padding: 0 .4rem; } }

/* Active menu item: colour and a short underline that slides in */
.site-nav a { position: relative; transition: color .25s, opacity .25s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav a:hover::after { transform: scaleX(.5); }
.site-nav a.is-active { color: var(--accent); opacity: 1; }
.site-nav a.is-active::after { transform: scaleX(1); }
.on-paper .site-nav a.is-active { color: #1b7d96; }
.menu nav a.is-active { color: var(--accent); }

/* Order facts above the pay button (what, when, final price) */
.order-facts { margin: 1.25rem 0 .25rem; font-size: .9375rem; opacity: .85; }


/* Legal pages: back link and language switch on one line */
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
