/* ==========================================================
   Kollywood Games: shared styles for the landing and legal pages
   Theme: classic Tamil cinema banners, film reels, spotlights
   ========================================================== */

/* ---------- Design tokens (light) ---------- */
:root {
  --indigo: #1B1446;
  --gold: #FFC23C;
  --pink: #E3336B;
  --teal: #139488;
  --paper: #FFF8EC;

  --bg: var(--paper);
  --bg-alt: #FFEFD2;
  --surface: #FFFFFF;
  --ink: var(--indigo);
  --ink-soft: #4A4270;
  --line: var(--indigo);
  --shadow: var(--indigo);
  --pink-text: #B8204F;
  --teal-text: #0E7268;
  --on-accent: #FFFFFF;
  --ray: rgba(255, 194, 60, 0.28);
  --spot: rgba(255, 255, 255, 0.85);
  --screen: #2A2163;
  --focus: #E3336B;

  --font-display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Catamaran", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --outline: 3px solid var(--line);
  --offset: 5px 5px 0 var(--shadow);
  --offset-sm: 3px 3px 0 var(--shadow);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light;
}

/* ---------- Design tokens (dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120D33;
    --bg-alt: #1B1446;
    --surface: #221A55;
    --ink: #FFF8EC;
    --ink-soft: #D2CCF0;
    --line: #FFF8EC;
    --shadow: #E3336B;
    --pink-text: #FF7FA3;
    --teal-text: #4FD6C8;
    --ray: rgba(255, 194, 60, 0.08);
    --spot: rgba(255, 194, 60, 0.16);
    --screen: #0B0822;
    --focus: #FFC23C;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #120D33;
  --bg-alt: #1B1446;
  --surface: #221A55;
  --ink: #FFF8EC;
  --ink-soft: #D2CCF0;
  --line: #FFF8EC;
  --shadow: #E3336B;
  --pink-text: #FF7FA3;
  --teal-text: #4FD6C8;
  --ray: rgba(255, 194, 60, 0.08);
  --spot: rgba(255, 194, 60, 0.16);
  --screen: #0B0822;
  --focus: #FFC23C;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.2rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }

p { margin: 0 0 1em; }

a {
  color: var(--pink-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--indigo);
  padding: 10px 16px;
  border: var(--outline);
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: var(--outline);
  border-color: var(--indigo);
  border-radius: var(--radius);
  box-shadow: var(--offset);
  background: var(--gold);
  color: var(--indigo);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  color: var(--indigo);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--shadow);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.btn-pink {
  background: var(--pink);
  color: #FFFFFF;
}

.btn-pink:hover { color: #FFFFFF; }

.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.98rem;
  box-shadow: var(--offset-sm);
}

/* Store badge: styled like a store button, no official marks used */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 16px;
  background: #0E0A26;
  color: #FFFFFF;
  border: 3px solid var(--indigo);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--gold);
  text-decoration: none;
  line-height: 1.15;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

:root[data-theme="dark"] .store-badge { border-color: #FFF8EC; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .store-badge { border-color: #FFF8EC; }
}

.store-badge:hover {
  color: #FFFFFF;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--gold);
}

