/* ==========================================================================
   LKNOG-10 — main stylesheet
   1. Tokens          6. Hero              11. Venues
   2. Base            7. Sections          12. Contact & forms
   3. Utilities       8. About             13. Inner pages
   4. Buttons         9. Schedule          14. Footer
   5. Header / nav   10. Sponsors          15. Motion & responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --page-bg: #04111d;   /* page background; NOT redefined inside always-dark zones */

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --green: #1f5f3d;
  --green-bright: #2f8f5b;
}

/* Dark palette (default). Also re-applied inside "always dark" zones when the light theme is on:
   photo heroes, the terminal card, the footer, CTA bands, and the header while it floats over the hero. */
:root,
[data-theme="light"] :is(.hero, .page-hero, .site-footer, .terminal, .sponsor-cta, .apply-card, .section-gallery,
  .site-header.is-transparent:not(.is-scrolled):not(.nav-open)) {
  color-scheme: dark;
  --bg: #04111d;
  --bg-alt: #071927;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --green-glow: #45c47f;
  --green-soft: rgba(47, 143, 91, 0.16);
  --link-hover: #7ee0a8;

  --text: #ffffff;
  --heading: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.86);
  --text-muted: rgba(255, 255, 255, 0.64);

  /* LKNOG logo colours — also code the three workshops */
  --yellow: #f2b631;
  --blue: #3d8ee0;
  --red: #e5584c;
  --soon: #9cc8f5;
  --success: #45c47f;
  --danger: #ff7a6e;
  --alert-success-fg: #d9f6e6;
  --alert-error-fg: #ffe1dd;

  --header-bg: rgba(4, 17, 29, 0.9);
  --menu-bg: rgba(4, 17, 29, 0.98);
  --card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --field-bg: rgba(2, 10, 18, 0.55);
  --field-bg-focus: rgba(2, 10, 18, 0.75);
  --field-hover: rgba(255, 255, 255, 0.3);
  --placeholder: rgba(255, 255, 255, 0.35);
  --option-bg: #0b1d2a;
  --tab-track: rgba(0, 0, 0, 0.25);
  --ghost-fg: #ffffff;
  --ghost-border: rgba(255, 255, 255, 0.35);
  --ghost-bg: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

/* Light palette — greens/ambers are darker so text keeps 4.5:1 contrast on white. */
[data-theme="light"] {
  color-scheme: light;
  --page-bg: #f4f7f5;
  --bg: #f4f7f5;
  --bg-alt: #e9f0ec;
  --surface: #ffffff;
  --surface-strong: #f7faf8;
  --line: rgba(11, 31, 22, 0.10);
  --line-strong: rgba(11, 31, 22, 0.18);

  --green-glow: #1f7a4b;
  --green-soft: rgba(47, 143, 91, 0.12);
  --link-hover: #155c37;

  --text: #0b1f16;
  --heading: #0b1f16;
  --text-soft: #2b3c33;
  --text-muted: #5a6b62;

  --yellow: #b7791f;
  --blue: #2a6fc0;
  --red: #c8402f;
  --soon: #1d5fa8;
  --success: #1f7a4b;
  --danger: #c0392b;
  --alert-success-fg: #14492d;
  --alert-error-fg: #7a1a12;

  --header-bg: rgba(255, 255, 255, 0.92);
  --menu-bg: rgba(255, 255, 255, 0.98);
  --card-gradient: linear-gradient(180deg, #ffffff, #fafcfb);
  --field-bg: #ffffff;
  --field-bg-focus: #ffffff;
  --field-hover: rgba(11, 31, 22, 0.32);
  --placeholder: rgba(11, 31, 22, 0.38);
  --option-bg: #ffffff;
  --tab-track: rgba(11, 31, 22, 0.05);
  --ghost-fg: #0b1f16;
  --ghost-border: rgba(11, 31, 22, 0.28);
  --ghost-bg: rgba(255, 255, 255, 0.7);
  --shadow: 0 14px 32px rgba(11, 31, 22, 0.08);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green-glow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.15; font-weight: 700; }
p + p { margin-top: 0.9em; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
sup { font-size: 0.6em; }

:focus-visible { outline: 2px solid var(--green-glow); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green-bright); color: #fff; }

/* 3. Utilities ------------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .hp-field {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hp-field { left: -9999px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--green-bright); color: #fff; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.text-accent { color: var(--green-glow); }
.mini-label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.mini-heading {
  margin: 28px 0 12px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.fine-print { margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.85rem; color: var(--text-soft); background: var(--surface);
}

.tick-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2345c47f' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tick-list.large li { font-size: 1.05rem; margin-bottom: 14px; }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--green-bright), var(--green));
  box-shadow: 0 8px 24px rgba(47, 143, 91, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 30px rgba(69, 196, 127, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-ghost { color: var(--ghost-fg); border-color: var(--ghost-border); background: var(--ghost-bg); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--ghost-fg); border-color: var(--green-glow); background: var(--green-soft); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.7; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* 5. Header / nav ---------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-transparent { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-header.is-transparent.is-scrolled,
.site-header.is-transparent.nav-open { background: var(--header-bg); border-bottom-color: var(--line); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  display: inline-flex; padding: 6px 12px; background: rgba(255, 255, 255, 0.94);
  border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.brand-logo img { height: 34px; width: auto; }
.brand-edition {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  box-shadow: 0 0 18px rgba(69, 196, 127, 0.35);
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 0.93rem; font-weight: 500; color: var(--text-soft); text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--green-glow); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--heading); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { white-space: nowrap; }
.nav-cta .is-current { border-color: var(--green-glow); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--ghost-bg); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 18px; height: 2px; border-radius: 2px; background: var(--heading);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--ghost-border); background: var(--ghost-bg); color: var(--heading); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--green-glow); background: var(--green-soft); }
.theme-toggle:active { transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
/* Show the icon of the theme you would switch TO */
.theme-toggle .icon-moon, [data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* "Registration Open Soon": same button, quieter, with a pulsing dot */
.btn.is-soon { gap: 8px; }
.btn.is-soon::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0.9;
  animation: softPulse 2s ease-in-out infinite;
}
@keyframes softPulse { 50% { opacity: 0.35; } }

/* 6. Hero (carried over from the original landing page) -------------------- */
.hero {
  position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 96px; overflow: hidden; isolation: isolate; background: var(--bg);
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg img { object-fit: cover; object-position: center; animation: bgFadeIn 1.8s ease-out both; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(3, 12, 23, 0.9) 0%, rgba(3, 12, 23, 0.7) 30%, rgba(3, 12, 23, 0.32) 55%, rgba(3, 12, 23, 0.12) 100%);
}
.hero-overlay::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 180px;
  background: linear-gradient(180deg, transparent, var(--page-bg));
}
.hero-overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(31, 95, 61, 0.24), transparent 38%),
    radial-gradient(circle at bottom right, rgba(47, 143, 91, 0.18), transparent 30%);
}
.hero-content { position: relative; animation: fadeUp 1.1s var(--ease) 0.3s both; }
.hero-content > * { max-width: 720px; }

