/* =========================================================
   VS Works — Site A "Reitti" — layout & components
   Tokens live in tokens.css. Content lives in index.html.
   ========================================================= */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font: 400 var(--fs-body) / var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-width: 320px;
}
/* Paper texture: one tiny SVG noise tile, fixed, behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--cloud); }

:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
:focus:not(:focus-visible) { outline: none; }

.mono { font-family: var(--f-mono); font-weight: 500; }
.sq { display: inline-block; width: .55em; height: .55em; background: var(--sienna); flex: none; }
.req { color: var(--sienna-deep); }

.skip {
  position: absolute; left: var(--s-2); top: -100px; z-index: 100;
  padding: .75rem 1rem; background: var(--ink); color: var(--cloud);
  font: 500 var(--fs-small) var(--f-body); text-decoration: none;
}
.skip:focus { top: var(--s-2); }

/* ---------- type ---------- */
.display {
  font: 500 var(--fs-display) / var(--lh-tight) var(--f-head);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
  max-width: 13ch;
}
.h1 {
  font: 500 var(--fs-h1) / var(--lh-head) var(--f-head);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
  text-wrap: balance;
}
.h2 { font: 500 var(--fs-h2) / 1.1 var(--f-head); letter-spacing: -0.015em; }
.h3 { font: 500 var(--fs-h3) / 1.2 var(--f-head); letter-spacing: -0.01em; }
.lead {
  font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem);
  line-height: 1.45;
  max-width: var(--measure);
  margin-top: var(--s-4);
}
.body { max-width: var(--measure); margin-bottom: var(--s-3); }
.body:last-child { margin-bottom: 0; }

.label {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 var(--fs-label) / 1.4 var(--f-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-70);
}
.label--right { justify-self: end; }

