/* International Autism Foundation - Design System */

:root {
  --color-ink: #0a0a0a;
  --color-ink-soft: #1a1a1a;
  --color-paper: #faf7f1;
  --color-paper-warm: #f3ede1;
  --color-cream: #efe7d6;
  --color-gold: #c89b5c;
  --color-gold-deep: #a87836;
  --color-sky: #6aa9c9;
  --color-sky-deep: #3d7a99;
  --color-muted: #6b6258;
  --color-line: rgba(10, 10, 10, 0.08);
  --shadow-soft: 0 12px 40px -12px rgba(10, 10, 10, 0.15);
  --shadow-strong: 0 24px 60px -20px rgba(10, 10, 10, 0.25);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
  overflow-x: hidden;
}

body.lock {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.bangla {
  font-family: "Hind Siliguri", sans-serif;
}

/* Subtle grain texture overlay on the whole site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* Main content should be above grain */
main, header, footer, nav {
  position: relative;
  z-index: 2;
}

/* Containers */
.container-x {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container-x { padding-inline: 2rem; }
}
@media (min-width: 1280px) {
  .container-x { padding-inline: 3rem; }
}

/* Section spacing */
.section-pad {
  padding-block: clamp(4rem, 9vw, 8rem);
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-gold-deep);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}

/* Headline sizes */
.t-display {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.t-1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}
.t-2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
}

/* Elegant italic emphasis for serifs */
.italic-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--color-gold-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { transition: transform 0.5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--color-ink);
  color: var(--color-paper);
}
.btn-primary:hover {
  background: var(--color-ink-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-ink);
}
.btn-gold:hover {
  background: var(--color-gold-deep);
  color: var(--color-paper);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(200, 155, 92, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
}
.btn-ghost:hover {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
}

/* Nav */
.nav-root {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.4s var(--ease-out);
}
.nav-root.scrolled {
  background: rgba(250, 247, 241, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--color-line);
}

.nav-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0;
  color: var(--color-ink);
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--color-gold);
  transition: width 0.4s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-paper);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-menu a {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-line);
  transition: color 0.3s;
}
.mobile-menu a:hover {
  color: var(--color-gold-deep);
}

/* Cards */
.card {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.5s var(--ease-out);
}
.card:hover {
  border-color: var(--color-ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card-dark {
  background: var(--color-ink);
  color: var(--color-paper);
  border: none;
}
.card-dark:hover {
  background: var(--color-ink-soft);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding-top: 9rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* Organic blob shapes */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.gold {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--color-gold), transparent 65%);
  top: -120px; right: -160px;
}
.blob.sky {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--color-sky), transparent 65%);
  bottom: -140px; left: -100px;
  animation-delay: -8s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero Image Frame */
.hero-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-cream);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,0.35));
}
.hero-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Stat block */
.stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-ink);
}
.stat-num .accent {
  color: var(--color-gold-deep);
}

/* Marquee — subtle horizontal scroll banner */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--color-line);
  background: var(--color-ink);
  color: var(--color-paper);
  padding-block: 1.2rem;
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 300;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee-track svg {
  color: var(--color-gold);
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Image tint for grayscale + warm duotone */
.duotone {
  filter: grayscale(0.35) contrast(1.05) sepia(0.12);
}
.duotone-full {
  filter: grayscale(1) contrast(1.1);
}

/* Service / Feature card */
.feature {
  padding: 2rem;
  border-top: 1px solid var(--color-ink);
  position: relative;
  transition: all 0.4s var(--ease-out);
}
.feature::before {
  content: attr(data-num);
  font-family: "Fraunces", serif;
  font-size: 0.9rem;
  color: var(--color-muted);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 1.5rem;
}
.feature:hover {
  background: var(--color-paper-warm);
  padding-left: 2.5rem;
}

/* Timeline */
.timeline-item {
  padding-left: 2.5rem;
  position: relative;
  padding-bottom: 3rem;
  border-left: 1px solid var(--color-line);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 13px; height: 13px;
  background: var(--color-paper);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
}

/* Input */
.input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line);
  padding: 1rem 0;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-ink);
  transition: border-color 0.3s;
}
.input:focus {
  outline: none;
  border-bottom-color: var(--color-ink);
}
.input::placeholder {
  color: var(--color-muted);
}
textarea.input {
  resize: vertical;
  min-height: 130px;
}

