:root {
  color-scheme: dark;
  --ink: #f2f2f2;
  --ink-soft: #d9d9d9;
  --paper: #141414;
  --paper-warm: #1c1c1c;
  --paper-bright: #242424;
  --stone: #202020;
  --line: rgba(255, 255, 255, 0.16);
  --line-light: rgba(255, 255, 255, 0.16);
  --muted: #b3b3b3;
  --accent: #c4acec;
  --accent-hover: #f2f2f2;
  --accent-on-dark: #c4acec;
  --action: #7653ba;
  --action-hover: #5c398e;
  --dark-surface: #0a0a0a;
  --font-sans: "Helvetica Neue", "Inter", "Segoe UI", Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --type-hero: clamp(46px, calc(36px + 4.3vw), 104px);
  --type-display: clamp(44px, calc(34px + 3.9vw), 96px);
  --type-title: clamp(28px, calc(29px + 0.5vw), 38px);
  --type-lede: clamp(15px, 1.15vw, 17px);
  --type-body: 15px;
  --type-ui: 13px;
  --type-meta: 11px;
  --tracking-display: -0.055em;
  --tracking-title: -0.035em;
  --leading-hero: 0.9;
  --leading-display: 0.94;
  --leading-title: 1.05;
  --leading-body: 1.6;
  --max-width: 1440px;
  --pad: clamp(22px, 4vw, 64px);
  --space-section: clamp(64px, 8vw, 112px);
  --space-block: clamp(32px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --header-height: calc(80px + var(--safe-top));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #0a0a0a;
  --ink-soft: #242424;
  --paper: #f2f2f2;
  --paper-warm: #e7e7e7;
  --paper-bright: #fafafa;
  --stone: #d9d9d9;
  --line: rgba(10, 10, 10, 0.16);
  --muted: #595959;
  --accent: #7653ba;
  --accent-hover: #5c398e;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img,
svg,
video {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

::selection {
  background: var(--action);
  color: white;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--paper-bright);
  color: var(--ink);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-right: max(var(--pad), var(--safe-right));
  padding-left: max(var(--pad), var(--safe-left));
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

.display-heading {
  font-size: var(--type-display);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
}

.section-title {
  margin-bottom: var(--space-block);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--type-ui);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 250ms var(--ease-out),
    background 250ms ease,
    color 250ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button span {
  margin-left: 6px;
}

.button-icon {
  width: 16px;
  height: 16px;
  margin-right: 9px;
  fill: currentColor;
}

.button-ink {
  background: var(--action);
  color: white;
}

.button-ink:hover {
  background: var(--action-hover);
}

.button-outline {
  border-color: var(--accent);
  color: var(--accent);
}

.button-outline:hover {
  border-color: var(--action);
  background: var(--action);
  color: white;
}

.button-soon {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--muted);
  cursor: default;
}

.button-soon:hover {
  transform: none;
}

/* Header */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: white;
  transition:
    color 350ms ease,
    background-color 350ms ease,
    box-shadow 350ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.site-header.menu-active {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: min(100%, var(--max-width));
  height: 100%;
  margin-inline: auto;
  padding-top: var(--safe-top);
  padding-right: max(var(--pad), var(--safe-right));
  padding-left: max(var(--pad), var(--safe-left));
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  font-size: 21px;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-mark {
  width: 27px;
  height: 27px;
  overflow: visible;
  fill: none;
  stroke: var(--accent-on-dark);
  stroke-width: 1.25;
}

.site-header.is-scrolled .brand-mark,
.site-header.menu-active .brand-mark,
.updates-index .site-header .brand-mark {
  stroke: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--type-ui);
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease;
}

.theme-toggle:hover {
  color: var(--accent-on-dark);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .theme-icon-sun,
[data-theme="dark"] .theme-toggle .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-sun {
  display: block;
}

.desktop-nav {
  display: flex;
  justify-self: end;
  gap: clamp(20px, 2.6vw, 40px);
  font-size: var(--type-ui);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.desktop-nav a {
  position: relative;
  padding-block: 6px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent-on-dark);
  content: "";
  transition: transform 300ms var(--ease-out);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .desktop-nav a::after,
.updates-index .desktop-nav a::after {
  background: var(--accent);
}

.menu-button,
.mobile-nav {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  background: #171717;
  color: white;
}

.hero-media,
.hero-wash,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-media {
  transform: scale(1.035) translate3d(var(--hero-x, 0), var(--hero-y, 0), 0);
  transition: transform 1.4s var(--ease-out);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.hero-wash {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.5) 44%, rgba(8, 8, 8, 0.05) 72%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.85) 0%, transparent 40%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.3) 0%, transparent 20%);
}

.hero-grain {
  z-index: 3;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-reel {
  position: absolute;
  z-index: 2;
  right: max(var(--pad), calc((100vw - var(--max-width)) / 2 + var(--pad)));
  bottom: var(--space-section);
  width: min(26vw, clamp(240px, 36svh, 360px));
  margin: 0;
}

.hero-reel-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #1a1a1a;
}

.hero-reel video,
.reel-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  min-height: max(720px, 100svh);
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: var(--space-section);
}