/* ---------- links & buttons ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: var(--tap);
  font: 500 var(--fs-small) var(--f-body);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size var(--t-med) var(--ease);
}
.link-arrow::after {
  content: "→";
  transition: transform var(--t-med) var(--ease);
}
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1px; }
.link-arrow:hover::after { transform: translateX(.3em); }

.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--tap);
  padding: .7em 1.4em;
  font: 500 var(--fs-small) / 1 var(--f-body);
  letter-spacing: .01em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--cloud); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn--primary { background: var(--sienna); border-color: var(--sienna); }
.btn--primary:hover, .btn--primary:focus-visible { border-color: var(--ink); }
.btn--on-ink { color: var(--cloud); border-color: var(--cloud); }
.btn--on-ink::before { background: var(--cloud); }
.btn--on-ink:hover, .btn--on-ink:focus-visible { color: var(--ink); }
.btn[disabled] { cursor: progress; opacity: .7; }
.btn.is-loading::after {
  content: ""; display: inline-block; width: 1.2em; height: 1px;
  background: currentColor; animation: barPulse 900ms ease-in-out infinite;
}
@keyframes barPulse { 0%, 100% { transform: scaleX(.2); } 50% { transform: scaleX(1); } }

/* ---------- frame, readout ---------- */
.frame, .readout { display: none; }
@media (min-width: 900px) {
  .frame {
    display: block; position: fixed; inset: var(--frame); z-index: 50;
    pointer-events: none;
    border-left: 1px solid var(--ink-14);
    border-right: 1px solid var(--ink-14);
    border-bottom: 1px solid var(--ink-14);
  }
  .frame::before { /* km ruler along the bottom edge */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
    background:
      repeating-linear-gradient(90deg, var(--ink-30) 0 1px, transparent 1px calc(100% / 24)) left top / 100% 10px no-repeat,
      repeating-linear-gradient(90deg, var(--ink-14) 0 1px, transparent 1px calc(100% / 96)) left bottom / 100% 5px no-repeat;
  }
  .frame__corner { position: absolute; width: 9px; height: 9px; }
  .frame__corner::before, .frame__corner::after { content: ""; position: absolute; background: var(--ink); }
  .frame__corner::before { width: 9px; height: 1px; }
  .frame__corner::after { width: 1px; height: 9px; }
  .frame__corner--tl { left: -1px; top: -1px; }
  .frame__corner--tr { right: -1px; top: -1px; }
  .frame__corner--tr::before { right: 0; } .frame__corner--tr::after { right: 0; }
  .frame__corner--bl { left: -1px; bottom: -1px; }
  .frame__corner--bl::before { bottom: 0; } .frame__corner--bl::after { bottom: 0; }
  .frame__corner--br { right: -1px; bottom: -1px; }
  .frame__corner--br::before { right: 0; bottom: 0; } .frame__corner--br::after { right: 0; bottom: 0; }

  .readout {
    display: block; position: fixed; z-index: 51;
    right: calc(var(--frame) + 12px); bottom: calc(var(--frame) + 14px);
    font: 500 var(--fs-label) / 1 var(--f-mono);
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-70); background: var(--cloud); padding: 4px 6px;
    font-variant-numeric: tabular-nums;
  }
  .readout b { color: var(--ink); font-weight: 500; }
  .readout__sep { margin: 0 .4em; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--s-3);
  padding: .7rem var(--gutter);
  background: rgba(240, 238, 233, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-14);
}
.nav__brand { display: inline-flex; align-items: center; min-height: var(--tap); }
.nav__brand img { width: 150px; height: auto; }
.nav__links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.75rem, 2vw, 2rem); justify-content: center; }
.nav__links a {
  display: inline-flex; align-items: center; gap: .45em; min-height: var(--tap); padding: 0 .1rem;
  font: 500 var(--fs-small) var(--f-body); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 10px) / 0 1px;
  transition: background-size var(--t-med) var(--ease);
}
.nav__links a .mono { font-size: .7rem; color: var(--ink-50); letter-spacing: .06em; }
.nav__links a:hover, .nav__links a:focus-visible, .nav__links a.is-active { background-size: 100% 1px; }
.nav__toggle {
  display: none; align-items: center; gap: .6em; min-height: var(--tap); padding: 0 .25rem;
  background: none; border: 0; cursor: pointer; font: 500 var(--fs-small) var(--f-body);
}
.nav__toggle-bar { width: 22px; height: 1px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
@media (max-width: 899px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; grid-column: 3; }
}

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--cloud);
  padding: .7rem var(--gutter) var(--s-4);
  overflow: auto;
}
.menu[hidden] { display: none; }
.menu__head { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); }
.menu__head img { width: 150px; height: auto; }
.menu__close { background: none; border: 0; color: inherit; min-height: var(--tap); padding: 0 .25rem; font: 500 var(--fs-small) var(--f-body); cursor: pointer; }
.menu__list { list-style: none; margin: var(--s-6) 0 auto; padding: 0; counter-reset: none; }
.menu__list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--cloud-on-ink-14);
  font: 500 clamp(2rem, 8vw, 3rem) / 1.1 var(--f-head); letter-spacing: -.02em;
  color: var(--cloud); text-decoration: none;
  transition: padding-left var(--t-med) var(--ease);
}
.menu__list a .mono { font-size: .8rem; color: var(--cloud-on-ink-70); letter-spacing: .08em; }
.menu__list a:hover { padding-left: .5rem; }
.js .menu.is-open .menu__list li { animation: menuIn var(--t-slow) var(--ease) both; }
.js .menu.is-open .menu__list li:nth-child(2) { animation-delay: 40ms; }
.js .menu.is-open .menu__list li:nth-child(3) { animation-delay: 80ms; }
.js .menu.is-open .menu__list li:nth-child(4) { animation-delay: 120ms; }
.js .menu.is-open .menu__list li:nth-child(5) { animation-delay: 160ms; }
@keyframes menuIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.menu__foot { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.menu__note { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cloud-on-ink-70); }
.menu :focus-visible { outline-color: var(--cloud); }

