:root {
  --ink: #070a09;
  --midnight: #0b1412;
  --forest: #12352e;
  --pine: #1a4a40;
  --emerald: #2a7a66;
  --jade: #3e9b82;
  --gold: #d4af6a;
  --gold-soft: #e8d5a3;
  --ivory: #f7f1e6;
  --cream: #faf6ef;
  --paper: #fffbf4;
  --sand: #e8dfd0;
  --mist: #8a938e;
  --stone: #5c6662;
  --rose: #c4786a;
  --max: 1120px;

  /* ── Type ───────────────────────────────────────────────────────────
     Two families, as the app has: Cormorant Garamond to say things,
     Outfit to label them. The scale is fluid, so nothing needs a
     breakpoint to stay in proportion.                                */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --ui: Outfit, ui-sans-serif, system-ui, -apple-system, sans-serif;

  --step-hero: clamp(3.1rem, 8.4vw, 5.6rem);
  --step-h2:   clamp(2.3rem, 5vw, 3.6rem);
  --step-h3:   clamp(1.18rem, 1.6vw, 1.32rem);
  --step-lead: clamp(1.06rem, 1.4vw, 1.19rem);
  --step-body: 1rem;
  --step-small: 0.875rem;
  --step-label: 0.7rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ui);
  font-size: var(--step-body);
  background: var(--ink);
  color: var(--ivory);
  /* 1.5 was tight for a 17px measure over 520px. */
  line-height: 1.62;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

p { text-wrap: pretty; }

img { max-width: 100%; display: block; }

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
}

.mark {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--mist);
}

.nav-links a:hover { color: var(--gold-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(255,255,255,.2);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,10,9,.2) 0%, rgba(7,10,9,.35) 40%, #06100d 100%),
    url("https://images.unsplash.com/photo-1518199266791-5375a83190b7?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-copy {
  position: relative;
  padding: 0 0 72px;
  max-width: 680px;
}

.eyebrow {
  color: var(--gold);
  /* Tracking in em, so it scales with the type instead of drifting. */
  letter-spacing: 0.24em;
  font-size: var(--step-label);
  font-weight: 500;
  text-transform: uppercase;
  /* An all-caps run needs its final letter's space back, or it reads
     as if it is leaning right. */
  text-indent: 0.24em;
}

h1, h2, h3, .serif {
  font-family: var(--display);
  /* 500, not 600. Cormorant at 600 goes heavy the moment it is large,
     and the whole point of this face is its delicacy. */
  font-weight: 500;
  /* Was -0.03em. Negative tracking cramps a high-contrast Garamond at
     display size — the counters close up and the serifs collide. Held
     at neutral, the letterforms get to breathe. */
  letter-spacing: -0.004em;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-hero);
  line-height: 1.04;
  margin: 0.16em 0 0.2em;
}

/* An italic phrase inside a heading — the one thing Cormorant does
   better than almost anything else, and the site was not loading it. */
h1 em, h2 em, .serif em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}

.lead {
  color: color-mix(in srgb, var(--ivory) 84%, transparent);
  font-size: var(--step-lead);
  font-weight: 300;
  line-height: 1.58;
  max-width: 34em;
}

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

section { padding: 96px 0; }

.cream {
  background: var(--cream);
  color: var(--forest);
}

.cream .eyebrow { color: #9a7b3c; }
.cream p, .cream .muted { color: var(--stone); }

h2 {
  font-size: var(--step-h2);
  line-height: 1.1;
  margin: 0.12em 0 0.24em;
}

.grid-3, .grid-4, .split {
  display: grid;
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { grid-template-columns: 1fr 1fr; align-items: center; }

.card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--sand);
}

.dark .card {
  background: #121a18;
  border-color: rgba(255,255,255,.08);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  margin-bottom: 14px;
  font-size: 18px;
}

.card h3 {
  font-size: var(--step-h3);
  line-height: 1.25;
  margin-bottom: 0.4em;
}

.muted { color: var(--mist); }

