/* =========================================================
   Dhwani: shared styles
   Story: Noise -> Listen -> Build -> Amplify -> Voice
   Type grammar: serif italic = "before" (the noise, the problem)
                 bold grotesk = "after" (the voice, the result)
   ========================================================= */

:root {
  /* colour */
  --mist:       #ECEAF0;   /* noise chapter, grey lilac */
  --lilac:      #F1EEF6;   /* listen */
  --mint:       #E5F0EA;   /* build */
  --chiffon:    #F3F2DD;   /* amplify */
  --ink:        #1D1838;   /* deep violet ink, also the finale */
  --ink-2:      #2A2450;
  --ink-soft:   #5F5878;   /* secondary text on light */
  --ink-faint:  #9A94AE;   /* noise, wireframes */
  --line:       rgba(29, 24, 56, 0.12);
  --peacock:    #0E6B66;   /* the voice */
  --peacock-2:  #13887F;
  --lime:       #D4F06A;   /* highlight */
  --paper:      #FBFAFD;   /* cards */
  --plum:       #6B3A7D;

  /* type */
  --f-sans:  "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-hi:    "Arya", "Mukta", "Noto Sans Devanagari", sans-serif;
  --f-hi-text: "Mukta", "Noto Sans Devanagari", sans-serif;

  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-md:   clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .8s ease, color .6s ease;
}

[lang="hi"] { font-family: var(--f-hi-text); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--peacock);
  outline-offset: 4px;
  border-radius: 6px;
}
body.is-dark :focus-visible { outline-color: var(--lime); }

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.read-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  pointer-events: none;
}
.read-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--peacock), var(--lime));
  transform: scaleX(0); transform-origin: left;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .3s;
  touch-action: manipulation;
}
.btn-small { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn-large { min-height: 60px; padding: 0 30px; font-size: 1.0625rem; }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--peacock); }
body.is-dark .btn-ink { background: var(--lime); color: var(--ink); }

.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 18px 40px -18px rgba(212, 240, 106, .7); }
.btn-lime:hover { background: #E2F78F; }

.btn-outline-light { border: 1.5px solid rgba(251, 250, 253, .35); color: var(--paper); }
.btn-outline-light:hover { border-color: var(--paper); background: rgba(251, 250, 253, .06); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: color .5s;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
body.is-dark .site-header { color: var(--paper); }

.brand { display: inline-flex; align-items: baseline; font-size: 2.15rem; line-height: 1; margin-right: auto; }
.brand-hi { font-family: var(--f-hi); font-weight: 700; line-height: 1; }
.brand-word {
  font-family: var(--f-sans); font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
  margin-left: 3px;
}
.brand-tld-slot { display: inline-flex; overflow: hidden; padding: .1em .06em .15em 0; }
.brand-tld {
  display: inline-block;
  font-family: var(--f-sans); font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--peacock);
  transition: color .5s;
}
body.is-dark .brand-tld { color: var(--lime); }

.nav-list { display: flex; gap: .25rem; }
.nav-list a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px;
  font-size: .9375rem; font-weight: 500;
}
.nav-list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px;
  height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-list a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child  { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--paper); color: var(--ink);
  padding: .5rem var(--gutter) 2rem;
  box-shadow: 0 30px 50px -30px rgba(29, 24, 56, .4);
}
.mobile-menu a { display: block; padding: 14px 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .nav, .header-inner > .btn { display: none; }
  .menu-toggle { display: block; }
}

/* ---------------- Story rail ---------------- */
.rail {
  position: fixed; left: 22px; top: 50%; z-index: 90;
  transform: translateY(-50%);
}
.rail ol { display: flex; flex-direction: column; gap: 4px; }
.rail a { display: flex; align-items: center; gap: 12px; min-height: 30px; color: var(--ink-faint); transition: color .4s; }
.rail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: transform .4s var(--ease-out), background-color .4s, border-color .4s;
}
.rail-label {
  font-size: .8125rem; font-weight: 600;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.rail a:hover .rail-label,
.rail a.is-active .rail-label { opacity: 1; transform: none; }
.rail a.is-active { color: var(--ink); }
.rail a.is-active .rail-dot { background: var(--peacock); border-color: var(--peacock); transform: scale(1.4); }
.rail a.is-done .rail-dot { background: currentColor; }
body.is-dark .rail a { color: rgba(251,250,253,.4); }
body.is-dark .rail a.is-active { color: var(--paper); }
body.is-dark .rail a.is-active .rail-dot { background: var(--lime); border-color: var(--lime); }

@media (max-width: 1100px) { .rail { display: none; } }

/* ---------------- Shared story type ---------------- */
.ch-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9375rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.ch-label span {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 8px;
  border-radius: 999px;
  background: var(--ink); color: var(--lime);
  font-size: .75rem; font-variant-numeric: tabular-nums;
}

.statement { line-height: .98; letter-spacing: -0.035em; }
.statement .before, .statement .after { display: block; }
.statement .before {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.75rem);
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}
.statement .after {
  font-weight: 700;
  font-size: clamp(2.4rem, 1.3rem + 3.8vw, 4.9rem);
  margin-top: .05em;
}
.statement-sm .before { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); }
.statement-sm .after  { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); }

