/* GiruDemic landing. A circuit board at night: near-black green, copper traces that carry
   current (amber), one orange for the action. Tokens on :root are the dark theme, the
   default; [data-theme="light"] swaps the paper sections, while `.is-dark` sections (hero,
   route, footer) stay dark in both. Type: Manrope for words, JetBrains Mono for the labels a
   board would print (pins, numbers). Both self-hosted (the CSP only allows 'self'). */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root,
.is-dark {
  --bg: #070d0a;
  --bg-2: #0a1410;
  --surface: #0e1b15;
  --surface-2: #13241c;
  --line: rgb(208 232 218 / 0.09);
  --line-strong: rgb(208 232 218 / 0.17);
  --ink: #eaf2ed;
  --ink-soft: #9fb5a8;
  --ink-faint: #7f978a;
  --copper: #c8762f;
  --copper-text: #e8914a;
  --solder: #f2c45f;
  --current: #f5b42a;
  --primary: #b84a06;
  --primary-hover: #cf5810;
  --burn: #ffb4a0;
  --focus: #6aa8ec;
  --glow: rgb(232 145 74 / 0.32);
  --dots: rgb(208 232 218 / 0.07);
  color-scheme: dark;
}

:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --bar: 68px;
  --gutter: clamp(16px, 3.4vw, 56px);
  --gap: clamp(72px, 8vw, 128px);
  --radius: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --size-display: min(8.2vw, 15svh, 118px);
  --size-h2: clamp(34px, 4.8vw, 72px);
  --size-h3: clamp(22px, 2.2vw, 30px);
  --size-lead: clamp(18px, 1.55vw, 22px);
  --size-body: 17px;
  --size-small: 15px;
}

:root[data-theme="light"] {
  --bg: #f4f5f1;
  --bg-2: #eaece6;
  --surface: #ffffff;
  --surface-2: #eef1eb;
  --line: rgb(14 26 20 / 0.1);
  --line-strong: rgb(14 26 20 / 0.18);
  --ink: #0e1a14;
  --ink-soft: #4f6157;
  --ink-faint: #5f7167;
  --copper: #b4611f;
  --copper-text: #9c4f12;
  --solder: #b4611f;
  --current: #c98a0c;
  --focus: #1f64a8;
  --glow: rgb(180 97 31 / 0.18);
  --dots: rgb(14 26 20 / 0.08);
  color-scheme: light;
}

/* A dark section inside the light theme takes the dark values back. */
:root[data-theme="light"] .is-dark {
  --bg: #070d0a;
  --bg-2: #0a1410;
  --surface: #0e1b15;
  --surface-2: #13241c;
  --line: rgb(208 232 218 / 0.09);
  --line-strong: rgb(208 232 218 / 0.17);
  --ink: #eaf2ed;
  --ink-soft: #9fb5a8;
  --ink-faint: #7f978a;
  --copper: #c8762f;
  --copper-text: #e8914a;
  --current: #f5b42a;
  --focus: #6aa8ec;
  --glow: rgb(232 145 74 / 0.32);
  --dots: rgb(208 232 218 / 0.07);
  color-scheme: dark;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 var(--size-body) / 1.6 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.is-dark {
  background: var(--bg);
  color: var(--ink);
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

h1,
h2 {
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: var(--size-h2);
}

.soft {
  color: var(--ink-soft);
}

p,
li,
dd {
  text-wrap: pretty;
}

h3 {
  font-size: var(--size-lead);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite,
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* A label printed on the board: mono, spaced, with a solder pad before it. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--copper-text);
  font: 500 12.5px / 1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: 2px solid var(--solder);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--glow);
}

/* Buttons: one shape; the primary carries a little of the LED's glow. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 700 16px / 1.2 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 220ms ease,
    color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 10px 30px -12px rgb(232 121 31 / 0.7);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.02);
  color: var(--ink);
}

.btn--small {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 15px;
}

.btn .icon {
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--primary-hover);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.22),
      0 14px 40px -10px rgb(232 121 31 / 0.85);
  }
  .btn--ghost:hover {
    border-color: var(--copper);
    background: rgb(200 118 47 / 0.08);
  }
  .btn:hover .icon {
    transform: translateX(3px);
  }
}

/* Bar: glass over the page, with a hairline under it. */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}

