/* ========================================
   Infomatrix — landing page styles
   Modern tech, light theme
   ======================================== */

:root {
  --bg: #faf8f4;
  --bg-alt: #f4efe6;
  --surface: #ffffff;
  --text: #1a1712;
  --text-soft: #5c554a;
  --text-mute: #8a8175;
  --border: #ece4d8;

  --brand: #f79b1e;
  --brand-2: #f5720b;
  --brand-3: #ffc44d;
  --brand-ink: #a8480a;

  --gradient: linear-gradient(120deg, #ff9a2e 0%, #f5720b 45%, #ffc44d 100%);
  --gradient-soft: linear-gradient(120deg, rgba(247,155,30,.16), rgba(245,114,11,.10), rgba(255,196,77,.16));

  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .06), 0 1px 3px rgba(15, 23, 41, .05);
  --shadow-md: 0 10px 30px -12px rgba(196, 96, 16, .28);
  --shadow-lg: 0 30px 60px -20px rgba(196, 96, 16, .32);

  --header-bg: rgba(250, 248, 244, .8);
  --menu-bg: rgba(250, 248, 244, .98);
  --logo-filter: none;

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1120px;

  --font-display: "Ubuntu", system-ui, sans-serif;
  --font-body: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #17130d;
  --bg-alt: #1f1a11;
  --surface: #221c13;
  --text: #f6efe4;
  --text-soft: #c2b6a3;
  --text-mute: #93897a;
  --border: #362e20;

  --brand: #f9a836;
  --brand-2: #f5720b;
  --brand-3: #ffc44d;
  --brand-ink: #ffb454;

  --gradient-soft: linear-gradient(120deg, rgba(247,155,30,.22), rgba(245,114,11,.14), rgba(255,196,77,.22));

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);

  --header-bg: rgba(23, 19, 13, .8);
  --menu-bg: rgba(23, 19, 13, .98);
  --logo-filter: brightness(0) invert(1);

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}
.container-wide {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding-inline: 24px;
}

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

/* ===== Buttons ===== */
.btn {
  --btn-pad-y: .9rem;
  --btn-pad-x: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { --btn-pad-y: .58rem; --btn-pad-x: 1.1rem; font-size: .86rem; border-radius: 10px; }
.btn-lg { --btn-pad-y: 1rem; --btn-pad-x: 1.7rem; font-size: .98rem; }

.btn-primary {
  background: linear-gradient(180deg, #ff9d33 0%, #f5720b 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 8px 22px -10px rgba(245, 114, 11, .6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    0 14px 30px -10px rgba(245, 114, 11, .75);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.btn-ghost:active { transform: translateY(0); }

/* hero CTAs get a directional cue */
.hero-actions .btn::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  transition: transform .18s ease;
}
.hero-actions .btn:hover::after { transform: translateX(3px); }

/* ===== Register button — hover-drawer decoration layered around the untouched .btn ===== */
.reg-btn-container {
  --reg-duration: 250ms;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-btn-drawer {
  position: absolute;
  display: flex;
  justify-content: center;
  min-height: 28px;
  border-radius: 10px;
  padding: .3em 1em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .76rem;
  color: var(--brand);
  white-space: nowrap;

  background: #17130d;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .55);
  opacity: 0;

  transition:
    transform calc(.5 * var(--reg-duration)) ease,
    opacity calc(.5 * var(--reg-duration)) ease;
}
.reg-drawer-top { top: 0; left: 0; border-radius: 10px 10px 0 0; align-items: start; }
.reg-drawer-bottom { bottom: 0; right: 0; border-radius: 0 0 10px 10px; align-items: end; }

.reg-btn-container:is(:has(.btn:hover), :has(.btn:focus-visible)) .reg-drawer-top {
  transform: translateY(-20px) rotateZ(3deg);
  opacity: 1;
}
.reg-btn-container:is(:has(.btn:hover), :has(.btn:focus-visible)) .reg-drawer-bottom {
  transform: translateY(20px) rotateZ(3deg);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reg-btn-drawer { transition: none !important; }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 74px;
}
.nav-menu { margin-left: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.brand-logo { height: 24px; width: auto; display: block; filter: var(--logo-filter); }
.footer-logo { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.menu-root {
  display: flex;
  align-items: center;
  gap: .4rem;
  list-style: none;
}
.menu-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-soft);
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem .7rem;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.menu-link:hover,
.has-menu:hover > .menu-trigger,
.menu-trigger[aria-expanded="true"] { color: var(--text); background: var(--bg-alt); }

.caret {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.has-menu:hover .caret,
.menu-trigger[aria-expanded="true"] .caret { transform: translateY(1px) rotate(-135deg); }

.has-menu { position: relative; }
.submenu {
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 120;
}
.submenu::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.has-menu:hover > .submenu,
.has-menu:focus-within > .submenu,
.menu-trigger[aria-expanded="true"] + .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.submenu a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background .15s ease, color .15s ease;
}
.submenu a:hover { background: var(--bg-alt); color: var(--brand-ink); }

.submenu-poster-group { padding: .3rem .2rem .4rem; }
.submenu-poster-label {
  display: block;
  padding: .3rem .5rem .5rem;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-soft);
}
.submenu-poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  padding: 0 .2rem;
}
.submenu-poster-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.submenu-poster-link:hover,
.submenu-poster-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  outline: none;
}
.submenu-poster-thumb {
  width: 100%;
  aspect-ratio: 300 / 427;
  object-fit: cover;
  display: block;
}

/* ---- Poster download format picker ---- */
.poster-format-popover {
  position: fixed;
  z-index: 200;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: .4rem;
  display: none;
}
.poster-format-popover.is-open { display: block; }
.poster-format-popover-title {
  margin: 0;
  padding: .35rem .6rem .5rem;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-soft);
}
.poster-format-popover-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
  padding: .6rem .65rem;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-weight: 500;
  font-size: .92rem;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.poster-format-popover-btn:hover,