.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.78rem; opacity: 0.85; }
.store-badge strong { display: block; font-size: 1.08rem; font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: var(--outline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  line-height: 1;
  white-space: nowrap;
}

.wordmark { min-height: 44px; }
.wordmark:hover { color: var(--ink); }
.wordmark img { width: 40px; height: 40px; }
.wordmark span span { color: var(--pink-text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

.site-nav a:not(.btn):hover {
  background: var(--bg-alt);
  text-decoration: underline;
  text-decoration-color: var(--pink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: var(--outline);
  border-radius: 12px;
  box-shadow: var(--offset-sm);
  cursor: pointer;
}

.icon-btn svg { width: 22px; height: 22px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: var(--outline);
  }

  .site-nav.is-open { display: flex; }

  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a:not(.btn) { width: 100%; font-size: 1.1rem; min-height: 48px; }
  .site-nav .btn { width: 100%; }
}

@media (min-width: 961px) {
  .site-nav .nav-cta { display: none; }
}

/* ---------- Decorative helpers ---------- */
.film-strip {
  height: 34px;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, var(--paper) 14px 30px, transparent 30px 44px) 0 7px / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 14px, var(--paper) 14px 30px, transparent 30px 44px) 0 19px / 100% 8px no-repeat,
    var(--indigo);
  border-block: 3px solid var(--indigo);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  background: var(--teal);
  color: #FFFFFF;
  border: var(--outline);
  border-color: var(--indigo);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transform: rotate(-2deg);
}

.eyebrow-pink { background: var(--pink); }
.eyebrow-gold { background: var(--gold); color: var(--indigo); }

.section {
  padding: clamp(56px, 9vw, 104px) 0;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
  isolation: isolate;
}

/* Sunburst rays like a hand-painted banner backdrop, plus a spotlight */
.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -2;
  background: repeating-conic-gradient(from 0deg at 70% 45%, var(--ray) 0deg 9deg, transparent 9deg 18deg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 45% 55% at 72% 45%, var(--spot), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }

.nowrap { white-space: nowrap; }

.hero h1 .highlight {
  display: inline-block;
  white-space: nowrap;
  margin: 0.08em 0;
  padding: 0.02em 0.28em 0.08em;
  background: var(--pink);
  color: #FFFFFF;
  border: var(--outline);
  border-color: var(--indigo);
  border-radius: 10px;
  box-shadow: var(--offset);
  transform: rotate(-1.5deg);
}

.hero .lead { max-width: 560px; margin: 18px 0 28px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* The single hero animation: a gentle float on the phone */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.hero-visual .phone {
  width: min(300px, 78vw);
  transform: rotate(2deg);
  animation: float 6s ease-in-out infinite;
}

.reel {
  position: absolute;
  width: clamp(80px, 12vw, 130px);
  height: auto;
  z-index: -1;
}

.reel-1 { left: -4%; top: 6%; }
.reel-2 { right: -2%; bottom: 4%; width: clamp(64px, 9vw, 100px); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
  .hero::before { background: repeating-conic-gradient(from 0deg at 50% 70%, var(--ray) 0deg 9deg, transparent 9deg 18deg); }
  .hero::after { background: radial-gradient(ellipse 70% 40% at 50% 72%, var(--spot), transparent 70%); }
}

/* ---------- Phone frames ---------- */
.phone {
  position: relative;
  aspect-ratio: 9 / 19;
  padding: 12px;
  background: var(--indigo);
  border: 3px solid var(--indigo);
  border-radius: 38px;
  box-shadow: 8px 8px 0 var(--gold), 8px 8px 0 3px var(--indigo);
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 30%;
  height: 18px;
  transform: translateX(-50%);
  background: var(--indigo);
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--screen);
  border-radius: 28px;
  color: #FFF8EC;
}

.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mock quiz screen shown until a real screenshot is added */
.mock {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 14px 16px;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.3;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}

.mock-pill {
  padding: 2px 10px;
  background: var(--gold);
  color: var(--indigo);
  border-radius: 999px;
  font-weight: 800;
}

.mock-scene {
  border: 3px solid #FFF8EC;
  border-radius: 14px;
  overflow: hidden;
  flex: none;
}

.mock-q {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  text-align: center;
}

.mock-options {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-options li {
  padding: 7px 10px;
  background: #FFF8EC;
  color: var(--indigo);
  border: 2px solid var(--indigo);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--pink);
  font-weight: 800;
}

.mock-options li.is-picked {
  background: var(--teal);
  color: #FFFFFF;
}

.mock-timer {
  height: 8px;
  margin-top: auto;
  background: rgba(255, 248, 236, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.mock-timer span {
  display: block;
  width: 64%;
  height: 100%;
  background: var(--pink);
}

/* Screenshot placeholder slot */
.shot-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 20px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 194, 60, 0.12) 0 12px, transparent 12px 24px),
    var(--screen);
  color: #FFF8EC;
  font-weight: 700;
}

