/* Future Self Labs — site styles
   Palette: ink at night, ivory paper, brass at first light. */

:root {
  --ink: #0b0d10;
  --ink-2: #101318;
  --ink-3: #161a21;
  --line: rgba(244, 239, 230, 0.09);
  --line-strong: rgba(244, 239, 230, 0.16);
  --ivory: #f4efe6;
  --ivory-2: #ebe4d6;
  --text: #ece7dd;
  --muted: #a39e93;
  --gold: #d4a85f;
  --gold-soft: #ecd09a;
  --ember: #e07a4a;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

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

/* A whisper of film grain so the dark never feels flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display, .title {
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.022em;
  color: var(--ivory);
  text-wrap: balance;
}

.display { font-size: clamp(2.9rem, 6.6vw, 5.4rem); line-height: 1.02; }
.title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; }

.display em, .title em, .creed em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-soft);
  background: linear-gradient(100deg, var(--gold-soft) 10%, var(--gold) 55%, var(--ember) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em; /* keep the italic overhang inside the clip */
}
/* The hero's gold word breathes: the light moves slowly across it. */
.hero .display em {
  background-size: 200% 100%;
  animation: shimmer 9s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lede, .section-lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  max-width: 34em;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  color: #1a1408;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 30px -10px rgba(212, 168, 95, 0.55);
}
.btn-gold:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 18px 44px -12px rgba(212, 168, 95, 0.7);
}
/* A slow sheen crosses the gold on hover. */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.btn-gold:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--ivory);
  border-color: var(--line-strong);
  background: rgba(244, 239, 230, 0.02);
}
.btn-ghost:hover { border-color: rgba(236, 208, 154, 0.55); color: var(--gold-soft); }

.btn-sm { padding: 11px 20px; font-size: 0.86rem; }
.btn-lg { padding: 18px 32px; font-size: 1rem; }

.btn.is-disabled {
  cursor: default;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 30px;
  padding-bottom: 4px;
  font-weight: 600;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(236, 208, 154, 0.35);
  transition: gap 0.3s var(--ease), border-color 0.3s;
}
.text-link:hover { gap: 14px; border-color: var(--gold-soft); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(11, 13, 16, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a { position: relative; padding: 4px 0; transition: color 0.25s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}
.monogram { display: block; height: 100%; width: auto; }
.logo-mark { height: 38px; color: var(--gold-soft); }
.logo-word {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Mobile menu: a full-screen sheet in the house serif. */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ivory);
}
.nav-toggle-bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle-bar { top: 17px; }
.nav-toggle-bar + .nav-toggle-bar { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar + .nav-toggle-bar { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: center;
  background:
    radial-gradient(70% 50% at 80% 100%, rgba(212, 168, 95, 0.18), transparent 70%),
    rgba(11, 13, 16, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu-inner { display: grid; gap: 6px; padding-top: 72px; }
.menu-inner > a:not(.btn) {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 340;
  letter-spacing: -0.02em;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.06s + 0.1s);
}
.menu.is-open .menu-inner > a:not(.btn) { opacity: 1; transform: none; }
.menu-inner > a span {
  font: 500 0.7rem/1 var(--sans);
  letter-spacing: 0.2em;
  color: var(--gold);
}
.menu-inner .btn { margin-top: 28px; justify-self: start; }
.menu-foot {
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(130px, 17vh, 190px) 0 clamp(90px, 13vh, 150px);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(212, 168, 95, 0.13), transparent 70%),
    radial-gradient(50% 40% at 10% 0%, rgba(86, 104, 140, 0.12), transparent 70%);
}
/* A soft light that follows the cursor across the hero (pointer devices only). */
.hero-light {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 168, 95, 0.11), transparent 60%);
  transition: opacity 0.8s;
}
.hero:hover .hero-light { opacity: 1; }
@media (hover: none) { .hero-light { display: none; } }

