:root {
  --green: #008d52;
  --green-dark: #064b33;
  --green-deep: #062d22;
  --green-light: #dff4e8;
  --lime: #b6ef68;
  --ink: #10211a;
  --muted: #5f6f67;
  --line: #d9e3dd;
  --paper: #f5f8f5;
  --white: #ffffff;
  --orange: #ff6b24;
  --shadow: 0 24px 70px rgba(3, 54, 35, 0.14);
  --radius: 28px;
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-deep);
  border-radius: 8px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  padding: 15px 0;
  transition: padding 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(13, 53, 38, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  width: var(--shell);
  min-height: 64px;
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(6, 45, 34, 0.12);
  backdrop-filter: blur(16px);
}

.site-header.scrolled .nav-shell {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  line-height: 1;
}

.brand-type {
  display: grid;
  gap: 4px;
}

.brand-type b {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.brand-type small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 5px;
  align-items: center;
}

.site-nav a,
.nav-cta {
  padding: 11px 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green);
  background: var(--green-light);
}

.nav-cta {
  margin-left: 8px;
  padding-inline: 18px;
  color: var(--white);
  background: var(--green);
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--green-light);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 99px;
  background: var(--green-dark);
}

.hero {
  position: relative;
  min-height: 820px;
  color: var(--white);
  background: var(--green-deep);
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("assets/robot-arena.jpeg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: hero-scale 1.4s ease-out both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 31, 23, 0.92) 0%, rgba(4, 31, 23, 0.68) 40%, rgba(4, 31, 23, 0.12) 72%),
    linear-gradient(0deg, rgba(3, 31, 22, 0.52) 0%, transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 200px;
  padding-bottom: 150px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-block;
  padding: 8px 13px;
  color: var(--green-deep);
  background: var(--lime);
  border-radius: 999px;
}

.hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 1.5;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  margin-bottom: 12px;
  color: var(--lime);
  font-size: 0.34em;
  letter-spacing: 0.18em;
}

.hero-title-mobile-break {
  display: none;
}

.hero-subtitle {
  max-width: none;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 24px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--green-deep);
  background: var(--lime);
  box-shadow: 0 12px 30px rgba(182, 239, 104, 0.22);
}