/* ---------- sheets (sections) ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 4rem); }
.sheet { position: relative; padding-block: var(--section-y); border-top: 1px solid var(--ink-14); }
.sheet__head {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding-bottom: var(--s-2); margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--ink-14);
}
@media (max-width: 599px) { .sheet__head { grid-template-columns: 1fr; } .sheet__head .label--right { display: none; } }
.sheet--plate { background: var(--cloud-2); }
.sheet--ink { background: var(--ink); color: var(--cloud); border-top-color: var(--ink); }
.sheet--ink .label { color: var(--cloud-on-ink-70); }
.sheet--ink .sheet__head { border-bottom-color: var(--cloud-on-ink-14); }
.sheet--ink .body { color: var(--cloud); }
.sheet--ink ::selection { background: var(--cloud); color: var(--ink); }
.sheet--ink :focus-visible { outline-color: var(--sienna); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5) var(--s-7); align-items: start; }
.split--tight { align-items: end; margin-bottom: var(--s-5); }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { border-top: 0; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-6) var(--s-7); align-items: end; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); }
.js .hero__copy > * { animation: heroIn var(--t-slow) var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: 60ms; }
.js .hero__copy > :nth-child(3) { animation-delay: 120ms; }
.js .spec { animation: heroIn var(--t-slow) var(--ease) 180ms both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.spec { border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-2); padding: .7rem 0; border-bottom: 1px solid var(--ink-14); }
.spec dt { font: 500 var(--fs-label) / 1.5 var(--f-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-70); padding-top: .15rem; }
.spec dd { font-size: var(--fs-small); line-height: 1.45; }
@media (max-width: 899px) { .hero__grid { grid-template-columns: 1fr; } }

.plate { margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink-14); }
.plate__art {
  position: relative;
  background:
    linear-gradient(90deg, var(--ink-08) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%;
  padding: clamp(.5rem, 2vw, 1.5rem) 0 0;
}
.plate__art img { width: 100%; height: auto; }
.js .plate__art img { animation: plateIn var(--t-slow) var(--ease) 120ms both; }
@keyframes plateIn { from { opacity: 0; } to { opacity: 1; } }
.ruler { border-top: 1px solid var(--ink); padding-inline: var(--gutter); }
.ruler__ticks {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px calc(100% / 12)) left top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-30) 0 1px, transparent 1px calc(100% / 48)) left bottom / 100% 6px no-repeat;
}
.ruler__stages {
  list-style: none; padding: .6rem 0 .25rem;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem;
  font: 500 var(--fs-label) / 1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
.ruler__stages li { display: flex; gap: .5em; align-items: baseline; }
.ruler__stages b { font-weight: 500; color: var(--ink-50); }
.ruler__stages li:last-child::after { content: ""; width: 8px; height: 8px; background: var(--sienna); align-self: center; }
.ruler__km { display: flex; justify-content: space-between; padding-bottom: .6rem; font: 400 .7rem / 1 var(--f-mono); color: var(--ink-50); }
.plate__caption { padding: .75rem var(--gutter); border-top: 1px solid var(--ink-14); width: 100%; }
@media (max-width: 599px) {
  .plate__art img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% center; }
  .ruler__stages { font-size: .62rem; letter-spacing: .04em; gap: .25rem; }
  .ruler__stages li { flex-direction: column; gap: .15em; }
}

/* ---------- ledger (why) ---------- */
.ledger { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.ledger__row {
  display: grid; grid-template-columns: 3rem minmax(0, 15rem) 1fr; gap: var(--s-2) var(--s-4);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--ink-14); align-items: start;
}
.ledger__num { color: var(--ink-50); font-size: .8rem; padding-top: .35rem; }
.ledger__row p { font-size: var(--fs-small); line-height: 1.5; }
@media (max-width: 719px) {
  .ledger__row { grid-template-columns: 3rem 1fr; }
  .ledger__row p { grid-column: 2; }
}

/* ---------- services ---------- */
.contour { justify-self: end; width: min(100%, 26rem); }
.contour img { width: 100%; }
@media (max-width: 899px) { .contour { justify-self: start; width: min(100%, 20rem); } }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink-14); }
.service { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-4) 0; border-right: 1px solid var(--ink-14); }
.service + .service { padding-left: var(--s-4); }
.service:last-child { border-right: 0; padding-right: 0; }
.service__head { display: grid; gap: var(--s-2); }
.service__num { font-size: 2rem; line-height: 1; font-weight: 400; color: var(--ink-50); }
.service__body { font-size: var(--fs-small); line-height: 1.5; flex: 1; }
.service__meta div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s-2); padding: .5rem 0; border-top: 1px solid var(--ink-14); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.service__meta dt { color: var(--ink-50); }
@media (max-width: 899px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: var(--s-4) 0; border-right: 0; border-bottom: 1px solid var(--ink-14); }
  .service:last-child { border-bottom: 0; }
}

.compass {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-4) var(--s-6); align-items: center;
  margin-top: var(--s-6); padding: var(--s-4) 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink-14);
}
.compass__mark { color: var(--ink); }
.compass__copy { display: grid; gap: var(--s-2); justify-items: start; max-width: 40rem; }
.compass__copy p:not(.label) { font-size: var(--fs-small); }
.compass__copy .btn { margin-top: var(--s-2); }
@media (max-width: 599px) { .compass { grid-template-columns: 1fr; } }