/* Reveal animations — starting state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Split text — word-atomic wrapping, char-level animation */
[data-split] { word-break: keep-all; overflow-wrap: break-word; }
.split-word {
  display: inline-block;
  white-space: nowrap;
}
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: transform, opacity;
}
.split-char.in {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor-follow shine on feature images */
.shine {
  position: relative;
  overflow: hidden;
}
.shine::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 1.1s var(--ease-out);
}
.shine:hover::after {
  transform: translateX(100%);
}

/* Section with dark background */
.panel-dark {
  background: var(--color-ink);
  color: var(--color-paper);
}
.panel-dark .eyebrow { color: var(--color-gold); }
.panel-dark .eyebrow::before { background: var(--color-gold); }
.panel-dark .feature { border-top-color: rgba(255,255,255,0.15); }
.panel-dark .feature:hover { background: rgba(255,255,255,0.04); }

/* Decorative divider */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-gold-deep);
}
.divider-ornament::before,
.divider-ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--color-line);
  max-width: 100px;
}

/* Gallery masonry */
.masonry {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
.masonry > * {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Aspect ratios for gallery variety */
.gal-a { aspect-ratio: 4 / 5; }
.gal-b { aspect-ratio: 1 / 1; }
.gal-c { aspect-ratio: 3 / 4; }
.gal-d { aspect-ratio: 4 / 3; }

.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  background: var(--color-cream);
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s;
  filter: saturate(0.95);
}
.gal-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--color-paper);
  cursor: pointer;
  padding: 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Footer */
.footer {
  background: var(--color-ink);
  color: var(--color-paper);
  padding-top: 6rem;
  padding-bottom: 2rem;
}
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--color-gold); }

/* Focus ring accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Utility */
.max-w-prose-lg { max-width: 62ch; }
.text-balance { text-wrap: balance; }

/* =======================================================================
   PREMIUM UPGRADES — custom cursor, hero collage, journey, map, sensory
   ======================================================================= */

