/* =========================================================================
   HFS Robotics — FTC team #21770
   One motif: the dorsal fin from the HFS shark logo. It frames every photo
   (one swept corner), shapes the buttons (one sharp corner), marks the lists,
   and rises at full scale in the hero, the sponsor section and the footer.
   Colours are the team's own: logo navy, white, and gold for the action.
   ========================================================================= */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext-wdth.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("fonts/noto-sans-hebrew-wdth.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62.5% 100%; font-style: normal; font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f1f2f6;
  --ink: #000144;            /* the navy of the HFS logo */
  --muted: #474b6b;
  --accent: #f5b301;         /* team gold: the action, and the fin at full scale */
  --accent-strong: #ffc83a;
  --accent-ink: #000144;
  --navy-2: #0c1474;         /* one tone step up from navy */
  --on-navy: #ffffff;
  --on-navy-muted: #c9cce9;
  --gold-2: #ffd770;         /* one tone step up from gold, for fields on the coupon */

  --font: "Archivo", "Noto Sans Hebrew", "Arial Hebrew", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1rem + 0.95vw, 2rem);
  --step-head: clamp(2.75rem, 1.2rem + 5vw, 6rem);
  --step-display: clamp(4.75rem, 0.6rem + 10.2vw, 10.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --section: clamp(7rem, 12vw, 13rem);
  --bar-h: 4.5rem;
  --fin-r: 44% 38%;          /* the swept leading edge of the fin, used on photos */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5; font-stretch: 100%;
  font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
address { font-style: normal; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.nums { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; inset-inline-start: var(--margin); top: -4rem; z-index: 50; background: var(--ink); color: var(--on-navy); padding: 0.75rem 1rem; text-decoration: none; }
.skip:focus { top: 0.75rem; }

/* ---------- type ---------- */
.head, .hero__title, .coupon__title, .mark, .tile__burn, .tile__name, .bar__name, .sheet__links a, .stat__num {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em;
}
.head { font-size: var(--step-head); line-height: 0.88; text-wrap: balance; hyphens: none; }
.sub { font-size: var(--step-lead); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
:lang(he) .head, :lang(he) .coupon__title, :lang(he) .mark { line-height: 0.98; letter-spacing: 0; }
:lang(he) .sub { letter-spacing: 0; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.75rem;
  border-radius: 999px; border-start-start-radius: 0;    /* the fin's tip */
  font-weight: 700; font-size: var(--step-body); line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.96); }
.btn--gold { background: var(--accent); color: var(--accent-ink); }
.btn--light { background: var(--on-navy); color: var(--ink); }
.btn--navy { background: var(--ink); color: var(--on-navy); }
.btn--compact { min-height: 2.75rem; padding: 0 1.25rem; font-size: var(--step-small); }
.link {
  font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.09em;
  text-decoration-color: currentColor; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link--light { color: var(--on-navy); }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--accent-strong); }
  .btn--light:hover { background: var(--accent); }
  .btn--navy:hover { background: var(--navy-2); }
  .link:hover { text-decoration-color: var(--accent); }
}

/* the fin, as a list bullet */
.bullet { width: 0.9em; height: 0.78em; flex: none; fill: var(--accent); }
[dir="rtl"] .bullet, [dir="rtl"] .hero__fin, [dir="rtl"] .sponsor__fin { transform: scaleX(-1); }

/* the fin's swept leading edge, on every photograph */
.fin-corner { border-start-end-radius: var(--fin-r); overflow: hidden; }

