/* ══════════════════════════════════════════════════════════════════════════
   AuD Viet Translations — "Blossom Editorial" design system
   Pink, floral and warm — but kinetic: aurora light, drifting petals,
   staggered reveals, tilting cards.
   Every motion is gated behind prefers-reduced-motion at the bottom.
   ══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,600&family=Inter:wght@300;400;500;600;700&family=Dancing+Script:wght@600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Rose spectrum */
  --pink-50:  #fff5fa;
  --pink-100: #ffe8f3;
  --pink-200: #fdd3e7;
  --pink-300: #f9aed2;
  --pink-400: #f47cb4;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --pink-800: #9d174d;
  --pink-900: #7d1240;

  /* Deep plum ink + warm neutrals */
  --plum-950: #2b0618;
  --plum-900: #3d0a24;
  --plum-800: #520f31;

  --cream:    #fffaf7;
  --sand:     #fdf1ea;
  --champagne:#e9b98c;
  --gold:     #d99a63;
  --mint:     #7fd3b8;

  /* Semantic */
  --text-heading: #6d0f3c;
  --text-body:    #43142c;
  --text-muted:   #94577a;
  --text-light:   #b98aa5;

  --bg-page:  #fffbfd;
  --bg-card:  #ffffff;
  --bg-alt:   #fff5f9;
  --bg-ink:   var(--plum-950);

  --border:       #f7c3dd;
  --border-light: #ffe1ef;

  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-script:  'Dancing Script', cursive;

  --shadow-xs: 0 1px 2px rgba(125, 18, 64, .06);
  --shadow-sm: 0 2px 10px rgba(125, 18, 64, .07);
  --shadow:    0 10px 30px -12px rgba(125, 18, 64, .22);
  --shadow-lg: 0 26px 60px -22px rgba(125, 18, 64, .34);
  --shadow-xl: 0 44px 90px -30px rgba(125, 18, 64, .42);
  --glow-pink: 0 10px 34px -8px rgba(219, 39, 119, .5);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-xl: 38px;
  --radius-pill: 999px;

  --ease:        cubic-bezier(.22, 1, .36, 1);
  --ease-soft:   cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --transition:  .22s var(--ease-soft);

  --container: 1200px;
  --nav-h: 78px;
  --nav-h-sm: 62px;

  --grad-rose:  linear-gradient(120deg, var(--pink-500), var(--pink-700) 55%, #a21b6b);
  --grad-warm:  linear-gradient(120deg, var(--pink-400), var(--champagne));
  --grad-ink:   linear-gradient(150deg, var(--plum-900), var(--plum-950) 60%, #1c0410);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* Stop iOS inflating text when the phone is rotated to landscape. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-page);
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pink-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink-800); }
::selection { background: var(--pink-200); color: var(--pink-900); }
[hidden] { display: none !important; }

/* Touch: a pink tap flash instead of the grey system one, and no 300ms
   double-tap delay on anything interactive. */
a, button, summary, label, [role='button'], [tabindex] {
  -webkit-tap-highlight-color: rgba(236, 72, 153, .14);
  touch-action: manipulation;
}

/* Custom scrollbar (WebKit + Firefox) */
* { scrollbar-color: var(--pink-300) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--pink-50); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pink-300), var(--pink-500));
  border-radius: 99px;
  border: 3px solid var(--pink-50);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--pink-400), var(--pink-600)); }

/* ── Layout utilities ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container--narrow { max-width: 820px; }

.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;
}

.skip-link {
  position: fixed;
  top: 10px; left: 50%;
  transform: translate(-50%, -160%);
  z-index: 300;
  background: var(--pink-700);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform .28s var(--ease-spring);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ── Page-load & page-transition ────────────────────────────────────────── */
body { opacity: 1; }
body.is-leaving { opacity: 0; transition: opacity .28s var(--ease-soft); }

.page-veil {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, var(--pink-100), var(--pink-50) 55%, var(--cream));
  opacity: 1;
  transition: opacity .5s var(--ease-soft);
}
body.is-ready .page-veil { opacity: 0; }

/* ── Scroll progress ────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pink-400), var(--pink-600) 45%, var(--champagne));
  box-shadow: 0 0 14px rgba(236, 72, 153, .7);
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 150;
  height: var(--nav-h);
  background: rgba(255, 250, 252, .72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: height .4s var(--ease), background .4s var(--ease),
              border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  height: var(--nav-h-sm);
  background: rgba(255, 250, 252, .9);
  border-bottom-color: var(--border-light);
  box-shadow: 0 8px 30px -20px rgba(125, 18, 64, .5);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

/* Brand */
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-rose);
  color: #fff;
  box-shadow: var(--glow-pink);
  transition: transform .55s var(--ease-spring), box-shadow .4s var(--ease);
}
.nav__brand-mark svg { width: 21px; height: 21px; }
.nav__brand:hover .nav__brand-mark {
  transform: rotate(120deg) scale(1.08);
  box-shadow: 0 12px 34px -6px rgba(219, 39, 119, .65);
}
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.nav__brand-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  color: var(--pink-800);
  letter-spacing: -.015em;
}
.nav__brand-sub {
  font-family: var(--font-script);
  font-size: .92rem;
  color: var(--pink-500);
}
.nav.is-scrolled .nav__brand-mark { width: 32px; height: 32px; }
.nav.is-scrolled .nav__brand-mark svg { width: 18px; height: 18px; }

/* Links */
.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav__link {
  position: relative;
  z-index: 1;
  display: block;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: .885rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__link:hover { color: var(--pink-700); }
.nav__link.is-active { color: var(--pink-800); font-weight: 650; }

/* The pill that slides between links (positioned by main.js) */
.nav__pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 38px;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 14px -8px rgba(190,24,93,.5);
  transform: translateY(-50%);
  opacity: 0;
  transition: left .45s var(--ease), width .45s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.nav__links:hover .nav__pill,
.nav__pill.is-visible { opacity: 1; }

/* Nav CTA */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--grad-rose);
  background-size: 160% 160%;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--glow-pink);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease),
              background-position .5s var(--ease);
}
.nav__cta:hover {
  color: #fff;
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 14px 34px -8px rgba(219, 39, 119, .62);
}

