/* Provio Demos: the landing page, in the Provio brand (Brand Book v1.0).
   Dark only, square corners, fonts served from assets/fonts. */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Zalando Sans Expanded";
  src: url("assets/fonts/ZalandoSansExpanded[wght].ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

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

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

/* ---------------------------------------------------------------- tokens */

:root {
  /* core palette */
  --ink: #121212;
  --white: #ffffff;
  --signal: #43f59a;
  --protocol: #3341ff;
  --orchid: #e9a6f2;
  --paper: #f0f0ee;

  /* neutrals, one shade a layer */
  --void: #0a0a0a;
  --carbon: #1d1d1d;
  --graphite: #2c2c2c;
  --ash: #9a9a9a;

  /* telemetry */
  --tele-strong: rgba(255, 255, 255, 0.8);
  --tele-line: rgba(255, 255, 255, 0.3);
  --tag-plate: rgba(18, 18, 18, 0.85);
  --card-plate: rgba(18, 18, 18, 0.92);
  /* the dot grid: 2 px dots at White 60% on a 16 px pitch, at a section's edge */
  --dot: rgba(255, 255, 255, 0.6);
  --dots: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.2px);

  /* Dusk: the brand's "grain gradient" raster (the master artwork, as WebP).
     One gradient per surface: the hero and the promise. Small type on its
     light part sits on an Ink plate. */
  --dusk: url("assets/brand/dusk.webp");
  --board-light: #161616;
  --board-dark: var(--graphite);
  /* the grain (Figma NOISE: monotone, black at 40%, density .6, 1 px), only
     ever over a gradient */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 -0.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* faces */
  --font-display: "Zalando Sans Expanded", "Arial Black", sans-serif;
  --font-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* type scale, desktop (the phone sizes are in the media query below) */
  --display-xl: clamp(56px, 9.17vw, 132px);
  --display-l: clamp(38px, 5.28vw, 76px);
  --display-l-minus: clamp(34px, 4.31vw, 62px);
  --display-m: clamp(28px, 3.89vw, 56px);
  --heading: 28px;
  --body-l: 18px;
  --body: 15px;
  --label: 12px;
  --numeral: 28px;

  /* the 8 px baseline */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --section: 140px;

  /* the 12-column grid */
  --columns: 12;
  --gutter: 16px;
  --margin: 40px;
  --max: 1440px;

  --focus: 2px solid var(--signal);
  color-scheme: dark;
}

@media (max-width: 760px) {
  :root {
    --margin: 16px;
    --section: 80px;
    --display-xl: clamp(40px, 12vw, 66px);
    --display-l: clamp(28px, 8.4vw, 38px);
    --display-l-minus: clamp(26px, 7.6vw, 32px);
    --display-m: clamp(24px, 7vw, 28px);
    --heading: 20px;
  }
}

/* ---------------------------------------------------------------- base */

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 var(--body) / 1.5 var(--font-text);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, p, ol, ul, figure, pre, blockquote { margin: 0; }

ol, ul { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 3px; }

strong { font-weight: 500; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

::selection { background: var(--signal); color: var(--ink); }

.skip {
  position: absolute;
  left: var(--margin);
  top: -100px;
  z-index: 10;
  padding: var(--s1) var(--s2);
  background: var(--white);
  color: var(--ink);
  font: var(--label) / 1 var(--font-mono);
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus { top: var(--s1); }


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

/* ---------------------------------------------------------------- layout */

.grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  column-gap: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--margin);
}

.grid > * { grid-column: 1 / -1; }

/* two columns, as Route 03's How it works and See it working: 640 | 640, 80 apart */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--s10);
  align-items: start;
}

.split--working {
  grid-template-columns: minmax(0, 1fr) minmax(0, 672px);
  column-gap: var(--s6);
  align-items: center;
}

.split__main { display: grid; gap: var(--s4); align-content: start; }

@media (max-width: 1100px) {
  .split, .split--working { grid-template-columns: minmax(0, 1fr); row-gap: var(--s8); }
}

