/* Athletorr. Every value here comes from DESIGN.md. */

/* Fonts are hosted with the site (latin character set). */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('/assets/fonts/archivo.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 400; font-display: swap; src: url('/assets/fonts/newsreader-italic.woff2') format('woff2'); }

:root {
  /* Brand colours */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-navy: #242D5A;
  --color-plum: #532464;
  --color-magenta: #E41A70;
  --gradient-bolt: linear-gradient(180deg, #532464 0%, #E41A70 100%);
  --gradient-bolt-rule: linear-gradient(90deg, #532464 0%, #E41A70 100%);

  /* Supporting neutrals */
  --color-midnight: #0B0E1F;
  --color-mist: #A6ABC4;
  --color-hairline: rgba(255, 255, 255, 0.18);
  --color-hairline-strong: rgba(255, 255, 255, 0.4);
  --color-magenta-hover: #FF3D8B;
  --color-error: #FF6B6B;

  /* Fonts */
  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-accent: 'Newsreader', Georgia, serif;

  /* Type scale */
  --text-hero: clamp(2.5rem, 1.27rem + 5.26vw, 6rem);
  --text-display: clamp(2rem, 1.3rem + 3vw, 4rem);
  --text-heading: clamp(1.5rem, 1.15rem + 1.5vw, 2.5rem);
  --text-heading-sm: clamp(1.25rem, 1.1rem + 0.66vw, 1.6875rem);
  --text-accent: clamp(1.5rem, 0.84rem + 2.82vw, 3.375rem);
  --text-lead: clamp(1.125rem, 0.99rem + 0.56vw, 1.5rem);
  --text-body: clamp(1rem, 0.98rem + 0.09vw, 1.0625rem);
  --text-label: clamp(0.75rem, 0.73rem + 0.09vw, 0.8125rem);
  --text-caption: 0.75rem;

  /* Spacing */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-120: 120px;
  --space-160: 160px;

  /* Layout */
  --page-max-width: 1440px;
  --gutter: clamp(24px, 4.5vw, 64px);
  --section-gap: clamp(80px, 11vw, 160px);
  --grid-gap: 24px;
  --bar-height: 64px;

  /* Shape */
  --radius: 0px;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-height) + var(--space-24)); }

body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; border-radius: var(--radius); }

:focus-visible { outline: 2px solid var(--color-magenta); outline-offset: 2px; }
::selection { background: var(--color-magenta); color: var(--color-white); }

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

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--color-white); color: var(--color-black);
  padding: var(--space-16) var(--space-24); text-decoration: none;
}
.skip:focus { top: var(--space-8); }

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

.t-hero, .t-display, .t-heading, .t-heading-sm {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 800;
  font-stretch: 112%;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.t-hero { font-size: var(--text-hero); line-height: 0.95; }
.t-display { font-size: var(--text-display); line-height: 1; }
.t-heading { font-size: var(--text-heading); line-height: 1.05; }
.t-heading-sm { font-size: var(--text-heading-sm); line-height: 1.15; font-weight: 700; font-stretch: 100%; }

.t-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 200;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -0.01em;
}

.t-lead { font-size: var(--text-lead); line-height: 1.4; }
.t-mist { color: var(--color-mist); }

.label {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: var(--text-label);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bracket { color: var(--color-mist); }
.bracket::before { content: "[\00a0\00a0"; }
.bracket::after { content: "\00a0\00a0]"; }

.eyebrow { display: block; margin-bottom: var(--space-24); }

.prose > * + * { margin-top: 1em; }
.prose a, .text-link { color: var(--color-white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.2s; }
.prose a:hover, .text-link:hover { color: var(--color-magenta-hover); }

.pull {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 200;
  font-size: var(--text-accent);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 900px;
  text-wrap: balance;
}

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

.arr { display: inline-block; transition: transform 0.2s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: var(--space-16) var(--space-24);
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-display); font-stretch: 75%; font-weight: 600;
  font-size: var(--text-label); line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--color-magenta); color: var(--color-white); border-color: var(--color-magenta); }
.btn--primary:hover { background: var(--color-white); color: var(--color-black); border-color: var(--color-white); }
.btn--outline { background: transparent; color: var(--color-white); border-color: var(--color-hairline-strong); }
.btn--outline:hover { border-color: var(--color-white); }

