/* ==========================================================================
   GTFF – styles
   Mobile first. Tokens first, then base, layout, components, sections.
   ========================================================================== */

@font-face {
  font-family: 'Red Hat Display';
  src: url('/assets/fonts/red-hat-display-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Red Hat Display';
  src: url('/assets/fonts/red-hat-display-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Red Hat Text';
  src: url('/assets/fonts/red-hat-text-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Red Hat Text';
  src: url('/assets/fonts/red-hat-text-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --ink: #12100f;
  --ink-2: #1c1917;
  --paper: #faf8f5;
  --white: #ffffff;
  --line: #e4ded6;
  --line-dark: #3a3430;
  --muted: #5c554f;
  --muted-on-dark: #b9b0a7;
  --accent: #e0241b;        /* signal red */
  --accent-strong: #c41c14;
  --error: #c41c14;
  --error-on-dark: #ff8a80;
  --success: #1f7a45;

  --font-display: 'Red Hat Display', system-ui, sans-serif;
  --font-text: 'Red Hat Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); text-transform: uppercase; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

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

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.eyebrow-accent { color: var(--accent-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  background: transparent; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { text-decoration: none; }
.logo-mark {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1;
}
.logo-dot {
  position: absolute; right: -0.42em; top: -0.12em;
  width: 0.34em; height: 0.34em; border-radius: 50%; background: var(--accent);
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-family: var(--font-display); font-weight: 500; text-decoration: none; display: none; }
.nav-link:hover { color: var(--accent-strong); }
.site-nav .btn { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
@media (min-width: 640px) { .nav-link { display: inline; } }

/* ---------- Hero ---------- */
.hero { padding-bottom: clamp(56px, 8vw, 112px); }
.hero-frame { display: grid; gap: 32px; }
.hero-media { position: relative; overflow: hidden; background: var(--ink); border-radius: var(--radius); }
.hero-media img { width: 100%; height: clamp(440px, 72vh, 760px); object-fit: cover; object-position: 30% 50%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 8, 7, .78) 0%, rgba(10, 8, 7, .25) 45%, rgba(10, 8, 7, 0) 70%);
}
.hero-title {
  position: absolute; z-index: 1; left: clamp(20px, 4vw, 56px); right: 20px; bottom: clamp(20px, 4vw, 48px);
  margin: 0; color: var(--white);
  font-size: clamp(2.75rem, 10.5vw, 9rem); line-height: 0.88; letter-spacing: -0.03em; text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-title span:nth-child(3) { font-size: 0.5em; letter-spacing: -0.01em; margin-top: 0.22em; }
.hero-body { display: grid; gap: 8px; align-items: start; }
.hero-text { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; max-width: 34em; margin-bottom: 24px; }
.hero-body .btn { justify-self: start; }

@media (min-width: 900px) {
  .hero-body { grid-template-columns: 220px 1fr auto; gap: 40px; align-items: baseline; }
  .hero-text { margin: 0; }
  .hero-body .btn { align-self: center; }
}

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 85%; border-radius: var(--radius); }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; max-width: 36em; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 112px); }
  .about-media img { aspect-ratio: 4 / 5; }
}

/* ---------- Submission (dark, cinematic) ---------- */
.submission { background: var(--ink); color: var(--white); }
.submission .eyebrow { color: var(--muted-on-dark); }
.submission-grid { display: grid; gap: 48px; }
.submission-intro p:not(.eyebrow) { color: var(--muted-on-dark); font-size: 1.125rem; max-width: 30em; }
.notes { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line-dark); max-width: 30em; }
.notes li { padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: var(--muted-on-dark); }
@media (min-width: 1000px) {
  .submission-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 112px); }
  .submission-intro { position: sticky; top: 32px; align-self: start; }
}

