:root {
  --bg: #07090a;
  --bg-alt: #0a0d0e;
  --bg-footer: #050607;
  --card-bg: #07090a;
  --text: #e6ebe8;
  --text-muted: #b7c0bb;
  --text-mono-muted: #8e9994;
  --text-faint: #a3ada8;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #ff3b3b;
  --accent-bright: #ff7a7a;
  --accent-soft: rgba(255, 59, 59, 0.28);
  --accent-glow: rgba(255, 59, 59, 0.35);
  --btn-text: #ffffff;
  --chrome-gradient: linear-gradient(175deg, #ffffff 0%, #c9d1cd 38%, #6b7571 62%, #dfe6e2 100%);
  --selection-text: #07090a;
}

:root[data-theme="light"] {
  --bg: #e7e7e8;
  --bg-alt: #dcdcdd;
  --bg-footer: #d6d6d7;
  --card-bg: #f1f1f1;
  --text: #14100f;
  --text-muted: #3d3836;
  --text-mono-muted: #5c5754;
  --text-faint: #524d4b;
  --border: rgba(0, 0, 0, 0.1);
  --border-soft: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.18);
  --accent: #b3121f;
  --accent-bright: #d81f2c;
  --accent-soft: rgba(179, 18, 31, 0.22);
  --accent-glow: rgba(179, 18, 31, 0.28);
  --btn-text: #ffffff;
  --chrome-gradient: linear-gradient(175deg, #2b2c2e 0%, #4b4f52 38%, #1c1d1e 62%, #34383a 100%);
  --selection-text: #ffffff;
}

html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; transition: background-color .4s ease, color .4s ease; }
* { box-sizing: border-box; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }
::selection { background: var(--accent); color: var(--selection-text); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color .4s ease, border-color .4s ease;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-logos { display: flex; gap: 6px; align-items: center; }
.brand-logo { height: 34px; width: auto; object-fit: contain; box-sizing: border-box; border-radius: 6px; transition: background-color .4s ease; }
:root[data-theme="dark"] .brand-logo { background: #f2f2f2; padding: 3px; }
.brand-name { font-family: 'Big Shoulders Display'; font-weight: 900; font-size: 22px; letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); flex-wrap: wrap; font-family: 'IBM Plex Mono'; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-nav a:not(.btn) { color: var(--text-mono-muted); }
.site-nav a:not(.btn):hover { color: var(--text); }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono'; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: var(--text-mono-muted); border: 1px solid var(--border-strong);
  padding: 8px 14px; cursor: pointer; transition: color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle-icon { font-size: 14px; line-height: 1; }

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo plate (Praxis logo) */
.logo-plate { display: inline-block; line-height: 0; }

.hero-logo { margin-bottom: 22px; }
.hero-logo img { width: clamp(180px, 24vw, 320px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono'; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--btn-text); font-weight: 500; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background-color .2s ease; }
.btn-primary:hover { background: var(--accent-bright); color: var(--btn-text); }
.btn-nav { padding: 10px 16px; }
.btn-outline { border: 1px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-lg { padding: 16px 28px; font-size: 14px; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.btn-outline.btn-lg { clip-path: none; padding: 16px 24px; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 120px clamp(16px, 4vw, 48px) 56px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease;
}
.hero-bg-dark {
  background-image: linear-gradient(180deg, rgba(4, 3, 3, 0.55) 0%, rgba(4, 3, 3, 0.75) 60%, rgba(4, 3, 3, 0.95) 100%), url('assets/hero-bg-dark.jpeg');
}
.hero-bg-light {
  background-image: linear-gradient(180deg, rgba(230, 230, 231, 0.35) 0%, rgba(230, 230, 231, 0.65) 60%, rgba(230, 230, 231, 0.92) 100%), url('assets/hero-bg-light.jpeg');
}
:root[data-theme="dark"] .hero-bg-dark { opacity: 1; }
:root[data-theme="light"] .hero-bg-light { opacity: 1; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bg) 100%); pointer-events: none; transition: background-color .4s ease; }
.hero-inner { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end; }
.eyebrow { font-family: 'IBM Plex Mono'; font-size: 12px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; margin-bottom: 20px; }
.hero-title { margin: 0; font-family: 'Big Shoulders Display'; font-weight: 900; font-size: clamp(72px, 13vw, 196px); line-height: 0.82; letter-spacing: 0.01em; background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.rule { height: 1px; width: 48px; background: var(--accent); }
.hero-subtitle-text { font-family: 'Big Shoulders Display'; font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: 0.3em; color: var(--text); }
.hero-desc { max-width: 520px; margin: 24px 0 0; font-size: 18px; line-height: 1.55; color: var(--text-muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.hero-countdown { justify-self: end; width: 100%; max-width: 460px; border: 1px solid var(--accent-soft); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); padding: 24px; }
.countdown-head { display: flex; justify-content: space-between; font-family: 'IBM Plex Mono'; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mono-muted); margin-bottom: 16px; }
.live-dot { color: var(--accent); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown-num { font-family: 'Big Shoulders Display'; font-weight: 700; font-size: 52px; line-height: 1; color: var(--text); }
.countdown-accent { color: var(--accent); }
.countdown-unit { font-family: 'IBM Plex Mono'; font-size: 10px; letter-spacing: 0.16em; color: var(--text-mono-muted); margin-top: 6px; }

/* Stats bar */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 24px clamp(16px, 3vw, 32px); border-right: 1px solid var(--border-soft); }
.stat-last { border-right: none; }
.stat-label { font-family: 'IBM Plex Mono'; font-size: 11px; letter-spacing: 0.18em; color: var(--text-mono-muted); }
.stat-value { font-family: 'Big Shoulders Display'; font-weight: 700; font-size: 28px; margin-top: 6px; }
.stat-accent { color: var(--accent); }

/* Sections */
.section { padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px); position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); }
.kicker { font-family: 'IBM Plex Mono'; font-size: 12px; letter-spacing: 0.22em; color: var(--accent); }
.h2 { margin: 0; font-family: 'Big Shoulders Display'; font-weight: 900; font-size: clamp(44px, 6vw, 84px); line-height: 0.92; text-transform: uppercase; background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3 { margin: 0; font-family: 'Big Shoulders Display'; font-weight: 700; font-size: clamp(32px, 4vw, 48px); text-transform: uppercase; color: var(--text); }
.accent { color: var(--accent); background: none; -webkit-background-clip: initial; background-clip: initial; }
.lead { font-size: 18px; line-height: 1.65; color: var(--text-muted); max-width: 560px; }
.lead + .lead { margin-top: 16px; }
.note { font-family: 'IBM Plex Mono'; font-size: 13px; color: var(--text-mono-muted); max-width: 380px; line-height: 1.6; }
.note-lg { max-width: 380px; color: var(--text-faint); font-family: Archivo; font-size: 16px; }

/* Briefing */
.briefing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: 24px; align-items: start; }
.teaser { position: relative; aspect-ratio: 16/9; border: 1px solid var(--border-strong); overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start; }
.teaser-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teaser::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%); }
.teaser-caption { position: relative; z-index: 1; margin: 0 0 20px 20px; font-family: 'IBM Plex Mono'; font-size: 13px; letter-spacing: 0.2em; color: #f2f2f2; text-transform: uppercase; }
.corner { position: absolute; width: 18px; height: 18px; z-index: 2; }
.corner-tl { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); width: 22px; height: 22px; }
.round-card .corner-tl { width: 22px; height: 22px; }

.realms-head { margin-top: clamp(64px, 8vw, 110px); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.realms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 28px; }
.realm-card { background: var(--card-bg); padding: 32px 28px; min-height: 260px; display: flex; flex-direction: column; transition: background .2s ease; }
.realm-card:hover { background: var(--bg-alt); }
.realm-tag { font-family: 'IBM Plex Mono'; font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.realm-title { font-family: 'Big Shoulders Display'; font-weight: 700; font-size: 30px; line-height: 1; margin-top: auto; text-transform: uppercase; color: var(--text); }
.realm-desc { margin: 12px 0 0; color: var(--text-faint); font-size: 15px; line-height: 1.55; }

/* Rounds */
.rounds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; margin-top: 48px; }
.round-card { position: relative; border: 1px solid var(--border-strong); background: var(--card-bg); padding: clamp(24px, 3vw, 40px); overflow: hidden; }
.round-card-highlight { border-color: var(--accent-soft); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--card-bg)) 0%, var(--card-bg) 60%); }
.round-banner { margin: calc(clamp(24px, 3vw, 40px) * -1) calc(clamp(24px, 3vw, 40px) * -1) 24px; aspect-ratio: 16/6; overflow: hidden; position: relative; }
.round-banner img { width: 100%; height: 100%; object-fit: cover; }
.round-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, var(--card-bg) 100%); }
.round-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.round-meta { font-family: 'IBM Plex Mono'; font-size: 12px; letter-spacing: 0.18em; color: var(--text-mono-muted); }
.round-title { margin: 10px 0 0; font-family: 'Big Shoulders Display'; font-weight: 900; font-size: clamp(36px, 4vw, 54px); line-height: 0.95; text-transform: uppercase; color: var(--text); }
.round-time { font-family: 'IBM Plex Mono'; font-size: 13px; color: var(--accent); border: 1px solid var(--accent-soft); padding: 8px 12px; }
.round-desc { margin: 24px 0 0; color: var(--text-muted); font-size: 16px; line-height: 1.65; }
.round-block { margin-top: 24px; }
.round-card > .round-block:first-of-type { padding-top: 24px; border-top: 1px solid var(--border); }
.round-label { font-family: 'IBM Plex Mono'; font-size: 11px; letter-spacing: 0.18em; color: var(--text-mono-muted); }
.round-text { margin: 8px 0 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.round-text-muted { margin: 12px 0 0; color: var(--text-faint); font-size: 14px; line-height: 1.6; }
.round-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.round-item { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.round-item-n { color: var(--accent); font-family: 'IBM Plex Mono'; }
.round-footnote { margin: 28px 0 0; font-family: 'IBM Plex Mono'; font-size: 12px; line-height: 1.6; color: var(--text-mono-muted); }
.tool-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { font-family: 'IBM Plex Mono'; font-size: 12px; padding: 6px 10px; border: 1px solid var(--border-strong); color: var(--text); }

/* Schedule */
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
.schedule-grid-single { grid-template-columns: minmax(0, 620px); }
.day-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.day-title { font-family: 'Big Shoulders Display'; font-weight: 900; font-size: 40px; color: var(--text); }
.day-sub { font-family: 'IBM Plex Mono'; font-size: 13px; color: var(--text-mono-muted); }
.agenda-row { display: grid; grid-template-columns: 150px 1fr; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.agenda-time { font-family: 'IBM Plex Mono'; font-size: 13px; color: var(--text-mono-muted); }
.agenda-time-accent { color: var(--accent); }
.agenda-strong { font-size: 16px; font-weight: 600; }
.agenda-row span:last-child { font-size: 16px; }

/* Judging */
.judging-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(32px, 4vw, 64px); margin-top: 48px; }
.judging-heading { font-family: 'Big Shoulders Display'; font-weight: 700; font-size: 26px; text-transform: uppercase; color: var(--text); }
.criteria { margin-top: 24px; display: flex; flex-direction: column; gap: 22px; }
.criterion-head { display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.criterion-head span:first-child { font-weight: 600; }
.criterion-pct { font-family: 'IBM Plex Mono'; color: var(--accent); }
.criterion-bar { height: 3px; background: var(--border); margin-top: 10px; }
.criterion-fill { height: 100%; background: var(--accent); }
.criterion-desc { margin: 8px 0 0; font-size: 14px; color: var(--text-faint); line-height: 1.5; }

/* Prizes */
.prizes-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.prizes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 48px; align-items: end; }
.prize-card { border: 1px solid var(--border); padding: 32px; min-height: 280px; display: flex; flex-direction: column; background: var(--bg-alt); }
.prize-card-winner { position: relative; border-color: var(--accent); min-height: 360px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, var(--bg)) 0%, var(--bg) 100%); box-shadow: 0 0 80px -20px var(--accent-glow); }
.prize-label { font-family: 'IBM Plex Mono'; font-size: 12px; letter-spacing: 0.18em; color: var(--text-mono-muted); }
.prize-label-accent { color: var(--accent); }
.prize-amount { margin-top: auto; font-family: 'Big Shoulders Display'; font-weight: 900; font-size: 72px; line-height: 1; color: var(--text); }
.prize-amount-lg { font-size: 96px; color: var(--text); }
.prize-amount-sm { font-size: 64px; }
.prize-sub { margin-top: 8px; color: var(--text-faint); font-size: 15px; }
.prize-sub-light { color: var(--text-muted); }

