/* ============================================================
   NEMLI TEAM — site styles
   Palette : crest black + signal red + bone (taken from the team crest)
   Type    : Archivo (display, expanded) / Chivo (body) / Chivo Mono (data)
             Reem Kufi (arabic secondary mark)
   ============================================================ */

:root {
  /* Straight off the crest: black carapace, signal red, bone white.
     Change --red here and the whole site follows. */
  --void:  #08080a;
  --ink:   #101014;
  --ink-2: #17171c;
  --line:  #23232a;
  --line-2:#34343e;
  --bone:  #ececef;
  --dust:  #85858f;
  --red:  #e8262d;
  --red-d:#a1141a;
  --flare: #e8262d;

  --gutter: clamp(1.1rem, 4vw, 3.25rem);
  --maxw: 1320px;

  --ff-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --ff-body: "Chivo", system-ui, -apple-system, sans-serif;
  --ff-mono: "Chivo Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ff-ar: "Reem Kufi", var(--ff-body);

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

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--ff-body);
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain — keeps the flat dark from reading like a default template */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

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

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

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

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

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

.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 1000;
  transform: translateY(-200%);
  background: var(--red); color: #0a0a0c;
  padding: .6rem 1rem; font: 600 .78rem/1 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase;
}
.skip:focus { transform: none; }

/* ---------- shared type roles ---------- */

.display {
  font-family: var(--ff-display);
  font-variation-settings: "wdth" 125, "wght" 800;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.015em;
  margin: 0;
}

.eyebrow {
  font: 500 .7rem/1 var(--ff-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dust);
  margin: 0;
}

.tagm { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

.arabic { font-family: var(--ff-ar); font-weight: 500; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.4rem);
  height: 66px;
}
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b {
  font-family: var(--ff-display);
  font-variation-settings: "wdth" 118, "wght" 800;
  font-size: .98rem; letter-spacing: .04em; text-transform: uppercase;
}
.brand-txt span { font-family: var(--ff-ar); font-size: .74rem; color: var(--red); letter-spacing: .02em; margin-top: .18rem; }

.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.nav-links a {
  font: 500 .74rem/1 var(--ff-mono);
  letter-spacing: .15em; text-transform: uppercase; color: var(--dust);
  padding: .4rem 0; position: relative; transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--red); transition: right .28s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

@media (max-width: 720px) { .nav-links a.opt { display: none; } }

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

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .76rem/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase;
  padding: .85rem 1.35rem;
  border: 1px solid var(--line-2); background: transparent; color: var(--bone);
  cursor: pointer; position: relative;
  transition: border-color .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}
.btn:hover { border-color: var(--red); color: var(--red); }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn.solid { background: var(--red); border-color: var(--red); color: #0a0a0c; }
.btn.solid:hover { background: var(--bone); border-color: var(--bone); color: #0a0a0c; }

.btn.sm { padding: .58rem 1rem; font-size: .7rem; }

/* ---------- section scaffolding ---------- */

.band { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.band + .band { border-top: 1px solid var(--line); }

.band-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}
.band-head h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); }

/* =========================================================
   HERO
   ========================================================= */

.hero { position: relative; padding-block: clamp(3rem, 9vw, 7.5rem) clamp(2.4rem, 5vw, 4rem); overflow: hidden; }

/* horizon lattice — quiet, sits behind everything */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 40%, transparent) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(120% 85% at 12% 18%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }

.hero-mark { min-width: 0; }

.hero-kicker { display: flex; align-items: center; gap: .7rem; margin-bottom: clamp(1.1rem, 3vw, 2rem); }
.hero-kicker .dot {
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 70%, transparent);
  animation: ping 2.6s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 65%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 { font-size: clamp(3.4rem, 15vw, 11.5rem); }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; transform: translateY(105%); animation: rise .95s var(--ease) forwards; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .ln.thin > span { font-variation-settings: "wdth" 125, "wght" 300; color: var(--red); }
@keyframes rise { to { transform: translateY(0); } }

.hero-thesis {
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 0;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: var(--bone);
  max-width: 34ch;
  opacity: 0; animation: fade .8s .55s var(--ease) forwards;
}
.hero-thesis b { color: var(--red); font-weight: 700; }
@keyframes fade { to { opacity: 1; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1.5rem, 3vw, 2.3rem);
  opacity: 0; animation: fade .8s .7s var(--ease) forwards; }