/* The horizon: a vast curve catching first light. */
.hero-horizon {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 80%;
  width: max(240vw, 2400px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #1b1710 0%, var(--ink) 22%);
  box-shadow:
    0 -1px 0 0 rgba(236, 208, 154, 0.75),
    0 -14px 50px 0 rgba(212, 168, 95, 0.3),
    0 -70px 190px 0 rgba(224, 122, 74, 0.16);
  animation: dawn 2.6s var(--ease) both;
}
@keyframes dawn {
  from { opacity: 0; transform: translate(-50%, 50px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(40px, 6vw, 90px);
}
.hero-copy { padding-top: clamp(0px, 4vw, 56px); }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.hero-copy > :nth-child(4) { animation-delay: 0.28s; }
.hero-copy > :nth-child(5) { animation-delay: 0.38s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero .lede { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero-notes li { display: inline-flex; align-items: center; gap: 10px; }
.hero-notes li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- Phone ---------- */

.hero-device {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: 0 0 20px 150px;
  animation: rise 1.3s 0.25s var(--ease) both;
}
/* Portrait card behind the phone. */
.hero-photo {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.08), 0 60px 120px -40px rgba(0, 0, 0, 0.9);
}
.hero-photo img {
  width: 100%; height: 112%;
  object-fit: cover;
  object-position: 60% 12%;
  filter: saturate(0.75) contrast(1.08);
  transform: translateY(calc(var(--parallax, 0) * -1px));
  will-change: transform;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 13, 16, 0.55));
}
.device-glow {
  position: absolute;
  inset: 40% 30% -10% -10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 168, 95, 0.28), transparent);
  filter: blur(28px);
}
.phone {
  position: relative;
  flex: none;
  margin-top: 40%;
  margin-right: 72%;
  width: min(280px, 78vw);
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(160deg, #2b2f38, #0e1014 40%, #1d2027);
  box-shadow:
    0 0 0 1px rgba(244, 239, 230, 0.12),
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 30px 60px -30px rgba(212, 168, 95, 0.22);
  transform: rotate(-3deg);
  transition: transform 0.9s var(--ease);
}
.hero-device:hover .phone { transform: rotate(-1deg) translateY(-6px); }
.phone-notch {
  position: absolute;
  top: 20px; left: 50%;
  z-index: 2;
  width: 72px; height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050608;
}
.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 52px 14px 14px;
  border-radius: 39px;
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(212, 168, 95, 0.1), transparent 60%),
    #0d0f13;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.25;
}
.chat-head strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ivory); }
.chat-head small { font-size: 0.72rem; color: var(--gold); }
.chat-avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(212, 168, 95, 0.12);
  border: 1px solid rgba(212, 168, 95, 0.3);
}
.chat-avatar .ascend-mark { height: 20px; color: var(--ivory); --ascend-halo: #15171c; }

/* ---------- Ascend mark ---------- */

.ascend-mark { display: block; height: 1em; width: auto; }
.ascend-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ivory);
}
.ascend-tile {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1a1e26, #0d0f13);
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.1), 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.ascend-tile .ascend-mark { height: 32px; color: var(--ivory); --ascend-halo: #13161c; }
.ascend-word {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1;
}
.download-logo { margin-bottom: 30px; }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-run {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-run i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Film ---------- */

.film {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(520px, 80vh, 820px);
  overflow: hidden;
  isolation: isolate;
}
.film-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(0.8);
}
.film-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(270deg, rgba(11, 13, 16, 0.8), rgba(11, 13, 16, 0.1) 60%),
    linear-gradient(180deg, rgba(11, 13, 16, 0.6), rgba(11, 13, 16, 0.05) 35%, rgba(11, 13, 16, 0.95));
}
.film-media { object-position: 30% 40%; }
.film-caption {
  display: grid;
  justify-items: end;
  padding-block: 0 clamp(56px, 8vw, 110px);
}
.film-caption > * { width: min(100%, 560px); }
.film-caption .section-lede { margin-top: 20px; }

.chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 0 14px;
}
.bubble {
  max-width: 88%;
  padding: 9px 12px;
  font-size: 0.74rem;
  line-height: 1.45;
  border-radius: 18px;
  animation: bubble 0.7s var(--ease) both;
  animation-delay: calc(1s + var(--i) * 0.55s);
}
.bubble-ai {
  align-self: flex-start;
  color: var(--text);
  background: #191d25;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.bubble-user {
  align-self: flex-end;
  color: #1a1408;
  font-weight: 500;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-bottom-right-radius: 6px;
}
@keyframes bubble {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.chat-input i {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.section-tint {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .section-lede { margin-top: 24px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 1px;
  background: var(--gold);
}
.step-num {
  display: block;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-soft);
}
.step h3, .pillar h3, .principle h3, .side-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.step p, .pillar h3 + p { margin-top: 12px; font-size: 0.98rem; color: var(--muted); }

/* Editorial strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 0 4px;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-2);
}
/* Black and white at rest; colour arrives on hover. */
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.02);
  transition: transform 1.4s var(--ease), filter 1s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); filter: grayscale(0) contrast(1); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 80px 24px 24px;
  background: linear-gradient(180deg, transparent, rgba(11, 13, 16, 0.85));
  display: grid;
  gap: 6px;
}
.gallery-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.gallery-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--ivory);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  position: relative;
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--ink-2);
  transition: background-color 0.5s;
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(90% 70% at 0% 0%, rgba(212, 168, 95, 0.1), transparent 70%);
  transition: opacity 0.5s;
  pointer-events: none;
}
.pillar:hover { background: var(--ink-3); }
.pillar:hover::after { opacity: 1; }
.pillar-label, .plan-area {
  margin-bottom: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Plan */
.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 60px);
}
.plan-photo {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.plan-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(0.85) contrast(1.06);
  transition: filter 1s var(--ease);
}
.plan-photo:hover img { filter: grayscale(0) contrast(1); }
.plan-card .text-link { margin-top: 26px; }
.plan-card {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 24px;
  background: linear-gradient(170deg, #181c24, #101318 60%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.plan-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}
.plan-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.2rem;
  white-space: nowrap;
  color: var(--ivory);
}
.plan-tag {
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-list li { padding: 24px 0; border-top: 1px solid var(--line); }
.plan-list li:first-child { border-top: 0; }
.plan-list li:last-child { padding-bottom: 4px; }
.plan-area { display: block; margin-bottom: 10px; }
.plan-list strong { font-weight: 600; font-size: 1.05rem; color: var(--ivory); }
.plan-list p { margin-top: 6px; font-size: 0.94rem; color: var(--muted); }

/* Principles — the one bright room in the house. */
.section-ivory {
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(212, 168, 95, 0.22), transparent 70%),
    var(--ivory);
  color: #3d3a33;
}
.section-ivory .title { color: #14120e; }
.section-ivory .title em, .creed em {
  background-image: linear-gradient(100deg, #a9772a, #c0612f);
}
.section-ivory .eyebrow { color: #9a6d25; }
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
}
.principle { padding-top: 26px; border-top: 1px solid rgba(20, 18, 14, 0.18); }
.principle h3 { color: #14120e; font-size: 1.55rem; }
.principle p { margin-top: 14px; color: #5b564c; }
.creed-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(70px, 9vw, 120px);
}
.creed-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 40px 80px -40px rgba(20, 18, 14, 0.5);
}
.creed-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.creed {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: #14120e;
}
.creed::before {
  content: "";
  display: block;
  width: 56px; height: 1px;
  margin-bottom: 36px;
  background: linear-gradient(90deg, #a9772a, transparent);
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(44px, 7vw, 110px);
}
.download-main .section-lede { margin-top: 24px; }
.download-actions { margin-top: 40px; }
.download-meta { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.notify input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 20px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ivory);
  background: rgba(244, 239, 230, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.25s, background-color 0.25s;
}
.notify input::placeholder { color: #6f6b62; }
.notify input:focus {
  outline: none;
  border-color: rgba(236, 208, 154, 0.6);
  background: rgba(244, 239, 230, 0.05);
}
.notify-status { flex-basis: 100%; min-height: 1.4em; font-size: 0.88rem; color: var(--gold-soft); }
.notify-status.is-error { color: #e9937a; }
.notify-fine { flex-basis: 100%; font-size: 0.8rem; color: #6f6b62; }
.notify-fine a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.notify-fine a:hover { color: var(--gold-soft); }
.faq-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(236, 208, 154, 0.35);
}
.faq-link:hover { border-color: var(--gold-soft); }

.download-side { display: grid; gap: 18px; }
.side-card {
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.side-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.install-steps { counter-reset: install; display: grid; gap: 14px; }
.install-steps li {
  counter-increment: install;
  display: grid;
  grid-template-columns: 30px 1fr;
  font-size: 0.95rem;
  color: var(--muted);
}
.install-steps li::before {
  content: counter(install);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--gold-soft);
}
.ticks { display: grid; gap: 12px; }
.ticks li {
  display: grid;
  grid-template-columns: 30px 1fr;
  font-size: 0.95rem;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  width: 14px; height: 8px;
  margin-top: 7px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg) scale(0.8);
  transform-origin: left top;
  translate: 2px 8px;
}
.side-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--gold-soft);
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 100px);
}
.faq-wrap .section-head { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ivory);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-soft); }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 38em; padding: 0 0 28px; color: var(--muted); }