.hero-copy {
  max-width: min(720px, 58vw);
}

.hero h1 {
  margin-bottom: 28px;
  font-size: var(--type-hero);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-hero);
}

.hero-name {
  color: var(--accent-on-dark);
}

.hero-lede {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--type-lede);
  line-height: var(--leading-body);
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  left: 50%;
  display: none;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--type-meta);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.scroll-cue svg {
  width: 14px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

/* Works */

.works {
  background: var(--dark-surface);
  color: white;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.reel-card {
  min-width: 0;
}

.reel-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1a1a1a;
}

.reel-index,
.reel-source {
  position: absolute;
  z-index: 2;
  top: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.56);
  color: white;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reel-index {
  left: 16px;
  border-color: var(--accent-on-dark);
  color: var(--accent-on-dark);
  font-size: var(--type-meta);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.reel-source {
  right: 16px;
  font-size: 14px;
  transition:
    background 200ms ease,
    color 200ms ease;
}

.reel-source:hover {
  background: var(--accent-on-dark);
  color: var(--dark-surface);
}

/* Prototype capture */

.prototype {
  background: var(--paper-warm);
}

.prototype-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.prototype-viewer {
  position: relative;
  height: clamp(360px, 54vw, 680px);
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.14);
  background: #eeeeee;
}

.prototype-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.prototype-stage {
  position: absolute;
  inset: 0;
}

.prototype-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

.prototype-viewer:fullscreen {
  height: 100vh;
}

.prototype-controls {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  right: 16px;
  display: flex;
  justify-content: end;
  gap: 12px;
}

.prototype-controls button {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #b3b3b3;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-surface);
  cursor: pointer;
}

.prototype-controls button::after {
  content: '';
  position: absolute;
  inset: -6px;
}

.prototype-controls svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prototype-controls button:hover {
  background: white;
}

.prototype-placeholder {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 12px;
  padding: 24px;
  color: var(--dark-surface);
  text-align: center;
}

.prototype-version,
.prototype-placeholder p,
.prototype-caption {
  font-size: var(--type-meta);
  line-height: var(--leading-body);
}

.prototype-version,
.prototype-placeholder p {
  color: #404040;
}

.prototype-placeholder .button {
  background: var(--action);
  color: white;
}

.prototype-placeholder .button:hover {
  background: var(--action-hover);
}

.prototype-placeholder p:empty {
  display: none;
}

.no-js [data-load-splat] {
  display: none;
}

.prototype-fallback {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-surface);
  font-size: var(--type-ui);
  text-align: center;
}

.prototype-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--ink-soft);
}

.prototype-caption a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Doors */

.doors {
  background: var(--paper-warm);
}

.door-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.door {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-top-color: color-mix(in srgb, var(--accent) 65%, var(--paper-bright));
  border-radius: 6px;
  background: var(--paper-bright);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.05);
  transition: transform 350ms var(--ease-out);
}

.door:hover {
  transform: translateY(-4px);
}

.door h3 {
  margin-bottom: 12px;
  font-size: var(--type-title);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-title);
  line-height: var(--leading-title);
}

.door p {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.door-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.door-actions .button {
  width: 100%;
  min-height: 50px;
}

.door-actions .button-soon {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

/* Appearances */

.appearances {
  overflow: hidden;
  background: var(--stone);
}

.appearance-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.appearance-grid > * {
  min-width: 0;
}

.appearance-list {
  border-top: 1px solid var(--line);
}

.appearance-list li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.appearance-list strong {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-title);
  line-height: 1.2;
}

.appearance-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.appearance-link:hover {
  color: var(--accent-hover);
}

.appearance-date {
  color: var(--muted);
  font-size: var(--type-ui);
  line-height: 1.4;
  white-space: nowrap;
}

.pin,
.map-pin span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--action);
  color: white;
  font-size: var(--type-meta);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.map-pin {
  border: 0;
  background: transparent;
}

