/* ============ TOKENS ============ */
:root {
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #EEF2F9;
  --border: #DEE5F0;
  --text: #0B2545;
  --text-muted: #55647E;
  --text-dim: #93A0B8;

  /* Tricolor brand accents — saffron / navy / green, plus a warm rust for variety */
  --hydrogen: #E8792E;
  --semiconductor: #0B2545;
  --defence: #1C8A4B;
  --agritech: #B5541F;

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --radius: 10px;
  --wrap: 1120px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--hydrogen);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Faint blueprint grid backdrop */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(11,37,69,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,37,69,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.logo-mark { color: var(--hydrogen); }
.logo-year { color: var(--text-muted); font-weight: 500; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); background: #163a63; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-muted); background: var(--surface-2); }

.nav-cta { padding: 8px 16px; font-size: 13px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 0;
}
.hero-inner { text-align: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--hydrogen);
  margin: 0 0 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 120px);
  line-height: 1;
  letter-spacing: -2px;
  margin: 0 0 12px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--hydrogen), var(--semiconductor), var(--defence), var(--agritech));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
}

.hero-subline {
  max-width: 620px;
  margin: 0 auto 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hydrogen);
  margin: 0 0 28px;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}
.hero-sub em { color: var(--text); font-style: normal; }

.hero-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 72px;
}

/* Scrolling category marquee — signature element */
.marquee {
  border-top: 1px solid var(--border);
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-set span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 0 22px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.proposition-strip {
  text-align: center;
  padding: 16px 24px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ============ STAT STRIP ============ */
.stat-strip {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ============ SECTIONS ============ */
.section { padding: 96px 0; position: relative; z-index: 1; }
.section-alt { background: var(--surface); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.5px;
  margin: 0 0 48px;
  max-width: 640px;
}

/* ============ EXPERIENCE ZONES ============ */
.zone-strip {
  border-bottom: 1px solid var(--border);
}
.zone-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.zone {
  padding: 20px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.zone:last-child { border-right: none; }
.zone-icon {
  font-size: 18px;
  color: var(--hydrogen);
}
.zone span:last-child {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============ POSITIONING QUOTE ============ */
.quote-band {
  padding: 64px 0;
  text-align: center;
}
.quote-text {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* ============ TEN PILLARS ============ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar-card {
  background: var(--surface);
  padding: 26px 22px;
}
.pillar-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hydrogen);
  margin-bottom: 10px;
}
.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 8px;
}
.pillar-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.pillar-card p + p { margin-top: 10px; }
.program-flow {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.2px;
  color: var(--text-dim) !important;
  line-height: 1.7 !important;
}

/* ============ PAVILIONS ============ */
.pavilion-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  max-width: 940px;
  counter-reset: none;
}
.pavilion-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
}
.pavilion-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hydrogen);
  flex-shrink: 0;
}

/* ============ TECHNOLOGY DOMAINS ============ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.domain-card {
  background: var(--surface);
  padding: 26px 24px;
}
.domain-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--hydrogen);
  margin-bottom: 14px;
}
.domain-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 14px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text-muted);
}

/* ============ FUTURE TECHNOLOGY ARENA (category list) ============ */
.cat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  max-width: 940px;
}
.cat-col {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.cat-col li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  transition: padding-left 0.15s ease;
}
.cat-col li:hover { padding-left: 4px; }

.cat-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hydrogen);
}
.cat-icon svg { width: 20px; height: 20px; }
.cat-col:last-child .cat-icon { color: var(--defence); }

/* ============ SCHEDULE ============ */
.schedule-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.day-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 12px 4px;
  margin-right: 28px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.day-tab:hover { color: var(--text); }
.day-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--hydrogen);
}

.day-panel { display: none; }
.day-panel.is-active { display: block; }

.agenda-row {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.agenda-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  min-width: 96px;
  flex-shrink: 0;
}
.agenda-title { font-size: 15px; }

