/* Layout: an architect's night drawing. Ink-navy sheet, white line work, amber where work is happening.
   Every section is a "sheet" with a title-block label, like a set of construction drawings. Single dark theme by choice. */
:root {
  --sheet: #0E111C;
  --sheet-2: #141927;
  --sheet-3: #1B2133;
  --line: rgba(214, 222, 240, .16);
  --line-strong: rgba(214, 222, 240, .34);
  --chalk: #ECEFF6;
  --chalk-2: #A9B2C6;
  --chalk-3: #7D879C;
  --amber: #FFB648;
  --amber-soft: #F6D49A;
  --amber-glow: rgba(255, 182, 72, .35);
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sheet); color: var(--chalk); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--sheet); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 300; font-stretch: 112%; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--chalk-3); }
.amber { color: var(--amber); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: rgba(14, 17, 28, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.wordmark { font-family: var(--display); font-stretch: 125%; font-weight: 400; font-size: 17px; letter-spacing: .32em; text-decoration: none; padding-left: .32em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font: 600 15px/1 var(--text); padding: 14px 22px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .3s; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #1A1204; box-shadow: 0 0 0 0 var(--amber-glow); }
.btn-amber:hover { box-shadow: 0 0 28px 2px var(--amber-glow); }
.btn-line { border-color: var(--line-strong); color: var(--chalk); background: transparent; padding: 11px 18px; font-size: 14px; }
.btn-line:hover { border-color: var(--amber); color: var(--amber); }

/* Hero: the drawing */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
/* .hero-art is the frame; .art-box keeps the drawing's own 21:9 shape, anchored right, so callout
   percentages always land on the same lit windows whatever the frame crops away on the left. */
.hero-art { position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.art-box { position: absolute; top: 0; right: -4%; height: 100%; aspect-ratio: 21 / 9; }
.art-box img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--sheet) 0%, rgba(14,17,28,0) 28%); pointer-events: none; }
.callout { position: absolute; z-index: 2; margin: 0; display: flex; align-items: center; gap: 7px; transform: translateY(-50%); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--chalk); white-space: nowrap; }
.callout::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,182,72,.18), 0 0 16px var(--amber-glow); flex: none; animation: breathe 3.2s ease-in-out infinite; }
.callout i { display: block; width: 28px; height: 1px; background: var(--amber-soft); opacity: .7; flex: none; }
.callout b { font-weight: 500; background: rgba(14,17,28,.82); border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 8px; }
.callout span { color: var(--amber-soft); }
.callout.flip { flex-direction: row-reverse; transform: translate(-100%, -50%); }
.c1 { left: 64.6%; top: 43%; }
.c2 { left: 76.4%; top: 36%; }
.c3 { left: 77%; top: 62.5%; }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px rgba(255,182,72,.08), 0 0 22px var(--amber-glow); } }
.hero-copy { padding-block: 4px 52px; display: grid; gap: 20px; }
.hero h1 { font-size: clamp(46px, 7vw, 96px); line-height: .96; font-weight: 300; }
.hero h1 b { font-weight: 300; color: var(--amber); }
.lede { color: var(--chalk-2); font-size: 18px; max-width: 40ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.textlink { color: var(--chalk-2); font-weight: 600; text-underline-offset: 6px; text-decoration-color: var(--line-strong); }
.textlink:hover { color: var(--amber); }
@media (min-width: 640px) and (max-width: 1099px) { .hero-art { aspect-ratio: 16 / 9; } .art-box { right: -2%; } }
@media (max-width: 639px) { .callout { font-size: 9.5px; } .callout span { display: none; } .callout i { width: 14px; } .callout b { padding: 5px 6px; } }
@media (min-width: 1100px) {
  .hero { min-height: 620px; }
  .hero-art { position: absolute; inset: 0; aspect-ratio: auto; }
  .art-box { right: -5%; }
  .hero-art::after { background: linear-gradient(90deg, var(--sheet) 0%, rgba(14,17,28,.85) 26%, rgba(14,17,28,0) 46%), linear-gradient(0deg, var(--sheet) 0%, rgba(14,17,28,0) 16%); }
  .hero-copy { position: relative; z-index: 3; min-height: 620px; align-content: center; padding-block: 72px; }
  .hero-copy > * { max-width: 450px; }
  .hero h1 { max-width: none; }
}

/* Title block strip */
.titleblock { border-bottom: 1px solid var(--line); }
.titleblock .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.titleblock div > div { padding: 14px 0; border-left: 1px solid var(--line); padding-left: 14px; display: grid; gap: 4px; min-width: 0; }
.titleblock div > div:first-child { border-left: 0; padding-left: 0; }
.titleblock b { font: 500 14px/1.3 var(--mono); color: var(--chalk); letter-spacing: .02em; overflow-wrap: anywhere; }
@media (max-width: 759px) { .titleblock div > div:nth-child(3) { border-left: 0; padding-left: 0; } .titleblock div > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (min-width: 760px) { .titleblock .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sheets */
.sheet { padding-block: clamp(64px, 10vw, 128px); border-bottom: 1px solid var(--line); position: relative; }
.sheet-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 46ch; }
.sheet-head h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
.sheet-head p { color: var(--chalk-2); font-size: 18px; }
.grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.grid-bg-faint { background-image: linear-gradient(rgba(214,222,240,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(214,222,240,.05) 1px, transparent 1px); background-size: 48px 48px; }

/* The night timeline */
.night { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
@media (min-width: 900px) { .night { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.night li { padding: 26px 22px 28px; border: 1px solid var(--line); margin: -1px 0 0 -1px; display: grid; gap: 12px; align-content: start; min-width: 0; background: var(--sheet); transition: background .5s var(--ease); }
.night time { font: 500 30px/1 var(--mono); color: var(--chalk-3); font-variant-numeric: tabular-nums; transition: color .5s var(--ease); }
.night h3 { font-size: 26px; line-height: 1.1; }
.night p { color: var(--chalk-2); font-size: 16px; }
.night .who { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--chalk-3); }
.night li.on { background: var(--sheet-2); }
.night li.on time { color: var(--amber); text-shadow: 0 0 18px var(--amber-glow); }
.night li.on .who { color: var(--amber-soft); }

/* Inbox */
.inbox { margin-top: 56px; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .inbox { grid-template-columns: 1fr 1.15fr; gap: 64px; } }
.inbox h3 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; }
.inbox p { color: var(--chalk-2); margin-top: 14px; max-width: 42ch; }
.mail { border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; background: var(--sheet-2); }
.mail-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 18px; border-top: 1px solid var(--line); }
.mail-row:first-child { border-top: 0; }
.tag { font: 600 11px/1 var(--mono); letter-spacing: .06em; padding: 7px 9px; border-radius: 6px; white-space: nowrap; }
.tag-done { background: var(--amber); color: #1A1204; }
.tag-need { border: 1px solid var(--amber); color: var(--amber); }
.subj { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.subj span { font-weight: 400; color: var(--chalk-3); }
.mail time { font: 13px var(--mono); color: var(--chalk-3); font-variant-numeric: tabular-nums; }

/* Plan: one memory, every AI */
.plan { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .plan { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; } }
.plan-note { display: grid; gap: 14px; align-content: start; }
.caption { font-family: var(--display); font-stretch: 108%; font-weight: 300; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; min-height: 3.6em; }
.caption em { font-style: normal; color: var(--amber); }
.dots { display: flex; gap: 10px; }
.dots button { width: 28px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: var(--line-strong); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--amber); }
.diagram-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.diagram { width: 100%; max-width: 100%; height: auto; display: block; }
.diagram .link { stroke: rgba(214,222,240,.26); stroke-width: 1.2; fill: none; transition: stroke .5s var(--ease); }
.diagram .link.on { stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 5 7; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.diagram .node rect { fill: var(--sheet); stroke: rgba(214,222,240,.5); stroke-width: 1; transition: stroke .4s, fill .4s; }
.diagram .node text { fill: var(--chalk); font-family: var(--text); font-weight: 600; font-size: 17px; }
.diagram .node .sub { fill: var(--chalk-3); font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.diagram .node.on rect { stroke: var(--amber); fill: #231C10; }
.diagram .node.on text { fill: var(--amber-soft); }
.diagram .node.off rect { stroke: rgba(214,222,240,.2); stroke-dasharray: 3 4; }
.diagram .node.off text { fill: var(--chalk-3); }
.diagram .badge { opacity: 0; transition: opacity .3s; }
.diagram .node.off .badge { opacity: 1; }
.diagram .badge rect { fill: var(--sheet-3); stroke: var(--chalk-3); stroke-dasharray: none; }
.diagram .badge text { fill: var(--chalk-2); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.diagram .core-label { fill: var(--amber); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; }

/* Story */
.story { display: grid; gap: 40px; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 80px; } }
.story h2 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; margin-top: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.timeline li { padding: 0 0 30px 26px; position: relative; display: grid; gap: 6px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--amber); background: var(--sheet); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { background: var(--amber); box-shadow: 0 0 14px var(--amber-glow); }
.timeline strong { font-family: var(--display); font-stretch: 108%; font-weight: 400; font-size: 22px; line-height: 1.25; }
.timeline span { color: var(--chalk-2); }

/* Figures */
.figures { display: grid; gap: 0; }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fig { border-top: 1px solid var(--line-strong); padding: 22px 24px 8px 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .fig + .fig { border-left: 1px solid var(--line); padding-left: 24px; } }
.fig b { font-family: var(--display); font-stretch: 125%; font-weight: 300; font-size: clamp(48px, 6vw, 80px); line-height: 1; font-variant-numeric: tabular-nums; }
.fig p { color: var(--chalk-2); font-size: 16px; max-width: 30ch; }
.fine { margin-top: 28px; color: var(--chalk-3); font-size: 14px; max-width: 70ch; }

/* Join */
.join-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .join-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.join h2 { font-size: clamp(42px, 6vw, 80px); line-height: .98; margin-top: 16px; }
.join .sub { margin-top: 18px; color: var(--chalk-2); font-size: 18px; max-width: 38ch; }
form, .thanks { background: var(--sheet-2); border: 1px solid var(--line-strong); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, legend { font-weight: 600; font-size: 15px; }
input[type=email] { font: 17px var(--text); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); width: 100%; background: var(--sheet); color: var(--chalk); }
input[type=email]::placeholder { color: var(--chalk-3); }
input[type=email]:focus { outline: 2px solid var(--amber); border-color: transparent; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 15px; color: var(--chalk-2); transition: background .2s, border-color .2s, color .2s; }
.chips input:checked + span { background: rgba(255,182,72,.14); border-color: var(--amber); color: var(--amber-soft); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: #FF8A7A; font-size: 14px; }
.privacy { color: var(--chalk-3); font-size: 13px; }
.thanks h3 { font-size: 34px; line-height: 1.05; }
.thanks p { color: var(--chalk-2); }
.preview-note { font: 500 12px/1.4 var(--mono); color: var(--amber-soft); letter-spacing: .02em; }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; color: var(--chalk-3); font-size: 14px; }

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