/* Shodh Sanskriti — Apple-inspired design system with CSS 3D.
   Principles: clarity (type + hierarchy), deference (content first), depth (materials, 3D, springs). */
:root {
  --bg: #fbfbfd;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.1);
  --accent: #b3541e;
  --accent-hover: #9a4515;
  --link: #a14a17;
  --indigo: #141a33;
  --indigo-2: #1d2547;
  --gold: #e3b766;
  --night: #000000;
  --night-ink: #f5f5f7;
  --night-muted: #a1a1a6;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --font-deva: "Noto Sans Devanagari", "Kohinoor Devanagari", "Devanagari Sangam MN", system-ui, sans-serif;

  --t-hero: clamp(3rem, 1.4rem + 5.2vw, 6.25rem);
  --t-1: clamp(2.25rem, 1.4rem + 3.8vw, 4.5rem);
  --t-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  --t-3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-small: 0.875rem;

  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 3rem);
  --section: clamp(5rem, 3.5rem + 6vw, 10rem);
  --max: 1200px;
  --radius-l: clamp(20px, 1rem + 1vw, 32px);
  --radius-m: 18px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 60px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --fast: 180ms;
  --slow: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  font: 400 var(--t-body)/1.5 var(--font);
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid rgba(179, 84, 30, 0.55); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.4em; font-weight: 700; color: inherit; }
h1 { letter-spacing: -0.03em; line-height: 1.04; }
h2 { letter-spacing: -0.025em; line-height: 1.08; }
h3 { letter-spacing: -0.015em; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
:lang(hi), .deva { font-family: var(--font-deva); letter-spacing: 0; }
h1:lang(hi) { line-height: 1.25; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }

/* ---------- Glass navigation ---------- */
.globalnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.globalnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand span { font-family: var(--font-deva); font-weight: 700; font-size: 1.15rem; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-2); font-size: 0.8125rem; padding: 8px 10px; border-radius: 999px; white-space: nowrap; transition: color var(--fast), background var(--fast); }
.site-nav a:hover { color: var(--ink); text-decoration: none; background: rgba(0, 0, 0, 0.05); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 300ms var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 44px; padding: 0.7em 1.4em; border-radius: 999px; border: 0;
  font: 500 1.0625rem/1 var(--font); letter-spacing: -0.01em; cursor: pointer;
  background: var(--accent); color: #fff;
  transition: background var(--fast), transform 100ms ease-out;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn.secondary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.secondary:hover { background: rgba(179, 84, 30, 0.08); color: var(--accent-hover); }
.btn.small { min-height: 32px; padding: 0.45em 0.95em; font-size: 0.8125rem; }
.site-nav .btn.small, .site-nav .btn.small:hover { color: #fff; }
.link-arrow { font-weight: 500; }
.link-arrow::after { content: " \203A"; font-size: 1.2em; line-height: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- Hero with 3D journal ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3rem, 2rem + 5vw, 7rem) 0 clamp(4rem, 3rem + 5vw, 8rem);
  background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--bg) 55%, #f3eee8 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 35% -10% -35% 30%; z-index: -1;
  background: url("img/glow.webp") center / cover no-repeat; opacity: 0.45; filter: blur(40px) saturate(120%);
  border-radius: 50%;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 1rem; text-transform: uppercase; }