.track-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin: 0 0 28px;
}
.schedule-tracks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}
.track-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--hydrogen);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.schedule-track:last-child .track-heading { color: var(--defence); }

/* ============ CTA BAND (links out to register.html) ============ */
.cta-band { padding: 72px 0; }
.cta-band-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.cta-title { margin-bottom: 12px; }
.cta-band .register-copy { margin: 0; max-width: 460px; }
.cta-button { white-space: nowrap; }

/* ============ REGISTER PAGE ============ */
.register-page-hero {
  padding: 64px 0 48px;
  text-align: center;
}
.register-page-hero .section-title { margin: 0 auto 14px; }
.register-page-hero .register-copy { margin: 0 auto; text-align: center; }

/* ============ REGISTER ============ */
.register-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.register-copy {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
}
.register-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--agritech);
  flex-shrink: 0;
}

.register-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.optional { color: var(--text-dim); font-weight: 400; }

.form-row input,
.form-row select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus {
  border-color: var(--hydrogen);
  outline: none;
}
.form-row input::placeholder { color: var(--text-dim); }

/* ---------- Phone OTP verification ---------- */
.phone-verify-row {
  display: flex;
  gap: 8px;
}
.phone-verify-row input {
  flex: 1;
  min-width: 0;
}
.btn-otp {
  padding: 12px 16px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-otp:disabled {
  opacity: 0.6;
  cursor: default;
}
.field-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  min-height: 16px;
}
.field-hint.success { color: var(--agritech); }
.field-hint.error { color: #FF8A80; }
#otp-row { animation: modal-in 0.2s ease; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--text-muted); color: var(--text); }
.chip.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
}
.btn-submit[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
  margin: 0;
  font-size: 13px;
  min-height: 18px;
  text-align: center;
}
.form-status.success { color: var(--agritech); }
.form-status.error { color: #FF8A80; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-tag {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}
.footer-meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}
.footer-meta p { margin: 4px 0; }
.footer-meta a { color: var(--hydrogen); text-decoration: underline; text-underline-offset: 2px; }

/* ============ TRACK EXPLORE BUTTON ============ */
.track-explore {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease, gap 0.15s ease;
}
.track-explore:hover { color: var(--text); gap: 8px; }
.track-explore[data-track="hydrogen"]:hover { color: var(--hydrogen); }
.track-explore[data-track="semiconductor"]:hover { color: var(--semiconductor); }
.track-explore[data-track="defence"]:hover { color: var(--defence); }
.track-explore[data-track="agritech"]:hover { color: var(--agritech); }
.explore-arrow { transition: transform 0.15s ease; }
.track-explore:hover .explore-arrow { transform: translateX(2px); }

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.75);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  border-top: 3px solid var(--hydrogen);
  animation: modal-in 0.25s ease;
  box-shadow: 0 24px 64px rgba(11, 37, 69, 0.25);
}
.modal-panel[data-accent="hydrogen"] { border-top-color: var(--hydrogen); }
.modal-panel[data-accent="semiconductor"] { border-top-color: var(--semiconductor); }
.modal-panel[data-accent="defence"] { border-top-color: var(--defence); }
.modal-panel[data-accent="agritech"] { border-top-color: var(--agritech); }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  transition: all 0.15s ease;
}
.modal-close:hover { color: var(--text); border-color: var(--text-muted); }

.modal-head { padding-right: 40px; margin-bottom: 20px; }
.modal-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.modal-panel h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
}

.modal-scene {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}
.modal-scene svg { display: block; width: 100%; height: auto; }
.scene-label { font-family: var(--font-mono); font-size: 10px; fill: var(--text-muted); }