.top.is-watching .btn--primary {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms var(--ease-out),
    visibility 0s 200ms;
}

.top.is-watching.is-past .btn--primary {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

.top__row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand img {
  width: auto;
  height: 34px;
}

.logo--light {
  display: none;
}

:root[data-theme="light"] .logo--light {
  display: block;
}

:root[data-theme="light"] .logo--dark {
  display: none;
}

.top__nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.top__nav a,
.tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-soft);
  font: 600 15px / 1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms var(--ease-out);
}

.tool:active,
.top__nav a:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .top__nav a:hover,
  .tool:hover {
    color: var(--ink);
    background: rgb(255 255 255 / 0.04);
  }
}

.top__tools {
  display: flex;
}

.tool--theme .i-moon {
  display: none;
}

:root[data-theme="light"] .tool--theme .i-moon {
  display: block;
}

:root[data-theme="light"] .tool--theme .i-sun {
  display: none;
}

@media (max-width: 1020px) {
  .top__nav {
    display: none;
  }
  .top__tools {
    margin-left: auto;
  }
  .top__row {
    gap: 8px;
  }
}

@media (max-width: 460px) {
  .brand img {
    height: 28px;
  }
  .tool {
    padding: 8px;
  }
  .btn--small {
    padding-inline: 10px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Copper traces: thin copper, solder pads and the current running along some of them. */
.traces {
  position: absolute;
  pointer-events: none;
}

.traces path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.traces__copper path {
  stroke: var(--copper);
  stroke-width: 2.5;
  opacity: 0.5;
}

.traces__pads circle {
  fill: var(--bg);
  stroke: var(--solder);
  stroke-width: 2.5;
  opacity: 0.85;
}

.traces__flow path,
.traces__halo path {
  stroke: var(--current);
  stroke-width: 3;
  stroke-dasharray: 0.07 1.3;
  stroke-dashoffset: 0.1;
  opacity: 0;
}

.traces__halo path {
  stroke-width: 10;
}

@media (prefers-reduced-motion: no-preference) {
  .traces__flow path,
  .traces__halo path {
    opacity: 1;
    animation: flow 4.6s linear infinite;
  }
  .traces__halo path {
    opacity: 0.2;
  }
  .traces__flow path,
  .traces__halo path {
    animation-iteration-count: 3;
    animation-fill-mode: forwards;
  }
  .traces__flow path:nth-child(2),
  .traces__halo path:nth-child(2) {
    animation-delay: -1.4s;
    animation-duration: 5.4s;
  }
  .traces__flow path:nth-child(3),
  .traces__halo path:nth-child(3) {
    animation-delay: -2.9s;
  }
  .traces__flow path:nth-child(4),
  .traces__halo path:nth-child(4) {
    animation-delay: -0.6s;
    animation-duration: 6s;
  }
  .is-idle .traces path,
  .hero.is-open .traces path {
    animation-play-state: paused;
  }
  /* The LED burned: the current surges once, turns the colour of the burn and dies out. */
  .hero__traces .traces__flow,
  .hero__traces .traces__halo,
  .hero__traces .traces__copper {
    transition: opacity 400ms ease;
  }
  .hero.is-burned .hero__traces .traces__flow,
  .hero.is-burned .hero__traces .traces__halo {
    animation: surge 700ms ease-out both;
  }
  .hero.is-burned .hero__traces .traces__flow path,
  .hero.is-burned .hero__traces .traces__halo path {
    stroke: var(--burn);
  }
  .hero.is-burned .hero__traces .traces__copper {
    opacity: 0.35;
    transition-delay: 300ms;
  }
  .hero.is-burned .hero__traces .traces__pads circle {
    stroke: var(--burn);
  }
  /* The footer's copper draws itself in once, then the current starts. */
  .js .foot__traces .traces__copper path {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 900ms var(--ease-out);
  }
  .js .foot__traces .traces__copper path:nth-child(2) {
    transition-delay: 120ms;
  }
  .js .foot__traces .traces__copper path:nth-child(3) {
    transition-delay: 240ms;
  }
  .js .foot.is-on .foot__traces .traces__copper path {
    stroke-dashoffset: 0;
  }
  .js .foot:not(.is-on) .foot__traces .traces__flow,
  .js .foot:not(.is-on) .foot__traces .traces__halo {
    opacity: 0;
  }
  .js .foot__traces .traces__flow,
  .js .foot__traces .traces__halo {
    transition: opacity 400ms ease 1100ms;
  }
}

@keyframes surge {
  0%,
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes flow {
  from {
    stroke-dashoffset: 0.1;
  }
  to {
    stroke-dashoffset: -1.2;
  }
}

/* Hero: the sentence with the LED inside it. Where WebGL and motion allow it the section
   is taller than the screen: the stage holds while the LED's window opens to the bench. */
.hero {
  position: relative;
}

.hero__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding-block: clamp(20px, 5svh, 56px) 20px;
  min-height: calc(100svh - var(--bar));
  background:
    radial-gradient(60% 70% at 85% 25%, rgb(200 118 47 / 0.16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgb(26 86 64 / 0.35), transparent 70%),
    var(--bg);
}

/* The board's dot grid, fading out from the copper corner. */
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--dots) 1px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: radial-gradient(70% 80% at 80% 35%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 80% at 80% 35%, #000 20%, transparent 80%);
  pointer-events: none;
}

.hero__traces {
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(120% 120% at 50% 50%, #000 72%, transparent 100%);
}

.webgl .hero__canvas {
  clip-path: inset(50%);
}

html:not(.webgl) .hero__canvas {
  display: none;
}

.is-static .hero__canvas canvas {
  display: none;
}

.hero__canvas canvas,
.hero__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__canvas canvas {
  opacity: 0;
  transition: opacity 260ms ease;
}

.is-live .hero__canvas canvas {
  opacity: 1;
}

/* The bench is drawn on a transparent canvas: its picture must not show through. */
.is-live .hero__poster {
  visibility: hidden;
}

.hero__copy,
.hero__lab {
  position: relative;
  z-index: 2;
}

.hero__copy {
  margin-block: auto;
}

.webgl.motion .hero {
  height: calc(250svh - var(--bar));
}

.webgl.motion .hero .hero__stage {
  position: sticky;
  top: var(--bar);
  height: calc(100svh - var(--bar));
}

.hero__eyebrow {
  margin-bottom: clamp(14px, 2.4svh, 26px);
}

h1 {
  font-size: var(--size-display);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: nowrap;
}

.line {
  display: block;
  overflow: clip;
  overflow-clip-margin: 0.14em;
}

.line__in {
  display: block;
}

.line__in--soft {
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .line__in {
    animation: rise 900ms var(--ease-out) both;
  }
  .line + .line .line__in {
    animation-delay: 110ms;
  }
  .hero__eyebrow,
  .hero__lead,
  .actions,
  .actions__note,
  .lab {
    animation: fade-up 520ms var(--ease-out) 420ms both;
  }
  .hero__eyebrow {
    animation-delay: 60ms;
  }
}

@keyframes rise {
  from {
    transform: translateY(108%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hero__eyebrow {
  text-wrap: balance;
}

.slot {
  position: relative;
  display: inline-block;
  width: 2.25em;
  height: 0.8em;
  margin-inline: 0.04em;
  vertical-align: -0.07em;
  overflow: hidden;
  border-radius: 0.14em;
  background: var(--surface-2);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 0 60px -10px var(--glow);
}

.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 260ms ease;
}

.is-live .slot {
  background: none;
  box-shadow: none;
}

.is-live .slot img {
  display: none;
}

.hero__lead {
  max-width: 38rem;
  margin-top: clamp(16px, 3svh, 30px);
  color: var(--ink-soft);
  font-size: var(--size-lead);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 3svh, 30px);
}

.actions__note {
  max-width: 34rem;
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1.5;
}

/* A wide, short window caps the headline's height: the text then closes the right side. */
@media (min-aspect-ratio: 17 / 9) and (min-width: 1100px) {
  .hero__copy {
    display: grid;
    grid-template-columns: auto minmax(18rem, 1fr);
    gap: 16px clamp(32px, 4vw, 64px);
    align-items: end;
  }
  .hero__eyebrow {
    grid-column: 1 / -1;
  }
  .hero__copy h1 {
    grid-row: span 2;
    font-size: min(var(--size-display), 104px);
  }
  .hero__lead {
    margin: 0;
  }
  .actions {
    margin: 0;
  }
}

/* The resistor picker: a glass panel over the bench. */
.lab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 32px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 20px 60px -30px rgb(0 0 0 / 0.8);
}

.lab legend {
  float: left;
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 8px;
  color: var(--ink-faint);
  font: 500 12px / 1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab__options {
  display: flex;
  gap: 6px;
}

.lab__options label {
  position: relative;
  cursor: pointer;
}

.lab__options input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.lab__options span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  font: 500 15px / 1 var(--mono);
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-out),
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 200ms ease;
}

.lab__options label:active span {
  transform: scale(0.96);
}

.lab__options input:checked + span {
  border-color: var(--current);
  background: var(--current);
  color: #1a1206;
  box-shadow: 0 0 24px -4px rgb(245 180 42 / 0.6);
}

.lab__options input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .lab__options label:hover input:not(:checked) + span {
    border-color: var(--copper);
  }
}

.lab__state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 46px;
}

