/* =========================================================
   KOAS · Shared design system — used across all 3 pages
   Brand: Offblack #161618 (70%), Pinky White #FEFBFC (20%),
          Strong Pink #FF5D8F (5%), Cute Pink #FFD1DF (5%)
   Type:  Poppins (display + meta), Epilogue (body)
   ========================================================= */

:root {
  --offblack: #161618;
  --offblack-2: #1d1d20;
  --offblack-3: #26262a;
  --pinky-white: #FEFBFC;
  --pinky-white-2: #f4eef0;
  --strong-pink: #FFD1DF;
  --cute-pink: #FF5D8F;

  --ink: var(--pinky-white);
  --ink-2: rgba(254, 251, 252, 0.68);
  --ink-3: rgba(254, 251, 252, 0.46);
  --ink-4: rgba(254, 251, 252, 0.22);
  --rule:  rgba(254, 251, 252, 0.10);
  --rule-2: rgba(254, 251, 252, 0.16);

  --display: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --body:    "Epilogue", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1340px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--strong-pink); color: var(--offblack); }

/* Headline accent spans use the stronger pink — buttons + UI stay soft.
   !important needed because per-page selectors (.hero-headline .it, etc.)
   are more specific. */
.it { color: var(--cute-pink) !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--offblack);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ------------ Type scale ------------ */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--strong-pink);
  margin: 0 8px 2px;
  vertical-align: middle;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--strong-pink);
}

/* ------------ Layout ------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.lede {
  font-family: var(--body);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ------------ Gradient meshes ------------ */
.mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  /* Soft-fade the pink glow at top + bottom so neighbouring sections blend smoothly */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}
.mesh::before, .mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
}
.mesh.tl::before { top: -20%; left: -10%; width: 700px; height: 700px; background: radial-gradient(circle, var(--strong-pink) 0%, transparent 60%); opacity: 0.18; }
.mesh.tl::after  { top: 20%; left: 40%; width: 540px; height: 540px; background: radial-gradient(circle, var(--cute-pink) 0%, transparent 60%); opacity: 0.10; }
.mesh.br::before { bottom: -20%; right: -10%; width: 800px; height: 800px; background: radial-gradient(circle, var(--strong-pink) 0%, transparent 60%); opacity: 0.16; }
.mesh.br::after  { bottom: 10%; right: 30%; width: 460px; height: 460px; background: radial-gradient(circle, var(--cute-pink) 0%, transparent 60%); opacity: 0.10; }
.mesh.center::before { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 900px; height: 600px; background: radial-gradient(ellipse, var(--strong-pink) 0%, transparent 65%); opacity: 0.14; }}
.mesh.center::after  { display: none; }

/* Grain overlay for richness */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ------------ Buttons ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 18px 26px;
  border-radius: 100px;
  transition: transform 0.4s var(--ease-out), background 0.25s ease, color 0.25s ease, box-shadow 0.4s ease;
  position: relative;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.btn .arrow svg { width: 11px; height: 11px; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--strong-pink);
  color: var(--offblack);
}
.btn-primary:hover {
  background: var(--pinky-white);
  color: var(--offblack);
  box-shadow: 0 20px 50px -20px var(--strong-pink);
}
.btn-primary .arrow { background: var(--offblack); color: var(--strong-pink); }
.btn-primary:hover .arrow { background: var(--offblack); color: var(--strong-pink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-2);
}
.btn-ghost:hover { border-color: var(--pinky-white); background: rgba(254,251,252,0.04); }
.btn-ghost .arrow { background: var(--pinky-white); color: var(--offblack); }

/* ------------ Live pill ------------ */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--strong-pink);
  padding: 7px 14px 6px;
  border: 1px solid rgba(255, 93, 143, 0.32);
  border-radius: 100px;
  background: rgba(255, 93, 143, 0.06);
}
.live-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--strong-pink);
  box-shadow: 0 0 0 0 rgba(255, 93, 143, 0.5);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 93, 143, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 93, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 93, 143, 0); }
}

/* ------------ Topbar ------------ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(22, 22, 24, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--rule);
}
.topbar .logo svg { height: 20px; width: auto; }
.topbar-nav {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.topbar-nav a {
  padding: 8px 14px;
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease;
}
.topbar-nav a:hover { color: var(--ink); background: rgba(254,251,252,0.04); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar .btn { padding: 9px 14px; font-size: 12px; }

@media (min-width: 900px) {
  .topbar-nav { display: inline-flex; }
}

/* ------------ Marquee (top strip) ------------ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--offblack);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 70;
  position: fixed;
  inset: 0 0 auto 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.marquee-track .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--strong-pink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------ Side chapter index ------------ */
.chapter-index {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.chapter-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.chapter-index a::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--ink-4);
  transition: width 0.3s var(--ease-out), background 0.2s ease;
}
.chapter-index a.active { color: var(--ink); }
.chapter-index a.active::before { width: 28px; background: var(--strong-pink); }
.chapter-index a:hover { color: var(--ink); }
@media (min-width: 1100px) {
  .chapter-index { display: flex; }
}

/* ------------ Reveal on scroll ------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ------------ Footer ------------ */
footer.site {
  position: relative;
  padding: 36px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
footer.site .container { padding: 0; }
footer.site .footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
footer.site .footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
footer.site .footer-left svg { height: 18px; width: auto; opacity: 0.85; }
footer.site .footer-links {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
footer.site .footer-links a {
  color: var(--ink-2);
  transition: color 0.2s ease;
}
footer.site .footer-links a:hover { color: var(--strong-pink); }

/* Legacy footer styles (kept so old markup doesn't break) */
footer.site .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
@media (min-width: 720px) {
  footer.site .row { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-mark svg { height: 32px; width: auto; margin-bottom: 24px; }
.footer-mark p { font-size: 14px; color: var(--ink-3); max-width: 36ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--strong-pink); }
.footer-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ------------ Giant outline brand mark ------------ */
.brand-outline {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(120px, 30vw, 380px);
  line-height: 0.78;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(254,251,252,0.08);
  user-select: none;
  pointer-events: none;
}

/* ------------ Hide-by-default for noscript safety ------------ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .live-pill .dot { animation: none; }
  * { scroll-behavior: auto; }
}