.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(4px);
  font-size: clamp(0.74rem, 1vw, 0.85rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft);
}
.hero-title {
  font-size: clamp(3.2rem, 8vw, 7.2rem); line-height: 0.92; letter-spacing: -0.045em; font-weight: 700;
  margin-bottom: 16px; text-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
}
.highlight { color: #6ff0a4; text-shadow: 0 0 14px rgba(111, 240, 164, 0.35), 0 0 28px rgba(47, 143, 91, 0.3); }
.hero-date { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 2.3rem); font-weight: 600; color: var(--heading); margin-bottom: 10px; }
.hero-location { font-size: clamp(1rem, 1.3vw, 1.25rem); color: var(--text-soft); margin-bottom: 28px; }
.pipe { color: var(--green-bright); padding: 0 8px; font-weight: 700; }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(78px, 112px)); gap: 12px; margin-bottom: 32px; }
.count-box {
  padding: 16px 10px; border-radius: 18px; text-align: center;
  background: rgba(7, 16, 30, 0.45); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); backdrop-filter: blur(8px);
}
.count-number {
  display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 700; color: #fff; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.count-label { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--green-glow); animation: scrollDot 1.8s ease-in-out infinite;
}

/* 7. Sections -------------------------------------------------------------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 120px); }
.section-alt, .section-schedule, .section-contact { background: var(--bg-alt); }
.section-schedule::before, .section-contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(69, 196, 127, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.section > .container { position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-glow);
}
.hop {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px;
  border: 1px solid rgba(69, 196, 127, 0.45); border-radius: 6px; font-size: 0.72rem;
}
.section-kicker::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, var(--green-glow), transparent); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.section-intro { font-size: 1.08rem; color: var(--text-muted); max-width: 640px; }
.lead { font-size: 1.18rem; color: var(--text); margin-bottom: 16px; }

/* 8. About ----------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.terminal {
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
  background: #020a12; box-shadow: var(--shadow), 0 0 0 1px rgba(69, 196, 127, 0.08), 0 0 60px rgba(47, 143, 91, 0.12);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.terminal-bar span:nth-child(2) { background: var(--yellow); }
.terminal-bar span:nth-child(3) { background: var(--green-glow); }
.terminal-bar em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.terminal-body, .terminal-inline {
  padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: clamp(0.76rem, 1.4vw, 0.88rem);
  line-height: 1.8; color: #cfe9da; white-space: pre;
}
.t-prompt { color: var(--green-glow); font-weight: 600; }
.t-key { color: #8fb3a0; }
.t-up { color: var(--green-glow); font-weight: 600; }
.t-down { color: var(--red); font-weight: 600; }
.t-soon { color: var(--yellow); font-weight: 600; }
.t-cursor { display: inline-block; width: 9px; height: 1.1em; vertical-align: -0.2em; background: var(--green-glow); animation: blink 1s steps(1) infinite; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.stat {
  /* Number first, label below; both anchored to the top so numbers line up even when a label wraps. */
  display: flex; flex-direction: column; justify-content: flex-start; padding: 18px 12px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.stat dd { order: -1; }