.lab output {
  font-variant-numeric: tabular-nums;
  font-size: var(--size-lead);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.is-burned .lab output {
  color: var(--burn);
}

.lab__renew {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font: 700 15px / 1.1 var(--font);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.lab__renew:active {
  transform: scale(0.97);
}

.lab__renew[hidden] {
  display: none;
}

.hero__note {
  margin-top: 10px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--ink-soft);
  font: 500 12.5px / 1.4 var(--mono);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 240ms ease,
    transform 300ms var(--ease-out);
}

.is-open .hero__note {
  opacity: 1;
  transform: none;
}

.hero__still {
  display: none;
  padding-bottom: 32px;
}

.hero__still img {
  width: 100%;
  border-radius: var(--radius);
}

html:not(.webgl) .hero__still,
html:not(.motion) .hero__still {
  display: block;
}

html:not(.webgl) .hero__lab,
.is-static .hero__lab {
  display: none;
}

html:not(.js) .hero__lab,
html:not(.motion) .hero__note,
html:not(.webgl) .hero__note {
  display: none;
}

@media (max-width: 1100px) {
  .hero__traces {
    opacity: 0.45;
  }
}

@media (max-width: 900px) {
  .lab {
    grid-template-columns: 1fr;
  }
  .lab__options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .lab__options label:first-child {
    grid-column: 1 / -1;
  }
  .lab__options span {
    padding-inline: 4px;
  }
  .lab__state {
    min-height: 58px;
  }
  .lab output {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .hero__traces {
    display: none;
  }
  .hero__lead {
    font-size: 17px;
  }
  .hero__stage {
    padding-top: 22px;
    gap: 14px;
  }
  .actions .btn {
    flex: 1 1 auto;
    min-height: 48px;
  }
  h1 {
    font-size: 8.6vw;
  }
  .eyebrow {
    font-size: 11px;
  }
}

/* Entrances */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translateY(16px);
  }
  .reveal-on [data-reveal] {
    transition:
      opacity 600ms ease,
      transform 600ms var(--ease-out);
  }
}