.body-lg { font-size: var(--t-md); color: var(--ink-soft); max-width: 44ch; margin-top: 2rem; }

/* ---------------- Pinned scenes ---------------- */
.scene { position: relative; }
.scene .stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.scene-noise   { height: 260vh; }
.scene-build   { height: 420vh; }
.scene-amplify { height: 340vh; }

/* =========================================================
   CHAPTER 1: NOISE
   ========================================================= */
.noise-field { position: absolute; inset: 0; }

.chip {
  position: absolute;
  white-space: nowrap;
  color: var(--ink-faint);
  font-weight: 600;
  line-height: 1;
  will-change: transform, opacity;
}
.chip > span { display: inline-flex; align-items: center; gap: 6px; animation: jitter 2.4s ease-in-out infinite; }
.chip-pill > span   { padding: 8px 14px; border-radius: 999px; border: 1.5px solid #CFCADC; font-size: .875rem; }
.chip-stamp > span  { font-size: clamp(1.1rem, .8rem + 1vw, 1.75rem); font-weight: 800; letter-spacing: .02em; color: #B9B3CB; }
.chip-tag > span    { padding: 6px 10px; border-radius: 6px; background: #DEDAE7; font-size: .8125rem; color: #8E88A3; }
.chip-notif > span  { padding: 10px 14px; border-radius: 14px; background: #F6F5F9; font-size: .8125rem; color: #8E88A3;
                      box-shadow: 0 10px 24px -14px rgba(29,24,56,.35); }
.chip-notif > span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #C4BFD3; }
.chip-hi > span     { font-family: var(--f-hi); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); color: #BDB7CE; }

@keyframes jitter {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(1.5px, -1px) rotate(.6deg); }
  50% { transform: translate(-1px, 1.5px) rotate(-.4deg); }
  75% { transform: translate(1px, 1px) rotate(.3deg); }
}

.noise-copy {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
  padding-bottom: 18vh;
}
.hero-meaning { font-size: var(--t-sm); font-weight: 500; color: var(--ink-soft); margin-bottom: 1.25rem; }
.hero-meaning [lang="hi"] { font-family: var(--f-hi); font-weight: 700; font-size: 1.15em; color: var(--ink); }

.hero-title { max-width: none; }
.line-after { max-width: 15ch; }
.line-before, .line-after { display: block; }
.line-before {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 6.4vw, 8rem);
  line-height: .95; letter-spacing: -0.025em;
  color: var(--ink);
}
.line-before .nw { display: inline-block; white-space: nowrap; }
.line-before .ch { display: inline-block; text-align: center; overflow: hidden; vertical-align: top; }
.line-before .ch-noise { color: var(--ink-faint); font-style: normal; }
.line-after {
  font-weight: 700;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 6.8rem);
  line-height: .98; letter-spacing: -0.045em;
  color: var(--peacock);
  margin-top: .08em;
}

.scene-noise .wave-canvas {
  position: absolute; left: 0; right: 0; bottom: 3vh;
  width: 100%; height: clamp(7rem, 20vh, 12rem);
  z-index: 1; pointer-events: none;
}

.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 22px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; color: var(--ink-soft);
}
.scroll-hint-bar { width: 2px; height: 26px; background: var(--ink-faint); position: relative; overflow: hidden; border-radius: 2px; }
.scroll-hint-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--peacock);
  animation: hint 1.8s var(--ease-out) infinite; transform-origin: top;
}
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1101px) { .scroll-hint { left: calc(var(--gutter) + 90px); } }

/* =========================================================
   CHAPTER 2: LISTEN
   ========================================================= */
.listen { padding-block: clamp(6rem, 16vh, 11rem); }
.listen-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
}
.listen-copy { position: sticky; top: calc(var(--header-h) + 8vh); align-self: start; }

