/* Synthesys Brand Challenge — portal styles
   Palette from the Synthesys identity: charcoal ink, yellow + lime crescents,
   green reserved for money. White background always. */

:root {
  --ink: #2B2A29;
  --ink-soft: #4A4946;
  --yellow: #FFED00;
  --lime: #B0CB1F;
  --green: #00AB4F;
  --paper: #FFFFFF;
  --mist: #F6F7F0;
  --line: #E5E7DC;
  --grey: #77766F;
  --radius: 4px;
  --disp: "Archivo", sans-serif;
  --body: "Atkinson Hyperlegible", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, legend, summary, .btn {
  font-family: var(--disp);
  letter-spacing: -0.01em;
}

::selection { background: var(--yellow); color: var(--ink); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.head-logo img { height: 30px; display: block; }
.head-right { display: flex; align-items: center; gap: 18px; }
.head-deadline {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--disp); font-weight: 700; font-size: 14px;
}
.hd-label { color: var(--grey); font-weight: 600; }
.hd-value { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  text-transform: lowercase;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 26px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-ink::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--yellow);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.btn-ink:hover::after { transform: translateX(0); }
.btn-ink:hover { color: var(--ink); }
.btn-ink > * , .btn-ink { z-index: 1; }
.btn-ink { isolation: isolate; }
.btn-ink::after { z-index: -1; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--yellow); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.bl-short { display: none; }
.btn-big { padding: 16px 40px; font-size: 19px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 28px 72px;
  min-height: 82vh;
  display: flex;
  align-items: center;
}
.hero-arcs {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 52vw);
  height: auto;
  pointer-events: none;
}
.hero-inner { max-width: 980px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }

.hero-eyebrow {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 14px;
  text-transform: lowercase;
  letter-spacing: 0.14em;
  color: var(--grey);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.tick { width: 26px; height: 3px; background: var(--lime); display: inline-block; }

.hero-title {
  font-size: clamp(56px, 10vw, 128px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: lowercase;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ht-word { display: inline-block; }
.hl-yellow { position: relative; white-space: nowrap; }
.hl-sweep {
  position: absolute;
  left: -0.06em; right: -0.06em; bottom: 0.02em;
  height: 0.28em;
  background: var(--yellow);
  z-index: -1;
  transform-origin: left center;
  transform: scaleX(0);
}

.hero-sub { font-size: 20px; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-meta { display: flex; align-items: stretch; gap: 28px; flex-wrap: wrap; }
.prize-badge {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px 22px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--yellow);
}
.pb-label { display: block; font-family: var(--disp); font-weight: 600; font-size: 13px; color: var(--grey); text-transform: lowercase; }
.pb-amount { font-family: var(--disp); font-weight: 900; font-size: 34px; color: var(--green); font-variant-numeric: tabular-nums; }

.countdown { display: flex; gap: 8px; align-items: center; }
.cd-cell {
  min-width: 64px;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 8px;
  background: var(--paper);
}
.cd-num { display: block; font-family: var(--disp); font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; }
.cd-unit { font-size: 12px; color: var(--grey); text-transform: lowercase; font-family: var(--disp); font-weight: 600; }

/* ---------- ribbon ---------- */

.ribbon {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 12px 0;
  border-top: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
}
.ribbon-track {
  display: flex;
  white-space: nowrap;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 16px;
  text-transform: lowercase;
  will-change: transform;
}
.ribbon-track span { flex-shrink: 0; }

/* ---------- sections ---------- */

.section { padding: 84px 28px; }
.section-mist { background: var(--mist); }
.section-inner { max-width: 900px; margin: 0 auto; }

.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.sec-head h2 {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}
.sec-crescent {
  width: 46px; height: 52px; flex: none;
  overflow: visible; /* crescents sweep slightly past the viewBox while spinning */
}
.hero-arcs { overflow: visible; }
.sec-lede { margin-bottom: 26px; font-size: 18px; }

.lead-copy p { font-size: 19px; max-width: 640px; margin-bottom: 14px; }

/* ---------- fair box ---------- */

.fairbox {
  display: flex;
  margin-top: 40px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--yellow);
}
.fairbox-band { width: 14px; flex: none; background: var(--yellow); }
.fairbox-body { padding: 26px 30px; }
.fairbox-body h3 { font-size: 22px; font-weight: 900; text-transform: lowercase; margin-bottom: 12px; }
.fairbox-body p { margin-bottom: 10px; max-width: 620px; }
.fairbox-body p:last-child { margin-bottom: 0; }

/* ---------- architecture diagram ---------- */

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 10px 0 44px;
}
.arch-node {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 24px;
  text-transform: lowercase;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 14px 34px;
  text-align: center;
}
.arch-node .arch-tag {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 13px;
  color: var(--grey);
  text-transform: none;
}
.arch-platform {
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}
.arch-link { width: 3px; height: 30px; background: var(--ink); }
.arch-products { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.arch-chip {
  font-family: var(--disp); font-weight: 700; font-size: 15px;
  border: 2px solid var(--line); border-radius: 99px;
  background: var(--paper);
  padding: 6px 16px;
}

.fact-list { list-style: none; max-width: 720px; }
.fact-list li {
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.fact-list li::before {
  content: "";
  position: absolute; left: 4px; top: 26px;
  width: 12px; height: 12px;
  border-radius: 50% 50% 50% 0;
  background: var(--lime);
  transform: rotate(-45deg);
}

/* ---------- prizes ---------- */

.prize-list { list-style: none; border-top: 2px solid var(--ink); }
.prize-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 6px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.prize-stack { background: var(--mist); padding-left: 40px; }
.pr-num {
  font-family: var(--disp); font-weight: 900; font-size: 26px;
  width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--yellow);
}
.prize-stack .pr-num { background: var(--paper); }
.pr-body { flex: 1; }
.pr-body h3 { font-size: 21px; font-weight: 800; text-transform: lowercase; }
.pr-body p { color: var(--ink-soft); font-size: 16px; }
.pr-note {
  display: inline-block;
  font-family: var(--disp); font-weight: 700; font-size: 12px;
  text-transform: lowercase;
  background: var(--lime); color: var(--ink);
  border-radius: 99px; padding: 2px 12px; margin-top: 6px;
}
.pr-amt {
  font-family: var(--disp); font-weight: 900; font-size: 28px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.prize-total { margin-top: 28px; font-size: 18px; max-width: 660px; }
.prize-total p { margin-bottom: 8px; }
.money { color: var(--green); font-family: var(--disp); font-weight: 900; }

/* ---------- judging ---------- */

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 46px;
}
.test-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px;
  position: relative;
}
.tc-num {
  position: absolute; top: -16px; left: 18px;
  font-family: var(--disp); font-weight: 900; font-size: 18px;
  background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
}
.test-card h3 { font-size: 19px; font-weight: 800; text-transform: lowercase; margin: 8px 0 8px; }
.test-card p { font-size: 15px; color: var(--ink-soft); }

.checks h3 { font-size: 22px; font-weight: 900; text-transform: lowercase; margin-bottom: 16px; }
.check-list { list-style: none; max-width: 700px; margin-bottom: 34px; }
.check-list li {
  padding: 12px 0 12px 40px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: "";
  position: absolute; left: 6px; top: 17px;
  width: 14px; height: 8px;
  border-left: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  transform: rotate(-45deg);
}

.tipbox {
  display: flex; gap: 18px; align-items: flex-start;
  border: 2px dashed var(--lime);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--paper);
  max-width: 700px;
}
.tip-label {
  font-family: var(--disp); font-weight: 900; font-size: 14px;
  text-transform: lowercase;
  background: var(--lime); color: var(--ink);
  padding: 4px 14px; border-radius: 99px;
  flex: none;
}

/* ---------- categories ---------- */

.cat-list { display: flex; flex-direction: column; gap: 12px; }
.cat {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.cat summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 14px;
  font-size: 20px; font-weight: 800; text-transform: lowercase;
  padding: 16px 22px;
  user-select: none;
}
.cat summary::-webkit-details-marker { display: none; }
.cat summary::after {
  content: "+";
  margin-left: auto;
  font-weight: 900; font-size: 24px;
  transition: transform 0.2s ease;
}
.cat[open] summary::after { transform: rotate(45deg); }
.cat[open] summary { background: var(--mist); }
.cat p { padding: 0 22px 18px; max-width: 720px; color: var(--ink-soft); }
.cat p:first-of-type { padding-top: 16px; }
.cat-n {
  font-family: var(--disp); font-weight: 900; font-size: 16px;
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--yellow);
}
.cat-cap {
  font-family: var(--body); font-weight: 400; font-size: 13px;
  color: var(--grey); text-transform: none;
  margin-left: 4px;
}