/* A section's head: the title on the left, a line of context on the right. */
.head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 4vw, 64px);
}

.head__lead {
  max-width: 30rem;
  color: var(--ink-soft);
  font-size: var(--size-lead);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .head {
    grid-template-columns: 1fr;
  }
}

/* A picture of the game, framed like a screen with a little glow under it. */
.shot {
  position: relative;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.01));
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.05) inset,
    0 50px 120px -50px var(--glow),
    0 30px 60px -40px rgb(0 0 0 / 0.7);
}

.shot img {
  width: 100%;
  border-radius: 11px;
  background: var(--surface-2);
}

:root:not([data-theme="light"]) .shot img,
.is-dark .route__shot img {
  filter: brightness(0.86) saturate(0.92);
}

/* Manifesto: one long sentence, the second half brighter. */
.manifesto {
  position: relative;
  padding-block: var(--gap);
  background: radial-gradient(40% 70% at 0% 50%, rgb(200 118 47 / 0.08), transparent 70%), var(--bg);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: start;
}

.manifesto .eyebrow {
  margin-top: 0.7em;
}

/* From the left edge of the screen to just short of the text, under the label. */
.manifesto__traces {
  left: 0;
  bottom: clamp(24px, 6vw, 72px);
  width: calc((100vw - min(100vw, 1440px)) / 2 + var(--gutter) + 22vw);
  max-width: 560px;
  height: auto;
  opacity: 0.9;
}