.stat dd { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--heading); line-height: 1.1; }
.stat dt { font-size: 0.78rem; color: var(--text-muted); line-height: 1.3; margin-top: 4px; }

/* 9. Schedule -------------------------------------------------------------- */
.tab-list {
  display: inline-flex; gap: 6px; padding: 6px; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--tab-track);
}
.tab-list[hidden] { display: none; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; padding: 10px 22px; border: 0; border-radius: 13px;
  background: transparent; cursor: pointer; text-align: left; transition: background-color 0.2s, color 0.2s;
}
.tab-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-soft); }
.tab-date { font-size: 0.78rem; color: var(--text-muted); }
.tab:hover .tab-title { color: var(--heading); }
.tab[aria-selected="true"] { background: linear-gradient(135deg, var(--green-bright), var(--green)); box-shadow: 0 6px 20px rgba(47, 143, 91, 0.35); }
.tab[aria-selected="true"] .tab-title { color: #fff; }
.tab[aria-selected="true"] .tab-date { color: rgba(255, 255, 255, 0.85); }
.tab-panel + .tab-panel { margin-top: 64px; }
.tabs.is-enhanced .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel:focus-visible { outline-offset: 8px; }

.panel-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.meta-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); font-size: 0.9rem; color: var(--text-soft); text-decoration: none;
}
.meta-item svg { width: 16px; height: 16px; fill: var(--green-glow); }
.meta-link:hover { color: var(--heading); border-color: var(--green-glow); }

.workshop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.workshop-card {
  --accent: var(--green-glow);
  position: relative; display: flex; flex-direction: column; padding: 26px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card-gradient);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.workshop-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}
.workshop-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow); }
.accent-yellow { --accent: var(--yellow); }
.accent-blue { --accent: var(--blue); }
.accent-red { --accent: var(--red); }
/* Green family for the workshops: bright on dark, deeper on light (keeps text contrast) */
.accent-mint  { --accent: #7ee8a8; }
.accent-green { --accent: #3cc47c; }
.accent-teal  { --accent: #2fb8a2; }
[data-theme="light"] .accent-mint  { --accent: #22915a; }
[data-theme="light"] .accent-green { --accent: #16683f; }
[data-theme="light"] .accent-teal  { --accent: #127a6c; }
.workshop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.workshop-code {
  padding: 4px 10px; border-radius: 8px; font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem;
  color: #04111d; background: var(--accent);
}
[data-theme="light"] .workshop-code { color: #ffffff; }
.workshop-level { font-size: 0.8rem; color: var(--text-muted); }
.workshop-title { font-size: 1.3rem; margin-bottom: 10px; }
.workshop-summary { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 16px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.topic-list li {
  padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; color: var(--text-soft);
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.workshop-people { display: grid; gap: 10px; margin-bottom: 20px; }
.workshop-people .mini-label { margin-bottom: 2px; }
.workshop-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-muted);
}
.workshop-foot .link-arrow { color: var(--accent); }

.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-photo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-strong); }
.person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.person-name { font-weight: 600; color: var(--heading); font-size: 0.92rem; }
.person-org { font-size: 0.8rem; color: var(--text-muted); }

.day-plan { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.day-plan summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--heading); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.day-plan summary::-webkit-details-marker { display: none; }
.day-plan summary::after { content: "+"; font-size: 1.3rem; color: var(--green-glow); transition: transform 0.2s; }
.day-plan[open] summary::after { transform: rotate(45deg); }
.day-plan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; padding: 0 20px 20px; }
.day-plan-list li { display: flex; gap: 12px; font-size: 0.92rem; }
.day-plan-list time { font-family: var(--font-mono); color: var(--green-glow); }

.agenda { position: relative; }
.agenda-item { display: grid; grid-template-columns: 96px 28px 1fr; gap: 0 12px; }
.agenda-time { padding-top: 18px; text-align: right; font-family: var(--font-mono); line-height: 1.3; }
.agenda-time time { display: block; font-size: 1rem; font-weight: 600; color: var(--heading); }
.agenda-time span { font-size: 0.78rem; color: var(--text-muted); }
.agenda-node { position: relative; }
.agenda-node::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--line-strong); }
.agenda-item:first-child .agenda-node::before { top: 24px; }
.agenda-item:last-child .agenda-node::before { bottom: auto; height: 24px; }
.agenda-node::after {
  content: ""; position: absolute; left: 7px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--green-glow); box-shadow: 0 0 12px rgba(69, 196, 127, 0.45);
}
.agenda-card {
  margin-bottom: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color 0.2s, background-color 0.2s;
}
.agenda-card:hover { border-color: var(--line-strong); background: var(--surface-strong); }
.agenda-type {
  display: inline-block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-glow);
}
.agenda-title { font-size: 1.1rem; font-weight: 600; }
.agenda-people { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 14px; }