/* ---------------------------------------------------------------- type */

.display-xl, .display-l, .display-m {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
}

.display-xl { font-size: var(--display-xl); line-height: 0.9; letter-spacing: -0.03em; }
.display-l { font-size: var(--display-l); line-height: 0.94; letter-spacing: -0.02em; }
.display-m { font-size: var(--display-m); line-height: 0.94; letter-spacing: -0.02em; }

.heading {
  font: 400 var(--heading) / 1.15 var(--font-text);
  letter-spacing: -0.02em;
}

.body-l {
  font-size: var(--body-l);
  line-height: 1.55;
  color: var(--ash);
}

.label {
  font: 400 var(--label) / 1.5 var(--font-mono);
  text-transform: uppercase;
}

.label code { font-size: 1em; text-transform: none; }

/* ---------------------------------------------------------------- buttons */

/* the kit: Fragment Mono 12 uppercase, 42 px tall, square; primary,
   secondary, Ink on Signal (the closing pair) and the nav's 34 px CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 14px 18px;
  border: 1px solid transparent;
  font: 400 var(--label) / 12px var(--font-mono);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.btn span[aria-hidden="true"] { font-size: 10px; }

.btn--primary { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--primary:hover { background: var(--paper); border-color: var(--paper); }
.btn--secondary { border-color: var(--white); color: var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--ink); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--void); }
.btn--ink-outline { border-color: var(--ink); color: var(--ink); }
.btn--ink-outline:hover { background: var(--ink); color: var(--signal); }
.btn--nav { min-height: 34px; padding: 10px 16px; }
.btn--block { display: flex; width: 100%; }

.closing .btn:focus-visible { outline-color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

/* ---------------------------------------------------------------- chips and statuses */

/* a gate chip: 1 px outline in its accent, 12 px mono at 4/8 (24 px) */
.chip {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid currentColor;
  font: 400 var(--label) / 14px var(--font-mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.chip--signal { color: var(--signal); }
.chip--orchid { color: var(--orchid); }
.chip--white { color: var(--white); }
/* Protocol Blue is too dark on Ink for small text: blue frame, White text */
.chip--protocol { color: var(--white); border-color: var(--protocol); }

/* a status: one word in the colour of its meaning; filled ones are 22 px */
.status {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid transparent;
  font: 400 var(--label) / 14px var(--font-mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.status--ok { border-color: var(--signal); color: var(--signal); }
.status--refused { padding: 4px 8px; border: 0; background: var(--protocol); color: var(--white); }

/* ---------------------------------------------------------------- telemetry */

/* a crosshair: 14 px, 1 px at White 80% */
.crosshair {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: var(--tele-strong);
}

.crosshair::before { left: 6.5px; top: 0; width: 1px; height: 14px; }
.crosshair::after { top: 6.5px; left: 0; height: 1px; width: 14px; }

/* a coordinate tag: Fragment Mono 10 on Ink 85%, 2/4 ("C1  00.7,82.3") */
.coord {
  display: inline-block;
  padding: 2px 4px;
  background: var(--tag-plate);
  color: var(--white);
  font: 400 10px / 12px var(--font-mono);
  text-transform: uppercase;
  white-space: pre;
}

/* ---------------------------------------------------------------- cards */

/* Carbon on Ink, 8 px apart, 24/24/28 */
.cards {
  display: grid;
  gap: var(--s1);
}

.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  min-height: 256px;
  padding: var(--s3) var(--s3) 28px;
  background: var(--carbon);
}

.card__index {
  padding-bottom: var(--s10);
  font: 400 var(--label) / 1 var(--font-mono);
  color: var(--orchid);
}

.card__index--signal { color: var(--signal); }
.card .heading { margin-bottom: 12px; }
.card p { color: var(--ash); font-size: var(--body); line-height: 1.55; }

/* the problem cards: outlined, not filled, under a kicker, so they read as
   what goes wrong today rather than as features */
.cards__kicker { grid-column: 1 / -1; margin-top: var(--s5); color: var(--ash); }
.cards__kicker + .cards { margin-top: var(--s2); }
.card--problem { background: transparent; border: 1px solid var(--graphite); }

/* on the gradient: an Ink 92% plate */
.card--plate { background: var(--card-plate); }
.card--plate .heading { font-size: 26px; }

@media (max-width: 1100px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cards--3, .cards--4 { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .card__index { padding-bottom: var(--s4); }
}

/* ---------------------------------------------------------------- the top bar */

/* on the hero, as Route 03's: no bar, no border */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--s4);
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--margin) 0;
}

.topbar__brand { flex: none; padding: var(--s1) 0; }
.topbar__wordmark { width: 125px; }

.topbar__nav { flex: 1; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s1) var(--s4);
}

