/* =========================================================
   Infomatrix — landing page (index_try.html)

   Principles
   - Quiet surfaces, generous space, system typography.
   - Infomatrix orange means one thing: action (buttons, links).
     Infi the robot is the single expressive element on the page.
   - No decorative gradients, glows, badges or numbered eyebrows.

   Contrast (WCAG, computed)
   light: text #1d1d1f on #fff 16.8:1 · secondary #6e6e73 on #fff 5.07:1, on #f5f5f7 4.66:1
          link #a64b00 on #f5f5f7 5.32:1 · #1d1d1f on orange #f7941d 7.38:1
   dark:  text #f5f5f7 on #000 19.3:1 · secondary #a1a1a6 on #000 8.16:1, on #1d1d1f 6.54:1
          link #ffa94d on #000 11.0:1, on #1d1d1f 8.84:1
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --tile: #f5f5f7;          /* tile on --bg */
  --tile-alt: #ffffff;      /* tile on --alt */
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, .1);
  --accent: #f7941d;        /* Infomatrix orange: fills */
  --accent-ink: #a64b00;    /* orange for text on light surfaces */
  --on-accent: #1d1d1f;
  --hl: #dc6f00;            /* orange display text on white: 3.32:1, large text only */
  --ink: #0b0b0c;           /* Infomatrix black for brand tiles and bands */
  --hdr-bg: rgba(255, 255, 255, .78);
  --bubble: #ffffff;
  --logo-filter: none;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --alt: #161617;
  --tile: #161617;
  --tile-alt: #1d1d1f;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --line: #424245;
  --hair: rgba(255, 255, 255, .14);
  --accent-ink: #ffa94d;
  --hl: #f7941d;            /* on black: 9.2:1 */
  --ink: #161617;
  --hdr-bg: rgba(22, 22, 23, .78);
  --bubble: #2c2c2e;
  --logo-filter: brightness(0) invert(1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: .6rem 1rem; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.text-link { color: var(--accent-ink); }
.text-link:hover { text-decoration: underline; }
.link-more { color: var(--accent-ink); font-weight: 400; white-space: nowrap; }
.link-more::after { content: "›"; display: inline-block; margin-left: .3em; font-size: 1.15em; line-height: 0; transform: translateY(.03em); }
.link-more:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px; border-radius: 980px; border: 0;
  font-size: 17px; font-weight: 400; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn-sm { min-height: 30px; padding: 5px 14px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 14px 28px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ffa232; }
.btn-secondary { background: var(--text); color: var(--bg); }
.btn-secondary:hover { opacity: .88; }

/* ---------- Header (floating functional layer: translucent material is fine here) ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: var(--hdr-bg);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--hair); }
.hdr-in { height: 56px; display: flex; align-items: center; gap: 1.5rem; }
.hdr-logo img { height: 18px; width: auto; filter: var(--logo-filter); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; gap: .25rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: 6px 10px; border: 0; background: none; cursor: pointer;
  font-size: 14px; color: var(--text); opacity: .82;
  transition: opacity .2s;
}
.nav-link:hover, .nav-dd.open > .nav-link { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.chev { width: 6px; height: 6px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-dd { position: relative; }
.dd {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 220px;
  display: grid; gap: 0; padding: 8px;
  background: var(--bg); border: 1px solid var(--hair); border-radius: var(--r);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px);
  transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
}
.dd::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.dd a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.dd a:hover { background: var(--alt); }
.dd-wide { grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 0 12px; padding: 16px; }
.dd-col { display: grid; align-content: start; }
.dd-label { font-size: 12px; color: var(--text-2); padding: 0 12px 6px; }
@media (hover: hover) and (min-width: 1001px) {
  .nav-dd:hover > .dd, .nav-dd:focus-within > .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
}
.nav-dd.open > .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav-dd.open .chev { transform: translateY(1px) rotate(-135deg); }
.hdr-tools { display: flex; align-items: center; gap: .25rem; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--text); opacity: .82; }
.icon-btn:hover { opacity: 1; background: var(--alt); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
.burger { display: none; position: relative; }
.burger { width: 44px; height: 44px; }
.burger span { position: absolute; left: 12px; right: 12px; top: 50%; height: 1.75px; margin-top: -.875px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 132px 0 104px; }
.hl { color: var(--hl); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 2rem; align-items: center; }
.hero-kicker { font-size: 21px; font-weight: 600; color: var(--accent-ink); margin-bottom: 14px; }
.hero-title { font-size: clamp(2.75rem, 6.2vw, 4.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.hero-lead { margin-top: 22px; font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.42; color: var(--text-2); max-width: 32em; }
.hero-meta { margin-top: 18px; font-size: 17px; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.hero-cta-center { justify-content: center; }

/* Countdown: plain figures on a quiet tile */
.cd {
  margin-top: 56px; padding: 30px 40px; border-radius: var(--r-lg); background: var(--ink); color: #f5f5f7;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 40px;
}
.cd-label { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.cd-date { margin-top: 4px; font-size: 14px; color: #a1a1a6; }
.cd-clock { display: flex; }
.cd-clock div { display: grid; justify-items: center; gap: 6px; padding: 0 30px; border-left: 1px solid rgba(255, 255, 255, .14); }
.cd-clock div:first-child { border-left: 0; padding-left: 0; }
.cd-clock div:last-child { padding-right: 0; }
.cd-clock b { min-width: 2ch; text-align: center; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; }
.cd-clock span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #a1a1a6; }
.cd .link-more, .final .link-more { color: #f7941d; }

/* ---------- Robot slots (empty layout space Infi flies into) ---------- */
.bot-slot { position: relative; }
.bot-slot-hero { height: clamp(380px, 44vw, 560px); }
/* Infi floats on the open page; a soft contact shadow is all the grounding he needs */
.bot-shadow { position: absolute; left: 50%; bottom: 3%; width: 42%; height: 28px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .14), transparent); }
:root[data-theme="dark"] .bot-shadow { background: radial-gradient(closest-side, rgba(247, 148, 29, .16), transparent); }

/* ---------- Robot layer ---------- */
.bot-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .6s; }
.bot-ready .bot-canvas { opacity: 1; }
.no-bot .bot-canvas, .no-bot .bot-say { display: none; }
.bot-hit { position: fixed; left: 0; top: 0; z-index: 41; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 40%; }
.bot-say {
  position: fixed; left: 0; top: 0; z-index: 45; max-width: 250px;
  padding: 10px 14px; border-radius: 16px;
  font-size: 15px; line-height: 1.35; color: var(--text);
  background: var(--bubble); box-shadow: 0 8px 30px rgba(0, 0, 0, .14), 0 0 0 1px var(--hair);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.bot-say.show { opacity: 1; }
.bot-say::after { content: ""; position: absolute; bottom: -6px; left: var(--tail, 50%); width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; }

/* ---------- Ask Infi chat ---------- */
.infi-chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 100px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--text); border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22), 0 0 0 1px var(--hair);
  animation: ic-in .22s var(--ease);
}
.infi-chat[hidden] { display: none; }
@keyframes ic-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ic-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--hair); }
.ic-hd b { display: block; font-size: 16px; }
.ic-hd span { display: block; font-size: 12px; color: var(--text-2); }
.ic-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--tile); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.ic-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ic-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.42; overflow-wrap: anywhere; }
.ic-msg p { margin: 0; }
.ic-msg p + p, .ic-msg p + ul, .ic-msg ul + p { margin-top: 6px; }
.ic-msg ul { margin: 0; padding-left: 18px; }
.ic-msg a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.ic-assistant { align-self: flex-start; background: var(--tile); border-bottom-left-radius: 6px; }
.ic-user { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ic-err { box-shadow: inset 0 0 0 1px var(--accent); }
.ic-typing { display: flex; gap: 4px; padding: 14px 16px; }
.ic-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: ic-dot 1s infinite ease-in-out; }
.ic-typing i:nth-child(2) { animation-delay: .15s; }
.ic-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ic-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ic-sug { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.ic-sug[hidden] { display: none; }
.ic-sug button { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ic-sug button:hover { border-color: var(--accent); }
.ic-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--hair); }
.ic-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; line-height: 1.35; }
.ic-form textarea:focus { outline: none; border-color: var(--accent); }
.ic-form button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
.ic-form button:disabled { opacity: .5; cursor: default; }
.infi-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 59; display: none;
  padding: 12px 18px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); cursor: pointer;
}
.no-bot .infi-launch { display: block; }
.infi-open .infi-launch { display: none; }
@media (max-width: 640px) {
  .infi-chat { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(620px, calc(100dvh - 80px)); }
}
@media (prefers-reduced-motion: reduce) { .infi-chat, .ic-typing i { animation: none; } }

