/* Sopanam site styles, shared by every page. */
:root {
  --sp-void: #03050c;
  --sp-deep: #070b1c;
  --sp-night: #0c1230;
  --sp-indigo: #18204e;
  --sp-field: #3d7bff;
  --sp-glow: #9cc0ff;
  --sp-violet: #a395ff;
  --sp-gold: #e9c47c;
  --sp-dawn: #ffdfae;
  --sp-ink: #eef2ff;
  --sp-soft: #c4cce6;
  --sp-mute: #8f99bd;
  --sp-line: rgba(156, 192, 255, 0.16);
  --sp-card: rgba(18, 26, 64, 0.55);
  --sp-serif: "Cormorant Garamond", "Times New Roman", serif;
  --sp-sans: "Manrope", system-ui, sans-serif;
  --sp-wrap: 1180px;
  --sp-gutter: clamp(20px, 5vw, 56px);
  --sp-ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--sp-void); color: var(--sp-ink);
  font: 400 17px/1.7 var(--sp-sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.ic { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; stroke-width: 1.75; }
.wrap { width: min(100%, var(--sp-wrap)); margin: 0 auto; padding: 0 var(--sp-gutter); }
.eyebrow {
  font: 600 12px/1.4 var(--sp-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--sp-gold);
}
h1, h2, h3 { font-family: var(--sp-serif); font-weight: 400; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; }
h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.75; color: var(--sp-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--sp-sans); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--sp-ease), box-shadow .3s var(--sp-ease), background .3s, border-color .3s;
}
/* The main button: ivory white with dark lettering (the class keeps its old name) */
.btn-gold { background: linear-gradient(180deg, #ffffff, #e6ebf7); color: #0a1026; box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 8px 30px -12px rgba(156,192,255,.5); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff, 0 14px 44px -10px rgba(156,192,255,.75); }
.btn-ghost { background: rgba(61,123,255,.08); border-color: rgba(156,192,255,.35); color: var(--sp-ink); }
.btn-ghost:hover { border-color: var(--sp-glow); background: rgba(61,123,255,.16); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sp-glow); outline-offset: 3px;
}

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; }
.nav.open { background: var(--sp-void); border-color: var(--sp-line); }
.nav { transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(3,5,12,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--sp-line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand b { font: 400 26px/1 var(--sp-serif); letter-spacing: .28em; }
.brand span { font: 500 11px/1 var(--sp-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sp-mute); }
.nav ul { display: flex; gap: 30px; white-space: nowrap; list-style: none; margin: 0; padding: 0; }
.nav ul a { font: 500 14px/1 var(--sp-sans); letter-spacing: .06em; text-decoration: none; color: var(--sp-soft); transition: color .2s; }
.nav ul a:hover { color: var(--sp-ink); }
.nav .menu-btn { display: none; background: none; border: 0; color: var(--sp-ink); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav .menu-btn .ic { width: 24px; height: 24px; }
@media (max-width: 980px) {
  .nav .menu-btn { display: inline-flex; }
  .nav ul { position: absolute; top: 100%; left: 0; right: 0; z-index: 2; flex-direction: column; gap: 0; background: var(--sp-void); border-bottom: 1px solid var(--sp-line);
    padding: 8px var(--sp-gutter) 24px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .nav.open ul { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul a { display: block; padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--sp-line); }
  .brand span { display: none; }
}

/* Hero */
.hero-track { height: 165vh; position: relative; }
.hero-track + .quote { margin-top: -32vh; }
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 38%, rgba(20,32,96,.55) 0%, rgba(7,11,28,.3) 45%, transparent 75%); }
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.neb { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: 0; transition: opacity 2.4s ease;
  animation: drift 60s ease-in-out infinite alternate; }
.neb.on { opacity: 1; }
.neb.blue { left: -18vmax; top: 8vh; background: radial-gradient(closest-side, rgba(40,72,190,.30), transparent); }
.neb.violet { right: -22vmax; top: 18vh; background: radial-gradient(closest-side, rgba(110,80,220,.26), transparent); animation-duration: 75s; }
.neb.gold { left: 20vw; bottom: -30vmax; background: radial-gradient(closest-side, rgba(233,170,90,.16), transparent); animation-duration: 90s; }
.neb.deep { right: -10vmax; bottom: -20vmax; background: radial-gradient(closest-side, rgba(24,60,150,.22), transparent); animation-duration: 80s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vmax,-4vmax,0) scale(1.12); } }
main, footer, .nav { position: relative; z-index: 1; }
.nav { position: fixed; z-index: 50; }
.field { position: relative; display: grid; place-items: center; padding-top: 88px; min-height: 0; }
.field svg { height: min(54svh, 600px); width: auto; max-width: 92vw; overflow: visible; }
.field .ring { fill: none; stroke: var(--sp-field); stroke-width: 1; opacity: .32; }
.field .ring.t { stroke: var(--sp-glow); opacity: .26; }
.field .core { fill: url(#coreGrad); animation: glow 9s ease-in-out infinite; transform-origin: 380px 300px; }
.halo-rings { transform-origin: 380px 300px; animation: turn 240s linear infinite; }
.field .pulse { transform-origin: 380px 300px; animation: pulse 8s var(--sp-ease) infinite 3s; opacity: 0; }
/* The symbol forms in the order of its meaning, slowly and without a jolt: each line is drawn in light as it
   drifts the last few steps into place; the fills breathe in afterwards; the water and the lotus come out of a
   soft blur together; then, now and again, a glint of light travels the lines. */
.tri path { stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tri .line { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.tri.down .line { stroke: #ffe2b0; fill: url(#downFill); filter: drop-shadow(0 0 7px rgba(255,214,150,.5));
  animation: draw 2.6s cubic-bezier(.45,0,.2,1) .2s forwards, fillIn 2.4s ease 1.9s forwards; }
.tri.up .line { stroke: #8fb6ff; fill: url(#upFill); filter: drop-shadow(0 0 7px rgba(80,140,255,.55));
  animation: draw 2.6s cubic-bezier(.45,0,.2,1) .7s forwards, fillIn 2.4s ease 2.4s forwards; }
.tri.down { animation: descend 3s cubic-bezier(.22,.8,.2,1) 0s both; }
.tri.up { animation: ascend 3s cubic-bezier(.22,.8,.2,1) .5s both; }
.tri .glint { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: .06 .94; stroke-dashoffset: 1; opacity: 0; filter: blur(.6px) drop-shadow(0 0 6px #fff); }
.tri.down .glint { animation: glint 14s cubic-bezier(.4,0,.2,1) 7s infinite; }
.tri.up .glint { animation: glint 14s cubic-bezier(.4,0,.2,1) 14s infinite; }
.sq { fill: rgba(255,240,215,0); stroke: #fff3dc; stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255,230,190,.55)); animation: draw 2s cubic-bezier(.45,0,.2,1) 2.6s forwards, meet 2.6s ease 2.6s forwards; }
.water { opacity: 0; filter: blur(5px); animation: surface 2.6s ease 3.6s forwards; }
.water .lines { fill: #9cc0ff; opacity: .8; }
.water .pads { fill: rgba(143,182,255,.16); }
.lotus path { fill: url(#petal); }
.lotus { opacity: 0; transform-origin: 380px 326px; animation: rise 2.8s cubic-bezier(.22,.8,.2,1) 3.8s forwards; }
.field .core { opacity: 0; animation: dawn 3.4s ease 3.6s forwards, glow 9s ease-in-out 7.2s infinite; }
.symbol { transform-origin: 380px 300px; animation: breathe 16s ease-in-out infinite 7s; }
@keyframes meet { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 1; fill: rgba(255,240,215,.07); } }
@keyframes fillIn { to { fill-opacity: 1; } }
@keyframes surface { to { opacity: 1; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.94); filter: blur(6px) drop-shadow(0 0 0 rgba(255,214,190,0)); }
  to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 12px rgba(255,214,190,.75)); } }
@keyframes dawn { to { opacity: .9; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes descend { from { transform: translateY(-26px); opacity: 0; } 35% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ascend { from { transform: translateY(26px); opacity: 0; } 35% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes glint { 0% { stroke-dashoffset: 1; opacity: 0; } 4% { opacity: .9; } 26% { opacity: .9; } 30%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes glow { 0%,100% { opacity: .9; } 50% { opacity: .7; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: .5; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) {
  .tri, .tri path, .sq, .lotus, .water, .symbol, .halo-rings, .field .core, .field .pulse { animation: none !important; }
  .tri .line, .sq { stroke-dashoffset: 0; fill-opacity: 1; } .sq, .lotus, .field .core, .water { opacity: 1; } .water { filter: none; } .tri .glint { display: none; }
}
.hero-copy { position: relative; text-align: center; padding: 0 var(--sp-gutter) clamp(56px, 9vh, 96px); }
.hero h1 { font-size: clamp(52px, 9.2vw, 128px); line-height: .98; letter-spacing: .01em;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7ff 55%, var(--sp-glow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { font-style: italic; white-space: nowrap; }
@media (max-width: 600px) { .field { padding: 76px 0 14px; } .field { display: flex; flex-direction: column; align-items: center; justify-content: center; } .field svg { height: auto; width: 100%; max-height: 44svh; flex: 0 1 auto; min-height: 0; } .hero-copy { padding-bottom: 76px; } .hero h1 { font-size: clamp(44px, 13vw, 60px); } .hero .sub { margin: 16px auto 26px; } }
.hero .sub { margin: 22px auto 34px; max-width: 640px; color: var(--sp-soft); font-size: clamp(17px, 1.7vw, 20px); }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.field svg { transform-origin: 50% 52%; }
.field svg, .hero-copy, .hero h1 { will-change: transform, opacity; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px; background: linear-gradient(var(--sp-glow), transparent); opacity: .6; }

/* Sections */
section { position: relative; }
section[id], article[id] { scroll-margin-top: 76px; }
.band { padding: clamp(64px, 8vw, 112px) 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--sp-ease), transform 1s var(--sp-ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; }  }

/* Quote */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 980px; font: italic 400 clamp(36px, 5.6vw, 76px)/1.12 var(--sp-serif); color: var(--sp-ink); }
.quote cite { display: block; margin-top: 28px; font: 600 12px/1 var(--sp-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--sp-gold); font-style: normal; }
.rule { width: 1px; height: 56px; margin: 0 auto 28px; background: linear-gradient(transparent, var(--sp-gold)); }

/* Cinematic band: the image in its own band, dissolving into the night above and below */
.cinema { overflow: hidden; }
.cinema-frame { position: relative; aspect-ratio: 2000 / 900; max-width: 1600px; margin: 0 auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(transparent, #000 7%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
.cinema-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--cy, 0), 0) scale(var(--cs, 1.03)); will-change: transform; }
.quote { padding-bottom: clamp(40px, 6vw, 72px); }

/* Vision */

.vision .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.vision figure { margin: 0; position: relative; }
.vision .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vision .pair figcaption { grid-column: 1 / -1; color: var(--sp-mute); font-size: 14px; }
.vision figure img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.vision figure::after { content: ""; position: absolute; inset: -1px; border-radius: 4px; pointer-events: none;
  box-shadow: 0 0 120px -20px rgba(61,123,255,.45); }
.vision h2 { margin: 18px 0 28px; }
@media (max-width: 880px) { .vision .grid { grid-template-columns: minmax(0, 1fr); } }

/* Series */

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 6vw, 72px); }
.section-head h2 { margin: 18px 0 22px; }
.film { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.film + .film { margin-top: clamp(56px, 8vw, 96px); }
.film:nth-child(even) .screen { order: 2; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; cursor: pointer;
  box-shadow: 0 0 0 1px var(--sp-line), 0 40px 120px -40px rgba(61,123,255,.55); isolation: isolate; }
.screen img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--sp-ease), opacity .4s; }
.screen:hover img { transform: scale(1.04); }
.screen .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); background: rgba(3,5,12,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; transition: transform .4s var(--sp-ease), background .4s; }
.screen:hover .play { transform: scale(1.08); background: rgba(61,123,255,.4); }
.screen .play .ic { width: 28px; height: 28px; margin-left: 4px; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film .num { font: 400 clamp(72px, 9vw, 120px)/.8 var(--sp-serif); color: transparent; -webkit-text-stroke: 1px rgba(233,196,124,.7); display: block; margin-bottom: 18px; }
.film h3 { margin-bottom: 8px; }
.film .tag { font: italic 400 22px/1.4 var(--sp-serif); color: var(--sp-glow); margin-bottom: 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--sp-mute); font-size: 14px; }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta .fig { font: 600 15px/1 var(--sp-sans); color: var(--sp-ink); }
.film p { color: var(--sp-soft); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 26px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--sp-line);
  font: 500 13px/1 var(--sp-sans); color: var(--sp-soft); text-decoration: none; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--sp-glow); color: var(--sp-ink); }
.chip .ic { width: 14px; height: 14px; }
.film .link { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--sp-sans); letter-spacing: .04em; color: var(--sp-gold); text-decoration: none; }
.film .link:hover .ic { transform: translateX(4px); }
.film .link .ic { transition: transform .3s var(--sp-ease); }
@media (max-width: 880px) { .film { grid-template-columns: minmax(0, 1fr); } .film:nth-child(even) .screen { order: 0; } }

/* Stats */

/* Secret Knowledge */

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.card { background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 10px; overflow: hidden;
  transition: border-color .4s, transform .5s var(--sp-ease); }
.card:hover { border-color: rgba(163,149,255,.45); transform: translateY(-4px); }
.card .screen { border-radius: 0; box-shadow: none; }
.card .body { padding: 30px 32px 34px; }
.card .eyebrow { color: var(--sp-violet); }
.card h3 { margin: 12px 0 14px; font-size: clamp(28px, 2.6vw, 34px); }
.card p { color: var(--sp-soft); font-size: 16px; }
@media (max-width: 880px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* Makers */

.makers .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.makers figure { margin: 0; }
.makers figure img { border-radius: 6px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.makers figcaption { margin-top: 14px; color: var(--sp-mute); font-size: 14px; }
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--sp-line); }
.credits dt { font: 600 11px/1.4 var(--sp-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--sp-gold); margin-bottom: 6px; }
.credits dd { margin: 0; font: 400 22px/1.3 var(--sp-serif); }
@media (max-width: 880px) { .makers .grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .credits { grid-template-columns: minmax(0, 1fr); } }

/* Support */
.support { text-align: center; overflow: hidden; background: radial-gradient(60% 62% at 50% 52%, rgba(233,196,124,.11), transparent 72%); }
.support .lead { max-width: 680px; margin: 26px auto 38px; }
.support .lead + .lead { margin-top: -14px; }
.support .signed { display: flex; align-items: center; justify-content: center; gap: 20px; margin: -6px 0 34px; text-align: left; }
.support .signed img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--sp-line); }
.support .sign { margin: 0; line-height: 1.6; }
.support .note { margin-top: 22px; color: var(--sp-mute); font-size: 14px; }
.support .note a { color: var(--sp-glow); }

/* Purnam: the bridge from the films to living the vision */
.pcard { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 16px; border: 1px solid rgba(233,196,124,.28);
  background: radial-gradient(80% 90% at 0% 0%, rgba(233,196,124,.12), transparent 60%), linear-gradient(135deg, rgba(0,84,149,.32), rgba(24,32,78,.45));
  box-shadow: 0 40px 120px -50px rgba(233,196,124,.35); }
.pc-photos { display: grid; gap: 14px; }
.pc-photos img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.pc-photos img:first-child { width: 92%; }
.pc-photos img:last-child { width: 92%; justify-self: end; }
.pc-logo { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; text-decoration: none; }
.pc-logo img { width: 52px; height: 52px; }
.pc-logo span { display: grid; font: 400 22px/1.1 var(--sp-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-ink); }
.pc-logo small { font: 600 10px/1.6 var(--sp-sans); letter-spacing: .3em; color: var(--sp-mute); margin-top: 4px; }
.pc-text h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; margin: 14px 0 20px; }
.pc-text .lead { margin-bottom: 30px; }
.pcard .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.pc-quote { margin: 26px 0 0; font: italic 400 22px/1.4 var(--sp-serif); color: var(--sp-ink); }
.pc-quote span { font: 600 11px/1 var(--sp-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--sp-gold); font-style: normal; margin-left: 10px; }
@media (max-width: 880px) { .pcard { grid-template-columns: minmax(0, 1fr); } .pc-photos { max-width: 520px; } }

/* Contact */

.contact .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); }
.contact h2 { margin: 18px 0 22px; }
form { display: grid; gap: 18px; }
.f label { display: block; font: 600 12px/1.4 var(--sp-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sp-mute); margin-bottom: 8px; }
.f input, .f textarea { width: 100%; padding: 16px 18px; border-radius: 8px; border: 1px solid var(--sp-line); background: rgba(12,18,48,.6);
  color: var(--sp-ink); font: 400 16px/1.5 var(--sp-sans); transition: border-color .2s, background .2s; }
