/* Meridian - shared design system */

:root {
  --bg: #ffffff;
  --surface: #f4f3f1;
  --text: #1a1714;
  --accent: #8f7426;
  --accent-muted: rgba(143, 116, 38, 0.38);
  --accent-line: rgba(143, 116, 38, 0.42);
  --accent-glow: rgba(143, 116, 38, 0.12);
  --accent-glow-warm: rgba(100, 85, 55, 0.18);
  --text-muted: rgba(26, 23, 20, 0.72);
  --text-soft: rgba(26, 23, 20, 0.52);
  --text-faint: rgba(26, 23, 20, 0.42);
  --text-strong: rgba(26, 23, 20, 0.86);
  --text-pull: rgba(26, 23, 20, 0.94);
  --text-heading-mid: rgba(26, 23, 20, 0.9);
  --text-hero-half: rgba(26, 23, 20, 0.76);
  --text-footer1: rgba(26, 23, 20, 0.62);
  --text-footer2: rgba(26, 23, 20, 0.52);
  --text-manifesto: rgba(26, 23, 20, 0.86);
  --text-label-form: rgba(26, 23, 20, 0.42);
  --text-form-success: rgba(26, 23, 20, 0.82);
  --text-contact-muted: rgba(26, 23, 20, 0.58);
  --text-event-italic: rgba(110, 88, 28, 0.92);
  --border-secondary-btn: rgba(26, 23, 20, 0.32);
  --header-scrolled: rgba(255, 255, 255, 0.96);
  --cal-row-bg: rgba(240, 239, 237, 0.92);
  --ink-on-gold: #1a1714;
  --btn-solid-hover-bg: #a88c32;
  --btn-solid-hover-border: #a88c32;
  --grid-line: rgba(143, 116, 38, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 4.25rem;
}

html[data-theme="dark"] {
  --bg: #0a0906;
  --surface: #141210;
  --text: #f5f0e8;
  --accent: #c9a84c;
  --accent-muted: rgba(201, 168, 76, 0.35);
  --accent-line: rgba(201, 168, 76, 0.38);
  --accent-glow: rgba(201, 168, 76, 0.08);
  --accent-glow-warm: rgba(80, 70, 55, 0.2);
  --text-muted: rgba(245, 240, 232, 0.78);
  --text-soft: rgba(245, 240, 232, 0.55);
  --text-faint: rgba(245, 240, 232, 0.45);
  --text-strong: rgba(245, 240, 232, 0.82);
  --text-pull: rgba(245, 240, 232, 0.95);
  --text-heading-mid: rgba(245, 240, 232, 0.92);
  --text-hero-half: rgba(245, 240, 232, 0.8);
  --text-footer1: rgba(245, 240, 232, 0.75);
  --text-footer2: rgba(245, 240, 232, 0.65);
  --text-manifesto: rgba(245, 240, 232, 0.88);
  --text-label-form: rgba(245, 240, 232, 0.45);
  --text-form-success: rgba(245, 240, 232, 0.85);
  --text-contact-muted: rgba(245, 240, 232, 0.65);
  --text-event-italic: rgba(201, 168, 76, 0.85);
  --border-secondary-btn: rgba(245, 240, 232, 0.55);
  --header-scrolled: rgba(10, 9, 6, 0.94);
  --cal-row-bg: rgba(20, 18, 16, 0.5);
  --ink-on-gold: #0a0906;
  --btn-solid-hover-bg: #d4b45a;
  --btn-solid-hover-border: #d4b45a;
  --grid-line: rgba(201, 168, 76, 0.03);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.cursor-desktop {
  cursor: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* -- Custom cursor (desktop) -- */
.meridian-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.cursor-desktop .meridian-cursor {
  opacity: 1;
}

.meridian-cursor::before,
.meridian-cursor::after {
  content: "";
  position: absolute;
  background: var(--accent);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.meridian-cursor::before {
  width: 14px;
  height: 1px;
}

.meridian-cursor::after {
  width: 1px;
  height: 14px;
}

/* -- Typography -- */
.font-display {
  font-family: var(--font-display);
}

.label-caps {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

/* -- Layout -- */
.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(680px, 92vw);
}

.wrap--manifesto {
  width: min(700px, 92vw);
}

.wrap--form {
  width: min(600px, 92vw);
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
}

.section--surface {
  background: var(--surface);
}

.divider-gold {
  height: 1px;
  background: var(--accent-line);
  border: none;
  margin: 0;
}

/* -- Reveal on scroll -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- Buttons -- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

body.cursor-desktop .btn {
  cursor: none;
}

.btn:hover {
  background: var(--accent);
  color: var(--ink-on-gold);
  border-color: var(--accent);
}

.btn--secondary {
  border-color: var(--border-secondary-btn);
}

.btn--secondary:hover {
  background: var(--accent);
  color: var(--ink-on-gold);
  border-color: var(--accent);
}

.btn--solid {
  background: var(--accent);
  color: var(--ink-on-gold);
  border-color: var(--accent);
  width: 100%;
}

.btn--solid:hover {
  background: var(--btn-solid-hover-bg);
  color: var(--ink-on-gold);
  border-color: var(--btn-solid-hover-border);
}

/* -- Header / Nav -- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--header-scrolled);
  border-bottom-color: var(--accent-line);
}

.site-header__inner {
  width: min(1120px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 0.85;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav-desktop a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
}

.nav-desktop a.is-active::after {
  transform: scaleX(1);
}

.theme-toggle {
  flex-shrink: 0;
  position: relative;
  width: 2.875rem;
  height: 1.5rem;
  padding: 0;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-muted);
}

body.cursor-desktop .theme-toggle {
  cursor: none;
}

.theme-toggle__track {
  display: block;
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: rgba(143, 116, 38, 0.18);
  pointer-events: none;
}

html[data-theme="dark"] .theme-toggle__track {
  background: rgba(201, 168, 76, 0.14);
}

.theme-toggle__knob {
  display: block;
  position: absolute;
  top: 50%;
  left: calc(100% - 3px - 1.125rem);
  z-index: 1;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.5625rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

html[data-theme="dark"] .theme-toggle__knob {
  left: 3px;
}

.region-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.region-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.region-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.region-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.region-btn__flag {
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .region-btn__flag {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.region-btn__label {
  position: relative;
  top: 0.5px;
}

.india-namaste {
  font-family: "Noto Sans Devanagari", var(--font-body), system-ui, sans-serif;
  font-size: clamp(2.75rem, 9vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: var(--accent);
  text-shadow: 0 1px 2px rgba(244, 241, 234, 0.95), 0 0 20px rgba(244, 241, 234, 0.65);
}

.hero-home__namaste-wrap .hero-home__label {
  margin-bottom: 1rem;
}

.india-namaste--inline {
  font-size: clamp(2rem, 5vw, 2.85rem);
  margin-bottom: 1rem;
}

.page-story .story-essay .india-namaste--inline {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.5rem;
  z-index: 950;
  transition: color 0.3s ease;
}

body.cursor-desktop .nav-toggle {
  cursor: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 920;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 0.35rem;
}

.nav-mobile a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-mobile a:hover::after,
.nav-mobile a.is-active::after {
  transform: scaleX(1);
}

@media (max-width: 880px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-mobile {
    display: flex;
  }
}

/* Home hero is always light; with global dark theme, keep the transparent header readable until scroll. */
html[data-theme="dark"] body:has(.hero-home) .site-header:not(.is-scrolled) {
  --accent: #8f7426;
  --accent-muted: rgba(143, 116, 38, 0.38);
  --accent-line: rgba(143, 116, 38, 0.42);
  --text: #1a1714;
}

html[data-theme="dark"] body:has(.hero-home) .site-header:not(.is-scrolled) .theme-toggle__track {
  background: rgba(143, 116, 38, 0.18);
}

/* -- Footer -- */
.site-footer {
  padding: 3rem 0 4.5rem;
  border-top: 1px solid var(--accent-line);
  margin-top: auto;
}

.site-footer__line1 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-footer1);
  margin-bottom: 0.5rem;
}

.site-footer__line2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-footer2);
  margin-bottom: 2rem;
}

