*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color-scheme: light only;
  background: #fff;
  forced-color-adjust: none;
}


body {
  overscroll-behavior: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
/* Re-enable selection only inside inputs and textareas */
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

:root {
  --bg-page: #FAFAFA;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --purple-300: #E9D5FF;
  --purple-400: #D8B4FE;
  --purple-500: #C084FC;
  --purple-600: #A855F7;
  --purple-700: #9333EA;
  --pink-200: #FBCFE8;
  --pink-300: #F9A8D4;
  --pink-400: #F472B6;
  --pink-500: #EC4899;
  --text: #1E1B2E;
  --text-muted: #64748B;
  --border-soft: rgba(167, 139, 250, 0.18);
  --border: rgba(167, 139, 250, 0.14);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 2px 8px -2px rgba(139, 92, 246, 0.08), 0 4px 16px -4px rgba(244, 114, 182, 0.06);
  --shadow-md: 0 12px 40px -8px rgba(139, 92, 246, 0.12), 0 8px 24px -12px rgba(244, 114, 182, 0.08);
  --shadow-float: 0 24px 48px -12px rgba(139, 92, 246, 0.18);
  --gradient-brand: linear-gradient(135deg, #C084FC 0%, #E879F9 45%, #F472B6 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(192, 132, 252, 0.35), rgba(244, 114, 182, 0.28));
  --gradient-text: linear-gradient(110deg, #6d28d9 0%, #a855f7 20%, #e879f9 42%, #f472b6 62%, #fb7185 78%, #c084fc 100%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --purple: var(--purple-600);
  --purple-deep: #7C3AED;
  --pink: var(--pink-400);
  --pink-warm: #FB7185;
  --rose-mist: #FDF4FF;
  --lilac: #FAF5FF;
  --cream: var(--bg-page);
  --white: #FFFFFF;
  --ink: var(--text);
  --muted: var(--text-muted);
  --black: var(--text);
  --gray: var(--text-muted);
  --light: #FDF2F8;
  --border-strong: rgba(244, 114, 182, 0.22);
  --glow: rgba(192, 132, 252, 0.35);
}

@keyframes mesh-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(-2%, 2%) scale(1.03); opacity: 0.62; }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}
@keyframes glow-pulse-gold {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

@keyframes shimmer-travel {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up-blur {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg-page);
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -30%;
  z-index: -2;
  pointer-events: none;
  
  background:
    radial-gradient(ellipse 58% 46% at 82% 2%, rgba(253, 224, 236, 0.28), transparent 56%),
    radial-gradient(ellipse 50% 45% at 10% 90%, rgba(251, 207, 232, 0.4), transparent 55%),
    radial-gradient(ellipse 45% 40% at 50% 50%, rgba(244, 244, 255, 0.5), transparent 60%);
  animation: mesh-drift 28s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

section[id] {
  scroll-margin-top: 96px;
}


.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.38s; }
.d4 { transition-delay: 0.52s; }

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 24px 0;
  background: transparent;
  overflow: visible;
  /* needed so #mobile-menu position:absolute anchors here */
  isolation: isolate;
}
.nav-shell nav,
.papers-topnav {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 24px rgba(0,0,0,0.08),
    0 1px 4px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 18.5px;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.logo:hover { color: var(--purple-700); }
.logo span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  margin-bottom: 2px;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 4px 14px rgba(168, 85, 247, 0.35);
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--purple-700); }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;

  /* liquid glass */
  background: rgba(168, 85, 247, 0.44);
  backdrop-filter: url(#frosted) blur(12px) saturate(1.8);
  -webkit-backdrop-filter: url(#frosted) blur(12px) saturate(1.8);
  border: 1.5px solid rgba(255, 255, 255, 0.60);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.40) inset,
    0 -1px 0 rgba(0,0,0,0.08) inset,
    0 4px 14px rgba(168, 85, 247, 0.22);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease;
}
.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.30) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(168, 85, 247, 0.62);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.50) inset,
    0 -1px 0 rgba(0,0,0,0.10) inset,
    0 8px 22px rgba(168, 85, 247, 0.34);
}
.nav-cta:hover::after { opacity: 1; }

.back-to-top {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 160;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  isolation: isolate;
  overflow: hidden;
  color: var(--purple-700);

  /* liquid glass */
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: url(#frosted) blur(14px) saturate(1.6);
  -webkit-backdrop-filter: url(#frosted) blur(14px) saturate(1.6);
  border: 1.5px solid rgba(255, 255, 255, 0.70);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.55) inset,
    0 -1px 0 rgba(0,0,0,0.06) inset,
    0 2px 8px rgba(0,0,0,0.07);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s var(--ease-out),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.back-to-top::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.back-to-top svg { position: relative; z-index: 1; }
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
@media (hover: hover) {
  .back-to-top:hover {
    background: rgba(168, 85, 247, 0.52);
    border-color: rgba(255, 255, 255, 0.60);
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
      0 2px 0 rgba(255,255,255,0.45) inset,
      0 -1px 0 rgba(0,0,0,0.08) inset;
  }
  .back-to-top:hover::after { opacity: 1; }
}
.back-to-top:active { transform: scale(0.96); }
.back-to-top:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.55);
  outline-offset: 3px;
}

#hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }
#menu-icon {
  transition: transform 500ms ease-in-out;
}
#menu-icon #menu-path-top {
  stroke-dasharray: 12 63;
  transition: stroke-dasharray 500ms ease-in-out, stroke-dashoffset 500ms ease-in-out;
}
#hamburger.open #menu-icon {
  transform: rotate(-45deg);
  transform-origin: center;
}
#hamburger.open #menu-path-top {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 16px;
  /* same visual as navbar but fully opaque — backdrop-filter can't work inside a parent filter context */
  background: rgba(245, 242, 255, 0.97);
  border: 1px solid rgba(192, 132, 252, 0.18);
  border-radius: 28px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 300;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 8px 32px rgba(139,92,246,0.10),
    0 2px 12px rgba(0,0,0,0.08);
}
#mobile-menu.open {
  display: flex;
  animation: menuIn 0.22s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#mobile-menu.closing {
  display: flex;
  animation: menuOut 0.18s ease forwards;
}
@keyframes menuOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-6px) scale(0.98); }
}
#mobile-menu a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  #mobile-menu a:hover {
    background: rgba(168, 85, 247, 0.08);
    color: var(--purple-700);
  }
}

/* ── World Cup Popup ─────────────────────────────────────────────────────── */
#wc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 10, 30, 0.55);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
}
#wc-overlay.wc-hidden {
  display: none;
}
@keyframes wcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wcFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes wcSlideDown {
  from { opacity: 1; transform: translateY(0)   scale(1); }
  to   { opacity: 0; transform: translateY(20px) scale(0.96); }
}

#wc-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.10);
  animation: wcSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
@keyframes wcSlideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

#wc-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}
#wc-close:hover { background: rgba(255,255,255,0.95); color: #111; }

/* PNG sits full-width, no crop — transparent bg blends into white card */
#wc-img {
  width: 90%;
  margin: 16px auto -8px;
  display: block;
  /* fade bottom edge into white so it merges with the text section */
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

#wc-body {
  padding: 4px 28px 26px;
  text-align: center;
}

#wc-eyebrow {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7c3aed;
  margin: 0 0 6px;
}

#wc-title {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 700;
  color: #1a0a2e;
  line-height: 1.2;
  margin: 0 0 10px;
}

#wc-text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #5a4a70;
  margin: 0 0 20px;
}
#wc-text strong { color: #1a0a2e; }

/* Glassy button — matches the site's variant-link / board-tab style */
#wc-cta {
  display: inline-block;
  background: rgba(168, 85, 247, 0.18);
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  color: #7c3aed;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 28px;
  border: 1.5px solid rgba(168,85,247,0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 18px rgba(124,58,237,0.14);
}
#wc-cta:hover {
  background: rgba(168, 85, 247, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.22);
}

