/* ============================================================
   Base reset
   Lifted verbatim from what Tailwind generated for this site, so
   rendering is identical now that Tailwind itself is gone. It zeroes
   every default margin and padding — the rules further down assume
   that, so replacing this with a lighter reset will shift the layout.
   Nothing below the reset depends on Tailwind; it is plain CSS.
   ============================================================ */
@layer theme {
  :root,:host {
    --font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --spacing:.25rem;
    --default-font-family:var(--font-sans);
    --default-mono-font-family:var(--font-mono)
  }
}
@layer base {
  *,:after,:before,::backdrop {
    box-sizing:border-box;
    border:0 solid;
    margin:0;
    padding:0
  }
  ::file-selector-button {
    box-sizing:border-box;
    border:0 solid;
    margin:0;
    padding:0
  }
  html,:host {
    -webkit-text-size-adjust:100%;
    tab-size:4;
    line-height:1.5;
    font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings:var(--default-font-feature-settings,normal);
    font-variation-settings:var(--default-font-variation-settings,normal);
    -webkit-tap-highlight-color:transparent
  }
  hr {
    height:0;
    color:inherit;
    border-top-width:1px
  }
  abbr:where([title]) {
    -webkit-text-decoration:underline dotted;
    text-decoration:underline dotted
  }
  h1,h2,h3,h4,h5,h6 {
    font-size:inherit;
    font-weight:inherit
  }
  a {
    color:inherit;
    -webkit-text-decoration:inherit;
    -webkit-text-decoration:inherit;
    -webkit-text-decoration:inherit;
    -webkit-text-decoration:inherit;
    text-decoration:inherit
  }
  b,strong {
    font-weight:bolder
  }
  code,kbd,samp,pre {
    font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings:var(--default-mono-font-feature-settings,normal);
    font-variation-settings:var(--default-mono-font-variation-settings,normal);
    font-size:1em
  }
  small {
    font-size:80%
  }
  sub,sup {
    vertical-align:baseline;
    font-size:75%;
    line-height:0;
    position:relative
  }
  sub {
    bottom:-.25em
  }
  sup {
    top:-.5em
  }
  table {
    text-indent:0;
    border-color:inherit;
    border-collapse:collapse
  }
  :-moz-focusring {
    outline:auto
  }
  progress {
    vertical-align:baseline
  }
  summary {
    display:list-item
  }
  ol,ul,menu {
    list-style:none
  }
  img,svg,video,canvas,audio,iframe,embed,object {
    vertical-align:middle;
    display:block
  }
  img,video {
    max-width:100%;
    height:auto
  }
  button,input,select,optgroup,textarea {
    font:inherit;
    font-feature-settings:inherit;
    font-variation-settings:inherit;
    letter-spacing:inherit;
    color:inherit;
    opacity:1;
    background-color:#0000;
    border-radius:0
  }
  ::file-selector-button {
    font:inherit;
    font-feature-settings:inherit;
    font-variation-settings:inherit;
    letter-spacing:inherit;
    color:inherit;
    opacity:1;
    background-color:#0000;
    border-radius:0
  }
  :where(select:is([multiple],[size])) optgroup {
    font-weight:bolder
  }
  :where(select:is([multiple],[size])) optgroup option {
    padding-inline-start:20px
  }
  ::file-selector-button {
    margin-inline-end:4px
  }
  ::placeholder {
    opacity:1
  }
  @supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
    ::placeholder {
      color:currentColor
    }
    @supports (color:color-mix(in lab, red, red)) {
      ::placeholder {
        color:color-mix(in oklab, currentcolor 50%, transparent)
      }
    }
  }
  textarea {
    resize:vertical
  }
  ::-webkit-search-decoration {
    -webkit-appearance:none
  }
  ::-webkit-date-and-time-value {
    min-height:1lh;
    text-align:inherit
  }
  ::-webkit-datetime-edit {
    display:inline-flex
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding:0
  }
  ::-webkit-datetime-edit {
    padding-block:0
  }
  ::-webkit-datetime-edit-year-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-month-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-day-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-hour-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-minute-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-second-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-millisecond-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-meridiem-field {
    padding-block:0
  }
  ::-webkit-calendar-picker-indicator {
    line-height:1
  }
  :-moz-ui-invalid {
    box-shadow:none
  }
  button,input:where([type=button],[type=reset],[type=submit]) {
    appearance:button
  }
  ::file-selector-button {
    appearance:button
  }
  ::-webkit-inner-spin-button {
    height:auto
  }
  ::-webkit-outer-spin-button {
    height:auto
  }
  [hidden]:where(:not([hidden=until-found])) {
    display:none!important
  }
}

