/* You Media Club — nomination landing page
   Palette comes from the brand itself: the black/white logo and the
   yellow highlight used in the video captions. */

:root {
  --black: #000;
  --white: #fff;
  --yellow: #ffe500;
  --steel: #a3a3a3;      /* muted text on black */
  --graphite: #555;      /* muted text on white */
  --rule-dark: #333;
  --rule-light: #d6d6d6;
  --field: #0f0f0f;

  /* Type: Barlow Condensed italic capitals for headlines, buttons and numbers
     (jersey and race-livery lettering), Barlow for reading. Condensed type is set
     larger than usual to carry the same weight, hence the scale values. */
  --body-font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --display-font: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --display-weight: 800; --display-stretch: 100%; --display-style: italic;
  --display-case: uppercase; --display-tracking: 0em; --display-scale: 1.5;
  --h1-leading: .88; --h2-leading: .92;
  --sub-font: var(--display-font);
  --sub-weight: 700; --sub-stretch: 100%; --sub-style: italic; --sub-case: uppercase; --sub-tracking: .02em; --sub-scale: 1.28;
  --num-font: var(--display-font);
  --num-weight: 800; --num-stretch: 100%; --num-style: italic; --num-scale: 1.1;
  --num-figures: normal;

  --gutter: 1.25rem;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(100% - (var(--gutter) * 2), 72rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--yellow); color: var(--black);
  padding: .75rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--focus, var(--yellow)); outline-offset: 3px; }

/* ---------- Bands (the page alternates the logo's two states) ---------- */

.band { background: var(--bg); color: var(--fg); padding-block: clamp(4rem, 9vw, 7.5rem); }
.band--black  { --bg: var(--black);  --fg: var(--white); --muted: var(--steel);    --rule: var(--rule-dark);  --focus: var(--yellow); }
.band--white  { --bg: var(--white);  --fg: var(--black); --muted: var(--graphite); --rule: var(--rule-light); --focus: var(--black); }
.band--yellow { --bg: var(--yellow); --fg: var(--black); --muted: #2b2700;         --rule: #000;              --focus: var(--black); }

/* ---------- Type ---------- */

/* Three roles: display (headlines), sub (small headings and buttons), numerals (stats). */
h1, h2, .facts strong, .form legend, .sent h3, .founder h3 {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-style: var(--display-style);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
}
h3, .btn {
  font-family: var(--sub-font);
  font-weight: var(--sub-weight);
  font-stretch: var(--sub-stretch);
  font-style: var(--sub-style);
  text-transform: var(--sub-case);
  letter-spacing: var(--sub-tracking);
}
.reel__stats dd, .steps li::before {
  font-family: var(--num-font);
  font-weight: var(--num-weight);
  font-stretch: var(--num-stretch);
  font-style: var(--num-style);
}
h1, h2 { text-wrap: balance; }
h1 { font-size: calc(clamp(2.6rem, 6.4vw, 5.25rem) * var(--display-scale)); line-height: var(--h1-leading); }
h2 { font-size: calc(clamp(1.9rem, 4.4vw, 3.5rem) * var(--display-scale)); line-height: var(--h2-leading); }
h3 { font-size: calc(1.25rem * var(--sub-scale)); line-height: 1.15; }

.lede { font-size: clamp(1.0625rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 38em; text-wrap: pretty; }
.band--yellow .lede { color: var(--fg); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: .9rem 1.75rem;
  border: 2px solid transparent; border-radius: 999px;
  font-size: calc(1.0625rem * var(--sub-scale)); line-height: 1.1;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: var(--white); }
.btn--outline { border-color: currentColor; background: transparent; color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--ink { background: var(--black); color: var(--white); }
.btn--ink:hover { background: #222; }
.btn--small { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: calc(.9375rem * var(--sub-scale)); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.textlink {
  font-weight: 700; text-underline-offset: .25em; text-decoration-thickness: 2px;
  text-decoration-color: var(--yellow);
}
.textlink:hover { text-decoration-color: currentColor; }
.textlink--ink { text-decoration-color: var(--black); }
.textlink--ink:hover { text-decoration-color: var(--graphite); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: 0 clamp(3rem, 7vw, 6rem); }

.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; position: relative; z-index: 2; }
.topbar__brand { display: block; border-radius: 6px; }
.topbar__brand img { width: 88px; }

.hero__grid { display: grid; gap: 1.5rem; align-items: center; }
.hero__copy { position: relative; z-index: 1; }
.hero__hello { color: var(--yellow); font-weight: 700; margin-bottom: 1rem; }
.hero__lede { margin-top: 1.25rem; font-size: clamp(1.125rem, 1.7vw, 1.375rem); color: var(--steel); max-width: 30em; text-wrap: pretty; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }

.logo-stage {
  position: relative; order: -1;
  aspect-ratio: 16 / 11; width: 100%; max-width: 46rem; margin-inline: auto;
  user-select: none; -webkit-user-select: none;
}
/* soft light the logo sits in, so white-on-black has depth without a gradient wash */
.logo-stage::before {
  content: ""; position: absolute; inset: 8% 4% 2%;
  background: radial-gradient(closest-side, rgba(255,255,255,.13), rgba(255,255,255,0) 72%);
  pointer-events: none;
}
.logo-stage__fallback { position: absolute; inset: 0; margin: auto; width: 72%; transition: opacity .3s ease; }
.logo-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: grab; touch-action: pan-y; transition: opacity .4s ease; }
.logo-stage__canvas:active { cursor: grabbing; }
.logo-stage.is-live .logo-stage__canvas { opacity: 1; }
.logo-stage.is-live .logo-stage__fallback { opacity: 0; }
.logo-stage__hint {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: .8125rem; color: #777; opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.logo-stage.is-live .logo-stage__hint { opacity: 1; }
.logo-stage.was-touched .logo-stage__hint { opacity: 0; }

@media (min-width: 60rem) {
  .hero .wrap { width: min(100% - (var(--gutter) * 2), 84rem); }
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem; min-height: calc(100svh - 12rem); }
  .logo-stage { order: 0; max-width: none; }
}

/* ---------- Proof ---------- */

.proof__intro { display: grid; gap: 1.5rem; max-width: 56rem; }

.reels { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }

.reel { display: grid; gap: 1rem; align-content: start; }
.reel__frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #111;
}
.reel__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.reel__frame:hover img { transform: scale(1.03); }
.reel__play {
  position: absolute; right: .75rem; bottom: .75rem;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--yellow); color: var(--black);
  transition: transform .2s ease;
}
.reel__play svg { margin-left: 3px; }
.reel__frame:hover .reel__play { transform: scale(1.08); }

.reel__when { color: var(--muted); font-weight: 600; font-size: .9375rem; }
.reel__body { display: grid; gap: .6rem; justify-items: start; }
.reel__stats { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-block: .25rem; }
.reel__stats > div { display: flex; flex-direction: column-reverse; }
.reel__stats dd {
  font-size: calc(clamp(2.4rem, 7vw, 4.25rem) * var(--num-scale));
  line-height: .9; font-variant-numeric: var(--num-figures);
}
.reel__stats dt { color: var(--muted); font-size: .9375rem; font-weight: 600; margin-top: .3rem; }
.reel__note { color: var(--muted); max-width: 26em; }

.facts {
  margin-top: clamp(3rem, 7vw, 5rem); border-top: 2px solid var(--black);
  display: grid; gap: 0;
}
.facts li { padding-block: 1.25rem; border-bottom: 1px solid var(--rule); display: grid; gap: .25rem; }
.facts strong { font-size: calc(clamp(1.5rem, 3vw, 2.25rem) * var(--display-scale)); line-height: 1; }
.facts span { color: var(--muted); }

@media (min-width: 52rem) {
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
  .reel { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.75rem; align-items: end; }
  .reel__body { padding-bottom: .5rem; }
  .facts { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
  .facts li { border-bottom: 0; }
}

/* ---------- Nominate ---------- */

.nominate { display: grid; gap: 2.5rem; }
.nominate__intro { display: grid; gap: 1rem; }

.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--rule); order: 3; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.25rem 0 1.25rem 3.25rem; border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1.05rem;
  font-size: calc(2.25rem * var(--num-scale)); line-height: 1; color: var(--yellow);
}
.steps p { color: var(--muted); margin-top: .25rem; }