/* Burger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.nav__toggle:hover { background: var(--pink-50); border-color: var(--border); }
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--pink-600);
  border-radius: 2px;
  transition: transform .4s var(--ease-spring), opacity .2s var(--ease-soft),
              width .4s var(--ease-spring);
}
.nav__toggle span:nth-child(2) { width: 14px; align-self: flex-end; margin-right: 13px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 20px; }

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease);
}
.btn > * { position: relative; z-index: 2; }
.btn__arrow { transition: transform .4s var(--ease-spring); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Shine sweep */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary {
  background: var(--grad-rose);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: var(--glow-pink);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 18px 40px -10px rgba(219, 39, 119, .6);
}
.btn--primary:active {
  transform: translateY(-1px) scale(.985);
}

.btn--ghost {
  background: rgba(255,255,255,.6);
  color: var(--pink-700);
  border-color: var(--border);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  color: var(--pink-800);
  border-color: var(--pink-400);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn--light {
  background: #fff;
  color: var(--pink-700);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.35);
}
.btn--light:hover {
  color: var(--pink-800);
  transform: translateY(-3px);
}

.btn--sm { padding: 10px 20px; font-size: .82rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* Buttons stay put. They never track or follow the cursor — hover only changes
   colour, shadow and a small fixed lift, so a control never moves out from
   under the pointer. */
.btn[disabled]::after { display: none; }

/* Ripple (spawned by main.js) */
.ripple {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple .65s var(--ease) forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* Small pill outline action button (copy / use-phrase / etc.) */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--pink-700);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              transform .3s var(--ease-spring), box-shadow var(--transition), color var(--transition);
}
.action-btn:hover {
  background: var(--pink-50);
  border-color: var(--pink-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.action-btn:active {
  transform: scale(.97);
}
.action-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ══════════════════════════════════════════════════════════════════════════
   SHARED PIECES — eyebrow, pill, section heads, rules
   ══════════════════════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px 7px 14px;
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  color: var(--pink-700);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink-500);
  box-shadow: 0 0 0 0 rgba(236,72,153,.6);
  animation: pulse-dot 2.4s var(--ease-soft) infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(236,72,153,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(236,72,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,72,153,0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink-400));
}
.eyebrow::after {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--pink-400), transparent);
}
.eyebrow--left::before { display: none; }
.eyebrow--left::after { display: none; }

.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-top: clamp(40px, 5vw, 64px); }

/* Soft blossom wash behind alt sections */
.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 10% 0%, rgba(249,174,210,.28), transparent 70%),
    radial-gradient(45% 55% at 92% 100%, rgba(233,185,140,.18), transparent 70%);
}
.section--alt > * { position: relative; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(38px, 5vw, 62px); }
.section__head--left { text-align: left; margin-left: 0; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 700;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  color: var(--text-heading);
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section__sub {
  margin-top: 16px;
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.75;
  text-wrap: pretty;
}

/* Gradient / highlight text */
.grad-text {
  background: linear-gradient(100deg, var(--pink-600), var(--pink-400) 40%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.highlight {
  position: relative;
  color: var(--pink-700);
  font-weight: 650;
  white-space: nowrap;
}
.highlight::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: 1px;
  height: 34%;
  z-index: -1;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink-200), rgba(233,185,140,.55));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .75s var(--ease);
}
.is-revealed .highlight::after,
.highlight.is-lit::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════════════════════════════════
   REVEAL SYSTEM
   ══════════════════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .8s var(--ease) var(--reveal-delay, 0ms),
    transform .8s var(--ease) var(--reveal-delay, 0ms),
    filter .8s var(--ease) var(--reveal-delay, 0ms);
  filter: blur(6px);
}
[data-reveal].is-revealed { opacity: 1; transform: none; filter: none; }
[data-reveal='left']  { transform: translateX(-40px); }
[data-reveal='right'] { transform: translateX(40px); }
[data-reveal='scale'] { transform: scale(.94); }
[data-reveal='fade']  { transform: none; }

/* Split-text words (built by main.js) */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.word__in {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  opacity: 0;
  transition: transform .95s var(--ease) var(--word-delay, 0ms),
              opacity .7s var(--ease) var(--word-delay, 0ms);
}
.is-revealed .word__in { transform: none; opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 10vw, 128px) 0 clamp(72px, 9vw, 112px);
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, #fff 0%, var(--pink-50) 38%, var(--sand) 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }

/* Aurora orbs — slow, organic drift */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.orb--1 {
  width: 46vw; height: 46vw; min-width: 320px; min-height: 320px;
  left: -8vw; top: -12vw;
  background: radial-gradient(circle at 35% 35%, #ffb3d9, #ff86c2 45%, transparent 70%);
  animation: drift-1 22s var(--ease-soft) infinite alternate;
}
.orb--2 {
  width: 40vw; height: 40vw; min-width: 280px; min-height: 280px;
  right: -6vw; top: 4vw;
  background: radial-gradient(circle at 60% 40%, #ffe0c2, #f3b587 50%, transparent 72%);
  animation: drift-2 26s var(--ease-soft) infinite alternate;
  opacity: .48;
}
.orb--3 {
  width: 34vw; height: 34vw; min-width: 240px; min-height: 240px;
  left: 40%; bottom: -16vw;
  background: radial-gradient(circle at 50% 50%, #e5c8ff, #d9a8f5 50%, transparent 72%);
  animation: drift-3 30s var(--ease-soft) infinite alternate;
  opacity: .34;
}
@keyframes drift-1 { to { transform: translate3d(9vw, 6vh, 0) scale(1.16); } }
@keyframes drift-2 { to { transform: translate3d(-11vw, 9vh, 0) scale(1.1); } }
@keyframes drift-3 { to { transform: translate3d(7vw, -8vh, 0) scale(1.22); } }

/* Falling petals canvas */
.petals {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Fine grain so the gradients don't band */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

/* Parallax florals */
.hero__floral {
  position: absolute;
  top: 0; bottom: 0;
  z-index: -1;
  opacity: .6;
  pointer-events: none;
  will-change: transform;
}
.hero__floral--left  { left: clamp(-60px, -2vw, 0px); }
.hero__floral--right { right: clamp(-60px, -2vw, 0px); transform: scaleX(-1); }

.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 8.2vw, 6.1rem);
  font-weight: 700;
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
  line-height: .97;
  letter-spacing: -.04em;
  margin: 20px 0 6px;
  color: var(--pink-800);
  text-wrap: balance;
}
/* Slow light sweep across the wordmark */
.hero__title .word__in {
  background: linear-gradient(100deg,
    var(--pink-800) 0%, var(--pink-800) 38%,
    var(--pink-500) 48%, var(--gold) 54%,
    var(--pink-800) 64%, var(--pink-800) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 7s linear 1.3s infinite;
}
@keyframes title-sheen {
  0%, 55%  { background-position: 130% 0; }
  85%,100% { background-position: -60% 0; }
}

.hero__script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--pink-500);
  margin-bottom: 26px;
}
.hero__tagline {
  max-width: 600px;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 34px;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Stat row */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 5vw, 62px);
  margin-top: clamp(44px, 6vw, 70px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--border-light);
  width: min(100%, 760px);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(140deg, var(--pink-600), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Scroll cue */
.hero__cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: clamp(34px, 5vw, 54px);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-light);
}
.hero__cue:hover { color: var(--pink-600); }
.hero__cue-line {
  position: relative;
  width: 1px; height: 42px;
  background: linear-gradient(var(--pink-200), transparent);
  overflow: hidden;
}
.hero__cue-line::after {
  content: '';
  position: absolute;
  left: 0; top: -50%;
  width: 1px; height: 50%;
  background: linear-gradient(var(--pink-500), transparent);
  animation: cue 2.1s var(--ease-soft) infinite;
}
@keyframes cue { 0% { top: -55%; } 100% { top: 105%; } }