.nav a {
  font: 400 var(--label) / 1.5 var(--font-mono);
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; row-gap: var(--s2); padding-top: var(--s3); }
  .topbar__nav { order: 3; flex-basis: 100%; }
  .nav { justify-content: flex-start; gap: var(--s1) var(--s3); }
  .btn--nav { margin-left: auto; }
}

@media (max-width: 400px) {
  .topbar__wordmark { width: 100px; }
}

/* ---------------------------------------------------------------- the hero */

/* full bleed Dusk with its grain, the wordmark edge to edge at the bottom */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(640px, 100svh, 810px);
  padding-top: 150px;
  background: var(--ink) var(--dusk) center / cover no-repeat;
  overflow: hidden;
}

.hero::before, .gate--dusk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  pointer-events: none;
}

.hero__grid { row-gap: var(--s6); align-items: start; }

/* the statement: Fragment Mono 20/1.4, on an Ink plate where the glow is lightest */
.hero__title {
  font: 400 20px / 1.4 var(--font-mono);
  text-transform: uppercase;
}

.hero__plate {
  padding: 2px 8px;
  background: var(--tag-plate);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__sub {
  margin-bottom: var(--s4);
  font: 400 28px / 1.15 var(--font-text);
  letter-spacing: -0.02em;
}

.hero__foot { display: grid; gap: var(--s5); padding: 0 var(--margin) 36px; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  padding: 0 10px;
}

.hero__wordmark { width: 100%; max-width: 1360px; margin: 0 auto; }

.crosshair--tl { top: 113px; left: 33px; }
.crosshair--tr { top: 113px; right: 33px; }
.crosshair--bl { bottom: 263px; left: 33px; }
.crosshair--br { bottom: 263px; right: 33px; }

@media (min-width: 761px) {
  .hero__title { grid-column: 1 / 9; }
  .hero__side { grid-column: 9 / 13; }
}

@media (max-width: 1100px) {
  .crosshair--bl, .crosshair--br { display: none; }
}

@media (max-width: 760px) {
  /* the narrow crop takes the Dusk's darker right side: the nav and the
     statement stay on navy, not on the lavender glow */
  .hero { min-height: 0; padding-top: 168px; background-position: 80% center; }
  .hero__title { font-size: 16px; }
  .hero__sub { font-size: 24px; }
  .hero__foot { gap: var(--s3); padding-bottom: var(--s3); margin-top: var(--s8); }
  .hero__tags { justify-content: center; }
  .hero__tags .coord:first-child, .hero__tags .coord:last-child { display: none; }
  .crosshair--tl, .crosshair--tr { display: none; }
}

/* ---------------------------------------------------------------- gates */

/* Route 03's rhythm: 140 above and below, the copy in the right-hand column */
.gate { position: relative; padding: var(--section) 0; scroll-margin-top: var(--s3); }
.gate--void { background: var(--void); }

.gate .grid { row-gap: var(--s4); }

.gate__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gate__label {
  font: 400 var(--label) / 1 var(--font-mono);
  text-transform: uppercase;
  color: var(--ash);
}

.gate__label--white { color: var(--white); }

.gate__copy { display: grid; gap: var(--s2); max-width: 520px; }
.gate__copy--white { font-size: var(--body-l); line-height: 1.55; }

.cards { margin-top: var(--s5); }

@media (min-width: 1101px) {
  .gate__title--narrow { grid-column: 1 / 10; }
  .gate__copy { grid-column: 8 / 13; }
  .gate__title--narrow + .gate__copy { grid-column: 10 / 13; align-self: end; }
  .hero__side { justify-self: end; width: min(400px, 100%); }
}

@media (max-width: 760px) {
  .gate .grid { row-gap: var(--s3); }
}

/* gate 02: the steps beside the invitation, then the diagram */

.steps { display: grid; gap: var(--s1); }

.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: var(--s3) var(--s3) 28px 20px;
  background: var(--carbon);
}