/* ---------- rules ---------- */

.rule-list { list-style: none; counter-reset: rule; max-width: 760px; }
.rule-list li {
  counter-increment: rule;
  padding: 18px 0 18px 56px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.rule-list li::before {
  content: counter(rule);
  position: absolute; left: 0; top: 16px;
  font-family: var(--disp); font-weight: 900; font-size: 17px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--paper);
}
.rule-own { background: var(--paper); outline: 2px solid var(--ink); outline-offset: -2px; border-radius: var(--radius); padding-right: 18px; box-shadow: 5px 5px 0 var(--yellow); margin: 10px 0; border-bottom: none; }
.rule-own::before { background: var(--yellow); }

/* ---------- timeline ---------- */

.timeline { position: relative; margin: 30px 0 10px; }
.tl-line {
  position: absolute; top: 10px; left: 4%; right: 4%;
  height: 4px; background: var(--line); border-radius: 2px;
}
.tl-line-fill { height: 100%; width: 0; background: var(--lime); border-radius: 2px; }
.tl-nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tl-node { text-align: center; padding-top: 0; }
.tl-dot {
  display: block; margin: 0 auto 14px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--paper);
  position: relative; z-index: 2;
}
.tl-dot-hot { background: var(--yellow); box-shadow: 0 0 0 6px rgba(255, 237, 0, 0.35); }
.tl-node h3 { font-size: 17px; font-weight: 800; text-transform: lowercase; }
.tl-node p { font-size: 14px; color: var(--grey); }
.tl-note { margin-top: 26px; text-align: center; color: var(--grey); }

/* ---------- form ---------- */

.section-form { background: var(--mist); border-top: 3px solid var(--ink); }

.authbar {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px 18px;
  margin-bottom: 18px;
  font-size: 15px;
}
.auth-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grey); flex: none; }
.auth-dot.on { background: var(--green); }

.form-hint { max-width: 640px; margin-bottom: 30px; color: var(--ink-soft); }

.fcat {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 26px;
  margin-bottom: 26px;
  min-width: 0; /* fieldsets default to min-content and overflow small screens */
}
.fcat legend {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 800; text-transform: lowercase;
  padding: 0 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 99px;
  padding: 6px 18px;
}

.fgrid { display: grid; gap: 18px; }
.fgrid-2col { grid-template-columns: 1fr 1.6fr; }

/* grid/flex min-width:auto trap — without these, intrinsic input sizes
   force rows wider than their container on narrow screens */
.fgrid, .nb-grid, .nb-row, .ffield { min-width: 0; }
.ffield input, .ffield textarea { width: 100%; min-width: 0; }

