/* =========================================================================
   Սպորտային ֆորում Հայաստանում 2027
   Palette, type scale and metrics are measured from the Figma source —
   see README.md for provenance.
   ========================================================================= */

/* ── 1. tokens ─────────────────────────────────────────────────────────── */
:root {
  /* colour */
  --bg-dark:      #151515;
  --bg-panel:     #161616;
  --bg-light:     #ffffff;
  --accent:       #f04d32;
  --accent-dark:  #d13d24;
  --arm-red:      #d40606;
  --arm-blue:     #002597;
  --arm-orange:   #db3700;

  --text-on-dark:        #ffffff;
  --text-on-dark-muted:  rgba(255, 255, 255, .78);
  --text-on-dark-faint:  rgba(255, 255, 255, .55);
  --text-on-light:       #151515;
  --text-on-light-muted: rgba(21, 21, 21, .68);
  --rule-on-dark:        rgba(255, 255, 255, .55);

  /* type */
  --font: "Montserrat", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero:      clamp(2rem, 1.15rem + 3.55vw, 3.25rem);   /* 32 → 52 */
  --fs-year:      clamp(1.75rem, 1.05rem + 2.9vw, 3rem);    /* 28 → 48 */
  --fs-section:   clamp(1.5rem, 1.05rem + 1.85vw, 2.5rem);  /* 24 → 40 */
  --fs-featured:  clamp(1.25rem, .95rem + 1.25vw, 2.125rem);/* 20 → 34 */
  --fs-lead:      clamp(1rem, .93rem + .3vw, 1.1875rem);    /* 16 → 19 */
  --fs-body:      clamp(.9375rem, .87rem + .3vw, 1.125rem); /* 15 → 18 */
  --fs-small:     clamp(.8125rem, .78rem + .15vw, .9375rem);/* 13 → 15 */

  /* metrics */
  --container:    1466px;
  --gutter:       clamp(20px, 5vw, 60px);
  --section-pad:  clamp(72px, 8vw, 130px);
  --radius-lg:    24px;
  --radius-md:    16px;
  --radius-sm:    10px;
  --header-h:     84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── 2. reset & base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, figure, fieldset, legend { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
fieldset { border: 0; padding: 0; min-width: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 200;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-weight: 600;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── 3. buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }

.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--bg-dark); border-color: #fff; }

.section--light .btn--ghost { border-color: rgba(21, 21, 21, .35); color: var(--text-on-light); }
.section--light .btn--ghost:hover { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); }

.btn--block { width: 100%; }

/* ── 4. header ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 22px 0;
  transition: background-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(10, 12, 24, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex; align-items: flex-end; gap: 24px;
  padding-bottom: 12px;
}
/* the rule stops at the content edge, as drawn in the Figma */
.header-inner::after {
  content: "";
  position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: var(--rule-on-dark);
}

.primary-nav { flex: 1 1 auto; min-width: 0; }