/* slot meter — 7 divisions, 1 lit. ties the hero to the board below */
.meter { display: flex; flex-direction: column; gap: .55rem; align-items: flex-end; padding-bottom: .4rem; }
.meter .cap { font: 500 .64rem/1 var(--ff-mono); letter-spacing: .2em; color: var(--dust); text-transform: uppercase; margin-bottom: .3rem; }
.meter i {
  display: block; width: 54px; height: 3px; background: var(--line-2);
  opacity: 0; animation: fade .5s var(--ease) forwards;
}
.meter i.on { background: var(--red); width: 88px; box-shadow: 0 0 18px color-mix(in srgb, var(--red) 45%, transparent); }
.meter i:nth-child(2) { animation-delay: .8s; }
.meter i:nth-child(3) { animation-delay: .86s; }
.meter i:nth-child(4) { animation-delay: .92s; }
.meter i:nth-child(5) { animation-delay: .98s; }
.meter i:nth-child(6) { animation-delay: 1.04s; }
.meter i:nth-child(7) { animation-delay: 1.1s; }
.meter i:nth-child(8) { animation-delay: 1.16s; }
@media (max-width: 860px) { .meter { display: none; } }

/* ---------- ticker ---------- */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  display: flex;
}
.ticker-track {
  display: flex; flex: none; gap: 0;
  animation: slide 34s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.ticker span {
  display: inline-flex; align-items: center; gap: .7rem; flex: none;
  padding: .75rem 1.6rem;
  font: 500 .72rem/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--dust); white-space: nowrap;
}
.ticker span em { font-style: normal; color: var(--red); }
.ticker span::after { content: "/"; color: var(--line-2); margin-left: .7rem; }

/* =========================================================
   DIVISION BOARD — the signature element
   ========================================================= */

.board { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 3.2rem 2.6rem minmax(0, 1fr) 5.5rem 10.6rem 7.5rem;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.15rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .25s var(--ease);
}
.row::before { /* left rail */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--line-2); transition: background .25s var(--ease);
}
.row:hover { background: var(--ink); }
.row:hover::before { background: var(--red); }

.row .slot { font: 500 .78rem/1 var(--ff-mono); color: var(--dust); padding-left: 1.15rem; }
.row .glyph { width: 26px; height: 26px; color: var(--dust); transition: color .25s var(--ease); }
.row:hover .glyph { color: var(--red); }

.row .name {
  font-family: var(--ff-display);
  font-variation-settings: "wdth" 112, "wght" 700;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.4vw, 1.65rem);
  letter-spacing: .005em;
  line-height: 1;
  transition: font-variation-settings .3s var(--ease);
}
.row:hover .name { font-variation-settings: "wdth" 125, "wght" 800; }
.row .fmt { font: 400 .72rem/1 var(--ff-mono); color: var(--dust); letter-spacing: .1em; text-transform: uppercase; }

.status {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font: 600 .68rem/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase;
  padding: .42rem .6rem; border: 1px solid var(--line-2); color: var(--dust);
}
.status .bulb { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status.live { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }
.status.live .bulb { animation: ping 2.4s infinite; box-shadow: 0 0 0 0 var(--red); }
.status.open { color: var(--bone); border-color: var(--line-2); }
.row:hover .status.open { border-color: color-mix(in srgb, var(--red) 45%, transparent); color: var(--red); }

.row .go {
  justify-self: end;
  font: 600 .72rem/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--dust); display: inline-flex; align-items: center; gap: .5rem;
  transition: color .25s var(--ease);
}
.row:hover .go { color: var(--bone); }
.row .go .arw { transition: transform .25s var(--ease); }
.row:hover .go .arw { transform: translateX(5px); }

/* the active division reads as lit even at rest */
.row.active { background: linear-gradient(90deg, color-mix(in srgb, var(--red) 7%, transparent), transparent 55%); }
.row.active::before { background: var(--red); }
.row.active .glyph { color: var(--red); }
.row.active .name { font-variation-settings: "wdth" 125, "wght" 900; }
.row.active .go { color: var(--red); }

@media (max-width: 900px) {
  .row {
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    grid-template-areas:
      "slot name go"
      "slot fmt  status";
    row-gap: .5rem; column-gap: .8rem;
    padding: 1rem .9rem 1rem 0;
  }
  .row .slot { grid-area: slot; padding-left: .9rem; align-self: start; padding-top: .25rem; }
  .row .glyph { display: none; }
  .row .name { grid-area: name; }
  .row .fmt { grid-area: fmt; font-size: .66rem; align-self: center; }
  .row .status { grid-area: status; justify-self: end; font-size: .6rem; padding: .34rem .5rem; letter-spacing: .12em; }
  .row .go { grid-area: go; }
}
@media (max-width: 560px) {
  .row .go span:not(.arw) { display: none; }
}

