html, body { margin: 0; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
/* Layout: a dark wall at night. Content hangs in one quiet column; the videos are lit windows in a row. */
:root {
  --night: #090b10;      /* page */
  --wall: #10131a;       /* raised surfaces */
  --sill: #1a1e28;       /* borders, rules */
  --ink: #e7e4dd;        /* primary text, warm white like a lamp-lit page */
  --mute: #8c92a0;       /* secondary text, blue-grey */
  --faint: #5c6270;      /* captions */
  --flash: #bccbff;      /* lightning, main accent */
  --lamp: #d9b67c;       /* lighthouse */
  --nav: #86cdb9;        /* wingtip light */
  --display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  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(--night);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--flash); outline-offset: 3px; border-radius: 2px; }
.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.08; }
p { margin: 0; }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sill);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand .mark { font-family: var(--display); font-size: 1.6rem; font-weight: 500; letter-spacing: 0.02em; }
.brand .by { font-size: 0.8125rem; color: var(--faint); letter-spacing: 0.02em; }
@media (max-width: 420px) { .brand .by { display: none; } }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 8vw, 96px);
}
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 300; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--flash); }
.hero .lede { margin-top: 22px; max-width: 34ch; color: var(--mute); font-size: 1.125rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 500; font-size: 0.9375rem; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--sill); color: var(--ink); background: var(--wall);
  transition: border-color .2s, background .2s;
}
.btn:hover { border-color: var(--mute); }
.btn.primary { background: var(--ink); color: var(--night); border-color: var(--ink); }
.btn.primary:hover { background: var(--flash); border-color: var(--flash); }
.window-stage { position: relative; aspect-ratio: 4 / 5; max-width: 100%; }
.window-stage canvas { width: 100%; height: 100%; display: block; }
.stage-note { margin-top: 10px; text-align: center; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .window-stage { max-width: 360px; width: 100%; margin: 0 auto; }
}

/* ---------- sections ---------- */
section.block { padding-block: clamp(48px, 8vw, 88px); border-top: 1px solid var(--sill); }
.head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 640px; }
.head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }
.head p { color: var(--mute); }

/* window cards */
.windows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .windows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .windows { grid-template-columns: 1fr; } }
.win { display: grid; grid-template-rows: auto 1fr; background: var(--wall); border: 1px solid var(--sill); border-radius: 6px; overflow: hidden; min-width: 0; }
.win figure { margin: 0; aspect-ratio: 11 / 12; max-width: 100%; background: #000; overflow: hidden; }
.win img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease, filter .8s ease; filter: brightness(.92); }
.win:hover img { transform: scale(1.02); filter: brightness(1.05); }
.win .body { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 20px 20px 22px; }
.win h3 { font-size: 1.75rem; font-weight: 400; }
.win .tone { display: flex; align-items: center; gap: 8px; }
.win .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.win p { color: var(--mute); font-size: 0.975rem; }
.specs { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--sill); display: grid; gap: 6px; font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
.specs li { display: flex; justify-content: space-between; gap: 12px; }
.specs b { font-weight: 400; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.win .watch { justify-self: start; margin-top: 6px; color: var(--c); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.win .watch:hover { text-decoration: underline; text-underline-offset: 4px; }

/* how it's made */
.craft { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px) clamp(24px, 5vw, 72px); }
@media (max-width: 700px) { .craft { grid-template-columns: 1fr; } }
.craft div { display: grid; gap: 8px; min-width: 0; }
.craft h3 { font-size: 1.5rem; }
.craft p { color: var(--mute); max-width: 46ch; }
.sync { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }

/* coming next */
.next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--sill); }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; } }
.next li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--sill); min-width: 0; }
.next li:nth-child(odd) { padding-right: 24px; }
@media (max-width: 640px) { .next li:nth-child(odd) { padding-right: 0; } }
.next .k { grid-row: span 2; font-family: var(--mono); font-size: 0.75rem; color: var(--faint); padding-top: 6px; }
.next strong { font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.next span { color: var(--mute); font-size: 0.95rem; }
.ask { margin-top: 28px; color: var(--mute); }
.ask a { color: var(--ink); text-underline-offset: 4px; }

/* journal */
.post { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; padding: clamp(22px, 3vw, 32px); background: var(--wall); border: 1px solid var(--sill); border-radius: 6px; text-decoration: none; }
.post:hover { border-color: var(--faint); }
.post h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 26ch; }
.post p { color: var(--mute); margin-top: 10px; max-width: 60ch; }
.post .go { color: var(--flash); font-weight: 500; white-space: nowrap; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; } }

/* footer */
footer { border-top: 1px solid var(--sill); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 32px 40px; color: var(--faint); font-size: 0.875rem; }
footer a { color: var(--mute); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .win img, .btn { transition: none; }
}