.link-ghost {
  display: inline-flex; align-items: center; gap: var(--space-8); min-height: 44px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 600;
  font-size: var(--text-label); line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-white); text-decoration: none; transition: color 0.2s;
}
.link-ghost:hover { color: var(--color-magenta-hover); }
.link-ghost:hover .arr { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-16) var(--space-32); }

/* ---------- Top bar ---------- */

.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-height); background: var(--color-black); }
.bar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); }
.bar__logo { display: flex; align-items: center; height: 100%; }
.bar__logo img { height: 40px; width: auto; margin-top: 10px; }
.bar__nav { display: flex; align-items: center; gap: var(--space-32); }
.bar__link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color 0.2s; box-shadow: none; }
.bar__link:hover { color: var(--color-magenta-hover); }
.bar__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.bar__menu { display: none; align-items: center; gap: var(--space-8); min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.bar__menu-glyph { display: inline-block; font-size: 1.4em; line-height: 1; transition: transform 0.2s; }
.bar__menu[aria-expanded="true"] .bar__menu-glyph { transform: rotate(45deg); }

.menu { position: fixed; inset: var(--bar-height) 0 0 0; z-index: 40; background: var(--color-midnight); overflow-y: auto; padding-block: var(--space-48); }
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); }
.menu__nav a.t-display { text-decoration: none; }
.menu__nav .btn { margin-top: var(--space-24); }

@media (max-width: 899px) {
  .bar__nav { display: none; }
  .bar__menu { display: inline-flex; }
}
@media (min-width: 900px) {
  .menu { display: none; }
}

/* ---------- Sections and grid ---------- */

.section { padding-block: calc(var(--section-gap) / 2); }
.section--first { padding-top: 0; }
.section--rule { border-top: 1px solid var(--color-hairline); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-32) var(--grid-gap); }
.grid > * { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .col-head { grid-column: 1 / span 5; }
  .col-body { grid-column: 7 / span 6; }
  .col-side { grid-column: 1 / span 4; }
  .col-main { grid-column: 6 / span 7; }
  .col-half-a { grid-column: 1 / span 5; }
  .col-half-b { grid-column: 7 / span 6; }
  .col-form { grid-column: 1 / span 7; }
  .col-aside { grid-column: 9 / span 4; }
  .sticky { position: sticky; top: calc(var(--bar-height) + var(--space-32)); align-self: start; }
}

/* ---------- Policy rows (Privacy) ---------- */

.policy { border-top: 1px solid var(--color-hairline); }
.policy__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8) var(--grid-gap); padding-block: var(--space-32); border-bottom: 1px solid var(--color-hairline); align-items: baseline; }
.policy__row > * { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .policy__row dt { grid-column: 1 / span 4; }
  .policy__row dd { grid-column: 6 / span 6; }
}

.headrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-16) var(--space-24); margin-bottom: var(--space-48); }
.headrow .t-display { max-width: 16ch; }

.stack > * + * { margin-top: var(--space-24); }
.stack-lg > * + * { margin-top: var(--space-48); }

/* ---------- Hero stage (Home) ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--bar-height));
  min-height: calc(100svh - var(--bar-height));
  display: flex; align-items: flex-end;
  padding-block: var(--space-64) var(--space-64);
}
.hero__bolt {
  position: absolute; z-index: 0; pointer-events: none;
  top: -4%; right: 2%; height: 112%; width: auto; max-width: none;
  /* Show the bolt only, so the white stroke of the mark never sits behind the white headline. */
  clip-path: polygon(0 0, 28.4% 0, 28.4% 55.63%, 57.6% 55.63%, 28.4% 100%, 28.4% 70.2%, 0 70.2%);
}
.hero__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
/* The one permitted overlay: it keeps the white headline readable over moving footage. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.66) 55%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 45%);
}
@media (max-width: 899px) {
  .hero__scrim { background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.68) 55%, rgba(0, 0, 0, 0.5) 100%); }
}
.hero__in { position: relative; z-index: 1; }
.hero__title span { display: block; }
.hero__title .t-accent { display: block; font-size: 1.06em; line-height: 1; margin-top: 0.06em; }
.hero__rule { height: 2px; border: 0; margin: var(--space-40) 0 var(--space-32); background: var(--gradient-bolt-rule); }
.hero__lead { max-width: 560px; margin-bottom: var(--space-32); }

@media (max-width: 899px) {
  .hero__bolt { right: -22%; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .hero .t-hero { font-size: clamp(2.5rem, 10.5vh, 6rem); }
  .hero__rule { margin: var(--space-24) 0; }
}

/* ---------- Page hero (inner pages) ---------- */

