/* ─────────────────────────────────────────────────────────────
   Galvence — v5
   Brand book palette + grain + fonts. Layout + glass.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand book palette */
  --night:    #15110E;
  --umber:    #1C1714;
  --ground:   #251F1A;
  --rust:     #3A2A20;
  --burnt:    #6B4028;
  --ember:    #C25A2C;
  --amber:    #E08552;
  --cream:    #F4DCBE;

  --bone:     #EFE6D8;
  --paper:    #C8BBA7;
  --mist:     #8E8273;
  --fog:      #5A4F44;

  --line:     rgba(239, 230, 216, 0.10);
  --line-2:   rgba(239, 230, 216, 0.05);
  --line-3:   rgba(239, 230, 216, 0.18);

  /* Tweakable atmosphere defaults */
  --grain-1:    0.85;
  --grain-2:    0.55;
  --glass-blur: 28px;
  --glow:       1;

  /* Type */
  --display: 'Bricolage Grotesque', sans-serif;   /* wordmark only */
  --sans:    'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:    'Geist Mono', ui-monospace, Menlo, monospace;

  --max-w: 1440px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  /* overflow-x: clip preserves position:sticky/fixed on descendants
     (unlike `hidden`, which establishes a new scroll container on iOS).
     `hidden` is the fallback for older browsers.                      */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;

  /* atmosphere — almost-black centre, ember reaching in from corners */
  background:
    radial-gradient(80% 70% at 0% 100%, rgba(224,133,82, calc(0.32 * var(--glow))) 0%, rgba(194,90,44, calc(0.16 * var(--glow))) 25%, transparent 55%),
    radial-gradient(70% 60% at 100% 0%,  rgba(224,133,82, calc(0.26 * var(--glow))) 0%, rgba(194,90,44, calc(0.12 * var(--glow))) 25%, transparent 55%),
    radial-gradient(60% 60% at 100% 100%, rgba(194,90,44, calc(0.18 * var(--glow))) 0%, transparent 55%),
    radial-gradient(50% 50% at 0% 0%,    rgba(194,90,44, calc(0.14 * var(--glow))) 0%, transparent 55%),
    radial-gradient(80% 70% at 50% 50%,  #100C09 0%, #0C0907 70%, #08060A 100%);
  background-attachment: fixed;
}

/* film grain — two layers from the brand book */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 240;
  opacity: var(--grain-1);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='2.6' numOctaves='3' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.96  0 0 0 0 0.88  0 0 0 1 0'/><feComponentTransfer><feFuncA type=\"linear\" slope=\"1.6\" intercept=\"-0.55\"/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  background-size: 220px 220px;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 241;
  opacity: var(--grain-2);
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='g2'><feTurbulence type='fractalNoise' baseFrequency='3.2' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/><feComponentTransfer><feFuncA type=\"linear\" slope=\"1.3\" intercept=\"-0.5\"/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23g2)'/></svg>");
  background-size: 150px 150px;
}
body > * { position: relative; z-index: 1; }

::selection { background: rgba(224, 133, 82, 0.40); color: var(--cream); }

/* ─── Typographic primitives ─────────────────────────────── */
.label, .eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mist);
}
.label.ember, .eyebrow.ember { color: var(--amber); }

.h-display {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(64px, 10vw, 144px);
  line-height: 0.92; letter-spacing: -0.045em;
  color: var(--bone);
}
.h-display .light { font-weight: 400; color: var(--paper); letter-spacing: -0.04em; }
.h-display em { font-style: normal; color: var(--paper); font-weight: 400; }
.h-display .mark { color: var(--ember); }

.h-1 { font-family: var(--sans); font-weight: 700; font-size: clamp(40px, 5.8vw, 84px); line-height: 0.98; letter-spacing: -0.038em; color: var(--bone); }
.h-2 { font-family: var(--sans); font-weight: 600; font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; color: var(--bone); }
.h-3 { font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.18; letter-spacing: -0.02em; color: var(--bone); }
.lede { font-size: 20px; line-height: 1.5; color: var(--paper); font-weight: 400; max-width: 56ch; letter-spacing: -0.005em; }
.body-t { font-size: 16px; line-height: 1.65; color: var(--paper); font-weight: 400; max-width: 60ch; letter-spacing: -0.003em; }
.small { font-size: 13px; line-height: 1.55; color: var(--mist); }

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