/* =========================================================
   RESULTS
   ========================================================= */

.results { display: grid; gap: 0; }
.res {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding-block: clamp(1.3rem, 3vw, 2.1rem);
  border-bottom: 1px solid var(--line);
}
.res:first-child { border-top: 1px solid var(--line); }
.res { padding-left: clamp(.9rem, 2vw, 1.4rem); position: relative; }
.res::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.res.bronze::before { background: var(--line-2); }
.res .place {
  font-family: var(--ff-display); font-variation-settings: "wdth" 125, "wght" 900;
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: .8; letter-spacing: -.02em;
  color: var(--bone); min-width: 2.6ch;
}
.res.bronze .place { color: var(--dust); }
.res .ev { font-family: var(--ff-display); font-variation-settings: "wdth" 112, "wght" 700; text-transform: uppercase; font-size: clamp(1.05rem, 2.6vw, 1.7rem); line-height: 1.05; }
.res .sub { font: 400 .74rem/1.5 var(--ff-mono); color: var(--dust); letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; }
.res .yr { font: 500 .8rem/1 var(--ff-mono); color: var(--dust); letter-spacing: .12em; }

/* =========================================================
   CREED / what we look for
   ========================================================= */

.creed { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.creed > div { background: var(--void); padding: clamp(1.3rem, 3vw, 2rem); }
.creed h3 { font-family: var(--ff-display); font-variation-settings: "wdth" 112, "wght" 700; text-transform: uppercase; font-size: 1.02rem; margin: .8rem 0 .5rem; letter-spacing: .01em; }
.creed p { margin: 0; color: var(--dust); font-size: .92rem; }
.creed .k { font: 500 .68rem/1 var(--ff-mono); letter-spacing: .2em; color: var(--red); text-transform: uppercase; }

/* =========================================================
   ROSTER
   ========================================================= */

.page-head { padding-block: clamp(2.4rem, 6vw, 4.5rem) clamp(1.6rem, 4vw, 2.6rem); }
.crumb { display: flex; align-items: center; gap: .6rem; font: 500 .7rem/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dust); margin-bottom: clamp(1rem, 2.5vw, 1.6rem); }
.crumb a:hover { color: var(--red); }
.crumb .sep { color: var(--line-2); }

.page-head h1 { font-size: clamp(2.8rem, 11vw, 8rem); }
.page-head .lede { color: var(--dust); max-width: 46ch; margin: 1.1rem 0 0; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.head-meta { display: flex; gap: clamp(1rem, 3vw, 2.4rem); flex-wrap: wrap; padding-bottom: .4rem; }
.head-meta div { border-left: 2px solid var(--red); padding-left: .8rem; }
.head-meta b { display: block; font-family: var(--ff-display); font-variation-settings: "wdth" 125, "wght" 800; font-size: 1.6rem; line-height: 1; }
.head-meta span { font: 400 .66rem/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dust); }

.grid-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pcard {
  background: var(--ink);
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: background .3s var(--ease);
}
.pcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 3;
  background: var(--line-2);
  transform: scaleY(.12); transform-origin: top;
  transition: transform .45s var(--ease), background .3s var(--ease);
}
.pcard:hover { background: var(--ink-2); }
.pcard:hover::before { transform: scaleY(1); background: var(--red); }

.pcard-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem .3rem 1.1rem;
  position: relative; z-index: 3;
}
.pcard .kit { font: 600 .74rem/1 var(--ff-mono); color: var(--red); letter-spacing: .1em; }
.pcard .rolet { font: 400 .62rem/1 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dust); }

.pcard-art { position: relative; aspect-ratio: 3 / 3.55; overflow: hidden; margin-top: -.4rem; }
.pcard-art::before { /* hatch field behind the cutout */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(64% 50% at 50% 92%, color-mix(in srgb, var(--red) 22%, transparent), transparent 72%),
    repeating-linear-gradient(-52deg, transparent 0 9px, color-mix(in srgb, var(--line-2) 42%, transparent) 9px 10px);
  opacity: .5;
  transition: opacity .35s var(--ease);
}
.pcard:hover .pcard-art::before { opacity: .85; }