/* ---------- route (main interaction) ---------- */
.route__hint { margin-top: var(--s-3); }
.route {
  position: relative;
  aspect-ratio: 1200 / 400;
  margin-top: var(--s-2);
  border: 1px solid var(--ink-14);
  border-bottom: 1px solid var(--ink);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
@media (max-width: 719px) { .route { aspect-ratio: 5 / 4; } }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.route__area { fill: var(--ink-08); }
.route__line { fill: none; stroke: var(--ink-30); stroke-width: 1.5; }
.route__done {
  fill: none; stroke: var(--ink); stroke-width: 2;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset var(--t-slow) var(--ease);
}
.route.is-dragging .route__done { transition: none; }
.route__ticks path { stroke: var(--ink-30); }

.route__surface { position: absolute; inset: 0; z-index: 1; cursor: grab; }
.route.is-dragging .route__surface { cursor: grabbing; }

.route__squares i {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 11px; height: 11px; transform: translate(-50%, -50%);
  background: var(--sienna); box-shadow: 0 0 0 2px var(--cloud);
  transition: background var(--t-med) var(--ease);
}
.route__squares i[data-passed="false"] { background: var(--cloud); box-shadow: 0 0 0 2px var(--cloud), inset 0 0 0 1.5px var(--sienna); }

.route__nodes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.route__node {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  padding: 0; border: 0; background: none; cursor: pointer;
  pointer-events: auto;
}
.route__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cloud); border: 1.5px solid var(--ink);
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.route__node:hover .route__dot { transform: scale(1.2); }
.route__node[aria-pressed="true"] .route__dot { background: var(--ink); transform: scale(1.3); }
.route__name {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  display: inline-flex; gap: .45em; align-items: baseline; white-space: nowrap;
  font: 500 .82rem / 1 var(--f-body);
}
.route__name .mono { font-size: .68rem; color: var(--ink-50); letter-spacing: .06em; }
.route__node[aria-pressed="true"] .route__name { font-weight: 700; }
.route__node:first-child .route__name { left: 0; transform: none; }
.route__node:last-child .route__name { left: auto; right: 0; transform: none; }
@media (max-width: 719px) {
  .route__node:not([aria-pressed="true"]) .route__name { display: none; }
  .route__name { font-size: .75rem; }
}

.route__marker {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 24px; height: 24px; transform: translate(-50%, -50%);
  border: 1.5px solid var(--ink); border-radius: 50%;
  background: rgba(240, 238, 233, .85);
  pointer-events: none;
  transition: left var(--t-med) var(--ease), top var(--t-med) var(--ease);
}
.route.is-dragging .route__marker { transition: none; }
.route__marker::before, .route__marker::after { content: ""; position: absolute; background: var(--ink); }
.route__marker::before { left: 50%; top: -8px; width: 1px; height: calc(100% + 16px); }
.route__marker::after { top: 50%; left: -8px; height: 1px; width: calc(100% + 16px); }
.route__marker-km {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: .68rem; letter-spacing: .06em;
  background: var(--cloud); padding: 2px 5px; border: 1px solid var(--ink-14);
  font-variant-numeric: tabular-nums;
}

