/* Daniel Wendel — one night sky, two worlds.
   Gospel Companion speaks in Cinzel and gold; Pocket Guide in condensed caps and materia colours.
   Everything else is Archivo at its normal width. */

@property --glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #E8B873;
}

:root {
  --sky-0: #04060E;
  --sky-1: #070A18;
  --star: #EEF2FF;
  --text: #C9D0E6;
  --dust: #9AA5C4;
  --line: rgba(190, 205, 255, 0.14);

  --gold: #E8B873;
  --gold-hi: #F5D9A8;

  --materia-green: #3DDC84;
  --materia-yellow: #FFC93C;
  --materia-blue: #4DA3FF;
  --materia-red: #FF5A5F;
  --materia-purple: #B07CFF;
  --ff-navy: #0B1020;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif-caps: "Cinzel", "Trajan Pro", Georgia, serif;

  --gutter: 16px;
  --header-h: 64px;
  --focus: var(--gold-hi);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sky-1);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--star);
  color: var(--sky-1);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- The sky ---------- */

.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--sky-1);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 10, 24, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--star);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 18px;
  height: 18px;
  fill: var(--gold-hi);
  filter: drop-shadow(0 0 6px rgba(245, 217, 168, 0.7));
}

.site-nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  font-size: 0.9375rem;
}
.site-nav a {
  color: var(--dust);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--star); }
.site-nav a[aria-current] {
  color: var(--star);
  border-bottom-color: currentColor;
}

@media (max-width: 599px) {
  .site-nav .nav-about { display: none; }
  .site-nav { font-size: 0.875rem; gap: 0.9rem; }
  .brand span { display: none; }
}

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

.hero {
  padding-block: calc(var(--header-h) + clamp(4rem, 15vh, 9rem)) clamp(3rem, 8vh, 5rem);
}

.hero-name {
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  color: var(--star);
  font-size: clamp(4.25rem, 16vw, 14rem);
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.045em;
  line-height: 0.84;
}
.hero-name span { display: block; }
.hero-name span + span { padding-left: 0.42em; }