@media (max-width: 480px) {
  #wc-img  { width: 85%; }
  #wc-body { padding: 4px 20px 22px; }
}

/* ── Countdown Widget ────────────────────────────────────────────────────── */

/* shared display typography */
#countdown-display,
#countdown-mobile-display {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.01em;
}
#countdown-display span:is(#cd-days,#cd-hours,#cd-mins,#cd-secs),
#countdown-mobile-display span:is(#cdm-days,#cdm-hours,#cdm-mins,#cdm-secs) {
  min-width: 1.6ch;
  text-align: right;
}
.cd-unit {
  font-weight: 400;
  font-size: 0.65rem;
  color: #a78bfa;
  margin-right: 4px;
}

/* shared inner pill */
#countdown-inner,
#countdown-mobile-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,240,255,0.85);
  border: 1.5px solid rgba(192,132,252,0.4);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 10px rgba(124,58,237,0.10);
}
#countdown-inner:hover,
#countdown-mobile-inner:hover {
  box-shadow: 0 4px 18px rgba(124,58,237,0.20);
  transform: translateY(-1px);
}

/* ── Desktop: sits inside .nav-inner ── */
#countdown-widget {
  position: relative;
  cursor: pointer;
  user-select: none;
}
#countdown-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(124,58,237,0.93);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(124,58,237,0.28);
  z-index: 200;
  animation: cdTooltipIn 0.18s ease;
}

/* ── Mobile: flows inside .nav-shell below the nav pill ── */
#countdown-mobile {
  display: none;
  max-width: 1120px;
  margin: 6px auto 0;
  padding: 0 24px;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
  user-select: none;
}
#countdown-mobile-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 24px;
  background: rgba(124,58,237,0.93);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(124,58,237,0.28);
  z-index: 200;
  animation: cdTooltipIn 0.18s ease;
}

@media (max-width: 640px) {
  #countdown-widget          { display: none; }
  #countdown-mobile          { display: flex; }
}

@keyframes cdTooltipIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
#countdown-tooltip {
  transform: translateX(-50%);
}
#countdown-tooltip:not([hidden]) {
  animation: cdTooltipInCentered 0.18s ease;
}
@keyframes cdTooltipInCentered {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* floating ?-marks — spread in all directions */
#countdown-qmarks,
#countdown-mobile-qmarks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.cd-qmark {
  position: absolute;
  font-size: 0.9rem;
  font-weight: 900;
  color: #c084fc;
  opacity: 0;
  pointer-events: none;
  animation: cdQFloat var(--dur, 2.4s) ease-out var(--delay, 0s) infinite;
}
/* Each ? travels in a unique direction via custom properties set in JS */
@keyframes cdQFloat {
  0%   { opacity: 0;   transform: translate(0, 0) scale(0.6); }
  18%  { opacity: 1; }
  85%  { opacity: 0;   transform: translate(var(--tx), var(--ty)) scale(1.15); }
  100% { opacity: 0;   transform: translate(var(--tx), var(--ty)) scale(1.15); }
}

#hero {
  position: relative;
  box-sizing: border-box;
  --hero-nav-band: 86px;
  height: calc(100dvh - var(--hero-nav-band));
  height: calc(min(100svh, 100dvh) - var(--hero-nav-band));
  max-height: calc(100dvh - var(--hero-nav-band));
  max-height: calc(min(100svh, 100dvh) - var(--hero-nav-band));
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 20px clamp(10px, 2vh, 24px);
  border-bottom: none;
  isolation: isolate;
}

#hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(64px, 12vh, 140px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 28%,
    rgba(250, 245, 255, 0.65) 55%,
    rgba(250, 250, 252, 0.92) 82%,
    var(--bg-page) 100%
  );
}
.hero-blobs { display: none; }

.hero-panel {
  position: relative;
  z-index: 1;
  max-width: min(1200px, 100%);
  margin: 0 auto;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  padding: 2px;
  border-radius: var(--radius-xl);
  /* animated gradient border */
  background: linear-gradient(135deg,
    #c084fc 0%,
    #e879f9 22%,
    #f472b6 44%,
    #a78bfa 66%,
    #c084fc 88%,
    #e879f9 100%
  );
  background-size: 300% 300%;
  animation:
    fade-up-blur 1s var(--ease-out) 0.1s forwards,
    hero-border-flow 8s ease 0s infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 24px 60px -12px rgba(139, 92, 246, 0.28),
    0 8px 24px -6px rgba(244, 114, 182, 0.20),
    0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes hero-border-flow {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero-panel-inner {
  position: relative;
  border-radius: calc(var(--radius-xl) - 2px);
  background:
    radial-gradient(ellipse 65% 80% at 22% 60%, rgba(250, 245, 255, 0.96) 0%, transparent 70%),
    radial-gradient(ellipse 55% 70% at 82% 40%, rgba(253, 232, 245, 0.52) 0%, transparent 65%),
    rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding: 0 clamp(1.25rem, 3.5vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.95);
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* top-edge specular sheen */
.hero-panel-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.08) 35%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

/* grain texture overlay */
.hero-panel-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  z-index: 0;
}

.hero-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.hero-inner {
  width: 100%;
  min-width: 0;
}

.hero-inner.hero-copy {
  flex: 0 1 min(360px, 42vw);
  max-width: min(440px, 56%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow: visible;
  padding: clamp(0.75rem, 1.8vh, 1.35rem) 0;
  position: relative;
  z-index: 1;
}

.hero-visual {
  will-change: opacity, transform;
  margin: 0;
  padding: 0;

  flex: 1 1 0%;
  min-width: min(220px, 32vw);
  max-width: none;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;

  margin-left: clamp(-3.25rem, -8vw, -1.5rem);
  margin-right: calc(-1 * clamp(1.25rem, 3.5vw, 2.25rem) - 3px);

  border-radius: 0 calc(var(--radius-xl) - 3px) calc(var(--radius-xl) - 3px) 0;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 20%, black 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 8%,  black 80%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 20%, black 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 8%,  black 80%, transparent 100%);
  mask-composite: intersect;
  line-height: 0;
  display: flex;
  flex-direction: column;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: right center;
  
  filter: none;
  transform: scale(1.80);
}


.hero-label {
  will-change: opacity, transform;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-700);
  margin-bottom: 22px;
  padding: 9px 18px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(192, 132, 252, 0.28);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.9) inset,
    0 1px 8px rgba(139, 92, 246, 0.10);
}