.primary-nav__list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px clamp(14px, 1.7vw, 30px);
}
.primary-nav__list a {
  position: relative;
  display: inline-block;
  padding-block: 4px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.primary-nav__list a::after {
  content: "";
  position: absolute; left: 0; bottom: -13px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav__list a:hover::after,
.primary-nav__list a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }

/* search */
.site-search { position: relative; display: flex; }
.site-search input {
  width: clamp(120px, 14vw, 190px);
  height: 36px;
  padding: 0 38px 0 14px;
  border: 0; border-radius: 6px;
  background: #fff; color: var(--bg-dark);
  font-size: var(--fs-small);
}
.site-search input::placeholder { color: rgba(21, 21, 21, .45); }
.site-search button {
  position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 0; border-radius: 5px; background: transparent; cursor: pointer;
}
.site-search svg {
  width: 17px; height: 17px;
  fill: none; stroke: rgba(21, 21, 21, .6);
  stroke-width: 1.9; stroke-linecap: round;
}

/* language */
.lang-switch { position: relative; }
.lang-switch__button {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 4px;
  border: 0; background: transparent; cursor: pointer;
  font-size: var(--fs-small); font-weight: 600; color: #fff;
}
.lang-switch__button svg { width: 10px; height: 6px; fill: #fff; transition: rotate .2s var(--ease); }
.lang-switch__button[aria-expanded="true"] svg { rotate: 180deg; }

.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + 14px); z-index: 10;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  background: #1d1d1d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.lang-switch__menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 6px;
  font-size: var(--fs-small);
}
.lang-switch__menu li.is-current { background: rgba(240, 77, 50, .16); color: var(--accent); font-weight: 700; }
.lang-switch__menu li[aria-disabled="true"] { color: var(--text-on-dark-faint); }
.lang-switch__menu li span { font-size: .75em; opacity: .7; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  order: -1;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars { position: relative; margin-inline: auto; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ── 5. hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(100svh, 940px);
  padding-block: calc(var(--header-h) + 60px) 90px;
  overflow: hidden;
  background: #0a1330;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 8, 22, .92) 0%, rgba(4, 8, 22, .55) 38%, rgba(4, 8, 22, 0) 62%),
    linear-gradient(180deg, rgba(4, 8, 22, .55) 0%, rgba(4, 8, 22, 0) 30%);
}
.hero__inner { position: relative; z-index: 2; }

.hero__title {
  max-width: 24ch;
  text-wrap: balance;
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.hero__year {
  margin-top: .18em;
  font-size: var(--fs-year);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}
/* brand slogan lockup — Latin only, so Montserrat picks it up automatically */
.hero__slogan {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 8px 16px;
  max-width: 54ch;
  margin-top: clamp(18px, 2.2vw, 30px);
}
.hero__slogan strong {
  font-size: clamp(.9375rem, .85rem + .4vw, 1.125rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__slogan span {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}
.hero__slogan span::before {
  content: "";
  position: absolute; left: 0; top: .68em;
  width: 12px; height: 2px;
  background: var(--accent);
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(28px, 4vw, 52px);
  max-width: 780px;
}

/* ── 6. section shell ──────────────────────────────────────────────────── */
.section {
  position: relative;
  padding-block: var(--section-pad);
  overflow: hidden;
}
.section--dark  { background: var(--bg-dark); color: var(--text-on-dark); }
.section--light { background: var(--bg-light); color: var(--text-on-light); }

.section-title {
  margin-bottom: clamp(32px, 4vw, 58px);
  font-size: var(--fs-section);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-lead {
  max-width: 68ch;
  margin-top: -20px;
  margin-bottom: clamp(32px, 4vw, 54px);
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
}
.section--light .section-lead { color: var(--text-on-light-muted); }

.section-cta { margin-top: clamp(32px, 4vw, 52px); }

/* decorative tricolour swooshes — never load-bearing */
.deco {
  position: absolute; z-index: 0;
  pointer-events: none; user-select: none;
  opacity: .9;
}
.deco--speakers    { top: -3%;  left: -7%;  width: min(24%, 320px); }
.deco--videos      { top: 2%;   right: -14%; width: min(42%, 600px); rotate: 180deg; }
.deco--about       { bottom: -18%; right: -10%; width: min(38%, 520px); opacity: .5; }
.deco--contractors { top: -10%; right: -8%;  width: min(34%, 470px); opacity: .55; }
.deco--contact     { bottom: -34%; left: -20%; width: min(52%, 700px); opacity: .45; }
.section > .container { position: relative; z-index: 1; }

/* ── 7. news ───────────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1091fr) minmax(0, 355fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 26px;
  row-gap: 16px;
}
.news-card--featured { grid-row: span 2; }

.news-card {
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(21, 21, 21, .1);
}
.news-card--featured { border-radius: var(--radius-lg); }

.news-card__link { display: flex; flex-direction: column; height: 100%; }

.news-card__media { overflow: hidden; aspect-ratio: 355 / 274; }
.news-card--featured .news-card__media { aspect-ratio: 1068 / 524; }
.news-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale .5s var(--ease);
}
.news-card__link:hover .news-card__media img { scale: 1.04; }

.news-card__body {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 22px 22px 26px;
  color: #fff;
}
.news-card--featured .news-card__body { padding: clamp(24px, 2.4vw, 38px) clamp(24px, 2.4vw, 40px) clamp(28px, 2.6vw, 42px); }

.news-card__title {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.35;
}
.news-card--featured .news-card__title {
  font-size: var(--fs-featured);
  font-weight: 700;
  line-height: 1.28;
}

.news-card__bar {
  display: block;
  width: 80px; height: 6px;
  margin-top: 16px;
  border-radius: 2px;
  background: var(--accent);
}
.news-card--featured .news-card__bar {
  width: 225px; height: 19px;
  margin-top: clamp(18px, 1.8vw, 28px);
  border-radius: 3px;
}

.news-card__excerpt {
  margin-top: clamp(18px, 1.8vw, 26px);
  font-size: var(--fs-body);
  color: var(--text-on-dark-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* ── 8. speakers ───────────────────────────────────────────────────────── */
.speaker {
  display: grid;
  grid-template-columns: minmax(0, 840fr) minmax(0, 690fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 84px);
}
.speaker + .speaker { margin-top: clamp(56px, 7vw, 120px); }
.speaker--reverse .speaker__media { order: 2; }

.speaker__media { border-radius: var(--radius-lg); overflow: hidden; }
.speaker__media img { width: 100%; aspect-ratio: 840 / 524; object-fit: cover; }

.speaker__name {
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}
.speaker__role {
  margin-top: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}
.speaker__text {
  margin-top: 20px;
  color: var(--text-on-dark-muted);
}


/* ── 9. tiles (participants) ───────────────────────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: minmax(0, 1fr); } }
.tile {
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
}
.tile__media { aspect-ratio: 355 / 274; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.tile__body { padding: 20px 22px 24px; }
.tile__title { font-size: var(--fs-body); font-weight: 700; }
.tile__meta { margin-top: 6px; font-size: var(--fs-small); color: var(--text-on-dark-faint); }

/* ── 10. become a partner ──────────────────────────────────────────────── */
.partner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 4.5vw, 80px);
  align-items: start;
}
.partner__lead {
  font-size: var(--fs-lead);
  color: var(--text-on-light-muted);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 32px;
  margin-top: clamp(32px, 3.4vw, 48px);
}
.benefit { padding-top: 18px; border-top: 2px solid rgba(21, 21, 21, .14); }
.benefit__title {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
}
.benefit__title::before {
  content: "";
  display: block;
  width: 26px; height: 4px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: var(--accent);
}
.benefit__text { margin-top: 8px; font-size: var(--fs-small); color: var(--text-on-light-muted); }

/* ── 11. cards (contractors) ───────────────────────────────────────────── */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, .07);
  border-top: 3px solid var(--accent);
}
.card__title { font-size: var(--fs-lead); font-weight: 700; line-height: 1.3; }
.card__text { margin-top: 12px; font-size: var(--fs-small); color: var(--text-on-dark-muted); }

/* ── 12. services ──────────────────────────────────────────────────────── */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 3vw, 46px);
}
.service { padding-top: 22px; border-top: 2px solid rgba(21, 21, 21, .14); }
.service__num {
  display: block;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  font-weight: 800; font-style: italic; line-height: 1;
  color: var(--accent);
}
.service__title { margin-top: 16px; font-size: var(--fs-lead); font-weight: 700; line-height: 1.3; }
.service__text { margin-top: 10px; font-size: var(--fs-small); color: var(--text-on-light-muted); }