/* ── Page hero (inner pages) ────────────────────────────────────────────── */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(52px, 7vw, 92px) 0 clamp(46px, 6vw, 74px);
  text-align: center;
  background: radial-gradient(115% 100% at 50% -20%, #fff, var(--pink-50) 45%, var(--sand));
  border-bottom: 1px solid var(--border-light);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-hero .orb { opacity: .38; filter: blur(80px); }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  font-weight: 700;
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
  color: var(--pink-800);
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 12px;
  text-wrap: balance;
}
.page-hero__script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--pink-400);
  margin-bottom: 14px;
}
.page-hero__desc {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  text-wrap: pretty;
}

/* ══════════════════════════════════════════════════════════════════════════
   MARQUEE RIBBON
   ══════════════════════════════════════════════════════════════════════════ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 17px 0;
  background: var(--grad-ink);
  color: rgba(255, 233, 243, .9);
  border-block: 1px solid rgba(255,255,255,.06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 30px;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
}
.marquee__item i {
  font-style: normal;
  color: var(--pink-400);
  font-size: .8rem;
}
.marquee__item b {
  font-weight: 600;
  color: #fff;
}
.marquee__sep { color: var(--gold); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              border-color .45s var(--ease);
}
.card:hover {
  border-color: var(--pink-200);
  box-shadow: var(--shadow-lg);
}
/* Cursor spotlight — --mx/--my set by main.js */
.card__glow {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(249, 174, 210, .35), transparent 65%);
  transition: opacity .4s var(--ease);
}
.card:hover .card__glow { opacity: 1; }
/* Gradient hairline that lights up on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--pink-300), transparent 45%, var(--champagne));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 20px;
  border-radius: 17px;
  background: linear-gradient(140deg, var(--pink-100), var(--pink-200));
  font-size: 1.5rem;
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(190,24,93,.6);
  transition: transform .5s var(--ease-spring), border-radius .5s var(--ease);
}
.card:hover .card__icon { transform: translateY(-4px) rotate(-7deg) scale(1.06); border-radius: 50% 20% 50% 20%; }

.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -.015em;
  margin-bottom: 10px;
}
.card__body { font-size: .93rem; color: var(--text-muted); line-height: 1.72; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--pink-600);
}
.card__link span { transition: transform .4s var(--ease-spring); }
.card:hover .card__link span { transform: translateX(4px); }
.card__num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--pink-100);
  transition: color .45s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.card:hover .card__num { color: var(--pink-200); transform: translateY(-3px) scale(1.05); }

/* Feature card variant with a link wrapper */
a.card { color: inherit; display: block; }
a.card:hover { color: inherit; }

/* ══════════════════════════════════════════════════════════════════════════
   SPLIT (about / contact)
   ══════════════════════════════════════════════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-xl);
  transition: transform .8s var(--ease);
}
.split__media:hover img { transform: scale(1.015) rotate(-.4deg); }
.split__media-accent {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border: 1.5px solid var(--pink-200);
  border-radius: calc(var(--radius-xl) + 18px);
  transition: transform .8s var(--ease), border-color .5s var(--ease);
}
.split__media:hover .split__media-accent { transform: translate(7px, 7px); border-color: var(--pink-300); }
/* Floating blossom badge on the media */
.split__media-badge {
  position: absolute;
  right: -14px; bottom: -14px;
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--grad-rose);
  color: #fff;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.35;
  box-shadow: var(--glow-pink);
  animation: float-badge 5.5s var(--ease-soft) infinite;
}
@keyframes float-badge {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50%     { transform: translateY(-11px) rotate(4deg); }
}

.split__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  color: var(--text-heading);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.split__content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 18px;
}
.split__content p:last-of-type { margin-bottom: 28px; }

/* ── Prose block ────────────────────────────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose p {
  font-size: 1.06rem;
  line-height: 1.92;
  color: var(--text-body);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.prose--lead p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: .82;
  font-weight: 700;
  padding: 6px 12px 0 0;
  background: linear-gradient(140deg, var(--pink-600), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Timeline (about story) ─────────────────────────────────────────────── */
.timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--pink-200), var(--pink-300), transparent);
}
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -34px; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pink-400);
  box-shadow: 0 0 0 5px var(--pink-50);
  transition: transform .5s var(--ease-spring) .15s, background .4s var(--ease);
  transform: scale(0);
}
.timeline__item.is-revealed::before { transform: scale(1); }
.timeline__item:hover::before { background: var(--pink-400); }
.timeline__title {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--pink-700);
  margin-bottom: 7px;
}
.timeline__item p { color: var(--text-body); line-height: 1.85; }