.submission-form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; margin: 0; min-width: 0; }
.field label, .field legend { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; }
fieldset.field { border: 0; padding: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.req { color: var(--error-on-dark); }
.optional { font-weight: 500; color: var(--muted-on-dark); }

.submission input[type='text'],
.submission input[type='email'],
.submission input[type='url'],
.submission input[type='password'],
.submission textarea {
  width: 100%; min-height: 52px;
  padding: 14px 16px;
  background: var(--ink-2); color: var(--white);
  border: 1.5px solid #4a433e; border-radius: var(--radius);
  font: inherit; font-size: 1rem;
  transition: border-color .2s;
}
.submission textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.submission input::placeholder { color: #8a817a; }
.submission input:hover, .submission textarea:hover { border-color: #6f665f; }
.submission input:focus, .submission textarea:focus { border-color: var(--white); outline: none; box-shadow: 0 0 0 3px rgba(224, 36, 27, .55); }
.submission input[aria-invalid='true'], .submission textarea[aria-invalid='true'] { border-color: var(--error-on-dark); }

.field-hint { margin: 0; font-size: .875rem; color: var(--muted-on-dark); }
.counter { float: right; font-variant-numeric: tabular-nums; }
.field-error { margin: 0; font-size: .875rem; font-weight: 600; color: var(--error-on-dark); }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 12px;
  border: 1.5px solid #4a433e; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; text-align: center;
  transition: border-color .2s, background-color .2s;
}
.choice:hover span { border-color: #6f665f; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 3px; }
.choice input[aria-invalid='true'] + span { border-color: var(--error-on-dark); }

.field-check { grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.field-check label { font-family: var(--font-text); font-weight: 400; color: var(--muted-on-dark); font-size: .9375rem; }
.field-check label a { color: var(--white); }
.field-check .field-error { grid-column: 2; }

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

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.form-actions .btn { min-height: 56px; padding: 0 36px; font-size: 1.0625rem; }
.form-actions .btn-primary:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.form-status { border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; outline: none; }
.form-status p { margin: 0; }
.form-status-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 4px !important; }
.form-status[data-state='success'] { background: var(--white); color: var(--ink); border-left: 6px solid var(--success); }
.form-status[data-state='error'] { background: #2a1210; color: var(--white); border-left: 6px solid var(--error-on-dark); }
.form-status:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); text-transform: uppercase; }
.legal h2 { font-size: 1.25rem; text-transform: none; margin: 2em 0 .5em; }
.legal p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: grid; gap: 32px; }
.footer-mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 12vw, 7rem); line-height: .85; letter-spacing: -0.03em; margin: 0 0 12px; }
.footer-name { margin: 0; color: var(--muted); }
.footer-meta { display: grid; gap: 12px; color: var(--muted); font-size: .9375rem; }
.footer-meta p { margin: 0; }
.footer-meta nav { display: flex; gap: 24px; }
.footer-meta a:hover { color: var(--accent-strong); }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-meta { text-align: right; justify-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Founder (inside About) ---------- */
.founder {
  display: grid; gap: 32px;
  margin-top: clamp(72px, 10vw, 140px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 2px solid var(--ink);
}
.founder-name {
  /* Sized so the 16-letter surname always fits on one line. */
  font-size: min(8.4vw, 6.5rem); line-height: .9; letter-spacing: -0.03em;
  text-transform: uppercase; margin: 0 0 20px; white-space: nowrap;
}
.founder-name span { display: block; }
.founder-name span:first-child { color: var(--accent); }
.founder-role { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; color: var(--muted); margin: 0; }
.founder-lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.3; color: var(--ink); }
.founder-body > p:not(.founder-lead) { color: var(--muted); font-size: 1.0625rem; max-width: 36em; }
.founder-facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.founder-facts div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.founder-facts dt { font-family: var(--font-display); font-weight: 700; }
.founder-facts dd { margin: 0; color: var(--muted); }
.founder-films .eyebrow { margin-bottom: 12px; }
.founder-films ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.founder-films li {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 4.4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em;
}
.founder-films li:not(:last-child)::after { content: '/'; color: var(--accent); margin: 0 .35em; font-weight: 500; }
.founder-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 640px) {
  .founder-facts div { grid-template-columns: 200px 1fr; gap: 24px; }
}
@media (min-width: 960px) {
  .founder { row-gap: 48px; }
  .founder-body { display: grid; grid-template-columns: 5fr 6fr; column-gap: clamp(48px, 7vw, 112px); align-items: start; }
  .founder-lead { grid-row: 1 / span 4; margin: 0; }
  .founder-body > :not(.founder-lead) { grid-column: 2; }
  .founder-body > p:not(.founder-lead) { margin-top: 0; }
  .founder-films { padding-top: 40px; border-top: 1px solid var(--line); }
  .founder.has-portrait { grid-template-columns: 5fr 7fr; column-gap: clamp(48px, 7vw, 112px); }
  .founder.has-portrait .founder-portrait { grid-row: 1 / span 2; }
  .founder.has-portrait .founder-films { grid-column: 1 / -1; }
}