.step__num {
  font: 900 var(--numeral) / 1 var(--font-display);
  color: var(--orchid);
}

.step__words { display: grid; gap: var(--s1); }
.step__heading { font: 400 20px / 1.2 var(--font-text); letter-spacing: -0.01em; }
.step p { color: var(--ash); font-size: var(--body); line-height: 1.5; }

/* the invitation: a White card on a Dusk tile, with an Inbox tag */
.invite-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: var(--s10) var(--s8);
  background: var(--ink) var(--dusk) 20% center / cover no-repeat;
}

.invite-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
}

.invite-tile__tag { position: absolute; top: var(--s2); left: var(--s2); }

.invite {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  background: var(--white);
  color: var(--ink);
}

.invite__from { font: 400 11px / 1.2 var(--font-mono); text-transform: uppercase; color: var(--graphite); }
.invite__title { font: 500 26px / 1.15 var(--font-text); letter-spacing: -0.02em; }
.invite__body { font-size: var(--body); line-height: 1.5; color: var(--graphite); }
.invite__body code { color: var(--ink); }
.invite__rules { display: grid; gap: 4px; }

.invite__rules li {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: var(--paper);
  font-size: var(--body);
  line-height: 1.3;
}

.invite__arrow { color: var(--protocol); font-size: 13px; }

.diagram { margin-top: var(--s8); padding: var(--s5); background: var(--carbon); }

.diagram__tall { display: none; }

.d-node rect { fill: var(--ink); stroke: var(--orchid); stroke-width: 1; }
.d-relay rect { fill: var(--carbon); stroke: var(--ash); stroke-width: 1; stroke-dasharray: 4 4; }
.d-title { fill: var(--white); font: 400 18px var(--font-text); }
.d-sub { fill: var(--ash); font: 400 13px var(--font-text); }
.d-label { fill: var(--ash); font: 400 12px var(--font-mono); text-transform: uppercase; }
.d-mid { text-anchor: middle; }
.d-line { stroke: var(--white); stroke-width: 1; fill: none; }
.d-tick { stroke: var(--white); stroke-width: 1; }

@media (max-width: 1100px) {
  .invite-tile { aspect-ratio: auto; padding: var(--s8) var(--s3); }
}

@media (max-width: 760px) {
  .step { grid-template-columns: minmax(0, 1fr); row-gap: var(--s2); padding: var(--s3) var(--s2); }
  .invite-tile { padding: var(--s8) var(--s2) var(--s3); }
  .invite { padding: var(--s3) var(--s2); }
  .invite__title { font-size: 22px; }
  .diagram { padding: var(--s3); }
  .diagram__wide { display: none; }
  .diagram__tall { display: block; max-width: 300px; margin: 0 auto; }
}

/* gate 03: the board and the record, then the demos in their groups */

.play {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  padding: var(--s3);
  background: var(--carbon);
}