.poster-format-popover-btn:focus-visible {
  background: var(--bg-alt);
  color: var(--brand-ink);
  outline: none;
}
.poster-format-popover-ext {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: .03em;
}
.submenu.force-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Theme toggle — icon button, matches .btn-ghost styling ===== */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .25s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.theme-toggle:active { transform: translateY(0); }
@supports selector(:focus-visible) {
  .theme-toggle:focus { outline: none; }
  .theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
  }
}

.theme-toggle-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
}
.theme-toggle-icon.icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--brand-2);
}
.theme-toggle-icon.icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(.4);
}
:root[data-theme="dark"] .theme-toggle-icon.icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(.4);
}
:root[data-theme="dark"] .theme-toggle-icon.icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--brand-3);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-icon { transition: none !important; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 170px 0 clamp(150px, 20vh, 210px);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
/* scrim: fades the hero into the page at the top edge */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 24%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--countdown-h, 90px);
  z-index: 1;
  opacity: .1;
  pointer-events: none;
  overflow: hidden;
}
.hero-skyline img {
  width: 140%;
  max-width: none;
  height: auto;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  filter: var(--logo-filter);
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(247,155,30,.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247,155,30,.11) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.blob-1 { width: 420px; height: 420px; background: #ffc98f; top: -120px; left: -80px; }
.blob-2 { width: 360px; height: 360px; background: #ffd8a6; top: -60px; right: -60px; opacity: .5; }
.blob-3 { width: 300px; height: 300px; background: #ffe6b8; top: 220px; left: 45%; opacity: .5; }

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}

/* ---- Animated headline: "Small teams," / "big projects" ---- */
.small-team {
  font-family: "Azonix", "DM Sans", var(--font-display), sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  letter-spacing: .06em;
  line-height: 1;
  color: var(--text);
  margin: 0;
}
.big-results-wrap {
  position: relative;
  width: 100%;
  margin-top: .35em;
  display: flex;
  justify-content: center;
}
.big-results {
  font-family: "Azonix", "DM Sans", var(--font-display), sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.2rem, 9.5vw, 6.3rem);
  letter-spacing: -.01em;
  line-height: .85;
  color: var(--brand);
  white-space: nowrap;
  user-select: none;
}

/* ---- Floating photo cards ---- */
.cards-row {
  position: relative;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  height: 310px;
  max-width: 1040px;
}
.card {
  position: absolute;
  top: 20px;
  width: 165px;
  height: 212px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 6px rgba(120,40,0,.28);
  opacity: 0;
  animation: cardIn .8s cubic-bezier(.2,.9,.2,1) both;
  animation-delay: calc(.5s + var(--i, 0) * .08s);
  transition: box-shadow .4s;
}
.card:hover { box-shadow: var(--shadow-lg), inset 0 2px 0 rgba(255,255,255,.4), inset 0 -3px 6px rgba(120,40,0,.3); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-1 { left: 0%;  top: 30px;  --i: 0; --rot: -10deg; }
.card-2 { left: 21%; top: -10px; --i: 1; --rot: -5deg; }
.card-3 { left: 42%; top: 14px;  --i: 2; --rot: 0deg; width: 190px; height: 245px; z-index: 2; }
.card-4 { left: 65%; top: -12px; --i: 3; --rot: 5deg; }
.card-5 { left: 84%; top: 22px;  --i: 4; --rot: 10deg; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(-60px) rotate(calc(var(--rot, 0deg) + 20deg)) scale(.7); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none !important; opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .cards-row { height: 190px; }
  .card { width: 104px; height: 134px; border-radius: 14px; }
  .card-3 { width: 118px; height: 152px; }
}
@media (max-width: 700px) {
  /* The overlapping rotated fan reads as cluttered at phone widths —
     drop it rather than cram it in. */
  .cards-row { display: none; }
}

/* ---- Meta / CTAs / subline below the headline ---- */
.hero-sub-row {
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  max-width: 640px;
  text-align: center;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.6rem;
}
.hero-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -.01em;
  color: var(--text);
}
.hero-loc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.subline-text {
  margin-top: 1.4rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ===== Countdown — full-width console anchored to the hero bottom ===== */
.countdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 1.5rem clamp(24px, 5vw, 64px) 1.4rem;
  color: #f3f2ef;
  background:
    radial-gradient(120% 180% at 12% 0%, rgba(247, 155, 30, .16), transparent 60%),
    linear-gradient(180deg, rgba(18, 14, 10, .86), rgba(15, 12, 9, .96));
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-top: 1px solid rgba(255, 255, 255, .09);
  overflow: hidden;
}
/* glowing accent line + faint grid texture */
.countdown::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 155, 30, .9) 25%, rgba(34, 211, 238, .7) 55%, transparent);
  box-shadow: 0 0 24px rgba(247, 155, 30, .55);
}
.countdown::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.countdown-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