/* Rules */
.rules-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rules-list { border-top: 1px solid var(--border-strong); }
.rule-row { border-bottom: 1px solid var(--border-strong); }
.rule-toggle { all: unset; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 20px; padding: 22px 0; box-sizing: border-box; }
.rule-n { font-family: 'IBM Plex Mono'; font-size: 13px; color: var(--accent); width: 28px; flex-shrink: 0; }
.rule-title { flex: 1; font-family: 'Big Shoulders Display'; font-weight: 700; font-size: 26px; text-transform: uppercase; color: var(--text); }
.rule-icon { font-family: 'IBM Plex Mono'; font-size: 18px; color: var(--text-mono-muted); }
.rule-body { margin: 0; padding: 0 0 24px 48px; color: var(--text-muted); font-size: 16px; line-height: 1.65; display: none; }
.rule-row.open .rule-body { display: block; }

/* References */
.refs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ref-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--accent-soft); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--card-bg)) 0%, var(--card-bg) 60%); color: var(--text); transition: border-color .2s ease, transform .2s ease; }
.ref-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.ref-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ref-icon { color: var(--accent); line-height: 0; }
.ref-label { font-family: 'IBM Plex Mono'; font-size: 12px; letter-spacing: 0.18em; color: var(--text-mono-muted); }
.ref-title { font-family: 'Big Shoulders Display'; font-weight: 900; font-size: clamp(36px, 4vw, 54px); line-height: 0.95; text-transform: uppercase; }
.ref-cta { margin-top: auto; font-family: 'IBM Plex Mono'; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .ref-card { transition: none; } .ref-card:hover { transform: none; } }