.ffield {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--disp); font-weight: 700; font-size: 14px;
  text-transform: lowercase;
}
.ffield input, .ffield textarea {
  font-family: var(--body);
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  resize: vertical;
}
.ffield input:focus, .ffield textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--lime);
}
.ffield input::placeholder, .ffield textarea::placeholder { color: #A9A8A0; }

.name-block {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.name-block:last-child { margin-bottom: 0; }
.nb-head {
  font-family: var(--disp); font-weight: 900; font-size: 16px;
  text-transform: lowercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.nb-head .nb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.nb-grid { display: grid; gap: 14px; }
.nb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-pick { display: flex; flex-direction: column; gap: 8px; font-family: var(--body); }
.pp-label { font-size: 13px; color: var(--grey); }
.pp-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-btn {
  font-family: var(--disp); font-weight: 700; font-size: 13px;
  text-transform: lowercase;
  border: 2px solid var(--ink); border-radius: 99px;
  padding: 7px 16px;
  cursor: pointer;
  background: var(--paper);
  transition: background-color 0.15s ease;
}
.pp-btn:hover { background: var(--yellow); }
.pp-cam { display: none; } /* camera button only where there is a camera */
@media (pointer: coarse) { .pp-cam { display: inline-block; } }
.pp-file { font-size: 13px; color: var(--grey); }
.pp-preview { position: relative; display: inline-block; width: 72px; }
.pp-preview[hidden] { display: none !important; } /* class display beats the UA [hidden] rule otherwise */
.pp-preview img {
  width: 72px; height: 72px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  display: block;
  background: var(--mist);
}
.pp-x {
  position: absolute; top: -9px; right: -9px;
  width: 24px; height: 24px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pp-x:hover { background: #C0392B; }

.consent {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 26px;
  cursor: pointer;
}
.consent input { width: 22px; height: 22px; accent-color: var(--green); flex: none; margin-top: 2px; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.draft-pill {
  font-family: var(--disp); font-weight: 700; font-size: 13px;
  text-transform: lowercase;
  background: var(--paper);
  border: 2px solid var(--lime);
  color: var(--ink);
  border-radius: 99px;
  padding: 6px 16px;
}
.form-status { margin-top: 16px; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #C0392B; }

/* ---------- teams ---------- */

.teambox {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: 5px 5px 0 var(--lime);
}
.teambox h3 { font-size: 19px; font-weight: 900; text-transform: lowercase; margin-bottom: 6px; }
.tb-split { margin-bottom: 12px; }
.tb-muted { color: var(--grey); font-size: 15px; }
.tb-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tb-join { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.tb-join input[type="text"] {
  font-family: var(--disp); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.12em;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 10px 12px; width: 180px;
}
.tb-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 12px; color: var(--ink-soft); }
.tb-consent input { width: 18px; height: 18px; accent-color: var(--green); flex: none; margin-top: 2px; }
.tb-code {
  font-family: var(--disp); font-weight: 900; font-size: 32px;
  letter-spacing: 0.18em;
  background: var(--yellow);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 6px 18px;
  display: inline-block;
  margin: 8px 0;
  user-select: all;
}
.tb-codewrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tb-members { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.tb-line { margin-top: 8px; font-size: 15px; }

.readonly-box {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.readonly-box h3 { font-size: 18px; font-weight: 800; text-transform: lowercase; margin-bottom: 10px; }
.ro-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0; background: var(--mist); }
.ro-group h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-bottom: 4px; }
.ro-q { display: block; font-size: 12px; color: var(--grey); margin-top: 8px; }
.ro-v { font-size: 15px; white-space: pre-wrap; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 2px solid var(--ink);
  padding: 44px 28px 56px;
  text-align: center;
}
.foot-logo { height: 34px; margin-bottom: 16px; }
.foot-small { color: var(--grey); font-size: 13px; max-width: 560px; margin: 8px auto 0; }

/* ---------- reveals (GSAP sets final state; keep visible if JS fails) ---------- */

.reveal, .reveal-load { opacity: 1; }
.js .reveal, .js .reveal-load { opacity: 0; }

/* ---------- responsive ---------- */

/* short viewports (laptops): compress the hero so everything
   through the countdown fits on the first screen */
@media (max-height: 940px) {
  .hero { min-height: auto; padding: 48px 28px 56px; }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero-title { font-size: clamp(48px, 8vw, 96px); margin-bottom: 22px; }
  .hero-sub { font-size: 18px; margin-bottom: 24px; }
  .hero-cta { margin-bottom: 30px; }
}

@media (max-height: 760px) {
  .hero { padding: 30px 28px 40px; }
  .hero-title { font-size: clamp(40px, 6.5vw, 72px); }
  .hero-sub { margin-bottom: 18px; }
  .hero-cta { margin-bottom: 22px; }
  .pb-amount { font-size: 28px; }
  .cd-num { font-size: 24px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  /* header: slim, keep the countdown as a chip, short button label */
  .site-head { padding: 10px 14px; gap: 10px; }
  .head-logo img { height: 24px; }
  .head-right { gap: 10px; }
  .head-deadline { display: flex; }
  .hd-label { display: none; }
  .hd-value { font-size: 13px; border: 2px solid var(--line); border-radius: 99px; padding: 3px 10px; }
  .bl-long { display: none; }
  .bl-short { display: inline; }

  /* hero: own composition, not shrunken desktop */
  .hero { padding: 40px 20px 44px; min-height: auto; }
  .hero-arcs { opacity: 0.14; right: -34vw; width: 82vw; top: 20%; }
  .hero-eyebrow { font-size: 12px; margin-bottom: 12px; }
  .hero-title { font-size: clamp(44px, 13vw, 68px); margin-bottom: 18px; }
  .hero-sub { font-size: 17px; margin-bottom: 24px; }
  .hero-cta { gap: 10px; margin-bottom: 28px; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; padding: 15px 20px; }
  .hero-cta .btn-ghost { background: var(--paper); }
  .hero-meta { flex-direction: column; align-items: stretch; gap: 12px; }
  .prize-badge { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px; }
  .pb-label { font-size: 14px; }
  .pb-amount { font-size: 30px; }
  .countdown { width: 100%; gap: 6px; }
  .cd-cell { flex: 1; min-width: 0; padding: 8px 2px; }
  .cd-num { font-size: 21px; }
  .cd-unit { font-size: 10px; }

  .ribbon { padding: 10px 0; }
  .ribbon-track { font-size: 13px; }

  /* sections */
  .section { padding: 48px 18px; }
  .sec-head { gap: 12px; margin-bottom: 26px; }
  .sec-head h2 { font-size: 26px; }
  .sec-crescent { width: 32px; height: 36px; }
  .lead-copy p { font-size: 17px; }

  .fairbox { flex-direction: column; box-shadow: 4px 4px 0 var(--yellow); }
  .fairbox-band { width: 100%; height: 10px; }
  .fairbox-body { padding: 18px 16px; }

  .arch-node { font-size: 18px; padding: 12px 20px; }
  .arch-chip { font-size: 13px; padding: 5px 12px; }
  .fact-list li { padding: 14px 0 14px 26px; }
  .fact-list li::before { left: 0; top: 24px; }

  /* prizes: cards, not table rows */
  .prize-list { border-top: none; }
  .prize-row { flex-wrap: wrap; gap: 10px 12px; padding: 16px; border: 2px solid var(--ink); border-radius: var(--radius); margin-bottom: 12px; }
  .prize-stack { margin-left: 22px; padding-left: 16px; }
  .pr-num { width: 36px; height: 36px; font-size: 18px; }
  .pr-body { min-width: 0; }
  .pr-body h3 { font-size: 18px; }
  .pr-body p { font-size: 14px; }
  .pr-amt { width: 100%; text-align: right; font-size: 26px; border-top: 1px dashed var(--line); padding-top: 8px; }
  .prize-total { font-size: 16px; }

  /* judging */
  .test-grid { gap: 24px; }
  .test-card { padding: 18px 16px; }
  .checks h3 { font-size: 19px; }
  .check-list li { padding: 12px 0 12px 30px; }
  .check-list li::before { left: 2px; }
  .tipbox { flex-direction: column; gap: 10px; padding: 16px; }

  /* categories */
  .cat summary { font-size: 16px; padding: 14px; flex-wrap: wrap; gap: 10px; }
  .cat summary .cat-cap { flex-basis: 100%; margin-left: 40px; }
  .cat p { padding: 0 14px 14px; font-size: 15px; }
  .cat-n { width: 30px; height: 30px; font-size: 14px; }

  /* rules */
  .rule-list li { padding: 16px 0 16px 44px; font-size: 15px; }
  .rule-list li::before { width: 30px; height: 30px; font-size: 13px; top: 15px; }
  .rule-own { padding-right: 12px; box-shadow: 4px 4px 0 var(--yellow); }

  /* dates: vertical timeline */
  .tl-line { display: none; }
  .tl-nodes { grid-template-columns: 1fr; gap: 18px; }
  .tl-node { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; text-align: left; }
  .tl-dot { grid-row: 1 / span 2; width: 18px; height: 18px; border-width: 3px; margin: 3px 0 0; }
  .tl-node h3 { grid-column: 2; font-size: 16px; }
  .tl-node p { grid-column: 2; font-size: 14px; }
  .tl-note { text-align: left; font-size: 14px; }

  /* form */
  .authbar { flex-wrap: wrap; font-size: 14px; }
  .form-hint { font-size: 15px; }
  .fcat { padding: 16px 12px; margin-bottom: 20px; }
  .fcat legend { flex-wrap: wrap; max-width: 100%; font-size: 15px; padding: 5px 14px; }
  .fgrid-2col, .nb-row { grid-template-columns: 1fr; }
  .name-block { padding: 14px 10px; }
  .nb-head { font-size: 14px; }
  .ffield { font-size: 13px; }
  .ffield input, .ffield textarea { padding: 12px; font-size: 16px; }
  .consent { padding: 14px; font-size: 15px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn-big { width: 100%; text-align: center; padding: 16px; font-size: 18px; }
  .draft-pill { text-align: center; }

  .site-foot { padding: 36px 20px 44px; }
  .foot-logo { height: 28px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 15vw; }
  .countdown { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-load { opacity: 1; }
}