/* ─── Layout ─────────────────────────────────────────────── */
.container, .shell { width: 100%; padding: 0 48px; }
@media (max-width: 820px) { .container, .shell { padding: 0 20px; } .section > .container { max-width: 100%; padding-left: 20px; padding-right: 20px; } }

/* ─── Wordmark (Bricolage; only here) ─────────────────────── */
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--bone);
  line-height: 1;
  text-decoration: none;
  display: inline-block;
}
.wordmark .dot { color: var(--ember); }

/* ─── Topnav ─────────────────────────────────────────────── */
/* position: fixed instead of sticky — sticky breaks on iOS Safari when
   any ancestor has overflow-x: hidden. Fixed is universally reliable.  */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background: rgba(12, 8, 5, 0.65);
  border-bottom: 1px solid var(--line-2);
}
/* Spacer to offset the fixed nav — matches its height (18*2 + ~24 line) */
body { padding-top: 60px; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__mark { display: inline-flex; align-items: center; gap: 12px; }
.nav__links {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}
.nav__links a { color: inherit; text-decoration: none; transition: color .25s; }
.nav__links a:hover { color: var(--bone); }
.nav__cta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(239, 230, 216, 0.06);
  border: 1px solid var(--line-3);
  color: var(--bone);
  cursor: pointer;
  transition: background .25s, border-color .25s;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.nav__cta:hover { background: rgba(239, 230, 216, 0.10); border-color: rgba(239, 230, 216, 0.3); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ─── Mobile nav (hamburger + drawer) ────────────────────── */
.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 0;
  color: var(--bone);
  cursor: pointer;
  flex-shrink: 0;
}
.nav__hamburger svg { display: block; }

@media (max-width: 860px) {
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }
}

/* Dim overlay behind the drawer */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }

/* Slide-in drawer from the right, 80% viewport width */
.nav__mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 300px;
  z-index: 100;
  background: #100c09;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.nav__mobile.is-open { transform: translateX(0); }

.nav__mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  min-height: 60px;
  flex-shrink: 0;
}
.nav__mobile-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fog);
  cursor: pointer;
  margin-right: -10px;
  transition: color .2s;
}
.nav__mobile-close:hover { color: var(--bone); }

.nav__mobile-links {
  flex: 1;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav__mobile-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: color .2s, background .2s;
}
.nav__mobile-link:last-of-type { border-bottom: none; }
.nav__mobile-link:hover { color: var(--bone); background: var(--line-2); }

.nav__mobile-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line-2);
  flex-shrink: 0;
}
.nav__mobile-cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--bone);
  color: var(--night);
  text-align: center;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.003em;
  text-decoration: none;
  transition: opacity .2s;
}
.nav__mobile-cta:hover { opacity: 0.9; }

/* ─── Section number marker ──────────────────────────────── */
.sec-num {
  display: inline-flex; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 28px;
}
.sec-num .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
}
.sec-num .sep { color: var(--fog); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
}

/* drifting warm blobs behind the text */
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.hero__bg .blob-1 {
  width: 70vw; height: 70vw;
  top: -18vw; right: -14vw;
  background: radial-gradient(circle, rgba(224, 133, 82, 0.55) 0%, rgba(194, 90, 44, 0.18) 35%, transparent 65%);
  animation: drift1 28s ease-in-out infinite alternate;
}
.hero__bg .blob-2 {
  width: 55vw; height: 55vw;
  bottom: -22vw; right: 8vw;
  background: radial-gradient(circle, rgba(194, 90, 44, 0.50) 0%, rgba(107, 64, 40, 0.20) 35%, transparent 65%);
  animation: drift2 34s ease-in-out infinite alternate;
}
.hero__bg .blob-3 {
  width: 50vw; height: 50vw;
  top: 25vw; left: -12vw;
  background: radial-gradient(circle, rgba(107, 64, 40, 0.45) 0%, transparent 60%);
  animation: drift3 40s ease-in-out infinite alternate;
}
.hero__bg .blob-4 {
  width: 40vw; height: 40vw;
  top: -10vw; left: 30vw;
  background: radial-gradient(circle, rgba(244, 220, 190, 0.10) 0%, transparent 60%);
  animation: drift4 32s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-7vw, 5vw) scale(1.12); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5vw, -6vw) scale(1.18); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vw) scale(1.10); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate(-4vw, 8vw) scale(1.20); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg .blob { animation: none !important; }
}