/* CTA / Register */
.cta { position: relative; padding: clamp(100px, 12vw, 180px) clamp(16px, 4vw, 48px); text-align: center; overflow: hidden; border-top: 1px solid var(--border-soft); }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.cta-bg-dark {
  background-image: radial-gradient(ellipse 60% 70% at 50% 110%, var(--accent-glow), rgba(4,3,3,0.4) 70%), linear-gradient(rgba(4,3,3,0.55), rgba(4,3,3,0.85)), url('assets/round2-banner.jpeg');
}
.cta-bg-light {
  background-image: radial-gradient(ellipse 60% 70% at 50% 110%, var(--accent-glow), rgba(230,230,231,0.5) 70%), linear-gradient(rgba(230,230,231,0.55), rgba(230,230,231,0.88)), url('assets/hero-bg-light.jpeg');
}
:root[data-theme="dark"] .cta-bg-dark { opacity: 1; }
:root[data-theme="light"] .cta-bg-light { opacity: 1; }
.cta-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.cta-title { margin: 24px 0 0; font-family: 'Big Shoulders Display'; font-weight: 900; font-size: clamp(56px, 9vw, 140px); line-height: 0.86; text-transform: uppercase; background: var(--chrome-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-desc { margin: 28px auto 0; max-width: 520px; color: var(--text-muted); font-size: 18px; line-height: 1.6; }
.cta .btn-lg { margin-top: 40px; padding: 20px 40px; font-size: 15px; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }

/* Footer */
.site-footer { padding: 64px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--border); background: var(--bg-footer); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.footer-logo { height: 56px; width: auto; object-fit: contain; box-sizing: border-box; border-radius: 8px; transition: background-color .4s ease; }
:root[data-theme="dark"] .footer-logo { background: #f2f2f2; padding: 4px; }
.footer-grid .brand-logos { gap: 10px; }
.footer-addr { margin: 20px 0 0; color: var(--text-faint); font-size: 14px; line-height: 1.6; }
.footer-label { font-family: 'IBM Plex Mono'; font-size: 11px; letter-spacing: 0.18em; color: var(--text-mono-muted); }
.footer-note { margin: 10px 0 16px; color: var(--text-faint); font-size: 14px; line-height: 1.5; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text); }
.footer-contact-row { display: flex; justify-content: space-between; gap: 12px; }
.footer-contact-val { font-family: 'IBM Plex Mono'; color: var(--text-mono-muted); }
.footer-jump { display: flex; flex-direction: column; gap: 10px; font-family: 'IBM Plex Mono'; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-jump-label { font-size: 11px; letter-spacing: 0.18em; color: var(--text-mono-muted); }
.footer-jump a { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: 'IBM Plex Mono'; font-size: 12px; color: var(--text-mono-muted); }

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 4px clamp(16px, 4vw, 48px) 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .site-nav.open {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .site-nav .theme-toggle {
    align-self: flex-start;
    margin: 14px 0;
  }
  .site-nav .btn-nav {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  /* Icon-only square theme toggle on mobile, no text label */
  .theme-toggle-label { display: none; }
  .theme-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }
  .theme-toggle-icon { font-size: 16px; }

  .hero { align-items: flex-start; padding-top: 100px; }
  .hero-countdown { justify-self: stretch; max-width: none; }

  .agenda-row { grid-template-columns: 1fr; gap: 4px; }
  .agenda-time { order: -1; }

  .rule-body { padding-left: 24px; }

  .footer-contact-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 18px; }
  .countdown-grid { gap: 6px; }
  .countdown-num { font-size: 38px; }
  .hero-countdown { padding: 16px; }
  .round-banner { aspect-ratio: 16/9; }
}
