:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --surface-warm: #f7ede0;
  --ink: #2b160f;
  --muted: #715e55;
  --primary: #9a3412;
  --primary-dark: #6f1d0b;
  --gold: #d39b3c;
  --gold-soft: #f4dca9;
  --border: rgba(91, 50, 27, 0.14);
  --shadow: 0 24px 70px rgba(83, 39, 17, 0.13);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Nirmala UI", "Noto Sans Devanagari", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
code { padding: 0.18rem 0.4rem; border-radius: 6px; background: #f2e6d8; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section-pad { padding: 64px 0; }
.section { position: relative; }
.section::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); opacity: .8; }
.section-alt { background: #f5eadc; }
.section-dark { color: #fff9ef; background: #24100c; }
#gallery { margin-top: 72px; }
#join { margin-top: 76px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; padding: 10px 16px; color: white; background: var(--primary); border-radius: 8px; }
.skip-link:focus { top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 250, 243, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 35px rgba(56, 28, 17, .07); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 270px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: #fff; font-size: 1.35rem; font-weight: 800; border-radius: 50% 50% 44% 56% / 50% 46% 54% 50%; background: linear-gradient(145deg, var(--primary), #c75c22); box-shadow: 0 8px 24px rgba(154,52,18,.22); }
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.25; font-size: .98rem; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.primary-nav { display: flex; align-items: center; gap: 18px; font-size: .9rem; font-weight: 650; }
.primary-nav a { position: relative; white-space: nowrap; }
.primary-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--primary); transition: width .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { width: 100%; }
.nav-cta { padding: 10px 15px; color: white; background: var(--primary); border-radius: 999px; }
.language-switch { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: 0 8px 24px rgba(79,38,18,.08); }
.lang-option { min-width: 70px; min-height: 34px; padding: 6px 10px; color: var(--muted); border: 0; border-radius: 999px; background: transparent; font-size: .78rem; font-weight: 850; }
.lang-option.active { color: #fff; background: var(--primary); box-shadow: 0 8px 18px rgba(154,52,18,.18); }
.menu-button { display: none; width: 46px; height: 42px; border: 0; border-radius: 10px; background: transparent; }
.menu-button span { display: block; width: 23px; height: 2px; margin: 5px auto; background: var(--ink); transition: .2s ease; }

.hero { min-height: calc(100svh - var(--header-height)); display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; padding: 46px 0 22px; background: linear-gradient(135deg, #fffaf3 0%, #f9ead6 46%, #eef6f1 100%); }
.hero::before { content: "नाम"; position: absolute; right: -4vw; bottom: -10vw; z-index: -2; color: rgba(154,52,18,.045); font-size: min(38vw, 520px); font-weight: 900; line-height: .8; }
.hero-glow { position: absolute; z-index: -3; border-radius: 50%; filter: blur(2px); }
.hero-glow-one { width: 480px; height: 480px; right: -110px; top: 25px; background: radial-gradient(circle, rgba(230,160,70,.3), rgba(230,160,70,0) 68%); }
.hero-glow-two { width: 420px; height: 420px; left: -160px; bottom: -110px; background: radial-gradient(circle, rgba(181,72,27,.13), rgba(181,72,27,0) 68%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(330px, .96fr); align-items: center; gap: clamp(30px, 4vw, 62px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--primary); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 1px; background: currentColor; }
.hero-kicker { margin: 0 0 11px; color: var(--muted); font-weight: 700; }
.hero h1 { margin: 0; max-width: 720px; font-family: "Nirmala UI", "Noto Serif Devanagari", Georgia, serif; font-size: clamp(3.05rem, 4.9vw, 4.9rem); line-height: 1.14; letter-spacing: 0; font-weight: 900; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-lead { max-width: 660px; margin: 22px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 14px 28px rgba(154,52,18,.2); }
.button-primary:hover { background: var(--primary-dark); box-shadow: 0 18px 34px rgba(111,29,11,.25); }
.button-secondary { border-color: var(--border); background: rgba(255,255,255,.6); }
.button-secondary:hover { background: #fff; }
.full-width { width: 100%; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.hero-meta div { padding: 12px 14px; border: 1px solid rgba(154,52,18,.12); border-radius: 14px; background: rgba(255,255,255,.52); }
.hero-meta strong, .hero-meta span { display: block; }
.hero-meta strong { font-size: .95rem; }
.hero-meta span { margin-top: 2px; color: var(--muted); font-size: .78rem; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: min(560px, calc(100svh - var(--header-height) - 80px)); align-self: start; padding-top: 6px; }
.hero-visual::before { content: ""; position: absolute; width: min(62vw, 820px); aspect-ratio: 1; transform: translateY(-3%); border-radius: 50%; background: repeating-conic-gradient(from -8deg, rgba(244,190,91,.3) 0 3deg, transparent 3deg 11deg), radial-gradient(circle, rgba(255,240,190,.8) 0 18%, rgba(241,181,78,.34) 32%, rgba(241,181,78,0) 67%); filter: blur(.2px); opacity: .76; animation: rayPulse 5.5s ease-in-out infinite; }
.hero-visual::after { content: ""; position: absolute; width: min(52vw, 700px); aspect-ratio: 1; transform: translateY(-2%); border-radius: 50%; background: radial-gradient(circle, rgba(255,248,220,.76) 0 24%, rgba(220,152,54,.22) 43%, transparent 70%); filter: blur(20px); opacity: .82; }
.mandala { position: absolute; width: min(50vw, 700px); aspect-ratio: 1; transform: translateY(-3%); border: 1px solid rgba(154,52,18,.18); border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(154,52,18,.16) 0 1deg, transparent 1deg 8deg, rgba(211,155,60,.16) 8deg 10deg, transparent 10deg 16deg), radial-gradient(circle at center, transparent 0 34%, rgba(211,155,60,.16) 34.5% 35%, transparent 35.5% 46%, rgba(154,52,18,.1) 46.5% 47%, transparent 47.5%); box-shadow: 0 0 0 18px rgba(211,155,60,.04), 0 0 80px rgba(211,155,60,.32); animation: spin 32s linear infinite; }
.mandala::before, .mandala::after { content: ""; position: absolute; inset: 9%; border: 1px dashed rgba(154,52,18,.22); border-radius: 50%; }
.mandala::after { inset: 23%; border-style: solid; box-shadow: inset 0 0 40px rgba(211,155,60,.18); }
@keyframes spin { to { rotate: 360deg; } }
@keyframes rayPulse { 0%, 100% { scale: .98; opacity: .6; } 50% { scale: 1.05; opacity: .9; } }
.glass-card { background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.75); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.event-card { position: relative; z-index: 2; width: min(100%, 390px); padding: 28px; overflow: hidden; border-radius: 22px; }
.event-card::after { content: ""; position: absolute; inset: auto -60px -70px auto; width: 190px; height: 190px; border-radius: 50%; background: linear-gradient(135deg, rgba(211,155,60,.25), rgba(154,52,18,.08)); }
.event-card-top { display: flex; justify-content: space-between; align-items: center; }
.event-year { color: var(--primary); font-family: Georgia, serif; font-size: 2.2rem; font-weight: 700; }
.event-status { padding: 6px 10px; color: var(--primary); font-size: .72rem; font-weight: 800; border: 1px solid rgba(154,52,18,.18); border-radius: 999px; background: rgba(255,250,243,.65); }
.event-symbol { margin: 55px 0 17px; color: var(--gold); font-family: Georgia, serif; font-size: 1.25rem; text-align: center; }
.event-card > p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.event-card h2 { margin: 12px 0 32px; font-family: Georgia, "Noto Serif Devanagari", serif; font-size: 2.1rem; line-height: 1.18; text-align: center; }
.event-details { display: grid; gap: 13px; padding-top: 20px; border-top: 1px solid var(--border); }
.event-details div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.event-details span { color: var(--muted); font-size: .8rem; }
.event-details strong { font-size: .86rem; }
.event-link { position: relative; z-index: 2; display: flex; justify-content: space-between; margin-top: 24px; padding-top: 18px; color: var(--primary); font-size: .88rem; font-weight: 800; border-top: 1px solid var(--border); }
.hero-portrait { position: relative; z-index: 2; width: min(100%, 520px); margin: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; filter: drop-shadow(0 30px 45px rgba(68, 39, 18, .22)) drop-shadow(0 0 54px rgba(218, 159, 59, .34)); transform: translateY(-34px); }
.hero-portrait::before { content: ""; position: absolute; inset: 13% 10% 8%; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at 50% 30%, rgba(255,246,211,.9) 0 28%, rgba(239,181,78,.35) 48%, rgba(239,181,78,0) 72%); filter: blur(22px); }
.hero-portrait img { width: 100%; height: auto; object-fit: contain; object-position: center; filter: saturate(1.06) contrast(1.02); }
.hero-portrait figcaption { position: absolute; inset: auto 44px -4px 44px; padding: 13px 16px; color: #fffaf3; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(36,16,12,.74); backdrop-filter: blur(16px); box-shadow: 0 18px 34px rgba(49, 24, 13, .2); }
.hero-portrait span, .hero-portrait strong { display: block; }
.hero-portrait span { color: var(--gold-soft); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-portrait strong { margin-top: 3px; font-family: "Nirmala UI", "Noto Serif Devanagari", Georgia, serif; font-size: 1.25rem; line-height: 1.32; }

.community-strip { color: #fff8ed; background: var(--primary); overflow: hidden; }
.strip-grid { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 22px; white-space: nowrap; }
.strip-grid p { margin: 0; font-weight: 800; }
.strip-grid span { color: var(--gold-soft); font-size: .6rem; }

.two-column { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: clamp(44px, 6vw, 78px); align-items: start; }
.section-heading { max-width: 790px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.section-number { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; color: var(--primary); font-size: .75rem; font-weight: 900; border: 1px solid rgba(154,52,18,.2); border-radius: 50%; }
.section-number.light { color: var(--gold-soft); border-color: rgba(244,220,169,.25); }
.eyebrow.light { color: var(--gold-soft); }
.section-heading h2, .namdev-content h2, .join-copy h2 { margin: 0; font-family: "Nirmala UI", "Noto Serif Devanagari", Georgia, serif; font-size: clamp(2.15rem, 4.1vw, 4rem); line-height: 1.2; letter-spacing: 0; }
.section-heading > p:last-child { color: var(--muted); }
.content-stack { padding-top: 12px; }
.lead-copy { margin: 0 0 30px; font-family: "Nirmala UI", "Noto Serif Devanagari", Georgia, serif; font-size: clamp(1.22rem, 1.85vw, 1.68rem); line-height: 1.66; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.value-card { min-height: 180px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,.45); transition: transform .25s ease, box-shadow .25s ease; }
.value-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(75,37,20,.08); }
.value-card > span { color: var(--gold); font-weight: 900; }
.value-card h3 { margin: auto 0 10px; font-size: 1.02rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.programme-layout { display: grid; grid-template-columns: 310px 1fr; gap: 36px; margin-top: 30px; }
.programme-summary { height: fit-content; padding: 22px; border-radius: var(--radius-lg); position: sticky; top: 96px; }
.mini-label { margin: 0 0 18px; color: var(--primary); font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.programme-summary dl { margin: 0 0 18px; }
.programme-summary dl div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.programme-summary dt { color: var(--muted); font-size: .76rem; }
.programme-summary dd { margin: 3px 0 0; font-weight: 800; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 95px; top: 12px; bottom: 12px; width: 1px; background: rgba(154,52,18,.22); }
.timeline-item { display: grid; grid-template-columns: 68px 1fr; gap: 36px; position: relative; padding: 0 0 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 89px; top: 8px; width: 13px; height: 13px; border: 3px solid #f5eadc; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.timeline-time { color: var(--primary); font-weight: 900; }
.timeline-copy { padding: 0 0 14px; border-bottom: 1px solid var(--border); }
.timeline-copy h3 { margin: 0 0 3px; font-size: 1rem; }
.timeline-copy p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }

.invitation-section { background: radial-gradient(circle at 12% 25%, rgba(211,155,60,.16), transparent 25%), var(--bg); }
.invitation-wrap { display: grid; grid-template-columns: minmax(280px, max-content) minmax(310px, .78fr); gap: clamp(30px, 4vw, 52px); align-items: center; margin-top: 18px; }
.invitation-image { justify-self: center; margin: 0; overflow: visible; border: 0; border-radius: 10px; background: transparent; box-shadow: 0 30px 90px rgba(91,43,17,.22); }
.invitation-image img { width: auto; max-width: min(100%, 560px); max-height: calc(100svh - var(--header-height) - 150px); height: auto; border-radius: 10px; object-fit: contain; }
.invitation-card { padding: 18px; color: #4a1e10; border-radius: 10px; background: linear-gradient(145deg, #f8dfae, #f2c97b); box-shadow: 0 30px 90px rgba(91,43,17,.22); transform: rotate(-1deg); }
.invitation-border { min-height: 640px; display: flex; flex-direction: column; justify-content: center; padding: 52px; text-align: center; border: 1px solid rgba(99,47,15,.45); outline: 1px solid rgba(99,47,15,.22); outline-offset: -9px; background: radial-gradient(circle at center, rgba(255,255,255,.35), transparent 64%); }
.invocation { font-size: .78rem; font-weight: 800; }
.invite-label { margin: 45px 0 5px; color: var(--primary); font-size: .78rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.invitation-card h3 { margin: 0; font-family: "Nirmala UI", "Noto Serif Devanagari", Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.16; }
.invitation-card h3 span { font-size: .55em; }
.ornament { margin: 25px auto; color: var(--primary); }
.invite-copy { max-width: 580px; margin: 0 auto; }
.invite-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin: 30px 0; padding: 20px 0; border-block: 1px solid rgba(99,47,15,.25); }
.invite-details p { margin: 0; }
.invite-details span, .invite-details strong { display: block; }
.invite-details span { font-size: .72rem; font-weight: 800; }
.invite-details strong { margin-top: 2px; }
.invite-host { font-weight: 800; }
.invitation-actions { display: grid; gap: 14px; align-content: center; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255,255,255,.48); box-shadow: 0 18px 45px rgba(83,39,17,.08); }
.invitation-actions h3 { margin: 0 0 10px; font-family: "Nirmala UI", "Noto Serif Devanagari", Georgia, serif; font-size: 1.65rem; line-height: 1.32; }
.invitation-actions p { color: var(--muted); }

.namdev-grid { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: clamp(42px, 5vw, 68px); align-items: center; }
.namdev-art { position: relative; min-height: min(560px, calc(100svh - var(--header-height) - 145px)); display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 35%, rgba(244,220,169,.18), transparent 36%), linear-gradient(145deg, #411d13, #1b0c09); }
.namdev-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(36,16,12,.22), rgba(36,16,12,.5)), url("assets/namdev-maharaj1.png") center 22% / cover no-repeat; opacity: .5; filter: saturate(.9) contrast(1.04); }
.namdev-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(36,16,12,.18), rgba(36,16,12,.82) 72%); }
.halo { position: absolute; width: 390px; height: 390px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(244,220,169,.2) 0 1px, transparent 2px 18px); opacity: .7; }
.tanpura-line { position: absolute; width: 1px; height: 85%; background: linear-gradient(transparent, rgba(244,220,169,.5), transparent); transform: rotate(17deg); }
.quote-mark { position: absolute; left: 34px; top: 12px; z-index: 2; color: rgba(244,220,169,.15); font-family: Georgia, serif; font-size: 13rem; line-height: 1; }
.namdev-art p { position: relative; z-index: 3; margin: 0; color: #f5dca7; font-family: "Nirmala UI", "Noto Serif Devanagari", Georgia, serif; font-size: clamp(2.45rem, 4.5vw, 4.35rem); line-height: 1.22; text-align: center; text-shadow: 0 3px 22px rgba(18,8,5,.65); }
.abhang-quote small { display: block; margin-top: 18px; color: rgba(255,249,239,.82); font-family: Inter, "Noto Sans Devanagari", sans-serif; font-size: clamp(.82rem, 1.4vw, 1rem); font-weight: 800; letter-spacing: 0; }
.namdev-slogan { margin-top: 24px; padding-top: 18px; color: var(--gold-soft) !important; font-size: .92rem; font-weight: 850; border-top: 1px solid rgba(255,255,255,.12); }
.namdev-content h2 { margin-bottom: 22px; }
.namdev-content > p { margin: 0 0 14px; color: rgba(255,249,239,.72); }
.namdev-points { display: grid; gap: 0; margin: 28px 0; }
.namdev-points div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.namdev-points strong { color: var(--gold-soft); }
.namdev-points span { color: rgba(255,249,239,.66); }
.source-note { padding-left: 16px; font-size: .78rem; border-left: 2px solid var(--gold); }

.carousel-controls { display: flex; gap: 8px; }
.carousel-controls button { width: 48px; height: 48px; color: var(--ink); border: 1px solid var(--border); border-radius: 50%; background: transparent; transition: .2s ease; }
.carousel-controls button:hover { color: white; background: var(--primary); }
.gallery-viewport { min-height: min(40vw, 430px); margin-top: 28px; overflow: hidden; border-radius: var(--radius-lg); }
.gallery-track { display: flex; gap: 18px; transition: transform .5s cubic-bezier(.2,.75,.2,1); will-change: transform; }
.gallery-card { flex: 0 0 min(70vw, 540px); position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: #eadbc8; box-shadow: 0 18px 46px rgba(75,37,20,.08); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 80px 26px 24px; color: #fff; background: linear-gradient(transparent, rgba(30,12,8,.85)); }
.gallery-caption span { color: var(--gold-soft); font-size: .78rem; font-weight: 900; }
.gallery-caption h3 { margin: 3px 0 0; font-size: 1.3rem; }
.gallery-caption p { margin: 2px 0 0; color: rgba(255,255,255,.75); }
.gallery-note { margin: 18px 0 0; color: var(--muted); font-size: .8rem; }

.search-box { width: min(100%, 330px); position: relative; }
.search-box input { width: 100%; height: 50px; padding: 0 48px 0 17px; color: var(--ink); border: 1px solid var(--border); outline: none; border-radius: 999px; background: rgba(255,255,255,.72); }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(154,52,18,.08); }
.search-box > span:last-child { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.member-intro { max-width: 920px; margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.68; }
.member-grid { min-height: 112px; margin-top: 28px; overflow: hidden; border-block: 1px solid var(--border); background: rgba(255,255,255,.54); }
.member-marquee { width: 100%; overflow: hidden; padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.member-marquee-track { display: flex; width: max-content; gap: 18px; animation: memberScroll 28s linear infinite; }
.member-name { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 7px 18px 7px 7px; color: var(--ink); border: 1px solid rgba(154,52,18,.14); border-radius: 999px; background: #fffaf3; box-shadow: 0 10px 24px rgba(75,37,20,.06); font-weight: 850; white-space: nowrap; }
.member-name img { width: 40px; height: 40px; flex: 0 0 40px; border: 2px solid rgba(211,155,60,.38); border-radius: 50%; background: #f4e3ce; object-fit: cover; object-position: center 18%; }
.member-name span { display: inline-block; line-height: 1.2; }
.member-marquee:hover .member-marquee-track { animation-play-state: paused; }
@keyframes memberScroll { to { transform: translateX(-50%); } }
.empty-state { grid-column: 1 / -1; padding: 45px; color: var(--muted); text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-md); }

.join-section { background: linear-gradient(135deg, #fffaf3 0%, #f4e3ce 100%); }
.join-grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: clamp(34px, 5vw, 58px); align-items: start; }
.join-copy { position: sticky; top: 115px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255,255,255,.42); }
.join-copy > p { color: var(--muted); }
.check-list { list-style: none; margin: 26px 0 0; padding: 0; }
.check-list li { position: relative; margin: 12px 0; padding-left: 30px; font-weight: 750; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); }
.join-form { display: grid; gap: 18px; padding: 34px; border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius-lg); background: rgba(255,255,255,.75); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.google-form-frame { padding: 0; overflow: hidden; min-height: min(760px, calc(100svh - var(--header-height) - 130px)); }
.google-form-frame iframe { display: block; width: 100%; height: min(1756px, calc(100svh - var(--header-height) - 130px)); border: 0; background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.join-form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 800; }
.join-form label > span { color: var(--primary); }
.join-form input:not([type="checkbox"]), .join-form textarea, .join-form select { width: 100%; padding: 13px 14px; color: var(--ink); border: 1px solid var(--border); outline: none; border-radius: 10px; background: rgba(255,255,255,.9); }
.join-form input:focus, .join-form textarea:focus, .join-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(154,52,18,.08); }
.consent { grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; color: var(--muted); font-weight: 500 !important; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.form-note { margin: -4px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
.form-success { padding: 12px; color: #17643a; text-align: center; border-radius: 10px; background: #e7f7ee; }

.site-footer { padding: 75px 0 25px; color: rgba(255,249,239,.72); background: #1d0c08; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 60px; }
.footer-brand { color: #fff8ed; }
.footer-brand small { color: rgba(255,249,239,.6); }
.site-footer h3 { margin: 0 0 14px; color: #fff8ed; font-size: .88rem; }
.site-footer a:not(.brand), .site-footer p { display: block; margin: 8px 0; font-size: .85rem; }
.site-footer a:not(.brand):hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; font-size: .75rem; }
.developer-credit strong { color: #fff8ed; }
.developer-credit a { display: inline !important; color: var(--gold-soft); font-weight: 800; }
.noscript { position: fixed; inset: auto 0 0; z-index: 9999; padding: 12px; color: #fff; text-align: center; background: var(--primary); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (min-width: 821px) {
  .section-pad { display: flex; align-items: center; padding-block: 56px; }
  .section-pad > .container { width: min(calc(100% - 40px), var(--container)); }
  .section-heading h2, .namdev-content h2, .join-copy h2 { font-size: clamp(2rem, 3.45vw, 3.35rem); }
  .lead-copy { font-size: clamp(1.2rem, 1.85vw, 1.62rem); }
  #about.section-pad { padding-block: 52px 60px; }
  #gallery.section-pad { padding-block: 58px 62px; }
  #members.section-pad { padding-block: 60px 64px; }
  #about .section-number, #gallery .section-number, #members .section-number { width: 40px; height: 40px; margin-bottom: 12px; }
  #about .lead-copy { font-size: clamp(1.04rem, 1.38vw, 1.26rem); line-height: 1.62; margin-bottom: 24px; }
  #about .value-card { min-height: 164px; padding: 20px; }
  #gallery .section-heading h2, #members .section-heading h2 { font-size: clamp(1.9rem, 3vw, 2.85rem); }
  #invitation.section-pad, #namdev.section-pad, #join.section-pad { min-height: calc(100svh - var(--header-height)); }
  #about.section-pad, #gallery.section-pad, #members.section-pad { min-height: auto; }
  #join.section-pad { padding-top: 64px; }
  #programme.section-pad, #invitation.section-pad { padding-block: 34px; }
  #programme .section-number, #invitation .section-number { width: 42px; height: 42px; margin-bottom: 14px; }
  #programme .section-heading h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
  #programme .section-heading > p:last-child { margin-bottom: 0; line-height: 1.45; }
  #invitation .section-heading { max-width: 520px; }
}

@media (max-width: 1060px) {
  .primary-nav { position: fixed; inset: var(--header-height) 0 auto; display: grid; gap: 0; padding: 15px 20px 25px; background: rgba(255,250,243,.98); border-bottom: 1px solid var(--border); box-shadow: 0 25px 45px rgba(60,25,13,.12); transform: translateY(-130%); opacity: 0; transition: .25s ease; }
  .primary-nav.open { transform: translateY(0); opacity: 1; }
  .primary-nav a { padding: 12px 8px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .menu-button { display: block; order: 3; }
  .language-switch { margin-left: auto; order: 2; }
  .menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button.open span:nth-child(2) { opacity: 0; }
  .menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr 430px; gap: 30px; }
  .hero h1 { font-size: clamp(2.9rem, 6.2vw, 5rem); }
  .two-column, .join-grid { gap: 44px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: auto; }
  .value-card h3 { margin-top: 25px; }
  .namdev-grid { gap: 55px; }
}

@media (max-width: 820px) {
  .section-pad { padding: 70px 0; }
  #gallery, #join { margin-top: 42px; }
  .hero { padding-top: 55px; }
  .hero-grid, .two-column, .programme-layout, .invitation-wrap, .namdev-grid, .join-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { max-width: 640px; margin-inline: auto; }
  .hero-visual { min-height: 560px; }
  .hero-visual::before { width: min(112vw, 620px); }
  .hero-visual::after { width: min(96vw, 540px); }
  .mandala { width: min(96vw, 560px); }
  .hero-portrait { width: min(100%, 470px); }
  .hero-portrait figcaption { inset-inline: 28px; bottom: 22px; }
  .strip-grid { justify-content: flex-start; overflow: auto; }
  .content-stack { padding-top: 0; }
  .programme-layout { gap: 45px; }
  .programme-summary, .join-copy { position: static; }
  .invitation-card { transform: none; }
  .invitation-image { max-width: 720px; margin-inline: auto; }
  .invitation-image img { width: 100%; max-width: 560px; margin-inline: auto; }
  .invitation-border { min-height: auto; padding: 42px 28px; }
  .namdev-art { min-height: 520px; }
  .section-heading.split { align-items: start; flex-direction: column; }
  .member-intro { margin-top: 16px; font-size: .96rem; }
  .search-box { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --header-height: 70px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand { min-width: 0; }
  .brand strong { font-size: .84rem; }
  .brand small { font-size: .68rem; }
  .brand-mark { width: 39px; height: 39px; flex-basis: 39px; }
  .language-switch { position: fixed; top: calc(var(--header-height) + 10px); right: 14px; z-index: 1001; background: rgba(255,250,243,.96); }
  .lang-option { min-width: 58px; min-height: 31px; font-size: .72rem; }
  .hero { padding-top: 98px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.05rem); line-height: 1.16; }
  .hero-lead { font-size: .98rem; }
  .hero-meta { grid-template-columns: 1fr; gap: 10px; }
  .hero-meta div { flex: 1; }
  .hero-visual { min-height: 500px; }
  .hero-portrait { width: min(100%, 390px); }
  .hero-portrait figcaption { inset-inline: 16px; bottom: 14px; }
  .event-card { padding: 22px; }
  .event-card h2 { font-size: 1.8rem; }
  .section-heading h2, .namdev-content h2, .join-copy h2 { font-size: 2.15rem; line-height: 1.22; }
  .timeline::before { left: 75px; }
  .timeline-item { grid-template-columns: 58px 1fr; gap: 34px; }
  .timeline-item::before { left: 69px; }
  .invite-details { display: grid; gap: 15px; }
  .namdev-art { min-height: 430px; }
  .namdev-art p { font-size: 2.45rem; line-height: 1.24; }
  .namdev-points div { grid-template-columns: 1fr; gap: 3px; }
  .gallery-card { flex-basis: 86vw; }
  .gallery-viewport { min-height: 66vw; }
  .form-row, .footer-grid { grid-template-columns: 1fr; }
  .member-marquee { padding: 18px 0; }
  .member-name { min-height: 48px; padding: 6px 14px 6px 6px; }
  .member-name img { width: 36px; height: 36px; flex-basis: 36px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .join-form { padding: 22px; }
  .google-form-frame { padding: 0; min-height: 720px; }
  .google-form-frame iframe { height: 720px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body * { visibility: hidden !important; }
  #printable-invitation, #printable-invitation * { visibility: visible !important; }
  #printable-invitation { position: absolute; inset: 0; width: 100%; margin: 0; box-shadow: none; transform: none; }
  #printable-invitation img { width: 100%; height: auto; }
  .invitation-border { min-height: 96vh; }
  @page { size: A4 portrait; margin: 10mm; }
}