/* ============================================================
   Site styles — this is the part you edit.
   ============================================================ */

:root {
  --ink: #111612;
  --paper: #f2f0e8;
  --lime: #c8ff3d;
  --mint: #99d6b8;
  --line: rgba(17, 22, 18, .18);
  --muted: #545c55;
  --accent-text: #2c5541;
  --surface-alt: #dfe9df;
  --card-hover: rgba(17, 22, 18, .04);
  --rail-dim: #b3bbb0;
  /* Fixed dark ink for the always-lime / always-black bands, so they stay
     legible regardless of the active theme. */
  --on-lime: #111612;
}

:root[data-theme="dark"] {
  --ink: #eef2ec;
  --paper: #0b0f0c;
  --line: rgba(255, 255, 255, .14);
  --muted: #9aa39b;
  --accent-text: #a9e5c0;
  --surface-alt: #12180f;
  --card-hover: rgba(255, 255, 255, .045);
  --rail-dim: #4a534a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "Noto Sans TC", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; transition: background-color .4s ease, color .4s ease; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Keyboard accessibility — visible focus ring across the whole site */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .venue :focus-visible, footer :focus-visible { outline-color: var(--lime); }
.dark :focus-visible { outline-color: var(--accent-text); }

/* Scroll reveal — elements fade/slide in as they enter the viewport */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }

.site-header { height: 78px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.24); position: fixed; inset: 0 0 auto; z-index: 20; color: white; transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease, height .35s ease; }
.site-header.scrolled { background: rgba(11,18,14,.82); backdrop-filter: saturate(150%) blur(12px); border-bottom-color: rgba(255,255,255,.12); height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; }
/* The NAPAI mark, cropped to its brain icon: the full lockup is 2.6:1 and its
   strapline would be unreadable squeezed into this square. The offsets were
   measured from the file's alpha channel, so they track the artwork rather than
   a guess. url() resolves against this stylesheet, so one value serves both
   pages. Both places it appears — header and footer — sit on dark. */