/* Closing */
.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 15vw, 200px) 0;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(212, 168, 95, 0.22), transparent 70%),
    radial-gradient(40% 50% at 50% 115%, rgba(224, 122, 74, 0.22), transparent 70%);
}
.closing .display { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.closing .btn { margin-top: 48px; }
.closing .container { position: relative; }
.closing-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  height: min(120vw, 620px);
  transform: translate(-50%, -52%);
  color: var(--gold);
  opacity: 0.07;
  --monogram-halo: var(--ink);
  pointer-events: none;
}

/* Footer */
.footer { border-top: 1px solid var(--line); background: #090a0d; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-block: 56px 40px;
}
.footer-line {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 0.9rem; color: var(--muted); }
.footer-links a:hover { color: var(--gold-soft); }
.footer-base {
  padding-block: 22px 34px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #6f6b62;
}
.footer .logo-mark { --monogram-halo: #090a0d; }
.footer-wordmark {
  overflow: hidden;
  padding-bottom: 0;
  margin-bottom: -0.16em;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(4.6rem, 15.6vw, 15rem);
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.16), rgba(244, 239, 230, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* Message pages (404, stubs) */
.message {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 86vh;
  overflow: hidden;
  padding: 160px 0 200px;
  isolation: isolate;
}
.message-inner .section-lede { margin: 24px 0 40px; }

/* ---------- Legal documents ---------- */

.legal-head {
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 18vh, 200px) 0 clamp(70px, 9vw, 110px);
  background:
    radial-gradient(60% 70% at 85% 100%, rgba(212, 168, 95, 0.16), transparent 70%),
    var(--ink);
  border-bottom: 1px solid rgba(236, 208, 154, 0.35);
}
.legal-summary {
  max-width: 40em;
  margin-top: 26px;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ivory-2);
  text-wrap: pretty;
}
.legal-meta {
  margin-top: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The document itself reads on paper. */
.page-legal main { background: var(--ivory); }
.page-legal .footer { border-top: 0; }
.legal-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(90px, 11vw, 150px);
  color: #3d3a33;
}
.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 0.86rem;
}
.legal-toc-title {
  margin-bottom: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a6d25;
}
.legal-toc ol { display: grid; gap: 2px; }
.legal-toc a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 1px solid rgba(20, 18, 14, 0.14);
  color: #7a756b;
  line-height: 1.35;
  transition: color 0.2s, border-color 0.2s;
}
.legal-toc a:hover { color: #14120e; }
.legal-toc a.is-active { color: #14120e; border-left-color: #b8853a; }

.legal-prose { max-width: 68ch; }
.legal-prose h2 {
  margin: 56px 0 18px;
  padding-top: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: #14120e;
  scroll-margin-top: 100px;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { margin-bottom: 16px; text-wrap: pretty; }
.legal-prose ul { margin: 0 0 18px; padding-left: 0; display: grid; gap: 10px; }
.legal-prose li { position: relative; padding-left: 26px; }
.legal-prose li::before {
  content: "";
  position: absolute;
  top: 0.72em; left: 4px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c9a05a;
}
.legal-prose strong { font-weight: 600; color: #14120e; }
.legal-prose a {
  color: #9a6d25;
  border-bottom: 1px solid rgba(154, 109, 37, 0.35);
  transition: border-color 0.2s;
}
.legal-prose a:hover { border-color: #9a6d25; }
.page-legal ::selection { background: #14120e; color: var(--ivory); }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.09s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { margin-bottom: 8px; }
  .legal-body { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc {
    position: static;
    padding: 22px 24px;
    border: 1px solid rgba(20, 18, 14, 0.12);
    border-radius: var(--radius);
  }
  .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.menu-open { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero { padding-top: 120px; }
  .hero-inner, .plan-grid, .download-grid { grid-template-columns: 1fr; }
  .hero-device { margin-top: 24px; }
  .hero-horizon { top: 90%; }
  .hero-device { flex-direction: column; align-items: flex-start; padding: 0; }
  .hero-photo { position: relative; inset: auto; width: min(100%, 420px); }
  .phone { margin: -46% 0 0 0; width: min(230px, 60vw); }
  .film-caption { justify-items: start; }
  .principles { grid-template-columns: 1fr; }
  .creed-row { grid-template-columns: 1fr; }
  .creed-photo { max-width: 420px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-photo { aspect-ratio: 4 / 3; min-height: 0; }
  .plan-photo img { object-position: 50% 25%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .pillars { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .phone-screen { min-height: 440px; }
  .bubble { font-size: 0.66rem; }
  .notify .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