.map-pin span {
  width: 40px;
  height: 40px;
  border: 2px solid white;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.3);
}

.map-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.14);
  background: #cdcdcd;
}

.leaflet-map,
.map-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.leaflet-map {
  z-index: 1;
  background: transparent;
}

.map-fallback {
  overflow: hidden;
  background-color: #d5d5d5;
  background-image:
    linear-gradient(31deg, transparent 47%, rgba(10, 10, 10, 0.09) 47.4%, rgba(10, 10, 10, 0.09) 48%, transparent 48.4%),
    linear-gradient(117deg, transparent 64%, rgba(10, 10, 10, 0.07) 64.4%, rgba(10, 10, 10, 0.07) 65%, transparent 65.4%),
    linear-gradient(rgba(10, 10, 10, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}

.map-fallback span {
  position: absolute;
  width: 70%;
  height: 42%;
  border: 2px solid rgba(10, 10, 10, 0.07);
  border-radius: 50%;
  transform: rotate(var(--road-rotation, 0deg));
}

.map-fallback span:nth-child(1) { top: -12%; left: -20%; --road-rotation: 18deg; }
.map-fallback span:nth-child(2) { top: 28%; right: -34%; --road-rotation: -38deg; }
.map-fallback span:nth-child(3) { bottom: -20%; left: 7%; --road-rotation: 8deg; }
.map-fallback span:nth-child(4) { top: 4%; right: 10%; width: 32%; --road-rotation: 64deg; }
.map-fallback span:nth-child(5) { bottom: 15%; left: -15%; width: 45%; --road-rotation: -20deg; }

.leaflet-map .leaflet-tile-pane {
  filter: grayscale(1) contrast(0.86) brightness(1.06);
}

.leaflet-map .leaflet-control-attribution {
  padding: 3px 6px;
  background: rgba(250, 250, 250, 0.88);
  color: #626262;
  font-size: var(--type-meta);
  line-height: 1.25;
}

.leaflet-map .leaflet-control-attribution a {
  color: var(--dark-surface);
}

/* Contact */

.contact {
  overflow: hidden;
  background: var(--dark-surface);
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: start;
}

.contact-grid > * {
  min-width: 0;
}

.contact-copy .display-heading {
  max-width: 520px;
}

.contact-form {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}

.contact-intents {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-intent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-radio + label {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  font-size: var(--type-ui);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.01em;
  line-height: 1;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.contact-radio:checked + label {
  border-color: var(--accent-on-dark);
  background: var(--accent-on-dark);
  color: var(--dark-surface);
}

.contact-radio:focus-visible + label {
  outline: 2px solid var(--accent-on-dark);
  outline-offset: 4px;
}

.contact-field {
  margin-top: 20px;
}

.contact-field textarea,
.contact-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: inherit;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.contact-field textarea {
  display: block;
  min-height: 210px;
  padding: 28px 0;
  resize: vertical;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--tracking-title);
  line-height: 1.4;
}

.contact-field input {
  height: 56px;
  padding: 0;
  font-size: var(--type-body);
  line-height: 1.5;
}

.contact-field textarea::placeholder,
.contact-field input::placeholder {
  color: #999999;
}

.contact-field textarea:focus,
.contact-field input:focus {
  border-color: var(--accent-on-dark);
}

.contact-status,
.contact-noscript {
  color: #b3b3b3;
  font-size: var(--type-ui);
  line-height: 1.4;
}

.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-turnstile {
  max-width: 100%;
  overflow: hidden;
}

.contact-turnstile:not(:empty) {
  margin-top: 18px;
}

.contact-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 20px;
}

.contact-email-field {
  margin: 0;
}

.contact-submit {
  min-height: 56px;
  padding-inline: 26px;
  border-color: var(--action);
  background: var(--action);
  color: white;
  cursor: pointer;
}

.contact-submit:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.contact-submit:disabled {
  transform: none;
  opacity: 0.5;
  cursor: wait;
}

.contact-submit .contact-submit-label {
  margin-left: 0;
}

.contact-status {
  min-height: 0;
  margin-top: 12px;
}

.contact-status:empty {
  margin-top: 0;
}

.contact-status[data-state="success"] {
  color: white;
}

.contact-status[data-state="error"] {
  color: var(--accent-on-dark);
}

.contact-noscript {
  margin-top: 12px;
}

/* Footer */

.site-footer {
  padding-block: 40px;
  background: var(--dark-surface);
  color: white;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-social a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  transition:
    color 200ms ease,
    background 200ms ease;
}

.footer-social a:hover {
  background: var(--accent-on-dark);
  color: var(--dark-surface);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Motion */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reel-card:nth-child(2),
.js .door:nth-child(2) {
  transition-delay: 80ms;
}

.js .reel-card:nth-child(3),
.js .door:nth-child(3) {
  transition-delay: 160ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */

@media (min-width: 1600px) {
  .scroll-cue {
    display: flex;
  }
}

@media (max-width: 1050px) {
  :root {
    --header-height: calc(72px + var(--safe-top));
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-actions {
    gap: 14px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-right: -12px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    position: absolute;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform 300ms var(--ease-out);
  }

  .menu-button span:first-child { transform: translateY(-4px); }
  .menu-button span:last-child { transform: translateY(4px); }
  .menu-button[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

  .mobile-nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-height) + 24px) max(var(--pad), var(--safe-right)) max(32px, var(--safe-bottom)) max(var(--pad), var(--safe-left));
    overflow-y: auto;
    visibility: hidden;
    transform: translateY(-10px);
    opacity: 0;
    background: var(--paper);
    color: var(--ink);
    pointer-events: none;
    transition:
      opacity 250ms ease,
      transform 400ms var(--ease-out),
      visibility 400ms;
  }

  .mobile-nav.is-open {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav a {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--type-title);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--tracking-title);
    line-height: var(--leading-title);
  }

  .mobile-nav a span {
    color: var(--accent);
    font-size: var(--type-meta);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.1em;
    line-height: 1;
  }

  .hero-copy {
    max-width: 60vw;
  }

  .hero-reel {
    right: max(var(--pad), var(--safe-right));
    width: min(30vw, clamp(220px, 34svh, 300px));
  }

  .door-grid {
    grid-template-columns: 1fr;
  }

  .door {
    min-height: 0;
  }


  .appearance-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}

@media (max-width: 760px) {
  :root {
    --pad: 20px;
    --space-section: 56px;
    --space-block: 28px;
    --gap: 16px;
    --type-lede: 15px;
  }

  .site-header.is-scrolled {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .contact-form {
    padding-top: 18px;
  }

  .contact-intent-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-radio + label {
    min-height: 42px;
    padding-inline: 10px;
    text-align: center;
  }

  .contact-field textarea {
    min-height: 168px;
    padding-block: 24px;
  }

  .contact-submit-row {
    gap: 12px;
    align-items: end;
  }

  .hero,
  .hero-content {
    min-height: max(640px, 100svh);
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: max(48px, calc(28px + var(--safe-bottom)));
  }

  .hero h1 {
    margin-bottom: 20px;
  }

  .reel-grid {
    display: flex;
    align-items: flex-start;
    margin-right: calc(var(--pad) * -1);
    padding-right: var(--pad);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .reel-media video {
    pointer-events: none;
  }

  .reel-grid::-webkit-scrollbar {
    display: none;
  }

  .reel-card {
    flex: 0 0 min(76vw, 320px);
    scroll-snap-align: start;
  }

  .door {
    padding: 22px;
  }


  .map-card {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .site-footer {
    padding-block: 32px;
  }

  .footer-grid {
    flex-wrap: wrap;
    gap: 24px;
  }

  .footer-social {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    margin: 0;
  }
}

/* Portrait phones: the reel video becomes the hero background and the still is
   dropped. This is orientation-gated, not width-gated, because the clip is 9/16
   -- asked to cover a landscape phone it crops to a meaningless sliver, so a
   phone held sideways keeps the still backdrop that wider screens use. */
@media (max-width: 760px) and (orientation: portrait) {
  .hero-media {
    display: none;
  }

  .hero-reel {
    z-index: 0;
    inset: 0;
    width: 100%;
  }

  .hero-reel-frame {
    height: 100%;
    aspect-ratio: auto;
    border: 0;
  }

  .hero-reel video {
    object-position: center 54%;
  }

  .hero-wash {
    background:
      linear-gradient(90deg, rgba(8, 8, 8, 0.8) 0%, rgba(8, 8, 8, 0.28) 100%),
      linear-gradient(0deg, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.34) 68%),
      linear-gradient(180deg, rgba(8, 8, 8, 0.72) 0%, transparent 35%);
  }

  .hero-grain {
    z-index: 2;
  }

  .hero-content {
    z-index: 3;
  }

  .hero-copy {
    max-width: 100%;
  }
}

/* Updates (scripts/updates.mjs renders /updates/ and each issue) */

.updates-index .site-header {
  background: var(--paper);
  color: var(--ink);
}

.updates-main {
  min-height: 70vh;
}

.updates-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-height) + var(--space-section));
  padding-bottom: var(--space-section);
  background: var(--dark-surface);
  color: white;
}

.updates-hero .page-shell {
  position: relative;
  z-index: 1;
}

.updates-hero .display-heading {
  max-width: 1100px;
  margin-bottom: 28px;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-block);
  color: #b3b3b3;
  font-size: var(--type-ui);
}