.site-footer__mega {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--accent-line);
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .site-footer__mega {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .site-footer__mega {
    grid-template-columns: 1fr;
  }
}

.site-footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col li {
  margin-bottom: 0.5rem;
}

.site-footer__col a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.site-footer__col a:hover {
  color: var(--accent);
}

.site-footer__contact-line {
  font-size: 0.8125rem;
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
  margin-top: 0.25rem;
}

.site-footer__fine {
  font-size: 0.6875rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: none;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent-line);
}

.site-footer__fine p {
  margin: 0 0 0.85em;
}

.site-footer__stamp {
  margin-top: 1.25rem;
  color: var(--text-soft);
}

.section--dense {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section--dense .wrap--tight {
  max-width: 900px;
}

.home-wall {
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.home-wall p {
  margin: 0 0 0.9em;
}

.home-wall h2,
.home-wall h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--text);
  margin: 1.75rem 0 0.65rem;
}

.home-wall h3 {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.home-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

@media (max-width: 720px) {
  .home-columns {
    grid-template-columns: 1fr;
  }
}

.home-list-tight {
  margin: 0.5rem 0 1rem 1.1rem;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.home-list-tight li {
  margin-bottom: 0.35rem;
}

/* -- Hero (home full) --
   Always uses the light palette below (independent of the site theme toggle).
   Tune the hero look here:
   • Photo (sharpness / brightness): .hero-home__media - custom properties --hero-photo-*
   • Gradient scrim + vignette: .hero-home__bg::before
   • Grain: .hero-home__bg::after - opacity
   Rotating image URLs are set in nav.js (initHeroBackgroundRotation). */
.hero-home {
  --hero-photo-brightness: 1.08;
  --hero-photo-contrast: 1.04;
  --hero-photo-saturate: 1.03;
  /* Same tokens as :root light default - hero is always “light” */
  --bg: #ffffff;
  --surface: #f4f3f1;
  --text: #1a1714;
  --accent: #8f7426;
  --accent-muted: rgba(143, 116, 38, 0.38);
  --accent-line: rgba(143, 116, 38, 0.42);
  --accent-glow: rgba(143, 116, 38, 0.12);
  --accent-glow-warm: rgba(100, 85, 55, 0.18);
  --text-muted: rgba(26, 23, 20, 0.72);
  --text-soft: rgba(26, 23, 20, 0.52);
  --text-faint: rgba(26, 23, 20, 0.42);
  --text-strong: rgba(26, 23, 20, 0.86);
  --text-pull: rgba(26, 23, 20, 0.94);
  --text-heading-mid: rgba(26, 23, 20, 0.9);
  --text-hero-half: rgba(26, 23, 20, 0.76);
  --border-secondary-btn: rgba(26, 23, 20, 0.32);
  --header-scrolled: rgba(255, 255, 255, 0.96);
  --ink-on-gold: #1a1714;
  --btn-solid-hover-bg: #a88c32;
  --btn-solid-hover-border: #a88c32;
  --grid-line: rgba(143, 116, 38, 0.08);
  color: var(--text);
  color-scheme: light;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  z-index: 0;
}

/* Photo only (under gradients); filters do not affect the overlay */
.hero-home__media {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  /* Fallback if JS is off - pool wired in nav.js targets this node */
  background-image: url("assets/hero-06-fort-point.jpg");
  background-size: cover;
  --bg-x: 50%;
  --bg-y: 52%;
  background-position: var(--bg-x) var(--bg-y);
  background-repeat: no-repeat;
  animation: hero-bg-drift 28s ease-in-out infinite alternate;
  filter: brightness(var(--hero-photo-brightness)) contrast(var(--hero-photo-contrast))
    saturate(var(--hero-photo-saturate));
  transform: translateZ(0);
  image-rendering: auto;
}

body.meridian-india .hero-home__media {
  background-image: url("assets/hero-in-08-taj-mahal.jpg");
  --bg-x: 50%;
  --bg-y: 48%;
}

@keyframes hero-bg-drift {
  0% {
    background-position: calc(var(--bg-x) - 2%) calc(var(--bg-y) - 3%);
  }
  100% {
    background-position: calc(var(--bg-x) + 2%) calc(var(--bg-y) + 4%);
  }
}

.hero-home__bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 1;
  /* Light read-zone + scrim (hero is always light-themed) */
  background:
    linear-gradient(
      100deg,
      rgba(244, 241, 234, 0.88) 0%,
      rgba(244, 241, 234, 0.78) 18%,
      rgba(244, 241, 234, 0.42) 38%,
      rgba(244, 241, 234, 0.08) 58%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 88% 78% at 50% 48%,
      rgba(26, 23, 20, 0) 0%,
      rgba(26, 23, 20, 0) 30%,
      rgba(26, 23, 20, 0.22) 68%,
      rgba(26, 23, 20, 0.5) 100%
    ),
    linear-gradient(180deg, rgba(244, 241, 234, 0.44) 0%, rgba(244, 241, 234, 0.12) 40%, rgba(26, 23, 20, 0.36) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, var(--accent-glow) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, var(--accent-glow-warm) 0%, transparent 50%),
    linear-gradient(165deg, rgba(244, 241, 234, 0.22) 0%, rgba(26, 23, 20, 0.12) 45%, rgba(26, 23, 20, 0.32) 100%);
  box-shadow:
    inset 0 0 min(220px, 20vw) min(110px, 10vw) rgba(26, 23, 20, 0.24),
    inset 0 0 72px 36px rgba(26, 23, 20, 0.16);
  animation: hero-pan 28s ease-in-out infinite alternate;
}

.hero-home__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.1;
  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");
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes hero-pan {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, 2%) scale(1.05);
  }
}