.countdown-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(243, 242, 239, .62);
  white-space: nowrap;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9a2e;
  box-shadow: 0 0 0 0 rgba(255, 154, 46, .7);
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 154, 46, .55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 154, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 154, 46, 0); }
}

.countdown-clock {
  display: flex;
  align-items: stretch;
  gap: .55rem;
}
.cd-unit {
  min-width: clamp(66px, 9vw, 104px);
  padding: .55rem .4rem .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px -16px rgba(0, 0, 0, .8);
}
.cd-value {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 18px rgba(247, 155, 30, .35);
}
.cd-name {
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243, 242, 239, .5);
}
.cd-sep {
  align-self: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 700;
  color: rgba(247, 155, 30, .85);
  transform: translateY(-.35em);
  animation: sepBlink 1s steps(1) infinite;
}
@keyframes sepBlink {
  50% { opacity: .2; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot, .cd-sep { animation: none; }
}

/* ===== Partners strip / marquee ===== */
.partners-strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 1.1rem 0;
  overflow: hidden;
}
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-mute);
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 620px; margin: 0 auto 3.5rem; text-align: center; }
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: .8rem;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-lead { color: var(--text-soft); font-size: 1.08rem; }

/* ===== Mission / Vision statements ===== */
.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.statement-reverse .statement-content { order: 2; }
.statement-reverse .statement-visual { order: 1; }

.statement-content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.statement-head { position: relative; margin-bottom: .2rem; }
.statement-head .section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0;
}
.statement-mark {
  position: absolute;
  top: 1.6rem;
  right: -1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 4.75rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  opacity: .8;
  pointer-events: none;
  user-select: none;
}
.statement-body {
  display: grid;
  gap: 1.3rem;
  max-width: 62ch;
}
.statement-body p {
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.65;
  color: var(--text);
}
.statement-body p + p { color: var(--text-soft); font-size: 1.05rem; }

/* ---- Statement photo panel (Mission + Vision) ---- */
.statement-visual { position: relative; }
.statement-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.statement-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Videos ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.video-card { margin: 0; }
.video-window {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f0c09;
  box-shadow: var(--shadow-md);
}
.video-window-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .9rem;
  background: #17130d;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.video-window-label {
  margin-left: .5rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .01em;
  color: rgba(243, 242, 239, .5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f0c09;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  margin-top: .8rem;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}

/* ===== Map embed ===== */
.map-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Domains ===== */
.domain-grid { grid-template-columns: repeat(3, 1fr); }
.domain-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .28s ease, border-color .22s ease;
}
.domain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.domain-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.domain-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.domain-card:hover .domain-media img { transform: scale(1.06); }
.domain-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 12, 9, .55), transparent 55%);
  pointer-events: none;
}
.domain-index {
  position: absolute;
  left: 1.1rem;
  bottom: .9rem;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  color: #f3f2ef;
}

.domain-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.9rem 1.9rem;
}
.domain-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.domain-card > .domain-body > p { color: var(--text-soft); font-size: .96rem; margin-bottom: 1.1rem; }
.domain-count {
  align-self: flex-start;
  padding: .32rem .75rem;
  margin-bottom: 1.3rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.domain-cats {
  list-style: none;
  display: grid;
  gap: .1rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: .9rem;
}
.domain-cats a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: .5rem .1rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  transition: color .15s ease, background-color .2s ease, padding .2s cubic-bezier(.34,1.56,.64,1), transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}
.domain-cats a:hover {
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  padding: .5rem .9rem;
  transform: scale(1.06);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 22%, transparent);
}

/* ===== Card grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  font-size: 1.5rem;
  border-radius: 12px;
  background: var(--gradient-soft);
  margin-bottom: 1.1rem;
}

/* ===== Category cards — clean tech spec-sheet style ===== */
.tech-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .28s ease, border-color .22s ease;
}
.tech-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .25s ease;
}
.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.tech-card:hover::before { opacity: 1; }

.tech-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .2rem;
}
.tech-card .cat-icon { margin-bottom: 0; }
.tech-card-index {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .78rem;
  color: var(--text-mute);
  padding-top: .45rem;
}
.tech-card h3 { font-size: 1.1rem; margin: .5rem 0 .5rem; }
.tech-card > p { color: var(--text-soft); font-size: .92rem; margin-bottom: 1.3rem; }
.tech-card-tag {
  align-self: flex-start;
  margin-top: auto;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .72rem;
  color: var(--brand-ink);
  background: var(--gradient-soft);
  border-radius: 6px;
  padding: .3rem .55rem;
}