/* ── 13. stats ─────────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: clamp(44px, 5vw, 80px);
  padding-top: clamp(32px, 3.4vw, 52px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.stats__value {
  display: block;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-weight: 800; font-style: italic; line-height: 1;
  color: var(--accent);
}
.stats__label {
  display: block; margin-top: 10px;
  font-size: var(--fs-small);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-on-dark-faint);
}

/* ── 14. split (about) ─────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 76px);
}
.split__media { border-radius: var(--radius-lg); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.split__body p { color: var(--text-on-dark-muted); }
.split__body p + p { margin-top: 18px; }

/* ── 15. videos ────────────────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 34px);
}
.video__button {
  position: relative;
  display: block; width: 100%; padding: 0;
  border: 0; border-radius: var(--radius-md);
  background: #000;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.video__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale .5s var(--ease), opacity .3s var(--ease);
}
.video__button:hover .video__thumb { scale: 1.03; opacity: .85; }

.video__play {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: clamp(56px, 6vw, 76px); aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(240, 77, 50, .93);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
  transition: scale .25s var(--ease), background-color .25s var(--ease);
}
.video__play::after {
  content: "";
  margin-left: 15%;
  border-style: solid;
  border-width: .55em 0 .55em .95em;
  border-color: transparent transparent transparent #fff;
}
.video__button:hover .video__play { scale: 1.08; background: var(--accent); }

/* ── 16. contact ───────────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(36px, 4.5vw, 80px);
  align-items: start;
}
.contact__lead { font-size: var(--fs-lead); color: var(--text-on-dark-muted); }
.contact__list { margin-top: 34px; display: grid; gap: 20px; }
.contact__list dt {
  font-size: var(--fs-small);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-on-dark-faint);
}
.contact__list dd { margin: 4px 0 0; font-size: var(--fs-lead); font-weight: 600; }
.contact__list a:hover { color: var(--accent); }

/* dark form card — works on both light and dark sections */
.form-card {
  padding: clamp(26px, 3vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text-on-dark);
}
.form-card__title {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-lead);
  font-weight: 700;
}

.field { display: block; }
.field + .field, .field-row + .field, .field-row + .field-row, .field + .field-row { margin-top: 20px; }
.field label, .field legend {
  display: block; margin-bottom: 8px;
  font-size: var(--fs-small); font-weight: 600;
}
.field label span { margin-left: 3px; color: var(--accent); }