.hero-home__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.hero-home__content {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.hero-home__label {
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-shadow: 0 1px 2px rgba(244, 241, 234, 0.95), 0 0 20px rgba(244, 241, 234, 0.65);
}

.hero-home__title {
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  font-weight: 400;
  max-width: 15ch;
  margin-bottom: 0.9rem;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(244, 241, 234, 0.95), 0 0 20px rgba(244, 241, 234, 0.65);
}

.hero-home__title .hero-line--2 {
  font-style: italic;
  font-weight: 300;
}

.hero-home__lead {
  max-width: 32rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.62;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(244, 241, 234, 0.95), 0 0 20px rgba(244, 241, 234, 0.65);
}

.hero-line {
  opacity: 0;
  animation: hero-fade-in 0.9s var(--ease) forwards;
  animation-delay: var(--hero-delay, 0s);
}

.hero-line--0 {
  --hero-delay: 0s;
}
.hero-line--1 {
  --hero-delay: 0.15s;
}
.hero-line--2 {
  --hero-delay: 0.3s;
}
.hero-line--3 {
  --hero-delay: 0.45s;
}
.hero-line--4 {
  --hero-delay: 0.62s;
}
.hero-line--5 {
  --hero-delay: 0.78s;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-home__actions {
  margin-bottom: 2rem;
  text-shadow: none;
}

.hero-home__rule {
  max-width: 280px;
  margin-bottom: 3rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--accent);
  animation: scroll-bob 2.2s ease-in-out infinite;
}

.scroll-hint svg {
  display: block;
  opacity: 0.7;
}

@keyframes scroll-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* -- Hero half -- */
.hero-half {
  min-height: 50vh;
  min-height: 50dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3rem;
  position: relative;
}

.hero-half .wrap {
  position: relative;
  z-index: 1;
}

.hero-half__label {
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-half__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 20ch;
  margin-bottom: 1rem;
}

.hero-half__title--wide {
  max-width: 24ch;
}

.page-story .hero-half__title--wide {
  max-width: min(42ch, 92vw);
}

.hero-half__title-line--emphasis {
  font-style: italic;
  font-weight: 300;
}

.hero-half__body {
  max-width: 40rem;
  color: var(--text-hero-half);
  margin-bottom: 1.5rem;
}

.hero-half__rule {
  margin-top: 0.5rem;
}

/* -- Home: what is -- */
.asymmetric {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

@media (max-width: 768px) {
  .asymmetric {
    grid-template-columns: 1fr;
  }
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  padding-left: 1.5rem;
  border-left: 1px solid var(--accent);
  margin: 0;
  color: var(--text-pull);
}

.pull-quote--break {
  width: calc(100% + min(8vw, 4rem));
  margin-left: calc(-1 * min(4vw, 2rem));
}

.body-col p {
  color: var(--text-muted);
}

/* -- Editorial rows (pillars) -- */
.editorial-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.5rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--accent-line);
  align-items: baseline;
}