/* ===== Timeline — connected pipeline of spec cards ===== */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin: 0;
  padding-top: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(12.5% - 1px);
  right: calc(12.5% - 1px);
  top: 19px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--border) 92%, transparent);
}
.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tl-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1.3rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: .8rem;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  transition: border-color .28s ease, color .28s ease, background .28s ease;
}
.timeline li:hover .tl-node {
  border-color: transparent;
  color: #fff;
  background: var(--gradient);
}

.tl-body {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  text-align: left;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.timeline li:hover .tl-body {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.tl-date {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .8rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--brand-ink);
}
.tl-date::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.tl-body h3 { font-size: 1.02rem; margin: 0 0 .45rem; }
.tl-body p { color: var(--text-soft); font-size: .89rem; line-height: 1.55; }

@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 1.1rem; }
  .timeline::before {
    left: 18px; right: auto; top: 8px; bottom: 8px; height: auto;
    width: 1px;
    background: linear-gradient(var(--border), transparent);
  }
  .timeline li { flex-direction: row; align-items: flex-start; text-align: left; gap: 1rem; }
  .tl-node { flex-shrink: 0; width: 38px; height: 38px; margin-bottom: 0; }
  .tl-body { text-align: left; }
}

/* ===== World Finals day-by-day schedule ===== */
.schedule {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.6rem;
  align-items: start;
}
.schedule-days {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sched-day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  text-align: left;
  padding: .85rem 1rem .85rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.sched-day::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  bottom: .55rem;
  width: 3px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleY(0);
  transform-origin: 50% 50%;
  transition: transform .22s ease;
}
.sched-day:hover { border-color: transparent; box-shadow: var(--shadow-sm); }
.sched-day-n {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.sched-day-d {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  color: var(--text);
}
.sched-day.is-active {
  background: var(--gradient-soft);
  border-color: transparent;
}
.sched-day.is-active::before { transform: scaleY(1); }
.sched-day.is-active .sched-day-n { color: var(--brand-ink); }
.sched-day:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
}

.schedule-panels {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.7rem clamp(1.2rem, 3vw, 2.2rem) 1.9rem;
}
.sched-panel:focus-visible { outline: none; }
.sched-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.sched-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.sched-panel-count {
  flex-shrink: 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .72rem;
  color: var(--text-mute);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .28rem .65rem;
}
.sched-list { list-style: none; display: grid; }
.sched-list li {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1rem .9rem;
  margin-inline: -.9rem;
  border-radius: 10px;
  transition: background-color .2s ease;
}
.sched-list li:not(:first-child) { position: relative; }
.sched-list li:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: .9rem;
  right: .9rem;
  height: 1px;
  background: var(--border);
}
.sched-list li:hover { background: var(--bg-alt); }
.sched-list li:hover::before { opacity: 0; }
.sched-time {
  align-self: start;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-weight: 600;
  font-size: .78rem;
  text-align: center;
  color: var(--brand-ink);
  background: var(--gradient-soft);
  border-radius: 6px;
  padding: .32rem .3rem;
  font-variant-numeric: tabular-nums;
}
.sched-item h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: .2rem;
}
.sched-item p { color: var(--text-soft); font-size: .93rem; }

/* ===== Benefits ===== */
.benefits { grid-template-columns: repeat(2, 1fr); }
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.benefit::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.benefit:hover::after { transform: scaleX(1); }
.benefit h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.benefit p { color: var(--text-soft); font-size: .95rem; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: .8rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-ink);
  transition: transform .25s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.2rem; }
.faq-answer p { color: var(--text-soft); font-size: .97rem; }
.faq-answer a { color: var(--brand-ink); text-decoration: underline; }

/* ===== CTA band — dark tech console, matches the countdown/video styling ===== */
.cta-band {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  color: #f3f2ef;
  background:
    radial-gradient(120% 180% at 15% 0%, rgba(247, 155, 30, .16), transparent 60%),
    linear-gradient(180deg, #17130d, #0f0c09);
}
/* Instagram-branded variant of the CTA band */
.cta-instagram {
  background:
    radial-gradient(120% 160% at 20% 0%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(135deg, #4f5bd5, #962fbf 30%, #d62976 55%, #fa7e1e 78%, #feda75);
}
.cta-instagram::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85) 50%, transparent);
  box-shadow: 0 0 24px rgba(255, 255, 255, .5);
}
.cta-instagram .cta-status { background: rgba(0, 0, 0, .22); }
.cta-instagram .cta-lead { color: rgba(255, 255, 255, .85); }
.cta-instagram .cta-btn { color: #d62976; background: #fff; }
.cta-instagram .cta-btn:hover { background: #f3f2ef; }

/* glowing accent line + faint grid texture, same recipe as .countdown */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 155, 30, .9) 25%, rgba(34, 211, 238, .7) 55%, transparent);
  box-shadow: 0 0 24px rgba(247, 155, 30, .55);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 120% at 50% 0%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 120% at 50% 0%, #000 40%, transparent 85%);
}