.update-draft {
  display: inline-block;
  width: fit-content;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: var(--type-meta);
  line-height: 1.4;
}

.update-meta a,
.update-meta .update-draft {
  color: var(--accent-on-dark);
}

.updates-lede {
  max-width: 680px;
  color: #b3b3b3;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}

.updates-feed-link {
  display: inline-block;
  color: var(--accent-on-dark);
  font-size: var(--type-ui);
}

.updates-feed-link,
.update-meta a,
.update-source a,
.update-body a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.update-source a,
.update-body a,
.updates-entry-action,
.updates-entry .update-draft {
  color: var(--accent);
}

.updates-feed-link:hover,
.update-meta a:hover,
.update-source a:hover,
.update-body a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.updates-archive {
  padding-top: calc(var(--header-height) + var(--space-block));
  padding-bottom: var(--space-section);
}

.updates-list {
  border-top: 1px solid var(--line);
}

.updates-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}

.updates-entry.has-cover {
  grid-template-columns: 160px minmax(0, 1fr) minmax(160px, 240px);
}

.updates-entry-date {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-top: 6px;
  color: var(--muted);
  font-size: var(--type-ui);
}

.updates-entry strong {
  display: block;
  max-width: 24ch;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--tracking-title);
  line-height: 1.08;
}

