/* ============================================================
   HKSSDC — Hong Kong Secondary Schools Debating Competition
   Design system: parchment + navy + brass-gold, editorial serif
   ============================================================ */

:root {
  /* surfaces */
  --paper:      oklch(0.986 0.006 85);
  --paper-2:    oklch(0.967 0.010 84);
  --paper-3:    oklch(0.945 0.013 83);
  --card:       oklch(0.998 0.003 85);

  /* ink — near-black with faint warm-green undertone */
  --ink:        oklch(0.235 0.012 150);
  --ink-soft:   oklch(0.430 0.014 150);
  --ink-faint:  oklch(0.580 0.012 150);

  /* deep surface — forest green (brand) */
  --navy:       oklch(0.405 0.088 140);
  --navy-deep:  oklch(0.330 0.092 137);
  --navy-line:  oklch(0.500 0.062 140);

  /* accent — teal / seafoam (brand · overridable via tweaks) */
  --accent:     oklch(0.715 0.105 168);
  --accent-deep:oklch(0.605 0.108 170);
  --accent-ink: oklch(0.520 0.094 172);

  /* lines */
  --line:       oklch(0.885 0.010 84);
  --line-strong:oklch(0.820 0.013 84);

  /* type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--navy-deep); }

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent-deep);
  display: inline-block;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(34px, 5.2vw, 60px);
  margin-top: 20px;
}
.section-head .lede {
  margin-top: 22px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-soft);
  max-width: 60ch;
}

.serif-i { font-style: italic; font-weight: 500; }
.accent-text { color: var(--accent-ink); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--navy);
  color: oklch(0.97 0.01 85);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 12px 28px -14px oklch(0.225 0.044 262 / 0.6); }
.btn-gold {
  background: var(--accent);
  color: var(--navy-deep);
  border-color: var(--accent);
}
.btn-gold:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light {
  background: transparent;
  color: oklch(0.95 0.01 85);
  border-color: var(--navy-line);
}
.btn-ghost-light:hover { border-color: oklch(0.8 0.02 85); transform: translateY(-2px); }

.arrow-link {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  transition: gap .2s ease, color .2s ease;
}
.arrow-link:hover { gap: 14px; color: var(--accent-ink); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.986 0.006 85 / 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark::after { content: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  transition: color .18s ease; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ============================================================
   HERO — full-bleed photographic
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 540px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  padding: 84px var(--gutter);
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg,
      oklch(0.20 0.045 142 / 0.72) 0%,
      oklch(0.17 0.05 142 / 0.52) 42%,
      oklch(0.14 0.05 142 / 0.88) 100%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 940px; margin: 0 auto; }
.hero-inner h1, .hero-inner .hero-lede, .hero-subhead { text-shadow: 0 1px 22px oklch(0.13 0.04 142 / 0.55); }
.hero-inner h1 {
  color: oklch(0.985 0.01 140);
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.hero-inner .hero-lede {
  margin: 26px auto 0;
  font-size: clamp(18px, 2.1vw, 22px);
  color: oklch(0.905 0.012 140);
  max-width: 62ch;
}
.hero-inner .hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.hero-inner .hero-meta { margin-top: 32px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: oklch(0.82 0.02 140); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.hero-inner .hero-meta b { color: oklch(0.97 0.01 140); font-weight: 600; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }
.eyebrow-light { color: var(--accent); margin-bottom: 22px; }
.eyebrow-light::before { background: var(--accent); }
.accent-text-light { color: var(--accent); }

/* generic striped placeholder (reused elsewhere) */
.ph {
  position: relative;
  background: repeating-linear-gradient(45deg, oklch(0.93 0.012 84) 0 11px, oklch(0.955 0.01 84) 11px 22px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid; place-items: center; color: var(--ink-faint); overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--paper); padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 2px;
}

/* ---------- stat strip ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.stats-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 34px 28px 34px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 50px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.stat-num .unit { color: var(--accent-ink); }
.stat-label { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-body p + p { margin-top: 20px; }
.about-body .big-first::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  font-weight: 600;
  float: left;
  line-height: 0.78;
  padding: 6px 12px 0 0;
  color: var(--accent-ink);
}
.about-aside { border-left: 2px solid var(--accent); padding-left: 28px; }
.about-aside dl { margin: 0; }
.about-aside dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.about-aside dd { margin: 6px 0 24px; font-family: var(--serif); font-size: 21px; }
.about-aside dd:last-child { margin-bottom: 0; }

/* ============================================================
   FORMATS
   ============================================================ */
.formats { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.format-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.format-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px oklch(0.225 0.044 262 / 0.4); border-color: var(--line-strong); }
.format-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
.format-card h3 { font-size: clamp(26px, 3vw, 34px); margin: 14px 0 12px; }
.format-card .desc { color: var(--ink-soft); font-size: 16.5px; }
.format-specs { list-style: none; margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.format-specs li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.format-specs .k { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.format-specs .v { font-weight: 600; text-align: right; }

/* ============================================================
   TIMELINE / SCHEDULE
   ============================================================ */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 12px; }
.tl-item { position: relative; padding: 0 18px; padding-top: 40px; }
.tl-item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-strong);
}
.tl-item::after {
  content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent-deep);
}
.tl-item.done::after { background: var(--accent); }
.tl-date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent-ink); }
.tl-item h4 { font-size: 21px; margin: 10px 0 8px; }
.tl-item p { font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   CHAMPIONS
   ============================================================ */
.champions { background: var(--navy-deep); color: oklch(0.93 0.01 85); }
.champions .eyebrow { color: var(--accent); }
.champions .eyebrow::before { background: var(--accent); }
.champions h2 { color: oklch(0.97 0.01 85); }
.champions .lede { color: oklch(0.82 0.012 260); }
.champ-table { margin-top: 8px; border-top: 1px solid var(--navy-line); }
.champ-row {
  display: grid; grid-template-columns: 120px 1fr 1fr auto; gap: 24px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--navy-line);
  transition: background .2s ease, padding .2s ease;
}
.champ-row:hover { background: oklch(0.30 0.046 260 / 0.5); padding-inline: 18px; }
.champ-year { font-family: var(--mono); font-size: 15px; color: var(--accent); letter-spacing: 0.04em; }
.champ-school { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 25px); }
.champ-motion { color: oklch(0.74 0.012 260); font-size: 14.5px; font-style: italic; }
.champ-fmt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.7 0.01 260); border: 1px solid var(--navy-line); padding: 5px 10px; border-radius: 2px; }