.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; }
.cta-status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.4rem;
  padding: .4rem .95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .76rem;
  letter-spacing: .03em;
  color: rgba(243, 242, 239, .78);
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.cta-lead { color: rgba(243, 242, 239, .68); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-btn { box-shadow: var(--shadow-lg); }

/* ===== Guide ===== */
.guide-grid { grid-template-columns: repeat(3, 1fr); }
.guide-grid .tech-card-head { justify-content: flex-end; }
.guide-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-weight: 600;
  font-size: .84rem;
  color: var(--brand-ink);
}
.guide-link:hover { text-decoration: underline; }

/* ===== Gallery ===== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.media-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
  padding: 0;
  border: none;
  background: var(--bg-alt);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.media-tile:hover img,
.media-tile:focus-visible img {
  transform: scale(1.06);
}
.media-tile:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

/* ===== World Finals Booth ===== */
.booth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.booth-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
}
.booth-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.booth-text .section-eyebrow { margin-bottom: .6rem; }
.booth-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.booth-text p { color: var(--text-soft); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.1rem; }
.booth-points {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.booth-points li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--text);
}
.booth-points li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: .5rem;
  border-radius: 50%;
  background: var(--gradient);
}
@media (max-width: 860px) {
  .booth-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 8, 5, .88);
  opacity: 0;
  animation: lightboxIn .18s ease forwards;
}
.lightbox[hidden] { display: none; }
@keyframes lightboxIn { to { opacity: 1; } }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.24); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-nav[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.poster {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border);
}
.poster figcaption {
  width: 100%;
  padding: .7rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
}
.poster.p1 { background: linear-gradient(160deg, #ff9a2e, #b5560a); }
.poster.p2 { background: linear-gradient(160deg, #f79b1e, #1a1712); }
.poster.p3 { background: linear-gradient(160deg, #ffc44d, #f5720b); }
.poster.p4 { background: linear-gradient(160deg, #d9540a, #ffc98f); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.contact-list {
  list-style: none;
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.contact-list span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-list a { color: var(--brand-ink); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.contact-list li > span:last-child { color: var(--text); font-size: .96rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
}
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(247,155,30,.18);
}
.form-note { font-weight: 600; font-size: .9rem; min-height: 1.1rem; color: var(--brand-ink); }

/* ===== Footer ===== */
.site-footer {
  background: #0f1729;
  color: #b9c2d8;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.brand-footer { color: #fff; font-size: 1.3rem; }
.footer-tag { margin-top: .9rem; font-size: .92rem; max-width: 280px; color: #8b96b0; }
.footer-address { margin-top: .5rem; font-size: .88rem; max-width: 280px; color: #8b96b0; }
.site-footer h4 {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer nav a {
  display: block;
  font-size: .93rem;
  padding: .32rem 0;
  color: #b9c2d8;
  transition: color .2s ease;
}
.site-footer nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .88rem;
  color: #8b96b0;
}
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--brand); }
.footer-social svg { display: block; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .statement-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .statement-reverse .statement-content,
  .statement-reverse .statement-visual { order: initial; }
  .statement-mark { position: static; display: block; margin-bottom: .5rem; }
  .video-grid { grid-template-columns: 1fr; }

  .schedule { grid-template-columns: 1fr; gap: 1.1rem; }
  .schedule-days {
    flex-direction: row;
    overflow-x: auto;
    gap: .6rem;
    padding-bottom: .4rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .sched-day { flex: 0 0 auto; min-width: 128px; scroll-snap-align: start; }
  .sched-day:hover { transform: none; }
}

@media (max-width: 600px) {
  .hero { min-height: 86vh; }
  .hero::after {
    background:
      linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 34%, color-mix(in srgb, var(--bg) 45%, transparent) 60%, var(--bg) 100%);
  }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .theme-toggle { margin-left: auto; }
  .nav-menu {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--menu-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: .5rem 24px 1.4rem;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu-root { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .menu-link {
    width: 100%;
    justify-content: space-between;
    padding: .95rem .2rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1rem;
  }
  .menu-link:hover,
  .menu-trigger[aria-expanded="true"] { background: none; }

  .has-menu { position: static; }
  .submenu,
  .has-menu:hover > .submenu,
  .has-menu:focus-within > .submenu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0 0 0 .6rem;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    display: none;
  }
  .menu-trigger[aria-expanded="true"] + .submenu {
    display: block;
    padding-bottom: .5rem;
  }
  .submenu a { padding: .7rem .4rem; }

  .nav-cta { margin-top: 1rem; text-align: center; }

  .brand-logo { height: 21px; }
  .hero { padding: 128px 0 clamp(190px, 32vh, 250px); }
  .countdown { padding: 1rem clamp(16px, 5vw, 32px) 1.1rem; }
  .countdown-inner { justify-content: center; text-align: center; gap: .9rem; }
  .countdown-clock { gap: .4rem; }
  .cd-unit { min-width: 0; flex: 1 1 0; padding: .5rem .2rem .45rem; border-radius: 12px; }
  .cd-sep { display: none; }
  .section { padding: 72px 0; }
  .about-card-inner { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ========================================
   Subpages — breadcrumb, page hero, facts,
   prose, info sidebar, rubric table
   ======================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--text-mute);
  margin-top: 96px;
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--brand-ink); text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

.page-hero { padding: 26px 0 60px; }
.page-hero-head { max-width: 760px; }
.page-hero-head-center { margin: 0 auto; text-align: center; }
.page-hero-head-center .page-hero-lead { margin-inline: auto; }
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .75rem;
  color: var(--brand-ink);
  background: var(--gradient-soft);
  border-radius: 999px;
  padding: .4rem .85rem;
  margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -.02em;
  margin-bottom: .9rem;
}
.page-hero-lead { color: var(--text-soft); font-size: 1.1rem; max-width: 62ch; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.fact-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 420px;
  margin-top: 0;
  margin-bottom: 1.8rem;
}
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.fact-card span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: .5rem;
}
.fact-card p { color: var(--text); font-size: .94rem; }

.info-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.prose { max-width: 74ch; }
.prose-center { margin-inline: auto; }
.prose p { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.2rem; margin: 2.2rem 0 .8rem; }
.prose h3:first-child { margin-top: 0; }
.prose h4 { font-size: .98rem; margin: 1.3rem 0 .5rem; color: var(--text); }
.prose p + h4 { margin-top: 1.1rem; }
.prose ul { padding-left: 1.3rem; display: grid; gap: .55rem; color: var(--text-soft); font-size: .98rem; margin-bottom: 1.1rem; }
.prose ul li::marker { color: var(--brand-ink); }
.prose strong { color: var(--text); }

.info-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.5rem;
  align-content: start;
  position: sticky;
  top: 100px;
}
.info-side-block h4 {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: .8rem;
}
.info-side-block ul { list-style: none; display: grid; gap: .55rem; }
.info-side-block a {
  color: var(--text-soft);
  font-size: .93rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease;
}
.info-side-block a:hover { background: var(--bg-alt); color: var(--brand-ink); }
.info-side-block a::after { content: "→"; opacity: .5; }

/* ===== Evaluation rubric — 1–5 scale tokens ===== */
:root {
  --scale-1: #c8503f;
  --scale-2: #d3873a;
  --scale-3: #c4a022;
  --scale-4: #6ca142;
  --scale-5: #2f9159;
}
:root[data-theme="dark"] {
  --scale-1: #e2685a;
  --scale-2: #e2a35f;
  --scale-3: #d6bd4f;
  --scale-4: #8bc465;
  --scale-5: #4cbf83;
}

/* Legend */
.rubric-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.rubric-legend li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-soft);
  font-weight: 500;
}
.rubric-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rubric-legend-dot.s1 { background: var(--scale-1); }
.rubric-legend-dot.s2 { background: var(--scale-2); }
.rubric-legend-dot.s3 { background: var(--scale-3); }
.rubric-legend-dot.s4 { background: var(--scale-4); }
.rubric-legend-dot.s5 { background: var(--scale-5); }

/* Card + tabs */
.rubric-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rubric-tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  gap: .5rem;
  padding: .85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.rubric-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
  padding: .65rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rubric-tab:hover { color: var(--text); border-color: var(--brand); }
.rubric-tab.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.rubric-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-alt), 0 0 0 4px var(--brand);
}

/* scroll affordance: fade hint on the trailing edge when tabs overflow */
.rubric-tabs-wrap { position: relative; }
.rubric-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--bg-alt));
  pointer-events: none;
}