h1 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 920px;
  overflow: visible;
}
h1 em {
  font-style: italic;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  background: var(--gradient-text);
  background-size: 300% auto;
  animation: shimmer-travel 6s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 em::before {
  content: none;
}

.hero-body {
  will-change: opacity, transform;
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 400;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn-main {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;

  /* liquid glass */
  background: rgba(168, 85, 247, 0.48);
  backdrop-filter: url(#frosted) blur(14px) saturate(1.8);
  -webkit-backdrop-filter: url(#frosted) blur(14px) saturate(1.8);
  border: 1.5px solid rgba(255, 255, 255, 0.60);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.45) inset,
    0 -1px 0 rgba(0,0,0,0.08) inset;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, background 0.3s ease;
}

/* specular highlight sweep on hover */
.btn-main::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-main:hover {
  transform: translateY(-3px);
  background: rgba(168, 85, 247, 0.65);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.55) inset,
    0 -1px 0 rgba(0,0,0,0.10) inset;
}
.btn-main:hover::after { opacity: 1; }

.hero-layout .hero-copy h1,
.hero-layout .hero-copy .hero-body {
  max-width: 100%;
}

.hero-layout .hero-copy h1 {
  font-size: clamp(2.1rem, 3.6vw + 0.45rem, 3.75rem);
  line-height: 1.05;
  margin-bottom: clamp(12px, 1.6vh, 22px);
}
.hero-layout .hero-copy .hero-body {
  font-size: clamp(0.98rem, 1.35vw + 0.4rem, 1.16rem);
  line-height: 1.62;
  margin-bottom: clamp(14px, 1.8vh, 26px);
}
.hero-layout .hero-copy .hero-label {
  margin-bottom: clamp(10px, 1.4vh, 18px);
  padding: 10px 16px;
  font-size: 11px;
}
.hero-layout .hero-copy .hero-actions {
  gap: clamp(10px, 1.4vh, 16px);
}
.hero-layout .hero-copy .btn-main {
  padding: 14px 28px;
  font-size: 15px;
}
.hero-layout .hero-copy .btn-ghost {
  padding: 11px 8px;
  font-size: 15px;
}

.btn-ghost {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--purple-700);
  text-decoration: none;
  padding: 12px 8px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.btn-ghost:hover {
  color: var(--pink-500);
  transform: translateX(4px);
}
.btn-ghost::after { content: ' →'; opacity: 0.7; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.home-heading-friendly {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  overflow: visible;
}

#achievements {
  position: relative;
  z-index: 1;
  margin-top: -40px;
  padding: calc(40px + clamp(28px, 5vw, 52px)) 24px 28px;
  border-bottom: none;
}
/* ── Guide Video Section ── */
#guide-video {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border);
}
.guide-video-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.guide-video-wrap {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.guide-video-player {
  flex: 0 0 70%;
  max-width: 70%;
}
.guide-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.guide-video-embed iframe {
  position: absolute;
  top: -44px;
  left: 0;
  width: 100%;
  height: calc(100% + 88px);
  border: 0;
}
.guide-video-info {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guide-video-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.guide-video-title em {
  font-style: normal;
  background: var(--gradient-text);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-travel 7s linear infinite;
}
.guide-video-desc {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.75;
  color: var(--text-muted);
}
.guide-video-divider {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--purple-700), #e879b9);
}
@media (max-width: 768px) {
  .guide-video-wrap {
    flex-direction: column;
  }
  .guide-video-player {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .guide-video-info {
    text-align: center;
    align-items: center;
  }
}

#inside {
  padding: 28px 24px 88px;
  border-bottom: 1px solid var(--border);
}
.achievements-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 28px;
}
.achievements-intro {
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.achievements-carousel {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.achievements-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: linear-gradient(165deg, rgba(255, 251, 240, 0.95) 0%, rgba(255, 255, 255, 0.98) 45%, rgba(250, 245, 255, 0.9) 100%);
  box-shadow: var(--shadow-sm);
}
.achievements-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.achievements-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
}
.achievements-slide-inner {
  text-align: center;
}
.achievements-subject {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.achievements-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
}
.achievements-name--gold {
  position: relative;
  display: block;
  isolation: isolate;
  background: linear-gradient(
    105deg,
    #7c5e10 0%,
    #c9a227 18%,
    #f5e6a8 32%,
    #ffd54d 48%,
    #fff9e6 52%,
    #e6bc2f 68%,
    #b8860b 85%,
    #8b6914 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #b8860b;
  animation: shimmer-travel 4s linear infinite;
}
.achievements-name--gold::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(14px);
  opacity: 0.7;
  animation: shimmer-travel 4s linear infinite, glow-pulse-gold 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  user-select: none;
}
.achievements-score {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin: 0;
}
.achievements-max {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}
/* ── Legend slides (Omar Ezzat & Ibrahim Yasser) ── */
.achievements-slide--legend {
  position: relative;
}
.achievements-slide--legend::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.07) 0%, rgba(168,85,247,0.03) 55%, transparent 80%);
  border: 1.5px solid rgba(168, 85, 247, 0.25);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 0 20px 2px rgba(168,85,247,0.07), inset 0 1px 0 rgba(255,255,255,0.08);
}
.achievements-slide--legend .achievements-slide-inner {
  position: relative;
  z-index: 1;
}
.achievements-subject--legend {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #c9a227, #ffd54d, #c9a227);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c9a227;
  margin-bottom: 10px;
}
.achievements-name--legend {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 14px;
  position: relative;
  display: block;
  isolation: isolate;
  background: linear-gradient(
    105deg,
    #7b2fff 0%,
    #a855f7 18%,
    #e0c3fc 32%,
    #c084fc 48%,
    #ffffff 52%,
    #c084fc 58%,
    #a855f7 72%,
    #7b2fff 85%,
    #9333ea 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #a855f7;
  animation: shimmer-travel 3s linear infinite;
  letter-spacing: -0.01em;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.35));
}
.achievements-name--legend::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(6px);
  opacity: 0.4;
  animation: shimmer-travel 3s linear infinite;
  pointer-events: none;
  z-index: -1;
  user-select: none;
}
.achievements-score--legend {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.8rem, 9vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #b8860b 0%, #e6a817 35%, #ffd54d 55%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c9a227;
}
.achievements-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  background: rgba(255, 215, 0, 0.08);
  color: #c9a227;
  margin-top: 4px;
}

.achievements-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.achievements-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-700, #7c3aed);

  /* liquid glass — no overflow:hidden so backdrop-filter renders correctly */
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.6) inset,
    0 -1px 0 rgba(0,0,0,0.06) inset,
    0 2px 10px rgba(0,0,0,0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.achievements-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}
@media (hover: hover) {
  .achievements-arrow:hover {
    background: rgba(168, 85, 247, 0.52);
    border-color: rgba(255, 255, 255, 0.60);
    color: #fff;
    transform: translateY(-2px);
  }
}
.achievements-arrow:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.42);
  color: var(--purple-700, #7c3aed);
}
.achievements-arrow:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.55);
  outline-offset: 3px;
}
.achievements-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 260px;
}
.achievements-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.35);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.achievements-dot:hover {
  border-color: rgba(168, 85, 247, 0.65);
  transform: scale(1.15);
}
.achievements-dot.is-active {
  background: linear-gradient(135deg, var(--purple-500), var(--pink-400));
  border-color: transparent;
}
.achievements-dot:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.55);
  outline-offset: 3px;
}

.achievements-carousel--static .achievements-viewport {
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
}
.achievements-carousel--static .achievements-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: none !important;
  transition: none;
}
.achievements-carousel--static .achievements-slide {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(255, 251, 240, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}
.achievements-carousel--static .achievements-controls,
.achievements-carousel--static .achievements-arrow {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .achievements-name--gold { animation: none; }
  .achievements-track { transition: none; }
}

.inside-wrap {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: clamp(2rem, 4vw, 3rem);
}
.inside-inner { max-width: 100%; }
.inside-head { margin-bottom: 48px; }

#inside .inside-wrap--story {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
#inside .inside-wrap--story .inside-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3.25rem);
}
.story-showcase {
  position: relative;
}
.story-showcase__body {
  position: relative;
  z-index: 1;
  padding-top: 2px;
  max-width: 100%;
}

.story-eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--purple-700);
}
.story-lead {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.55rem, 3.2vw + 0.6rem, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.35rem;
  max-width: 100%;
  position: relative;
  display: block;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: unset;
}
.story-lead::before { content: none; }
.story-p {
  font-size: clamp(1.05rem, 1.2vw + 0.85rem, 1.2rem);
  color: var(--text-muted);
  line-height: 1.78;
  margin: 0 0 1.15rem;
  max-width: 100%;
}
.story-showcase__body > .story-p:last-of-type {
  margin-bottom: 0;
}