/* duotone lives on the portrait, not the whole card, so the art still reads */
.pcard-art img.portrait {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  transform: scale(1.08); transform-origin: center bottom;
  filter: grayscale(1) sepia(1) hue-rotate(-38deg) saturate(3.4) brightness(.78) contrast(1.08);
  transition: transform .55s var(--ease), filter .45s var(--ease);
}
.pcard-wash { display: none; }
.pcard-fade {
  position: absolute; inset: auto 0 0 0; height: 45%; z-index: 4; pointer-events: none;
  background: linear-gradient(to top, var(--ink) 8%, transparent);
  transition: background .3s var(--ease);
}
.pcard:hover .pcard-fade { background: linear-gradient(to top, var(--ink-2) 8%, transparent); }
.pcard:hover img.portrait { transform: scale(1.14); filter: none; }

.pcard-agent {
  position: absolute; left: 1.1rem; bottom: .7rem; z-index: 5;
  display: inline-flex; align-items: center; gap: .45rem;
  font: 500 .64rem/1 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--dust);
  transition: color .3s var(--ease);
}
.pcard-agent img { width: 17px; height: 17px; border-radius: 50%; filter: grayscale(1) brightness(1.5); transition: filter .3s var(--ease); }
.pcard:hover .pcard-agent { color: var(--red); }
.pcard:hover .pcard-agent img { filter: none; }

.pcard-id { padding: .9rem 1rem 1.15rem 1.1rem; border-top: 1px solid var(--line); }
.pcard-id h3 {
  margin: 0;
  font-family: var(--ff-display); font-variation-settings: "wdth" 112, "wght" 800;
  text-transform: uppercase; font-size: clamp(1.05rem, 2vw, 1.32rem); line-height: 1;
  letter-spacing: -.005em;
  overflow-wrap: anywhere;
  transition: font-variation-settings .35s var(--ease);
}
.pcard:hover .pcard-id h3 { font-variation-settings: "wdth" 125, "wght" 900; }
.pcard-id .rid { font: 400 .7rem/1 var(--ff-mono); color: var(--dust); letter-spacing: .06em; margin-top: .38rem; display: block; }

.pcard.sub { max-width: 260px; }
.pcard.sub .kit { color: var(--dust); }

/* =========================================================
   CTA BAND
   ========================================================= */

.cta {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--red) 9%, transparent), transparent 60%),
    var(--ink);
}
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(2.4rem, 6vw, 4rem); }
.cta h2 { font-size: clamp(1.8rem, 5vw, 3.2rem); max-width: 16ch; }
.cta p { color: var(--dust); max-width: 40ch; margin: .9rem 0 0; }