/* ---------- navigation ---------- */
.bar {
  display: flex; align-items: center; gap: 2rem; height: var(--bar-h);
  padding-inline: var(--margin); background: var(--bg);
}
.bar__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: none; }
.bar__logo { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; background: var(--ink); }
.bar__name { font-size: var(--step-body); line-height: 1; letter-spacing: 0.01em; }
.bar__links { display: flex; gap: 1.75rem; margin-inline-start: auto; }
.bar__links a { font-weight: 600; padding-block: 0.4rem; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.4em; transition: text-decoration-color var(--t-hover) ease; }
.bar__links a:hover, .bar__links a:focus-visible, .bar__links a[aria-current="page"] { text-decoration-color: var(--accent); }
.bar__end { display: flex; align-items: center; gap: 1.25rem; }
.lang { display: inline-flex; gap: 0.55rem; font-weight: 700; font-size: var(--step-small); padding: 0.6rem 0.2rem; }
.lang [data-lang-label] { color: var(--muted); transition: color var(--t-hover) ease; }
.lang.is-en [data-lang-label="en"], .lang.is-he [data-lang-label="he"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: var(--accent); }
.bar__menu { display: none; font-weight: 700; padding: 0.6rem 0.2rem; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }

.sheet {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--on-navy);
  display: flex; flex-direction: column; padding: 0 var(--margin) 2rem; overflow-y: auto;
}
.sheet[hidden] { display: none; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; height: var(--bar-h); }
.sheet__top .bar__menu { display: inline-block; color: var(--on-navy); }
.sheet__links { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 1.5rem; }
.sheet__links a { font-size: clamp(2.75rem, 12vw, 4rem); line-height: 1.02; text-decoration: none; }
.sheet__links a:active { color: var(--accent); }
.sheet__cta { margin-top: 2rem; align-self: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  .sheet:not([hidden]) { animation: sheet-in var(--t-ui) var(--ease-out); }
  .sheet:not([hidden]) .sheet__links a { animation: rise-in 520ms var(--ease-out) both; }
  .sheet__links a:nth-child(2) { animation-delay: 30ms; } .sheet__links a:nth-child(3) { animation-delay: 60ms; }
  .sheet__links a:nth-child(4) { animation-delay: 90ms; } .sheet__links a:nth-child(5) { animation-delay: 120ms; }
  .sheet__links a:nth-child(6) { animation-delay: 150ms; } .sheet__links a:nth-child(7) { animation-delay: 180ms; }
  .sheet__links a:nth-child(8) { animation-delay: 210ms; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 0.75rem;
  padding: 0 var(--margin);
  min-height: calc(100svh - var(--bar-h) - var(--margin));
}
.hero__card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--on-navy);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: flex-start;
  min-height: 34rem;
}
.hero__title { font-size: var(--step-display); line-height: 0.84; margin-inline-start: -0.035em; }
.hero__title .line { display: block; }
.hero__line { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; margin-top: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; position: relative; z-index: 2; }
.hero__fin {
  position: absolute; z-index: 1; fill: var(--accent);
  width: 56%; aspect-ratio: 1; height: auto;
  inset-inline-end: -12%; bottom: -28%;
}
.hero__photo { position: relative; background: var(--surface); min-height: 100%; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

/* ---------- about ---------- */
.about { padding: var(--section) var(--margin) 0; }
.about__panel {
  display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: var(--gutter);
  background: var(--ink); color: var(--on-navy);
  padding: clamp(2.25rem, 4.5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem) 0;
  overflow: hidden; min-height: min(100svh, 62rem);
}
.about__lead { display: flex; flex-direction: column; }
.about__title { max-width: 9ch; }
.about__photo {
  position: relative; display: block; width: min(38vw, 34rem); aspect-ratio: 4 / 5;
  margin-top: clamp(2.5rem, 6vw, 5rem); margin-bottom: calc(min(38vw, 34rem) * -0.25);
  background: var(--navy-2); cursor: zoom-in;
}
.about__text { padding-top: clamp(0.5rem, 6vw, 6.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); display: flex; flex-direction: column; gap: clamp(2.5rem, 4.4vw, 4rem); align-items: flex-start; }
.about__block { max-width: 34rem; }
.about__block .sub { margin-bottom: 0.9rem; }
.about__block p { color: var(--on-navy); }
.stats { display: flex; flex-wrap: wrap; gap: 1.25rem clamp(1.5rem, 3vw, 2.75rem); margin: 0; }
.stat { display: flex; flex-direction: column; gap: 0.5rem; max-width: 8.5rem; }
.stat__num { font-size: var(--step-head); line-height: 0.85; color: var(--accent); }
.stat dd { margin: 0; font-weight: 600; line-height: 1.3; }

/* crossfading stacks (about photo, community frame) */
.fade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.fade.is-on { opacity: 1; }

/* ---------- robots: staggered tiles, empty cells ---------- */
.robots { padding: var(--section) var(--margin) 0; }
.robots__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  grid-template-areas: "decode decode head deep" ". center power .";
  align-items: start;
}
.robots__head { grid-area: head; padding-top: 0.25rem; }
.robots__head p { margin-top: 1.25rem; max-width: 24ch; }
.tile--decode { grid-area: decode; }
.tile--deep { grid-area: deep; }
.tile--center { grid-area: center; }
.tile--power { grid-area: power; }
.tile { display: block; width: 100%; color: inherit; cursor: zoom-in; }
.tile__img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface); }
.tile--wide .tile__img { aspect-ratio: 3 / 2; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft); }
.tile__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.9rem; }
.tile__name { font-size: var(--step-lead); line-height: 1; }
.tile__meta { font-size: var(--step-small); font-weight: 600; color: var(--muted); white-space: nowrap; }
.tile__count, .tile__desc { display: block; margin-top: 0.35rem; color: var(--muted); font-size: var(--step-small); }
.tile__desc { font-size: var(--step-body); color: var(--ink); max-width: 40ch; }
.tile__burn {
  position: absolute; inset-inline-start: 0; top: 0; padding: clamp(1rem, 2vw, 1.5rem);
  font-size: var(--step-head); line-height: 0.85; color: #fff;
}
.tile--decode .tile__img::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 55%; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 1, 40, 0.55), rgba(0, 1, 40, 0)); /* taste-skill-ignore: neutral scrim under the burned-in title */
}
.tile__burn, .tile__pill { z-index: 1; }
.tile__pill {
  position: absolute; inset-inline-start: clamp(1rem, 2vw, 1.5rem); bottom: clamp(1rem, 2vw, 1.5rem);
  background: var(--bg); color: var(--ink); font-weight: 700; font-size: var(--step-small);
  padding: 0.7rem 1.1rem; border-radius: 999px; border-start-start-radius: 0;
  transition: background-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__img img { transform: scale(1.035); }
  .tile:hover .tile__pill { background: var(--accent); }
}