#inside .story-highlight,
#inside .story-p strong {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-style: normal;
  font-weight: 800;
  padding: 0;
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  animation: shimmer-travel 5s linear infinite;
}
.story-emoji {
  display: inline-block;
  margin-left: 0.35em;
  font-size: 1.2em;
  vertical-align: middle;
  animation: story-emoji-pop 2.6s ease-in-out infinite;
}
@keyframes story-emoji-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-4px) scale(1.08) rotate(-4deg); }
  60% { transform: translateY(-2px) scale(1.05) rotate(3deg); }
}
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.65rem;
}
.story-tag {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-700);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: default;
  border: 1px solid rgba(192, 132, 252, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  transition: transform 0.25s var(--ease-out), border-color 0.2s ease, background 0.2s ease;
}
.story-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(250, 245, 255, 0.98);
}
.story-showcase.reveal.visible .story-tag {
  animation: story-tag-pop 0.55s var(--ease-out) backwards;
}
.story-showcase.reveal.visible .story-tag:nth-child(1) { animation-delay: 0.06s; }
.story-showcase.reveal.visible .story-tag:nth-child(2) { animation-delay: 0.12s; }
.story-showcase.reveal.visible .story-tag:nth-child(3) { animation-delay: 0.18s; }
.story-showcase.reveal.visible .story-tag:nth-child(4) { animation-delay: 0.24s; }
.story-showcase.reveal.visible .story-tag:nth-child(5) { animation-delay: 0.3s; }
@keyframes story-tag-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow: visible;
}
h2 em {
  font-style: normal;
  position: relative;
  display: inline-block;
  overflow: visible;
  background: var(--gradient-text);
  background-size: 300% auto;
  animation: shimmer-travel 7s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 em::before {
  content: none;
}

.items-list { display: flex; flex-direction: column; gap: 0; }
.item-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 28px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s ease, transform 0.4s var(--ease-out);
}
.item-row + .item-row { border-top: 1px solid var(--border); }
.item-row:hover {
  background: linear-gradient(90deg, rgba(250, 245, 255, 0.8), rgba(253, 242, 248, 0.5));
  border-color: var(--border-soft);
  transform: translateX(4px);
}
.item-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pink-400);
  margin-bottom: 8px;
}
.item-title {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
  color: var(--text);
}
.item-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding-top: 4px;
}

#topics {
  padding: 88px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.topics-wrap {
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(165deg, #FAF5FF 0%, #FFF8FC 50%, #FDFBFF 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: clamp(2rem, 4vw, 3rem);
}
.topics-inner { position: relative; z-index: 1; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.topic-tag {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-soft);
  color: var(--text);
  text-align: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  cursor: default;
}
.topic-tag:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 14px 32px rgba(147, 51, 234, 0.18), 0 4px 14px rgba(244, 114, 182, 0.12);
}

/* ── Ms.Ghada Promo Card ─────────────────────────────────── */
#ghada-promo {
  padding: 80px 24px;
  border-bottom: 1px solid var(--border);
}
.ghada-promo-wrap {
  max-width: 1080px;
  margin: 0 auto;
}
.ghada-promo-card {
  display: flex;
  align-items: stretch;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.18), 0 4px 20px rgba(236, 72, 153, 0.10);
  border: 1px solid rgba(168, 85, 247, 0.18);
  min-height: 320px;
}