/* =========================================================
   APPLY FORM
   ========================================================= */

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.chip {
  font: 500 .72rem/1 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: .62rem .9rem; border: 1px solid var(--line-2); color: var(--dust);
  background: transparent; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
  display: inline-flex; align-items: center; gap: .5rem;
  position: relative;
}
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip:hover { color: var(--bone); background: var(--ink); }
.chip:has(input:checked) { border-color: var(--red); color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.chip:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
.chip .glyph { width: 15px; height: 15px; flex: none; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.field { background: var(--void); padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; }
.field.wide { grid-column: 1 / -1; }
.field label { font: 500 .66rem/1 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dust); margin-bottom: .6rem; }
.field label .req { color: var(--flare); }
.field .hint { font: 400 .68rem/1.4 var(--ff-mono); color: var(--line-2); margin-top: .5rem; letter-spacing: .04em; }

.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: .95rem; color: var(--bone);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: .5rem 0; width: 100%;
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); }
.field input::placeholder, .field textarea::placeholder { color: var(--line-2); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237e8c85' stroke-width='1.6'><path d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right .1rem center; padding-right: 1.4rem; }
.field select option { background: var(--ink); color: var(--bone); }
.field.err input, .field.err select, .field.err textarea { border-bottom-color: var(--flare); }
.field .msg { font: 500 .68rem/1 var(--ff-mono); color: var(--flare); letter-spacing: .1em; text-transform: uppercase; margin-top: .55rem; min-height: 0; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.6rem; }
.form-foot .note { font: 400 .72rem/1.5 var(--ff-mono); color: var(--dust); max-width: 44ch; letter-spacing: .03em; }

.sent { border: 1px solid var(--red); background: color-mix(in srgb, var(--red) 7%, transparent); padding: clamp(1.4rem, 4vw, 2.4rem); }
.sent h3 { font-family: var(--ff-display); font-variation-settings: "wdth" 125, "wght" 800; text-transform: uppercase; font-size: clamp(1.4rem, 4vw, 2.2rem); margin: .4rem 0 .7rem; }
.sent p { color: var(--dust); margin: 0 0 1.2rem; max-width: 52ch; }
.sent pre {
  font: 400 .78rem/1.7 var(--ff-mono); color: var(--bone);
  background: var(--void); border: 1px solid var(--line); padding: 1rem 1.15rem;
  overflow-x: auto; margin: 0 0 1.2rem; white-space: pre-wrap; word-break: break-word;
}
.sent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.hide { display: none !important; }

@media (max-width: 680px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   FOOTER
   ========================================================= */

.foot { border-top: 1px solid var(--line); background: var(--ink); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(1.6rem, 4vw, 3rem); padding-block: clamp(2.4rem, 5vw, 3.4rem); }
.foot h4 { font: 500 .66rem/1 var(--ff-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dust); margin: 0 0 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot ul a { font-size: .88rem; color: var(--bone); transition: color .2s var(--ease); }
.foot ul a:hover { color: var(--red); }
.foot .wordmark { font-family: var(--ff-display); font-variation-settings: "wdth" 125, "wght" 900; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3.2rem); line-height: .85; margin: 0; }
.foot .wordmark span { color: var(--red); }
.foot .blurb { color: var(--dust); font-size: .86rem; margin: .9rem 0 0; max-width: 32ch; }
.foot-btm { border-top: 1px solid var(--line); padding-block: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-btm p { margin: 0; font: 400 .68rem/1 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dust); }

/* =========================================================
   CREST
   ========================================================= */

.crest { display: block; flex: none; color: var(--bone); }
.crest .sig { fill: var(--red); }
.crest .car { fill: currentColor; }

.brand .crest { width: 34px; height: 34px; }

/* hero watermark — the mark itself carries the hero, bleeding off the edge */
.hero-crest {
  position: absolute;
  right: -7%; top: 50%; transform: translateY(-50%);
  width: min(58vw, 620px); height: auto;
  opacity: .085;
  pointer-events: none;
  z-index: 0;
  animation: crestIn 1.6s .3s var(--ease) backwards;
}
@keyframes crestIn { from { opacity: 0; transform: translateY(-50%) scale(1.06); } }
@media (max-width: 860px) { .hero-crest { right: -30%; top: 34%; width: 96vw; opacity: .05; } }

.foot .crest { width: 46px; height: 46px; margin-bottom: 1rem; }

/* =========================================================
   APPLY — steps + conditional fields
   ========================================================= */

.step { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.step-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .95rem; }
.step-head .n {
  font: 600 .68rem/1 var(--ff-mono); letter-spacing: .14em; color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); padding: .34rem .45rem;
}
.step-head h2 { font-family: var(--ff-display); font-variation-settings: "wdth" 112, "wght" 700; text-transform: uppercase; font-size: 1.05rem; margin: 0; letter-spacing: .01em; }
.step-head p { margin: 0; font: 400 .72rem/1 var(--ff-mono); color: var(--dust); letter-spacing: .1em; text-transform: uppercase; }

.field[hidden] { display: none; }

.gform-note {
  display: flex; gap: .8rem; align-items: flex-start;
  border: 1px solid var(--line); background: var(--ink);
  padding: 1rem 1.15rem; margin-bottom: clamp(1.6rem, 4vw, 2.2rem);
  font: 400 .78rem/1.6 var(--ff-body); color: var(--dust);
}
.gform-note b { color: var(--bone); font-weight: 700; }
.gform-note .bar { width: 3px; align-self: stretch; background: var(--red); flex: none; }

/* =========================================================
   MOBILE NAV
   ========================================================= */

.nav-toggle {
  display: none;
  width: 42px; height: 42px; margin-left: auto; flex: none;
  border: 1px solid var(--line-2); background: var(--ink); color: var(--bone);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav[data-open="true"] .nav-toggle i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav[data-open="true"] .nav-toggle i:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav-toggle i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--void); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.4rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav[data-open="true"] .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
  .nav-links a.opt { display: block; }
  .nav-links a::after { display: none; }
}

/* =========================================================
   MATCHES
   ========================================================= */