/* ---------- awards: large marks on tiles ---------- */
.awards { margin-top: var(--section); padding: clamp(4rem, 8vw, 7rem) var(--margin); background: var(--surface); }
.board {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem;
  grid-template-areas: "head head award award" "photo photo champs champs";
}
.board__tile { padding: clamp(1.5rem, 3vw, 2.75rem); min-height: clamp(20rem, 30vw, 28rem); display: flex; flex-direction: column; }
.board__tile--head { grid-area: head; background: var(--accent); color: var(--accent-ink); justify-content: space-between; gap: 2rem; }
.board__tile--head .head { max-width: 10ch; }
.board__tile--head p { font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; }
.board__tile--award { grid-area: award; background: var(--bg); }
.mark { font-size: var(--step-head); line-height: 0.88; }
.board__where { font-weight: 700; margin-top: 1rem; }
.board__tile--award p:last-child { margin-top: auto; padding-top: 1.5rem; }
.board__tile--photo { grid-area: photo; padding: 0; position: relative; background: var(--bg); }
.board__tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board__tile--champs { grid-area: champs; background: var(--ink); color: var(--on-navy); justify-content: flex-end; }
.mark--num { font-size: var(--step-display); line-height: 0.8; color: var(--accent); }
.board__label { font-size: var(--step-lead); line-height: 1.25; font-weight: 700; margin-top: 1rem; max-width: 18ch; }