.rubric-panel[hidden] { display: none; }
.rubric-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rubric-matrix {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}
.rubric-matrix th, .rubric-matrix td {
  text-align: left;
  vertical-align: top;
  padding: .95rem 1.3rem;
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
  line-height: 1.55;
}
.rubric-matrix thead tr { border-bottom: 1px solid var(--border); }
.rubric-matrix th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .03em;
  color: var(--text-mute);
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 var(--border);
}
.rubric-matrix th:not(:first-child) { text-align: center; }
.rubric-matrix th:nth-child(2) { box-shadow: inset 0 -2px 0 var(--scale-1); }
.rubric-matrix th:nth-child(3) { box-shadow: inset 0 -2px 0 var(--scale-2); }
.rubric-matrix th:nth-child(4) { box-shadow: inset 0 -2px 0 var(--scale-3); }
.rubric-matrix th:nth-child(5) { box-shadow: inset 0 -2px 0 var(--scale-4); }
.rubric-matrix th:nth-child(6) { box-shadow: inset 0 -2px 0 var(--scale-5); }

.rubric-matrix th:first-child, .rubric-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  min-width: 190px;
  box-shadow: 1px 0 0 var(--border);
}
.rubric-matrix thead th:first-child { z-index: 3; }

.rubric-crit-num {
  display: inline-block;
  min-width: 1.6em;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .74rem;
  color: var(--text-mute);
  margin-right: .5rem;
}
.rubric-crit-name { font-weight: 600; color: var(--text); }