.phero { padding-block: clamp(72px, 9vw, 144px) calc(var(--section-gap) / 2); }
.phero__lead { max-width: 720px; margin-top: var(--space-32); }
.phero .actions { margin-top: var(--space-32); }

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

.ticker { display: flex; overflow: hidden; border-block: 1px solid var(--color-hairline); }
.ticker__track { display: flex; align-items: center; flex-shrink: 0; }
.ticker.is-running .ticker__track { animation: ticker 48s linear infinite; }
.ticker.is-running:hover .ticker__track, .ticker.is-running:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: baseline; gap: 12px; padding-block: 20px; text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.ticker__item:hover { color: var(--color-magenta-hover); }
.ticker__item .t-mist { transition: color 0.2s; }
.ticker__bolt { height: 22px; width: auto; margin-inline: var(--space-32); }
.ticker:not(.is-running) { overflow-x: auto; }
.ticker:not(.is-running) .ticker__track { padding-inline: var(--gutter); }

@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Service rows ---------- */

.rows { border-top: 1px solid var(--color-hairline); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8) var(--grid-gap);
  align-items: baseline; padding-block: var(--space-32);
  border-bottom: 1px solid var(--color-hairline); text-decoration: none;
}
.row > * { grid-column: 1 / -1; }
.row__num { color: var(--color-mist); }
.row__title { transition: color 0.2s; }
.row__body { color: var(--color-mist); }
.row__arr { display: none; }
a.row:hover .row__title { color: var(--color-magenta-hover); }
a.row:hover .arr { transform: translateX(4px); }

@media (min-width: 900px) {
  .row__num { grid-column: 1 / span 1; }
  .row__title { grid-column: 2 / span 5; }
  .row__body { grid-column: 7 / span 5; }
  .row__arr { display: block; grid-column: 12 / span 1; justify-self: end; font-size: var(--text-heading-sm); }
}

/* ---------- Project tiles ---------- */

.tiles { display: grid; grid-template-columns: 1fr; gap: var(--space-48) var(--grid-gap); }
@media (min-width: 600px) and (max-width: 899px) {
  .tile { display: grid; grid-template-columns: 2fr 3fr; column-gap: var(--grid-gap); align-content: end; }
  .tile__media { grid-column: 1; grid-row: 1 / span 6; }
  .tile > :not(.tile__media) { grid-column: 2; }
  .tile__meta { align-self: end; margin-top: 0; }
  .tile .link-ghost { align-self: start; }
}
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tile__media { display: block; }
.tile__meta { display: block; margin-top: var(--space-16); color: var(--color-mist); }
.tile__title { margin-top: var(--space-8); }
.tile__body { margin-top: var(--space-8); color: var(--color-mist); }
.tile .link-ghost { margin-top: var(--space-8); }

/* ---------- Image placeholder ---------- */

.ph { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-midnight); text-decoration: none; }
.ph__bolt { height: 36%; width: auto; opacity: 0.45; }
.ph__cap { position: absolute; left: var(--space-16); bottom: var(--space-16); color: var(--color-mist); }
a.ph .ph__cap { color: var(--color-white); display: inline-flex; gap: var(--space-8); transition: color 0.2s; }
a.ph:hover .ph__cap { color: var(--color-magenta-hover); }
a.ph:hover .arr { transform: translateX(4px); }
@media (min-width: 700px) {
  .ph--wide { aspect-ratio: 16 / 9; }
  .ph--wide .ph__bolt { height: 46%; }
  .ph__cap { left: var(--space-24); bottom: var(--space-24); }
}

/* ---------- Photos ---------- */

.shot { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-midnight); }
.shot img, .shot video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .shot--wide { aspect-ratio: 16 / 9; } }

.gallery { columns: 1; column-gap: var(--grid-gap); }
.gallery img { width: 100%; margin-bottom: var(--grid-gap); break-inside: avoid; background: var(--color-midnight); }
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 900px) { .gallery--3 { columns: 3; } }

.phero__media { margin-top: var(--space-48); }
@media (min-width: 900px) {
  .phero--split .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: end; }
  .phero__text { grid-column: 1 / span 7; }
  .phero__media { grid-column: 9 / span 4; margin-top: 0; }
}

/* ---------- Spec list and plain lists ---------- */