.type-keynote .agenda-card {
  border-color: rgba(69, 196, 127, 0.45);
  background: linear-gradient(135deg, rgba(47, 143, 91, 0.22), rgba(47, 143, 91, 0.04));
}
.type-keynote .agenda-title { font-size: 1.3rem; }
.type-keynote .agenda-node::after { background: var(--green-glow); width: 18px; height: 18px; left: 5px; top: 20px; }
.type-panel .agenda-type { color: var(--blue); }
.type-panel .agenda-node::after { border-color: var(--blue); box-shadow: 0 0 12px rgba(61, 142, 224, 0.45); }
.type-ceremony .agenda-type { color: var(--yellow); }
.type-ceremony .agenda-node::after { border-color: var(--yellow); box-shadow: 0 0 12px rgba(242, 182, 49, 0.45); }
.type-break .agenda-card, .type-registration .agenda-card {
  padding-block: 12px; border-style: dashed; background: transparent;
}
.type-break .agenda-title, .type-registration .agenda-title { font-size: 0.98rem; font-weight: 500; color: var(--text-soft); }
.type-break .agenda-type, .type-registration .agenda-type { color: var(--text-muted); }
.type-break .agenda-node::after, .type-registration .agenda-node::after { border-color: var(--text-muted); box-shadow: none; width: 10px; height: 10px; left: 9px; top: 24px; }

/* 10. Sponsors (light band so logos read well) ----------------------------- */
.section-sponsors { background: #f2f6f3; color: #3a4a42; }
.section-sponsors .section-title, .section-sponsors h3 { color: #0b1f16; }
.section-sponsors .section-intro { color: #5a6b62; }
.section-sponsors .section-kicker { color: var(--green); }
.section-sponsors .section-kicker::after { background: linear-gradient(90deg, var(--green), transparent); }
.section-sponsors .hop { border-color: rgba(31, 95, 61, 0.4); }
.section-sponsors .text-accent { color: var(--green); }

.sponsor-tier { margin-bottom: 44px; text-align: center; }
/* Centered tier label with a rule on each side */
.tier-name {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.tier-name::before, .tier-name::after { content: ""; flex: 1; height: 1px; background: rgba(11, 31, 22, 0.14); }
/* Flex + center so any number of logos sits in the middle of the row */
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.sponsor-card {
  display: grid; place-items: center; flex: 0 1 var(--card-w, 200px); min-height: var(--card-h, 110px);
  padding: 18px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid rgba(11, 31, 22, 0.08); box-shadow: 0 4px 16px rgba(11, 31, 22, 0.05);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.size-lg { --card-w: 300px; --card-h: 150px; --logo-h: 90px; }
.size-md { --card-w: 240px; --card-h: 124px; --logo-h: 72px; }
.size-sm { --card-w: 200px; --card-h: 110px; --logo-h: 64px; }
.sponsor-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11, 31, 22, 0.1); }
.sponsor-card a { display: grid; place-items: center; width: 100%; height: 100%; }
.sponsor-card img { max-height: var(--logo-h, 70px); max-width: 100%; width: auto; object-fit: contain; }
.sponsor-card.is-open {
  background: transparent; border: 1.5px dashed rgba(31, 95, 61, 0.3); box-shadow: none;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(31, 95, 61, 0.6);
}
.sponsor-card.is-open:hover { transform: none; border-color: var(--green); background: rgba(47, 143, 91, 0.06); }
.sponsor-card.is-open a { display: flex; flex-direction: column; justify-content: center; gap: 6px; text-decoration: none; color: inherit; text-align: center; }
.open-label { font-weight: 600; }
.open-cta { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0; text-transform: none; color: var(--green); opacity: 0; transition: opacity 0.2s; }
.sponsor-card.is-open:hover .open-cta, .sponsor-card.is-open a:focus-visible .open-cta { opacity: 1; }
@media (hover: none) { .open-cta { opacity: 1; } }
/* Supporting / Community / Fellowship partners side by side */
.partner-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.partner-row .sponsor-tier { margin-bottom: 40px; }
.partner-row .sponsor-grid { gap: 12px; }
.partner-row .sponsor-card { flex: 1 1 0; min-width: 0; padding: 14px; }

.sponsor-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); color: var(--text-soft);
  background: linear-gradient(135deg, #0b2a1d, var(--bg)); box-shadow: var(--shadow);
}
.section-sponsors .sponsor-cta h3 { color: var(--heading); font-size: 1.35rem; margin-bottom: 6px; }
.sponsor-cta p { color: var(--text-muted); max-width: 560px; }

/* 11. Venues --------------------------------------------------------------- */
.venue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.venue-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); scroll-margin-top: calc(var(--header-h) + 16px);
}
.map-frame { position: relative; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.venue-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.venue-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-glow); margin-bottom: 8px; }
.venue-name { font-size: 1.45rem; margin-bottom: 6px; }
.venue-address { color: var(--text-muted); margin-bottom: 16px; }
.venue-notes { margin-bottom: 20px; }
.venue-notes li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 0.95rem; }
.venue-notes li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); }
.venue-body .link-arrow { margin-top: auto; }