/* ---------- band: the name and the coast ---------- */
.band {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1.75rem, 5vw, 5rem);
  background: var(--accent); color: var(--accent-ink);
  padding: clamp(3.5rem, 8vw, 7rem) var(--margin);
}
.band__logo { width: clamp(8rem, 18vw, 16rem); aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--ink); }
.band__text { font-size: var(--step-lead); line-height: 1.25; font-weight: 700; max-width: 30ch; letter-spacing: -0.01em; }

/* ---------- community: one frame, its picture changes ---------- */
.community {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
  padding: var(--section) var(--margin);
}
.community__head { grid-column: 1 / span 6; grid-row: 1; }
.community__text { grid-column: 1 / span 6; grid-row: 2; }
.events { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); }
.event .sub { display: flex; align-items: baseline; gap: 0.6rem; }
.event p { margin-top: 0.75rem; }
.event .link { margin-top: 0.9rem; display: inline-block; padding-block: 0.3rem; }
.event__fll { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; text-decoration: none; }
.event__fll img { width: 6rem; aspect-ratio: 3 / 4; object-fit: cover; border-start-end-radius: var(--fin-r); background: var(--surface); }
.sets__title { margin-top: clamp(3.5rem, 6vw, 5rem); }
.sets { margin-top: 1rem; display: grid; gap: 0.35rem; }
.sets__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%;
  background: var(--surface); padding: 1rem 1.25rem; font-weight: 700;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.sets__row:active { transform: scale(0.99); }
.sets__n { font-weight: 500; color: var(--muted); font-size: var(--step-small); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .sets__row:hover { background: var(--gold-2); } }
.frame { grid-column: 8 / span 5; grid-row: 1 / span 2; position: sticky; top: 6vh; align-self: start; }
.frame__stack { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--surface); cursor: pointer; }
.frame__cap { margin-top: 1rem; font-size: var(--step-small); font-weight: 600; color: var(--muted); min-height: 1.5em; }