/* LEFT — paper spread */
.ghada-promo-visual {
  flex: 0 0 58%;
  position: relative;
  background: linear-gradient(110deg, #ede5ff 0%, #f8e8ff 55%, #fdf0ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}
/* fade edge into the right panel */
.ghada-promo-visual::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 100%;
  background: linear-gradient(to right, transparent, #fdf0ff);
  pointer-events: none;
  z-index: 4;
}
.ghada-promo-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(168,85,247,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 15%, rgba(236,72,153,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.ghada-papers-spread {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
  height: 260px;
  width: 100%;
}
/* ── Shuffle entrance keyframes ── */
@keyframes card-deal-1 {
  0%   { opacity: 0; transform: rotate(0deg) translateY(60px) translateX(40px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(-10deg) translateY(12px) translateX(0); }
}
@keyframes card-deal-2 {
  0%   { opacity: 0; transform: rotate(0deg) translateY(60px) translateX(20px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(-3deg) translateY(-4px) translateX(0); }
}
@keyframes card-deal-3 {
  0%   { opacity: 0; transform: rotate(0deg) translateY(60px) translateX(-10px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(3deg) translateY(4px) translateX(0); }
}
@keyframes card-deal-4 {
  0%   { opacity: 0; transform: rotate(0deg) translateY(60px) translateX(-30px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(9deg) translateY(12px) translateX(0); }
}

.ghada-paper {
  width: 130px;
  height: 184px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.9);
  position: relative;
  /* No CSS transition — Anime.js owns transform easing entirely */
  transition: box-shadow 0.3s ease;
  will-change: transform;
}
.ghada-paper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease;
}

/* Resting positions — JS adds .dealt to trigger entrance animation */
.ghada-paper:nth-child(1) {
  transform: rotate(-10deg) translateY(12px);
  z-index: 1;
  margin-right: -40px;
}
.ghada-paper:nth-child(2) {
  transform: rotate(-3deg) translateY(-4px);
  z-index: 2;
  margin-right: -40px;
}
.ghada-paper:nth-child(3) {
  transform: rotate(3deg) translateY(4px);
  z-index: 3;
  margin-right: -40px;
}
.ghada-paper:nth-child(4) {
  transform: rotate(7deg) translateY(8px);
  z-index: 4;
  margin-right: -40px;
}
.ghada-paper:nth-child(5) {
  transform: rotate(13deg) translateY(16px);
  z-index: 5;
}

/* Animations only play once .dealt is added (by IntersectionObserver in JS) */
.ghada-papers-spread.dealt .ghada-paper:nth-child(1) {
  animation: card-deal-1 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}
.ghada-papers-spread.dealt .ghada-paper:nth-child(2) {
  animation: card-deal-2 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.18s;
}
.ghada-papers-spread.dealt .ghada-paper:nth-child(3) {
  animation: card-deal-3 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}
.ghada-papers-spread.dealt .ghada-paper:nth-child(4) {
  animation: card-deal-4 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.42s;
}
.ghada-papers-spread.dealt .ghada-paper:nth-child(5) {
  animation: card-deal-4 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.54s;
}

/* Clickable card base */
.ghada-paper-link {
  cursor: pointer;
  text-decoration: none;
  display: block;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Per-card hover lift (PC only) — JS adds/removes .is-picked ── */
.ghada-paper-link.is-picked {
  z-index: 10 !important;
  box-shadow: 0 24px 48px rgba(168,85,247,0.28), 0 8px 20px rgba(0,0,0,0.18);
}
.ghada-paper-link.is-picked img {
  filter: brightness(1.08);
}

/* Resting hover state is handled purely via JS-toggled class above.
   Remove the old whole-card hover fan so it doesn't fight per-card lift. */
.ghada-paper-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #a855f7, #ec4899);
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  border: 2px solid rgba(255,255,255,0.9);
}
.ghada-paper-more-num {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.ghada-paper-more-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.9;
}


#ad-card-incapsule img {
  object-fit: contain;
  background: #5b3fa0;
}

/* RIGHT — text */
.ghada-promo-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  background: linear-gradient(100deg, #fdf0ff 0%, #fff8fd 40%, #ffffff 100%);
  position: relative;
}
.ghada-promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a855f7;
  margin-bottom: 16px;
}
.ghada-promo-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
}
.ghada-promo-heading {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.ghada-promo-heading em {
  font-style: normal;
  background: var(--gradient-text);
  background-size: 300% auto;
  animation: shimmer-travel 7s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ghada-promo-desc {
  font-size: 14.5px;
  color: #6b4a80;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 280px;
}
.ghada-promo-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ghada-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.ghada-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: #ec4899;
  transition: stroke 0.2s ease;
}
.ghada-contact-item:hover {
  color: #ec4899;
  gap: 12px;
}
.ghada-contact-item:hover svg { stroke: #a855f7; }

/* Touch active state — phones have no hover */
.ghada-paper-link:active img {
  filter: brightness(1.1);
  transform: scale(0.97);
  transition: filter 0.15s ease, transform 0.15s ease;
}

/* Tablet */
@media (max-width: 860px) {
  .ghada-promo-visual { flex: 0 0 48%; padding: 32px 28px; }
  .ghada-papers-spread { height: 220px; width: 100%; }
  .ghada-paper { width: 110px; height: 156px; }
}

/* Mobile */
@media (max-width: 680px) {
  #ghada-promo { padding: 56px 16px; }
  .ghada-promo-card {
    flex-direction: column;
    border-radius: 20px;
  }
  .ghada-promo-visual {
    flex: 0 0 auto;
    padding: 40px 16px 32px;
    min-height: unset;
    justify-content: center;
  }
  .ghada-promo-visual::after { display: none; }
  .ghada-papers-spread {
    /* On mobile: lay cards in a flat row, centered, no wild rotation */
    height: 200px;
    width: 100%;
    max-width: 340px;
    justify-content: center;
    margin: 0 auto;
  }
  /* Flatten rotations + kill entrance animation on mobile */
  .ghada-paper:nth-child(1) {
    animation: none;
    transform: rotate(-6deg) translateY(8px);
    margin-right: -24px;
  }
  .ghada-paper:nth-child(2) {
    animation: none;
    transform: rotate(-1deg) translateY(-2px);
    margin-right: -24px;
  }
  .ghada-paper:nth-child(3) {
    animation: none;
    transform: rotate(2deg) translateY(4px);
    margin-right: -28px;
  }
  .ghada-paper:nth-child(4) {
    animation: none;
    transform: rotate(7deg) translateY(10px);
  }
  /* No hover lift on touch */
  .ghada-paper-link.is-picked {
    z-index: 4 !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  }
  .ghada-paper { width: 90px; height: 128px; }
  .ghada-paper-more-num { font-size: 18px; }
  .ghada-paper-more-label { font-size: 9px; }
  .ghada-promo-body { padding: 28px 24px 36px; }
  .ghada-promo-desc { max-width: 100%; }
  .ghada-promo-heading { font-size: 1.7rem; }
  /* Bigger tap target for contact links */
  .ghada-contact-item { padding: 10px 0; min-height: 44px; }
}

#cta {
  padding: 100px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cta-wrap {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 18px; }
.cta-inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

footer {
  padding: 24px 24px 24px;
  background: transparent;
  position: relative;
}
footer::before { display: none; }

/* ── Floating card wrapper ── */
.footer-card {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(150deg, #3b0d8f 0%, #6d28d9 40%, #9333ea 70%, #c026d3 100%);
  border-radius: 28px;
  padding: 56px 60px 32px;
  position: relative;
  overflow: hidden;
}
.footer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 95% 5%, rgba(251,207,232,0.3), transparent 50%),
    radial-gradient(ellipse 40% 40% at 5% 95%, rgba(109,40,217,0.35), transparent 55%);
  pointer-events: none;
  border-radius: inherit;
}

/* ── Main grid ── */
.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}
/* on desktop the wrapper is transparent so cols flow into the grid */
.footer-cols-row { display: contents; }

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}

/* Nav columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }

/* Social icons */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.footer-social__link:hover { transform: translateY(-4px); border-color: transparent; }
.footer-social__link--instagram:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-social__link--tiktok:hover { background: #010101; }
.footer-social__link--whatsapp:hover { background: linear-gradient(135deg,#25d366,#128c7e); }
.footer-social__icon { width: 19px; height: 19px; display: block; }

/* Bottom bar */
.footer-bottom {
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-credit {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}
.footer-credit span {
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}
.footer-credit-link {
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-credit-link:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .footer-card { padding: 28px 20px 18px; border-radius: 18px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-brand { grid-column: 1 / -1; gap: 10px; }
  .footer-tagline { font-size: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-copy, .footer-credit { font-size: 11px; }
}
@media (max-width: 480px) {
  .footer-card { padding: 22px 16px 16px; border-radius: 16px; }
  .footer-main { grid-template-columns: 1fr; gap: 0; padding-bottom: 18px; }
  .footer-brand { margin-bottom: 18px; }
  .footer-cols-row {
    display: flex;
    flex-direction: row;
    gap: 0;
  }
  .footer-cols-row .footer-col { flex: 1; }
  .footer-cols-row .footer-col + .footer-col {
    padding-left: 16px;
    position: relative;
  }
  .footer-cols-row .footer-col + .footer-col::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5px;
    height: 50%;
    border-radius: 99px;
    background: rgba(255,255,255,0.35);
  }
  .footer-col-label { font-size: 9px; margin-bottom: 8px; }
  .footer-col a { font-size: 12px; }
  .footer-social { gap: 8px; }
  .footer-social__link { width: 34px; height: 34px; }
}

@media (max-width: 920px) {
  #hero {
    height: auto;
    max-height: none;
    min-height: 0;
    justify-content: flex-start;
    padding: 84px 20px 28px;
    overflow: visible;
  }
  #hero::after {
    height: clamp(48px, 10vh, 100px);
  }
  #achievements {
    margin-top: -24px;
    padding-top: calc(24px + clamp(24px, 6vw, 40px));
  }

  #hero {
    --hero-nav-band: 86px;
    height: auto;
    max-height: none;
    min-height: calc(100dvh - var(--hero-nav-band));
    padding: 8px 16px 16px;
    justify-content: center;
  }
  .hero-panel {
    flex: none;
    max-height: none;
    min-height: 0;
    overflow: visible;
    position: relative;
  }
  .hero-panel-inner {
    flex: none;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 0;
    position: relative;
  }
  /* Clip only the layout row so figure can bleed down but not sideways */
  .hero-layout {
    overflow: hidden;
  }

  /* Flex row: text left, image right — no overlap, no absolute */
  .hero-layout {
    flex-direction: row;
    align-items: stretch;
    min-height: clamp(340px, 85vw, 520px);
    overflow: hidden;
    position: relative;
    margin: 0;
  }

  /* Text column: left 58% */
  .hero-inner.hero-copy {
    position: relative;
    z-index: 3;
    flex: 0 0 58%;
    max-width: 58%;
    text-align: left;
    overflow: visible;
    padding: clamp(1.2rem, 4vw, 2rem) 0 clamp(1.2rem, 4vw, 2rem) clamp(1rem, 4vw, 1.5rem);
  }
  .hero-body {
    margin-left: 0;
    margin-right: 0;
    color: var(--text);
    font-weight: 500;
  }
  .hero-actions {
    justify-content: flex-start;
  }

  /* Image column: right side */
  .hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    overflow: hidden;
    margin: 0;
    z-index: 0;
    pointer-events: none;
    will-change: unset;
    border-radius: 0;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 8%, black 80%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
      linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 8%, black 80%, transparent 100%);
    mask-composite: intersect;
  }
  .hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.3);
    transform-origin: top center;
    filter: none;
  }

  /* No overlay */
  .hero-visual::after {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Slightly wider text column on tiny phones */
  .hero-inner.hero-copy {
    flex: 0 0 60%;
    max-width: 60%;
  }
  .hero-layout {
    min-height: clamp(300px, 100vw, 440px);
  }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(1.9rem, 7.5vw, 2.8rem); }
  .nav-links { display: none; }
  .nav-cta { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; padding: 8px 16px; margin-right: 12px; }
  #hamburger { display: block; }
  .item-row { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .footer-social { justify-content: flex-start; }
  .footer-contact {
    align-self: flex-end;
    align-items: flex-end;
  }
  .nav-shell { padding: 12px 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { transition-duration: 0.01ms; }
  .back-to-top { transition: none; }
  .footer-social__link,
  .footer-social__link:hover {
    transition-duration: 0.01ms;
    transform: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.papers-page {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  scroll-padding-top: 96px;
}

.papers-topnav {
  border-radius: 999px;
  margin: 12px 24px 0;
  max-width: 1080px;
  position: sticky;
  top: 12px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 24px rgba(0,0,0,0.08),
    0 1px 4px rgba(0,0,0,0.05);
}
@media (min-width: 769px) {
  .papers-topnav {
    margin: 12px auto 0;
  }
}

.papers-page .nav-inner {
  padding: 0 24px;
  height: 56px;
  justify-content: space-between;
}
.papers-page .logo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
  margin-bottom: 2px;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 2px 10px rgba(168, 85, 247, 0.35);
}

.page-head {
  padding: 64px 24px 44px;
  border-bottom: none;
  background: transparent;
  position: relative;
}
.page-head::after {
  content: '';
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  max-width: 1080px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.3) 30%, rgba(244, 114, 182, 0.3) 70%, transparent);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
}
.page-head-inner { max-width: 1080px; margin: 0 auto; }
.page-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-700);
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,245,255,0.95));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.papers-page h1 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
}
.papers-page h1 em {
  font-style: italic;
  position: relative;
  display: inline-block;
  background: var(--gradient-text);
  background-size: 300% auto;
  animation: shimmer-travel 6s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.papers-page h1 em::before {
  content: none;
}
.page-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.65;
  max-width: 36em;
}