/* 12. Contact & forms ------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 20px; margin-top: 32px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg {
  width: 44px; height: 44px; flex-shrink: 0; padding: 11px; border-radius: 12px;
  fill: var(--green-glow); background: var(--green-soft); border: 1px solid rgba(69, 196, 127, 0.25);
}
.contact-list a, .contact-list span:not(.mini-label) { color: var(--heading); font-weight: 500; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--green-glow); }

.form-card {
  padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card-gradient); box-shadow: var(--shadow);
}
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
.form-row.two { grid-template-columns: repeat(2, 1fr); }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { font-size: 0.9rem; font-weight: 600; color: var(--heading); }
.req { color: var(--green-glow); }
.hint { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--field-bg); color: var(--text); font-size: 1rem; line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2345c47f' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 22px;
}
.field select option { background: var(--option-bg); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--field-hover); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-glow); box-shadow: 0 0 0 3px rgba(69, 196, 127, 0.22); background: var(--field-bg-focus);
}
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { font-size: 0.83rem; color: var(--danger); }
.field-error::before { content: "⚠ "; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--field-bg); cursor: pointer;
  display: grid; place-items: center; transition: background-color 0.15s, border-color 0.15s;
}
.check input::after {
  content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.15s;
}
.check input:checked { background: var(--green-bright); border-color: var(--green-bright); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }

.alert {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 1px solid; font-size: 0.95rem;
}
.alert svg { width: 22px; height: 22px; flex-shrink: 0; }
.alert-success { border-color: rgba(69, 196, 127, 0.4); background: rgba(69, 196, 127, 0.12); color: var(--alert-success-fg); }
.alert-success svg { fill: var(--success); }
.alert-error { border-color: rgba(255, 122, 110, 0.45); background: rgba(255, 122, 110, 0.1); color: var(--alert-error-fg); }
.alert-error svg { fill: var(--danger); }
.alert-ref { margin-top: 4px; font-family: var(--font-mono); font-size: 0.88rem; }
.alert:focus { outline: none; }

/* 13. Inner pages ---------------------------------------------------------- */
.page-inner main { padding-top: var(--header-h); }
.page-hero { position: relative; padding-block: clamp(64px, 10vw, 110px) clamp(48px, 7vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 12, 23, 0.95) 0%, rgba(3, 12, 23, 0.78) 50%, rgba(3, 12, 23, 0.55) 100%),
    url("../img/hero-768.webp") center 30% / cover no-repeat;
}
.page-hero-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, transparent, var(--page-bg)); }
.page-hero-compact { padding-block: clamp(48px, 7vw, 72px) 32px; }
.page-hero-full { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.page-title { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.035em; margin-bottom: 16px; }
.page-lead { max-width: 680px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--text-soft); margin-bottom: 24px; }
.deadline-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(242, 182, 49, 0.45); background: rgba(242, 182, 49, 0.1);
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--yellow);
}
.deadline-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pinPulse 2s ease-in-out infinite; }
.deadline-pill.is-closed { border-color: var(--line-strong); background: var(--surface); color: var(--text-muted); }
.deadline-pill.is-closed::before { background: var(--text-muted); animation: none; }

.section-form { padding-top: clamp(40px, 6vw, 72px); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.form-section { border: 0; display: grid; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; padding-bottom: 8px; }
.form-section legend {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--heading);
}
.step-no {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 0.95rem;
  background: var(--green-soft); border: 1px solid rgba(69, 196, 127, 0.35); color: var(--green-glow);
}

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-card { --accent: var(--green-glow); position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 16px 16px 46px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--field-bg);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.choice-body::before {
  content: ""; position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-strong); transition: border-color 0.2s, box-shadow 0.2s;
}
.choice-card:hover .choice-body { border-color: var(--field-hover); }
.choice-card input:checked + .choice-body {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--field-bg));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.choice-card input:checked + .choice-body::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--accent); }
.choice-card input:focus-visible + .choice-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-title { font-weight: 600; color: var(--heading); line-height: 1.35; }
.choice-detail { font-size: 0.82rem; color: var(--text-muted); }
.choice-fee { margin-top: 4px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--green-glow); }
.choice-code { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.workshop-choice { display: grid; gap: 12px; margin-top: 8px; }
.workshop-choice[hidden] { display: none; }

.aside-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.aside-title { font-size: 1.15rem; margin-bottom: 16px; }
.aside-list { display: grid; gap: 14px; }
.aside-list li { display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--green-bright); }
.aside-list strong { color: var(--heading); }
.aside-list span:not(.mini-label) { font-size: 0.88rem; color: var(--text-muted); }
.aside-card .tick-list li { font-size: 0.92rem; }
.aside-note { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-muted); }
.aside-cta { background: linear-gradient(135deg, rgba(47, 143, 91, 0.22), rgba(47, 143, 91, 0.04)); border-color: rgba(69, 196, 127, 0.3); }
.aside-cta p { font-size: 0.93rem; margin-bottom: 12px; }