.updates-entry-summary {
  display: block;
  max-width: 60ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: var(--leading-body);
}

.updates-entry-action {
  display: block;
  margin-top: 24px;
  font-size: var(--type-ui);
  font-weight: var(--font-weight-semibold);
}

.updates-entry:hover .updates-entry-action {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.updates-entry-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1);
}

.update-cover {
  margin: 0;
}

.update-cover img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: var(--dark-surface);
  filter: grayscale(1);
}

.update-cover figcaption {
  padding-top: 16px;
  color: var(--muted);
  font-size: var(--type-ui);
}

.updates-reading {
  max-width: 880px;
  padding-block: var(--space-section);
}

.update-body {
  overflow-wrap: break-word;
  font-size: 19px;
  line-height: 1.7;
}

.update-body p + p {
  margin-top: 1em;
}

.update-body h2 {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 56px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--tracking-title);
  line-height: 1.1;
}

.update-body > h2:first-child {
  margin-top: 0;
}

.update-video {
  width: 100%;
  margin: 24px auto 0;
  aspect-ratio: 16 / 9;
  background: var(--dark-surface);
}

.update-video-portrait {
  max-width: clamp(200px, calc((100svh - var(--header-height) - 32px) * 0.5625), 360px);
  aspect-ratio: 9 / 16;
}

.update-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.update-section-number {
  flex: 0 0 28px;
  color: var(--accent);
  font-size: var(--type-ui);
  letter-spacing: 0;
}

.update-body li + li {
  margin-top: 24px;
}

.update-source {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-ui);
}

.update-source > span {
  display: flex;
  gap: 12px;
}

.updates-page .site-footer {
  border-top: 1px solid var(--line-light);
}

.updates-page .footer-grid {
  flex-wrap: wrap;
}

@media (max-width: 1050px) {
  .updates-entry.has-cover {
    grid-template-columns: 120px minmax(0, 1fr) minmax(120px, 180px);
  }
}

@media (max-width: 760px) {
  .updates-hero {
    padding-top: calc(var(--header-height) + 48px);
  }

  .updates-hero .display-heading {
    font-size: clamp(42px, 9vw, 64px);
  }

  .updates-entry,
  .updates-entry.has-cover {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 32px;
  }

  .updates-entry-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 0;
  }

  .updates-entry-cover {
    max-width: 440px;
  }

  .update-body {
    font-size: 18px;
  }
}