.shot-slot svg { width: 44px; height: 44px; color: var(--gold); }

/* ---------- The game ---------- */
.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.banner-card {
  position: relative;
  padding: 18px;
  background: var(--gold);
  border: var(--outline);
  border-color: var(--indigo);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--pink), 8px 8px 0 3px var(--indigo);
  transform: rotate(-1.5deg);
  color: var(--indigo);
}

.banner-card .scene img {
  width: 100%;
  aspect-ratio: 963 / 537;
  object-fit: cover;
}

.banner-card .scene {
  border: 3px solid var(--indigo);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFF8EC;
}

.banner-card .caption {
  margin: 12px 4px 2px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-align: center;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.option-grid li { display: flex; }

.quiz-opt {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: #FFF8EC;
  color: var(--indigo);
  border: 3px solid var(--indigo);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--indigo);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.quiz-opt b { color: #B8204F; }

.quiz-opt:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--indigo);
}

.quiz-opt:disabled { cursor: default; }

.quiz-opt.is-correct {
  background: var(--teal);
  color: #FFFFFF;
  animation: pop 0.45s ease;
}

.quiz-opt.is-wrong {
  background: var(--pink);
  color: #FFFFFF;
  animation: shake 0.45s ease;
}

.quiz-opt.is-correct b,
.quiz-opt.is-wrong b { color: #FFFFFF; }

.quiz-opt.is-dimmed { opacity: 0.55; }

@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.quiz-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 14px;
  min-height: 44px;
}

.quiz-result {
  margin: 0;
  font-weight: 800;
  text-align: center;
}

.quiz-again {
  min-height: 44px;
  padding: 6px 16px;
  background: var(--indigo);
  color: #FFF8EC;
  border: 3px solid var(--indigo);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
}

.quiz-again[hidden] { display: none; }

/* Confetti burst for a correct answer */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.confetti span {
  position: absolute;
  left: 50%;
  top: 70%;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti 1.4s ease-out forwards;
}

@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-list .dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  background: var(--teal);
  color: #FFFFFF;
  border: 3px solid var(--indigo);
  border-radius: 50%;
}

.check-list .dot svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-grid .banner-card { order: 2; max-width: 520px; margin: 0 auto; width: 100%; }
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  height: 100%;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--offset);
}

.card p { color: var(--ink-soft); margin: 0; }

.card-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border: 3px solid var(--indigo);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--indigo);
  color: var(--indigo);
}

.card-icon svg { width: 30px; height: 30px; }
.bg-gold { background: var(--gold); }
.bg-pink { background: var(--pink); color: #FFFFFF; }
.bg-teal { background: var(--teal); color: #FFFFFF; }
.bg-paper { background: #FFF8EC; }

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ---------- How to play ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 22px 24px;
  background: var(--surface);
  border: var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: var(--offset);
}

/* Step numbers drawn as little film reels */
.step-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 50% 18%, var(--indigo) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 82%, var(--indigo) 0 5px, transparent 6px),
    radial-gradient(circle at 18% 50%, var(--indigo) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 50%, var(--indigo) 0 5px, transparent 6px),
    var(--gold);
  border: 3px solid var(--indigo);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--indigo);
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.step p { color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shots figure {
  margin: 0;
  max-width: 280px;
  width: 100%;
  justify-self: center;
}

.shots figure:nth-child(2) .phone { box-shadow: 8px 8px 0 var(--pink), 8px 8px 0 3px var(--indigo); }
.shots figure:nth-child(3) .phone { box-shadow: 8px 8px 0 var(--teal), 8px 8px 0 3px var(--indigo); }

.shots figcaption {
  margin-top: 22px;
  text-align: center;
  font-weight: 800;
}

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

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.facts div {
  padding: 14px 16px;
  background: var(--surface);
  border: var(--outline);
  border-radius: var(--radius);
}

.facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }

.facts dt {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mission {
  margin: 28px 0 0;
  padding: 22px 24px;
  background: var(--teal);
  color: #FFFFFF;
  border: 3px solid var(--indigo);
  border-radius: var(--radius-lg);
  box-shadow: var(--offset);
}

.mission p { margin: 0; font-size: 1.12rem; font-weight: 600; }
.mission h3 { color: #FFFFFF; }

.founder {
  padding: 28px 24px;
  background: var(--surface);
  border: var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 var(--gold), 8px 8px 0 3px var(--line);
}

.founder-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  background: var(--pink);
  color: #FFFFFF;
  border: 3px solid var(--indigo);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.founder-photo {
  width: 120px;
  height: 120px;
  margin-bottom: 18px;
  object-fit: cover;
  border: 3px solid var(--indigo);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--pink);
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.founder-role {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 12px;
  background: var(--gold);
  color: var(--indigo);
  border: 2px solid var(--indigo);
  border-radius: 999px;
  font-weight: 800;
}

.founder p { color: var(--ink-soft); }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 800;
}

.link-btn svg { width: 22px; height: 22px; }

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

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

/* ---------- Contact ---------- */
.contact-panel {
  padding: clamp(28px, 5vw, 56px);
  background: var(--indigo);
  color: #FFF8EC;
  border: 3px solid var(--indigo);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--pink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

:root[data-theme="dark"] .contact-panel { border-color: #FFF8EC; background: #0B0822; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact-panel { border-color: #FFF8EC; background: #0B0822; }
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg at 100% 0%, rgba(255, 194, 60, 0.07) 0deg 8deg, transparent 8deg 16deg);
}

.contact-panel h2 { color: var(--gold); }
.contact-panel .lead { color: #E4DFFA; max-width: 640px; }

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 18px;
  background: rgba(255, 248, 236, 0.06);
  border: 2px solid rgba(255, 248, 236, 0.35);
  border-radius: var(--radius);
}

.contact-list .label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--gold);
  font-weight: 800;
}

.contact-list .label svg { width: 20px; height: 20px; }

.contact-list a,
.contact-list address {
  color: #FFF8EC;
  font-style: normal;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact-list a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .contact-list { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 48px;
  background: var(--indigo);
  color: #E4DFFA;
  font-size: 0.98rem;
}

:root[data-theme="dark"] .site-footer { background: #0B0822; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer { background: #0B0822; }
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.site-footer .wordmark { color: #FFF8EC; }
.site-footer .wordmark span span { color: var(--gold); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #FFF8EC;
  font-weight: 700;
}

.footer-links a:hover { color: var(--gold); }

.site-footer p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal {
  padding: clamp(40px, 7vw, 80px) 0;
}

.legal .container { max-width: 820px; }

.draft-note {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: var(--gold);
  color: var(--indigo);
  border: 3px solid var(--indigo);
  border-radius: var(--radius);
  box-shadow: var(--offset-sm);
  font-weight: 700;
}

.legal h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }

.legal h2 {
  margin-top: 1.8em;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.legal h3 { margin-top: 1.4em; font-size: 1.15rem; }

.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 0.4em; }

.legal .meta { color: var(--ink-soft); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.98rem;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th { background: var(--bg-alt); }

.table-wrap { overflow-x: auto; }

.legal td a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .legal table,
  .legal tbody,
  .legal tr,
  .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { margin-bottom: 12px; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .legal td { border: 0; border-bottom: 1px solid var(--line); }
  .legal td:last-child { border-bottom: 0; }
  .legal td:first-child { background: var(--bg-alt); font-weight: 800; }
}

.toc {
  padding: 18px 22px;
  background: var(--surface);
  border: var(--outline);
  border-radius: var(--radius);
}

.toc ol { margin: 8px 0 0; padding-left: 1.3em; }
.toc a { display: inline-block; padding: 4px 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