.brand-mark { width: 43px; height: 43px; flex-shrink: 0; background: url(napai-logo.png) -4px -2.6px / 127.4px 50px no-repeat; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }
.brand small { font-size: 11px; opacity: .72; letter-spacing: .07em; margin-top: 4px; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
nav a { opacity: .82; transition: opacity .2s, color .2s; position: relative; }
nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--lime); transition: width .3s ease; }
nav a:hover { opacity: 1; }
nav a:not(.nav-cta):hover::after, nav a.active:not(.nav-cta)::after { width: 100%; }
nav a.active { opacity: 1; color: var(--lime); }
.nav-cta { padding: 12px 16px; border: 1px solid rgba(255,255,255,.65); transition: background .25s, color .25s, border-color .25s; }
.nav-cta:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.menu-button { display: none; background: none; border: 0; padding: 8px; }
.header-right { display: flex; align-items: center; gap: 22px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.tool { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 38px; padding: 0 11px; background: none; color: inherit; border: 1px solid rgba(255,255,255,.4); border-radius: 30px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tool:hover { background: var(--lime); color: #111612; border-color: var(--lime); }
.theme-toggle { font-size: 15px; min-width: 36px; padding: 0; }
.theme-toggle span { line-height: 1; }

.hero { min-height: 600px; background: #0d2119; color: white; padding: 116px 5vw 58px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.hero-grid, .register-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, black, transparent 85%); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 480px; height: 480px; right: 7vw; top: 17%; background: radial-gradient(circle at 36% 30%, #e4ff9a, #6ea381 38%, #123326 70%); box-shadow: 0 0 100px rgba(172,255,96,.2); opacity: .83; }
.orb-two { width: 230px; height: 230px; right: 23vw; top: 50%; border: 1px solid rgba(200,255,61,.5); box-shadow: inset 0 0 70px rgba(200,255,61,.1); }
.eyebrow { position: relative; display: flex; align-items: baseline; gap: 28px; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.eyebrow span:first-child { font-size: clamp(16px, 1.1vw, 20px); font-weight: 800; letter-spacing: .055em; }
.eyebrow span + span { color: rgba(255,255,255,.6); }
.hero-copy { position: relative; width: min(820px, 70vw); z-index: 2; }
.hero-kicker { border-left: 3px solid var(--lime); padding-left: 16px; line-height: 1.55; font-size: 18px; font-weight: 700; }
/* The headline size that actually renders comes from `.lang-zh .hero h1` /
   `.lang-en .hero h1` near the end of this file — they are more specific, so
   edit those to resize it. The size here is only a fallback. */
.hero h1 { font-size: clamp(28px, 3.1vw, 52px); line-height: .92; letter-spacing: -.065em; margin: 24px 0 30px; font-weight: 700; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-lead { font-size: 17px; line-height: 1.85; color: rgba(255,255,255,.8); max-width: 680px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 220px; min-height: 60px; padding: 0 24px; font-weight: 700; font-size: 16px; line-height: 1; border: 1px solid transparent; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--lime); color: var(--on-lime); }
.button.ghost { border-color: rgba(255,255,255,.45); }
.hero-meta { position: absolute; right: 5vw; bottom: 52px; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.35); width: min(520px, 42vw); }
.hero-meta > div { padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.2); }
.hero-meta span { display: block; font-size: 15px; color: var(--lime); margin-bottom: 9px; }
.hero-meta strong { font-size: 18px; line-height: 1.5; }

/* Hero entrance — staggered fade-up on first paint */
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.eyebrow, .hero-copy > *, .hero-meta { animation: heroIn .85s cubic-bezier(.22,.61,.36,1) both; }
.eyebrow { animation-delay: .05s; }
.hero-kicker { animation-delay: .18s; }
.hero h1 { animation-delay: .3s; }
.hero-lead { animation-delay: .46s; }
.hero-actions { animation-delay: .6s; }
.hero-meta { animation-delay: .74s; }

.countdown-band { background: var(--lime); color: var(--on-lime); min-height: 165px; display: flex; justify-content: space-between; align-items: center; padding: 28px 5vw; }
.countdown-band > div:first-child p { font-size: 15px; font-weight: 800; letter-spacing: .12em; }
.countdown-band > div:first-child span { font-size: 16px; }
.countdown { display: flex; gap: clamp(18px, 4vw, 64px); }
.count { text-align: center; min-width: 65px; }
.count strong { display: block; font-size: clamp(31px, 3.5vw, 50px); line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.count span { font-size: 12.5px; }
.marquee { height: 48px; overflow: hidden; background: #111612; color: white; display: flex; align-items: center; font-size: 12px; letter-spacing: .11em; white-space: nowrap; }
.marquee div { animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 84px 5vw; }
.section-label { font-size: 14.5px; letter-spacing: .16em; font-weight: 800; padding-bottom: 15px; border-bottom: 1px solid currentColor; opacity: .66; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10vw; margin: 52px 0 64px; }
.section h2, .venue h2, .register h2 { font-size: clamp(31px, 3.8vw, 58px); line-height: .98; letter-spacing: -.055em; margin: 0; }
.section-heading > div { max-width: 600px; padding-top: 8px; }
.section-heading p { font-size: 16.5px; line-height: 1.9; color: var(--muted); }
.section-heading .lead { font-size: 20px; line-height: 1.65; color: var(--ink); margin-top: 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value-grid article { min-height: 178px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; transition: background .3s ease, transform .3s ease; }
.value-grid article:hover { background: var(--card-hover); }
.value-grid article:hover h3 { color: var(--accent-text); }
.value-grid article > span { font: 15px monospace; opacity: .55; }
.value-grid h3 { transition: color .3s ease; }
.value-grid h3 { font-size: 22px; margin: 26px 0 12px; }
.value-grid p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin: 0; }

/* Named .dark for historical reasons — it is now a themed band, light in light
   mode and dark in dark mode, distinguished from --paper by its own surface. */
.dark { background: var(--surface-alt); color: var(--ink); }
.dark-title { margin: 52px 0; }
/* Sized to keep this heading on one line from tablet widths up; below that it
   wraps naturally rather than being forced with white-space: nowrap. */
.dark-title h2 { font-size: clamp(24px, 2.6vw, 40px); }
.dark-title > p { color: var(--accent-text); font: 13px monospace; letter-spacing: .14em; }
/* 2x2 rather than four full-width rows: the descriptions run ~40 characters,
   so a full-width row left most of the line empty. Same border-grid technique
   as .value-grid above, so both sections read as one system. */
.abilities { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.abilities article { display: grid; grid-template-columns: 38px 1fr auto; align-items: start; gap: 14px; padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s ease; }
/* The old hover slid the row right by shifting padding-left; inside a grid cell
   that would jostle its neighbours, so only the wash and the arrow move now. */
.abilities article:hover { background: var(--card-hover); }
.abilities article > span { color: var(--accent-text); font: 14px monospace; }
.abilities h3 { font-size: 23px; margin: 0 0 8px; }
.abilities p { color: var(--muted); margin: 0; line-height: 1.6; }
.abilities article > b { font-size: 21px; color: var(--accent-text); transition: transform .35s ease; }
.abilities article:hover > b { transform: translate(4px, -4px); }
.challenge-brief { margin: 0 0 74px; border: 1px solid var(--line); background: var(--paper); }
.challenge-partner { padding: clamp(24px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.challenge-kicker, .challenge-label { color: var(--accent-text); font: 13px monospace; letter-spacing: .1em; text-transform: uppercase; }
.challenge-kicker { margin: 0 0 18px; }
.challenge-partner-link { display: flex; align-items: center; gap: 18px; color: var(--ink); font-weight: 700; transition: color .2s ease; }
.challenge-partner-link:hover { color: var(--accent-text); }
.challenge-partner-link img { display: block; width: min(220px, 34vw); height: auto; border: 1px solid var(--line); }
.challenge-partner-link > span { font-size: clamp(18px, 2vw, 24px); }
.challenge-partner-link b { color: var(--accent-text); font-size: .8em; margin-left: 8px; }
.challenge-specs { display: grid; grid-template-columns: .65fr 1.35fr; gap: 32px; padding: clamp(26px, 3.2vw, 38px); border-bottom: 1px solid var(--line); }
.challenge-spec + .challenge-spec { border-left: 1px solid var(--line); padding-left: 32px; }
.challenge-spec .challenge-label { margin: 0 0 14px; }
.challenge-spec strong { display: block; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.4; }
.challenge-spec h3 { margin: 0 0 10px; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.25; letter-spacing: 0; }
.challenge-alt-title { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.challenge-copy-grid { display: grid; grid-template-columns: 230px 1fr; gap: 30px; padding: 28px clamp(24px, 3.2vw, 38px); }
.challenge-copy-grid + .challenge-copy-grid { border-top: 1px solid var(--line); }
.challenge-copy-grid > .challenge-label { margin: 2px 0 0; }
.challenge-copy { color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.challenge-copy p { margin: 0 0 12px; }
.challenge-copy p:last-child { margin-bottom: 0; }
.tech-strip { margin-top: 65px; display: grid; grid-template-columns: 180px 1fr; font-size: 13.5px; align-items: start; }
.tech-strip div { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-strip b { border: 1px solid var(--line); border-radius: 30px; padding: 10px 16px; font-weight: 400; transition: background .25s, color .25s, border-color .25s; cursor: default; }
.tech-strip b:hover { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }

/* The heading column ran out of content long before the list did, leaving a
   tall empty gap. Narrowing it and giving the list two columns closes that. */
.audience-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5vw; margin-top: 52px; }
.audience h2 { font-size: clamp(24px, 2.6vw, 40px); }
.audience h2 em { color: var(--accent-text); font-style: normal; }
.audience-layout > div:first-child > p { max-width: 620px; font-size: 16.5px; line-height: 1.85; color: var(--muted); margin-top: 35px; }
.audience-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; border-top: 1px solid var(--line); }
.audience-list > div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.audience-list span { color: var(--accent-text); font-size: 21px; font-weight: 700; line-height: 1.35; }
.audience-list p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.audience-list b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 9px; }

.timeline-section { background: var(--surface-alt); }
.timeline-heading { max-width: 1120px; margin: 48px auto 36px; text-align: center; }
.timeline-heading h2 { font-size: clamp(27px, 3.1vw, 46px); }
.timeline-heading p { margin: 24px 0 0; font-size: 15px; color: var(--muted); line-height: 1.85; }
.timeline { max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 190px 1fr 120px; gap: 36px; align-items: start; padding: 32px 14px; border-bottom: 1px solid var(--line); transition: background .3s ease; }
.timeline article:hover { background: var(--card-hover); }
.timeline time { font: 21px monospace; padding-top: 2px; letter-spacing: -.01em; }
.timeline article > div { display: flex; flex-direction: column; gap: 10px; }
.timeline h3 { font-size: 20px; margin: 0; }
.timeline p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 780px; }
.timeline article > b { font-size: 14px; font-weight: 700; text-align: center; border: 1px solid currentColor; border-radius: 22px; padding: 12px 10px; align-self: center; }

/* Horizontal milestone rail for the competition schedule. Each stage is one
   grid column: the label sits in a fixed-height first row so every dot lands
   on the same line, and the line itself is drawn on the container — a grey
   full-width rule with a lime overlay whose width main.js sets to the last
   stage already past. Falls back to a plain stacked list under 900px. */
.rail { --rail-y: 140px; --dot: 24px; --bar: 6px; position: relative; max-width: 1560px; margin: 58px auto 12px; display: grid; grid-template-columns: repeat(7, 1fr); }
.rail::before, .rail::after { content: ""; position: absolute; left: 0; top: var(--rail-y); height: var(--bar); border-radius: var(--bar); }
.rail::before { right: 0; background: var(--rail-dim); opacity: .75; }
.rail::after { width: var(--progress, 0%); background: var(--lime); transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.rail article { display: grid; grid-template-rows: var(--rail-y) var(--dot) auto auto; justify-items: center; text-align: center; padding: 0 10px; }
.rail h3 { align-self: end; margin: 0 0 20px; font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: 0; transition: color .3s ease; }
.rail article:hover h3 { color: var(--accent-text); }
.rail .dot { width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--rail-dim); margin-top: calc((var(--bar) - var(--dot)) / 2); position: relative; z-index: 1; transition: background .3s ease, box-shadow .3s ease; }
.rail .done .dot { background: var(--lime); }
.rail .next .dot { background: var(--lime); box-shadow: 0 0 0 8px rgba(200,255,61,.28); }
.rail time { margin-top: 16px; font: 27px monospace; letter-spacing: -.03em; color: var(--muted); }
.rail .done time, .rail .next time { color: var(--ink); }
.rail .next h3, .rail .next time { font-weight: 800; }
.rail small { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.venue { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; background: #133328; color: white; }
.venue-visual { min-height: 720px; overflow: hidden; position: relative; background: radial-gradient(circle at 40% 45%, rgba(190,255,113,.42), transparent 9%), radial-gradient(circle at 50% 55%, #5d9a72, #1c4736 42%, #0d251c 70%); }
.venue-visual:before, .venue-visual:after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(205,255,140,.28); border-radius: 50%; transform: rotate(24deg); }
.venue-visual:after { inset: 22% 5%; transform: rotate(-32deg); }
.venue-visual > span { position: absolute; left: 8%; bottom: 8%; z-index: 2; font: 11px monospace; color: var(--lime); line-height: 1.6; }
.rings { position: absolute; width: 320px; height: 320px; border: 1px solid rgba(200,255,61,.6); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 45px rgba(200,255,61,.04), 0 0 0 90px rgba(200,255,61,.03); }
.venue-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; z-index: 2; }
.venue-copy { padding: 75px 6vw; display: flex; flex-direction: column; }
.venue-copy > p:not(.venue-text) { color: var(--lime); font: 13px monospace; letter-spacing: .1em; margin: 55px 0 20px; }
.venue-copy h2 { font-size: clamp(33px, 3.5vw, 52px); }
.venue-text { color: rgba(255,255,255,.72); font-size: 15.5px; line-height: 1.85; max-width: 590px; margin: 38px 0; }
.venue dl { margin-top: auto; }
.venue dl > div { display: grid; grid-template-columns: 100px 1fr; border-top: 1px solid rgba(255,255,255,.25); padding: 16px 0; }
.venue dt { color: var(--lime); font-size: 13px; }
.venue dd { margin: 0; font-size: 14.5px; }

.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; margin-top: 52px; }
.faq-layout h2 { font-size: clamp(29px, 3.3vw, 46px); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 17px; font-weight: 700; transition: color .2s ease; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent-text); }
summary span { font-weight: 400; flex-shrink: 0; transition: transform .3s ease; }
details[open] summary span { transform: rotate(45deg); }
details p { color: var(--muted); line-height: 1.8; margin: -5px 40px 24px 0; font-size: 15.5px; }

.register { background: var(--mint); color: var(--on-lime); padding: 80px 5vw 60px; position: relative; overflow: hidden; }
.register-grid { opacity: .2; background-image: linear-gradient(rgba(17,22,18,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(17,22,18,.35) 1px, transparent 1px); }
.register > *:not(.register-grid) { position: relative; }
.register > p:first-of-type { font: 15px monospace; letter-spacing: .12em; font-weight: 700; }
.register h2 { font-size: clamp(30px, 3.6vw, 54px); margin: 30px 0 26px; }
.register-lead { font-size: 16.5px; line-height: 1.8; }
.register-actions { display: flex; gap: 12px; margin-top: 32px; }
.button.light { background: var(--on-lime); color: #f2f0e8; }
.button.outline-light { border-color: var(--on-lime); }
.rules-downloads { margin-top: 38px; max-width: 760px; }
.rules-label { margin: 0 0 12px; font: 13px monospace; letter-spacing: .12em; font-weight: 700; }
.rules-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rule-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 0 18px; border: 1px solid rgba(17,22,18,.35); background: rgba(255,255,255,.16); color: var(--on-lime); font-weight: 700; transition: transform .2s, background .2s; }
.rule-link:hover { transform: translateY(-2px); background: rgba(255,255,255,.3); }
.register small { display: block; margin-top: 42px; font-size: 14px; line-height: 1.7; color: rgba(17,22,18,.72); }

footer { background: #0d130f; color: white; padding: 76px 5vw 34px; display: grid; grid-template-columns: 1.5fr 1.2fr .75fr 1fr; gap: 5vw; font-size: 16px; }
.footer-brand { display: flex; gap: 18px; }
.footer-brand b { font-size: 18px; line-height: 1.45; }
.footer-brand p { font-size: 16px; margin-top: 10px; }
footer h3 { color: var(--lime); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 22px; }
/* Organiser mark. The footer is always dark, so the logo's teal and pale
   blue stay legible without a theme-specific variant. */
.org-logo { width: 176px; height: auto; margin: -4px 0 18px; }
footer p, footer a { color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.7; display: block; margin: 0 0 10px; }
footer a:hover { color: white; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 26px; margin-top: 38px; font-size: 14px; }

/* CJK display type: full-width glyphs collide under the tight negative
   tracking and sub-1 leading the Latin headings are tuned for, so the
   Chinese pages relax both and widen the hero column to avoid mid-phrase
   wraps. English pages keep the original tight display look. */
.lang-zh .hero h1 { font-size: clamp(25px, 2.9vw, 47px); letter-spacing: -.01em; line-height: 1.16; }
.lang-zh .hero-copy { width: min(1040px, 86vw); }
.lang-en .hero-copy { width: min(1080px, 72vw); }
.lang-en .hero h1 { font-size: clamp(30px, 3.2vw, 55px); line-height: .94; }
.lang-zh .section h2,
.lang-zh .venue h2,
.lang-zh .register h2,
.lang-zh .faq-layout h2,
.lang-zh .venue-copy h2 { letter-spacing: -.008em; line-height: 1.16; }
.lang-zh .abilities h3 { letter-spacing: 0; }
.lang-zh .hero-kicker { line-height: 1.7; }
/* Nudge the smallest / densest Chinese body copy up for legibility. */
.lang-zh .timeline p { font-size: 15.5px; line-height: 1.7; }
.lang-zh .value-grid p,
.lang-zh .abilities p,
.lang-zh .audience-list p,
.lang-zh details p { line-height: 1.85; }
.lang-zh .hero-meta strong { font-size: 18.5px; }

/* WHY / industry gaps */
.why-head { max-width: 1180px; margin: 46px 0 40px; }
.why-kicker { color: var(--accent-text); font: 13.5px monospace; letter-spacing: .12em; margin: 0 0 18px; text-transform: uppercase; }
.why-head h2 { font-size: clamp(25px, 2.5vw, 38px); margin: 0 0 26px; }
.why-intro { font-size: 15px; line-height: 1.9; color: var(--muted); }
.gaps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gaps article { border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; gap: 16px; transition: background .3s ease; }
.gaps article:hover { background: var(--card-hover); }
.gap-tag { align-self: flex-start; font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--on-lime); background: var(--lime); padding: 7px 14px; border-radius: 30px; }
.gaps h3 { font-size: 21px; margin: 4px 0 4px; }
/* The global `a { text-decoration: none }` would make this read as plain text,
   so the one external reference in here gets an underline and the ↗ used for
   outbound links elsewhere on the page. */
.gaps h3 a { color: var(--accent-text); border-bottom: 1px solid currentColor; transition: opacity .2s ease; }
.gaps h3 a:hover { opacity: .68; }
.gaps h3 a > span { font-size: .72em; margin-left: 3px; vertical-align: .1em; }
.gaps ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.gaps li { font-size: 14.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 30px; padding: 9px 16px; }

/* JUDGING / weighted criteria */
.criteria-head { max-width: none; margin: 48px 0 36px; }
.crit-kicker { color: var(--accent-text); font: 13.5px monospace; letter-spacing: .12em; margin: 0 0 18px; text-transform: uppercase; }
.criteria-head h2 { margin: 0; }
/* Both stages sit side by side so the reader compares weightings without
   scrolling between them; each column is a compact spec sheet rather than a
   set of cards. */
.crit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.crit-group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.crit-group-head h3 { margin: 0; font-size: 25px; letter-spacing: -.02em; }
.crit-group-head p { margin: 0; font-size: 14.5px; color: var(--muted); }
/* Stage logistics: what to hand in, when, where — kept next to the weights so
   the whole judging picture is one block of information. */
.crit-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0 0 14px; padding: 4px 0 0; }
.crit-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.crit-facts dt { color: var(--muted); white-space: nowrap; }
.crit-facts dd { margin: 0; font-weight: 700; text-align: right; }
.crit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.crit { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.crit > b { font-size: 16.5px; letter-spacing: -.01em; }
.crit > span { text-align: right; font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.crit-bar { grid-column: 1 / -1; height: 5px; margin-top: 9px; background: var(--line); border-radius: 30px; overflow: hidden; }
.crit-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8fd94f, var(--lime)); border-radius: 30px; transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
/* The bars fill once their column scrolls into view; the reveal flag lives on
   the group, so all bars in a stage animate together. */
.crit-group.is-visible .crit-bar i { width: var(--w); }
.crit p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.crit-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.crit-total b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.crit-note { margin-top: 40px; font-size: 14.5px; line-height: 1.75; color: var(--muted); max-width: 840px; border-left: 3px solid var(--line); padding-left: 18px; }

/* AWARDS / prizes and incentives */
.awards-head { max-width: 1180px; margin: 46px 0 38px; }
.awards-kicker { color: var(--accent-text); font: 13.5px monospace; letter-spacing: .12em; margin: 0 0 18px; text-transform: uppercase; }
.awards-head h2 { font-size: clamp(27px, 3.1vw, 46px); margin: 0 0 26px; }
.awards-intro { font-size: 15px; line-height: 1.9; color: var(--muted); margin: 0; }
.award-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.award { border: 1px solid var(--line); padding: 38px 36px; display: flex; flex-direction: column; gap: 14px; transition: background .3s ease; }
.award:hover { background: var(--card-hover); }
.award-tag { align-self: flex-start; font-size: 13.5px; font-weight: 800; letter-spacing: .06em; color: var(--accent-text); border: 1px solid var(--line); border-radius: 30px; padding: 8px 15px; }
.award h3 { font-size: 23px; margin: 6px 0 0; letter-spacing: -.02em; }
.award p { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--muted); }
.awards-note { margin-top: 40px; font-size: 14.5px; line-height: 1.75; color: var(--muted); max-width: 900px; border-left: 3px solid var(--line); padding-left: 18px; }
.lang-zh .awards-head h2 { letter-spacing: -.008em; }
.lang-zh .award h3 { letter-spacing: 0; }

/* Six nav items + CTA get tight before the mobile menu takes over at 900px. */
@media (max-width: 1180px) and (min-width: 901px) {
  nav { gap: 18px; font-size: 14px; }
  .nav-cta { padding: 12px 13px; }
  /* Seven rail columns narrow to ~120px here, so the labels drop a size to
     keep every stage name inside the fixed label row. */
  .rail { --rail-y: 132px; --dot: 20px; }
  .rail h3 { font-size: 14px; margin-bottom: 16px; }
  .rail time { font-size: 21px; margin-top: 12px; }
  .rail small { font-size: 12.5px; }
}

@media (max-width: 900px) {
  .site-header { position: fixed; height: 68px; }
  .gaps, .award-grid, .abilities, .audience-list { grid-template-columns: 1fr; }
  .crit-cols { grid-template-columns: 1fr; gap: 46px; }
  .site-header.scrolled { height: 60px; }
  .header-right { gap: 12px; }
  .menu-button { display: grid; gap: 6px; z-index: 3; position: relative; }
  .menu-button span { display: block; width: 24px; height: 1px; background: white; transition: transform .3s ease, opacity .3s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .header-tools { z-index: 3; position: relative; }
  nav { display: flex; position: fixed; inset: 0 0 auto; z-index: 1; background: #0d2119; padding: 96px 6vw 36px; flex-direction: column; align-items: stretch; gap: 0; transform: translateY(-14px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .32s ease, transform .32s ease, visibility .32s; box-shadow: 0 26px 44px rgba(0,0,0,.3); }
  nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .nav-cta { border: 0; }
  .hero { min-height: 660px; padding-top: 110px; height: auto; }
  .hero-copy { width: 100%; }
  /* No .hero h1 size here: `.lang-zh .hero h1` further up is more specific and
     media queries add no specificity, so such a rule would never apply. The
     small-screen headline size is the lower bound of those clamp()s. */
  .orb-one { width: 330px; height: 330px; right: -20%; top: 22%; opacity: .5; }
  .hero-meta { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 50px; }
  .countdown-band { align-items: flex-start; gap: 24px; flex-direction: column; }
  .countdown { width: 100%; justify-content: space-between; gap: 10px; }
  .count strong { font-size: 32px; }
  .section { padding: 62px 5vw; }
  .section-heading, .audience-layout, .timeline-heading, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .challenge-specs { grid-template-columns: 1fr; gap: 0; }
  .challenge-spec + .challenge-spec { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 26px; margin-top: 26px; }
  .timeline article { grid-template-columns: 132px 1fr 88px; gap: 20px; }
  .timeline time { font-size: 16px; }
  /* The rail needs seven columns to read as a rail; below this it is a list. */
  .rail { grid-template-columns: 1fr; max-width: 620px; border-top: 1px solid var(--line); }
  .rail::before, .rail::after, .rail .dot { display: none; }
  .rail article { grid-template-columns: 88px 1fr; grid-template-rows: auto auto; column-gap: 16px; justify-items: start; text-align: left; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .rail article > time { grid-area: 1 / 1 / span 2 / 2; margin: 0; font-size: 17px; }
  .rail h3 { grid-area: 1 / 2; align-self: start; margin: 0 0 6px; font-size: 16px; }
  .rail small { grid-area: 2 / 2; margin-top: 0; font-size: 13.5px; }
  .venue { grid-template-columns: 1fr; }
  .venue-visual { min-height: 480px; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .crit-facts { grid-template-columns: 1fr; gap: 0; }
  .brand small { display: none; }
  .hero { min-height: 780px; }
  .eyebrow { flex-direction: column; gap: 5px; }
  .hero-lead { font-size: 14.5px; }
  .hero-actions, .register-actions { flex-direction: column; align-items: stretch; }
  .rules-links { grid-template-columns: 1fr; }
  .challenge-partner { padding: 24px; }
  .challenge-partner-link { align-items: flex-start; flex-direction: column; gap: 14px; }
  .challenge-partner-link img { width: min(220px, 100%); }
  .challenge-specs { padding: 24px; }
  .challenge-copy-grid { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .challenge-copy { font-size: 15px; }
  .hero-meta { grid-template-columns: 1fr; border-left: 1px solid rgba(255,255,255,.2); }
  .hero-meta > div { display: grid; grid-template-columns: 85px 1fr; }
  .countdown { gap: 5px; }
  .count { min-width: 0; }
  .count strong { font-size: 27px; }
  .section h2, .venue h2 { font-size: 31px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article { min-height: 220px; }
  .abilities article { grid-template-columns: 42px 1fr auto; gap: 12px; }
  .abilities h3 { font-size: 19px; }
  .award { padding: 30px 24px; }
  .award h3 { font-size: 21px; }
  .audience-list > div { grid-template-columns: 56px 1fr; }
  .audience-list b { font-size: 18px; }
  .tech-strip { grid-template-columns: 1fr; gap: 18px; }
  .timeline article { grid-template-columns: 1fr 70px; gap: 12px; }
  .timeline article > div { grid-column: 1 / -1; grid-row: 2; }
  .timeline article > b { grid-column: 2; grid-row: 1; }
  .venue-copy { padding: 65px 5vw; }
  .venue-visual { min-height: 360px; }
  .register { padding-top: 64px; }
  .register h2 { font-size: 34px; }
  footer { grid-template-columns: 1fr; gap: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee div { animation: none; }
  .button { transition: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .eyebrow, .hero-copy > *, .hero-meta { animation: none; }
}