@media (max-width: 600px) {
  .editorial-row {
    grid-template-columns: 1fr;
  }
}

.editorial-row__label {
  color: var(--accent);
  margin: 0;
}

.editorial-row__text {
  margin: 0;
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 600px) {
  .editorial-row__text {
    text-align: left;
  }
}

/* -- Who it's for -- */
.who-block {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.who-block h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1.75rem;
}

.who-flow {
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--text-muted);
  max-width: 42rem;
  margin-inline: auto;
}

.who-flow--extended {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  max-width: 48rem;
}

.home-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

/* -- CTA strip -- */
.cta-strip {
  text-align: center;
  padding: clamp(4rem, 10vw, 6rem) 0;
  background: var(--bg);
}

.cta-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.events-cta__text {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  text-align: center;
}

.events-cta__actions {
  text-align: center;
}

/* Manifesto: Cormorant for primary reading surfaces */
.page-manifesto .manifesto-body,
.page-manifesto .manifesto-hero h1,
.page-manifesto .manifesto-signoff {
  font-family: var(--font-display);
}

.page-manifesto .manifesto-signoff {
  font-style: italic;
}

/* -- Events: roman sections -- */
.event-tier {
  display: grid;
  grid-template-columns: minmax(72px, 100px) 1fr;
  gap: 1.5rem 2.5rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--accent-line);
}