.panels { margin-top: calc(var(--s-4) + 1.5rem); }
.panel { padding: var(--s-4) 0; border-bottom: 1px solid var(--ink-14); }
.js .panel { animation: panelIn var(--t-med) var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel__head { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.panel__km { font-size: .75rem; color: var(--ink-50); letter-spacing: .08em; }
.panel__head .h2 .mono { color: var(--ink-50); font-size: .8em; margin-right: .2em; }
.panel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.panel__grid dt { font: 500 var(--fs-label) / 1.5 var(--f-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-70); display: flex; align-items: center; gap: .5em; }
.panel__grid dd { margin-top: .6rem; font-size: var(--fs-small); line-height: 1.5; }
.panel__decision { border-left: 2px solid var(--sienna); padding-left: var(--s-2); }
@media (max-width: 899px) { .panel__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .panel__grid { grid-template-columns: 1fr; } }

/* ---------- values (ink plate) ---------- */
.values { list-style: none; padding: 0; border-top: 1px solid var(--cloud-on-ink-14); }
.values li { display: grid; grid-template-columns: 3rem minmax(0, 12rem) 1fr; gap: var(--s-2) var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--cloud-on-ink-14); align-items: start; }
.values .mono { color: var(--cloud-on-ink-70); font-size: .8rem; padding-top: .2rem; }
.values h3 { font: 500 1.125rem / 1.25 var(--f-head); }
.values p { font-size: var(--fs-small); color: var(--cloud-on-ink-70); line-height: 1.5; }
@media (max-width: 719px) {
  .values li { grid-template-columns: 3rem 1fr; }
  .values p { grid-column: 2; }
}

/* ---------- contact & form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6) var(--s-7); align-items: start; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
.contact__details { margin-top: var(--s-5); border-top: 1px solid var(--ink); }
.contact__details div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-2); padding: .7rem 0; border-bottom: 1px solid var(--ink-14); align-items: baseline; }
.contact__details dd { font-size: var(--fs-small); }
.contact__details a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; transition: background-size var(--t-fast); }
.contact__details a:hover { background-size: 0 1px; }
.contact__details .is-placeholder { color: var(--ink-50); font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); border-top: 1px solid var(--ink); padding-top: var(--s-3); }
.form > .label, .field--full, .form__actions { grid-column: 1 / -1; }
@media (max-width: 599px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font: 500 var(--fs-small) var(--f-body); margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap);
  font: 400 1rem / 1.4 var(--f-body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-50); border-radius: 0;
  padding: .55rem 0;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23071225' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: var(--sienna); box-shadow: 0 1px 0 var(--sienna); }
.field__error { margin-top: .4rem; font-size: .75rem; letter-spacing: .02em; color: var(--sienna-deep); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-2); }
.form__status { font-size: .8rem; line-height: 1.5; max-width: 34rem; }
.form__status.is-error { color: var(--sienna-deep); }
.form__status.is-notice { color: var(--ink-70); }
.form__status.is-success { color: var(--ink); }
.form__status a { color: inherit; }

/* ---------- footer title block ---------- */
.foot { border-top: 1px solid var(--ink); padding: var(--s-5) 0 calc(var(--s-5) + var(--frame)); }
.titleblock { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1.5fr; border: 1px solid var(--ink); }
.titleblock__cell { padding: var(--s-3); border-right: 1px solid var(--ink); display: grid; align-content: start; gap: var(--s-2); }
.titleblock__cell:last-child { border-right: 0; }
.titleblock__cell--brand img { width: 150px; }
.titleblock__cell--brand p { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70); }
.titleblock dl div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s-2); padding: .3rem 0; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--ink-14); }
.titleblock dl div:last-child { border-bottom: 0; }
.titleblock dt { color: var(--ink-50); }
.foot__links { list-style: none; padding: 0; display: grid; gap: .1rem; }
.foot__links a { display: inline-flex; min-height: var(--tap); align-items: center; font-size: var(--fs-small); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 6px) / 0 1px; transition: background-size var(--t-med) var(--ease); }
.foot__links a:hover, .foot__links a:focus-visible { background-size: 100% 1px; }
.titleblock__cell--legal { font-size: .7rem; letter-spacing: .04em; color: var(--ink-70); }
.titleblock__cell--legal p { display: flex; gap: .6em; align-items: center; }
@media (max-width: 899px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock__cell:nth-child(2) { border-right: 0; }
  .titleblock__cell:nth-child(-n + 2) { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 599px) {
  .titleblock { grid-template-columns: 1fr; }
  .titleblock__cell { border-right: 0; border-bottom: 1px solid var(--ink); }
  .titleblock__cell:last-child { border-bottom: 0; }
}

/* ---------- scroll reveals ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .ledger__row.rv:nth-child(2), .js .values li.rv:nth-child(2), .js .service.rv:nth-child(2) { transition-delay: 70ms; }
.js .ledger__row.rv:nth-child(3), .js .values li.rv:nth-child(3), .js .service.rv:nth-child(3) { transition-delay: 140ms; }
.js .ledger__row.rv:nth-child(4), .js .values li.rv:nth-child(4) { transition-delay: 210ms; }
.js .values li.rv:nth-child(5) { transition-delay: 280ms; }

/* ---------- reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv.is-in { opacity: 1; transform: none; transition: none; }
  .js .hero__copy > *, .js .spec, .js .plate__art img, .js .panel, .js .menu.is-open .menu__list li { animation: none; }
  .btn.is-loading::after { animation: none; width: .6em; }
  .btn::before, .route__done, .route__marker, .route__dot, .link-arrow::after { transition: none; }
}