.how-it-works { max-width: 1080px; margin: 0 auto; padding: 0 24px 32px; }
.how-it-works-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.how-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  position: relative;
}
.how-step + .how-step {
  border-left: 1px solid var(--border-soft);
}
.how-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.how-step:hover::before { opacity: 1; }
.how-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.38);
}
.how-step-body h2 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.how-step-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

/* ── Board Toggle ────────────────────────────────────────────────────────── */
.board-toggle-wrap {
  max-width: 1080px;
  margin: 0 auto 28px;
  padding: 0 24px;
}
.board-toggle {
  display: inline-flex;
  gap: 0;
  background: rgba(192,132,252,0.08);
  border: 1.5px solid rgba(192,132,252,0.25);
  border-radius: 50px;
  padding: 4px;
}
.board-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 46px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #a78bca;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.board-tab:hover:not(.is-active) {
  color: #7c3aed;
  background: rgba(192,132,252,0.14);
}
.board-tab.is-active {
  background: #fff;
  color: #7c3aed;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(192,132,252,0.18);
}
.board-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 20px;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  color: #fff;
  opacity: 0.55;
}
.board-tab.is-active .board-tab__badge {
  opacity: 1;
}

/* ── Filter Search ────────────────────────────────────────────────────────── */
/* Palette from step icons: soft pink #f472b6 → soft purple #c084fc           */
.search-section {
  max-width: 1080px;
  margin: 0 auto 12px;
  padding: 0 24px;
}
.search-wrap {
  background: #fff;
  border: 1.5px solid rgba(192,132,252,0.22);
  border-radius: 20px;
  padding: 24px 28px 20px;
  box-shadow: 0 4px 28px rgba(192,132,252,0.10);
  overflow: visible;
}
.search-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

/* ── Filter bar (pill dropdowns row) ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ── Individual dropdown wrapper ── */
.filter-drop {
  position: relative;
}

/* ── Pill trigger button ── */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(192, 132, 252, 0.50);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: url(#frosted) blur(14px) saturate(1.6);
  -webkit-backdrop-filter: url(#frosted) blur(14px) saturate(1.6);
  color: #9333ea;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(255,255,255,0.7) inset, 0 1px 8px rgba(139,92,246,0.08);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}
@media (hover: hover) {
  .filter-pill:hover {
    border-color: #c084fc;
    background: rgba(192, 132, 252, 0.18);
    box-shadow: 0 2px 0 rgba(255,255,255,0.8) inset, 0 4px 14px rgba(139,92,246,0.14);
  }
}
.filter-pill.is-active {
  background: linear-gradient(135deg, #c084fc, #f472b6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 14px rgba(192,132,252,0.45);
}
.filter-pill.is-active .filter-pill__chevron {
  transform: rotate(180deg);
}
.filter-drop.is-open .filter-pill:not(.is-active) {
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(192,132,252,0.18);
}
.filter-drop.is-open .filter-pill:not(.is-active) .filter-pill__chevron {
  transform: rotate(180deg);
}
.filter-pill__label { pointer-events: none; }
.filter-pill__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  stroke: currentColor;
}

/* ── Dropdown panel — portalled to body, positioned via JS fixed coords ── */
.filter-panel {
  position: fixed;
  min-width: 160px;
  background: #fff;
  border: 1.5px solid rgba(192,132,252,0.22);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(192,132,252,0.18);
  list-style: none;
  margin: 0;
  z-index: 999;
  animation: drop-in 0.18s ease;
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.filter-option {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #3b1d6e;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.14s ease;
}
.filter-option:hover { background: rgba(192,132,252,0.10); }
.filter-option[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(192,132,252,0.18), rgba(244,114,182,0.12));
  color: #9333ea;
  font-weight: 700;
}

/* ── Clear all button ── */
.filter-clear {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(192,132,252,0.35);
  background: transparent;
  color: #c084fc;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.filter-clear:hover {
  background: rgba(244,114,182,0.08);
  border-color: #f472b6;
  color: #db2777;
}

/* ── Hint text ── */
.search-hint {
  font-size: 13px;
  color: #b8a4cc;
  margin: 12px 0 0;
  padding-left: 2px;
}

/* ── Results grid ── */
.search-results {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.search-results:empty { display: none; }

.search-result-card {
  background: #fff;
  border: 1.5px solid rgba(192,132,252,0.16);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(192,132,252,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.search-result-card:hover {
  box-shadow: 0 6px 24px rgba(192,132,252,0.18);
  transform: translateY(-2px);
}
.search-result-head { display: flex; align-items: flex-start; }
.search-result-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.search-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
}
.search-tag--year    { background: rgba(192,132,252,0.15); color: #7e22ce; }
.search-tag--paper   { background: rgba(244,114,182,0.15); color: #9d174d; }
.search-tag--session { background: rgba(192,132,252,0.10); color: #6b21a8; }
.search-tag--variant { background: rgba(244,114,182,0.10); color: #be185d; }

.search-result-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-result-link {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.01em;
  transition: opacity 0.18s ease, transform 0.15s ease;
  box-shadow: 0 2px 0 rgba(255,255,255,0.45) inset, 0 -1px 0 rgba(0,0,0,0.08) inset;
}
.search-result-link:hover { transform: translateY(-3px); }
.search-result-link--qp {
  background: rgba(168, 85, 247, 0.48);
  backdrop-filter: blur(14px) saturate(1.8);
  color: #fff;
}
.search-result-link--qp:hover {
  background: rgba(168, 85, 247, 0.65);
}
.search-result-link--ms {
  background: rgba(20, 184, 166, 0.48);
  backdrop-filter: blur(14px) saturate(1.8);
  color: #fff;
}
.search-result-link--ms:hover {
  background: rgba(20, 184, 166, 0.65);
}
.search-result-unavailable {
  font-size: 12px;
  color: #b8a4cc;
  font-style: italic;
  align-self: center;
}

@media (max-width: 600px) {
  .search-wrap { padding: 20px 16px 16px; }
  .search-results { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .filter-pill { font-size: 13px; padding: 8px 14px 8px 16px; }
  .filter-panel { min-width: 140px; }
}

/* ── Folders ──────────────────────────────────────────────────────────────── */
.folders-section { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; position: relative; z-index: 0; }
.folders-section-intro { max-width: 1080px; margin: 0 auto 24px; padding: 0 24px; position: relative; z-index: 0; }
.folders-section-intro h2 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.folders-section-intro p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 44em;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.folder-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px 16px 20px;
  min-height: 160px;
  cursor: pointer;
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  user-select: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.folder-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand-soft);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
}
.folder-card:focus { outline: none; }
.folder-card:focus-visible {
  outline: 3px solid rgba(168, 85, 247, 0.45);
  outline-offset: 3px;
}
@media (hover: hover) {
  .folder-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 16px 40px -8px rgba(139, 92, 246, 0.2), 0 4px 16px -4px rgba(244, 114, 182, 0.12);
    transform: translateY(-6px) scale(1.02);
  }
  .folder-card:hover::after { opacity: 1; }
}
.folder-card:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
.folder-card.is-open {
  border-color: var(--border-soft);
  background: var(--surface);
  transform: none;
  box-shadow: var(--shadow-sm);
}
.folder-card.is-open::after { opacity: 0; }

.folder-icon {
  position: relative;
  width: 64px;
  height: 54px;
  z-index: 1;
}
.folder-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2px;
  width: 28px;
  height: 10px;
  border-radius: 7px 7px 0 0;
  background: var(--gradient-brand);
  opacity: 0.8;
}
.folder-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px 12px 12px 12px;
  background: linear-gradient(148deg, rgba(233, 213, 255, 0.7) 0%, rgba(251, 207, 232, 0.5) 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 12px rgba(168, 85, 247, 0.12);
}
.folder-year-text {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-700);
  z-index: 1;
  letter-spacing: 0.01em;
}
.folder-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.folder-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}
.folder-chevron {
  width: 18px;
  height: 18px;
  color: var(--purple-400);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
  position: relative;
  z-index: 1;
}
.folder-card.is-open .folder-chevron {
  transform: rotate(180deg);
  color: var(--purple-700);
}

.sub-panel {
  display: none;
  grid-column: 1 / -1;
  background: linear-gradient(160deg, #ffffff 0%, #fdf8ff 60%, #fff8fc 100%);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 16px 48px -12px rgba(139, 92, 246, 0.15), 0 4px 20px -4px rgba(244, 114, 182, 0.1);
  position: relative;
  overflow: hidden;
}
.sub-panel::before {
  display: none;
}
.sub-panel.is-open {
  display: block;
  animation: fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sub-panel-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.3;
}
.sub-panel-kicker { display: none; }
.sub-panel-title strong { color: var(--text); font-size: inherit; font-weight: 800; }

.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.sub-note { display: none; }

@keyframes folder-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.folder-card {
  animation: folder-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.papers-status {
  max-width: 1080px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.papers-status--warn {
  border-color: rgba(192, 132, 252, 0.35);
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.98), rgba(245, 243, 255, 0.95));
}
.papers-status--error {
  border-color: rgba(251, 113, 133, 0.4);
  background: #FFF1F2;
  color: #9f1239;
}
.papers-status--ok {
  border-color: rgba(134, 239, 172, 0.5);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.95), rgba(250, 245, 255, 0.9));
  color: #166534;
}

.papers-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(18, 12, 36, 0.55);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}
.papers-modal.papers-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.papers-modal__dialog {
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #ffffff 0%, #fdf8ff 50%, #fff8fc 100%);
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-radius: var(--radius-xl);
  box-shadow:
    0 32px 80px -16px rgba(76, 29, 149, 0.35),
    0 8px 32px -8px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  animation: fade-up-blur 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.papers-modal__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(192, 132, 252, 0.18);
  background: rgba(255, 255, 255, 0.95);
  position: relative;
}
.papers-modal__header::after {
  display: none;
}
.papers-modal__title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
}
.papers-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.3s var(--ease-out);
}
.papers-modal__close:hover {
  color: var(--purple-700);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(250, 245, 255, 0.97);
  transform: scale(1.03);
}
.papers-modal__close:focus-visible {
  outline: 3px solid rgba(168, 85, 247, 0.45);
  outline-offset: 2px;
}
.papers-modal__close-x {
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: -1px;
}
.papers-modal__close-text { font-size: 13.5px; }
.papers-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 24px 26px;
  -webkit-overflow-scrolling: touch;
}
.papers-modal__body .sub-panel.sub-panel--modal {
  display: block;
  grid-column: unset;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 4px;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  animation: none;
}
.papers-modal__body .sub-panel.sub-panel--modal.is-open {
  animation: none;
}
.papers-modal__body .sub-note {
  margin-top: 18px;
}