.notes { display: flex; flex-direction: column; gap: clamp(1.5rem, 4vh, 3rem); padding-top: 12vh; padding-bottom: 6vh; }
.note {
  position: relative;
  background: var(--paper);
  border-radius: 20px;
  padding: 34px 30px 26px;
  max-width: 420px;
  box-shadow: 0 30px 50px -34px rgba(29, 24, 56, .45), 0 1px 0 rgba(29,24,56,.04);
}
.note::before {
  content: ""; position: absolute; top: -10px; left: 50%;
  width: 84px; height: 22px; border-radius: 3px;
  background: rgba(212, 240, 106, .8);
  transform: translateX(-50%) rotate(-3deg);
}
.n1 { transform: rotate(-2deg); }
.n2 { transform: rotate(1.6deg); align-self: flex-end; }
.n3 { transform: rotate(-1.2deg); margin-left: 6%; }
.n4 { transform: rotate(2deg); align-self: flex-end; }
.note-q {
  display: block;
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.15rem);
  line-height: 1.08; letter-spacing: -0.01em;
}
.note-a {
  display: flex; align-items: center; gap: 10px;
  margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: .9375rem; color: var(--ink-soft);
}
.note-a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--peacock); flex: none; }

@media (max-width: 860px) {
  .listen-grid { grid-template-columns: 1fr; gap: 2rem; }
  .listen-copy { position: static; }
  .notes { padding-top: 1rem; }
  .n2, .n4 { align-self: auto; margin-left: 6%; }
  .n3 { margin-left: 0; }
}

/* =========================================================
   Shared: stepped text inside pinned scenes
   ========================================================= */
.steps-text { margin-top: 2.25rem; display: grid; gap: 1.25rem; }
.st {
  position: relative;
  padding-left: 22px;
  opacity: .32;
  transition: opacity .5s;
}
.st::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px;
  background: var(--ink-faint);
  transform-origin: top;
  transition: background-color .5s;
}
.st.is-active { opacity: 1; }
.st.is-active::before { background: var(--peacock); }
.st h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.st p { color: var(--ink-soft); margin-top: .35rem; max-width: 40ch; font-size: 1rem; }

@media (max-width: 860px) {
  .steps-text { display: grid; grid-template-areas: "s"; margin-top: 1.25rem; }
  .st { grid-area: s; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease-out); }
  .st.is-active { opacity: 1; transform: none; }
}

/* =========================================================
   CHAPTER 3: BUILD
   ========================================================= */
.build-layout, .amp-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: var(--header-h);
}

.build-stage {
  position: relative;
  width: 100%; max-width: 620px;
  justify-self: center;
  aspect-ratio: 1.25;
}

.browser {
  position: absolute; inset: 0 8% 6% 0;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 50px 80px -50px rgba(14, 107, 102, .6), 0 0 0 1px rgba(29,24,56,.06);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: background-color .6s, box-shadow .6s;
}
.b-bar {
  flex: none; height: 34px;
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: #EEEBF3;
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
}
.b-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D2CDE0; }
.b-url { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--paper); }
.b-cart { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .4s; }
.b-count {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--peacock); color: #fff; font-size: 10px;
}
.b-count.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.5); } }