.f textarea { min-height: 150px; resize: vertical; }
.f input:focus, .f textarea:focus { border-color: var(--sp-glow); background: rgba(18,26,64,.8); outline: none; }
.hp { position: absolute; left: -9999px; }
.status { min-height: 24px; font-size: 15px; color: var(--sp-soft); }
.status.ok { color: #bfe6c8; } .status.bad { color: #ffc9b8; }
.btn:disabled { opacity: .75; cursor: default; transform: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(10,16,38,.25); border-top-color: #0a1026; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 880px) { .contact .grid { grid-template-columns: minmax(0, 1fr); } }


/* Scroll motion */
.words .w { display: inline-block; opacity: .08; filter: blur(8px); transform: translateY(.18em); transition: opacity .6s var(--sp-ease), filter .6s var(--sp-ease), transform .6s var(--sp-ease); }
.words .w.on { opacity: 1; filter: none; transform: none; }
.screen.unveil { clip-path: inset(var(--ci, 0%) round 6px); transition: clip-path .1s linear; }
.card .screen.unveil { clip-path: inset(var(--ci, 0%)); }
.screen img { transform: translate3d(0, var(--py, 0), 0) scale(1.14); }
.screen:hover img { transform: translate3d(0, var(--py, 0), 0) scale(1.18); }
.film .num { transform: translate3d(0, var(--ny, 0), 0); }
.rule { transform-origin: top; transform: scaleY(var(--rs, 1)); }
@media (prefers-reduced-motion: reduce) {
  .hero-track { height: auto; } .hero { position: relative; } .hero-track + .quote { margin-top: 0; }
  .words .w { opacity: 1; filter: none; transform: none; transition: none; }
  .screen.unveil { clip-path: none; } .screen img { transform: none; }
}

/* Footer */
footer { border-top: 1px solid var(--sp-line); padding: 56px 0 40px; background: rgba(3,5,12,.6); color: var(--sp-mute); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer nav a { text-decoration: none; color: var(--sp-soft); display: inline-flex; gap: 6px; align-items: center; }
footer nav a:hover { color: var(--sp-ink); }
footer nav .ic { width: 14px; height: 14px; }

/* Inner pages: a quieter hero over the sky, then the content */
.phero { position: relative; padding: clamp(120px, 16vh, 170px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.phero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.04; margin: 16px auto 14px; max-width: 980px;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7ff 60%, var(--sp-glow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero .tag { font: italic 400 clamp(20px, 2.2vw, 26px)/1.4 var(--sp-serif); color: var(--sp-glow); margin: 0 0 24px; }
.phero .meta { justify-content: center; margin-bottom: 0; }
.phero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.phero.lost { min-height: 78vh; display: grid; align-content: center; }
.phero .eyebrow .fig { font: 500 15px/1 var(--sp-sans); letter-spacing: .3em; }
.player { margin-top: clamp(32px, 4vw, 52px); }
.player .screen { max-width: 1080px; margin: 0 auto; }
.meta .chip { padding: 5px 12px; }
.fbody .grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.prose p { color: var(--sp-soft); font-size: 17.5px; }
.prose .eyebrow { margin-bottom: 18px; }
.prose .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.credits-card { padding: 32px 34px; border: 1px solid var(--sp-line); border-radius: 12px; background: var(--sp-card); position: sticky; top: 100px; }
.credits-card .credits { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; padding-top: 0; border-top: 0; }
.credits-card .copy { margin: 24px 0 0; color: var(--sp-mute); font-size: 13px; }
.credits.wide { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto; }
.makers .credits.wide { margin-top: clamp(44px, 6vw, 76px); }
.nextfilm { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 18px; text-decoration: none;
  padding: 18px; border-radius: 14px; border: 1px solid var(--sp-line); background: var(--sp-card); transition: border-color .4s, transform .5s var(--sp-ease); }
.nextfilm:hover { border-color: rgba(163,149,255,.45); transform: translateY(-3px); }
.nextfilm .frame { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.nextfilm img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--sp-ease); }
.nextfilm:hover img { transform: scale(1.05); }
.nextfilm .txt { display: grid; gap: 12px; }
.nextfilm .t { font: 400 clamp(26px, 3vw, 38px)/1.15 var(--sp-serif); color: var(--sp-ink); }
.nextfilm .link { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--sp-sans); color: var(--sp-gold); }
.allfilms { margin-top: 28px; text-align: center; }
.support .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.support .ctas { justify-content: center; }
.sign { margin-top: 28px; color: var(--sp-mute); }
.sign span { display: block; font: italic 400 26px/1.3 var(--sp-serif); color: var(--sp-ink); }
@media (max-width: 880px) {
  .fbody .grid, .nextfilm { grid-template-columns: minmax(0, 1fr); }
  .credits-card { position: static; }
  .credits.wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .credits.wide { grid-template-columns: minmax(0, 1fr); } }

/* Frames from the film: a strip that drifts slowly and without end (the frames are repeated once for the loop);
   it rests while the pointer is on it. With reduced motion, or without scripts, it is a strip to swipe. */
.frames { padding: 0 0 clamp(40px, 6vw, 80px); }
.frames .eyebrow { margin-bottom: 18px; }
.strip { overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip .run { display: flex; gap: 14px; width: max-content; padding: 0 var(--sp-gutter); }
.strip img { flex: none; width: min(78vw, 520px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px;
  box-shadow: 0 0 0 1px var(--sp-line); background: #000; }
.strip.drift { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip.drift .run { padding: 0; animation: drift-strip var(--dur, 70s) linear infinite; }
.strip.drift:hover .run { animation-play-state: paused; }
@keyframes drift-strip { to { transform: translate3d(calc(-50% - 7px), 0, 0); } }

/* Parts of a film: a slim line under the player; pressing a part starts the film there */
.chapters { display: flex; gap: 4px; max-width: 1080px; margin: 22px auto 0; text-align: left; }
.chapters { align-items: flex-start; }
.chap { flex: var(--w) 1 0; min-width: 96px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; font: inherit;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.chap i { display: block; height: 5px; border-radius: 3px; background: rgba(156,192,255,.22); transition: background .5s, box-shadow .5s; }
.chap span { display: block; margin-top: 10px; font: 500 12.5px/1.35 var(--sp-sans); color: var(--sp-mute); transition: color .4s; padding-right: 8px; }
.chap small { display: block; font: 500 12px/1.7 var(--sp-sans); color: var(--sp-mute); opacity: .7; }
.chap:hover i { background: rgba(156,192,255,.55); } .chap:hover span { color: var(--sp-soft); }
.chap.on i { background: linear-gradient(90deg, var(--sp-dawn), var(--sp-gold)); box-shadow: 0 0 18px rgba(233,196,124,.6); }
.chap.on span { color: var(--sp-ink); }
@media (max-width: 880px) {
  .chapters { flex-direction: column; gap: 12px; margin-top: 26px; }
  .chap { display: grid; grid-template-columns: 5px 1fr auto; gap: 0 14px; align-items: baseline; min-width: 0; }
  .chap i { height: 100%; min-height: 20px; width: 5px; align-self: stretch; } .chap span { margin: 0; font-size: 15px; } .chap small { font-size: 13px; }
}

/* A line to carry: one short line between sections, surfacing word by word */
.carry { padding: clamp(36px, 6vw, 80px) 0; text-align: center; }
.carry blockquote { margin: 0 auto; max-width: 900px; font: italic 400 clamp(28px, 4vw, 52px)/1.18 var(--sp-serif); color: var(--sp-ink); }
.carry cite { display: block; margin-top: 22px; font: 600 11px/1.4 var(--sp-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--sp-gold); font-style: normal; }

/* Sound, only if asked for */
.sound { position: fixed; left: 16px; bottom: 16px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px;
  border-radius: 999px; border: 1px solid var(--sp-line); background: rgba(3,5,12,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--sp-soft); font: 600 13px/1 var(--sp-sans); letter-spacing: .06em; cursor: pointer; transition: border-color .3s, color .3s; }
.sound:hover { border-color: var(--sp-glow); color: var(--sp-ink); }
.sound[aria-pressed="true"] { border-color: rgba(233,196,124,.6); color: var(--sp-dawn); }

/* The entry: the Sopānam Mediatrix ident over the home page, once per visit. Enter starts the music softly.
   The page is whole underneath; without scripts the veil never shows. */
.gate-screen { display: none; }
html.gate .gate-screen { display: grid; position: fixed; inset: 0; z-index: 100; place-items: center; background: #000; overflow: hidden;
  transition: opacity 1.6s ease, visibility 0s linear 1.6s; }
html.gate.gate-out .gate-screen { opacity: 0; visibility: hidden; pointer-events: none; }
html.gate:not(.gate-out) body { overflow: hidden; }
html.gate:not(.gate-out) .nav, html.gate:not(.gate-out) .sound { visibility: hidden; }
html.gate:not(.gate-out) .hero * { animation-play-state: paused !important; }
.gate-rays { position: absolute; inset: 0; opacity: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 .9%, rgba(255,255,255,.10) .9% 1.5%, rgba(255,255,255,0) 1.5% 3.1%, rgba(255,255,255,.06) 3.1% 4.4%, rgba(255,255,255,0) 4.4% 6.9%),
    linear-gradient(90deg, #000 16%, rgba(150,150,150,.5) 50%, #000 84%);
  -webkit-mask-image: linear-gradient(90deg, transparent 14%, #000 42%, #000 58%, transparent 86%); mask-image: linear-gradient(90deg, transparent 14%, #000 42%, #000 58%, transparent 86%); }
#gateMotes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
/* first part: the figure fills with blue from the head down, over "Loading..." */
.gate-load { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(18px, 3vh, 30px); transition: opacity .7s ease; }
.gate-fig { position: relative; height: min(34vh, 300px); aspect-ratio: 433 / 1549; opacity: 0; animation: gateFade .7s ease .1s forwards; }
.gate-fig span { position: absolute; inset: 0; } .gate-fig svg { width: 100%; height: 100%; display: block; }
.gate-fig .w { color: #fff; } /* the blue comes down with a soft edge, easing in and out (--gp is how far it has reached) */
@property --gp { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.gate-fig .b { color: #477afe; -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--gp) - 12%), transparent var(--gp)); mask-image: linear-gradient(to bottom, #000 calc(var(--gp) - 12%), transparent var(--gp));
  animation: gateFill 2.8s cubic-bezier(.45, .05, .25, 1) .45s forwards; }
.gate-fig path { fill: currentColor; }
.gate-loading { margin: 0; height: 52px; display: flex; align-items: center; justify-content: center; white-space: nowrap; font: 700 clamp(15px, 1.5vw, 19px)/1 "Courier New", Courier, monospace; color: #fff; opacity: 0;
  animation: gateFade .4s ease .1s forwards; transition: opacity .25s ease; }
.gate-loading span { display: inline-block; width: 3ch; text-align: left; }
.gate-load .btn { position: absolute; bottom: 0; min-width: 190px; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.gate-skip { position: absolute; top: calc(100% + 18px); background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--sp-mute); font: 500 13px/1 var(--sp-sans); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .6s ease .5s, color .3s; }
.gate-skip:hover { color: #fff; }
.gate-ready .gate-skip:not([hidden]) { opacity: 1; pointer-events: auto; }
.gate-ready .gate-loading { opacity: 0 !important; animation: none; }
.gate-ready .gate-load .btn { opacity: 1; pointer-events: auto; }
/* second part, on Enter: the name, its line, MEDIATRIX, the motes, Auroville and the address, then the shaft of light */
.gate-ident { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: clamp(22px, 5vh, 54px); pointer-events: none; }
.gate-auro { width: clamp(150px, 17vw, 250px); height: auto; opacity: 0; } .gate-auro path { fill: #fff; }
.gate-lock { margin: 0; display: inline-grid; justify-items: center; color: #fff; }
.gate-lock .n { font: 400 clamp(46px, 8.4vw, 104px)/1 var(--sp-serif); letter-spacing: .02em; opacity: 0; }
.gate-lock .r { width: 118%; height: 1px; background: #fff; margin: clamp(8px, 1.1vw, 14px) 0 clamp(10px, 1.3vw, 16px); transform: scaleX(0); transform-origin: left; }
.gate-lock .m { font: 400 clamp(14px, 2.5vw, 30px)/1 var(--sp-serif); letter-spacing: .62em; margin-right: -.62em; opacity: 0; }
.gate-url { margin: 0; font: 400 clamp(13px, 1.5vw, 19px)/1 Helvetica, Arial, sans-serif; letter-spacing: .12em; color: #fff; opacity: 0; }
.gate-live .gate-load { opacity: 0; pointer-events: none; }
.gate-live .gate-lock .n { animation: gateName 2s ease .5s forwards; }
.gate-live .gate-lock .r { animation: gateRule 1.3s ease-out .5s forwards; }
.gate-live .gate-lock .m { animation: gateFade 1.2s ease 1.5s forwards; }
.gate-live #gateMotes { animation: gateFade 1.5s ease 1.5s forwards; }
.gate-live .gate-auro, .gate-live .gate-url { animation: gateFade 1.4s ease 2.2s forwards; }
.gate-live .gate-rays { animation: gateFade 3.2s ease-in 3.6s forwards; }
@keyframes gateFade { to { opacity: 1; } }
@keyframes gateFill { to { --gp: 112%; } }
@keyframes gateName { from { opacity: 0; color: #555; } to { opacity: 1; color: #fff; } }
@keyframes gateRule { to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .gate-fig, .gate-loading { animation: none; opacity: 1; } .gate-fig .b { animation: none; -webkit-mask-image: none; mask-image: none; }
  html.gate .gate-screen { transition: none; }
}

/* Lights down: while a film plays the page goes dark around it, with a soft light from the screen */
.ld-hole { position: fixed; z-index: 60; pointer-events: none; border-radius: 8px; opacity: 0; transition: opacity 1.4s ease;
  box-shadow: 0 0 110px 14px rgba(61,123,255,.30), 0 0 0 200vmax rgba(1,2,6,.9); }
.ld-up { position: fixed; z-index: 62; top: 18px; right: 18px; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
body.dim .ld-hole { opacity: 1; }
body.dim .ld-up { opacity: 1; pointer-events: auto; }
body.dim .nav, body.dim .sound { opacity: 0; pointer-events: none; }
.nav, .sound { transition: opacity .8s ease, background .4s, border-color .4s, color .3s; }

/* The stairway (sopāna): the four films as rising steps; a step lights once its film has been played on this device */
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; max-width: 860px; margin: 0 auto clamp(56px, 8vw, 96px); }
.step { position: relative; display: block; height: calc(96px + var(--i) * 40px); padding: 14px 14px; text-align: left; text-decoration: none; color: inherit;
  border-top: 1px solid var(--sp-line); border-radius: 6px 6px 0 0; background: linear-gradient(rgba(61,123,255,.10), transparent 85%);
  transition: border-color .8s, background .8s, box-shadow .8s; }
.step b { display: block; font: 400 30px/1 var(--sp-serif); color: transparent; -webkit-text-stroke: 1px rgba(156,192,255,.6); transition: all .8s; }
.step span { display: block; margin-top: 8px; font: 500 13px/1.4 var(--sp-sans); color: var(--sp-mute); transition: color .8s; }
.step:hover { border-top-color: var(--sp-glow); } .step:hover span { color: var(--sp-soft); }
.step.lit { border-top-color: var(--sp-gold); background: linear-gradient(rgba(233,196,124,.20), transparent 85%); box-shadow: 0 -18px 50px -22px rgba(233,196,124,.7); }
.step.lit b { color: var(--sp-dawn); -webkit-text-stroke: 0; }
.step.lit span { color: var(--sp-ink); }
.step.next { border-top-color: var(--sp-glow); }
.stairs-say { grid-column: 1 / -1; margin: 14px 0 0; text-align: center; font: italic 400 19px/1.4 var(--sp-serif); color: var(--sp-glow); min-height: 1.4em; }
@media (max-width: 620px) { .stairs { gap: 6px; } .step { padding: 10px 8px; height: calc(84px + var(--i) * 26px); } .step b { font-size: 24px; } .step span { font-size: 11.5px; } }

/* The top of an inner page shows at once: no fade-in on what is already on screen */
.phero .reveal { opacity: 1; transform: none; transition: none; }

/* The sky follows the visitor's own time of day: a breath of gold on the horizon at dawn, a cool light by day,
   violet at dusk, deep night otherwise */
.tod { position: absolute; inset: 0; opacity: 0; transition: opacity 3s ease; }
.tod[data-tod="dawn"] { opacity: 1; background: radial-gradient(120% 60% at 50% 108%, rgba(255,196,120,.30), rgba(255,150,120,.10) 45%, transparent 70%); }
.tod[data-tod="day"] { opacity: 1; background: radial-gradient(130% 80% at 50% 110%, rgba(120,170,255,.20), transparent 70%); }
.tod[data-tod="dusk"] { opacity: 1; background: radial-gradient(120% 60% at 50% 108%, rgba(190,120,255,.26), rgba(255,140,150,.09) 45%, transparent 70%); }