.rubric-matrix tbody tr:hover td { background: var(--bg-alt); }
.rubric-matrix tbody tr:hover td:first-child { background: var(--bg-alt); }
.rubric-matrix td:not(:first-child) { color: var(--text-soft); }
.rubric-matrix td:nth-child(2) { background: color-mix(in srgb, var(--scale-1) 6%, transparent); }
.rubric-matrix td:nth-child(3) { background: color-mix(in srgb, var(--scale-2) 6%, transparent); }
.rubric-matrix td:nth-child(4) { background: color-mix(in srgb, var(--scale-3) 6%, transparent); }
.rubric-matrix td:nth-child(5) { background: color-mix(in srgb, var(--scale-4) 6%, transparent); }
.rubric-matrix td:nth-child(6) { background: color-mix(in srgb, var(--scale-5) 7%, transparent); }
.rubric-matrix tbody tr:hover td:not(:first-child) { filter: brightness(0.98); }

/* ===== Evaluation rubric — stacked card view on small screens ===== */
@media (max-width: 760px) {
  .container-wide { padding-inline: 14px; }
  .rubric-wrap { border-radius: var(--radius); }
  .rubric-tabs { padding: .6rem; gap: .35rem; }
  .rubric-tab { padding: .55rem .95rem; font-size: .82rem; }

  .rubric-table-wrap { overflow-x: visible; padding: .9rem; }
  .rubric-matrix { display: block; width: 100%; min-width: 0; }
  .rubric-matrix thead { display: none; }
  .rubric-matrix tbody { display: block; }
  .rubric-matrix tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .rubric-matrix tr + tr { margin-top: 1rem; }
  .rubric-matrix td {
    display: block;
    position: static;
    width: auto;
    min-width: 0;
    box-shadow: none !important;
    border-bottom: 1px solid var(--border);
  }
  .rubric-matrix td:last-child { border-bottom: none; }
  .rubric-matrix td:first-child {
    background: var(--bg-alt) !important;
    padding: .9rem 1rem;
  }
  .rubric-crit-num { margin-right: .4rem; }
  .rubric-matrix td:not(:first-child) { padding: .85rem 1rem; }
  .rubric-matrix td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-mute);
    margin-bottom: .35rem;
  }
  .rubric-matrix tbody tr:hover td { background: initial; }
  .rubric-matrix tbody tr:hover td:first-child { background: var(--bg-alt) !important; }
  .rubric-matrix td:nth-child(2) { background: color-mix(in srgb, var(--scale-1) 6%, transparent); }
  .rubric-matrix td:nth-child(3) { background: color-mix(in srgb, var(--scale-2) 6%, transparent); }
  .rubric-matrix td:nth-child(4) { background: color-mix(in srgb, var(--scale-3) 6%, transparent); }
  .rubric-matrix td:nth-child(5) { background: color-mix(in srgb, var(--scale-4) 6%, transparent); }
  .rubric-matrix td:nth-child(6) { background: color-mix(in srgb, var(--scale-5) 7%, transparent); }
}

.related-section { margin-top: 4.5rem; }

/* ===== Awards — prize money & medal tiers ===== */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.prize-card {
  position: relative;
  text-align: center;
  padding: 2.2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.prize-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prize-rank {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
}
.prize-card-first .prize-rank { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }
.prize-place {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: .6rem;
}
.prize-card-first .prize-place { color: var(--brand-ink); }
.prize-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: .4rem;
}
.prize-card-first .prize-amount { color: var(--brand-ink); }
.prize-per { color: var(--text-mute); font-size: .84rem; margin-bottom: 1.2rem; }
.prize-badge {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 600;
}
.prize-badge-brand { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand-ink); }

.prize-total {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1.8rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.prize-total-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-ink);
}
.prize-total-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--brand-ink);
  white-space: nowrap;
}
.prize-total-label {
  font-weight: 700;
  margin-bottom: .3rem;
}
.prize-total-text { color: var(--text-soft); font-size: .92rem; max-width: 60ch; }