/* ---------- Sections ---------- */
.sec { padding: 120px 0; position: relative; }
.sec-alt { background: var(--alt); }
.sec-alt .tile { background: var(--tile-alt); }
.tile { background: var(--tile); border-radius: var(--r-lg); }

/* Centred section heading; Infi floats beside it on wide screens */
.sec-head { position: relative; text-align: center; margin-bottom: 64px; }
.sec-head-copy { max-width: 760px; margin: 0 auto; }
.sec-lead { max-width: 640px; margin-inline: auto; }
@media (min-width: 900px) { .one-line { white-space: nowrap; } }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.sec-title { font-size: clamp(2.125rem, 4.4vw, 3.125rem); font-weight: 700; line-height: 1.07; letter-spacing: -0.028em; }
.sec-lead { margin-top: 18px; font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.42; color: var(--text-2); }
.sec-head .bot-slot { display: none; }
@media (min-width: 1180px) {
  .sec-head:has(.bot-slot) { min-height: 380px; display: flex; align-items: center; justify-content: center; }
  .sec-head .bot-slot { display: block; position: absolute; top: 0; right: 0; width: 250px; height: 100%; }
  .sec-head .bot-slot.slot-left { right: auto; left: 0; }
}

/* ---------- Romanian Stage ---------- */
.flag-ro { display: inline-flex; vertical-align: -1px; margin-right: 8px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); }
.flag-ro i { width: 5px; height: 12px; }
.flag-ro i:nth-child(1) { background: #002b7f; } .flag-ro i:nth-child(2) { background: #fcd116; } .flag-ro i:nth-child(3) { background: #ce1126; }
.sec-alt .ro-date { background: var(--bg); }
.sec-alt .tile .chips a { background: var(--alt); }
.ro-date { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 10px 20px 10px 10px; border-radius: var(--r); background: var(--alt); text-align: left; }
.ro-date strong { display: block; font-weight: 600; }
.ro-date span { font-size: 14px; color: var(--text-2); }
.ro-cal { width: 52px; border-radius: 10px; overflow: hidden; text-align: center; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.ro-cal span { display: block; padding: 2px 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #ce1126; }
.ro-cal b { display: block; font-size: 24px; font-weight: 600; line-height: 1.25; color: #1d1d1f; }
.ro-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.route { padding: 36px; }
.route-tag { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.route h3 { font-size: 28px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 980px; font-size: 14px; background: var(--bg); color: var(--text); transition: color .2s; }
.chips a:hover { color: var(--accent-ink); }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border-top: 1px solid var(--hair); padding-top: 20px; }
.steps li { position: relative; display: grid; gap: 2px; padding-right: 22px; }
.steps li + li::before { content: "›"; position: absolute; left: -16px; top: 0; color: var(--text-2); }
.steps li + li { padding-left: 4px; }
.steps b { font-weight: 600; font-size: 17px; }
.steps span { font-size: 14px; color: var(--text-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about { overflow: hidden; }
.about img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.about-body { padding: 32px 36px 40px; }
.about-body h3 { font-size: 28px; margin-bottom: 12px; }
.about-body p { color: var(--text-2); }

/* ---------- Domains + categories ---------- */
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.domain-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.domain-body { padding-top: 24px; }
.domain-body h3 { font-size: 28px; }
.domain-body > p { margin-top: 8px; color: var(--text-2); }
.cat-list { margin-top: 20px; border-top: 1px solid var(--hair); }
.cat-list a { position: relative; display: grid; gap: 1px; padding: 14px 28px 14px 0; border-bottom: 1px solid var(--hair); }
.cat-list a::after { content: "›"; position: absolute; right: 4px; top: 50%; transform: translateY(-52%); font-size: 22px; color: var(--text-2); transition: transform .2s var(--ease), color .2s; }
.cat-list b { font-weight: 600; transition: color .2s; }
.cat-list span { font-size: 14px; color: var(--text-2); }
.cat-list a:hover b, .cat-list a:hover::after { color: var(--accent-ink); }
.cat-list a:hover::after { transform: translate(3px, -52%); }

/* ---------- Timeline ---------- */
.sec-head-plain { margin-bottom: 84px; }
.tl { position: relative; }
.bot-track { height: 190px; margin-bottom: 18px; }
.tl-rail { position: relative; height: 2px; margin: 0 12.5%; background: var(--line); border-radius: 2px; }
.tl-rail i { position: absolute; inset: 0 auto 0 0; width: calc(var(--rp, 0) * 100%); background: var(--accent); border-radius: 2px; transition: width .15s linear; }
.tl-list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: -8px; }
.tl-list li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; padding: 0 8px; }
.tl-node { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); margin-bottom: 14px; transition: background-color .3s, border-color .3s; }
.tl-list li.is-reached .tl-node { background: var(--accent); border-color: var(--accent); }
.tl-list time { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tl-list h3 { font-size: 21px; }
.tl-list p { font-size: 15px; color: var(--text-2); max-width: 20em; }

/* ---------- Schedule ---------- */
.sched { max-width: 860px; margin: 0 auto; }
.seg { display: flex; width: max-content; max-width: 100%; margin: 0 auto 32px; padding: 3px; gap: 2px; border-radius: 980px; background: var(--alt); overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 0 0 auto; min-height: 36px; padding: 6px 18px; border: 0; border-radius: 980px; background: transparent; font-size: 15px; cursor: pointer; color: var(--text); transition: background-color .2s; }
.seg button[aria-selected="true"] { background: var(--bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-weight: 600; }
:root[data-theme="dark"] .seg button[aria-selected="true"] { background: #3a3a3c; }
.sec-alt .seg { background: rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .sec-alt .seg { background: rgba(255, 255, 255, .08); }
.sched-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.sched-head h3 { font-size: 28px; }
.sched-head span { font-size: 14px; color: var(--text-2); }
.sched-panel li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.sched-panel time { font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.sched-panel h4 { font-size: 17px; }
.sched-panel p { font-size: 15px; color: var(--text-2); }

/* ---------- Videos: always dark, the media is the content ---------- */
.sec-media { background: #000; color: #f5f5f7; }
.sec-media .eyebrow, .sec-media .sec-lead { color: #a1a1a6; }
.vid-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px; }
.vid-grid > :first-child { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
.yt { position: relative; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #1d1d1f; cursor: pointer; }
/* YouTube thumbnails are 4:3 with baked-in black bars: oversize vertically so only the picture shows */
.yt img { position: absolute; left: 0; top: -16.7%; width: 100%; height: 133.4%; object-fit: cover; transition: transform .6s var(--ease); }
.yt:hover img { transform: scale(1.02); }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
.yt-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 60px; height: 60px; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .92); }
.yt-play::before { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-left: 17px solid #1d1d1f; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vid-grid > :first-child .yt-play { width: 76px; height: 76px; }
.vid-grid > :first-child .yt-play::before { border-left-width: 22px; border-top-width: 13px; border-bottom-width: 13px; }
.yt-title { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-size: 17px; font-weight: 600; text-align: left; }
.vid-grid > :first-child .yt-title { font-size: 21px; left: 26px; bottom: 22px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Local contests ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; border-top: 1px solid var(--hair); }
.partners li > * { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--hair); height: 100%; }
.partners span { font-size: 14px; color: var(--text-2); }
.partners b { font-weight: 600; }
.partners a b::after { content: " ↗"; font-weight: 400; color: var(--text-2); }
.partners a:hover b, .partners a:hover b::after { color: var(--accent-ink); }
.partner-cta { margin-top: 48px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--ink); color: #f5f5f7; }
.partner-cta h3 { font-size: 28px; margin-bottom: 8px; }
.partner-cta p { color: #a1a1a6; max-width: 36em; }

/* ---------- Guide ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide { display: grid; gap: 10px; align-content: start; padding: 36px; }
.guide svg { width: 30px; height: 30px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.guide h3 { font-size: 24px; }
.guide p { color: var(--text-2); }
.guide .link-more { margin-top: 6px; }
.guide:hover .link-more { text-decoration: underline; }

/* ---------- Gallery: horizontal filmstrip ---------- */
.gal { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal::-webkit-scrollbar { display: none; }
.gal-card { flex: 0 0 clamp(280px, 44%, 540px); margin: 0; scroll-snap-align: start; }
.gal-item { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--alt); aspect-ratio: 4 / 3; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-item:hover img { transform: scale(1.02); }
.gal-card figcaption { margin-top: 14px; font-size: 15px; color: var(--text-2); }
.gal-controls { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.gal-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--alt); color: var(--text); cursor: pointer; transition: background-color .2s, opacity .2s; }
.gal-btn:hover { background: var(--line); }
.gal-btn:disabled { opacity: .35; cursor: default; }
.gal-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 26px; font-weight: 300; line-height: 1; color: var(--text-2); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-2); }

/* ---------- Closing ---------- */
.final { background: #000; color: #f5f5f7; }
:root[data-theme="dark"] .final { border-top: 1px solid var(--hair); }
.final .sec-lead { color: #a1a1a6; }
.final-title { font-size: clamp(2.25rem, 5vw, 3.75rem); }

/* ---------- Footer ---------- */
.ftr { background: var(--alt); padding: 48px 0 28px; font-size: 12px; line-height: 1.5; color: var(--text-2); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr .8fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.ftr-brand img { height: 16px; width: auto; filter: var(--logo-filter); margin-bottom: 14px; }
.ftr-brand p { margin-bottom: 8px; max-width: 24em; }
.ftr h4 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 8px; letter-spacing: 0; }
.ftr nav { display: grid; align-content: start; gap: 6px; }
.ftr a:hover { color: var(--text); text-decoration: underline; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
.ftr-social { display: flex; gap: 20px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .92); padding: 4vh 4vw; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 88vh; border-radius: 12px; }
.lb button { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .partners { grid-template-columns: repeat(2, 1fr); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .burger { display: grid; }
  .hdr-tools { margin-left: auto; margin-right: -8px; }
  .nav {
    position: fixed; inset: 56px 0 auto 0; max-height: calc(100vh - 56px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--hair);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; min-height: 48px; padding: 12px 0; font-size: 17px; opacity: 1; border-bottom: 1px solid var(--hair); }
  .dd, .dd-wide { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; grid-template-columns: 1fr; background: transparent; }
  .dd a { min-height: 44px; display: flex; align-items: center; font-size: 15px; }
  .nav-dd.open > .dd { display: grid; transform: none; }
  .nav-actions { justify-content: space-between; padding-top: 8px; }
  .nav-actions .nav-link { width: auto; border: 0; }
  .nav-actions .btn-sm { min-height: 44px; padding: 10px 22px; font-size: 17px; }

  .hero { padding-top: 92px; padding-bottom: 80px; }
  .hero-in { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .bot-slot-hero { order: -1; height: 340px; margin-bottom: 12px; }
  .sec { padding: 88px 0; }
  .sec-head { margin-bottom: 44px; }
  .ro-routes, .about-grid, .guide-grid { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr; gap: 56px; }
  .tl-rail, .bot-track { display: none; }
  .tl-list { margin-top: 0; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .tl-node { display: none; }
  .vid-grid { grid-template-columns: 1fr; }
  .vid-grid > :first-child { grid-row: auto; aspect-ratio: 16 / 9; height: auto; }
  .cd { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; padding: 28px 20px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .cd-clock div { padding: 0 14px; }
  .cd-clock b { font-size: 30px; }
  .route, .guide { padding: 28px 24px; }
  .about-body { padding: 24px 24px 32px; }
  .steps { grid-auto-flow: row; gap: 14px; }
  .steps li + li::before { display: none; }
  .steps li { padding: 0; }
  .partners { grid-template-columns: 1fr; }
  .partner-cta { padding: 28px 24px; }
  .tl-list { grid-template-columns: 1fr; }
  .sched-panel li { grid-template-columns: 1fr; gap: 2px; }
  .gal-card { flex-basis: 82%; }
  .ftr-grid { grid-template-columns: 1fr; }
  .bot-say { max-width: 210px; font-size: 14px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .yt img, .gal-item img, .cat-list a::after { transition: none; }
}
@media (prefers-contrast: more) {
  :root { --text-2: #424245; --hair: rgba(0, 0, 0, .3); }
  :root[data-theme="dark"] { --text-2: #d2d2d7; --hair: rgba(255, 255, 255, .35); }
}

/* =========================================================
   Subpages (categories, guide, gallery, contact)
   Same tokens, type and surfaces as the homepage.
   ========================================================= */
.container, .container-wide { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.container-wide { max-width: 1320px; }

/* Breadcrumb + page heading */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 84px; font-size: 12px; color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb .sep { opacity: .6; }
.breadcrumb .current { color: var(--text); }
.page-hero { padding: 36px 0 64px; }
.page-hero-head { max-width: 820px; }
.page-hero-head-center { margin-inline: auto; text-align: center; }
.page-hero-badge { display: block; margin-bottom: 12px; font-size: 17px; font-weight: 600; color: var(--text-2); }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.page-hero-lead { margin-top: 18px; font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.42; color: var(--text-2); max-width: 36em; }
.page-hero-head-center .page-hero-lead { margin-inline: auto; }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--alt); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow { font-size: 17px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.section-title { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.026em; }
.section-lead { margin: 14px auto 0; max-width: 640px; font-size: 19px; line-height: 1.45; color: var(--text-2); }
.section-lead strong { color: var(--text); }
.section-head .btn { margin-top: 24px; }

/* Long-form reading */
.prose { max-width: 720px; }
.prose-center { margin-inline: auto; }
.prose > p, .prose li { font-size: 17px; line-height: 1.6; }
.prose > p { margin-bottom: 1.1em; }
.prose h3 { font-size: 24px; margin: 48px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.prose h4 { font-size: 17px; margin: 26px 0 8px; }
.prose ul, .prose ol { list-style: disc; padding-left: 1.25em; margin: 0 0 1em; }
.prose ol { list-style: decimal; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--text-2); }
.prose a { color: var(--accent-ink); }
.prose a:hover { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { font-weight: 600; }

/* Key facts */
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 40px; }
.fact-grid-2 { grid-template-columns: repeat(2, 1fr); }
.fact-card { padding: 20px 22px; border-radius: var(--r); background: var(--alt); text-align: left; }
.section-alt .fact-card { background: var(--bg); }
.fact-card span { font-size: 14px; color: var(--text-2); }
.fact-card p { margin-top: 4px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }

/* Buttons used on subpages */
.btn-ghost { background: var(--alt); color: var(--text); }
.section-alt .btn-ghost { background: var(--bg); }
.btn-ghost:hover { color: var(--accent-ink); }

/* Photo rows */
.category-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-gallery-item { margin: 0; }
.category-gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--alt); }

/* Booth */
.booth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.booth-media img { width: 100%; height: auto; border-radius: var(--r); background: #fff; }
.booth-text h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
.booth-text > p { color: var(--text-2); }
.booth-points { list-style: disc; padding-left: 1.25em; margin-top: 18px; }
.booth-points li { margin: 10px 0; }
.booth-points li::marker { color: var(--text-2); }

/* Videos (no fake window chrome) */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video-card { margin: 0; }
.video-window { border-radius: var(--r); overflow: hidden; background: #000; }
.video-window-bar { display: none; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 12px; font-size: 15px; color: var(--text-2); }

/* Project ideas */
.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.idea-card { padding: 24px; border-radius: var(--r); background: var(--alt); }
.section-alt .idea-card { background: var(--bg); }
.idea-card h4 { font-size: 17px; margin-bottom: 6px; }
.idea-card p { font-size: 15px; color: var(--text-2); }

/* Notes */
.note-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 22px 24px; border-radius: var(--r); background: var(--alt); }
.section-alt .note-card { background: var(--bg); }
.note-card-icon svg { width: 22px; height: 22px; color: var(--text-2); }
.note-card-label { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; }
.note-card-text strong { font-weight: 600; }

/* Line-follower tracks */
.track-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.track-card { border-radius: var(--r-lg); overflow: hidden; background: var(--alt); }
.section-alt .track-card { background: var(--bg); }
.track-card { display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--hair); }
/* same frame for every track drawing, whatever its proportions */
.track-card-media { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 28px; background: #fff; }
.track-card-media img { width: 100%; height: 100%; object-fit: contain; }
.track-card-foot { margin-top: auto; }
.track-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; }
.track-card-name { font-weight: 600; }

/* Evaluation rubrics */
.rubric-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 20px; font-size: 14px; color: var(--text-2); list-style: none; padding: 0; }
.rubric-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rubric-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.s1 { background: #d2d2d7; } .s2 { background: #f9d3a3; } .s3 { background: #f8b665; } .s4 { background: #f7941d; } .s5 { background: #c25e00; }
.rubric-tabs-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.rubric-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 3px; border-radius: 22px; background: var(--alt); }
.section-alt .rubric-tabs { background: rgba(0, 0, 0, .06); }
.rubric-tab { min-height: 36px; padding: 6px 16px; border: 0; border-radius: 980px; background: transparent; font-size: 14px; color: var(--text); cursor: pointer; }
.rubric-tab.is-active { background: var(--bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-weight: 600; }
:root[data-theme="dark"] .rubric-tab.is-active { background: #3a3a3c; }
:root[data-theme="dark"] .section-alt .rubric-tabs { background: rgba(255, 255, 255, .08); }
.rubric-table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--bg); box-shadow: 0 0 0 1px var(--hair); }
.rubric-matrix { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.rubric-matrix th { position: sticky; top: 0; text-align: left; padding: 14px 16px; background: var(--alt); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rubric-matrix td { padding: 14px 16px; border-top: 1px solid var(--hair); vertical-align: top; color: var(--text-2); min-width: 150px; }
.rubric-matrix td:first-child { color: var(--text); font-weight: 600; min-width: 210px; }
.rubric-crit-num { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--alt); font-size: 12px; font-weight: 600; color: var(--text); vertical-align: 1px; }

/* Awards */
.medal-photo img { width: 100%; height: auto; border-radius: var(--r-lg); margin-bottom: 24px; }
.medal-bar { display: flex; height: 10px; border-radius: 980px; overflow: hidden; margin-bottom: 20px; }
.medal-bar-seg.medal-platinum { background: #c7ccd4; }
.medal-bar-seg.medal-gold { background: #e2b33c; }
.medal-bar-seg.medal-silver { background: #a9adb3; }
.medal-bar-seg.medal-bronze { background: #b9773f; }
.medal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.medal-card { display: grid; justify-items: center; gap: 10px; padding: 28px 20px; border-radius: var(--r-lg); background: var(--alt); text-align: center; }
.section-alt .medal-card { background: var(--bg); }
.medal-disc svg { width: 72px; height: 72px; }
.medal-name { font-size: 21px; }
.prize-badge { display: inline-block; padding: 4px 11px; border-radius: 980px; font-size: 13px; background: var(--bg); color: var(--text-2); }
.section-alt .prize-badge { background: var(--alt); }
.prize-badge-brand, .section-alt .prize-badge-brand { background: rgba(247, 148, 29, .16); color: var(--accent-ink); }
.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prize-card { display: grid; justify-items: center; gap: 4px; padding: 32px 24px; border-radius: var(--r-lg); background: var(--alt); text-align: center; }
.section-alt .prize-card { background: var(--bg); }
.prize-rank { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); font-weight: 600; margin-bottom: 8px; }
.section-alt .prize-rank { background: var(--alt); }
.prize-card-first .prize-rank { background: var(--accent); color: var(--on-accent); }
.prize-place { font-size: 15px; color: var(--text-2); }
.prize-amount { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.prize-per { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.prize-total { display: grid; grid-template-columns: auto auto 1fr; gap: 24px; align-items: center; margin-top: 20px; padding: 32px 40px; border-radius: var(--r-lg); background: var(--ink); color: #f5f5f7; }
.prize-total-icon svg { width: 32px; height: 32px; color: #f7941d; }
.prize-total-amount { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: #f7941d; }
.prize-total-label { font-weight: 600; }
.prize-total-text { font-size: 15px; color: #a1a1a6; }
.prize-total-text strong { color: #fff; }

/* Call-to-action band: black, like the homepage closing */
.cta-band { padding: 96px 0; background: #000; color: #f5f5f7; text-align: center; }
:root[data-theme="dark"] .cta-band { border-top: 1px solid var(--hair); }
.cta-inner { max-width: 760px; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -0.028em; line-height: 1.08; }
.cta-lead { margin: 14px auto 30px; max-width: 36em; font-size: 19px; color: #a1a1a6; }
.cta-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 17px; font-weight: 600; color: #a1a1a6; }
.cta-status svg { width: 18px; height: 18px; }
.live-dot { display: none; }

/* Related links */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card { display: grid; gap: 8px; align-content: start; padding: 32px; border-radius: var(--r-lg); background: var(--tile); }
.section-alt .tech-card { background: var(--tile-alt); }
.tech-card h3 { font-size: 24px; }
.tech-card p { color: var(--text-2); }
.tech-card::after { content: "Learn more ›"; margin-top: 6px; color: var(--accent-ink); }
.tech-card:hover::after { text-decoration: underline; }
.tech-card-head, .tech-card-tag { display: none; }

/* Posters */
.poster-list { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 32px; }
.poster-item { margin: 0; text-align: center; }
.poster-item img { width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 0 0 1px var(--hair), 0 20px 50px -24px rgba(0, 0, 0, .35); }
.poster-item figcaption { margin-top: 18px; font-weight: 600; }
.poster-actions { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }

/* Media grid */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.media-tile { display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--alt); }
.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media-tile:hover img { transform: scale(1.02); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .92); padding: 4vh 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; }
.lightbox button { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-grid { max-width: 760px; margin: 0 auto; display: grid; gap: 32px; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 56px; padding-bottom: 32px; border-bottom: 1px solid var(--hair); text-align: center; }
.contact-list li { display: grid; gap: 4px; }
.contact-list li > span:first-child { font-size: 14px; color: var(--text-2); }
.contact-list a { color: var(--accent-ink); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 36px; border-radius: var(--r-lg); background: var(--alt); }
.contact-form > * { grid-column: 1 / -1; }
.contact-form > .field:nth-of-type(-n+2) { grid-column: auto; }
.contact-form > .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 17px; color: var(--text); background: var(--bg); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(247, 148, 29, .22); }
.form-note { min-height: 1.4em; font-size: 15px; color: var(--accent-ink); }
.map-embed { border-radius: var(--r-lg); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 440px; border: 0; }

@media (max-width: 1000px) {
  .booth-grid, .video-grid, .track-grid { grid-template-columns: 1fr; gap: 28px; }
  .idea-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .medal-grid { grid-template-columns: repeat(2, 1fr); }
  .prize-grid { grid-template-columns: 1fr; }
  .prize-total { grid-template-columns: auto 1fr; }
  .prize-total > div { grid-column: 1 / -1; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .rubric-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .rubric-tab { flex: 0 0 auto; }
  .rubric-matrix thead { display: none; }
  .rubric-matrix tr { display: block; padding: 10px 0; border-top: 1px solid var(--hair); }
  .rubric-matrix td { display: block; border: 0; padding: 6px 16px; min-width: 0; }
  .rubric-matrix td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--text); }
}
@media (max-width: 640px) {
  .container, .container-wide { padding-inline: 20px; }
  .fact-grid, .fact-grid-2 { grid-template-columns: 1fr 1fr; }
  .category-gallery { grid-template-columns: 1fr; }
  .idea-grid, .card-grid, .medal-grid, .poster-list { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
  .contact-form > .field:nth-of-type(-n+2) { grid-column: 1 / -1; }
  .contact-form > .btn { justify-self: stretch; }
  .prize-total { padding: 28px 24px; }
  .track-card-foot { flex-direction: column; align-items: flex-start; }
}