.success-card, .notice-card {
  padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); border: 1px solid rgba(69, 196, 127, 0.35);
  background: linear-gradient(160deg, rgba(47, 143, 91, 0.2), rgba(255, 255, 255, 0.02)); box-shadow: var(--shadow);
}
.success-card:focus { outline: none; }
.notice-card { border-color: var(--line-strong); background: var(--surface); }
.success-card h2, .notice-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.success-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 50%;
  background: var(--green-bright); box-shadow: 0 0 0 10px rgba(69, 196, 127, 0.15), 0 0 40px rgba(69, 196, 127, 0.5);
  animation: popIn 0.5s var(--ease) both;
}
.success-icon svg { width: 34px; height: 34px; fill: #fff; }
.ref-badge {
  display: inline-block; margin: 16px 0 4px; padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px dashed rgba(69, 196, 127, 0.5); background: var(--field-bg); font-family: var(--font-mono);
}
.ref-badge strong { color: var(--green-glow); letter-spacing: 0.06em; }
.steps { counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(step); font-family: var(--font-mono); font-size: 0.8rem; color: var(--green-glow); }


.split-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--green-glow), var(--line)); }
.timeline li { position: relative; display: flex; flex-direction: column; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--green-glow);
}
.timeline li:first-child::before { background: var(--green-glow); box-shadow: 0 0 12px var(--green-glow); }
.timeline-date { font-family: var(--font-mono); font-size: 0.82rem; color: var(--green-glow); }
.timeline-title { font-weight: 600; color: var(--heading); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 18px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); }
.prose strong { color: var(--heading); }

.terminal-inline {
  display: inline-block; max-width: 100%; margin-bottom: 28px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: rgba(2, 10, 18, 0.8);
}

/* 14. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative; overflow: hidden; padding: 72px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  background: #020b13; border-top: 1px solid var(--line);
}
.footer-glow {
  position: absolute; left: 50%; top: -160px; width: 700px; height: 320px; margin-left: -350px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(47, 143, 91, 0.2), transparent 70%);
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { margin: 18px 0 20px; font-size: 0.92rem; color: var(--text-muted); max-width: 340px; }
.footer-heading { margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: 0.94rem; }
.footer-links a:hover { color: var(--green-glow); }
.footer-facts { display: grid; gap: 14px; font-size: 0.9rem; color: var(--text-muted); }
.footer-facts strong { display: block; color: var(--heading); font-size: 0.85rem; }
.footer-facts a { color: var(--text-soft); word-break: break-word; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); transition: border-color 0.2s, background-color 0.2s;
}
.social-links svg { width: 18px; height: 18px; fill: var(--text-soft); }
.social-links a:hover { border-color: var(--green-glow); background: var(--green-soft); }
.social-links a:hover svg { fill: var(--green-glow); }
.footer-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-soft); }

/* 15. Motion & responsive -------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bgFadeIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1.02); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pinPulse { 50% { box-shadow: 0 0 0 14px rgba(69, 196, 127, 0.06), 0 0 30px rgba(69, 196, 127, 0.6); } }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Laptop */
@media (max-width: 1140px) {
  .site-nav { gap: 16px; }
  .nav-links a { padding: 8px 9px; font-size: 0.9rem; }
  .workshop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Header collapses into the menu button below 1080px (the CTA labels need the room) */
@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .site-nav {
    margin-left: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 20px; padding: 16px var(--gutter) 28px;
    background: var(--menu-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-cta { flex-wrap: wrap; }
  .nav-cta .btn { flex: 1 1 200px; padding: 13px 16px; font-size: 0.95rem; }
  .brand-logo img { height: 30px; }
  .brand-edition { height: 36px; min-width: 36px; }
}

/* Tablet */
@media (max-width: 960px) {

  .hero-overlay { background: linear-gradient(90deg, rgba(3, 12, 23, 0.9) 0%, rgba(3, 12, 23, 0.74) 45%, rgba(3, 12, 23, 0.4) 100%); }
  .hero-bg img { object-position: 62% center; }
  .about-grid, .contact-grid, .split-grid { grid-template-columns: 1fr; }
  .venue-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .choice-grid.three { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: 1fr; gap: 0; }
  .partner-row .sponsor-card { flex: 0 1 220px; }
}

/* Mobile */
@media (max-width: 640px) {
  .hero { align-items: flex-end; padding-bottom: 72px; }
  .hero-bg img { object-position: 68% center; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(3, 12, 23, 0.35) 0%, rgba(3, 12, 23, 0.55) 25%, rgba(3, 12, 23, 0.82) 55%, rgba(3, 12, 23, 0.96) 100%);
  }
  .countdown { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .count-box { padding: 12px 4px; border-radius: 14px; }
  .count-label { font-size: 0.64rem; letter-spacing: 0.06em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .workshop-grid { grid-template-columns: 1fr; }
  .tab-list { display: flex; width: 100%; }
  .tab { flex: 1; padding: 10px 14px; }

  .agenda-item { grid-template-columns: 58px 22px 1fr; gap: 0 8px; }
  .agenda-time time { font-size: 0.9rem; }
  .agenda-node::before { left: 10px; }
  .agenda-node::after { left: 4px; }
  .type-keynote .agenda-node::after { left: 2px; }
  .type-break .agenda-node::after, .type-registration .agenda-node::after { left: 6px; }
  .agenda-card { padding: 14px 16px; }

  .form-row.two, .form-row.three, .choice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .sponsor-card { flex-basis: calc(50% - 8px); --card-h: 100px; --logo-h: 56px; }
  .partner-row .sponsor-card { flex: 1 1 calc(50% - 6px); }
  .sponsor-cta .btn { width: 100%; }
}

@media (max-width: 380px) {
  .count-number { font-size: 1.35rem; }
  .brand-edition { display: none; }
}

/* 16. Participant area ------------------------------------------------------ */
.container.narrow { max-width: 860px; }
.section-form .container.narrow > * + * { margin-top: 20px; }
.account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.account-head .section-title { margin-bottom: 0; }
.card-title { font-size: 1.25rem; margin-bottom: 16px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; line-height: 1.6; border: 1px solid currentColor; white-space: nowrap;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pending, .status-reconsider, .payment-pending, .payment-unpaid { color: var(--yellow); }
.status-approved, .payment-paid, .payment-waived { color: var(--green-glow); }
.status-rejected, .payment-failed, .payment-refunded { color: var(--red); }
.status-deleted { color: var(--text-muted); }

.status-card {
  padding: clamp(22px, 4vw, 32px); border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: var(--card-gradient);
}
.status-card-approved { border-color: rgba(69, 196, 127, 0.4); background: linear-gradient(160deg, rgba(47, 143, 91, 0.2), rgba(255, 255, 255, 0.02)); }
.status-card-rejected { border-color: rgba(229, 88, 76, 0.4); }
.status-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.status-card-head .mini-label { margin-right: auto; }
.status-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.status-card .btn { margin-top: 16px; }
.status-note { margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--red); background: rgba(229, 88, 76, 0.08); border-radius: 6px; }
.pay-amount { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; color: var(--heading); }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin-bottom: 8px; }
.kv dt { color: var(--text-muted); font-size: 0.9rem; }
.kv dd { color: var(--heading); word-break: break-word; }
.kv dd.pay-amount { font-size: 1.6rem; }

.code-input { font-family: var(--font-mono) !important; font-size: 1.7rem !important; letter-spacing: 0.5em; text-align: center; }
.form-inline-link { margin-top: 14px; text-align: center; }
.link-button { background: none; border: 0; color: var(--green-glow); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem; }
.mono { font-family: var(--font-mono); font-size: 0.88em; }

.table-wrap { overflow-x: auto; }
.table-simple { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-simple th { text-align: left; font-weight: 600; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table-simple th, .table-simple td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }

@media (max-width: 640px) {
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

/* 17. Fellowship page ------------------------------------------------------- */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.lead-soft { font-size: 1.08rem; line-height: 1.8; color: var(--text-soft); }
.package-card {
  padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); border: 1px solid rgba(69, 196, 127, 0.4);
  background: linear-gradient(160deg, rgba(47, 143, 91, 0.24), rgba(255, 255, 255, 0.02)); box-shadow: var(--shadow);
}
.package-figure { font-family: var(--font-display); font-size: clamp(3.6rem, 8vw, 5.2rem); font-weight: 700; line-height: 1; color: var(--heading); margin: 8px 0 4px; }
.package-figure span { color: var(--green-glow); }
.package-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.package-intro { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 14px; }
.tz-note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin: -4px 0 22px; }

.committee-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.committee-grid > li { flex: 0 1 260px; }
.committee-card {
  display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}
.committee-photo { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line-strong); }
.committee-name { font-weight: 600; color: var(--heading); line-height: 1.3; }
.committee-org { font-size: 0.86rem; color: var(--text-muted); }
.committee-role {
  display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-glow);
  border: 1px solid rgba(69, 196, 127, 0.4); background: var(--green-soft);
}

