/* StatementGames Media — site styles
   Tokens follow the approved palette (knowledge base SGM-D003) and the deck design family:
   one dark canvas, white condensed headlines, restrained logo red. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --raised: #111111;
  --dark: #222222;
  --line: #2b2b2b;
  --white: #ffffff;
  --soft: #d0d0d0;
  --muted: #a0a0a0;
  --red: #e42127;
  --red-hover: #c51c21;

  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Archivo", Arial, Helvetica, sans-serif;

  --gutter: clamp(24px, 4.5vw, 64px);
  --max: 1312px;
  --section: clamp(80px, 9vw, 136px);
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.875rem, 2rem + 4.2vw, 6rem); }
h2 { font-size: clamp(2.375rem, 1.6rem + 3.2vw, 4.5rem); }
h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.02; }
h4 { font-size: 1.375rem; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

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

.section { padding-block: var(--section); }
.section--raised { background: var(--raised); }
.section--divided { border-top: 1px solid #1a1a1a; }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }

.section-head { max-width: 980px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { max-width: 640px; margin-top: 24px; color: var(--soft); font-size: 1.125rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
/* Small red text only on pure black (4.55:1). On #111 surfaces eyebrows turn white. */
.section--raised .eyebrow { color: var(--white); }
.eyebrow::before {
  content: "";
  width: 28px; height: 3px;
  background: var(--red);
}
.eyebrow--bare::before { display: none; }

.lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); color: var(--soft); max-width: 620px; }

.rule { width: 56px; height: 4px; background: var(--red); border: 0; margin: 32px 0 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn--ghost { background: transparent; border-color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.btn .arrow { font-family: var(--body); font-weight: 400; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid #1a1a1a;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(10px); }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 58px; height: auto; }
.brand__name {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}
.brand__name span { display: block; color: var(--red); }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; }
.site-nav a:not(.btn) {
  display: inline-block;
  padding-block: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.site-nav .btn { min-height: 44px; padding: 0.5rem 1.15rem; font-size: 1.0625rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font: 600 0.875rem/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }

@media (max-width: 900px) {
  .brand__name { font-size: 1.125rem; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 40px;
    background: var(--black);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn) {
    display: block;
    padding-block: 16px;
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 0;
  }
  .site-nav a[aria-current="page"] { color: var(--red); }
  .site-nav .btn { min-height: 52px; font-size: 1.1875rem; }
  /* Without JavaScript, the menu simply wraps under the brand. */
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 16px; }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; }
}

/* ---------- Two-column page elements ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}
.split__text { align-self: center; }
.split__text h2 { margin-bottom: 28px; }
.split__text > p { max-width: 620px; color: var(--soft); font-size: 1.125rem; }
.split__media { display: flex; flex-direction: column; gap: 32px; }
.split__media .image-slot { flex: 1 1 auto; }
.split__media .btn { align-self: center; }
/* Desktop only: the image column sits on the left. The text stays first in reading order. */
.split--media-left .split__media { order: -1; }

.intro { padding-block: clamp(56px, 7vw, 112px); border-bottom: 1px solid #1a1a1a; }
.intro .split { min-height: min(calc(100svh - var(--header-h) - 2 * clamp(56px, 7vw, 112px)), 720px); }
.intro h1 { max-width: 13ch; font-size: clamp(2.75rem, 1.9rem + 3.4vw, 5.25rem); }
.intro .lede { margin-top: 28px; }
.intro .lede + .lede { margin-top: 18px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--media-left .split__media { order: 0; }
  .intro .split { min-height: 0; }
}

/* Reserved space for a future image: neutral, decorative, hidden from assistive technology. */
.image-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(300px, 34vw, 560px);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px),
    var(--raised);
}
.section--raised .image-slot {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 14px),
    var(--black);
}
.image-slot::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
}
.image-slot span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .image-slot { min-height: 0; aspect-ratio: 16 / 10; }
  .image-slot::before { inset: auto 0 0 0; width: auto; height: 4px; }
}

/* ---------- Audience links (Home: Our Services) ---------- */