.hero h1 { font-size: min(var(--t-hero), 15vw); margin-bottom: 0.1em; white-space: nowrap; }
.hero .tagline { font-size: var(--t-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.75em; }
.hero .tagline .deva { display: block; color: var(--muted); font-weight: 500; font-size: 0.72em; margin-top: 0.3em; }
.hero .lede { color: var(--ink-2); max-width: 36ch; margin-bottom: 2rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 2.25rem 0 0; padding: 0; }
.chips li {
  font-size: 0.8125rem; padding: 7px 14px; border-radius: 999px; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--hairline);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.chips strong { color: var(--ink); font-weight: 600; }

/* The 3D book (CSS only; site.js adds spring-smoothed pointer tilt) */
.stage { perspective: 1600px; perspective-origin: 50% 40%; display: grid; place-items: center; min-height: clamp(420px, 30vw + 280px, 640px); position: relative; }
.book {
  --w: clamp(190px, 11vw + 130px, 290px);
  --h: calc(var(--w) * 1.596); /* matches the printed cover, 1410 x 2250 */
  --t: calc(var(--w) * 0.12);
  --rx: 8deg; --ry: 28deg;
  width: var(--w); height: var(--h); position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.book > div { position: absolute; }
.book .front, .book .back { inset: 0; border-radius: 3px 8px 8px 3px; }
.book .front {
  transform: translateZ(calc(var(--t) / 2));
  background: #efe6d2 url("img/cover.webp") center / cover;
  box-shadow: inset 4px 0 8px rgba(60, 40, 10, 0.35), inset -1px 0 0 rgba(255, 255, 255, 0.4);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
  padding: 9% 8%; color: #fbecc9; overflow: hidden;
}
.book .front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 48%, transparent 62%);
  transform: translateX(var(--sheen, -20%));
}
.book .back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: #e9dec6; }
.book .spine {
  width: var(--t); height: var(--h); left: calc(50% - var(--t) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, #d6c7a2, #f1e7cf 45%, #d6c7a2);
  display: grid; place-items: center;
}
.book .spine span { writing-mode: vertical-rl; font-family: var(--font-deva); color: #b3141b; font-weight: 700; font-size: calc(var(--t) * 0.42); }
.book .pages {
  width: calc(var(--t) - 4px); height: calc(var(--h) - 8px); top: 4px; left: calc(50% - var(--t) / 2 + 2px);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f6f1e7 0 2px, #e2d9c6 2px 3px);
}
.book .top, .book .bottom {
  width: calc(var(--w) - 6px); height: calc(var(--t) - 4px); left: 0; top: calc(50% - var(--t) / 2 + 2px);
  background: repeating-linear-gradient(0deg, #f6f1e7 0 2px, #e2d9c6 2px 3px);
}
.book .top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 3px)); }
.book .bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 3px)); }
.floor-shadow {
  position: absolute; bottom: 3%; left: 50%; width: 62%; height: 44px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20, 26, 51, 0.38), transparent); filter: blur(8px); pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section.tint { background: var(--bg-2); }