.hero-lede {
  max-width: 34rem;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

/* ---------- Home: one framed card per app ---------- */

.apps { padding-bottom: clamp(4rem, 10vh, 7rem); }

.apps-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (min-width: 900px) {
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Each card is a window into its app's world: its own sky, glow, type and buttons. */
.app-card {
  --pad: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--pad) var(--pad) 0;
  border: 1px solid var(--card-edge);
  border-radius: 32px;
  background: var(--card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--card-lights);
  pointer-events: none;
}

.app-card--gc {
  --glow: var(--gold);
  --focus: var(--gold-hi);
  --card-edge: rgba(245, 217, 168, 0.18);
  --card-bg:
    radial-gradient(70% 42% at 50% 100%, rgba(232, 184, 115, 0.28), transparent 70%),
    radial-gradient(55% 40% at 0% 0%, rgba(167, 139, 250, 0.16), transparent 70%),
    linear-gradient(180deg, #10143A 0%, #090C22 100%);
  --card-lights:
    radial-gradient(circle at 8% 14%, rgba(238, 242, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 22% 6%, rgba(245, 217, 168, 0.9) 0 1.2px, transparent 2px),
    radial-gradient(circle at 37% 22%, rgba(238, 242, 255, 0.6) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 63% 9%, rgba(238, 242, 255, 0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 18%, rgba(245, 217, 168, 0.8) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 92% 7%, rgba(238, 242, 255, 0.7) 0 0.9px, transparent 1.5px),
    radial-gradient(circle at 88% 36%, rgba(238, 242, 255, 0.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 5% 46%, rgba(238, 242, 255, 0.7) 0 0.9px, transparent 1.5px),
    radial-gradient(circle at 95% 58%, rgba(245, 217, 168, 0.7) 0 1.1px, transparent 2px),
    radial-gradient(circle at 11% 72%, rgba(238, 242, 255, 0.6) 0 1px, transparent 1.6px),
    radial-gradient(circle at 90% 84%, rgba(238, 242, 255, 0.8) 0 0.9px, transparent 1.5px),
    radial-gradient(circle at 18% 92%, rgba(245, 217, 168, 0.7) 0 1.2px, transparent 2px);
}

.app-card--ff7 {
  --glow: var(--materia-green);
  --focus: var(--materia-yellow);
  --card-edge: rgba(61, 220, 132, 0.2);
  --card-bg:
    radial-gradient(70% 42% at 50% 100%, rgba(61, 220, 132, 0.25), transparent 70%),
    radial-gradient(50% 40% at 100% 0%, rgba(255, 201, 60, 0.12), transparent 70%),
    linear-gradient(180deg, #111A36 0%, #0B1020 100%);
  --card-lights:
    radial-gradient(circle at 9% 12%, rgba(61, 220, 132, 0.9) 0 2px, rgba(61, 220, 132, 0.25) 3px, transparent 7px),
    radial-gradient(circle at 27% 5%, rgba(77, 163, 255, 0.85) 0 1.5px, rgba(77, 163, 255, 0.2) 2.5px, transparent 6px),
    radial-gradient(circle at 58% 14%, rgba(255, 201, 60, 0.85) 0 1.5px, rgba(255, 201, 60, 0.2) 2.5px, transparent 6px),
    radial-gradient(circle at 76% 8%, rgba(61, 220, 132, 0.8) 0 1.2px, rgba(61, 220, 132, 0.2) 2px, transparent 5px),
    radial-gradient(circle at 93% 22%, rgba(176, 124, 255, 0.85) 0 2px, rgba(176, 124, 255, 0.22) 3px, transparent 7px),
    radial-gradient(circle at 4% 40%, rgba(255, 90, 95, 0.8) 0 1.5px, rgba(255, 90, 95, 0.2) 2.5px, transparent 6px),
    radial-gradient(circle at 96% 50%, rgba(61, 220, 132, 0.8) 0 1.4px, rgba(61, 220, 132, 0.2) 2.4px, transparent 6px),
    radial-gradient(circle at 8% 68%, rgba(61, 220, 132, 0.85) 0 2px, rgba(61, 220, 132, 0.25) 3px, transparent 7px),
    radial-gradient(circle at 92% 76%, rgba(255, 201, 60, 0.8) 0 1.5px, rgba(255, 201, 60, 0.2) 2.5px, transparent 6px),
    radial-gradient(circle at 15% 90%, rgba(77, 163, 255, 0.8) 0 1.4px, rgba(77, 163, 255, 0.2) 2.4px, transparent 6px),
    radial-gradient(circle at 86% 93%, rgba(61, 220, 132, 0.9) 0 2px, rgba(61, 220, 132, 0.25) 3px, transparent 7px);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.app-card-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 36px 4px color-mix(in srgb, var(--glow) 40%, transparent);
}
.app-card-title {
  margin: 0;
  color: var(--star);
}
.app-card-tagline { margin: 0.4rem 0 0; }
.app-card-lede {
  max-width: 32rem;
  margin: 1.5rem 0 0;
}
.app-card .actions { margin-top: 1.75rem; }
.app-card .btn--primary { min-width: 8.5rem; }
.app-card-store { font-size: 0.9375rem; }

.app-card--gc .app-card-title {
  font-family: var(--serif-caps);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: 0.015em;
  line-height: 1.05;
}
.app-card--gc .app-card-tagline {
  font-family: var(--serif-caps);
  color: var(--gold-hi);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.app-card-store .star { margin-right: 0.3em; }
.app-card--gc .star { color: var(--gold-hi); }

.app-card--ff7 .app-card-title,
.app-card--ff7 .app-card-tagline {
  font-variation-settings: "wdth" 62;
  font-weight: 850;
  text-transform: uppercase;
}
.app-card--ff7 .app-card-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 0.92;
}
.app-card--ff7 .app-card-tagline {
  color: var(--materia-yellow);
  font-size: 1.3rem;
  line-height: 1;
}
.app-card--ff7 .star { color: var(--materia-yellow); }

/* The phone rises out of the bottom edge of the card; the card clips the rest. */
.app-card-phone {
  margin-top: auto;
  padding-top: 2.5rem;
  height: calc(2.5rem + clamp(280px, 26vw, 360px));
  display: flex;
  justify-content: center;
}
.app-card-phone .phone { --pw: min(280px, 66vw); flex: none; }

/* One orchestrated arrival: the name rises out of the sky, then the two cards follow. */
@media (prefers-reduced-motion: no-preference) {
  .hero-name span,
  .hero-lede,
  .app-card {
    animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }
  .hero-name span + span { animation-delay: 0.09s; }
  .hero-lede { animation-delay: 0.25s; }
  .app-card--gc { animation-delay: 0.42s; }
  .app-card--ff7 { animation-delay: 0.54s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.5rem); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Worlds (shared structure) ---------- */

/* clip, not hidden: the stage's glow can't widen the page, and position: sticky keeps working */
.world { position: relative; overflow-x: clip; }

.world-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.step {
  padding-block: 3.5rem;
}
.step--intro { padding-top: calc(var(--header-h) + clamp(2.5rem, 7vh, 5rem)); }

.step h2 {
  margin: 0 0 0.9rem;
  color: var(--star);
  line-height: 1.1;
}
/* Zero-specificity defaults so the classed paragraphs below can set their own spacing. */
:where(.step) p {
  max-width: 34rem;
  margin: 0;
}

.world-icon {
  width: 72px;
  height: 72px;
  border-radius: 23%;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 48px 4px color-mix(in srgb, var(--glow) 35%, transparent);
}

.world-title {
  margin: 0;
  color: var(--star);
}

.world-tagline {
  margin: 0.75rem 0 1.5rem;
}

.world-lede {
  max-width: 34rem;
  font-size: 1.125rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  max-width: 36rem;
  margin: 2.25rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  color: var(--star);
  line-height: 1;
}
.facts dd {
  margin: 0.45rem 0 0;
  color: var(--dust);
  font-size: 0.875rem;
  line-height: 1.4;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn--primary:hover { transform: translateY(-1px); }
.btn--quiet {
  padding-inline: 0.25rem;
  color: var(--star);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(238, 242, 255, 0.35);
}
.btn--quiet:hover { text-decoration-color: currentColor; }

.built-with {
  margin-top: 1.5rem;
  color: var(--dust);
  font-size: 0.875rem;
}

/* ---------- Phones ---------- */

.phone {
  --pw: min(300px, 76vw);
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.165);
  background: linear-gradient(155deg, #3a3f4d 0%, #1b1e27 35%, #0f1117 65%, #2a2e39 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 4px rgba(0, 0, 0, 0.6),
    0 50px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -10px color-mix(in srgb, var(--glow) 40%, transparent);
  transition: box-shadow 0.8s ease;
}

.phone-screen {
  position: relative;
  aspect-ratio: 1320 / 2868;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.132);
  background: #000;
  isolation: isolate;
}
/* Dynamic Island, sized and placed from the 1320 x 2868 captures */
.phone-screen::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 1.46%;
  left: 35.8%;
  width: 28.4%;
  height: 3.84%;
  border-radius: 999px;
  background: #000;
}
.phone-screen > img,
.phone-screen > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-shot {
  margin: 2.5rem 0 0;
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.video-toggle {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 10, 24, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.video-toggle:hover { color: var(--star); border-color: rgba(238, 242, 255, 0.35); }
.video-toggle[hidden] { display: none; }

.stage { display: none; }

/* Desktop: the phone holds still while the features scroll past it. */
@media (min-width: 960px) {
  .world-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    column-gap: clamp(3rem, 7vw, 7rem);
  }
  .world--ff7 .world-inner { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
  .world--ff7 .stage { order: -1; }

  .step {
    min-height: 82svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 6rem;
  }
  .step:last-child { min-height: 100svh; }
  .step-shot { display: none; }

  .stage {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    transition: --glow 0.8s ease;
  }
  .stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 130%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 26%, transparent), transparent);
    filter: blur(20px);
  }
  .stage .phone { --pw: min(340px, 27vw, calc((100svh - 9rem) * 0.42)); }

  .stage .screen {
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1);
  }
  .stage .screen.is-active {
    opacity: 1;
    transform: none;
    z-index: 1;
  }
}

/* ---------- Gospel Companion: Cinzel, gold, night sky ---------- */

.world--gc { --focus: var(--gold-hi); }

.world--gc .world-title,
.world--gc .step h2 {
  font-family: var(--serif-caps);
  font-weight: 600;
  letter-spacing: 0.015em;
}
.world--gc .world-title {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.02;
}
.world--gc .step h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.world--gc .world-tagline {
  font-family: var(--serif-caps);
  color: var(--gold-hi);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.03em;
}
.world--gc :where(.step) p { line-height: 1.7; }
.world--gc .facts dt {
  font-family: var(--serif-caps);
  font-weight: 600;
  color: var(--gold-hi);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.world--gc .btn--primary,
.app-card--gc .btn--primary {
  border-radius: 999px;
  background: linear-gradient(180deg, #F2CD92, #E1AC62);
  color: #1D1406;
  box-shadow: 0 0 0 1px rgba(255, 230, 190, 0.5) inset, 0 10px 30px -10px rgba(232, 184, 115, 0.65);
}
.world--gc .btn--primary:hover,
.app-card--gc .btn--primary:hover { box-shadow: 0 0 0 1px rgba(255, 230, 190, 0.6) inset, 0 14px 40px -10px rgba(232, 184, 115, 0.85); }

/* ---------- Pocket Guide: condensed heavy caps, materia ---------- */

.world--ff7 { --focus: var(--materia-yellow); }

.world--ff7 .world-title,
.world--ff7 .step h2,
.world--ff7 .facts dt,
.world--ff7 .world-tagline {
  font-variation-settings: "wdth" 62;
  font-weight: 850;
  text-transform: uppercase;
}
.world--ff7 .world-title {
  font-size: clamp(3rem, 7.2vw, 5.75rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
}
.world--ff7 .step h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  letter-spacing: 0.005em;
  line-height: 0.95;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.world--ff7 .world-tagline {
  color: var(--materia-yellow);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: 0.01em;
  line-height: 1;
}
.world--ff7 .facts dt { font-size: clamp(2.2rem, 4vw, 2.9rem); }
.world--ff7 .facts div:nth-child(1) dt { color: var(--materia-green); }
.world--ff7 .facts div:nth-child(2) dt { color: var(--materia-blue); }
.world--ff7 .facts div:nth-child(3) dt { color: var(--materia-red); }
.world--ff7 .facts div:nth-child(4) dt { color: var(--materia-yellow); }

.world--ff7 .btn--primary,
.app-card--ff7 .btn--primary {
  border-radius: 14px;
  background: var(--materia-yellow);
  color: var(--ff-navy);
  font-weight: 750;
  box-shadow: 0 10px 30px -12px rgba(255, 201, 60, 0.75);
}
.world--ff7 .btn--primary:hover,
.app-card--ff7 .btn--primary:hover { box-shadow: 0 14px 40px -12px rgba(255, 201, 60, 0.95); }

.pro-pill {
  display: inline-block;
  padding: 0.3em 0.65em 0.25em;
  border-radius: 999px;
  background: var(--materia-yellow);
  color: var(--ff-navy);
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.04em;
  transform: translateY(-0.1em);
}

/* ---------- App pages: closing call to action ---------- */

.closer {
  padding-block: clamp(5rem, 14vh, 8rem);
  text-align: center;
}
.closer-inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.world--gc.closer { --glow: var(--gold); }
.world--ff7.closer { --glow: var(--materia-yellow); }
.closer-icon {
  width: 96px;
  height: 96px;
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 70px 10px color-mix(in srgb, var(--glow) 30%, transparent);
}
.closer-title {
  margin: 0.75rem 0 0;
  color: var(--star);
}
.world--gc .closer-title {
  font-family: var(--serif-caps);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.05;
}
.world--ff7 .closer-title {
  font-variation-settings: "wdth" 62;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.92;
}
.closer p { margin: 0; }
.closer .actions { justify-content: center; margin-top: 1rem; }
.closer .closer-next {
  margin-top: 2.5rem;
  color: var(--dust);
  font-size: 0.9375rem;
}
.closer-next a { color: var(--star); text-underline-offset: 0.2em; }

/* ---------- Document pages (support, privacy) ---------- */

.doc {
  padding-block: calc(var(--header-h) + clamp(2.5rem, 8vh, 5rem)) clamp(4rem, 10vh, 6rem);
}
.doc-inner { max-width: 48rem; }

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}
.doc-back img {
  width: 44px;
  height: 44px;
  border-radius: 23%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 24px 2px rgba(61, 220, 132, 0.3);
}
.doc-back:hover span { text-decoration: underline; text-underline-offset: 0.2em; }

.doc-title {
  margin: 0;
  color: var(--star);
  font-variation-settings: "wdth" 62;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.9;
}
.doc-date {
  margin: 0.9rem 0 0;
  color: var(--dust);
  font-size: 0.9375rem;
}
.doc-lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--star);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.doc-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}
.doc-contact p { margin: 0; color: var(--dust); }

/* Long text sits on a calm panel so the sky never competes with it. */
.doc-panel {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 10, 24, 0.84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.doc-panel > h2 {
  margin: 0 0 1.5rem;
  color: var(--star);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.doc-panel section + section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.doc-panel section h2,
.doc-panel section h3 {
  margin: 0 0 0.5rem;
  color: var(--star);
  font-size: 1.125rem;
  line-height: 1.35;
}
.doc-panel p { margin: 0; max-width: 40rem; }
.doc-panel p + p { margin-top: 0.75rem; }
.doc-panel a,
.doc-foot a { color: var(--star); text-underline-offset: 0.2em; }
.doc-foot { margin: 2rem 0 0; color: var(--dust); }

/* ---------- About ---------- */

.about {
  padding-block: clamp(6rem, 16vh, 10rem) clamp(4rem, 10vh, 7rem);
}
.about-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.about-photo {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 100px -20px rgba(232, 184, 115, 0.35);
}
.about-copy h2 {
  margin: 0 0 1.25rem;
  color: var(--star);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.035em;
  line-height: 1;
}
.about-copy p {
  max-width: 34rem;
  margin: 0 0 1.1rem;
}
.about-copy .actions { margin-top: 2rem; }
.about .btn--primary {
  border-radius: 999px;
  background: var(--star);
  color: var(--sky-1);
}
.about .btn--primary:hover { background: #fff; }

@media (min-width: 860px) {
  .about-inner { grid-template-columns: auto minmax(0, 1fr); gap: clamp(3rem, 7vw, 6rem); }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--dust);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.footer-inner { display: grid; gap: 0.6rem; }
.footer-inner p { margin: 0; max-width: 46rem; }
.footer-made { color: var(--text); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer a { color: var(--text); text-underline-offset: 0.2em; }
.footer-legal { opacity: 0.85; }

/* ---------- Reduced motion ---------- */

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