.match {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: clamp(.9rem, 2.5vw, 2rem); align-items: center;
  padding: clamp(1rem, 2.5vw, 1.5rem) 0 clamp(1rem, 2.5vw, 1.5rem) clamp(.9rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--line); position: relative;
}
.match:first-child { border-top: 1px solid var(--line); }
.match::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-2); }
.match.win::before { background: var(--red); }
.match .when { font: 400 .72rem/1.5 var(--ff-mono); color: var(--dust); letter-spacing: .08em; text-transform: uppercase; }
.match .vs { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.match .opp { font-family: var(--ff-display); font-variation-settings: "wdth" 112, "wght" 700; text-transform: uppercase; font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 1; }
.match .comp { font: 400 .7rem/1.4 var(--ff-mono); color: var(--dust); letter-spacing: .08em; text-transform: uppercase; width: 100%; }
.match .score { display: flex; align-items: center; gap: .7rem; }
.match .sc { font-family: var(--ff-display); font-variation-settings: "wdth" 125, "wght" 900; font-size: clamp(1.2rem, 3vw, 1.8rem); line-height: 1; color: var(--dust); }
.match.win .sc { color: var(--bone); }
.match .wl { font: 600 .64rem/1 var(--ff-mono); letter-spacing: .16em; padding: .34rem .45rem; border: 1px solid var(--line-2); color: var(--dust); }
.match.win .wl { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }

.empty-slot {
  border: 1px dashed var(--line-2); padding: clamp(1.2rem, 3vw, 1.8rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.empty-slot p { margin: 0; color: var(--dust); font: 400 .78rem/1.5 var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; }

/* =========================================================
   NEWS
   ========================================================= */

.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.post {
  background: var(--void); padding: clamp(1.3rem, 3vw, 1.9rem);
  display: flex; flex-direction: column; gap: .75rem;
  position: relative; transition: background .25s var(--ease);
}
.post:hover { background: var(--ink); }
.post .meta { display: flex; gap: .8rem; align-items: center; font: 500 .66rem/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dust); }
.post .meta b { color: var(--red); font-weight: 600; }
.post h3 {
  margin: 0; font-family: var(--ff-display); font-variation-settings: "wdth" 112, "wght" 700;
  text-transform: uppercase; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.02; letter-spacing: 0;
}
.post p { margin: 0; color: var(--dust); font-size: .92rem; }
.post .more { margin-top: auto; padding-top: .4rem; font: 600 .68rem/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone); display: inline-flex; align-items: center; gap: .5rem; }
.post .more .arw { transition: transform .25s var(--ease); }
.post:hover .more { color: var(--red); }
.post:hover .more .arw { transform: translateX(4px); }

.post-full { max-width: 68ch; }
.post-full p { margin: 0 0 1.15rem; }
.post-full h3 { font-family: var(--ff-display); font-variation-settings: "wdth" 112, "wght" 700; text-transform: uppercase; font-size: 1.15rem; margin: 2rem 0 .8rem; }

/* =========================================================
   PARTNERS · OPEN ROLES · PRESS KIT
   ========================================================= */

.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.slot-card {
  background: var(--void); padding: clamp(1.2rem, 3vw, 1.7rem);
  min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  transition: background .25s var(--ease);
}
.slot-card:hover { background: var(--ink); }
.slot-card .lbl { font: 500 .66rem/1 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dust); }
.slot-card .val { font-family: var(--ff-display); font-variation-settings: "wdth" 112, "wght" 700; text-transform: uppercase; font-size: 1.05rem; line-height: 1.05; }
.slot-card .take { font: 600 .66rem/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: .5rem; }
.slot-card:hover .take .arw { transform: translateX(4px); }
.slot-card .take .arw { transition: transform .25s var(--ease); }
.slot-card.vacant .val { color: var(--dust); }

.swatches { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1.4rem; }
.swatch { flex: 1 1 130px; padding: 1rem 1.1rem 1.1rem; background: var(--void); }
.swatch i { display: block; width: 100%; height: 46px; margin-bottom: .7rem; border: 1px solid var(--line-2); }
.swatch b { display: block; font: 600 .72rem/1 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; }
.swatch span { display: block; font: 400 .68rem/1 var(--ff-mono); color: var(--dust); margin-top: .35rem; }

/* =========================================================
   SOCIAL ROW
   ========================================================= */

.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a, .socials span {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 .7rem/1 var(--ff-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem .8rem; border: 1px solid var(--line-2); color: var(--dust);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.socials span { opacity: .45; }
.socials span::after { content: "soon"; font-size: .58rem; letter-spacing: .1em; opacity: .8; }

/* =========================================================
   404
   ========================================================= */

.lost { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.4rem; }
.lost h1 { font-size: clamp(4rem, 20vw, 15rem); color: var(--red); }

/* ---------- scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero h1 .ln > span { transform: none; }
  .hero-thesis, .hero-cta, .meter i { opacity: 1; }
  .rv { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