.apply-band { padding-block: clamp(48px, 7vw, 80px); }
.apply-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid rgba(69, 196, 127, 0.35);
  background: linear-gradient(135deg, rgba(47, 143, 91, 0.25), rgba(4, 17, 29, 0.6)) var(--bg);
}
.apply-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.apply-card p { color: var(--text-soft); max-width: 560px; }
.apply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.deadline-pill.is-soon { border-color: rgba(61, 142, 224, 0.5); background: rgba(61, 142, 224, 0.12); color: var(--soon); }
.deadline-pill.is-soon::before { background: var(--blue); }

.terms-list { counter-reset: term; display: grid; gap: 14px; }
.terms-list li {
  counter-increment: term; position: relative; padding: 16px 18px 16px 58px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); line-height: 1.65;
}
.terms-list li::before {
  content: counter(term, decimal-leading-zero); position: absolute; left: 18px; top: 16px;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--green-glow);
}

@media (max-width: 960px) {
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .apply-actions, .apply-actions .btn { width: 100%; }
  .terms-list li { padding-left: 48px; }
  .terms-list li::before { left: 14px; }
}

/* 18. Stand-alone section pages (V4) ---------------------------------------
   Banner sits under the see-through header like the home hero; full screen height on computers. */
.page-section main > .section { padding-top: clamp(40px, 6vw, 64px); }
.page-hero-screen { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 64px)); padding-bottom: clamp(40px, 6vw, 64px); }
.page-hero-screen .scroll-cue { display: none; }
@media (min-width: 961px) {
  .page-hero-screen {
    display: flex; align-items: center; min-height: 100vh; min-height: 100svh;
    padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px;
  }
  .page-hero-screen .page-title { font-size: clamp(3.2rem, 7vw, 6rem); }
  .page-hero-screen .page-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
  .page-hero-screen .scroll-cue { display: block; }
  /* full-resolution artwork for the big banner */
  .page-hero-screen .page-hero-bg {
    background:
      linear-gradient(90deg, rgba(3, 12, 23, 0.92) 0%, rgba(3, 12, 23, 0.72) 45%, rgba(3, 12, 23, 0.4) 100%),
      url("../img/hero.webp") center / cover no-repeat;
  }
  [data-theme="light"] .page-hero-screen .page-hero-bg {
    background:
      linear-gradient(90deg, rgba(6, 46, 26, 0.74) 0%, rgba(6, 46, 26, 0.50) 45%, rgba(6, 46, 26, 0.18) 100%),
      url("../img/hero.webp") center / cover no-repeat;
  }
}