.section.night { background: var(--night); color: var(--night-ink); }
.section.night p { color: var(--night-muted); }
.section.night a { color: var(--gold); }
.headline { text-align: center; max-width: 820px; margin: 0 auto clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.headline .eyebrow { margin-bottom: 0.75rem; }
.headline h2 { font-size: var(--t-1); }
.headline h2 .deva { display: block; font-size: 0.42em; color: var(--muted); font-weight: 600; margin-top: 0.4em; }
.section.night .headline h2 .deva { color: var(--night-muted); }
.headline p { font-size: var(--t-3); color: var(--muted); line-height: 1.4; margin: 0 auto; max-width: 40ch; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile {
  grid-column: span 2; background: var(--surface); border-radius: var(--radius-l); padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  box-shadow: var(--shadow-1); position: relative; overflow: hidden;
  transition: box-shadow 400ms var(--ease);
}
.tile:hover { box-shadow: var(--shadow-2); }
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile .icon { font-family: var(--font-deva); font-size: 2.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; background: linear-gradient(135deg, #e07a2f, #9b3d8a 60%, #3c3aa8); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.tile h3 { font-size: var(--t-3); }
.tile p { color: var(--muted); margin: 0; }
.tile.dark { background: var(--indigo); color: #fff; }
.tile.dark p { color: #c9cbe0; }
.big-number { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.25em; background: linear-gradient(135deg, #f6c56b, #e07a2f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 1.25rem 0 0; padding: 0; }
.tags li { font-size: 0.875rem; padding: 7px 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }

/* Issues — shelf of 3D books */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.issue { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-1); overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.issue .stage { min-height: 100%; padding: 2.5rem 1rem; background: linear-gradient(160deg, #eef0f8, #f7efe6); perspective: 1000px; }
.issue .book { --w: clamp(110px, 5vw + 85px, 150px); --ry: 24deg; --rx: 6deg; }
.issue .floor-shadow { width: 70%; height: 26px; bottom: 8%; }
.issue .body { padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.issue .vol { font-size: var(--t-small); color: var(--accent); font-weight: 600; margin-bottom: 0.25rem; }
.issue h3 { font-size: var(--t-3); margin-bottom: 0.75rem; }
.toc { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: a; }
.toc li { counter-increment: a; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); padding: 0.6rem 0; border-top: 1px solid var(--hairline); font-size: 0.95rem; line-height: 1.45; }
.toc li::before { content: counter(a, decimal-leading-zero); color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; padding-top: 0.15em; }
.toc strong { display: block; font-weight: 600; }
.toc em { display: block; font-style: normal; color: var(--muted); font-size: 0.85rem; }

/* Cinematic image band with parallax */
.cinema { position: relative; overflow: hidden; background: #000; color: #f5f5f7; min-height: clamp(540px, 40vw + 300px, 760px); display: grid; align-items: center; }
.cinema img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 70% 50%; }
.cinema::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.05) 85%); }
.cinema .wrap { position: relative; z-index: 1; }
.cinema h2 { font-size: var(--t-1); max-width: 13ch; }
.cinema p { color: #c7c7cc; max-width: 40ch; font-size: var(--t-3); line-height: 1.4; }
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.5rem; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -0.03em; line-height: 1; }
.stats span { color: #a1a1a6; font-size: var(--t-small); margin-top: 0.4rem; }

/* Submission */
.submit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.panel { background: var(--surface); border-radius: var(--radius-l); padding: clamp(1.5rem, 1rem + 2vw, 3rem); box-shadow: var(--shadow-1); }
.panel h3 { font-size: var(--t-2); }
.checklist { list-style: none; margin: 1rem 0 1.5rem; padding: 0; }
.checklist li { padding: 0.65rem 0 0.65rem 2rem; position: relative; border-top: 1px solid var(--hairline); color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.9rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.mail-panel { background: linear-gradient(160deg, var(--indigo), #2a1f3d 70%, #4a2420); color: #fff; }
.mail-panel p, .mail-panel li { color: #d4d6e8; }
.mail-panel .address { display: inline-block; font-size: var(--t-3); font-weight: 600; color: var(--gold); margin: 0.25rem 0 1rem; word-break: break-all; }
.mail-panel ol { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.mail-panel ol li { margin-bottom: 0.4rem; }
.mail-panel .btn { background: #fff; color: var(--indigo); }
.mail-panel .btn:hover { background: #f1e6d4; color: var(--indigo); }
.note { font-size: var(--t-small); color: var(--muted); margin: 1.25rem 0 0; }
.mail-panel .note { color: #b4b7cf; }
.mail-panel .note a { color: var(--gold); }

.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius-m); padding: 1.25rem; box-shadow: var(--shadow-1); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.9rem; }
.steps h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.steps p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.steps .dur { display: block; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-top: 0.6rem; }
.deadlines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.deadlines div { background: var(--surface); border-radius: var(--radius-m); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-1); }
.deadlines dt { font-size: 0.8rem; color: var(--muted); }
.deadlines dd { margin: 0.2rem 0 0; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.person { background: var(--surface); border-radius: var(--radius-m); padding: 1.5rem; box-shadow: var(--shadow-1); transition: box-shadow 400ms var(--ease); }
.person:hover { box-shadow: var(--shadow-2); }
.person .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #e07a2f, #9b3d8a 60%, #3c3aa8); margin-bottom: 1rem; font-size: 1.05rem; letter-spacing: 0; }
.person h3 { font-size: 1.15rem; margin-bottom: 0.15rem; }
.person .role { color: var(--accent); font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.6rem; }
.person p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.25rem; line-height: 1.45; }
.person a { font-size: 0.9rem; word-break: break-all; }
.more { margin-top: 2rem; text-align: center; }

/* FAQ */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-size: var(--t-3); font-weight: 600; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1.25rem; margin: 0; max-width: 64ch; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.glass {
  border-radius: var(--radius-l); padding: 1.75rem; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.glass h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--night-muted); }
.glass .big { font-size: var(--t-3); font-weight: 600; color: var(--night-ink); margin: 0 0 0.3rem; word-break: break-word; }
.glass .big a { color: var(--night-ink); }
.section.night .btn.secondary { color: var(--night-ink); }
.section.night .btn.secondary:hover { background: rgba(255, 255, 255, 0.1); }
.section.night .actions { justify-content: center; margin-top: 2.5rem; }
.section.night .note { text-align: center; color: var(--night-muted); }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(3.5rem, 2.5rem + 4vw, 7rem) 0 clamp(2rem, 1.5rem + 2vw, 3.5rem); text-align: center; background: radial-gradient(100% 90% at 50% 0%, #fff, var(--bg)); }
.page-hero h1 { font-size: var(--t-1); }
.page-hero p { font-size: var(--t-3); color: var(--muted); max-width: 46ch; margin: 0 auto; line-height: 1.4; }
.crumbs { font-size: var(--t-small); color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.prose { padding-bottom: var(--section); }
.content-section { background: var(--surface); border-radius: var(--radius-l); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); box-shadow: var(--shadow-1); margin-bottom: 20px; }
.content-section h2 { font-size: var(--t-2); margin-bottom: 0.6em; }
.content-section h3 { font-size: 1.15rem; margin: 1.4rem 0 0.5rem; }
.content-section p, .content-section li { color: var(--ink-2); }
.content-section ul, .content-section ol { padding-left: 1.25rem; margin: 0 0 1em; }
.content-section li { margin-bottom: 0.45rem; }
.content-section li::marker { color: var(--accent); }
.content-section table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.content-section th, .content-section td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--hairline); }
.content-section th { font-weight: 600; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin-top: 1rem; }
.stat { background: var(--bg-2); border-radius: var(--radius-m); padding: 1.25rem; text-align: center; }
.stat p { margin: 0; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--accent) !important; }
.decision { display: flex; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--hairline); }
.decision-label { font-weight: 600; min-width: 9rem; color: var(--ink); }
.callout { background: linear-gradient(160deg, #fff7ef, #f6f0ff); border-radius: var(--radius-l); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); margin-bottom: 20px; }
.callout p:last-child { margin-bottom: 0; }
.prose .panel { margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); color: var(--muted); font-size: 0.8125rem; padding: 2.5rem 0 2rem; border-top: 1px solid var(--hairline); }
.site-footer a { color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--hairline); }
.footer-grid h2 { font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-bottom: 0.75rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid address { font-style: normal; line-height: 1.7; }
.footer-brand .deva { font-size: 1.4rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: 0.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding-top: 1.25rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin: 0; padding: 0; }

/* ---------- Reveal on scroll (site.js adds .js on <html> and .is-in on elements) ---------- */
.js .reveal { opacity: 0; transform: translateY(32px) scale(0.985); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 80ms; }
.js .reveal[data-delay="2"] { transition-delay: 160ms; }
.js .reveal[data-delay="3"] { transition-delay: 240ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 56px 0 auto 0; max-height: calc(100dvh - 56px); overflow-y: auto;
    background: rgba(251, 251, 253, 0.98); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 250ms var(--ease), transform 350ms var(--ease), visibility 0s linear 350ms;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 250ms var(--ease), transform 350ms var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1.5rem; gap: 0; }
  .site-nav a { font-size: 1.25rem; font-weight: 600; color: var(--ink); padding: 0.85rem 0; border-radius: 0; border-bottom: 1px solid var(--hairline); }
  .site-nav a:hover { background: none; }
  .site-nav .btn.small { margin-top: 1.25rem; min-height: 48px; font-size: 1.0625rem; border-radius: 999px; border: 0; padding: 0.8em; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .actions, .chips { justify-content: center; }
  .stage { order: -1; min-height: clamp(400px, 95vw, 560px); }
  .hero::before { inset: 0 -20% 40% -20%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.half { grid-column: span 1; }
  .tile.wide { grid-column: span 2; }
  .shelf, .submit-grid, .contact-cards { grid-template-columns: 1fr; }
  .deadlines { grid-template-columns: 1fr 1fr; }
  .cinema { align-items: end; padding-bottom: 3rem; }
  .cinema::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.15) 100%); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.half { grid-column: span 1; }
  .issue { grid-template-columns: 1fr; }
  .issue .stage { min-height: 330px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .decision { flex-direction: column; gap: 0.15rem; }
  .content-section thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .content-section tr, .content-section td { display: block; }
  .content-section tr { border-top: 1px solid var(--hairline); padding: 0.6rem 0; }
  .content-section td { border: 0; padding: 0.15rem 0; }
  .content-section td:first-child { font-weight: 600; color: var(--ink); }
}
@media (max-width: 380px) {
  .deadlines { grid-template-columns: 1fr; }
  .stats { gap: 1.5rem; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .globalnav, .site-nav { background: var(--bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .glass, .chips li { background: #1c1c1e; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .chips li { background: #fff; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3a3a3c; --hairline: rgba(0, 0, 0, 0.35); }
  .tile, .panel, .person, .content-section, .issue, .steps li, .deadlines div { box-shadow: none; border: 1px solid #000; }
}
@media print {
  .globalnav, .site-footer, .stage, .cinema img { display: none !important; }
  .content-section, .tile, .panel { box-shadow: none; border: 1px solid #ccc; }
}