/* Custom cursor follower — subtle dot with mix-blend */
@media (hover: hover) and (pointer: fine) {
  body.cursor-on * { cursor: none !important; }
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
                background 0.3s, opacity 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
    will-change: transform;
  }
  .cursor-dot {
    width: 8px; height: 8px;
    background: #fff;
  }
  .cursor-ring {
    width: 38px; height: 38px;
    border: 1px solid #fff;
  }
  body.cursor-hover .cursor-dot { width: 6px; height: 6px; }
  body.cursor-hover .cursor-ring { width: 72px; height: 72px; background: rgba(255,255,255,0.08); }
  body.cursor-text .cursor-dot { width: 3px; height: 22px; border-radius: 2px; }
  body.cursor-text .cursor-ring { opacity: 0; }
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Sensory / accessibility panel */
.sensory-trigger {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 70;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s, background 0.3s;
}
.sensory-trigger:hover { transform: scale(1.08); background: var(--color-gold-deep); }
.sensory-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 5.2rem;
  z-index: 69;
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-strong);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s var(--ease-out);
}
.sensory-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sensory-panel h4 {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.sensory-panel .small {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 1.1rem;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-top: 1px solid var(--color-line);
}
.toggle-row:first-of-type { border-top: none; }
.toggle-row span { font-size: 0.9rem; }
.toggle-row .desc { display: block; color: var(--color-muted); font-size: 0.72rem; margin-top: 2px; }
.tg {
  width: 38px; height: 22px;
  background: var(--color-line);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}
.tg::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.3s var(--ease-out);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.tg.on { background: var(--color-ink); }
.tg.on::after { left: 18px; }

/* Calm mode — applies a reduced-stimulation theme */
body.calm-mode {
  --color-gold: #8f7249;
  --color-gold-deep: #6e5634;
  --color-sky: #89a6b5;
}
body.calm-mode .blob { opacity: 0.12 !important; animation: none !important; }
body.calm-mode .marquee-track { animation-play-state: paused; }
body.calm-mode .split-char, body.calm-mode .reveal {
  transition-duration: 0.3s !important;
}
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
body.high-contrast {
  --color-paper: #ffffff;
  --color-muted: #2a2a2a;
  --color-line: rgba(0,0,0,0.25);
}
body.high-contrast .duotone, body.high-contrast .duotone-full { filter: none; }
body.dyslexia-font {
  font-family: "Atkinson Hyperlegible", "Inter", sans-serif !important;
}
body.dyslexia-font h1, body.dyslexia-font h2, body.dyslexia-font h3,
body.dyslexia-font h4, body.dyslexia-font h5, body.dyslexia-font h6,
body.dyslexia-font .font-serif {
  font-family: "Atkinson Hyperlegible", "Fraunces", serif !important;
}

/* Hero portrait collage — floating tiles */
.collage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.collage-tile {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 1s var(--ease-out);
}
.collage-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.collage-tile.t1 { top: 0; right: 0; width: 72%; aspect-ratio: 3/4; animation: floatA 9s ease-in-out infinite alternate; }
.collage-tile.t2 { bottom: 10%; left: 0; width: 52%; aspect-ratio: 4/5; animation: floatB 11s ease-in-out infinite alternate; }
.collage-tile.t3 { bottom: 0; right: 8%; width: 42%; aspect-ratio: 1/1; animation: floatC 8s ease-in-out infinite alternate; }
@keyframes floatA { 0%{transform:translate(0,0) rotate(0)} 100%{transform:translate(-6px,10px) rotate(-0.6deg)} }
@keyframes floatB { 0%{transform:translate(0,0) rotate(0)} 100%{transform:translate(8px,-12px) rotate(0.8deg)} }
@keyframes floatC { 0%{transform:translate(0,0) rotate(0)} 100%{transform:translate(-10px,-6px) rotate(-1deg)} }

/* Collage badge */
.collage-badge {
  position: absolute;
  bottom: 22%;
  right: -14px;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
  box-shadow: var(--shadow-soft);
}
.collage-badge .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 0 rgba(200,155,92,0.7);
  animation: pulsate 1.8s infinite;
}
@keyframes pulsate {
  0% { box-shadow: 0 0 0 0 rgba(200,155,92,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(200,155,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,155,92,0); }
}

/* Journey scroll story */
.journey-rail {
  position: sticky;
  top: 12vh;
  padding-top: 1rem;
}
.journey-map {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 60vh;
  min-height: 420px;
  margin: 0 auto;
}
.journey-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.journey-map .journey-base { pointer-events: none; }
#journey-progress {
  /* dash values set by JS from getTotalLength() */
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 0.12s linear;
  filter: drop-shadow(0 1px 0 rgba(200,155,92,0.3));
}
#journey-dot {
  transition: transform 0.25s var(--ease-out);
  filter: drop-shadow(0 0 14px rgba(200,155,92,0.55));
}
#journey-dot > circle:first-child {
  animation: journeyPulse 2.4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes journeyPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.18; }
  50%      { transform: scale(1.25); opacity: 0.08; }
}
.year-markers .ym {
  transition: r 0.45s var(--ease-out), fill 0.45s, stroke 0.45s;
}
.year-markers .ym.past {
  fill: var(--color-ink);
  stroke: var(--color-gold);
  stroke-width: 1.6;
}
.year-tags {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(100% + 14px);
  width: max-content;
  pointer-events: none;
}
.year-tags span {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  transition: color 0.4s, font-size 0.4s var(--ease-out);
}
.year-tags span.active {
  color: var(--color-ink);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
}
@media (max-width: 1023px) {
  .journey-rail { position: relative; top: 0; padding-top: 0; }
  .journey-map { height: 260px; min-height: 260px; max-width: 160px; }
  .year-tags span { font-size: 0.72rem; }
}
.journey-step {
  min-height: 44vh;
  padding-block: 4vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--color-line);
  gap: 0.75rem;
}
.journey-step:first-child { border-top: none; }
.journey-year {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 10, 10, 0.4);
  transition: color 0.8s var(--ease-out), -webkit-text-stroke-color 0.8s var(--ease-out);
}
.journey-step.on .journey-year {
  color: var(--color-ink);
  -webkit-text-stroke-color: transparent;
}
.journey-step h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.1;
}

/* Map — illustrated Bangladesh */
.map-wrap {
  position: relative;
  aspect-ratio: 1 / 1.25;
  max-width: 520px;
  margin: 0 auto;
}
.map-wrap svg { width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%);
}
.map-pin .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 0 rgba(200,155,92,0.6);
  animation: pulsate 2.2s infinite;
  cursor: pointer;
}
.map-pin .label {
  position: absolute;
  top: -4px; left: 24px;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.35s var(--ease-out);
  pointer-events: none;
}
.map-pin:hover .label,
.map-pin.active .label {
  opacity: 1;
  transform: translateX(0);
}