.board { width: 100%; max-width: 320px; }
.sq--dark { fill: var(--board-dark); }
.sq--light { fill: var(--board-light); }
.sq--from { fill: var(--signal); }
.sq--refused { fill: var(--protocol); }
.pc { font: 400 28px / 1 "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", var(--font-text); text-anchor: middle; }
.pc--w { fill: var(--white); }
.pc--b { fill: var(--void); stroke: var(--ash); stroke-width: 1; }
.pc--on-signal { fill: var(--ink); }
.board__x { stroke: var(--white); stroke-width: 1.5; stroke-linecap: square; fill: none; }

.movelog { min-width: 0; }

.movelog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: var(--s1);
  font: 400 11px / 1.4 var(--font-mono);
  text-transform: uppercase;
  color: var(--ash);
}

.movelog__head code { font-size: 1em; text-transform: none; }
.movelog__coord { margin-left: auto; text-transform: none; }

.movelog__row {
  display: grid;
  grid-template-columns: 3.5ch max-content minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 7px 0;
  font: 400 13px / 18px var(--font-mono);
}

.movelog__n { color: var(--ash); }
.movelog__ok { color: var(--signal); font-size: 12px; }

.refusal {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--s1);
  margin-top: 12px;
  padding: 14px;
  background: var(--protocol);
  color: var(--white);
}

.refusal__line { font: 400 17px / 1.3 var(--font-text); letter-spacing: -0.01em; }
.refusal__line code { margin-left: var(--s1); font-size: 12px; }
.refusal__rule, .refusal__note { margin: 0; font: 400 11px / 1.5 var(--font-mono); }
.refusal__rule p::before { content: "\201C"; }
.refusal__rule p::after { content: "\201D"; }

@media (max-width: 760px) {
  .play { grid-template-columns: minmax(0, 1fr); padding: var(--s2); }
  .board { margin: 0 auto; }
  .movelog__coord { display: none; }
}

/* gate 04: the promise, on the gradient again (its one gradient) */

/* the same Dusk turned upside down: its navy behind the headline (White
   on it is well over 4.5:1), its lavender behind the Ink 92% cards */
.gate--dusk { isolation: isolate; background: var(--ink); }

.gate--dusk::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--dusk) center / cover no-repeat;
  transform: scaleY(-1);
}

.gate--dusk .cards { margin-top: var(--s4); }

/* ---------------------------------------------------------------- closing */

/* Signal, full bleed: Display XL in Ink, the Ink pair of buttons */
.closing {
  padding: var(--s8) 0 var(--s5);
  background: var(--signal);
  color: var(--ink);
}

.closing__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  font: 400 var(--label) / 1.2 var(--font-mono);
  text-transform: uppercase;
  white-space: pre;
}

.closing__title { margin: 112px 0 104px; }

.closing__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--ink);
}

.closing__line { font: 400 20px / 1.3 var(--font-text); letter-spacing: -0.01em; max-width: 640px; }

@media (max-width: 760px) {
  .closing__title { margin: var(--s8) 0; }
  .closing__row { white-space: normal; }
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding: var(--s10) 0 var(--s5);
  background: var(--void);
  color: var(--ash);
}

.footer__grid { row-gap: var(--s5); align-items: start; }

.footer__brand { display: grid; gap: var(--s2); }

.footer__lockup {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--white);
}

.footer__mark { width: 32px; }
.footer__line { color: var(--white); font-size: var(--body-l); }

.footer__head { margin-bottom: var(--s2); color: var(--ash); }

.footer__nav ul { display: grid; gap: var(--s1); }
.footer__nav a { color: var(--white); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }

.contact-card {
  display: grid;
  justify-items: start;
  gap: var(--s2);
  padding: var(--s3);
  background: var(--carbon);
}

.contact-card__line { color: var(--white); }
.contact-card .btn { text-transform: none; }

.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--graphite);
}

@media (min-width: 761px) {
  .footer__brand { grid-column: 1 / 5; }
  .footer__nav { grid-column: 5 / 8; }
  .contact-card { grid-column: 8 / 13; }
}

@media (max-width: 760px) {
  .footer__brand, .footer__nav, .contact-card { grid-column: 1 / -1; }
}