@media (max-width: 640px) {
  .event-tier {
    grid-template-columns: 1fr;
  }
}

.event-tier__roman {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.22;
  margin: 0;
  user-select: none;
}

.event-tier--emphasis .event-tier__roman {
  opacity: 0.38;
}

.event-tier h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.35rem;
}

.event-tier__meta {
  color: var(--accent);
  margin-bottom: 1rem;
}

.event-tier p {
  color: var(--text-muted);
}

.event-tier__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-event-italic);
  margin-top: 1.25rem;
}

/* -- Calendar rows -- */
.calendar-heading {
  margin-bottom: 2rem;
}

.cal-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--cal-row-bg);
  margin-bottom: 0.75rem;
  align-items: center;
}

@media (max-width: 640px) {
  .cal-row {
    grid-template-columns: 1fr;
  }
}

.cal-row__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cal-row__meta {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.badge {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-muted);
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}

/* -- Story -- */
.page-story {
  text-align: left;
}

.page-story .wrap--narrow {
  margin-inline: 0;
  margin-left: max(1.25rem, calc((100vw - min(1120px, 92vw)) / 2));
}

.page-story .hero-half .hero-line--0 {
  --hero-delay: 0s;
}
.page-story .hero-half .hero-line--1 {
  --hero-delay: 0.15s;
}
.page-story .hero-half .hero-line--2 {
  --hero-delay: 0.3s;
}
.page-story .hero-half .hero-line--byline {
  --hero-delay: 0.42s;
}
.page-story .hero-half .hero-line--photo {
  --hero-delay: 0.24s;
}
.page-story .hero-half .hero-line--3 {
  --hero-delay: 0.55s;
}