/* ============================================================
   REGISTER
   ============================================================ */
.register { background: var(--navy); color: oklch(0.95 0.01 85); position: relative; overflow: hidden; }
.register::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 85% -10%, oklch(0.34 0.05 260) 0%, transparent 55%);
  pointer-events: none;
}
.reg-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; position: relative; }
.register .eyebrow { color: var(--accent); }
.register .eyebrow::before { background: var(--accent); }
.register h2 { color: oklch(0.98 0.008 85); font-size: clamp(34px, 5vw, 56px); margin-top: 18px; }
.reg-lede { margin-top: 22px; color: oklch(0.83 0.012 260); font-size: 19px; max-width: 42ch; }
.reg-steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 20px; }
.reg-steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.reg-steps .n { font-family: var(--mono); font-size: 13px; color: var(--accent); border: 1px solid var(--navy-line); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.reg-steps .t { font-weight: 600; color: oklch(0.95 0.01 85); }
.reg-steps .d { color: oklch(0.78 0.012 260); font-size: 15px; }

/* form card */
.reg-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: clamp(26px, 3vw, 38px);
  box-shadow: 0 40px 80px -40px oklch(0.18 0.04 262 / 0.7);
}
.reg-card h3 { font-size: 26px; }
.reg-card .sub { color: var(--ink-soft); font-size: 15px; margin-top: 6px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px oklch(0.715 0.105 168 / 0.25); }
.field.invalid input, .field.invalid select { border-color: oklch(0.55 0.17 25); }
.field .err { color: oklch(0.52 0.17 25); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 12px;
  text-align: center; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  font-family: var(--sans); letter-spacing: 0; text-transform: none; margin: 0;
  transition: .18s ease;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:hover { border-color: var(--ink-faint); }
.seg input:checked + label,
.seg label:has(input:checked) { border-color: var(--accent-deep); background: oklch(0.745 0.11 78 / 0.14); color: var(--ink); }
.reg-card .btn-gold { width: 100%; justify-content: center; margin-top: 8px; }
.reg-fine { font-size: 13px; color: var(--ink-faint); margin-top: 16px; text-align: center; }

.reg-success { text-align: center; padding: 20px 0; display: none; }
.reg-success.show { display: block; animation: fadeUp .5s ease; }
.reg-success .tick { width: 64px; height: 64px; border-radius: 50%; background: oklch(0.745 0.11 78 / 0.18); display: grid; place-items: center; margin: 0 auto 22px; }
.reg-success .tick svg { width: 30px; height: 30px; color: var(--accent-deep); }
.reg-success h3 { font-size: 28px; }
.reg-success p { color: var(--ink-soft); margin-top: 12px; }
.reg-success .ref { font-family: var(--mono); font-size: 14px; margin-top: 20px; background: var(--paper-2); border: 1px dashed var(--line-strong); padding: 12px; border-radius: var(--radius); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: clamp(19px, 2.1vw, 23px); font-weight: 500; color: var(--ink);
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.faq-q .ico { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--accent-deep); transition: transform .25s ease, opacity .2s ease; }
.faq-q .ico::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-q .ico::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.faq-item.open .faq-q .ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding-bottom: 26px; color: var(--ink-soft); font-size: 16.5px; max-width: 62ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: oklch(0.86 0.012 260); padding-block: clamp(56px, 7vw, 88px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand-mark { border-color: oklch(0.7 0.02 85); color: oklch(0.95 0.01 85); }
.footer .brand-name { color: oklch(0.96 0.01 85); }
.footer .brand-sub { color: oklch(0.66 0.01 260); }
.footer-blurb { margin-top: 22px; max-width: 34ch; font-size: 15px; color: oklch(0.72 0.012 260); }
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer a { color: oklch(0.8 0.012 260); font-size: 15px; transition: color .18s ease; }
.footer a:hover { color: oklch(0.96 0.01 85); }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--navy-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: oklch(0.6 0.012 260); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"] { transition-delay: .08s; }
  .reveal[data-d="2"] { transition-delay: .16s; }
  .reveal[data-d="3"] { transition-delay: .24s; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; max-height: 360px; }
  .about-grid, .format-grid, .reg-grid, .faq-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .tl-item { padding-left: 28px; padding-top: 22px; padding-bottom: 22px; }
  .tl-item::before { left: 5px; top: 0; bottom: 0; right: auto; width: 2px; height: auto; }
  .tl-item::after { left: 0; top: 26px; }
  .champ-row { grid-template-columns: 70px 1fr; gap: 8px 16px; }
  .champ-motion, .champ-fmt { grid-column: 2; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: none; padding: 24px 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SINGLE-SECTION ADD-ONS — nav over hero, scroll cue, modal
   ============================================================ */
/* nav: transparent over the hero, solid once scrolled */
.nav--over { background: transparent; backdrop-filter: none; }
.nav--over.scrolled { background: oklch(0.986 0.006 85 / 0.92); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand--light .brand-name { color: oklch(0.97 0.01 140); }
.brand--light .brand-mark { border-color: oklch(0.86 0.02 140); color: oklch(0.97 0.01 140); }
.brand--light .brand-sub { color: oklch(0.82 0.02 140); }
.nav--over.scrolled .brand--light .brand-name { color: var(--ink); }
.nav--over.scrolled .brand--light .brand-mark { border-color: var(--ink); color: var(--ink); }
.nav--over.scrolled .brand--light .brand-sub { color: var(--ink-faint); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-mail { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: oklch(0.90 0.012 140); transition: color .25s ease; }
.nav-mail:hover { color: #fff; }
.nav--over.scrolled .nav-mail { color: var(--ink-soft); }
.nav--over.scrolled .nav-mail:hover { color: var(--ink); }

.btn-lg { padding: 16px 30px; font-size: 16.5px; }

.hero-subhead {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 31px);
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hero-corner {
  position: absolute; top: 22px; right: var(--gutter); z-index: 3;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: oklch(0.9 0.012 140); display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid oklch(0.82 0.02 140 / 0.42); padding: 8px 14px; border-radius: 20px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.hero-corner:hover { color: #fff; border-color: var(--accent); background: oklch(0.715 0.105 168 / 0.15); }
.hero-corner svg { width: 13px; height: 13px; }

/* scroll cue */
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  color: oklch(0.92 0.012 140); border: 1px solid oklch(0.82 0.02 140 / 0.45);
  transition: color .2s ease, border-color .2s ease, transform .25s ease;
}
.hero-scroll:hover { color: #fff; border-color: var(--accent); transform: translateX(-50%) translateY(4px); }
.hero-scroll svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { .hero-scroll { animation: bob 2.4s ease-in-out infinite; } }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(5px); } }

/* registration modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: grid; place-items: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: oklch(0.15 0.04 142 / 0.62); backdrop-filter: blur(5px); animation: scrimIn .25s ease; }
.modal-dialog { position: relative; z-index: 1; width: min(540px, 100%); max-height: 92vh; overflow-y: auto; animation: fadeUp .35s ease; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-soft); cursor: pointer;
  display: grid; place-items: center; transition: color .18s ease, border-color .18s ease, transform .25s ease;
}
.modal-close:hover { color: var(--ink); border-color: var(--ink-faint); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; }
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.reg-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 12px; }

/* contact number */
.phone-row { display: flex; align-items: center; gap: 10px; }
.phone-row .phone-code { width: 80px; flex: none; text-align: center; }
.phone-row .phone-num { flex: 1; }
.phone-dash { color: var(--ink-faint); }

/* searchable multi-select */
.multi { position: relative; }
.multi-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--sans); font-size: 16px; color: var(--ink); text-align: left; cursor: pointer;
  padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
  transition: border-color .18s ease;
}
.multi-trigger:hover { border-color: var(--ink-faint); }
.multi.open .multi-trigger { border-color: var(--accent-deep); }
.multi-label { color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-trigger.has-val .multi-label { color: var(--ink); }
.multi-caret { width: 18px; height: 18px; color: var(--ink-faint); flex-shrink: 0; transition: transform .2s ease; }
.multi.open .multi-caret { transform: rotate(180deg); }
.multi-panel { margin-top: 8px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.multi-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.multi-search svg { width: 16px; height: 16px; color: var(--ink-faint); flex-shrink: 0; }
.multi-search input { flex: 1; border: none; outline: none; background: none; font-family: var(--sans); font-size: 15px; color: var(--ink); padding: 0; }
.multi-list { list-style: none; margin: 0; padding: 6px; max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.multi-opt { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 3px; cursor: pointer; font-size: 15px; color: var(--ink); }
.multi-opt:hover { background: var(--paper-2); }
.multi-opt input { width: 17px; height: 17px; accent-color: var(--accent-deep); flex-shrink: 0; margin: 0; }
.multi-empty { padding: 16px; text-align: center; color: var(--ink-faint); font-size: 14px; }

/* verification checkboxes */
.check { display: flex; align-items: flex-start; gap: 11px; margin: 6px 0 16px; font-size: 14.5px; color: var(--ink-soft); cursor: pointer; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-deep); flex-shrink: 0; }
.check em { font-style: normal; color: var(--ink-faint); font-size: 12.5px; display: block; margin-top: 4px; }
.err-check { display: none; margin: -10px 0 14px 29px; }
.err-check.show { display: block; }

/* login / forget password */
.reg-links { display: flex; justify-content: center; gap: 30px; margin-top: 18px; }
.reg-links a { font-family: var(--sans); font-weight: 600; font-size: 14.5px; color: var(--accent-ink); transition: color .18s ease; }
.reg-links a:hover { color: var(--accent-deep); text-decoration: underline; }

/* slim footer */
.footer-grid--slim { grid-template-columns: 1.6fr 1fr 1fr; }
.footer li span { color: oklch(0.72 0.012 140); font-size: 15px; }
@media (max-width: 760px) {
  .footer-grid--slim { grid-template-columns: 1fr; }
  .nav-mail { display: none; }
}

/* keep the single screen fitting within 100vh on short viewports */
@media (max-height: 780px) {
  .hero { padding: 60px var(--gutter); }
  .hero-inner h1 { font-size: clamp(34px, 5.6vw, 62px); }
  .hero-subhead { font-size: clamp(17px, 2.2vw, 24px); margin-top: 14px; }
  .hero-inner .hero-lede { font-size: clamp(15px, 1.7vw, 18px); margin-top: 16px; }
  .hero-inner .hero-actions { margin-top: 26px; }
}
@media (max-height: 600px) {
  .hero { padding: 40px var(--gutter); }
  .hero-inner h1 { font-size: clamp(28px, 4.8vw, 46px); }
  .hero-subhead { font-size: 17px; margin-top: 10px; }
  .hero-inner .hero-lede { font-size: 14px; margin-top: 12px; line-height: 1.5; }
  .hero-inner .hero-actions { margin-top: 20px; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
}