.spec { border-top: 1px solid var(--color-hairline); }
.spec__row { display: grid; grid-template-columns: minmax(96px, 1fr) 2fr; gap: var(--space-24); padding-block: var(--space-16); border-bottom: 1px solid var(--color-hairline); align-items: baseline; }
.spec__row dt { color: var(--color-mist); }

.lines { border-top: 1px solid var(--color-hairline); }
.lines li { padding-block: var(--space-16); border-bottom: 1px solid var(--color-hairline); }

.note { color: var(--color-mist); }
.note strong { color: var(--color-white); font-weight: 600; }

/* ---------- Service sections (Services page) ---------- */

.service { border-top: 1px solid var(--color-hairline); padding-block: calc(var(--section-gap) / 2); }
.service__num { display: block; margin-bottom: var(--space-24); color: var(--color-mist); }
.service__sub { display: block; margin-bottom: var(--space-16); color: var(--color-mist); }

/* ---------- Numbered steps ---------- */

.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-40) var(--grid-gap); }
@media (min-width: 900px) { .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { border-top: 1px solid var(--color-hairline); padding-top: var(--space-24); }
.step__num { display: block; color: var(--color-mist); margin-bottom: var(--space-24); }
.step__title { margin-bottom: var(--space-8); }
.step__body { color: var(--color-mist); }
.steps--side .step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-24); align-items: baseline; }
.steps--side .step__num { margin-bottom: 0; }
.steps--side .step__body { color: var(--color-white); }

/* ---------- Call-to-action band ---------- */

.band { background: var(--color-navy); padding-block: clamp(64px, 9vw, 120px); margin-top: calc(var(--section-gap) / 2); }
.band__lead { max-width: 640px; margin-top: var(--space-24); }
.band .actions { margin-top: var(--space-40); }
.band .link-ghost:hover { color: var(--color-white); }
.band .bracket { color: var(--color-white); }
.band__next { text-decoration: none; display: block; }
.band__next:hover .arr { transform: translateX(8px); }

/* ---------- Form ---------- */

.form { display: grid; gap: var(--space-40); }
.field { display: grid; gap: var(--space-8); }
.field > label, .field > .label { color: var(--color-mist); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 12px 0; background: transparent; color: var(--color-white);
  border: 0; border-bottom: 1px solid var(--color-hairline-strong);
  font-size: var(--text-lead); line-height: 1.4; outline: none;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { border-bottom: 2px solid var(--color-magenta); padding-bottom: 11px; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--color-white); box-shadow: 0 0 0 100px var(--color-black) inset; caret-color: var(--color-white); }

.choice { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--space-16); }
.choice legend { padding: 0; color: var(--color-mist); margin-bottom: var(--space-16); }
.choice__opts { display: flex; flex-wrap: wrap; gap: var(--space-16); }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__opt input:checked + .btn { background: var(--color-white); color: var(--color-black); border-color: var(--color-white); }
.choice__opt input:focus-visible + .btn { outline: 2px solid var(--color-magenta); outline-offset: 2px; }
.choice__opt input:hover + .btn { border-color: var(--color-white); }

.form__hp { position: absolute; left: -9999px; }
.form__foot { display: grid; gap: var(--space-24); justify-items: start; }
.form__small { color: var(--color-mist); max-width: 480px; }
.form__status { color: var(--color-error); }
.form__status:empty { display: none; }

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

/* Every page ends in the navy band or the ticker, so the footer needs no rule or gap of its own. */
.footer { padding-block: var(--space-64) var(--space-48); overflow: hidden; }
.section + .ticker, .phero + .ticker { margin-top: calc(var(--section-gap) / 2); }
.footer__grid { display: grid; gap: var(--space-32); }
.footer__line { max-width: 28ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-32); }
.footer__nav a, .footer__social a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color 0.2s; }
.footer__nav a:hover, .footer__social a:hover { color: var(--color-magenta-hover); }
.footer__social { color: var(--color-mist); display: flex; align-items: center; gap: var(--space-8); }
.footer__social a { color: var(--color-white); }
.footer__wordmark { width: 100%; margin-top: var(--space-80); }

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); align-items: start; }
  .footer__line { grid-column: 1 / span 4; }
  .footer__nav { grid-column: 6 / span 5; }
  .footer__social { grid-column: 11 / span 2; justify-content: flex-end; }
}

/* ---------- Motion ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker.is-running .ticker__track { animation: none; }
  .arr, .bar__menu-glyph { transition: none; }
}