.manifesto__grid {
  position: relative;
}

@media (max-width: 860px) {
  .manifesto__traces {
    display: none;
  }
}

.manifesto__text {
  color: var(--ink-faint);
  font-size: clamp(28px, 3.4vw, 50px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.16;
  text-wrap: pretty;
}

.manifesto__text span {
  color: var(--ink);
}

@media (max-width: 860px) {
  .manifesto__grid {
    grid-template-columns: 1fr;
  }
}

/* How it works: three tabs over one screen. The active tab's line fills while it plays. */
.how {
  padding-block: var(--gap);
}

.how__tabs {
  display: none;
}

.js .how__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.how__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px 16px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: none;
  color: var(--ink-faint);
  font: 650 clamp(16px, 1.35vw, 19px) / 1.25 var(--font);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.how__tab[aria-selected="true"] {
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / 0.03));
}

.how__k {
  color: var(--copper-text);
  font: 500 13px / 1 var(--mono);
}

.how__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--current);
  transform: scaleX(0);
  transform-origin: left;
}

.how__tab[aria-selected="true"] .how__bar {
  transform: scaleX(1);
  box-shadow: 0 0 12px rgb(245 180 42 / 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .how.is-playing .how__tab[aria-selected="true"] .how__bar {
    animation: fill var(--step-ms, 7000ms) linear both;
  }
  .how.is-paused .how__tab[aria-selected="true"] .how__bar {
    animation-play-state: paused;
  }
}

@keyframes fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .how__tab:hover {
    color: var(--ink);
  }
}

.how__panels {
  display: grid;
  gap: clamp(48px, 6vw, 88px);
}

.how__panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}

.js .how__panels {
  display: block;
}