/* ---------- sponsor: the fin returns ---------- */
.sponsor {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
  background: var(--ink); color: var(--on-navy);
  padding: var(--section) var(--margin); min-height: 90svh; align-items: center;
}
.sponsor__fin { position: absolute; z-index: -1; fill: var(--accent); width: min(58vw, 54rem); aspect-ratio: 1; height: auto; inset-inline-start: 3vw; bottom: 0; margin-bottom: calc(min(58vw, 54rem) * -0.3); }
.sponsor__text { grid-column: 8 / span 5; }
.sponsor__intro { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.3; max-width: 28ch; }
.perks { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 1.6rem; }
.perk { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: baseline; }
.perk .bullet { width: 1.1rem; height: 0.95rem; }
.perk .sub { font-size: var(--step-body); font-weight: 700; }
.perk p { color: var(--on-navy-muted); margin-top: 0.25rem; }
.sponsor .btn { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- sponsor form: a coupon to clip out ---------- */
.coupon-wrap { padding: var(--section) var(--margin); overflow-x: clip; }
.coupon {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: min(100%, 76rem); margin-inline: auto;
  background: var(--accent); color: var(--accent-ink);
}
.coupon__notch { position: absolute; z-index: 1; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--bg); inset-inline-start: 50%; translate: -50% 0; }
[dir="rtl"] .coupon__notch { translate: 50% 0; }
.coupon__notch--a { top: -1.375rem; }
.coupon__notch--b { bottom: -1.375rem; }
.coupon__notch--c, .coupon__notch--d { display: none; }
.coupon__stub { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.coupon__title { font-size: min(var(--step-head), 7vw); line-height: 0.88; max-width: 12ch; }
.coupon__stub p { font-weight: 600; max-width: 30ch; }
.coupon__body {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 0.8rem;
  border-inline-start: 0.35rem dotted var(--bg);
}
.field { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 700; font-size: var(--step-small); }
.field input, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem; border: 0; border-radius: 0;
  background: var(--gold-2); color: var(--ink); font-weight: 500; font-size: max(1rem, var(--step-body));
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 0; background: var(--bg); }
.coupon__submit {
  margin-top: 0.6rem; min-height: 3.5rem; width: 100%; background: var(--ink); color: var(--on-navy);
  border-radius: 999px; border-start-start-radius: 0; font-weight: 700; text-align: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.coupon__submit:active { transform: scale(0.98); }
.coupon__submit:disabled { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .coupon__submit:hover { background: var(--navy-2); } }
.form-status { min-height: 1.5em; font-weight: 700; }
.form-status.err { color: #7a0012; }

/* the team shirt, drawn flat in the team's colours */
.shirt { width: min(100%, 19rem); margin-top: auto; overflow: visible; }
.shirt__body { fill: var(--ink); }
.shirt__shade { fill: #00012f; }
.shirt__collar { fill: #000123; }
.shirt__hem { fill: var(--accent); }
.shirt__tag { fill: #ffffff; }
.shirt__fin { fill: var(--accent); }
.shirt text { font-family: var(--font); font-stretch: 62%; font-weight: 800; text-transform: uppercase; }
.shirt__team { fill: var(--accent); font-size: 30px; letter-spacing: 0.04em; }
.shirt__num { fill: #ffffff; font-size: 104px; }
.shirt__label { fill: var(--on-navy-muted); font-size: 18px; letter-spacing: 0.08em; font-stretch: 100%; font-weight: 700; }
.shirt__sponsor { fill: #ffffff; font-size: 44px; }
.shirt__sponsor.is-empty { fill: #8f94c4; }
@media (prefers-reduced-motion: no-preference) {
  .shirt__sponsor.is-typed { animation: print 260ms var(--ease-out); }
}
@keyframes print { from { opacity: 0.35; } to { opacity: 1; } }

/* ---------- footer: the mark, built large ---------- */
.footer { background: var(--ink); color: var(--on-navy); padding: clamp(4rem, 8vw, 7rem) var(--margin) 2rem; }
.mark-blocks { width: 100%; height: auto; direction: ltr; }
.mb__w { fill: #ffffff; }
.mb__g { fill: var(--accent); }
.mb__t { fill: var(--ink); font-family: "Archivo", sans-serif; font-stretch: 62%; font-weight: 800; text-anchor: middle; }
.mb__fin { fill: var(--ink); }
.footer__tagline { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.3; font-weight: 700; max-width: 32ch; }
.footer__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.footer__col { grid-column: span 2; display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.footer__col a { text-decoration: none; padding-block: 0.15rem; color: var(--on-navy); transition: color var(--t-hover) ease; }
.footer__col a:hover { color: var(--accent); }
.footer__contact { grid-column: 9 / span 4; }
.footer__h { font-size: var(--step-body); font-weight: 700; color: var(--accent); margin-bottom: 0.35rem; }
.footer__mail { font-size: var(--step-lead); font-weight: 700; line-height: 1.2; }
.social-handle { color: var(--on-navy-muted); }
.social-handle strong { color: var(--on-navy); direction: ltr; unicode-bidi: isolate; }
.footer__last { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: clamp(3.5rem, 7vw, 5.5rem); color: var(--on-navy-muted); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 1, 40, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 4.5rem 1rem 1.5rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
  color: var(--on-navy);
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--t-ui) var(--ease-out), visibility 0s; }
.lightbox img { max-width: min(92vw, 1400px); max-height: calc(100dvh - 9rem); object-fit: contain; transition: opacity var(--t-ui) ease; user-select: none; background: transparent; }
.lightbox img.loading { opacity: 0.3; }
.lightbox-caption { display: flex; gap: 1rem; align-items: baseline; font-size: var(--step-small); text-align: center; min-height: 1.5em; max-width: none; }
.lb-count { color: var(--accent); font-weight: 700; }
.lb-btn {
  position: absolute; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--on-navy); color: var(--ink); font-size: var(--step-lead); line-height: 1;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.lb-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: var(--accent); } }
.lightbox-close { top: 1rem; inset-inline-end: 1rem; }
.lightbox-nav { top: 50%; translate: 0 -50%; }
.lightbox-nav.prev { left: 1.25rem; }
.lightbox-nav.next { right: 1.25rem; }
.lightbox.single .lightbox-nav { display: none; }

/* ---------- FLL page ---------- */
.fll-points { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.fll-points__head { grid-column: 1 / span 4; }
.fll-points__list { grid-column: 6 / span 7; display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.fll-point { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: baseline; font-size: var(--step-lead); line-height: 1.2; font-weight: 700; max-width: 26ch; }
.fll-point:nth-child(2) { margin-inline-start: clamp(0rem, 6vw, 6rem); }
.fll-point:nth-child(3) { margin-inline-start: clamp(0rem, 12vw, 12rem); }
.fll-points__sub, .gallery__lead { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.25; font-weight: 700; max-width: 22ch; }
.fll-point .bullet { width: 1.6rem; height: 1.4rem; fill: var(--accent); }
.gallery-sec { padding: var(--section) var(--margin) 0; }
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  grid-template-areas: "g1 g1 head g2" ". g3 g4 ." "g5 . g6 g6";
  align-items: start;
}
.gallery__head { grid-area: head; }
.gallery__head p { margin-top: 1.25rem; max-width: 26ch; }
.gallery__meta { margin-top: 1.25rem; font-size: var(--step-small); font-weight: 700; color: var(--muted); }
.gallery .tile:nth-of-type(1) { grid-area: g1; }
.gallery .tile:nth-of-type(2) { grid-area: g2; }
.gallery .tile:nth-of-type(3) { grid-area: g3; }
.gallery .tile:nth-of-type(4) { grid-area: g4; }
.gallery .tile:nth-of-type(5) { grid-area: g5; }
.gallery .tile:nth-of-type(6) { grid-area: g6; }
.gallery .tile__cap { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.fll-cta {
  margin-top: var(--section); background: var(--accent); color: var(--accent-ink);
  padding: clamp(3.5rem, 8vw, 7rem) var(--margin);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end;
}
.fll-cta__text { grid-column: 1 / span 7; }
.fll-cta__text .statement { font-size: var(--step-lead); line-height: 1.25; font-weight: 700; max-width: 28ch; }
.fll-cta__text p + p { margin-top: 1rem; }
.fll-cta__act { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines .line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
  .js .lines [data-line] { display: block; transform: translateY(105%); animation: line-up 950ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 120ms + 120ms); }
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: rise-in var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .js .hero__fin { transform: translateY(42%); animation: surface 1600ms var(--ease-soft) 520ms forwards; }
  [dir="rtl"].js .hero__fin { transform: translateY(42%) scaleX(-1); animation-name: surface-rtl; }
  .js .hero__photo img { transform: scale(1.08); animation: settle 2600ms var(--ease-soft) forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .sponsor__fin { transform: translateY(18%); transition: transform 1600ms var(--ease-soft); }
  [dir="rtl"].js .sponsor__fin { transform: translateY(18%) scaleX(-1); }
  .js .sponsor.is-in .sponsor__fin { transform: none; }
  [dir="rtl"].js .sponsor.is-in .sponsor__fin { transform: scaleX(-1); }
  @supports (animation-timeline: view()) {
    .hero__photo { overflow: hidden; }
    .about__photo img.is-on { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes surface { to { transform: none; } }
@keyframes surface-rtl { to { transform: scaleX(-1); } }
@keyframes settle { to { transform: none; } }
@keyframes drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .fade { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .bar__links { gap: 1.25rem; }
  .bar__cta { display: none; }
  .about__panel { grid-template-columns: 1fr 1fr; }
  .sponsor__text { grid-column: 7 / span 6; }
  .footer__col { grid-column: span 3; }
  .footer__contact { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --bar-h: 4rem; }
  .bar { gap: 1rem; }
  .bar__links { display: none; }
  .bar__end { margin-inline-start: auto; gap: 1rem; }
  .bar__menu { display: inline-block; }

  .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__photo { order: -1; height: 48svh; min-height: 18rem; }
  .hero__card { margin: -1.5rem 0.75rem 0; min-height: 0; padding: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: clamp(11rem, 44vw, 17rem); }
  .hero__title { font-size: clamp(3.75rem, 19vw, 8rem); }
  .hero__fin { width: 56%; bottom: -16%; inset-inline-end: -6%; }

  .about__panel { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .about__lead { display: contents; }
  .about__title { order: 0; }
  .about__text { order: 1; padding-top: 2rem; padding-bottom: 3rem; }
  .about__photo { order: 2; width: 86%; margin: 0 auto calc(86vw * -0.31); }

  .tile:not(.tile--wide) .tile__cap { flex-direction: column; gap: 0.3rem; }
  .robots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "head head" "decode decode" "deep ." ". center" "power ."; gap: 2.5rem 0.625rem; }

  .board { grid-template-columns: 1fr; grid-template-areas: "head" "award" "photo" "champs"; gap: 0.375rem; }
  .board__tile { min-height: 0; }
  .board__tile--head { min-height: 16rem; }
  .board__tile--photo { aspect-ratio: 4 / 3; }

  .band { grid-template-columns: 1fr; justify-items: start; }

  .community { grid-template-columns: 1fr; }
  .community__head, .community__text, .frame { grid-column: 1 / -1; grid-row: auto; }
  .frame { position: relative; top: 0; width: 72vw; margin: 3.5rem auto 0; }

  .sponsor { grid-template-columns: 1fr; min-height: 0; padding-bottom: 74vw; align-items: start; }
  .sponsor__text { grid-column: 1 / -1; }
  .sponsor__fin { width: 94vw; inset-inline-start: 3vw; margin-bottom: -26vw; }

  .coupon { grid-template-columns: 1fr; }
  .coupon__notch--a, .coupon__notch--b { display: none; }
  .coupon__notch--c, .coupon__notch--d { display: block; top: -1.55rem; translate: none; }
  .coupon__notch--c { inset-inline-start: -1.375rem; }
  .coupon__notch--d { inset-inline-start: auto; inset-inline-end: -1.375rem; }
  .coupon__body { border-inline-start: 0; border-top: 0.35rem dotted var(--bg); }
  .coupon__title { font-size: var(--step-head); }
  .shirt { width: min(78%, 18rem); margin-inline: auto; }

  .footer__col { grid-column: span 6; }
  .footer__contact { grid-column: 1 / -1; }

  .fll-points { grid-template-columns: 1fr; }
  .fll-points__head, .fll-points__list { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "head head" "g1 g1" "g2 ." ". g3" "g4 ." "g6 g6" ". g5"; gap: 2.5rem 0.625rem; }
  .fll-cta { grid-template-columns: 1fr; }
  .fll-cta__text, .fll-cta__act { grid-column: 1 / -1; }

  .lightbox-nav { top: auto; bottom: 1.25rem; translate: none; }
  .lightbox { padding-bottom: 5.5rem; }
}
@media (max-width: 520px) {
  .bar__name { display: none; }
  .lang { padding-inline: 0.4rem; }
  .board__tile--head .head { max-width: none; }
}

/* FLL page hero: same card, longer sentence */
.hero--fll .hero__line { font-size: var(--step-body); max-width: 40ch; }
.fll-cta__text .head + .statement { margin-top: 1.5rem; }