.hero__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 0 48px 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 820px) {
  .hero__content { padding: 0 20px 44px; }
}

@media (max-width: 767px) {
  /* Hero: was height:100vh + content pinned to bottom = half screen wasted */
  .hero { height: auto; min-height: 0; }
  .hero__content { position: relative; padding: 72px 20px 36px; }
  .hero::after { height: 100px; }

  /* Section spacing: 110px desktop → 56px mobile */
  .section { padding: 56px 0; }

  /* These sections have their own padding (not .section class) */
  .pull  { padding: 56px 0; }
  .closer { padding: 56px 0 72px; }

  /* Scene heading: clamp min of 34px is fine on 375px, but cap it */
  .scene__copy h3 { font-size: clamp(28px, 7.5vw, 40px); }

  /* Draft: tighter padding */
  .draft { padding: 20px; }

  /* Footer: wordmark first, then links, then copyright */
  footer { padding: 40px 0 32px; }
  .foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-align: left;
  }
  .foot__center { order: -1; margin-bottom: 28px; }
  .foot__right {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 -12px 20px;
    justify-content: flex-start;
  }
  .foot__right a {
    padding: 8px 12px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .foot__left { font-size: 10px; color: var(--fog); }
}

.hero__eyebrow { margin-bottom: 32px; color: var(--mist); }

.hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(56px, 9.5vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.052em;
  color: var(--bone);
  max-width: 16ch;
}
.hero h1 .light { font-weight: 400; color: var(--paper); letter-spacing: -0.05em; }
.hero h1 .mark  { color: var(--ember); }

.hero__lede {
  margin-top: 28px;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--paper);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.hero__cta {
  margin-top: 36px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

.hero__foot {
  margin-top: 56px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist);
}
.hero__foot-l { display: inline-flex; align-items: center; gap: 12px; }
.hero__foot-l .sep { color: var(--fog); }
.hero__pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
  animation: pulse 2.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.15); }
}
.hero__foot-r { color: var(--fog); display: inline-flex; align-items: center; gap: 8px; }
.hero__foot-arrow { animation: bounce 2.4s ease-in-out infinite; display: inline-block; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}
@media (max-width: 480px) { .hero__foot-r { display: none; } }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  font: 500 13.5px/1 var(--sans);
  letter-spacing: -0.003em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--bone);
  color: var(--night);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--cream); transform: translateY(-1px); }

.btn-ghost {
  font: 500 13.5px/1 var(--sans);
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--line-3);
  color: var(--bone);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .25s, border-color .25s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(239, 230, 216, 0.04); border-color: rgba(239, 230, 216, 0.3); }
.btn-ghost .arrow { color: var(--amber); transition: transform .25s; }
.btn-ghost:hover .arrow { transform: translateX(2px); }

/* ─── Glass cards ────────────────────────────────────────── */
.glass {
  position: relative;
  border-radius: 24px;
  background: rgba(14, 10, 8, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(239, 230, 216, 0.06);
}
.glass-tile {
  position: relative;
  border-radius: 18px;
  background: rgba(14, 10, 8, 0.50);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 230, 216, 0.06);
}

/* ─── Section primitive ──────────────────────────────────── */
.section { padding: 110px 0; }
.section + .section { padding-top: 0; }
.section > .container { max-width: 55%; margin: 0 auto; padding-left: 0; padding-right: 0; }

.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.scene--reverse { direction: rtl; }
.scene--reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .scene { grid-template-columns: 1fr; gap: 56px; direction: ltr; }
}