/* ══════════════════════════════════════════════════════════════════════════
   TEAM
   ══════════════════════════════════════════════════════════════════════════ */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(26px, 5vw, 58px);
}
.team__card { position: relative; text-align: center; }

.team__photo {
  position: relative;
  width: clamp(140px, 18vw, 186px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pink-50);
  /* A hairline ring that thickens into the brand pink on hover — one soft
     shadow, no spinning parts. */
  box-shadow: 0 0 0 1px var(--border-light), var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(.88);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.team__card:hover .team__photo {
  transform: translateY(-6px);
  box-shadow: 0 0 0 3px var(--pink-200), var(--shadow-lg);
}
.team__card:hover .team__photo img { transform: scale(1.05); filter: none; }

.team__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-heading);
  transition: color .35s var(--ease);
}
.team__card:hover .team__name { color: var(--pink-700); }

.team__role {
  display: block;
  margin-top: 5px;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color .35s var(--ease);
}
.team__card:hover .team__role { color: var(--pink-500); }

/* ══════════════════════════════════════════════════════════════════════════
   CTA BAND + NEWSLETTER
   ══════════════════════════════════════════════════════════════════════════ */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px, 8vw, 96px) 0;
  text-align: center;
  color: #fff;
  background: var(--grad-ink);
}
.cta-band__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta-band__bg .orb { opacity: .35; filter: blur(90px); }
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='rgba(255,255,255,0.05)'%3E%3Ccircle cx='45' cy='26' r='6'/%3E%3Ccircle cx='45' cy='64' r='6'/%3E%3Ccircle cx='26' cy='45' r='6'/%3E%3Ccircle cx='64' cy='45' r='6'/%3E%3Ccircle cx='45' cy='45' r='7'/%3E%3C/g%3E%3C/svg%3E");
  animation: pattern-drift 34s linear infinite;
}
@keyframes pattern-drift { to { background-position: 90px 90px; } }

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.cta-band p { font-size: 1.02rem; color: rgba(255,240,247,.72); margin-bottom: 30px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.newsletter-form:focus-within {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.13);
  box-shadow: 0 0 0 6px rgba(255,255,255,.06);
}
.newsletter-form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #fff;
  font-size: .92rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,240,247,.5); }
.newsletter-form button {
  flex-shrink: 0;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--pink-700);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease), background .3s var(--ease);
}
.newsletter-form button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--pink-50);
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.5);
}
.newsletter-thanks {
  display: none;
  margin-top: 6px;
  font-size: 1rem;
  color: rgba(255,240,247,.9);
  animation: pop-in .5s var(--ease-spring);
}
@keyframes pop-in { from { opacity: 0; transform: scale(.9) translateY(8px); } }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--plum-950);
  color: rgba(255, 233, 243, .62);
  padding: clamp(48px, 6vw, 76px) 0 0;
}
.footer::before {
  content: '';
  position: absolute;
  left: 50%; top: -40%;
  width: 120%; aspect-ratio: 2;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(219,39,119,.28), transparent 70%);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}
.footer__brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.footer__script { font-family: var(--font-script); font-size: 1.1rem; color: var(--pink-300); }
.footer__blurb { margin-top: 14px; max-width: 380px; font-size: .9rem; line-height: 1.75; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; list-style: none; }
.footer__nav a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: .9rem;
  color: rgba(255,233,243,.66);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.footer__nav a::before {
  content: '✿';
  position: absolute;
  left: -16px;
  opacity: 0;
  color: var(--pink-400);
  font-size: .7rem;
  transform: translateX(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.footer__nav a:hover { color: #fff; transform: translateX(10px); }
.footer__nav a:hover::before { opacity: 1; transform: translateX(0); }
.footer__admin { color: var(--pink-300) !important; font-weight: 600; }
.footer__admin:hover { color: #fff !important; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .78rem;
  color: rgba(255,233,243,.4);
}
.footer__socials { display: flex; gap: 10px; }
.footer__socials a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,233,243,.7);
  font-size: .9rem;
  transition: transform .35s var(--ease-spring), background .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease);
}
.footer__socials a:hover {
  transform: translateY(-3px) scale(1.08);
  background: var(--pink-600);
  border-color: var(--pink-600);
  color: #fff;
}
/* Oversized watermark */
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 15vw, 12rem);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background: linear-gradient(180deg, rgba(255,255,255,.075), transparent 82%);
  user-select: none;
  pointer-events: none;
  padding: 0 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   PHRASEBOOK (translations page)
   ══════════════════════════════════════════════════════════════════════════ */
.trans-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  margin-bottom: 26px;
  border: 1px solid var(--pink-200);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--pink-50), #fff);
  box-shadow: var(--shadow-xs);
  font-size: .92rem;
  color: var(--pink-800);
  line-height: 1.65;
}
.trans-notice__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--pink-200);
  font-size: 1rem;
}
.trans-notice strong { color: var(--pink-700); }

.trans-search { position: relative; margin-bottom: 10px; }
.trans-search input {
  width: 100%;
  padding: 16px 54px 16px 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 1rem;
  color: var(--text-body);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.trans-search input:focus {
  outline: none;
  border-color: var(--pink-400);
  box-shadow: 0 0 0 5px rgba(244, 124, 180, .16), var(--shadow-sm);
}
.trans-search__icon {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--pink-400);
  pointer-events: none;
  width: 18px; height: 18px;
}
.trans-search__clear {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--pink-100);
  color: var(--pink-700);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease-spring), background .2s;
}
.trans-search__clear.is-visible { opacity: 1; pointer-events: auto; }
.trans-search__clear:hover { background: var(--pink-200); transform: translateY(-50%) rotate(90deg); }
.trans-search__hint { margin: 10px 6px 22px; font-size: .84rem; color: var(--text-muted); }

.trans-noresults {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 26px;
  border: 1px dashed var(--pink-300);
  border-radius: var(--radius-lg);
  background: var(--pink-50);
  color: var(--text-muted);
}