.js .how__panel:not(.is-on) {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .how__panel.is-on .shot {
    animation: panel-in 520ms var(--ease-out) both;
  }
  .js .how__panel.is-on .how__text {
    animation: fade-up 420ms var(--ease-out) both;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
}

.how__text h3 {
  font-size: var(--size-h3);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.how__text p {
  color: var(--ink-soft);
}

.shot--light img {
  background: #f4f6f8;
}

@media (max-width: 860px) {
  .how__panel {
    grid-template-columns: 1fr;
  }
  .how__panel .shot {
    order: -1;
  }
  .js .how__tabs {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .how__tab {
    border-radius: 8px;
  }
}

/* The route: a few key challenges wired to a copper bus, and the one in focus beside it. */
.route {
  padding-block: var(--gap);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 50% at 100% 30%, rgb(200 118 47 / 0.1), transparent 70%),
    var(--bg);
}

.route__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.route__shot {
  position: sticky;
  top: calc(var(--bar) + 24px);
}

.route__shot img {
  width: 100%;
  max-height: 50svh;
  object-fit: cover;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow:
    0 50px 120px -50px var(--glow),
    0 30px 60px -40px rgb(0 0 0 / 0.7);
}

.route__shot.is-swapping img {
  animation: swap 260ms var(--ease-out);
}

@keyframes swap {
  from {
    opacity: 0.35;
    transform: scale(0.985);
  }
}

.route__shot figcaption {
  margin-top: 14px;
  font-size: var(--size-lead);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.route__meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.route__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.route__n {
  color: var(--current);
  font: 500 clamp(38px, 4vw, 58px) / 1 var(--mono);
  letter-spacing: -0.04em;
  text-shadow: 0 0 24px rgb(245 180 42 / 0.4);
  font-variant-numeric: tabular-nums;
}

.route__n.is-ticking {
  animation: tick 320ms var(--ease-out);
}

@keyframes tick {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
}

.route__of {
  color: var(--ink-soft);
  font: 500 14px / 1.3 var(--mono);
  letter-spacing: 0.04em;
}

.route__bar {
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}

.route__bar span {
  display: block;
  height: 100%;
  width: 4%;
  border-radius: 2px;
  background: var(--current);
  box-shadow: 0 0 12px rgb(245 180 42 / 0.6);
  transition: width 420ms var(--ease-out);
}

.route__teach-label {
  margin-top: 18px;
  color: var(--ink-faint);
  font: 500 12px / 1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route__teach {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.route__teach li {
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.02);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.route__list {
  position: relative;
}

@media (min-width: 861px) {
  .route__list {
    padding-bottom: clamp(0px, 26svh, 280px);
  }
}

.route__traces {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route__traces .traces__lit path {
  stroke: var(--current);
  stroke-width: 3;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 240ms linear var(--d, 0ms);
}

.route__traces .traces__lit path.is-lit {
  stroke-dashoffset: 0;
}

.route__traces circle {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    fill 200ms ease var(--d, 0ms),
    stroke 200ms ease,
    transform 300ms var(--ease-out);
}

.route__traces circle.is-lit {
  fill: var(--current);
  stroke: var(--current);
}

@media (prefers-reduced-motion: reduce) {
  .route__traces .traces__lit path {
    transition: none;
  }
  .route__shot.is-swapping img,
  .route__n.is-ticking {
    animation: none;
  }
}

.route__list ol {
  position: relative;
}

.reto {
  padding-block: 14px;
}

.reto + .reto {
  border-top: 1px dashed var(--line);
}

.reto button {
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms var(--ease-out);
}

.reto__n {
  flex: none;
  color: var(--ink-faint);
  font: 500 14px / 1 var(--mono);
  transition: color 160ms ease;
}

.reto__t {
  font: 700 clamp(21px, 2vw, 28px) / 1.2 var(--font);
  letter-spacing: -0.025em;
  transition: color 160ms ease;
}

.reto.is-current .reto__n,
.reto.is-current .reto__t {
  color: var(--current);
}

.concepts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-left: calc(14px * 1.5 + 16px);
  color: var(--ink-soft);
  font-size: var(--size-small);
  line-height: 1.4;
  transition: transform 220ms var(--ease-out);
}

.concepts li:not(:last-child)::after {
  content: ",\00a0";
}

.route__more {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 34rem;
  color: var(--ink-soft);
}

.route__plus {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border: 1px solid var(--copper);
  border-radius: 999px;
  color: var(--copper-text);
  font: 500 13px / 1.4 var(--mono);
}

.route__free {
  margin-top: clamp(48px, 6vw, 88px);
  max-width: 44rem;
  font-size: var(--size-h3);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .route__grid {
    grid-template-columns: 1fr;
  }
  .route__traces {
    display: none;
  }
  .route__meta {
    display: none;
  }
  .route__shot {
    top: calc(var(--bar) + 8px);
    z-index: 2;
    padding-bottom: 8px;
    background: var(--bg);
  }
  .route__shot img {
    max-height: 34svh;
    object-fit: contain;
  }
  .route__shot figcaption {
    margin-top: 6px;
    font-size: 17px;
  }
}

/* Same parts as the real thing. */
.kit {
  padding-block: var(--gap);
  border-top: 1px solid var(--line);
}

.kit__stack {
  display: grid;
  justify-items: center;
  gap: clamp(32px, 4vw, 56px);
  text-align: center;
}

.kit__film {
  width: min(100%, 1120px);
}

.kit__line {
  margin: 24px auto 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: var(--size-lead);
  line-height: 1.5;
}

.kit__film figcaption {
  margin: 10px 6px 4px;
  color: var(--ink-faint);
  font: 500 12.5px / 1.4 var(--mono);
}



/* For schools: four numbers and four plain statements. */
.school {
  padding-block: var(--gap);
  border-top: 1px solid var(--line);
}

.school__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}

.school__intro {
  position: sticky;
  top: calc(var(--bar) + 40px);
  align-self: start;
}

.school__lead {
  max-width: 26rem;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: var(--size-lead);
  line-height: 1.5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.stats li {
  padding: 22px 24px 20px;
  background: var(--bg);
}

.stats strong {
  display: block;
  color: var(--copper-text);
  font: 500 clamp(36px, 3.8vw, 52px) / 1 var(--mono);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stats li > span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.facts > div {
  padding: clamp(22px, 2.4vw, 34px);
  background: var(--bg);
  box-shadow: inset 0 1px 0 transparent;
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .facts > div:hover {
    background: var(--surface);
    box-shadow: inset 0 1px 0 var(--copper);
  }
}

.facts dt {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.facts dt::before {
  content: attr(data-k);
  display: block;
  margin-bottom: 14px;
  color: var(--copper-text);
  font: 500 12px / 1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts dd {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: var(--size-small);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .school__grid {
    grid-template-columns: 1fr;
  }
  .school__intro {
    position: static;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Summer workshop (GD-28): the offer on the left, the eight sessions on the right. */
.summer {
  padding-block: var(--gap);
  border-top: 1px solid var(--line);
}

.summer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.summer__lead {
  max-width: 28rem;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: var(--size-lead);
  line-height: 1.5;
}

.price {
  position: relative;
  margin-top: clamp(28px, 3.5vw, 44px);
  padding: 26px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(245 180 42 / 0.12), transparent 60%),
    var(--surface);
  max-width: 28rem;
  box-shadow: 0 40px 100px -60px var(--glow);
}

:root[data-theme="light"] .price__amount {
  color: var(--copper-text);
}

.price__amount {
  color: var(--current);
  font: 500 clamp(56px, 6vw, 80px) / 1 var(--mono);
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.price__amount span {
  font-size: 0.4em;
  letter-spacing: 0;
  margin-right: 8px;
  vertical-align: 0.95em;
}

.price__what {
  margin-top: 10px;
  font-weight: 700;
}

.price__terms {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: var(--size-small);
}

.price__terms li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--current);
  vertical-align: 2px;
}

.summer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.summer__sessions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(20px, 3vw, 40px);
}

.summer__sessions li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.summer__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper-text);
  font: 500 13px / 1 var(--mono);
}

.summer__sessions h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.summer__sessions p {
  margin-top: 4px;
  color: var(--ink-faint);
  font: 500 13px / 1.4 var(--mono);
}

.summer__includes {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.summer__includes h3 {
  color: var(--copper-text);
  font: 500 12.5px / 1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summer__includes ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

.summer__includes li {
  padding-left: 18px;
  position: relative;
}

.summer__includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

.summer__grid > * {
  min-width: 0;
}

@media (max-width: 860px) {
  .summer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .summer__sessions,
  .summer__includes ul {
    grid-template-columns: 1fr;
  }
}

/* Pilot: three stops on a copper trace, at the moment each one happens. */
.pilot {
  padding-block: var(--gap);
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 100%, rgb(200 118 47 / 0.12), transparent 70%), var(--bg);
  text-align: center;
}

/* The pilot closes the page: its head and its buttons centred, the trace under them. */
.pilot .head {
  grid-template-columns: 1fr;
  justify-items: center;
}

.pilot .head__lead {
  max-width: 40rem;
}

.pilot .head__lead a {
  color: var(--copper-text);
}

.pilot__steps {
  text-align: left;
}

.pilot__actions {
  justify-content: center;
}

.pilot__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px clamp(24px, 4vw, 64px);
  margin-top: clamp(8px, 1vw, 16px);
}

.pilot__steps::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), color-mix(in srgb, var(--copper) 40%, transparent));
}

.pilot__steps li {
  position: relative;
  padding-top: 40px;
}

.pilot__steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 3px solid var(--solder);
  border-radius: 50%;
  background: var(--bg-2);
  box-shadow: 0 0 16px var(--glow);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pilot__steps {
      view-timeline: --pilot block;
    }
    .pilot__steps::after {
      content: "";
      position: absolute;
      top: 8px;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--current);
      box-shadow: 0 0 10px rgb(245 180 42 / 0.6);
      transform-origin: left;
      animation: fill linear both;
      animation-timeline: --pilot;
      animation-range: cover 25% cover 55%;
    }
    .pilot__steps li::after {
      content: "";
      position: absolute;
      top: 5px;
      left: 5px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--current);
      box-shadow: 0 0 12px var(--current);
      animation: pad-on linear both;
      animation-timeline: --pilot;
      animation-range: cover 25% cover 28%;
    }
    .pilot__steps li:nth-child(2)::after {
      animation-range: cover 36% cover 39%;
    }
    .pilot__steps li:nth-child(3)::after {
      animation-range: cover 46% cover 49%;
    }
  }
}