.medal-photo {
  max-width: 640px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.medal-photo img { width: 100%; height: auto; display: block; }

.medal-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.medal-bar-seg { display: block; height: 100%; }
.medal-bar-seg + .medal-bar-seg { border-left: 2px solid var(--surface); }

.medal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.medal-card {
  text-align: center;
  padding: 2.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.medal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.medal-platinum { background: linear-gradient(145deg, #f2f3f5, #c7ccd4); }
.medal-gold { background: linear-gradient(145deg, #ffe08a, #d69a1f); }
.medal-silver { background: linear-gradient(145deg, #eef0f2, #a9adb3); }
.medal-bronze { background: linear-gradient(145deg, #e3ac7c, #9c5f2e); }
.medal-disc {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
}
.medal-disc svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.2));
}
.medal-disc .medal-shine {
  transition: transform .6s ease, opacity .6s ease;
}
.medal-card:hover .medal-disc .medal-shine {
  transform: translate(140px, -60px);
  opacity: .22;
}
.medal-name {
  font-size: 1.15rem;
  margin-bottom: .8rem;
}
/* ===== Category page — action photo gallery ===== */
.category-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.category-gallery-item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.category-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.category-gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 700px) {
  .category-gallery { grid-template-columns: 1fr; }
}

/* ===== Category page — sample track layouts ===== */
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}
.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.track-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.track-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #fff;
}
.track-card-media img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
}
.track-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--border);
}
.track-card-name { font-weight: 600; font-size: .95rem; color: var(--text); }
@media (max-width: 700px) {
  .track-grid { grid-template-columns: 1fr; }
  .track-card-foot { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ===== Category page — sample project ideas ===== */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.idea-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.idea-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.idea-card h4 { font-size: 1.02rem; margin-bottom: .5rem; color: var(--text); }
.idea-card p { color: var(--text-soft); font-size: .92rem; }

.note-card {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.note-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-ink);
}
.note-card-label {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: .35rem;
}
.note-card-text { color: var(--text-soft); font-size: .92rem; }
.note-card-text a { color: var(--brand-ink); text-decoration: underline; }

@media (max-width: 960px) {
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .info-side { position: static; }
  .medal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .prize-grid { grid-template-columns: 1fr; }
  .idea-grid { grid-template-columns: 1fr; }
  .fact-grid-2 { max-width: none; }
}
@media (max-width: 480px) {
  .fact-grid { grid-template-columns: 1fr; }
  .medal-grid { grid-template-columns: 1fr; }
  .prize-total { flex-direction: column; align-items: flex-start; }
}

/* ===== "Ten ways to compete" — spec-sheet category cards =====
   Theme-aware technical card: cover photo + mono index chip, title,
   one-line description clamped to 2 lines, a divider, then a domain
   tag and an "open" affordance that fills with the brand gradient
   on hover. */
.spec-card {
  --spec-accent: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.spec-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s ease;
  z-index: 2;
}
.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.spec-card:hover::before { transform: scaleX(1); }
.spec-card:active { transform: translateY(-1px); }

.spec-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.spec-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.spec-card:hover .spec-card-media img { transform: scale(1.07); }
.spec-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.spec-card-index {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 1;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .03em;
  color: #fff;
  background: rgba(15, 12, 7, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: .3rem .65rem;
  font-variant-numeric: tabular-nums;
}

.spec-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.5rem 1.4rem;
}
.spec-card-title {
  font-size: 1.12rem;
  margin-bottom: .5rem;
}
.spec-card-desc {
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spec-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.spec-card-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: .72rem;
  color: var(--text-mute);
  letter-spacing: .02em;
}
.spec-card-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spec-accent);
  flex-shrink: 0;
}
.spec-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: background .28s ease, border-color .28s ease, color .28s ease, transform .28s ease;
}
.spec-card-arrow svg { width: 15px; height: 15px; transition: transform .28s ease; }
.spec-card:hover .spec-card-arrow {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: rotate(45deg);
}

@media (max-width: 480px) {
  .spec-card-desc { -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .spec-card, .spec-card::before, .spec-card-media img, .spec-card-arrow, .spec-card-arrow svg { transition: none; }
}


/* ===== Local contests world map ===== */
.world-map {
  margin-top: .5rem;
}
.world-map-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  overflow: visible;
}
.world-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.world-map-land {
  fill: var(--bg-alt);
  stroke: var(--border);
  stroke-width: 1;
}

.map-pin {
  cursor: pointer;
  outline: none;
}
.map-pin-static { cursor: default; }
.map-pin-dot {
  fill: var(--brand-2);
  stroke: var(--surface);
  stroke-width: 1.5;
  transition: r .18s cubic-bezier(.34,1.56,.64,1), fill .18s ease;
}
.map-pin:hover .map-pin-dot,
.map-pin:focus-visible .map-pin-dot {
  r: 7;
  fill: var(--brand-ink);
}
.map-pin-pulse {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  opacity: 0;
  animation: mapPulse 2.6s ease-out infinite;
}
@keyframes mapPulse {
  0% { r: 4; opacity: .6; }
  100% { r: 16; opacity: 0; }
}

.map-flag-grid {
  opacity: 0;
  transform: translateY(-4px) scale(.85);
  transform-box: fill-box;
  transform-origin: 50% 0%;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34,1.56,.64,1);
}
.map-flag-grid.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.map-flag-icon { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

.map-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, calc(-100% - 12px)) scale(.85);
  background: var(--text);
  color: var(--bg);
  padding: .45rem .95rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: var(--shadow-md);
  transition: opacity .16s ease, transform .16s cubic-bezier(.34,1.56,.64,1);
  z-index: 5;
}
.map-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 12px)) scale(1);
}
.map-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: var(--text);
  transform: translateX(-50%) rotate(45deg);
}

.world-map-note {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--text-soft);
  font-size: .92rem;
}

@media (max-width: 640px) {
  .world-map-inner { padding: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin-pulse { animation: none; }
  .map-pin-dot, .map-tooltip, .map-flag-grid { transition: none; }
}