.button-primary:hover {
  box-shadow: 0 16px 38px rgba(182, 239, 104, 0.3);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-meta {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  padding: 24px 30px;
  background: rgba(3, 39, 28, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  backdrop-filter: blur(18px);
}

.hero-meta > div {
  display: grid;
  gap: 3px;
  padding: 0 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-meta > div:first-child {
  padding-left: 0;
}

.hero-meta > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-meta strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.countdown strong {
  color: var(--lime);
}

.section {
  padding: 120px 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 82px;
  align-items: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.theme-title-separator {
  display: inline-block;
  margin-inline: 0.22em;
}

.theme-section .section-copy h2 {
  white-space: nowrap;
}

.section-copy .lead {
  margin: 28px 0 34px;
  color: #405249;
  font-size: 1.08rem;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 18px 0;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.facts dd {
  margin: 0;
  font-weight: 850;
}

.theme-visual {
  position: relative;
  min-height: 520px;
}

.theme-visual > img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-note {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 260px;
  padding: 24px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.visual-note span {
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.visual-note strong {
  display: block;
  margin: 5px 0 4px;
  font-size: 1.35rem;
}

.visual-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.format-section,
.schedule-section,
.organizers-section {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 62px;
}

.section-heading > p {
  max-width: 520px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading-stacked {
  grid-template-columns: 1fr;
  gap: 0;
}

.section-heading .section-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.process-grid {
  display: grid;
  gap: 34px;
}

.process-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 430px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(5, 57, 38, 0.07);
}

.process-card-reverse figure {
  order: 2;
}

.process-card figure {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
}

.process-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-card:hover figure img {
  transform: scale(1.035);
}

.process-card figcaption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(4, 37, 27, 0.75);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  backdrop-filter: blur(12px);
}

.process-copy {
  display: flex;
  padding: clamp(32px, 5vw, 64px);
  flex-direction: column;
  justify-content: center;
}

.process-number {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.process-copy h3 {
  margin: 16px 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.14;
}

.process-copy p {
  margin: 0;
  color: var(--muted);
}

.race-section {
  color: var(--white);
  background: var(--green-deep);
}

.race-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.track-panel {
  padding: 12px;
  background: transparent;
  border: 0;
}

.track-panel img {
  width: 100%;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.25));
}

.race-copy .section-kicker {
  color: var(--lime);
}

.race-copy h2 {
  margin-bottom: 38px;
  line-height: 1.2;
}

.race-rule {
  display: grid;
  grid-template-columns: 70px 1fr;
  padding: 18px 0;
  gap: 22px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.race-rule > span {
  color: var(--lime);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.race-rule h3,
.race-rule p {
  margin: 0;
}

.race-rule h3 {
  font-size: 1.05rem;
}

.race-rule p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.race-note {
  display: inline-block;
  margin: 28px 0 0;
  padding: 9px 14px;
  color: var(--green-deep);
  background: var(--lime);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  gap: 0 72px;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline li {
  position: relative;
  min-height: 185px;
  padding: 12px 0 40px;
}

.timeline li:nth-child(even) {
  margin-top: 96px;
}

.timeline li:nth-child(odd) {
  text-align: right;
}

.timeline li:nth-child(odd) p {
  margin-left: auto;
}

.timeline li::before {
  position: absolute;
  top: 20px;
  width: 12px;
  height: 12px;
  content: "";
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.timeline li:nth-child(odd)::before {
  right: -46px;
}

.timeline li:nth-child(even)::before {
  left: -46px;
}

.timeline time {
  display: inline-block;
  padding: 6px 12px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 5px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.timeline h3 {
  margin: 7px 0 7px;
  font-size: 1.35rem;
}

.timeline p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.timeline-final {
  color: var(--white);
  margin: 0 0 0 !important;
  padding: 30px !important;
  background: var(--green);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.timeline-final p {
  color: rgba(255, 255, 255, 0.78);
}

.timeline-final time {
  color: var(--green-deep);
  background: var(--lime);
}

.timeline-final::before {
  top: 36px !important;
  background: var(--lime) !important;
}

.awards-stage {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.award {
  min-height: 340px;
  padding: 34px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: var(--radius);
}

.award-champion {
  color: var(--green-deep);
  background: var(--lime);
}

.award-rank {
  margin-bottom: 76px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 1.6rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.award-champion .award-rank {
  color: rgba(6, 75, 51, 0.46);
}

.award-label {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.award h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.18;
}

.award > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.award-champion > p:last-child {
  color: rgba(6, 45, 34, 0.68);
}

.special-awards {
  display: flex;
  margin-top: 18px;
  padding: 22px 28px;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.special-awards span {
  margin-right: auto;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.special-awards p {
  margin: 0;
  padding: 8px 13px;
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
}

.about-section {
  color: var(--white);
  background: var(--green-deep);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 62px 76px;
  align-items: center;
}

.about-copy .section-kicker {
  color: var(--lime);
}

.about-copy h2 {
  margin-bottom: 30px;
}

.about-copy > p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.67);
}

.about-photo img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.qr-links {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.qr-links article {
  display: flex;
  padding: 18px;
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
}

.qr-links img {
  width: 92px;
  height: 92px;
  padding: 4px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
}

.qr-links div {
  display: grid;
  gap: 3px;
}

.qr-links span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.qr-links strong {
  font-size: 1.08rem;
}

.organizers-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 48%, rgba(20, 157, 111, 0.1), transparent 31%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 249, 0.96) 48%, rgba(236, 246, 241, 0.9) 100%);
}

.organizers-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(112deg, transparent 0 34px, rgba(255, 255, 255, 0.82) 35px 37px);
}

.organizers-shell {
  position: relative;
  z-index: 1;
}

.organizers-section .organizers-title {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
  gap: 20px;
  text-align: center;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.organizers-section .organizers-title::before,
.organizers-section .organizers-title::after {
  content: "";
  width: clamp(42px, 7vw, 84px);
  height: 2px;
  background: var(--green);
  opacity: 0.58;
}

.organizer-groups {
  display: grid;
  width: min(920px, 100%);
  margin: 26px auto 0;
  gap: 30px;
}

.organizer-block {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.organizer-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.organizer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.organizer-logos img,
.organizer-logos svg {
  display: block;
  flex: 0 1 auto;
  object-fit: contain;
}

.organizer-logos-main {
  gap: clamp(32px, 5vw, 68px);
}

.logo-cuhk {
  width: min(340px, 34vw);
}

.logo-cintec {
  width: min(160px, 17vw);
}

.logo-atec {
  width: min(255px, 26vw);
}

.organizer-logos-funders {
  gap: clamp(44px, 8vw, 110px);
}

.logo-itc {
  width: 310px;
  height: auto;
}

.logo-government {
  width: 310px;
}

.organizer-logos-single {
  min-height: 82px;
}

.logo-stem {
  width: min(500px, 74vw);
}

.logo-hkace {
  width: min(330px, 54vw);
  height: auto;
}

.button-light {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--green-deep);
}

.latest-news {
  padding: 34px 0;
  background: var(--green-light);
}

.latest-news-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 28px 32px;
  background: var(--white);
  border-left: 5px solid var(--green);
  border-radius: 0 18px 18px 0;
  box-shadow: 0 12px 35px rgba(3, 54, 35, 0.08);
}

.latest-news-card .section-kicker,
.latest-news-card h2,
.latest-news-card p {
  margin: 0;
}

.latest-news-card h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.25;
}

.latest-news-card p {
  margin-top: 8px;
  color: var(--muted);
}

.latest-news-card a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.66);
  background: #031a14;
}

.footer-main {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-legal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 34px;
  padding-bottom: 34px;
  gap: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-legal h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1rem;
}

.footer-legal p {
  line-height: 1.8;
}

.brand-footer {
  color: var(--white);
}

.brand-footer .brand-type small {
  color: rgba(255, 255, 255, 0.54);
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-main > a:last-child {
  margin-left: auto;
  color: var(--lime);
  font-size: 0.84rem;
  font-weight: 800;
}

.registration-dialog {
  width: min(510px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.registration-dialog[open] {
  animation: dialog-enter 320ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.registration-dialog::backdrop {
  background: rgba(2, 24, 17, 0.72);
  backdrop-filter: blur(8px);
  animation: backdrop-enter 240ms ease-out both;
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.dialog-close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-content {
  padding: 48px;
  text-align: center;
}

.dialog-panel:not([hidden]) {
  animation: dialog-panel-enter 260ms ease-out both;
}

@keyframes dialog-panel-enter {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dialog-intro {
  padding: 76px 48px 68px;
}

.dialog-intro h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.dialog-intro .section-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dialog-intro > p:not(.section-kicker) {
  margin: 20px 0 0;
}

.dialog-registration-panel h2 {
  margin: 0;
  font-size: clamp(1.65rem, 6.5vw, 2.1rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.dialog-content > p:not(.section-kicker) {
  color: var(--muted);
}

.dialog-registration-link {
  display: inline-flex;
  margin-top: 24px;
  padding: 12px 20px;
  border: 0;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.dialog-registration-link:hover,
.dialog-registration-link:focus-visible {
  background: var(--green);
  transform: translateY(-2px);
}

.dialog-registration-link:focus-visible {
  outline: 3px solid rgba(0, 141, 82, 0.24);
  outline-offset: 3px;
}

.dialog-content .dialog-qr-hint {
  margin: 16px 0 0;
}

.dialog-content .dialog-qr-hint + img {
  margin-top: 14px;
}

.dialog-content img {
  width: 240px;
  margin: 24px auto;
  padding: 10px;
  border: 1px solid rgba(6, 45, 34, 0.15);
  border-radius: 18px;
  background: var(--white);
}

.dialog-content small {
  display: block;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-scale {
  from { transform: scale(1.09); }
  to { transform: scale(1.02); }
}

@media (max-width: 1000px) {
  :root {
    --shell: min(calc(100% - 32px), 760px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 92px;
    right: 16px;
    left: 16px;
    display: grid;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav a,
  .nav-cta {
    padding: 14px 16px;
    text-align: left;
  }

  .nav-cta {
    margin: 4px 0 0;
    text-align: center;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 190px;
  }

  .hero h1 {
    max-width: 700px;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .hero-meta .countdown {
    display: none;
  }

  .hero-meta > div:nth-child(2) {
    border-right: 0;
  }

  .split-layout,
  .race-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .theme-visual {
    min-height: auto;
  }

  .visual-note {
    right: 18px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-card {
    grid-template-columns: 1fr;
  }

  .process-card-reverse figure {
    order: 0;
  }

  .process-card figure {
    min-height: 360px;
  }

  .about-photo {
    grid-row: 1;
  }

  .qr-links {
    grid-column: 1;
  }

  .awards-stage {
    grid-template-columns: 1fr 1fr;
  }

  .award-champion {
    grid-column: 1 / -1;
  }

  .organizer-groups {
    width: min(760px, 100%);
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100vw - 28px);
    --radius: 22px;
  }

  .site-header {
    padding-top: 9px;
  }

  .nav-shell {
    min-height: 58px;
    padding: 6px 7px 6px 13px;
    border-radius: 15px;
  }

  .brand {
    gap: 7px;
  }

  .brand-type {
    gap: 2px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .brand-type b {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .brand-type small {
    display: block;
    font-size: 0.5rem;
    letter-spacing: 0.03em;
  }

  .hero {
    min-height: 760px;
  }

  .hero-image {
    background-position: 64% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(3, 31, 22, 0.95) 4%, rgba(3, 31, 22, 0.64) 62%, rgba(3, 31, 22, 0.2) 100%);
  }

  .hero-content {
    display: flex;
    min-height: 640px;
    padding-top: 128px;
    padding-bottom: 60px;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .hero-title-mobile-break {
    display: block;
  }

  .theme-section .section-copy h2 {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
    letter-spacing: -0.055em;
  }

  .hero-subtitle {
    margin: 20px 0 26px;
    white-space: normal;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 20px 14px;
    border-radius: 0;
  }

  .hero-meta > div {
    padding: 0 14px;
  }

  .hero-meta > div:first-child {
    padding-left: 0;
  }

  .hero-meta strong {
    font-size: 0.78rem;
  }

  .section {
    padding: 84px 0;
  }

  .section h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .theme-visual > img {
    height: 410px;
  }

  .visual-note {
    right: 12px;
    bottom: -24px;
    width: calc(100% - 24px);
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .process-card figure {
    min-height: 280px;
  }

  .process-copy {
    padding: 30px 24px 36px;
  }

  .track-panel {
    padding: 18px;
  }

  .timeline {
    grid-template-columns: 1fr;
    padding-left: 28px;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline li,
  .timeline li:nth-child(even) {
    min-height: auto;
    margin: 0;
    padding: 0 0 42px;
  }

  .timeline li:nth-child(odd) {
    text-align: left;
  }

  .timeline li:nth-child(odd) p {
    margin-left: 0;
  }

  .timeline li::before,
  .timeline li:nth-child(odd)::before,
  .timeline li:nth-child(even)::before {
    top: 7px;
    right: auto;
    left: -28px;
  }

  .timeline-final {
    margin-left: -12px !important;
    padding: 24px !important;
  }

  .timeline-final::before {
    top: 30px !important;
    left: -16px !important;
  }

  .awards-stage {
    grid-template-columns: 1fr;
  }

  .award-champion {
    grid-column: auto;
  }

  .award {
    min-height: 280px;
  }

  .award-rank {
    margin-bottom: 50px;
  }

  .special-awards {
    align-items: flex-start;
  }

  .special-awards span {
    width: 100%;
  }

  .about-photo img {
    min-height: 350px;
  }

  .qr-links {
    grid-template-columns: 1fr;
  }

  .organizers-section .organizers-title {
    padding: 0 10px;
    gap: 12px;
  }

  .organizers-section .organizers-title::before,
  .organizers-section .organizers-title::after {
    width: 32px;
  }

  .organizer-groups {
    margin-top: 24px;
    gap: 34px;
  }

  .organizer-logos-main {
    flex-wrap: wrap;
    gap: 24px 30px;
  }

  .logo-cuhk {
    width: min(320px, 82vw);
  }

  .logo-cintec {
    width: min(150px, 38vw);
  }

  .logo-atec {
    width: min(220px, 52vw);
  }

  .organizer-logos-funders {
    flex-direction: column;
    gap: 24px;
  }

  .logo-itc,
  .logo-government {
    width: min(310px, 76vw);
  }

  .latest-news-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 22px;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main > a:last-child {
    margin-left: 0;
  }

  .dialog-content {
    padding: 42px 24px 30px;
  }

  .dialog-intro {
    padding: 72px 26px 60px;
  }

  .dialog-intro h2 {
    font-size: 2.15rem;
  }

  .dialog-registration-panel h2 {
    font-size: 1.42rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
