@font-face {
  font-family: "Young Serif";
  src: url("../assets/fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --crimson: #b90a4a;
  --crimson-dark: #94083b;
  --ink: #141818;
  --graphite: #595959;
  --cloud: #f7f7f7;
  --surface: #f9f9f9;
  --white: #fff;
  --line: rgb(20 24 24 / 8%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1rem, 4vw, 2rem);
  --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v7.5M4.75 6.75 8 10l3.25-3.25M3 13.5h10'/%3E%3C/svg%3E");
  --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='5.5' y='5.5' width='8.5' height='8.5' rx='2'/%3E%3Cpath d='M10.5 3.5A1.75 1.75 0 0 0 8.75 2h-5A1.75 1.75 0 0 0 2 3.75v5a1.75 1.75 0 0 0 1.5 1.73'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E");
  color-scheme: light;
}

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

html {
  color: var(--ink);
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--ink);
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus-visible {
  outline: 0.125rem solid var(--crimson);
  outline-offset: 0.125rem;
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus-visible {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(56rem + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}

h1,
h2 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
}

/* ---- Header (mirrors the home page nav) ---- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.75rem;
  padding-block: 2.5rem;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-group a {
  color: rgb(20 24 24 / 50%);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  transition: color 160ms ease;
}

.nav-mark {
  position: relative;
  display: block;
  width: 3.125rem;
  height: 3.125rem;
  flex: none;
}

.nav-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-block: 3.5rem 4.5rem;
  text-align: center;
}


h1 {
  max-width: 44rem;
  font-size: clamp(2.5rem, 1.25rem + 5vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 31rem;
  color: var(--graphite);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cta {
  position: relative;
  display: inline-flex;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  padding-inline: 1.75rem;
  border-radius: 999px;
  color: var(--white);
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.cta-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--crimson);
  transition:
    transform 200ms var(--ease-out),
    background-color 200ms ease;
}

.cta-label {
  position: relative;
}

.cta:active .cta-bg {
  background: var(--crimson-dark);
  transform: scale(0.86);
}

.cta:focus-visible {
  outline-offset: 0.25rem;
}

.cta-meta {
  color: rgb(20 24 24 / 60%);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
}

.toc a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  padding-inline: 0.875rem;
  border-radius: 999px;
  color: rgb(20 24 24 / 60%);
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

/* ---- Asset sections ---- */

.asset {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: 3rem;
  scroll-margin-top: 1rem;
}

.asset-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.asset-head h2 {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.asset-head p {
  max-width: 23rem;
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.stage {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.stage-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pane {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 0.72;
  place-items: center;
  padding: 2rem;
}

.pane-dark {
  background: var(--ink);
}

.pane-label {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  color: rgb(20 24 24 / 60%);
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
}

.pane-dark .pane-label {
  color: rgb(247 247 247 / 50%);
}

.stage-logo {
  width: min(15rem, 70%);
  height: auto;
}

.stage-symbol {
  width: clamp(3.5rem, 18%, 5.125rem);
  height: auto;
}

.stage-helmet {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(60% 75% at 50% 45%, #2e3232 0%, var(--ink) 100%);
}

.stage-helmet img {
  width: min(22rem, 60%);
  height: auto;
}

.stage-single {
  display: grid;
  aspect-ratio: 2 / 1;
  place-items: center;
  padding: 2rem;
}

.stage-color-logo {
  width: min(24rem, 70%);
  height: auto;
}

.stage-color-symbol {
  width: min(11rem, 45%);
  height: auto;
}

.stage-colors {
  padding: 0.5rem;
}

.swatches {
  display: grid;
}

.swatch {
  position: relative;
  display: flex;
  width: 100%;
  height: 11rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.125rem;
  padding: 1rem;
  border: 0;
  border-radius: 1rem;
  background: var(--swatch);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 160ms var(--ease-out);
}

.swatch-light {
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.swatch:active {
  transform: scale(0.98);
}

.swatch::after {
  content: "";
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: var(--icon-copy) center / contain no-repeat;
  mask: var(--icon-copy) center / contain no-repeat;
  opacity: 0;
  transition: opacity 160ms ease;
}

.swatch:focus-visible::after {
  opacity: 0.6;
}

.swatch.is-copied::after {
  -webkit-mask-image: var(--icon-check);
  mask-image: var(--icon-check);
  opacity: 0.8;
}

.swatch-name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.swatch-value {
  display: grid;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.swatch-value > span {
  grid-area: 1 / 1;
  transition:
    opacity 160ms ease,
    filter 160ms ease;
}

.swatch-value > span + span,
.swatch.is-copied .swatch-value > span:first-child {
  filter: blur(2px);
  opacity: 0;
}

.swatch.is-copied .swatch-value > span + span {
  filter: none;
  opacity: 1;
}

/* ---- Brand images ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shot-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 1rem;
  background: var(--cloud);
  box-shadow: 0 0 0 1px var(--line);
}

/* ---- Download lists ---- */

.file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
}

.file-format {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.file-size {
  color: var(--graphite);
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.file-note {
  margin-left: 0.5rem;
  color: rgb(20 24 24 / 60%);
}

.file-links {
  display: flex;
  gap: 1.5rem;
}

.file-link {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.25rem;
  color: rgb(20 24 24 / 50%);
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  transition:
    transform 160ms var(--ease-out),
    color 160ms ease;
}

.file-link::before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-download) center / contain no-repeat;
  mask: var(--icon-download) center / contain no-repeat;
}

.file-link:active {
  transform: scale(0.97);
}

/* ---- Page + footer (ported from the home page; keep the values in sync) ---- */

:root {
  --footer-height: 698px;
}

/* The page slides over a footer fixed to the bottom of the viewport. */
.page {
  position: relative;
  z-index: 10;
  margin-bottom: var(--footer-height);
  border-radius: 0 0 50px 50px;
  background: var(--surface);
}

.page > main {
  padding-bottom: 4.5rem;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background: var(--ink);
  font-weight: 400;
}

.js .site-footer:not(.is-revealed) {
  opacity: 0;
}

.site-footer :focus-visible {
  outline-color: var(--cloud);
}

.footer-container {
  width: 100%;
  max-width: 1104px;
  margin-inline: auto;
  padding-inline: 62px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 160px;
  padding-block: 100px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-brand img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.footer-brand p {
  width: 206px;
  color: var(--cloud);
  font-family: "Young Serif", Georgia, serif;
  font-size: 2.375rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.footer-apps {
  display: flex;
  gap: 32px;
}

.footer-apps ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-app,
.footer-links a,
.footer-mark p {
  color: var(--cloud);
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.02em;
  opacity: 0.5;
}

.footer-app,
.footer-links a,
.footer-social a {
  transition: opacity 160ms ease;
}

.footer-social a {
  display: block;
}

.footer-app {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-app-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.4375rem;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-mark {
  position: relative;
}

.footer-mark p {
  position: absolute;
  top: 0;
  right: 0;
}

.footer-mark img {
  width: 100%;
  height: auto;
}

@media (max-width: 1023px) {
  :root {
    --footer-height: 700px;
  }

  .footer-container {
    max-width: 432px;
    padding-inline: 16px;
  }

  .footer-inner {
    gap: 120px;
  }

  .footer-top {
    flex-direction: column;
    gap: 56px;
  }
}

@media (max-width: 639px) {
  :root {
    --footer-height: 670px;
  }

  .footer-inner {
    gap: 40px;
    padding-block: 40px;
  }

  .footer-top {
    gap: 32px;
  }

  .footer-apps {
    flex-direction: column;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---- Hover (fine pointers only, so taps don't stick) ---- */

@media (hover: hover) and (pointer: fine) {
  .nav-group a:hover,
  .toc a:hover {
    color: var(--ink);
  }

  .toc a:hover {
    background: rgb(20 24 24 / 5%);
  }

  .footer-app:hover,
  .footer-links a:hover {
    opacity: 1;
  }

  .footer-social a:hover {
    opacity: 0.7;
  }

  .cta:hover .cta-bg {
    background: var(--crimson-dark);
    transform: scale(0.9);
  }

  .file-link:hover {
    color: var(--ink);
  }

  .swatch:hover::after {
    opacity: 0.6;
  }
}

/* ---- Small screens (< 640px) ---- */

@media (max-width: 39.9375rem) {
  .site-nav {
    padding-block: 1.25rem;
  }

  .nav-group {
    display: none;
  }

  .hero {
    padding-block: 2rem 3rem;
  }

  .asset {
    padding-block: 2.25rem;
  }

  .stage-split {
    grid-template-columns: 1fr;
  }

  .stage-single {
    aspect-ratio: 16 / 10;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .pane {
    aspect-ratio: 16 / 9;
  }

  .stage-symbol {
    width: 4.5rem;
  }

  .stage-helmet {
    aspect-ratio: 4 / 3;
  }

  .stage-helmet img {
    width: min(14rem, 70%);
  }

  .swatch {
    height: 8.5rem;
    padding: 0.875rem;
  }

  .file-note {
    display: block;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-bg,
  .file-link,
  .swatch {
    transform: none !important;
  }
}