.form { display: grid; gap: 2.25rem; }
.form fieldset { display: grid; gap: 1.25rem; }
.form legend {
  font-size: calc(1.125rem * var(--display-scale)); line-height: 1;
  padding: 0 0 .9rem; width: 100%; border-bottom: 1px solid var(--rule); margin-bottom: 1.25rem;
}

.field { display: grid; gap: .45rem; }
.field label, .field__label { font-weight: 700; font-size: 1rem; }
.optional { font-weight: 500; color: var(--muted); font-size: .875rem; margin-left: .35rem; }

.field input, .field textarea {
  width: 100%; min-height: 3.4rem; padding: .85rem 1rem;
  background: var(--field); color: var(--white);
  border: 1.5px solid #4a4a4a; border-radius: 10px;
  font-size: 1.0625rem; line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #7d7d7d; }
.field input:hover, .field textarea:hover { border-color: #777; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 229, 0, .28); }
.field.has-error input, .field.has-error textarea { border-color: #ff6b57; }
.field__error { color: #ff8674; font-size: .9375rem; font-weight: 600; }

.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 34rem) { .field-row { grid-template-columns: 1fr 1fr; } }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.segmented label { position: relative; display: block; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented span {
  display: grid; place-items: center; min-height: 3.4rem; padding: .5rem .75rem;
  border: 1.5px solid #4a4a4a; border-radius: 10px; font-weight: 700; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.segmented input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.segmented input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }

.form__hint { color: var(--muted); font-size: .9375rem; margin-top: -.5rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; cursor: pointer; color: var(--muted); font-size: 1rem; }
.check input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--yellow); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__preview { border: 1.5px dashed var(--yellow); color: var(--yellow); border-radius: 10px; padding: .9rem 1rem; font-size: .9375rem; }
.form__error { background: #2a0d09; border: 1.5px solid #ff6b57; color: #ffd0c9; border-radius: 10px; padding: .9rem 1rem; font-weight: 600; }
.form__fine { color: var(--muted); font-size: .875rem; margin-top: -1.25rem; text-align: center; }

.sent { border: 2px solid var(--yellow); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1rem; }
.sent h3 { font-size: calc(clamp(1.6rem, 3.4vw, 2.25rem) * var(--display-scale)); line-height: 1; }
.sent p { color: var(--muted); max-width: 32em; }
.sent__actions { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; align-items: center; }
.sent:focus { outline: none; }

@media (min-width: 60rem) {
  .nominate { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: 5rem; row-gap: 2.5rem; align-items: start; }
  .nominate__intro { grid-column: 1; grid-row: 1; }
  .steps { grid-column: 1; grid-row: 2; order: 0; }
  .formwrap { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Founders ---------- */

.founders { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 2.5rem 2rem; }
.founder { display: grid; gap: .6rem; justify-items: start; align-content: start; }
.founder img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: .75rem; background: #ddd; }
.founder h3 { font-size: calc(1.75rem * var(--display-scale)); line-height: 1; }
.founder p { color: var(--muted); max-width: 28em; }

@media (min-width: 44rem) {
  .founders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .founders { gap: 3rem; }
}

/* ---------- Join the club ---------- */

.band--yellow { padding-block: clamp(3.5rem, 7vw, 6rem); }
.club { display: grid; gap: 2.5rem; align-items: start; }
.club__pitch { display: grid; gap: 1.5rem; }
.club__list { border-top: 2px solid var(--black); }
.club__list li { padding-block: .85rem; border-bottom: 1px solid rgba(0, 0, 0, .35); font-weight: 700; font-size: 1.125rem; }
.club__price { display: flex; align-items: baseline; gap: .6rem; }
.club__price strong {
  font-family: var(--num-font); font-weight: var(--num-weight); font-style: var(--num-style);
  font-size: calc(clamp(3.25rem, 8vw, 5rem) * var(--num-scale)); line-height: .9;
}
.club__price span { font-weight: 700; font-size: 1.25rem; }
.club__first { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: grid; gap: .4rem; }
.club__first h3 { color: var(--yellow); }
.club__first p { max-width: 34em; }
@media (min-width: 60rem) { .club { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 5rem; } }

/* The same form parts, re-inked for the yellow band. */
.band--yellow .form legend { border-bottom-color: var(--black); }
.band--yellow .optional { color: #3d3800; }
.band--yellow .field input, .band--yellow .field textarea { background: var(--white); color: var(--black); border-color: var(--black); }
.band--yellow .field input:hover, .band--yellow .field textarea:hover { border-color: var(--black); }
.band--yellow .field input:focus-visible, .band--yellow .field textarea:focus-visible { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); }
.band--yellow .field.has-error input, .band--yellow .field.has-error textarea { border-color: #b3261e; }
.band--yellow .field__error { color: #8c1d18; }
.band--yellow .form__preview { border-color: var(--black); color: var(--black); }
.band--yellow .form__error { background: var(--white); border-color: #b3261e; color: #8c1d18; }
.band--yellow .form__fine { color: #2b2700; }
.band--yellow .sent { border-color: var(--black); }
.band--yellow .sent p { color: #2b2700; }

/* ---------- Footer ---------- */

.footer { padding-block: 3rem 7rem; border-top: 1px solid var(--rule-dark); }
.footer__grid { display: grid; gap: 1.25rem; color: var(--steel); font-size: .9375rem; }
.footer__grid img { width: 118px; }
.footer__social { display: grid; gap: .25rem; }
.footer__social a {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem;
  color: var(--white); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.footer__social a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.footer__social svg { flex: none; }
@media (min-width: 44rem) {
  .footer { padding-bottom: 3rem; }
  .footer__grid { grid-template-columns: auto 1fr auto; align-items: end; column-gap: 2.5rem; }
}

/* ---------- Floating call to action ---------- */

.floatcta {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule-dark);
  opacity: 0; visibility: hidden; transform: translateY(1rem);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.floatcta.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (min-width: 44rem) {
  .floatcta { left: auto; right: 1.5rem; bottom: 1.5rem; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .floatcta .btn { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
}

/* ---------- Video player ---------- */

.player {
  padding: 0; border: 0; background: transparent; color: var(--white);
  max-width: none; max-height: none; width: 100vw; height: 100dvh; overflow: hidden;
}
.player[open] { display: grid; place-items: center; }
.player::backdrop { background: rgba(0, 0, 0, .92); }
.player video { max-height: calc(100dvh - 6rem); max-width: min(100vw - 1.5rem, 30rem); border-radius: var(--radius); background: #000; }
.player__close {
  position: absolute; top: max(.75rem, env(safe-area-inset-top)); right: .75rem;
  min-height: 2.75rem; padding: .5rem 1.1rem; border-radius: 999px;
  background: var(--white); color: var(--black); border: 0; font-weight: 800; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