/* Loading skeletons */
.pb-loading { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pb-skel {
  height: 116px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--pink-50) 30%, #fff 50%, var(--pink-50) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.pb-error {
  padding: 20px 24px;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: var(--radius);
  background: #fff1f2;
  color: #9f1239;
  font-size: .92rem;
  line-height: 1.7;
}

/* Tabs */
.pb-tabs {
  position: relative;
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
  scrollbar-width: none;
}
.pb-tabs::-webkit-scrollbar { display: none; }
.pb-tab {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  min-height: 42px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.pb-tab:hover { color: var(--pink-600); }
.pb-tab.active { color: #fff; }
.pb-tabs__pill {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  border-radius: var(--radius-pill);
  background: var(--grad-rose);
  box-shadow: var(--glow-pink);
  transition: left .5s var(--ease), width .5s var(--ease);
  pointer-events: none;
}

/* Panels */
.pb-panel { display: none; padding: 26px 0 4px; }
.pb-panel.active { display: block; animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.pb--searching .pb-tabs { display: none; }
.pb--searching .pb-panel { display: block; padding-top: 4px; }

/* Toolbar above the list — count + expand/collapse all */
.pb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 6px;
  font-size: .82rem;
  color: var(--text-muted);
}
.pb-toolbar__count strong { color: var(--pink-700); font-weight: 650; }
.pb-toolbar__actions { display: flex; gap: 8px; }
.pb-textbtn {
  padding: 7px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--pink-700);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .25s var(--ease-spring);
}
.pb-textbtn:hover {
  background: var(--pink-50);
  border-color: var(--pink-300);
  transform: translateY(-1px);
}

/* ── Collapsible subsection ─────────────────────────────────────────────── */
.pb-sub {
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pb-sub[open] { border-color: var(--pink-200); box-shadow: var(--shadow-sm); }
.pb-sub:last-child { margin-bottom: 0; }

.pb-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--pink-700);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}
.pb-subtitle::-webkit-details-marker { display: none; }
.pb-subtitle:hover { background: var(--pink-50); }
.pb-subtitle__bloom { color: var(--pink-400); font-size: .95rem; transition: transform .5s var(--ease-spring); }
.pb-sub[open]:not([data-acc-closing]) .pb-subtitle__bloom { transform: rotate(180deg); }
.pb-subtitle__text { flex: 1; min-width: 0; }
.pb-subtitle__count {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--pink-700);
  background: var(--pink-100);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.pb-subtitle__chev {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  color: var(--pink-500);
  transition: transform .4s var(--ease-spring);
}
.pb-sub[open]:not([data-acc-closing]) .pb-subtitle__chev { transform: rotate(180deg); }

.pb-sub__body { border-top: 1px solid var(--border-light); }

/* ── Rows (one translation per row) ─────────────────────────────────────── */
.pb-head {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  padding: 10px 18px;
  background: var(--pink-50);
  border-bottom: 1px solid var(--border-light);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink-700);
}
.pb-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background .25s var(--ease);
}
.pb-row:last-child { border-bottom: 0; }
.pb-row:nth-child(even) { background: rgba(255, 245, 250, .55); }
.pb-row:hover { background: var(--pink-50); }

.pb-en { margin: 0; font-size: .95rem; font-weight: 500; color: var(--text-body); line-height: 1.55; }
.pb-en--empty { opacity: .45; }
.pb-vi { margin: 0; font-size: 1.02rem; font-weight: 600; color: var(--pink-800); line-height: 1.5; }
.pb-note { margin: 5px 0 0; font-size: .81rem; font-style: italic; color: var(--text-muted); line-height: 1.5; }
.pb-vi-cell { min-width: 0; }

.pb-row__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-end;
}
.pb-mini {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: #fff;
  color: var(--pink-600);
  cursor: pointer;
  opacity: .55;
  transition: opacity .25s, background .2s, border-color .2s, color .2s,
              transform .3s var(--ease-spring);
}
.pb-mini svg { width: 14px; height: 14px; fill: currentColor; }
.pb-row:hover .pb-mini, .pb-mini:focus-visible { opacity: 1; }
.pb-mini:hover {
  background: var(--pink-100);
  border-color: var(--pink-300);
  color: var(--pink-800);
  transform: scale(1.1);
}
@media (hover: none) { .pb-mini { opacity: 1; } }

/* Audio play button with equaliser bars */
.pb-play {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--pink-100);
  color: var(--pink-600);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background .25s, color .25s, transform .3s var(--ease-spring), box-shadow .25s;
}
.pb-play svg { width: 14px; height: 14px; fill: currentColor; }
.pb-play:hover {
  background: var(--pink-200);
  color: var(--pink-700);
  transform: scale(1.09);
  box-shadow: var(--shadow-sm);
}
.pb-play:active { transform: scale(.94); }
.pb-play.is-playing { background: var(--pink-500); color: #fff; animation: pb-pulse 1.5s var(--ease-soft) infinite; }
.pb-play.is-playing:hover { background: var(--pink-600); }
.pb-play__eq { display: none; gap: 2.5px; align-items: flex-end; height: 14px; }
.pb-play.is-playing .pb-play__eq { display: flex; }
.pb-play.is-playing svg { display: none; }
.pb-play__eq i {
  display: block;
  width: 2.5px;
  background: currentColor;
  border-radius: 2px;
  animation: eq .9s var(--ease-soft) infinite;
}
.pb-play__eq i:nth-child(1) { height: 6px;  animation-delay: 0s; }
.pb-play__eq i:nth-child(2) { height: 13px; animation-delay: .18s; }
.pb-play__eq i:nth-child(3) { height: 8px;  animation-delay: .36s; }
@keyframes eq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes pb-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(236,72,153,.45); }
  60%     { box-shadow: 0 0 0 9px rgba(236,72,153,0); }
}

/* ══════════════════════════════════════════════════════════════════════════
   AI TRANSLATOR
   ══════════════════════════════════════════════════════════════════════════ */
.translator { max-width: 760px; margin: 0 auto; }

.translator__disclaimer {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 26px;
  border: 1px solid var(--pink-200);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--pink-50), #fff);
  font-size: .88rem;
  color: var(--pink-800);
  line-height: 1.65;
}
.translator__disclaimer strong { color: var(--pink-700); }