/* Tilt cards */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}
.tilt-inner {
  transform: translateZ(40px);
}

/* SVG ink signature / quote path */
.ink-draw path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.4s var(--ease-out);
}
.ink-draw.in path { stroke-dashoffset: 0; }

/* Voices carousel */
.voices {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.voices::-webkit-scrollbar { height: 6px; }
.voices::-webkit-scrollbar-thumb { background: var(--color-line); border-radius: 999px; }
.voice-card {
  flex: 0 0 min(88%, 420px);
  scroll-snap-align: start;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 22px;
  padding: 2rem;
}
.voice-card blockquote {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.voice-card .who {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-line);
}
.voice-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-cream);
  overflow: hidden;
  flex-shrink: 0;
}

/* Numbered section display */
.big-num {
  font-family: "Fraunces", serif;
  font-size: clamp(6rem, 16vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-ink);
}
.panel-dark .big-num { -webkit-text-stroke-color: var(--color-paper); }

/* Accordion */
.acc-item {
  border-top: 1px solid var(--color-line);
}
.acc-item:last-of-type { border-bottom: 1px solid var(--color-line); }
.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.4rem 0;
  text-align: left;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  transition: color 0.3s;
}
.acc-btn:hover { color: var(--color-gold-deep); }
.acc-btn .ic {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s, background 0.3s, color 0.3s;
}
.acc-item.open .acc-btn .ic {
  transform: rotate(45deg);
  background: var(--color-ink);
  color: var(--color-paper);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out);
}
.acc-item.open .acc-body {
  max-height: 400px;
}
.acc-body > div {
  padding-bottom: 1.5rem;
  color: var(--color-muted);
}

/* Elegant link underline */
.link-u {
  position: relative;
  display: inline-block;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.link-u:hover::after {
  transform: scaleX(0);
  transform-origin: left;
}

/* Pledge wall */
.pledge-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.pledge-card {
  background: var(--color-paper-warm);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 1.3rem;
  transition: all 0.4s var(--ease-out);
}
.pledge-card:hover {
  background: var(--color-paper);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.pledge-card p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--color-ink);
}
.pledge-card .author {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.8rem;
  font-style: normal;
}

/* Ornament underline — hand-drawn feel */
.underline-curve {
  position: relative;
  display: inline-block;
}
.underline-curve svg {
  position: absolute;
  left: 0; bottom: -14px;
  width: 100%; height: 14px;
  color: var(--color-gold);
}

/* Preload curtain */
.preload {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--color-ink);
  color: var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.preload.done { opacity: 0; visibility: hidden; }
.preload-inner {
  text-align: center;
}
.preload-mark {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-paper);
  position: relative;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  animation: markTurn 2s ease-in-out infinite;
}
.preload-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
@keyframes markTurn {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(180deg); }
}
.preload-text {
  font-family: "Fraunces", serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-gold);
}

/* Brand mark — split circle, symbolic of Black & White */
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 1px solid var(--color-ink);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: inset 0 0 0 1px var(--color-paper);
}
.brand-mark.inv { background: var(--color-ink); border-color: var(--color-paper); }
.brand-mark.inv::before { background: var(--color-paper); }

/* Magazine-style mixed text block */
.editorial {
  columns: 2;
  column-gap: 2.5rem;
  column-rule: 1px solid var(--color-line);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-muted);
}
.editorial p:first-of-type::first-letter {
  font-family: "Fraunces", serif;
  font-size: 4.2rem;
  float: left;
  line-height: 0.9;
  margin: 6px 10px 0 0;
  color: var(--color-gold-deep);
  font-weight: 500;
}
@media (max-width: 767px) {
  .editorial { columns: 1; }
}

/* Vertical writing for side labels */
.side-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--color-muted);
}

/* Ticker in corner */
.ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--color-muted);
  background: var(--color-paper);
}
.ticker .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulsate 1.8s infinite;
}

/* Noise cancel on calm mode */
body.calm-mode::before { opacity: 0.15; }

/* Hero supplementary badge row */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.badge-row .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-ink);
}

/* Hero ornament line (very subtle serif rule) */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-ink), transparent);
  opacity: 0.2;
}