@keyframes pad-on {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes fill-y {
  from {
    transform: scaleY(0);
  }
}

.pilot__when {
  color: var(--copper-text);
  font: 500 12.5px / 1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pilot__steps h3 {
  margin-top: 10px;
  font-size: var(--size-h3);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pilot__steps p {
  max-width: 24rem;
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.pilot__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
}

@media (max-width: 860px) {
  .pilot__steps {
    grid-template-columns: 1fr;
  }
  .pilot__steps::before {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--copper), color-mix(in srgb, var(--copper) 30%, transparent));
  }
  .pilot__steps li {
    padding: 0 0 0 40px;
  }
  .pilot__steps::after {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
    transform-origin: top;
    animation-name: fill-y;
  }
  .pilot__actions .btn {
    width: 100%;
  }
}

/* What's next */
.next {
  padding-block: clamp(72px, 9vw, 130px);
  border-top: 1px solid var(--line);
}

.next__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.next ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.next li {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.next h3 {
  margin-bottom: 8px;
}

.next p {
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .next__grid,
  .next ul {
    grid-template-columns: 1fr;
  }
}

/* Footer: the way to get in touch is the close. */
.foot {
  position: relative;
  overflow: hidden;
  padding-block: 40px 28px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 100% 100%, rgb(200 118 47 / 0.14), transparent 70%),
    var(--bg);
  color: var(--ink);
}

.foot__traces {
  top: 0;
  right: 0;
  width: min(62%, 900px);
  height: 46%;
}

.foot .wrap {
  position: relative;
}

.foot__meta a {
  white-space: nowrap;
  text-underline-offset: 3px;
}

.foot__write {
  margin-top: clamp(48px, 8svh, 96px);
  color: var(--copper-text);
  font: 500 13px / 1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot__mail {
  display: block;
  margin-top: 8px;
  font-size: clamp(36px, 9.4vw, 150px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 300ms var(--ease-out),
    color 200ms ease;
  transform-origin: left center;
}

.foot__mail span {
  display: block;
}

.foot__mail span + span {
  color: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .foot__mail:hover {
    transform: translateX(10px);
  }
  .foot__mail:hover span:first-child {
    color: var(--current);
  }
}

.foot__mail:active {
  transform: scale(0.99);
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.foot__logo {
  width: auto;
  height: 26px;
}

.foot__note {
  flex: 1 1 18rem;
  color: var(--ink-faint);
}

.foot__meta nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

@media (max-width: 860px) {
  .foot__traces {
    opacity: 0.4;
  }
}

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

/* Small pieces added after the review: the hero's workshop line, the whole route on demand,
   the plain address under the mail buttons, and the phone-only notes. */
.only-small {
  display: none;
}

@media (max-width: 760px) {
  .only-small {
    display: inline;
  }
}

.hero__offer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.hero__offer-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(245 180 42 / 0.14);
  color: var(--current);
  font: 500 11.5px / 1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__offer .icon {
  width: 16px;
  height: 16px;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hero__offer:hover {
    border-color: var(--copper);
    background: rgb(200 118 47 / 0.08);
  }
  .hero__offer:hover .icon {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__offer {
    animation: fade-up 520ms var(--ease-out) 520ms both;
  }
}

@media (min-aspect-ratio: 17 / 9) and (min-width: 1100px) {
  .hero__offer {
    grid-column: 2;
    justify-self: start;
    margin-top: 0;
  }
}

.route__hint {
  margin-bottom: 8px;
  color: var(--ink-faint);
  font: 500 12.5px / 1.3 var(--mono);
  letter-spacing: 0.06em;
}

.route__all {
  margin-top: 18px;
}

.route__all summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--copper-text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.route__all summary::-webkit-details-marker {
  display: none;
}

.route__all summary::after {
  content: "+";
  font: 500 16px / 1 var(--mono);
  transition: transform 200ms var(--ease-out);
}

.route__all[open] summary::after {
  transform: rotate(45deg);
}

.route__all-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.02);
}

.route__zone h3 {
  margin-bottom: 6px;
  color: var(--copper-text);
  font: 500 12px / 1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route__zone li {
  display: flex;
  gap: 10px;
  padding-block: 3px;
  color: var(--ink-soft);
  font-size: 15px;
}

.route__zone .reto__n {
  font-size: 12.5px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .route__all-grid {
    grid-template-columns: 1fr;
  }
}

.mail-note {
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 14px;
}

.mail-note a {
  color: var(--ink-soft);
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .route__shot figcaption {
    display: none;
  }
}

@media (max-width: 600px) {
  h2 {
    letter-spacing: -0.03em;
  }
}