.page-story .hero-half__story-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, clamp(220px, 26vw, 300px));
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.page-story .hero-half__story-head-text {
  min-width: 0;
}

.page-story .hero-half__founder-figure {
  margin: 0;
  align-self: start;
}

.page-story .hero-half__founder-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--accent-line);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

@media (max-width: 880px) {
  .page-story .hero-half__story-head {
    grid-template-columns: 1fr;
  }

  .page-story .hero-half__founder-figure {
    max-width: min(280px, 72vw);
    margin-top: 0.25rem;
  }

  .page-story .hero-half__founder-figure img {
    aspect-ratio: 3 / 4;
  }
}

.hero-half__byline {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.hero-half__name {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-heading-mid);
}

.hero-half__byline-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.hero-half__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}

.hero-half__link:hover {
  opacity: 0.85;
}

.story-essay {
  padding-bottom: 2rem;
}

.story-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
}

.story-essay p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.story-signoff {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.story-signoff__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

.story-signoff__link:hover {
  opacity: 0.85;
}

.story-pull {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--text-heading-mid);
  margin: 2.5rem 0;
  padding: 0 0 0 1.25rem;
  text-align: left;
  border-left: 3px solid var(--accent-line);
}

.story-pull--wide {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
}

.page-story .stat-row--story .stat-card {
  text-align: left;
}

.story-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 0;
}

@media (max-width: 768px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--accent-line);
}

.stat-card__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-card__label {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* -- Membership steps -- */
.step-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--accent-line);
}

@media (max-width: 560px) {
  .step-block {
    grid-template-columns: 1fr;
  }
}

.step-block__num {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding-top: 0.2rem;
}

.step-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-block p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.bar-section p {
  color: var(--text-muted);
  max-width: 40rem;
}

.dues-section p {
  color: var(--text-muted);
  max-width: 36rem;
}

/* -- Manifesto -- */
.manifesto-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  position: relative;
}

.manifesto-hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  max-width: 18ch;
  margin-bottom: 3rem;
}

.manifesto-hero .hero-line[lang="hi"] {
  font-family: "Noto Sans Devanagari", var(--font-body), system-ui, sans-serif;
}

.manifesto-body {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.85;
  color: var(--text-manifesto);
}

.manifesto-body p {
  margin-bottom: 2.5rem;
}

.manifesto-body p:last-of-type {
  margin-bottom: 3rem;
}

.manifesto-signoff {
  text-align: center;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-top: 2rem;
}

/* -- Contact form -- */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--accent-line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 1.25rem 0 0.65rem;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.form-group label {
  position: absolute;
  left: 0;
  top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label-form);
  pointer-events: none;
  transition: all 0.3s ease;
  transform-origin: left top;
}

.form-group:focus-within label,
.form-group.has-value label {
  top: -0.25rem;
  font-size: 0.625rem;
  color: var(--accent);
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form-success.is-visible {
  display: block;
}

.form-success__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
}

.form-success p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text-form-success);
}

.contact-alt {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--accent-line);
  text-align: center;
}

.contact-alt p {
  color: var(--text-contact-muted);
  margin-bottom: 1rem;
}

.contact-email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
}

.contact-email--inline {
  font-size: 1rem;
}

main {
  flex: 1;
}

@media (max-width: 880px) {
  .scroll-hint {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  body.cursor-desktop {
    cursor: auto;
  }

  body.cursor-desktop .meridian-cursor {
    display: none;
  }

  body.cursor-desktop .btn,
  body.cursor-desktop .nav-toggle,
  body.cursor-desktop .theme-toggle {
    cursor: pointer;
  }
}