.audience-list { display: grid; gap: 16px; margin-top: 40px; list-style: none; }
.audience {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
  align-items: center;
  padding: 26px 28px 26px 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: var(--black);
  transition: border-color 0.15s ease;
}
.audience h3 { font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2.125rem); text-transform: uppercase; }
.audience h3 a { text-decoration: none; }
.audience h3 a::after { content: ""; position: absolute; inset: 0; }
.audience h3 a:focus-visible { outline: none; }
.audience:focus-within { outline: 3px solid var(--white); outline-offset: 3px; }
.audience p { grid-column: 1; margin: 0; color: var(--soft); }
.audience__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--red);
  transition: transform 0.15s ease;
}
.audience:hover { border-color: #4a4a4a; border-left-color: var(--red); }
.audience:hover .audience__arrow { transform: translateX(4px); }

/* ---------- Capability and service lists ---------- */

.cap-list { list-style: none; }
.cap { padding-block: 22px; border-top: 1px solid var(--line); }
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap h3 { margin-bottom: 10px; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); text-transform: uppercase; }
.cap p { max-width: 580px; margin: 0; color: var(--soft); }
.dot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  color: var(--soft);
  line-height: 1.5;
}
.dot-list li:not(:last-child)::after {
  content: "·";
  margin-inline: 10px;
  color: var(--red);
  font-weight: 700;
}

/* ---------- Selected work ---------- */

.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
}
.work__item { margin: 0; }
.work__item h3 { margin-bottom: 16px; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); text-transform: uppercase; }
.work__item a { display: block; border: 1px solid var(--line); cursor: zoom-in; transition: border-color 0.15s ease; }
.work__item a:hover { border-color: #6a6a6a; }
.work__item img { width: 100%; aspect-ratio: 16 / 9; }
/* One remaining slide: keep it at column width, centered above the button. */
.work--single { grid-template-columns: minmax(0, 1fr); max-width: 632px; margin-inline: auto; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
}

/* ---------- Let's Talk ---------- */

.talk-intro { padding-block: clamp(56px, 7vw, 112px) clamp(32px, 4vw, 56px); }
.talk-intro h1 { max-width: 14ch; font-size: clamp(2.75rem, 1.9rem + 3.4vw, 5.25rem); }
.talk-intro .lede { margin-top: 24px; }
.talk-form { padding-top: clamp(32px, 4vw, 56px); }

.talk {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.talk__aside h2 { margin-bottom: 20px; }
.talk__aside > p { color: var(--soft); font-size: 1.125rem; }
.contact-card {
  margin-top: 32px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
}
.contact-card a { font-size: 1.1875rem; font-weight: 600; word-break: break-word; }
@media (max-width: 960px) {
  .talk { grid-template-columns: 1fr; }
}

.next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
}
.next li { padding-top: 24px; border-top: 2px solid var(--red); }
/* 22px bold counts as large text, so red is allowed on the #111 surface (4.09:1). */
.next__num { display: block; margin-bottom: 14px; font: 700 1.375rem/1 var(--display); color: var(--red); }
.next h3 { margin-bottom: 12px; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); text-transform: uppercase; }
.next p { margin: 0; color: var(--soft); }
@media (max-width: 900px) {
  .next { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Forms ---------- */

.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label,
.field legend {
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.field .optional { color: var(--muted); font-weight: 400; }
.field .hint { margin: 0; color: var(--muted); font-size: 0.875rem; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #4a4a4a;
  border-radius: 2px;
  background: var(--raised);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--white); outline: 3px solid var(--white); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
.field .error { margin: 0; color: var(--white); font-size: 0.875rem; font-weight: 600; }
.field .error::before { content: "! "; color: var(--red); font-weight: 700; }
.field .error[hidden] { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #4a4a4a;
  border-radius: 2px;
  background: var(--raised);
  font-size: 0.9375rem;
  font-weight: 500;
}
.choice span::before {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid var(--soft);
  border-radius: 50%;
}
.choice input[type="checkbox"] + span::before { border-radius: 2px; }
.choice input:checked + span { border-color: var(--red); }
.choice input:checked + span::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 2px var(--raised); }
.choice input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }

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

.form__note { margin: 0; color: var(--muted); font-size: 0.875rem; }
.form__status { margin: 0; padding: 16px 20px; border-left: 4px solid var(--red); background: var(--raised); }
.form__status[hidden] { display: none; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 760px; }
.prose h1 { margin-bottom: 24px; }
.prose h2 { margin: 56px 0 16px; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); text-transform: uppercase; }
.prose p,
.prose li { color: var(--soft); }
.prose ul { padding-left: 20px; margin-bottom: 1em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--white); }
.prose .updated { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Simple page ---------- */

.simple { min-height: 56vh; display: flex; align-items: center; }
.simple h1 { max-width: 14ch; }

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

.site-footer {
  padding-block: 64px 40px;
  border-top: 1px solid #1a1a1a;
  background: var(--black);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.footer-brand img { width: 72px; margin-bottom: 20px; }
.footer-brand p { max-width: 380px; font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  font-weight: 600;
  text-decoration: none;
}
.footer-social:hover span { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #1a1a1a;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-legal a { color: var(--soft); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

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