.dir-toggle {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-xs);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.dir-toggle::-webkit-scrollbar { display: none; }
.dir-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  min-height: 40px;
  padding: 9px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.dir-btn:hover { color: var(--pink-600); }
.dir-btn.active { color: #fff; }
/* All three directions fit on a phone by switching to the short labels. */
.dir-btn__short { display: none; }
@media (max-width: 560px) {
  .dir-btn__long { display: none; }
  .dir-btn__short { display: inline; }
  .dir-toggle { width: 100%; }
  .dir-btn { flex: 1; padding: 9px 8px; }
}
.dir-toggle__pill {
  position: absolute;
  top: 5px;
  height: calc(100% - 10px);
  border-radius: var(--radius-pill);
  background: var(--grad-rose);
  box-shadow: var(--glow-pink);
  transition: left .45s var(--ease), width .45s var(--ease);
  pointer-events: none;
}

.translator__field { position: relative; }
.translator__field textarea {
  width: 100%;
  min-height: 148px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-body);
  resize: vertical;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.translator__field textarea:focus {
  outline: none;
  border-color: var(--pink-400);
  box-shadow: 0 0 0 5px rgba(244,124,180,.16), var(--shadow-sm);
}
.translator__count {
  position: absolute;
  right: 14px; bottom: 12px;
  font-size: .72rem;
  color: var(--text-light);
  background: rgba(255,255,255,.9);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.translator__actions { display: flex; align-items: center; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.translator__hint { font-size: .82rem; color: var(--text-muted); }
.translator__hint kbd {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  font-family: var(--font-body);
  font-size: .74rem;
  color: var(--pink-700);
}

/* Loading dots */
.translator__status { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .9rem; color: var(--text-muted); }
.dots { display: inline-flex; gap: 4px; }
.dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink-400);
  animation: bounce-dot .9s var(--ease-soft) infinite;
}
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce-dot { 0%,100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-6px); opacity: 1; } }

.translator__error {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: var(--radius-sm);
  background: #fff1f2;
  color: #9f1239;
  font-size: .9rem;
  animation: shake .4s var(--ease-soft);
}
@keyframes shake {
  10%,90% { transform: translateX(-2px); }
  30%,70% { transform: translateX(4px); }
  50%     { transform: translateX(-4px); }
}

.translator__result {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #fff, var(--pink-50));
  box-shadow: var(--shadow);
  animation: pop-in .45s var(--ease);
}
.translator__result::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--grad-rose);
}
.translator__result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.translator__result-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-500); }
.translator__result-text { font-size: 1.28rem; line-height: 1.6; color: var(--pink-800); font-weight: 550; }
.translator__result-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light); flex-wrap: wrap; }

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
}
.trust-badge--ok   { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.trust-badge--ai   { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.trust-badge--demo { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }

.pronoun-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--pink-200);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.7);
  font-size: .86rem;
  color: var(--pink-800);
}
.pronoun-row select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: #fff;
  font-size: .86rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pronoun-row select:focus { outline: none; border-color: var(--pink-400); box-shadow: 0 0 0 4px rgba(244,124,180,.15); }

.translator__suggestion {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 18px 20px;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #10b981;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  animation: pop-in .45s var(--ease);
}
.translator__suggestion-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #047857; margin-bottom: 8px; }
.translator__suggestion-src { color: var(--text-muted); font-size: .9rem; }
.translator__suggestion-out { margin-top: 3px; font-size: 1.06rem; font-weight: 550; color: var(--pink-800); }
.translator__suggestion-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 13px; }

.translator__history { max-width: 760px; margin: 28px auto 0; }
.translator__history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.translator__history-head button {
  border: 0;
  background: none;
  color: var(--pink-600);
  font-size: .78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.translator__history-head button:hover { color: var(--pink-800); text-decoration: underline; }
.translator__history ul { list-style: none; display: grid; gap: 8px; }
.translator__history li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .88rem;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: pop-in .35s var(--ease);
}
.translator__history li:hover { border-color: var(--pink-300); transform: translateX(4px); box-shadow: var(--shadow-xs); }
.hist-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; }
.hist-dot--ok { background: #10b981; }
.hist-dot--ai { background: #f59e0b; }
.hist-dot--demo { background: #9ca3af; }
.hist-arrow { color: var(--text-light); flex-shrink: 0; }
.hist-src { color: var(--text-muted); }
.hist-out { color: var(--pink-800); font-weight: 550; }
.hist-src, .hist-out { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════════════════
   STUDY — flashcards
   ══════════════════════════════════════════════════════════════════════════ */
.study { max-width: 820px; margin: 0 auto; }

/* Deck picker */
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.deck {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  text-align: left;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.deck::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink-100), transparent 70%);
  transition: transform .6s var(--ease);
}
.deck:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--pink-200); }
.deck:hover::after { transform: scale(1.5); }
.deck.is-active { border-color: var(--pink-400); box-shadow: var(--shadow); }
.deck__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--pink-100), var(--pink-200));
  font-size: 1.25rem;
}
.deck__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.deck__meta { font-size: .8rem; color: var(--text-muted); }
.deck__bar { margin-top: 14px; height: 5px; border-radius: 99px; background: var(--pink-100); overflow: hidden; }
.deck__bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-rose); transition: width .8s var(--ease); }

/* Study toolbar */
.study__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.study__meta { display: flex; align-items: center; gap: 12px; font-size: .84rem; color: var(--text-muted); }
.study__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--pink-50);
  border: 1px solid var(--border-light);
  font-size: .78rem;
  font-weight: 600;
  color: var(--pink-700);
}
.study__tools { display: flex; gap: 8px; flex-wrap: wrap; }

.study__progress { height: 6px; border-radius: 99px; background: var(--pink-100); overflow: hidden; margin-bottom: 22px; }
.study__progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink-400), var(--pink-600), var(--champagne));
  transition: width .5s var(--ease);
}