.phone {
  width: min(320px, 100%);
  margin-inline: auto;
  border-radius: 36px;
  padding: 10px;
  background: #101816;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 17;
  position: relative;
  background: #0b1412;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  /* This sits on a black gradient over a photograph, always — so it must
     set its own colour rather than inherit the section's.
     Both these cards live inside `.cream`, which sets colour to forest
     green (#12352E). Green on near-black measured 1.42:1 against a 4.5
     requirement: the pill and the name were effectively invisible. */
  color: var(--ivory);
}

.phone-overlay strong {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.4vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.004em;
  display: block;
  color: var(--ivory);
  /* The name had nothing above or below it: the pill sat on its shoulder
     and the meta line touched its baseline, so "Karim, 31" and
     "Product Lead" read as one run of text. */
  margin: 0.34em 0 0.16em;
}

/* The meta line under the name — city, work, Jamat. Small, tracked, and
   quiet, so the name is unmistakably the thing being said. */
.phone-overlay > span:not(.pill) {
  display: block;
  font-family: var(--ui);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.035em;
  line-height: 1.45;
  color: color-mix(in srgb, var(--ivory) 74%, transparent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 99px;
  /* .35 was too sheer to guarantee contrast over an arbitrary photo. */
  background: rgba(0,0,0,.58);
  border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  /* Stated, not inherited — this is what made it disappear. */
  color: var(--gold-soft);
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
  padding-block: 6px;
  backdrop-filter: blur(3px);
  margin-bottom: 10px;
}

.steps { counter-reset: step; }
.step {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cream .step { border-top-color: rgba(18, 53, 46, .12); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
}

.cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--forest), var(--ink) 70%);
}

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--mist);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.legal {
  max-width: 720px;
  padding: 120px 0 80px;
}

.legal p { margin: 14px 0; color: var(--mist); }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--ivory);
  font-size: 22px;
}

/* Hero eyebrow pill */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 106, .38);
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35),
              inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(212, 175, 106, .55);
  animation: pulseDot 2.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: .7; }
}

/* ————— Motion ————— */

/* Hero: slow Ken Burns drift on the imagery */
.hero-bg {
  animation: heroDrift 26s ease-in-out infinite alternate;
  transform-origin: 50% 30%;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.07) translateY(-1.5%); }
}

/* Hero: copy cascades in on load */
.hero-copy > * {
  opacity: 0;
  transform: translateY(26px);
  animation: riseIn .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-copy > :nth-child(1) { animation-delay: .15s; }
.hero-copy > :nth-child(2) { animation-delay: .30s; }
.hero-copy > :nth-child(3) { animation-delay: .45s; }
.hero-copy > :nth-child(4) { animation-delay: .60s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* Scroll reveal (elements tagged .rv by app.js) */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.rv.in { opacity: 1; transform: none; }

/* Nav: underline grows on hover; bar deepens once scrolled */
.nav { transition: box-shadow .3s ease, background .3s ease; }
.nav.scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
}
.nav-links a:not(.btn) {
  background: linear-gradient(var(--gold-soft), var(--gold-soft)) left bottom / 0% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s ease, color .2s ease;
}
.nav-links a:not(.btn):hover { background-size: 100% 1px; }
.brand .mark { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .mark { transform: scale(1.08) rotate(-4deg); }

/* Cards: lift, glow, and a playful icon */
.card {
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease, border-color .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(7,10,9,.12);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--sand));
}
.dark .card:hover {
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  border-color: rgba(212,175,106,.35);
}
.icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.card:hover .icon { transform: scale(1.12) rotate(-6deg); }

/* Buttons: lift + shine sweep */
.btn { position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); }
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .7s ease;
  pointer-events: none;
}
.btn-gold:hover::after { transform: translateX(130%); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(212,175,106,.35); }

/* Phones: gentle float */
.phone { animation: phoneFloat 7s ease-in-out infinite alternate; }
@keyframes phoneFloat {
  from { transform: translateY(0) rotate(-.4deg); }
  to   { transform: translateY(-10px) rotate(.4deg); }
}

/* Respect reduced motion, fully */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rv, .hero-copy > * { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    inset: 64px 20px auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: #101816;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
}