.folder-tier { margin-top: 4px; }
.folder-tier-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.75;
  margin-bottom: 10px;
  padding-left: 2px;
}
.folder-tier-hint { display: none; }
.folder-crumb {
  position: relative;
  z-index: 0;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.folder-crumb-kicker { display: none; }
.folder-crumb-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.folder-crumb strong { color: var(--text); font-weight: 700; }
.folder-crumb span.sep { color: rgba(168, 85, 247, 0.45); margin: 0 6px; }
.session-folder-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.session-folder-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px 16px 20px;
  min-height: 138px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.session-folder-card:focus { outline: none; }
.session-folder-card:focus-visible {
  outline: 3px solid rgba(168, 85, 247, 0.4);
  outline-offset: 2px;
}
.session-folder-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 14px 36px -8px rgba(139, 92, 246, 0.18);
  transform: translateY(-5px) scale(1.02);
}
.session-folder-card.is-open {
  border-color: rgba(168, 85, 247, 0.6);
  background: linear-gradient(160deg, #FFFFFF 0%, #FAF5FF 100%);
  box-shadow: 0 8px 28px -4px rgba(139, 92, 246, 0.15);
  transform: none;
}
.session-folder-card.is-open:hover { transform: none; }
.session-folder-card .folder-icon { transform: scale(0.9); }
.session-folder-card .session-folder-tag {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-700);
}
.session-folder-card .folder-chevron { margin-top: 2px; }
.session-folder-card.is-open .folder-chevron {
  transform: rotate(180deg);
  color: var(--purple-700);
}

.session-papers-panel {
  margin-top: 22px;
  padding: 26px 24px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(192, 132, 252, 0.25);
  background: linear-gradient(160deg, rgba(255,255,255,0.98) 0%, rgba(253,244,255,0.9) 100%);
  box-shadow: 0 8px 32px -8px rgba(139, 92, 246, 0.12);
  animation: fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.session-papers-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
}
.session-papers-panel[hidden] { display: none !important; }
.session-papers-heading {
  position: relative;
  z-index: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.paper-session-drill {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.paper-session-drill .nest-session-row { margin-top: 4px; }
.nest-variants-wrap {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-soft);
  scroll-margin-top: 88px;
}
.nest-variants-wrap[hidden] { display: none !important; }
.nest-variants-heading { display: none; }

.session-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.session-block {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: 16px;
  padding: 18px 16px 20px;
  box-shadow: 0 2px 12px -4px rgba(139, 92, 246, 0.1);
}
.session-block-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(192, 132, 252, 0.15);
}
.paper-block { margin-bottom: 18px; }
.paper-block:last-child { margin-bottom: 0; }
.paper-block-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}
.paper-block-name { font-weight: 700; font-size: 0.93rem; color: var(--text); letter-spacing: -0.01em; }
.paper-block-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.variant-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.variant-card {
  background: rgba(250, 245, 255, 0.6);
  border: 1px solid rgba(192, 132, 252, 0.18);
  border-radius: 14px;
  padding: 16px 14px 18px;
  box-shadow: 0 2px 8px -2px rgba(139, 92, 246, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.variant-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-700);
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(192, 132, 252, 0.2);
  letter-spacing: -0.01em;
}
.variant-slot {
  min-height: 36px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  flex: 1;
}
.variant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    filter 0.25s ease;
  letter-spacing: 0.01em;
}

