/* ============ Colour tokens ============
   Light: cream is the main colour, navy is the minor (text, buttons).
   Dark:  navy is the main colour, cream is the minor.
   One small "red pen" accent is used only for the strike line and tiny highlights. */
:root {
  --cream: #F3EBDD;
  --cream-hi: #FBF7F0;
  --navy: #0E2340;
  --navy-deep: #0A1A31;
  --navy-hi: #14305A;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --name-size: clamp(4.6rem, 18vw, 11.5rem);
  --knows-size: clamp(1.9rem, 6.4vw, 3.7rem);

  --bg: var(--cream);
  --surface: var(--cream-hi);
  --text: var(--navy);
  --muted: rgba(14, 35, 64, .72);
  --hairline: rgba(14, 35, 64, .14);
  --dot: rgba(14, 35, 64, .14);
  --accent: #B4442C;
  --btn-bg: var(--navy);
  --btn-text: var(--cream-hi);
  --glow: rgba(14, 35, 64, .07);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--navy-deep);
    --surface: var(--navy-hi);
    --text: var(--cream);
    --muted: rgba(243, 235, 221, .74);
    --hairline: rgba(243, 235, 221, .16);
    --dot: rgba(243, 235, 221, .10);
    --accent: #F2876A;
    --btn-bg: var(--cream);
    --btn-text: var(--navy);
    --glow: rgba(243, 235, 221, .06);
  }
}
:root[data-theme="dark"] {
  --bg: var(--navy-deep);
  --surface: var(--navy-hi);
  --text: var(--cream);
  --muted: rgba(243, 235, 221, .74);
  --hairline: rgba(243, 235, 221, .16);
  --dot: rgba(243, 235, 221, .10);
  --accent: #F2876A;
  --btn-bg: var(--cream);
  --btn-text: var(--navy);
  --glow: rgba(243, 235, 221, .06);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Soft dot grid that fades out toward the edges */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.bg-grid::after {
  content: ""; position: absolute; left: 50%; top: 38%;
  width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow), transparent 60%);
}

/* Animated background canvas. Faded behind the headline so the text always stays easy to read. */
.bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 55% 40% at 50% 36%, rgba(0,0,0,.4) 0%, #000 80%);
          mask-image: radial-gradient(ellipse 55% 40% at 50% 36%, rgba(0,0,0,.4) 0%, #000 80%);
}
/* When the network animation runs, drop the static dots (they stay as a fallback if JavaScript is off) */
.has-bg-anim .bg-grid { background-image: none; -webkit-mask-image: none; mask-image: none; }

/* ============ Nav ============ */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 20px 16px;
}
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none; }
.logo-dot { color: var(--accent); }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (min-width: 760px) { .nav-links { display: flex; } .nav { padding: 24px 24px; } }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--text);
  border: 1px solid var(--hairline);
  transition: border-color .2s, transform .2s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--text); transform: rotate(-12deg); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .icon-moon, :root[data-theme="light"] .icon-sun { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-text);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--btn-bg);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(10, 26, 49, .55); }
.btn:hover .arrow { transform: translateX(4px); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-small { padding: 10px 18px; font-size: .9rem; }
.btn:focus-visible, .theme-toggle:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}

/* ============ Hero ============ */
.hero {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(28px, 7vh, 80px) 16px 80px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hairline);
  font-size: .85rem; font-weight: 600; color: var(--muted); background: var(--surface);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2E9E6A; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #2E9E6A; opacity: 0; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-title { margin: 0; line-height: 1; }
/* AMAN — Bodoni Moda: high-contrast "fashion magazine" serif */
.name {
  display: inline-block;
  font-size: var(--name-size);
  line-height: .92;
  letter-spacing: .015em;
  font-family: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif; font-weight: 600;
  cursor: default;
  user-select: none;
}
.name .ch { display: inline-block; will-change: transform, opacity, filter; }

/* "Knows ___" line.
   Two equal columns that meet at the centre: "Knows" sits right of the left column,
   the changing word starts at the centre. So "Knows" never jumps while the word changes size. */
.knows-stage {
  width: 100%;
  height: calc(var(--knows-size) * 1.9);
  margin-top: 8px;
  display: flex; align-items: center;
  font-size: var(--knows-size);
}
.knows-line {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: .26em;
  align-items: baseline;
  width: 100%;
  font-family: 'Bodoni Moda', 'Didot', serif; font-style: italic; font-weight: 500;
  line-height: 1.15;
  opacity: 0;
  will-change: transform, opacity;
}
.knows-word { justify-self: end; white-space: nowrap; }
.slot { justify-self: start; display: grid; align-items: baseline; justify-items: start; }
.word {
  grid-area: 1 / 1;
  position: relative;
  white-space: nowrap;
  will-change: transform, opacity;
}
.strike-pen {
  position: absolute; left: -8%; width: 116%; top: 50%; height: .55em;
  transform: translateY(-50%); overflow: visible; pointer-events: none;
}
.strike-pen path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.hero-sub {
  max-width: 34rem; margin: 10px auto 0;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted);
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-sub.show { opacity: 1; transform: none; }

.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.chips {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  padding: 0; margin: 34px 0 0; max-width: 40rem;
}
.chips li {
  font-size: .85rem; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--hairline);
}

@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
  .hero-sub { transition: none; }
}