/* The card itself */
.flash {
  position: relative;
  width: 100%;
  min-height: clamp(260px, 42vw, 340px);
  perspective: 1600px;
  margin-bottom: 20px;
  cursor: pointer;
}
.flash__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
}
.flash.is-flipped .flash__inner { transform: rotateY(180deg); }
.flash__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 5vw, 46px);
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.flash__face::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(90% 70% at 50% 0%, var(--pink-50), transparent 70%);
  pointer-events: none;
}
.flash__face > * { position: relative; z-index: 1; }
.flash__face--back { transform: rotateY(180deg); background: linear-gradient(155deg, #fff, var(--pink-50)); }
.flash__side {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-light);
}
.flash__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-heading);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.flash__face--back .flash__text { color: var(--pink-700); }
.flash__hint { font-size: .88rem; font-style: italic; color: var(--text-muted); max-width: 44ch; }
.flash__tap {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: .8;
}
.flash__corner {
  position: absolute;
  top: 16px; right: 18px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Big round audio button on the card */
.flash__audio {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-rose);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--glow-pink);
  transition: transform .35s var(--ease-spring), box-shadow .3s var(--ease);
}
.flash__audio svg { width: 18px; height: 18px; fill: currentColor; }
.flash__audio:hover {
  transform: scale(1.09);
  box-shadow: 0 16px 36px -8px rgba(219,39,119,.6);
}
.flash__audio:active { transform: scale(.95); }
.flash__audio.is-playing { animation: pb-pulse 1.5s var(--ease-soft) infinite; }
.flash__audio .pb-play__eq { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.flash__audio.is-playing .pb-play__eq { display: flex; }
.flash__audio.is-playing svg { display: none; }
.flash__audio .pb-play__eq i { display: block; width: 3px; background: currentColor; border-radius: 2px; animation: eq .9s var(--ease-soft) infinite; }
.flash__audio .pb-play__eq i:nth-child(1) { height: 8px; }
.flash__audio .pb-play__eq i:nth-child(2) { height: 17px; animation-delay: .18s; }
.flash__audio .pb-play__eq i:nth-child(3) { height: 11px; animation-delay: .36s; }

/* Deal-in animation when the card changes */
.flash.is-dealing .flash__inner { animation: deal .45s var(--ease); }
@keyframes deal {
  from { opacity: 0; transform: translateX(var(--deal-from, 40px)) scale(.96) rotate(1.5deg); }
}

/* Answer controls */
.study__controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.study__nav {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--pink-700);
  cursor: pointer;
  transition: transform .3s var(--ease-spring), background .25s, border-color .25s, box-shadow .25s;
}
.study__nav:hover {
  background: var(--pink-50);
  border-color: var(--pink-400);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}
.study__nav[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.study__nav svg { width: 17px; height: 17px; fill: currentColor; }

.study__verdicts { display: flex; gap: 10px; }
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: .87rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform .3s var(--ease-spring), box-shadow .3s, background .25s;
}
.verdict:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.verdict--again { background: #fff4f4; color: #b91c3c; border-color: #fecdd3; }
.verdict--again:hover { background: #ffe6e8; }
.verdict--got { background: #eefbf5; color: #047857; border-color: #a7f3d0; }
.verdict--got:hover { background: #ddf7ec; }

.study__done {
  padding: clamp(34px, 6vw, 60px);
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, #fff, var(--pink-50));
  box-shadow: var(--shadow);
  animation: pop-in .5s var(--ease-spring);
}
.study__done-emoji { font-size: 3rem; margin-bottom: 12px; animation: float-badge 3.6s var(--ease-soft) infinite; display: inline-block; }
.study__done h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--text-heading); margin-bottom: 8px; }
.study__done p { color: var(--text-muted); margin-bottom: 22px; }
.study__score { display: flex; justify-content: center; gap: 30px; margin-bottom: 24px; }
.study__score div { text-align: center; }
.study__score b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.study__score span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); }
.study__score .is-got b { color: #047857; }
.study__score .is-again b { color: #b91c3c; }

.study__empty {
  grid-column: 1 / -1; /* span the deck grid rather than sitting in one cell */
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--pink-300);
  border-radius: var(--radius-lg);
  background: var(--pink-50);
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════════════════ */
.contact-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--pink-800);
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.contact-card .subtitle { color: var(--text-muted); margin-bottom: 28px; line-height: 1.75; }

.contact-info { list-style: none; display: grid; gap: 10px; }
.contact-info li { margin: 0; }
.contact-info a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.contact-info a:hover {
  background: var(--pink-50);
  border-color: var(--border-light);
  color: var(--pink-800);
  transform: translateX(5px);
}
.contact-info__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--pink-100), var(--pink-200));
  font-size: 1.05rem;
  transition: transform .4s var(--ease-spring);
}
.contact-info a:hover .contact-info__icon { transform: rotate(-8deg) scale(1.08); }
.contact-info__meta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.contact-info__meta small { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); }
.contact-info__meta span { overflow: hidden; text-overflow: ellipsis; }

.comment-note {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px dashed var(--pink-300);
  border-radius: var(--radius);
  background: var(--pink-50);
  text-align: center;
  color: var(--pink-700);
}
.comment-note span { display: block; margin-top: 5px; font-size: .88rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   FAQ (accordion)
   ══════════════════════════════════════════════════════════════════════════ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq__item[open] { border-color: var(--pink-200); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--pink-50); }