.scene__copy { max-width: 520px; }
.scene__copy h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02; letter-spacing: -0.032em;
  color: var(--bone);
}
.scene__copy h3 .light { font-weight: 400; color: var(--paper); }
.scene__copy h3 .mark  { color: var(--ember); }
.scene__copy p {
  margin-top: 22px;
  font-size: 17px; line-height: 1.6;
  color: var(--paper);
  max-width: 50ch;
}
.scene__copy p em { font-style: normal; color: var(--bone); font-weight: 500; }
.scene__copy .sec-num { margin-bottom: 22px; }

/* ─── Memory card (Scene I) ──────────────────────────────── */
.memory-card { padding: 32px; max-width: 460px; }
.memory-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-2);
}
.memory-card__title {
  font-family: var(--sans); font-weight: 500;
  font-size: 18px; letter-spacing: -0.02em; color: var(--bone);
}
.memory-card__title em { font-style: normal; color: var(--paper); font-weight: 400; }
.memory-card__meta {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fog);
}
.mem {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
  align-items: baseline;
}
.mem:first-of-type { border-top: 0; }
.mem__when {
  flex: 0 0 64px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fog);
}
.mem__what {
  font-size: 14px; line-height: 1.5;
  color: var(--bone);
  flex: 1;
  letter-spacing: -0.003em;
}
.mem__what em { font-style: normal; color: var(--mist); font-weight: 400; }

/* ─── Lockscreen (Scene II) ──────────────────────────────── */
.lockscreen {
  width: min(340px, 100%);
  border-radius: 36px;
  padding: 26px 18px 18px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(194, 90, 44, 0.35), transparent 70%),
    linear-gradient(180deg, #18130F 0%, #110D0A 100%);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(180, 140, 110, 0.20),
    0 40px 80px rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column; gap: 16px;
}
.lockscreen__time {
  text-align: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 64px;
  letter-spacing: -0.04em;
  color: var(--bone);
  line-height: 1;
}
.lockscreen__date {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: -0.005em;
  color: var(--paper);
  margin-top: -4px;
}
.lockscreen__notif {
  margin-top: 16px;
  padding: 14px;
  background: rgba(14, 10, 8, 0.55);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex; gap: 12px;
}
.lockscreen__app {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--amber), var(--ember));
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 500;
  font-size: 16px; letter-spacing: -0.04em;
  color: var(--night);
  flex: 0 0 28px;
}
.lockscreen__msg { flex: 1; }
.lockscreen__msg .top {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 11px; color: var(--paper);
}
.lockscreen__msg .top b { color: var(--bone); font-weight: 500; font-size: 12px; }
.lockscreen__msg .top span {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.1em; color: var(--fog); text-transform: uppercase;
}
.lockscreen__msg .body {
  margin-top: 4px;
  font-size: 12.5px; line-height: 1.45;
  color: var(--bone);
  letter-spacing: -0.003em;
}
.lockscreen__msg .body em { font-style: normal; color: var(--paper); font-weight: 400; }

/* ─── Draft email (Scene III) ────────────────────────────── */
.draft {
  width: 100%; max-width: 540px;
  padding: 26px 28px;
  background: rgba(14, 10, 8, 0.55);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.draft__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fog);
}
.draft__head .by { color: var(--amber); }
.draft__field {
  display: flex; gap: 14px;
  padding: 9px 0;
  font-size: 13px; color: var(--paper);
  border-bottom: 1px dashed var(--line-2);
}
.draft__field b {
  color: var(--fog); font-weight: 400;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  flex: 0 0 64px;
  padding-top: 2px;
}
.draft__body {
  padding-top: 20px;
  font-size: 14.5px; line-height: 1.7;
  color: var(--bone);
  letter-spacing: -0.003em;
}
.draft__body p + p { margin-top: 10px; }
.draft__body em { font-style: normal; color: var(--paper); font-weight: 500; }
.draft__caret {
  display: inline-block; width: 1.5px; height: 16px;
  background: var(--ember);
  vertical-align: -2px;
  margin-left: 1px;
  animation: caret 1s steps(2, start) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ─── Pull quote ─────────────────────────────────────────── */
.pull { padding: 130px 0; }
.pull__inner { max-width: 1040px; }
.pull blockquote {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.034em;
  color: var(--bone);
  max-width: 18ch;
}
.pull blockquote .quiet { color: var(--paper); font-weight: 400; }
.pull cite {
  display: block;
  margin-top: 36px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fog);
}
.pull cite b { color: var(--bone); font-weight: 500; }