/* 19. Hero / banner bottom edge -------------------------------------------
   No fade: the image ends with a clean edge in both themes, and the next section starts directly below.
   (To bring back a fade, delete this rule.) */
.hero-overlay::before,
.page-hero-bg::after { display: none; }

/* 20. Light theme: lighter inner-page banners (Fellowship, Register, Contact, ...) ----------
   Dark mode keeps the deep navy overlay. In light mode a lighter, green-tinted overlay lets the
   artwork show, while the left side stays dark enough for the white heading. */
[data-theme="light"] .page-hero-bg {
  background:
    linear-gradient(90deg, rgba(6, 46, 26, 0.74) 0%, rgba(6, 46, 26, 0.50) 45%, rgba(6, 46, 26, 0.18) 100%),
    url("../img/hero-768.webp") center 30% / cover no-repeat;
}

/* 21. Gallery ---------------------------------------------------------------
   Always a dark band (photos read best on dark), in both themes. */
.section-gallery {
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 143, 91, 0.18), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(47, 143, 91, 0.12), transparent 40%),
    #061620;
}
.section-gallery .section-head { margin-bottom: clamp(28px, 4vw, 44px); }

.video-feature {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px);
  align-items: center; margin-bottom: clamp(28px, 4vw, 44px); padding: clamp(14px, 2vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04);
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: #020a12; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.video-frame iframe, .yt-lite, .yt-lite img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite { display: block; cursor: pointer; }
.yt-lite img { object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s; }
.yt-lite::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35)); }
.yt-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 10px rgba(255, 255, 255, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.yt-play svg { width: 34px; height: 34px; margin-left: 4px; fill: #1f7a4b; }
.yt-lite:hover img, .yt-lite:focus-visible img { transform: scale(1.03); filter: brightness(1.05); }
.yt-lite:hover .yt-play, .yt-lite:focus-visible .yt-play { transform: scale(1.08); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 14px rgba(69, 196, 127, 0.35); }
.video-meta h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 6px 0 8px; color: #fff; }
.video-sub { color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; }
.section-gallery .mini-label { color: #45c47f; }

/* Mosaic: first photo of every 6 is large; works for any number of photos (dense packing) */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15vw, 190px);
  grid-auto-flow: dense; gap: 12px;
}
.gallery-grid > li:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid > li:nth-child(6n + 4),
.gallery-grid > li:nth-child(6n + 5),
.gallery-grid > li:nth-child(6n) { grid-column: span 2; }
.gallery-item {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius);
  background: #0b1d2a; outline-offset: 3px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.3s; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 10, 18, 0.75)); opacity: 0; transition: opacity 0.3s;
}
.gallery-caption {
  position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font-size: 0.85rem; font-weight: 600; color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item:hover::after, .gallery-item:focus-visible::after,
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }
@media (hover: none) {
  .gallery-item::after, .gallery-caption { opacity: 1; transform: none; }
}

.gallery-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 4vw, 36px); }

/* Lightbox (native <dialog>: focus trap + Esc for free) */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(2, 8, 14, 0.94); color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; animation: fadeIn 0.2s ease-out; }
.lightbox::backdrop { background: rgba(2, 8, 14, 0.6); }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 56px 0 24px; max-height: 100vh; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox-figure figcaption { font-size: 0.95rem; color: rgba(255, 255, 255, 0.86); text-align: center; }
.lightbox-count { margin-left: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.lightbox-btn {
  display: grid; place-items: center; width: 48px; height: 48px; margin: auto; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}
.lightbox-btn:hover { background: rgba(69, 196, 127, 0.25); border-color: #45c47f; }
.lightbox-btn svg { width: 24px; height: 24px; fill: currentColor; }
.lightbox-close { position: absolute; top: 14px; right: 14px; margin: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 960px) {
  .video-feature { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 130px; gap: 8px; }
  .gallery-grid > li:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
  .gallery-grid > li:nth-child(6n + 4), .gallery-grid > li:nth-child(6n + 5), .gallery-grid > li:nth-child(6n) { grid-column: span 1; }
  .gallery-grid > li:last-child:nth-child(even) { grid-column: span 2; } /* no orphan on the last row */
  .lightbox[open] { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 18px; margin: 0; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .lightbox-figure { padding: 60px 8px 90px; }
  .yt-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}