.faq__q::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--pink-100);
  color: var(--pink-700);
  font-size: 1.1rem;
  font-family: var(--font-body);
  transition: transform .4s var(--ease-spring), background .3s;
}
.faq__item[open]:not([data-acc-closing]) .faq__q::after { transform: rotate(135deg); background: var(--pink-200); }
.faq__a { padding: 0 22px 20px; color: var(--text-muted); line-height: 1.8; font-size: .95rem; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* ══════════════════════════════════════════════════════════════════════════
   TOASTS
   ══════════════════════════════════════════════════════════════════════════ */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 260;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--plum-950);
  color: #fff;
  font-size: .86rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in .4s var(--ease-spring);
}
.toast.is-out { animation: toast-out .3s var(--ease) forwards; }
.toast__icon { color: var(--pink-300); }
@keyframes toast-in  { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ══════════════════════════════════════════════════════════════════════════
   FOCUS
   ══════════════════════════════════════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .nav__links {
    position: fixed;
    top: var(--nav-h-sm);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0 clamp(20px, 4vw, 40px);
    background: rgba(255, 250, 252, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .45s var(--ease), opacity .3s var(--ease), padding .35s var(--ease);
  }
  .nav__links.is-open {
    max-height: 72vh;
    /* dvh tracks the shrinking/growing mobile browser chrome. */
    max-height: 72dvh;
    opacity: 1;
    pointer-events: auto;
    padding: 14px clamp(20px, 4vw, 40px) 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav__links li {
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .nav__links.is-open li { opacity: 1; transform: none; transition-delay: calc(60ms * var(--i, 0) + 90ms); }
  .nav__link { min-height: 48px; display: flex; align-items: center; font-size: 1rem; }
  .nav__pill { display: none; }
  .nav { height: var(--nav-h-sm); }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media-badge { width: 76px; height: 76px; font-size: .6rem; right: 8px; bottom: -18px; }

  /* Keep the florals — scaled down and softened rather than switched off, so
     the phone hero still reads as the same design. */
  .hero__floral {
    display: block;
    width: 150px;
    height: auto;
    top: 30px;
    bottom: auto;
    opacity: .3;
  }
  .hero__floral--left { left: -48px; }
  .hero__floral--right { right: -48px; }

  /* Footer links are the only sub-44px targets left on a phone — give them
     room to be tapped rather than aimed at. */
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 2px 20px; }
  .footer__nav a { padding: 11px 0; }
}

@media (max-width: 700px) {
  /* Phrase rows stack: English above Vietnamese, audio/copy on their own line */
  .pb-head { display: none; }
  .pb-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'en actions' 'vi actions';
    gap: 6px 12px;
    padding: 14px 16px;
  }
  .pb-en { grid-area: en; font-size: .88rem; color: var(--text-muted); }
  .pb-vi-cell { grid-area: vi; }
  .pb-row__actions { grid-area: actions; align-self: center; }
  /* A pronoun row has no English side — on desktop the empty cell keeps the
     columns aligned, but on a phone it is just a dead line. */
  .pb-en--empty { display: none; }

  /* Below this width the device is a phone regardless of what the hover media
     query reports, so the icon buttons get thumb-sized here too. */
  .pb-mini { width: 40px; height: 40px; opacity: 1; }
  .pb-play { width: 44px; height: 44px; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .deck-grid { grid-template-columns: 1fr; }
  .pb-loading { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; min-height: 50px; }
  .cta-band__actions .btn { flex: 1 1 auto; }
  .footer__bottom { justify-content: center; text-align: center; }
  .timeline { padding-left: 26px; }
  .timeline__item::before { left: -26px; width: 13px; height: 13px; }
  .translator__result-text { font-size: 1.14rem; }

  /* Three stats stay on one line instead of wrapping to an orphaned third. */
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 10px;
  }
  .stat__num { font-size: 1.65rem; }
  .stat__label { margin-top: 6px; font-size: .58rem; letter-spacing: .08em; }

  /* Drop cap sized to span exactly two lines at this measure. */
  .prose--lead p:first-child::first-letter { font-size: 2.7rem; padding: 4px 9px 0 0; }

  /* Study controls: verdicts full width, then the two arrows side by side —
     both comfortably thumb-sized. */
  .study__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  /* order:-1 pulls the verdicts ahead of the arrows in grid auto-placement, so
     the layout is [ still learning | got it ] over [ ← | → ] instead of the
     arrows each claiming a row of their own. */
  .study__verdicts { order: -1; grid-column: 1 / -1; width: 100%; }
  .verdict { flex: 1; justify-content: center; padding: 14px 10px; }
  .study__nav { width: 100%; height: 46px; border-radius: var(--radius-pill); }
  .study__bar { gap: 10px; }
  .study__tools { width: 100%; }
  .study__tools .action-btn { flex: 1; justify-content: center; }

  /* Cheaper compositing on phone GPUs: softer blur, one less orb, no grain. */
  .orb { filter: blur(46px); }
  .orb--3 { display: none; }
  .hero__grain { display: none; }
}

@media (max-width: 420px) {
  .hero__floral { width: 118px; opacity: .24; }
  .hero__floral--left { left: -40px; }
  .hero__floral--right { right: -40px; }
  .marquee__item { padding: 0 20px; font-size: .86rem; }
  .flash__face { padding: 24px 20px; }
  .verdict { font-size: .82rem; padding: 14px 6px; }
  .study__chip { font-size: .72rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   TOUCH DEVICES
   Hover never fires here, so the hover-only affordances need a home: tap
   feedback replaces the lift, permanently-on accents replace the reveal, and
   keyboard hints are dropped entirely.
   ══════════════════════════════════════════════════════════════════════════ */
@media (hover: none) {
  /* Keyboard-only guidance is noise on a phone. */
  .kbd-hint { display: none !important; }

  /* Card gradient hairline is always on, so cards never look flat. */
  .card::before { opacity: .55; }

  /* Pressing something should feel like pressing something. */
  .card:active,
  .deck:active { transform: scale(.985); box-shadow: var(--shadow); }
  .pb-sub .pb-row:active { background: var(--pink-100); }
  .contact-info a:active { background: var(--pink-100); }
  .faq__q:active { background: var(--pink-100); }

  /* Comfortable targets — 34px icon buttons are too small for a thumb. */
  .pb-mini { width: 40px; height: 40px; opacity: 1; }
  .trans-search__clear { width: 40px; height: 40px; }
  .action-btn--icon { width: 40px; height: 40px; }
  .footer__socials a { width: 42px; height: 42px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SAFE AREAS — notches and home indicators
   ══════════════════════════════════════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: env(safe-area-inset-bottom); }
  .toast-host { bottom: calc(26px + env(safe-area-inset-bottom)); }
  .admin-main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* ══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION — one switch turns the whole motion layer off
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .word__in { opacity: 1 !important; transform: none !important; }
  .highlight::after { transform: scaleX(1) !important; }
  .timeline__item::before { transform: scale(1) !important; }
  .petals, .orb, .hero__grain { display: none !important; }
  .page-veil { display: none !important; }
  .marquee__track { animation: none !important; }
  .hero__title .word__in {
    background: none !important;
    -webkit-text-fill-color: var(--pink-800);
    color: var(--pink-800) !important;
  }
}