.variant-link.variant-link--question {
  color: #fff;
  background: rgba(168, 85, 247, 0.48);
  backdrop-filter: url(#frosted) blur(14px) saturate(1.8);
  -webkit-backdrop-filter: url(#frosted) blur(14px) saturate(1.8);
  border: 1.5px solid rgba(255, 255, 255, 0.60);
  box-shadow: 0 2px 0 rgba(255,255,255,0.45) inset, 0 -1px 0 rgba(0,0,0,0.08) inset;
}
@media (hover: hover) {
  .variant-link.variant-link--question:hover {
    transform: translateY(-3px);
    background: rgba(168, 85, 247, 0.65);
    box-shadow: 0 2px 0 rgba(255,255,255,0.55) inset, 0 -1px 0 rgba(0,0,0,0.10) inset;
  }
}
.variant-link.variant-link--question:focus-visible {
  outline: 3px solid rgba(244, 114, 182, 0.55);
  outline-offset: 3px;
}

.variant-link.variant-link--markscheme {
  color: #fff;
  background: rgba(20, 184, 166, 0.48);
  backdrop-filter: url(#frosted) blur(14px) saturate(1.8);
  -webkit-backdrop-filter: url(#frosted) blur(14px) saturate(1.8);
  border: 1.5px solid rgba(255, 255, 255, 0.60);
  box-shadow: 0 2px 0 rgba(255,255,255,0.45) inset, 0 -1px 0 rgba(0,0,0,0.08) inset;
}
@media (hover: hover) {
  .variant-link.variant-link--markscheme:hover {
    transform: translateY(-3px);
    background: rgba(20, 184, 166, 0.65);
    box-shadow: 0 2px 0 rgba(255,255,255,0.55) inset, 0 -1px 0 rgba(0,0,0,0.10) inset;
  }
}
.variant-link.variant-link--markscheme:focus-visible {
  outline: 3px solid rgba(45, 212, 191, 0.75);
  outline-offset: 3px;
}

.variant-link.variant-link--markscheme.variant-link--ms-unavailable {
  cursor: default;
  pointer-events: none;
  color: var(--text-muted);
  background: linear-gradient(180deg, #f1f5f9 0%, #e8ecf1 100%);
  border-color: rgba(100, 116, 139, 0.22);
  box-shadow: none;
  font-weight: 600;
}
.variant-link.variant-link--markscheme.variant-link--ms-unavailable:hover {
  filter: none;
  transform: none;
}
.variant-missing {
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 8px;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

.papers-page footer {
  margin-top: 40px;
}

.papers-page .back-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
}
.papers-page .back-link:hover { color: var(--purple-700); }
.papers-page .back-link:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.5);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .folders-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .how-it-works-inner { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 620px) {
  .folders-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-grid { grid-template-columns: 1fr; }
  .session-grid { grid-template-columns: 1fr; }
  .session-folder-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .papers-page .folder-card,
  .papers-page .session-folder-card,
  .papers-page .variant-link,
  .papers-page .variant-link--question,
  .papers-page .variant-link--markscheme,
  .papers-page .papers-modal { transition: none; }
  .papers-page .sub-panel.is-open { animation: none; }

  #inside .story-lead,
  #inside .story-eyebrow,
  #inside .story-highlight,
  #inside .story-p strong,
  #inside .story-emoji,
  #inside .story-showcase.reveal.visible .story-tag {
    animation: none;
  }
  #inside .story-tag:hover {
    transform: none;
  }
}

/* ===== STUDENT REVIEWS ===== */
#reviews {
  padding: 100px 0 80px;
  background: var(--bg-page);
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
}
.reviews-header {
  text-align: center;
  margin-bottom: 52px;
  padding: 0 24px;
}

/* Stage: bracket + scrolling area */
.reviews-stage {
  display: flex;
  align-items: center;
  position: relative;
  width: 75%;
  margin: 0 auto;
}

.reviews-bracket {
  flex-shrink: 0;
  width: clamp(72px, 9vw, 120px);
  pointer-events: none;
  user-select: none;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.reviews-bracket--left  { margin-right: -44px; }
.reviews-bracket--right { margin-left:  -44px; }

.bracket-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* stars bob gently, each on its own timing */
.bk-star { transform-box: fill-box; transform-origin: center; }
.s1 { animation: bk-float 5s   ease-in-out infinite 0s;    }
.s2 { animation: bk-float 5.4s ease-in-out infinite 0.5s;  }
.s3 { animation: bk-float 4.8s ease-in-out infinite 1.0s;  }
.s4 { animation: bk-float 5.8s ease-in-out infinite 1.5s;  }
.s5 { animation: bk-float 4.4s ease-in-out infinite 2.0s;  }

@keyframes bk-float {
  0%, 100% { transform: translateY(0)   rotate(0deg);  }
  50%       { transform: translateY(-7px) rotate(5deg); }
}

/* Infinite marquee */
.reviews-marquee-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}

.reviews-marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 90s linear infinite;
}
.reviews-marquee-wrap:hover .reviews-marquee {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
  cursor: default;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.review-stars {
  font-size: 17px;
  letter-spacing: 2px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

.review-text {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-muted);
  flex: 1;
  font-style: italic;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.review-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.review-school {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.review-school .flag {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.reviews-mobile-nav { display: none; }

@media (max-width: 900px) {
  .reviews-stage {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .reviews-bracket { width: 56px; }
  .reviews-bracket--left  { margin-right: -18px; }
  .reviews-bracket--right { margin-left:  -18px; }
  .reviews-marquee-wrap {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }
  .review-card { width: 68vw; }
}

@media (max-width: 768px) {
  /* center single card */
  .reviews-marquee-wrap {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .reviews-marquee {
    animation: none !important;
  }
  .review-card {
    margin: 0 auto;
  }

  /* nav */
  .reviews-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
  }
  .reviews-dots { display: none; }
  .reviews-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-700, #7c3aed);
    -webkit-tap-highlight-color: transparent;

    /* liquid glass */
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow:
      0 2px 0 rgba(255,255,255,0.6) inset,
      0 -1px 0 rgba(0,0,0,0.06) inset,
      0 2px 10px rgba(0,0,0,0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
  }
  @media (hover: hover) {
    .reviews-arrow:hover {
      background: rgba(168, 85, 247, 0.52);
      border-color: rgba(255, 255, 255, 0.60);
      color: #fff;
      transform: translateY(-2px);
    }
  }
  .reviews-arrow:active {
    transform: scale(0.94);
    background: rgba(255, 255, 255, 0.42);
    color: var(--purple-700, #7c3aed);
  }
  .reviews-arrow:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
}

@media (max-width: 480px) {
  #reviews { padding: 60px 0 48px; }
  .reviews-stage { width: 100%; padding: 0; }
  .reviews-bracket { display: none; }
  .reviews-marquee-wrap { padding: 0 20px; box-sizing: border-box; }
  .review-card { width: calc(100vw - 40px); min-width: 0; }
  .review-text { word-break: break-word; white-space: normal; }
  .zzz-1, .zzz-2, .zzz-3 { font-size: 0.20em; }
}
.pass-word {
  color: var(--text-muted);
  font-style: normal;
  position: relative;
  display: inline-block;
}
.zzz {
  position: absolute;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  font-style: normal;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  animation: zzz-drift 3.2s ease-in-out infinite;
}
/* smallest, floats top-left of the word */
.zzz-1 { font-size: 0.30em; top: -1.4em; left:  0.2em;  animation-delay: 2.1s; }
/* medium, floats top-center */
.zzz-2 { font-size: 0.40em; top: -1.8em; left:  28%;    animation-delay: 1.0s; }
/* largest, floats top-right */
.zzz-3 { font-size: 0.48em; top: -1.3em; right: 0.2em;  animation-delay: 0s;  }

@keyframes zzz-drift {
  0%   { opacity: 0;   transform: translate(0,   0);     }
  25%  { opacity: 0.9; transform: translate(3px, -8px);  }
  65%  { opacity: 0.5; transform: translate(5px, -16px); }
  100% { opacity: 0;   transform: translate(3px, -24px); }
}
/* ===== END STUDENT REVIEWS ===== */