.modal-steps {
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-steps li {
  list-style: none;
  counter-increment: step;
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.modal-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ---------- Hydrogen scene: electrolysis ---------- */
.h-bubble {
  animation: h-rise 2.2s ease-in infinite;
  opacity: 0;
}
@keyframes h-rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-46px); opacity: 0; }
}
.h-current {
  stroke-dasharray: 6 5;
  animation: h-flow 1s linear infinite;
}
@keyframes h-flow {
  to { stroke-dashoffset: -22; }
}
.h-tank-fill {
  animation: h-fill 3.4s ease-in-out infinite alternate;
  transform-origin: bottom;
}
@keyframes h-fill {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(0.85); }
}

/* ---------- Semiconductor scene: fab line ---------- */
.s-token {
  offset-path: path('M 40 160 H 560');
  animation: s-travel 4.5s linear infinite;
}
@keyframes s-travel {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}
.s-node { transition: filter 0.2s ease; }
.s-node-glow {
  opacity: 0;
  animation: s-pulse 4.5s linear infinite;
}
.s-node-glow.n1 { animation-delay: 0s; }
.s-node-glow.n2 { animation-delay: 1.1s; }
.s-node-glow.n3 { animation-delay: 2.25s; }
.s-node-glow.n4 { animation-delay: 3.35s; }
.s-node-glow.n5 { animation-delay: 4.4s; }
@keyframes s-pulse {
  0%, 92%, 100% { opacity: 0; }
  4%, 14% { opacity: 1; }
}
.s-ray {
  animation: s-blink 4.5s linear infinite;
  animation-delay: 1.8s;
  opacity: 0;
}
@keyframes s-blink {
  0%, 40%, 60%, 100% { opacity: 0; }
  46%, 54% { opacity: 1; }
}

/* ---------- Defence scene: radar sweep ---------- */
.d-sweep {
  transform-origin: 130px 130px;
  animation: d-rotate 3s linear infinite;
}
@keyframes d-rotate {
  to { transform: rotate(360deg); }
}
.d-blip {
  animation: d-blip-fade 3s linear infinite;
  opacity: 0;
}
.d-blip.b1 { animation-delay: 0.2s; }
.d-blip.b2 { animation-delay: 1.3s; }
.d-blip.b3 { animation-delay: 2.1s; }
@keyframes d-blip-fade {
  0%, 100% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 0; }
}
.d-drone {
  animation: d-fly 5s ease-in-out infinite;
}
@keyframes d-fly {
  0% { transform: translate(0, 0); }
  50% { transform: translate(340px, -18px); }
  100% { transform: translate(0, 0); }
}

/* ---------- AgriTech scene: sensor loop ---------- */
.a-ping {
  animation: a-ping-out 2.6s ease-out infinite;
  transform-origin: center;
}
@keyframes a-ping-out {
  0% { transform: scale(0.3); opacity: 0.9; }
  70% { opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
.a-drop {
  animation: a-fall 2s ease-in infinite;
  opacity: 0;
}
.a-drop.d1 { animation-delay: 0s; }
.a-drop.d2 { animation-delay: 0.6s; }
.a-drop.d3 { animation-delay: 1.2s; }
@keyframes a-fall {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(38px); opacity: 0; }
}
.a-plant {
  animation: a-grow 3.2s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
@keyframes a-grow {
  from { transform: scaleY(0.85); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .h-bubble, .h-current, .h-tank-fill, .s-token, .s-node-glow, .s-ray,
  .d-sweep, .d-blip, .d-drone, .a-ping, .a-drop, .a-plant {
    animation: none !important;
    opacity: 1;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .register-wrap { grid-template-columns: 1fr; gap: 40px; }
  .main-nav { display: none; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .zone-grid { grid-template-columns: repeat(3, 1fr); }
  .zone:nth-child(3n) { border-right: none; }
  .zone:nth-child(-n+6) { border-bottom: 1px solid var(--border); }
  .cat-list { grid-template-columns: 1fr; gap: 0; }
  .pavilion-list { grid-template-columns: 1fr; }
  .schedule-tracks { grid-template-columns: 1fr; gap: 32px 0; }
  .form-row-split { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .marquee-track { animation: none !important; }
}