/* ─── Privacy ────────────────────────────────────────────── */
.privacy { padding: 30px 0 60px; }
.privacy__inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 80px; align-items: start;
}
@media (max-width: 860px) { .privacy__inner { grid-template-columns: 1fr; gap: 36px; } }

.privacy__title {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98; letter-spacing: -0.038em;
  color: var(--bone);
  max-width: 14ch;
}
.privacy__title .light { font-weight: 400; color: var(--paper); }

.privacy__prose {
  font-size: 17px; line-height: 1.65;
  color: var(--paper);
  max-width: 560px;
}
.privacy__prose p + p { margin-top: 18px; }
.privacy__prose em { font-style: normal; color: var(--bone); font-weight: 500; }

/* ─── Specs strip ────────────────────────────────────────── */
.specs {
  padding: 48px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin-top: 56px;
}
.specs__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px;
}
.spec__label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 12px;
}
.spec__value {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--bone);
}
.spec__value .light { font-weight: 400; color: var(--paper); }
.spec__value .small { font-family: var(--sans); font-size: 13px; color: var(--mist); letter-spacing: -0.005em; font-weight: 400; }
@media (max-width: 720px) {
  .specs__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ─── Closer ─────────────────────────────────────────────── */
.closer { padding: 130px 0 140px; }
.closer h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.046em;
  color: var(--bone);
  max-width: 14ch;
}
.closer h2 .light { font-weight: 400; color: var(--paper); letter-spacing: -0.044em; }
.closer__row {
  margin-top: 48px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.closer__or {
  font-family: var(--sans);
  font-size: 15px; color: var(--mist);
}
.closer__or a {
  color: var(--bone); text-decoration: none;
  border-bottom: 1px solid var(--line-3);
  padding-bottom: 1px;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  padding: 60px 0 56px;
  border-top: 1px solid var(--line-2);
}
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end; gap: 24px;
}
.foot__left {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fog);
}
.foot__center { text-align: center; }
.foot__right {
  text-align: right;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist);
  display: flex; gap: 22px; justify-content: flex-end;
}
.foot__right a { color: inherit; text-decoration: none; transition: color .25s; }
.foot__right a:hover { color: var(--bone); }
@media (max-width: 820px) {
  .foot { grid-template-columns: 1fr; text-align: left; }
  .foot__center, .foot__right { text-align: left; justify-content: flex-start; }
}

/* ─── Hero bottom fade — blends blobs into the next section ── */
/* z-index: 1 = above blobs (z:0), below hero content (z:2) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(to bottom, transparent 0%, rgba(14, 10, 8, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ─── Memory type badge ──────────────────────────────────── */
.mem__type {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fog);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

/* ─── Scroll-reveal — JS adds .is-visible to trigger ──────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Mobile component overrides (must come after base rules) ─
   These are at the bottom so they win the cascade over
   the component definitions above.                            */
@media (max-width: 767px) {
  .scene { gap: 32px; }
  .scene__copy { max-width: 100%; }

  /* Force full width — base rule has max-width: 460px which
     wins if this block appears before the component rule.    */
  .memory-card { width: 100%; max-width: 100%; padding: 20px; }
  .lockscreen  { width: 100%; border-radius: 24px; }

  /* Use block layout instead of flex on mobile. The base rule's
     `flex: 0 0 64px` on .mem__when behaves as a 64px main-axis
     SIZE; in column flex direction that means 64px of HEIGHT,
     producing a huge vertical gap below the label. Block layout
     sidesteps the issue entirely.                              */
  .mem { display: block; padding: 14px 0; }
  .mem__when {
    display: block;
    flex: none;
    width: auto;
    font-size: 9px;
    margin-bottom: 6px;
  }
  .mem__what { display: block; }
}
