:root {
  --paper: #f4f1e8;
  --paper-deep: #e8e3d7;
  --ink: #171916;
  --muted: #686a62;
  --line: rgba(23, 25, 22, 0.18);
  --coral: #ff5b45;
  --coral-dark: #d83d2b;
  --lime: #cde95a;
  --mint: #98d9bd;
  --blue: #6387d7;
  --white: #fffef8;
  --max-width: 1380px;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

svg {
  display: block;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section-shell {
  width: min(calc(100% - 64px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 32px;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  background: var(--coral);
  border-radius: 50%;
}

.brand-mark span {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 10px;
  width: 3px;
  background: var(--ink);
  border-radius: 3px;
  transform: rotate(22deg);
}

.brand-mark span:last-child {
  right: 10px;
  left: auto;
  transform: rotate(-22deg);
}

.brand-name {
  font-size: 13px;
  letter-spacing: -0.01em;
}

.brand-name strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.site-header nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.site-header nav a,
.source-link {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.source-link {
  justify-self: end;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.source-link:hover {
  color: var(--paper);
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 0.78fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: center;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  padding: clamp(54px, 7vw, 104px) max(32px, calc((100vw - var(--max-width)) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 88%, rgba(205, 233, 90, 0.34), transparent 27%),
    var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 29px;
  height: 8px;
  background: var(--coral);
  border-radius: 99px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(68px, 8.2vw, 132px);
  font-stretch: condensed;
  font-weight: 800;
  line-height: 0.79;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.hero h1 em {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 0.85em;
  font-weight: 400;
  letter-spacing: -0.06em;
  text-transform: none;
}

.hero-intro {
  max-width: 600px;
  margin: 38px 0 0;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--ink);
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
  transition: color 0.2s ease, background 0.2s ease;
}

.button-primary:hover {
  color: var(--ink);
  background: var(--lime);
}

.text-link {
  padding: 8px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 62px);
  margin: clamp(58px, 8vh, 96px) 0 0;
}

.hero-stats div {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.hero-stats dt {
  font-family: var(--display);
  font-size: 45px;
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.07em;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-width: 0;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 24px 24px 0 var(--ink);
  transform: rotate(1.5deg);
}

.visual-topline,
.visual-legend {
  display: flex;
  justify-content: space-between;
  padding: 17px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.visual-topline {
  border-bottom: 1px solid rgba(23, 25, 22, 0.3);
}

.map-graphic {
  width: 100%;
  max-height: min(62vh, 650px);
  color: var(--ink);
}

.road-fill {
  color: #30352f;
}

.road-lines,
.crossings {
  color: var(--paper);
}

.cycle-path {
  color: var(--coral);
}

.map-marker circle {
  fill: var(--coral);
  stroke: var(--ink);
  stroke-width: 2px;
}

.map-marker text {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}

.north-arrow path {
  fill: var(--ink);
}

.north-arrow text {
  font-size: 9px;
  font-weight: 900;
  text-anchor: middle;
}

.visual-legend {
  justify-content: flex-start;
  gap: 24px;
  border-top: 1px solid rgba(23, 25, 22, 0.3);
}

.visual-legend span {
  display: flex;
  gap: 7px;
  align-items: center;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.legend-dot.coral {
  background: var(--coral);
}

.legend-dot.lime {
  background: var(--lime);
}

.legend-line {
  width: 16px;
  border-top: 2px dashed var(--coral);
}

.paper-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 28px solid rgba(23, 25, 22, 0.18);
  border-right: 28px solid var(--paper);
}

.field-guide,
.method {
  padding-block: clamp(100px, 13vw, 180px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(55px, 7vw, 90px);
}

.kicker {
  margin-bottom: 22px;
  color: var(--coral-dark);
}

.section-heading h2 {
  max-width: 880px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.section-heading > p {
  max-width: 480px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.anatomy-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(270px, 0.85fr);
  min-height: 640px;
  border: 1px solid var(--ink);
}

.street-scene {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #d9d6cb;
  border-right: 1px solid var(--ink);
}

.scene-skyline {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  height: 36%;
  padding: 0 4%;
  background: #b8d9d4;
}

.scene-skyline i {
  position: relative;
  display: block;
  flex: 1;
  height: 64%;
  margin-right: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(23, 25, 22, 0.08) 16px 19px),
    #ded9cb;
  border: 1px solid rgba(23, 25, 22, 0.3);
  border-bottom: 0;
}

.scene-skyline i:nth-child(2) {
  height: 82%;
}

.scene-skyline i:nth-child(3) {
  height: 52%;
}

.scene-skyline i:nth-child(4) {
  height: 95%;
}

.scene-skyline i:nth-child(5) {
  height: 70%;
}

.scene-skyline i::after {
  position: absolute;
  inset: 20% 12%;
  content: "";
  background: repeating-linear-gradient(90deg, var(--ink) 0 7px, transparent 7px 20px);
  opacity: 0.32;
}

.scene-ground {
  position: absolute;
  right: -7%;
  bottom: -20%;
  left: -7%;
  height: 84%;
  overflow: hidden;
  background: #3b403a;
  border-top: 1px solid var(--ink);
  transform: perspective(700px) rotateX(44deg);
  transform-origin: bottom;
}

.sidewalk {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16%;
  background: repeating-linear-gradient(0deg, #bdb9ad 0 42px, #9d9a90 43px 45px);
}

.sidewalk-left {
  left: 0;
  border-right: 5px solid #ded9cb;
}

.sidewalk-right {
  right: 0;
  border-left: 5px solid #ded9cb;
}

.lane-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  background: repeating-linear-gradient(0deg, var(--paper) 0 26px, transparent 26px 54px);
  opacity: 0.9;
}

.lane-a {
  left: 39%;
}

.lane-b {
  right: 39%;
}

.crosswalk {
  position: absolute;
  top: 27%;
  right: 12%;
  left: 12%;
  height: 62px;
  background: repeating-linear-gradient(90deg, var(--paper) 0 25px, transparent 25px 41px);
  opacity: 0.9;
}

.cycle-lane {
  position: absolute;
  top: 0;
  right: 17%;
  bottom: 0;
  width: 8%;
  background: rgba(255, 91, 69, 0.5);
  border-inline: 2px dashed var(--paper);
}

.signal-post {
  position: absolute;
  top: 9%;
  right: 21%;
  width: 8px;
  height: 35%;
  background: var(--ink);
}

.signal-head {
  position: absolute;
  top: 4%;
  right: 19.6%;
  display: grid;
  gap: 5px;
  width: 38px;
  padding: 7px;
  background: var(--ink);
  border-radius: 7px;
}

.signal-head i {
  width: 23px;
  height: 23px;
  background: #353935;
  border-radius: 50%;
}

.signal-head i:first-child {
  background: var(--coral);
  box-shadow: 0 0 15px rgba(255, 91, 69, 0.7);
}

.tree {
  position: absolute;
  width: 11px;
  height: 60px;
  background: var(--ink);
}

.tree::before {
  position: absolute;
  top: -60px;
  left: -37px;
  width: 86px;
  height: 82px;
  content: "";
  background: #799c58;
  border: 2px solid var(--ink);
  border-radius: 50% 40% 48% 42%;
}

.tree-a {
  top: 15%;
  left: 8%;
}

.tree-b {
  right: 7%;
  bottom: 9%;
  transform: scale(1.2);
}

.car {
  position: absolute;
  width: 76px;
  height: 124px;
  background: var(--coral);
  border: 3px solid var(--ink);
  border-radius: 22px 22px 15px 15px;
  box-shadow: inset 0 25px 0 #a8c1c7, inset 0 28px 0 var(--ink);
}

.car::after {
  position: absolute;
  right: 8px;
  bottom: 18px;
  left: 8px;
  height: 28px;
  content: "";
  background: #a8c1c7;
  border: 2px solid var(--ink);
}

.car-a {
  right: 30%;
  bottom: 7%;
}

.car-b {
  top: 6%;
  left: 27%;
  background: var(--lime);
  transform: scale(0.72);
}

.hotspot {
  position: absolute;
  z-index: 5;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 4px 8px rgba(23, 25, 22, 0.2));
}

.hotspot b {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  font-size: 11px;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hotspot span {
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--paper);
  border: 1px solid var(--ink);
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hotspot:hover b,
.hotspot:focus-visible b {
  background: var(--lime);
  transform: scale(1.12);
}

.hotspot:hover span,
.hotspot:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}

.h1 { top: 18%; left: 41%; }
.h2 { top: 48%; left: 46%; }
.h3 { top: 61%; left: 17%; }
.h4 { top: 28%; right: 13%; }
.h5 { top: 40%; right: 23%; }
.h6 { top: 33%; left: 7%; }
.h7 { bottom: 12%; left: 42%; }
.h8 { top: 13%; right: 37%; }
.h9 { right: 8%; bottom: 9%; }

.scene-hint {
  position: absolute;
  bottom: 17px;
  left: 18px;
  z-index: 5;
  margin: 0;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--paper);
  border: 1px solid var(--ink);
  text-transform: uppercase;
}

.anatomy-note {
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  background: var(--lime);
}

.note-number {
  align-self: flex-end;
  font-family: var(--display);
  font-size: clamp(54px, 6vw, 94px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
}

.anatomy-note h3 {
  margin: auto 0 24px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.anatomy-note p {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.65;
}

.anatomy-note a {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border-top: 1px solid var(--ink);
}

.elements-section {
  padding-block: clamp(100px, 13vw, 180px);
  color: var(--paper);
  background: var(--ink);
}

.elements-heading > p {
  color: #adafa7;
}

.catalogue-tools {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.25);
}

.search-box {
  display: flex;
  gap: 13px;
  align-items: center;
  width: min(100%, 560px);
  padding: 11px 15px;
  color: var(--paper);
  border: 1px solid rgba(244, 241, 232, 0.45);
}

.search-box:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}

.search-box svg {
  flex: 0 0 22px;
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: #92958d;
}

.search-box kbd {
  display: grid;
  flex: 0 0 26px;
  height: 24px;
  place-items: center;
  color: #92958d;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(244, 241, 232, 0.3);
  border-radius: 3px;
}

.filter-meta {
  color: #92958d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.filter-meta strong {
  margin-right: 3px;
  color: var(--lime);
  font-family: var(--display);
  font-size: 22px;
}

.category-filters {
  display: flex;
  gap: 8px;
  padding: 22px 0 46px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-button {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  align-items: center;
  padding: 9px 13px;
  color: #b8bbb2;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(244, 241, 232, 0.25);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.filter-button span {
  color: #777a73;
  font-size: 9px;
}

.filter-button:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.filter-button.is-active {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.filter-button.is-active span {
  color: var(--ink);
}

.elements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.element-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
  border-top: 7px solid var(--coral);
  transition: transform 0.25s ease, opacity 0.5s ease;
}

.element-card:nth-child(3n + 2) {
  border-top-color: var(--lime);
}

.element-card:nth-child(3n) {
  border-top-color: var(--mint);
}

.element-card:hover {
  transform: translateY(-4px);
}

.element-card[hidden] {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.card-topline span:first-child {
  color: var(--coral-dark);
}

.card-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 25px 0 21px;
  place-items: center;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.card-icon svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.element-card h3 {
  min-height: 2.25em;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(29px, 2.4vw, 39px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.card-description {
  min-height: 4.8em;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.element-card ol {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.element-card li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 10px;
  padding: 12px 0;
  font-size: 12px;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
}

.element-card li[hidden] {
  display: none;
}

.element-card li span {
  padding-top: 1px;
  color: var(--coral-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
}

.element-card li p {
  margin: 0;
}

.empty-state {
  padding: 70px 20px;
  color: #adafa7;
  text-align: center;
  border: 1px dashed rgba(244, 241, 232, 0.25);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  border-block: 1px solid var(--ink);
}

.method-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 25px;
  border-right: 1px solid var(--ink);
}

.method-steps li:last-child {
  border-right: 0;
}

.step-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
}

.step-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 40px 0 28px;
  place-items: center;
  font-family: var(--serif);
  font-size: 43px;
  background: var(--coral);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.method-steps li:nth-child(2) .step-icon {
  background: var(--lime);
}

.method-steps li:nth-child(3) .step-icon {
  background: var(--mint);
}

.method-steps li:nth-child(4) .step-icon {
  background: var(--blue);
}

.method-steps h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.method-steps p {
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.55;
}

.method-steps small {
  margin-top: auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 38px 0;
  border-bottom: 1px solid var(--ink);
}

.principle p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 48px);
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.principle span {
  max-width: 370px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

footer {
  color: var(--paper);
  background: var(--coral-dark);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.7fr;
  gap: 8vw;
  min-height: 480px;
  padding-block: 80px;
}

.footer-mark {
  margin: 0 0 42px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

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

.footer-main h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 8vw, 116px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.footer-copy {
  align-self: end;
}

.footer-copy p {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.footer-copy p:last-child {
  color: rgba(244, 241, 232, 0.7);
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-self: end;
}

.footer-links a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(244, 241, 232, 0.45);
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.07em;
  border-top: 1px solid rgba(244, 241, 232, 0.35);
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 0.8fr;
    gap: 50px;
  }

  .hero h1 {
    font-size: clamp(62px, 8.5vw, 94px);
  }

  .elements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anatomy-layout {
    grid-template-columns: 1fr;
  }

  .street-scene {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .anatomy-note {
    display: grid;
    grid-template-columns: 0.5fr 1fr 1.3fr;
    gap: 26px;
    align-items: end;
  }

  .note-number {
    align-self: center;
    justify-self: start;
  }

  .anatomy-note h3,
  .anatomy-note p {
    margin: 0;
  }

  .anatomy-note a {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .section-shell {
    width: min(calc(100% - 36px), var(--max-width));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 66px;
    padding: 0 18px;
  }

  .site-header nav {
    display: none;
  }

  .brand-name {
    font-size: 11px;
  }

  .source-link {
    font-size: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 65px 18px 90px;
  }

  .hero-copy {
    max-width: 670px;
  }

  .hero h1 {
    font-size: clamp(65px, 16vw, 108px);
  }

  .hero-visual {
    width: calc(100% - 20px);
    max-width: 600px;
    margin: 20px auto 0;
    box-shadow: 16px 16px 0 var(--ink);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading > p {
    max-width: 640px;
  }

  .anatomy-note {
    grid-template-columns: 0.5fr 1.5fr;
  }

  .anatomy-note p {
    grid-column: 1 / -1;
  }

  .method-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-steps li:nth-child(2) {
    border-right: 0;
  }

  .method-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .hero h1 {
    font-size: clamp(57px, 17.5vw, 87px);
  }

  .hero-intro {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    text-align: center;
  }

  .hero-stats {
    justify-content: space-between;
  }

  .hero-stats div {
    gap: 6px;
    align-items: flex-start;
    flex-direction: column;
  }

  .visual-topline span:last-child,
  .visual-legend span:nth-child(2) {
    display: none;
  }

  .visual-legend {
    gap: 18px;
  }

  .street-scene {
    min-height: 500px;
  }

  .anatomy-layout {
    min-height: 500px;
  }

  .hotspot span {
    display: none;
  }

  .hotspot b {
    width: 34px;
    height: 34px;
  }

  .anatomy-note {
    display: flex;
  }

  .note-number {
    align-self: flex-start;
  }

  .anatomy-note h3 {
    margin-top: 38px;
  }

  .catalogue-tools {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .element-card h3,
  .card-description {
    min-height: 0;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-steps li {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .method-steps li:last-child {
    border-bottom: 0;
  }

  .principle {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .footer-main > div:first-child {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero-visual,
  .street-scene,
  .catalogue-tools,
  .category-filters,
  .hero-actions,
  footer {
    display: none !important;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 30px 0 50px;
  }

  .field-guide {
    display: none;
  }

  .elements-section {
    padding: 30px 0;
    color: #000;
    background: #fff;
  }

  .elements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .element-card {
    break-inside: avoid;
    border: 1px solid #000;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