.b-page { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px; min-height: 0; }
.b-nav { flex: none; display: flex; align-items: center; gap: 10px; }
.b-nav span { width: 34px; height: 7px; border-radius: 4px; background: #DCD8E6; }
.b-nav .b-logo { width: 52px; height: 14px; border-radius: 4px; background: var(--ink); margin-right: auto; }

.b-hero {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  border-radius: 12px;
  padding: 14px;
  background: var(--lilac);
  transition: flex-basis .7s var(--ease-out), flex-grow .7s var(--ease-out);
}
.b-copy { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.b-copy span { display: block; height: 10px; border-radius: 5px; background: var(--ink); }
.b-copy .l1 { width: 90%; height: 14px; }
.b-copy .l2 { width: 70%; height: 14px; }
.b-copy .l3 { width: 80%; height: 7px; background: #B9B3CB; margin-top: 4px; }
.b-copy .b-btn { width: 46%; height: 22px; border-radius: 11px; background: var(--peacock); margin-top: 6px; }
.b-img { border-radius: 10px; background: linear-gradient(140deg, var(--lime), var(--peacock-2) 70%, var(--plum)); }

.b-grid {
  flex: 0 0 0; min-height: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s, transform .6s var(--ease-out), flex-basis .7s var(--ease-out);
  overflow: hidden;
}
.b-prod { display: flex; flex-direction: column; gap: 6px; }
.b-prod .pi { flex: 1; min-height: 40px; border-radius: 8px; }
.pi1 { background: linear-gradient(150deg, #F2C9A8, #C9603F); }
.pi2 { background: linear-gradient(150deg, #CDE8C9, var(--peacock-2)); }
.pi3 { background: linear-gradient(150deg, #E2D2F0, var(--plum)); }
.b-prod > span { height: 6px; border-radius: 3px; background: #DCD8E6; }
.b-prod > span.short { width: 50%; background: var(--ink); }
.b-add {
  font-style: normal; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; height: 20px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
}

.b-toast {
  position: absolute; top: 44px; right: 12px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--ink); color: var(--lime);
  font-size: 11px; font-weight: 700;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.b-toast.show { opacity: 1; transform: none; }

/* wireframe state: everything is outlines */
.s-wire .browser { background: transparent; box-shadow: 0 0 0 1.5px var(--ink-faint); }
.s-wire .b-bar { background: transparent; border-bottom: 1.5px dashed var(--ink-faint); }
.s-wire .b-url { background: transparent; border: 1.5px dashed var(--ink-faint); }
.s-wire .b-bar i,
.s-wire .b-nav span,
.s-wire .b-copy span,
.s-wire .b-img,
.s-wire .b-hero {
  background: transparent !important;
  outline: 1.5px dashed var(--ink-faint); outline-offset: -1px;
}
.browser *, .b-hero { transition: background-color .7s ease, outline-color .7s, flex-basis .7s var(--ease-out), flex-grow .7s var(--ease-out); }

/* store state */
.s-store .b-hero, .s-app .b-hero { flex: 0 0 34%; }
.s-store .b-grid, .s-app .b-grid { flex: 1 1 auto; opacity: 1; transform: none; }
.s-store .b-cart, .s-app .b-cart { opacity: 1; }

/* phone */
.phone {
  position: absolute; right: 0; bottom: 0;
  width: 31%; aspect-ratio: 9 / 18.5;
  border-radius: 26px;
  background: var(--paper);
  border: 7px solid var(--ink);
  padding: 22px 10px 10px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 40px 60px -30px rgba(29,24,56,.55);
  transform: translateY(40%) rotate(8deg); opacity: 0;
  transition: transform .9s var(--ease-out), opacity .5s;
}
.s-app .phone { transform: rotate(-4deg); opacity: 1; }
.ph-notch { position: absolute; top: 7px; left: 50%; width: 34%; height: 7px; border-radius: 4px; background: var(--ink); transform: translateX(-50%); }
.ph-head { display: flex; justify-content: space-between; align-items: center; }
.ph-head span { width: 50%; height: 9px; border-radius: 5px; background: var(--ink); }
.ph-head .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--lime); }
.ph-banner { height: 26%; border-radius: 12px; background: linear-gradient(140deg, var(--peacock), var(--peacock-2)); }
.ph-row { display: flex; gap: 6px; }
.ph-row span { flex: 1; height: 26px; border-radius: 8px; background: var(--lilac); }
.ph-card { height: 15%; border-radius: 10px; background: #F2E8F5; }
.ph-card.alt { background: #E9F3D3; }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; }
.ph-tabs i { width: 12px; height: 12px; border-radius: 4px; background: #D2CDE0; }
.ph-tabs i.on { background: var(--peacock); }

/* =========================================================
   CHAPTER 4: AMPLIFY
   ========================================================= */
.amp-stage {
  position: relative;
  width: 100%; max-width: 600px;
  justify-self: center;
  aspect-ratio: 1;
}
.ring {
  position: absolute; left: 50%; top: 50%;
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--peacock);
  transform: translate(-50%, -50%) scale(.1);
  opacity: 0;
  will-change: transform, opacity;
}
.amp-core {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 128px; height: 128px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink); color: var(--lime);
  display: grid; place-content: center; justify-items: center; gap: 6px;
  box-shadow: 0 0 0 10px rgba(14,107,102,.12), 0 30px 50px -20px rgba(29,24,56,.6);
}
.amp-core svg { width: 46px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.amp-core span { font-size: .75rem; font-weight: 600; color: var(--paper); }

.amp-card {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 24px 40px -24px rgba(29,24,56,.5), 0 0 0 1px rgba(29,24,56,.05);
  will-change: transform, opacity;
}
.c-post { width: 132px; padding: 8px; }
.cp-img { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(150deg, #F2C9A8, #C9603F 60%, var(--plum)); }
.cp-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cp-row span { flex: 1; height: 6px; border-radius: 3px; background: #DCD8E6; }
.heart { width: 18px; fill: #E0465E; }
.c-reel { width: 92px; aspect-ratio: 9 / 15; padding: 8px; background: linear-gradient(170deg, var(--peacock-2), var(--ink)); display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.cr-play { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; margin-top: 40%; }
.cr-play svg { width: 16px; fill: #fff; }
.cr-tag { font-size: 10px; font-weight: 700; color: var(--lime); }
.c-meta { width: 150px; padding: 10px; display: grid; gap: 8px; }
.cm-spon, .cg-spon { font-size: 10px; font-weight: 700; color: var(--ink-soft); }
.cm-img { height: 70px; border-radius: 8px; background: linear-gradient(150deg, #E2D2F0, var(--plum)); }
.cm-btn { font-size: 11px; font-weight: 700; text-align: center; padding: 6px; border-radius: 8px; background: var(--peacock); color: #fff; }
.c-google { width: 190px; padding: 12px 14px; display: grid; gap: 3px; }
.cg-url { font-size: 11px; color: var(--ink-soft); }
.cg-title { font-size: 13px; font-weight: 700; line-height: 1.25; color: #2448A8; }
.c-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.c-note svg { width: 18px; fill: none; stroke: var(--peacock); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-order { background: var(--ink); color: var(--paper); }
.c-order svg { stroke: var(--lime); }

/* mobile layout for both pinned scenes */
@media (max-width: 860px) {
  .build-layout, .amp-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 1rem;
    padding-top: calc(var(--header-h) + 0.5rem);
    padding-bottom: 1.5rem;
  }
  .ch-label { margin-bottom: .75rem; }
  .build-stage { max-width: 420px; align-self: center; }
  .amp-stage { max-width: min(360px, 82vw); align-self: center; }
  .amp-core { width: 92px; height: 92px; }
  .amp-core svg { width: 34px; }
  .c-post { width: 96px; } .c-reel { width: 68px; } .c-meta { width: 112px; }
  .cm-img { height: 46px; }
  .c-google { width: 140px; padding: 8px 10px; } .cg-title { font-size: 11px; }
  .c-note { font-size: 11px; padding: 8px 10px; }
}

/* =========================================================
   CHAPTER 5: VOICE
   ========================================================= */
.voice {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(8rem, 22vh, 14rem);
  overflow: hidden;
  isolation: isolate;
}
.voice .ch-label span { background: var(--lime); color: var(--ink); }
.voice-title { line-height: .95; }
.voice-title .before, .voice-title .after { display: block; }
.voice-title .before {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(3rem, 1.6rem + 6vw, 8rem);
  color: #A9A3C7; letter-spacing: -0.02em;
}
.voice-title .after {
  font-weight: 700;
  font-size: clamp(3rem, 1.4rem + 6.6vw, 8.6rem);
  letter-spacing: -0.05em;
  color: var(--lime);
}
.voice-sub { font-size: var(--t-md); color: #C7C2DD; max-width: 46ch; margin-top: 2.25rem; }
.voice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.5rem; }

.voice .wave-canvas {
  position: relative; display: block;
  width: 100%; height: clamp(7rem, 18vh, 11rem);
  margin-top: clamp(4rem, 10vh, 7rem);
  pointer-events: none;
}
.voice .wave-canvas + .voice-inner { margin-top: 0; }
.voice { display: flex; flex-direction: column; }
.voice > .wave-canvas { order: 2; }
.voice > .voice-inner { order: 1; }
.voice > .site-footer { order: 3; }

.site-footer { border-top: 1px solid rgba(251,250,253,.12); padding-block: 2rem 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.brand-footer { font-size: 1.8rem; margin-right: auto; }
.brand-footer .brand-tld { color: var(--lime); }
.footer-place, .footer-copy { font-size: .9375rem; color: #A9A3C7; }
.footer-place [lang="hi"] { font-family: var(--f-hi); font-weight: 700; color: var(--paper); font-size: 1.1em; }

/* ---------------- JS-driven initial states ---------------- */
.js [data-hero],
.js .reveal { opacity: 0; }
.js .line-after { opacity: 0; }
.js .note { opacity: 0; }

/* ---------------- Reduced motion: show the end of every scene ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .scene-noise, .scene-build, .scene-amplify { height: auto; }
  .scene .stage { position: relative; height: auto; min-height: 100svh; padding-block: 2rem; }
  .noise-field { display: none; }
  .js [data-hero], .js .reveal, .js .line-after, .js .note { opacity: 1; }
  .st { opacity: 1 !important; transform: none !important; grid-area: auto !important; }
  .ring { opacity: .3; transform: translate(-50%, -50%) scale(.8); }
}

/* header gets a soft backdrop of the current chapter colour once you scroll */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg, #ECEAF0) 82%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