.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  font-size: var(--fs-small);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23ffffff' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 6px;
  cursor: pointer;
}
.field select option { background: #1d1d1d; color: #fff; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, .07);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6a4d; }

.field__error {
  display: none;
  margin-top: 7px;
  font-size: .8125rem;
  color: #ff8a72;
}
.field__error.is-visible { display: block; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-row .field + .field { margin-top: 0; }

.field--choice { margin-bottom: 24px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: var(--fs-small); font-weight: 600;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form-card .btn { margin-top: 28px; }

.form-status { margin-top: 16px; font-size: var(--fs-small); min-height: 1.4em; }
.form-status.is-ok    { color: #5fd39b; }
.form-status.is-error { color: #ff8a72; }

.form-card.is-busy { opacity: .75; pointer-events: none; }
.form-card .btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* honeypot — offscreen rather than display:none, which some bots skip */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-legal {
  margin-top: 18px;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--text-on-dark-faint);
}
.form-legal a { text-decoration: underline; }
.form-legal a:hover { color: var(--accent); }

/* reCAPTCHA v3 badge is hidden — the attribution above satisfies Google's terms */
.grecaptcha-badge { visibility: hidden; }

/* ── 17. footer ────────────────────────────────────────────────────────── */
.tricolor { display: flex; flex-direction: column; }
.tricolor span { height: 9px; }
.tricolor span:nth-child(1) { background: var(--arm-red); }
.tricolor span:nth-child(2) { background: var(--arm-blue); height: 10px; }
.tricolor span:nth-child(3) { background: var(--arm-orange); }

.site-footer {
  background: var(--bg-dark);
  padding-block: clamp(48px, 5.5vw, 88px);
}
.footer-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px clamp(18px, 2.4vw, 40px);
}
.footer-nav a { font-size: var(--fs-small); color: var(--text-on-dark-muted); }
.footer-nav a:hover { color: var(--accent); }

.footer-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
  margin-top: clamp(36px, 4vw, 60px);
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand {
  font-size: var(--fs-lead); font-weight: 700;
  letter-spacing: .01em; text-transform: uppercase;
}
.footer-brand em { font-style: italic; color: var(--accent); }

.social { display: flex; gap: 12px; }
.social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-legal {
  margin-top: 26px;
  font-size: var(--fs-small);
  color: var(--text-on-dark-faint);
}

/* ── 18. video modal ───────────────────────────────────────────────────── */
.video-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.video-modal[hidden] { display: none; }
.video-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 14, .88); }
.video-modal__frame {
  position: relative;
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.video-modal__player, .video-modal__player iframe { width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.video-modal__close:hover { background: var(--accent); }
body.is-locked { overflow: hidden; }

/* ── 19. reveal on scroll ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* placeholder audit mode — append ?placeholders to the URL */
body.show-placeholders [data-placeholder] {
  outline: 1px dashed rgba(240, 77, 50, .75);
  outline-offset: 6px;
}

/* ── 20. responsive ────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .primary-nav__list { gap: 8px 16px; }
  .site-search input { width: 130px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed; inset: 0 0 0 auto; z-index: 120;
    width: min(360px, 86vw);
    padding: 100px 32px 40px;
    background: #101010;
    border-left: 1px solid rgba(255, 255, 255, .1);
    translate: 100% 0;
    transition: translate .32s var(--ease);
    overflow-y: auto;
  }
  .primary-nav.is-open { translate: 0 0; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav__list a {
    display: block;
    padding: 15px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .primary-nav__list a::after { display: none; }
  .primary-nav__list a.is-active { color: var(--accent); }

  .nav-scrim {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(4, 6, 14, .6);
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }

  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }

  .speaker,
  .split,
  .partner,
  .contact { grid-template-columns: minmax(0, 1fr); }
  .speaker--reverse .speaker__media { order: 0; }
  .speaker__media img { aspect-ratio: 16 / 9; }
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: 20px;
  }
  .news-card--featured { grid-row: auto; grid-column: 1 / -1; }
  .news-card__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 767px) {
  .hero { min-height: auto; padding-block: calc(var(--header-h) + 72px) 72px; }
  .hero__media img { object-position: 78% center; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(4, 8, 22, .86) 0%, rgba(4, 8, 22, .62) 40%,
                              rgba(4, 8, 22, .72) 70%, rgba(4, 8, 22, .94) 100%);
  }
  .hero__title { max-width: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* the accent dash reads as a stray mark once the lockup stacks */
  .hero__slogan { gap: 6px; }
  .hero__slogan span { padding-left: 0; }
  .hero__slogan span::before { display: none; }


  .site-search { display: none; }
  .deco { display: none; }

  .news-grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .news-card__excerpt { -webkit-line-clamp: 3; line-clamp: 3; }
  .news-card--featured .news-card__bar { width: 160px; height: 12px; }

  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .field-row .field + .field { margin-top: 20px; }

  .footer-meta { flex-direction: column; align-items: flex-start; }
  .video-modal__close { top: -44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
