/* LanceTek — timetable sheet system */
:root {
  --yellow: #f4cf47;
  --paper: #fdfdfb;
  --ink: #141412;
  --ink-soft: #3f3a1c;      /* secondary text on yellow, tinted from the ground */
  --ink-mute: #4b4a44;      /* secondary text on white paper */
  --rule: rgba(20, 20, 18, 0.9);
  --rule-soft: rgba(20, 20, 18, 0.28);
  --green: #08562e;         /* route line, stops, focus/active only */
  --placeholder: #66655d;
  --screen-rule: #d8d8d2;
  --screen-head: #f2f2ee;
  --error-red: #8f1d14;
  --error-ink: #7a1710;
  --error-wash: #fff6f4;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --max: 1360px;
  --step--1: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --space-section: clamp(4rem, 3rem + 4vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--yellow); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--yellow);
  font-variation-settings: "wdth" 100;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.sheet-white { background: var(--paper); scrollbar-color: var(--ink) var(--paper); }
::selection { background: var(--ink); color: var(--yellow); }
img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--yellow); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.num, .tnum { font-feature-settings: "tnum" 1, "lnum" 1; }
.wide { font-variation-settings: "wdth" 118; }
.narrow { font-variation-settings: "wdth" 75; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header: timetable heading strip ---------- */
.masthead { border-bottom: 2px solid var(--ink); }
.masthead .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  min-height: 4.25rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
  font-weight: 760;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 118;
  padding-right: 1.5rem;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; margin-left: auto; }
.nav a {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0.55rem 1rem;
  border-left: 1px solid var(--rule-soft);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.98rem;
  line-height: 1.15;
}
.nav a small { font-size: var(--step--1); font-weight: 450; color: var(--ink-soft); font-feature-settings: "tnum" 1; letter-spacing: 0.02em; }
.sheet-white .nav a small { color: var(--ink-mute); }
.nav a:hover { background: rgba(20, 20, 18, 0.06); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--yellow); }
.nav a[aria-current="page"] small { color: var(--yellow); }
.sheet-white .nav a[aria-current="page"] { color: var(--paper); }
.sheet-white .nav a[aria-current="page"] small { color: var(--paper); }
.clock {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  padding-left: 1.25rem; border-left: 1px solid var(--rule-soft);
  font-feature-settings: "tnum" 1; line-height: 1.1;
}
.clock b { font-size: var(--step-1); font-weight: 700; font-variation-settings: "wdth" 80; }
.clock span { font-size: var(--step--1); color: var(--ink-soft); }
.sheet-white .clock span { color: var(--ink-mute); }

/* ---------- Sheet titles ---------- */
.sheet-head { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.sheet-head .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.sheet-head h1 {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: var(--step-4);
  line-height: 0.98;
  font-weight: 720;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 112;
  text-wrap: balance;
}
.sheet-head .lede { grid-column: 9 / span 4; margin: 0; color: var(--ink-soft); max-width: 36ch; }
.sheet-white .sheet-head .lede { color: var(--ink-mute); }

h2, h3 { text-wrap: balance; }
.section { padding-block: var(--space-section) 0; }
.section-title {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}
.section-title h2 {
  grid-column: 1 / span 7; margin: 0;
  font-size: var(--step-3); line-height: 1.02; font-weight: 700;
  letter-spacing: -0.02em; font-variation-settings: "wdth" 110;
}
.section-title p { grid-column: 8 / span 5; margin: 0; color: var(--ink-soft); max-width: 46ch; justify-self: end; }
.sheet-white .section-title p { color: var(--ink-mute); }

/* ---------- Home: first viewport ---------- */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); border-bottom: 2px solid var(--ink); }
.board-offer { grid-column: 1 / span 7; padding-block: clamp(2rem, 1.25rem + 2.4vw, 3.5rem); padding-right: clamp(0rem, 2vw, 2rem); display: flex; flex-direction: column; }
.board-offer h1 {
  margin: 0;
  font-size: clamp(2.3rem, 1.5rem + 2.9vw, 4.1rem);
  line-height: 0.98;
  font-weight: 740;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 115;
  max-width: 19ch;
}
.board-offer .sub { margin: 1.5rem 0 0; font-size: var(--step-1); line-height: 1.4; max-width: 34ch; color: var(--ink); }
.starter { margin-top: auto; padding-top: 2rem; }
.starter label { display: block; font-weight: 640; margin-bottom: 0.5rem; }
.starter .row { display: grid; grid-template-columns: 1fr auto; border: 2px solid var(--ink); background: var(--paper); }
.starter input {
  border: 0; background: transparent; font: inherit; color: var(--ink);
  padding: 0.95rem 1rem; min-width: 0;
}
.starter input::placeholder { color: var(--placeholder); }
.starter input:focus-visible { outline: none; }
.starter .row:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.starter .hint { margin: 0.6rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font: inherit; font-weight: 680;
  background: var(--ink); color: var(--yellow);
  border: 2px solid var(--ink);
  padding: 0.9rem 1.35rem;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  font-variation-settings: "wdth" 108;
}
.sheet-white .btn { color: var(--paper); }
.btn:hover { background: var(--green); border-color: var(--green); color: var(--paper); text-decoration: none; }
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* Timetable panel (calling points) */
.calling { grid-column: 8 / span 5; border-left: 1px solid var(--rule); padding: clamp(2rem, 1.25rem + 2.4vw, 3.5rem) 0 2rem clamp(1rem, 2vw, 2rem); }
.calling h2 { margin: 0; font-size: var(--step-1); font-weight: 720; font-variation-settings: "wdth" 112; letter-spacing: -0.01em; }
.calling .meta { margin: 0.2rem 0 1.25rem; font-size: var(--step--1); color: var(--ink-soft); }

.route { list-style: none; margin: 0; padding: 0; position: relative; --fill: 0; }
.route::before, .route::after {
  content: ""; position: absolute; left: calc(4.25rem + 7px); top: 0.9rem; bottom: 1.4rem; width: 4px;
  background: var(--rule-soft);
}
.route::after {
  background: var(--green);
  transform-origin: top; transform: scaleY(var(--fill));
  transition: transform 1.6s var(--ease-out);
}
.route.is-run { --fill: 1; }
.stop {
  display: grid; grid-template-columns: 4.25rem 18px 1fr; column-gap: 0.85rem;
  padding: 0.55rem 0; position: relative; z-index: 1;
}
.stop .when { font-feature-settings: "tnum" 1; font-variation-settings: "wdth" 78; font-weight: 640; font-size: 1.05rem; line-height: 1.35; }
.stop .dot {
  width: 18px; height: 18px; margin-top: 0.2rem;
  border: 3px solid var(--ink); background: var(--paper); border-radius: 50%;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.stop.terminus .dot { border-radius: 2px; }
.route.is-run .dot { border-color: var(--green); background: var(--green); transition-delay: calc(var(--i) * 0.22s); }
.route.is-run .stop.terminus .dot { background: var(--paper); border-width: 5px; }
.stop .what { font-weight: 660; font-size: 1.05rem; line-height: 1.3; font-variation-settings: "wdth" 106; }
.stop .note { display: block; font-weight: 420; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.45; margin-top: 0.15rem; font-variation-settings: "wdth" 100; }
.stop:hover .what, .stop:focus-within .what { color: var(--green); }
.sheet-white .stop .note { color: var(--ink-mute); }

.fn { font-size: 0.7em; vertical-align: super; line-height: 0; font-weight: 700; color: var(--green); text-decoration: none; padding-inline: 0.1em; }
.footnotes { margin: 1.25rem 0 0; padding: 0.75rem 0 0; border-top: 1px solid var(--rule-soft); font-size: var(--step--1); color: var(--ink-soft); list-style: none; }
.sheet-white .footnotes { color: var(--ink-mute); }
.footnotes li { display: grid; grid-template-columns: 1.4rem 1fr; }
.footnotes b { color: var(--green); }

/* ---------- Route table (services summary) ---------- */
.routes { width: 100%; border-collapse: collapse; }
.routes caption { text-align: left; }
.routes th, .routes td { text-align: left; vertical-align: top; padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid var(--rule); }
.routes thead th { font-size: var(--step--1); font-weight: 560; color: var(--ink-soft); padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
.routes .rno { width: 5.5rem; font-variation-settings: "wdth" 70; font-weight: 760; font-size: var(--step-3); line-height: 0.9; font-feature-settings: "tnum" 1; }
.routes .rname { width: 30%; }
.routes .rname a { font-size: var(--step-2); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; font-variation-settings: "wdth" 110; text-decoration: none; display: inline-block; }
.routes .rname a:hover { color: var(--green); }
.routes .rcalls { color: var(--ink); max-width: 46ch; }
.routes .rprice { width: 17%; white-space: nowrap; font-feature-settings: "tnum" 1; }
.routes .rprice b { display: block; font-size: var(--step-1); font-variation-settings: "wdth" 85; }
.routes .rprice span { font-size: var(--step--1); color: var(--ink-soft); }
.routes tbody tr { transition: background-color 0.3s var(--ease-out); }
.routes tbody tr:hover { background: rgba(20, 20, 18, 0.045); }

/* ---------- Proof: sample screen ---------- */
.proof { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 2rem; }
.proof-text { grid-column: 1 / span 4; }
.proof-text h3 { margin: 0 0 0.75rem; font-size: var(--step-2); line-height: 1.1; font-variation-settings: "wdth" 108; letter-spacing: -0.015em; }
.proof-text p { margin: 0 0 1rem; max-width: 40ch; }
.proof-figure { grid-column: 5 / span 8; margin: 0; }
.proof-figure figcaption, .plate figcaption {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem;
  border-top: 1px solid var(--ink); margin-top: 0.75rem; padding-top: 0.5rem;
  font-size: var(--step--1); color: var(--ink-soft);
}
.sheet-white figcaption { color: var(--ink-mute) !important; }
figcaption b { color: var(--ink); font-weight: 700; font-feature-settings: "tnum" 1; }

.screen { background: var(--paper); border: 2px solid var(--ink); font-size: 0.875rem; overflow: hidden; }
.screen-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--rule); font-weight: 640; }
.screen-bar span { font-weight: 450; color: var(--ink-mute); font-size: 0.8rem; }
.screen table { width: 100%; border-collapse: collapse; }
.screen th, .screen td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--screen-rule); vertical-align: top; }
.screen th { font-size: var(--step--1); font-weight: 560; color: var(--ink-mute); background: var(--screen-head); }
.screen td.amt { font-feature-settings: "tnum" 1; text-align: right; white-space: nowrap; }
.screen th.amt { text-align: right; }
.tag { display: inline-block; font-size: var(--step--1); font-weight: 640; padding: 0.1rem 0.45rem; border: 1px solid var(--ink); white-space: nowrap; }
.tag.ok { background: var(--green); color: var(--paper); border-color: var(--green); }
.tag.wait { background: var(--yellow); }
.screen .why { color: var(--ink-mute); font-size: var(--step--1); display: block; margin-top: 0.15rem; }

/* ---------- Arrivals: journal list ---------- */
.arrivals-band { background: var(--paper); margin-top: var(--space-section); border-block: 2px solid var(--ink); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.arrivals-band .section-title p { color: var(--ink-mute); }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 7.5rem 1fr 11rem 4.5rem; column-gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.entry time, .entry .mins { font-feature-settings: "tnum" 1; font-variation-settings: "wdth" 80; font-weight: 600; color: var(--ink-mute); font-size: var(--step--1); }
.entry .mins { text-align: right; }
.entry .tool { font-size: var(--step--1); font-weight: 600; color: var(--ink-mute); }
.entry h2, .entry h3 { margin: 0; font-size: var(--step-1); line-height: 1.22; font-weight: 660; font-variation-settings: "wdth" 104; letter-spacing: -0.005em; }
.entry h2 a, .entry h3 a { text-decoration: none; }
.entry h2 a:hover, .entry h3 a:hover { color: var(--green); text-decoration: underline; }
.entry p { margin: 0.35rem 0 0; color: var(--ink-mute); max-width: 68ch; font-size: 0.98rem; }
.entry details { margin-top: 0.6rem; }
.entry summary { cursor: pointer; padding-block: 0.35rem; min-height: 24px; font-weight: 620; font-size: var(--step--1); width: max-content; max-width: 100%; list-style: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::before { content: ""; width: 7px; height: 10px; background: var(--green); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform 0.25s var(--ease-out); }
.entry details[open] summary::before { transform: rotate(90deg); }
.entry .body { max-width: 68ch; padding: 0.75rem 0 0.25rem; }
.entry .body p { color: var(--ink); margin: 0 0 0.8rem; font-size: 1rem; }
.jno { display: inline-block; margin-right: 0.3em; font-weight: 780; font-variation-settings: "wdth" 66; font-feature-settings: "tnum" 1; color: var(--green); }
.more { margin: 1.5rem 0 0; font-weight: 600; }
.footnotes-top { border-top: 0; margin-top: 0.5rem; }
.entries-top { margin-top: 1.5rem; }
.facts-gap { margin-top: 2rem; }
.foot-gap { margin-top: var(--space-section); }
.opt { font-weight: 420; }
.entry .body h3 { margin: 1rem 0 0.35rem; font-size: 1rem; font-weight: 700; }

/* ---------- Closing CTA ---------- */
.close { padding-block: var(--space-section); }
.close .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; border-top: 2px solid var(--ink); padding-top: 2rem; }
.close h2 { grid-column: 1 / span 7; margin: 0; font-size: var(--step-3); line-height: 1.02; font-weight: 720; letter-spacing: -0.02em; font-variation-settings: "wdth" 112; text-wrap: balance; }
.close .act { grid-column: 9 / span 4; }
.close .act p { margin: 0 0 1rem; color: var(--ink-soft); }
.sheet-white .close .act p { color: var(--ink-mute); }

/* ---------- Footer ---------- */
.foot { border-top: 2px solid var(--ink); padding-block: 1.75rem 2.5rem; font-size: var(--step--1); }
.foot .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1rem; }
.foot .c1 { grid-column: 1 / span 4; }
.foot .c2 { grid-column: 5 / span 4; }
.foot .c3 { grid-column: 9 / span 4; }
.foot p { margin: 0 0 0.35rem; }
.foot a { font-weight: 560; }
.foot .mute { color: var(--ink-soft); }
.sheet-white .foot .mute { color: var(--ink-mute); }

/* ---------- Services page ---------- */
.service { padding-top: var(--space-section); }
.service-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); border-bottom: 2px solid var(--ink); padding-bottom: 1rem; align-items: end; scroll-margin-top: 1.5rem; }
.service-head .rno { grid-column: 1 / span 2; font-size: clamp(4rem, 3rem + 5vw, 8.5rem); line-height: 0.8; font-weight: 780; font-variation-settings: "wdth" 62; font-feature-settings: "tnum" 1; }
.service-head h2 { grid-column: 3 / span 6; margin: 0; font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.02em; font-weight: 720; font-variation-settings: "wdth" 112; }
.service-head p { grid-column: 9 / span 4; margin: 0; color: var(--ink-soft); }
.service-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.service-body > div { padding-top: 1.5rem; }
.service-body .get { grid-column: 1 / span 4; padding-right: 0.5rem; }
.service-body .shape { grid-column: 5 / span 5; border-left: 1px solid var(--rule); padding-left: clamp(1rem, 2vw, 1.75rem); }
.service-body .price { grid-column: 10 / span 3; border-left: 1px solid var(--rule); padding-left: clamp(1rem, 2vw, 1.75rem); }
.service-body h3 { margin: 0 0 0.85rem; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.01em; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule-soft); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 0.45rem 0 0.45rem 1.4rem; position: relative; border-bottom: 1px solid var(--rule-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 0.65rem; height: 2px; background: var(--ink); }
.ticks li:last-child { border-bottom: 0; }
.fares { margin: 0; }
.fares div { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.fares dt { font-size: var(--step--1); }
.fares dd { margin: 0; font-weight: 720; font-feature-settings: "tnum" 1; font-variation-settings: "wdth" 85; font-size: 1.1rem; white-space: nowrap; }
.price .small { font-size: var(--step--1); color: var(--ink-soft); margin: 0.75rem 0 0; }
.route.compact .stop { padding: 0.4rem 0; }

.jump { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--rule); }
.jump a { padding: 0.8rem 1.25rem 0.8rem 0; margin-right: 1.25rem; text-decoration: none; font-weight: 600; display: inline-flex; gap: 0.5rem; align-items: baseline; }
.jump a b { font-variation-settings: "wdth" 70; font-size: var(--step-1); }
.jump a:hover { color: var(--green); }

.notice { margin-top: var(--space-section); border: 2px solid var(--ink); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); background: var(--paper); }
.notice h2 { grid-column: 1 / span 4; margin: 0; font-size: var(--step-2); line-height: 1.1; font-variation-settings: "wdth" 110; }
.notice div { grid-column: 5 / span 8; }
.notice p { margin: 0 0 0.75rem; max-width: 66ch; }

/* ---------- About page ---------- */
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.1rem; }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 2.5rem; }
.about-grid .prose { grid-column: 1 / span 7; font-size: var(--step-1); line-height: 1.5; }
.about-grid .prose p:first-child { font-size: var(--step-2); line-height: 1.32; font-weight: 600; font-variation-settings: "wdth" 106; letter-spacing: -0.01em; }
.about-grid aside { grid-column: 9 / span 4; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule-soft); }
.facts dt { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 0; }
.rules-list { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: r; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.rules-list li { border-top: 1px solid var(--rule); padding: 1rem 0 1.5rem; counter-increment: r; display: grid; grid-template-columns: 2.5rem 1fr; }
.rules-list li::before { content: counter(r, lower-alpha); font-weight: 760; color: var(--green); font-size: 1.2rem; line-height: 1.3; }
.rules-list h3 { margin: 0 0 0.35rem; font-size: var(--step-1); font-variation-settings: "wdth" 106; }
.rules-list p { margin: 0; max-width: 52ch; }

.plate { margin: 2rem 0 0; }
.plate .art { background: var(--paper); border: 2px solid var(--ink); padding: clamp(0.75rem, 2vw, 1.75rem); }
.stack { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.stack th, .stack td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--rule-soft); }
.stack thead th { font-size: var(--step--1); color: var(--ink-soft); font-weight: 560; border-bottom: 2px solid var(--ink); }
.stack tbody th { font-weight: 700; width: 20%; font-variation-settings: "wdth" 106; }
.stack td.why { color: var(--ink-soft); }

.lab-tall { display: none; }
.lab-tall .stop .what { font-size: 1rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 2.5rem; }
.form { grid-column: 1 / span 7; }
.next { grid-column: 9 / span 4; }
.next h2 { margin: 0 0 1rem; font-size: var(--step-1); font-variation-settings: "wdth" 112; }
.field { margin: 0 0 1.4rem; }
.field label, .field legend { display: block; font-weight: 660; margin-bottom: 0.4rem; padding: 0; }
.field .help { display: block; font-size: var(--step--1); color: var(--ink-soft); margin: -0.15rem 0 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  padding: 0.8rem 0.9rem; caret-color: var(--green);
  transition: box-shadow 0.2s var(--ease-out);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23141412' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--yellow), 0 0 0 6px var(--green); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field [aria-invalid="true"] { border-color: var(--error-red); background: var(--error-wash); }
.err { display: block; color: var(--error-ink); font-weight: 600; font-size: var(--step--1); margin-top: 0.4rem; }
.err:empty { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; margin: 0 0 1.4rem; padding: 0; }
.chips legend { width: 100%; font-weight: 660; margin-bottom: 0.4rem; padding: 0; }
.chips legend span { font-weight: 420; }
.chips label { margin: 0; font-weight: 520; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label > span { display: inline-block; border: 2px solid var(--ink); padding: 0.45rem 0.8rem; background: var(--paper); cursor: pointer; transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.chips input:checked + span { background: var(--green); color: var(--paper); border-color: var(--green); }
.chips input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.chips label > span:hover { background: rgba(20, 20, 18, 0.07); }
.chips input:checked + span:hover { background: var(--green); }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 0.5rem; }
.form-foot p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); max-width: 44ch; }
.logged { margin-top: 2rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 1rem 0; display: none; }
.logged.is-shown { display: block; }
.logged .line { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; font-feature-settings: "tnum" 1; }
.logged .line b { font-variation-settings: "wdth" 78; }
.logged p { margin: 0.5rem 0 0; }

/* ---------- Reveal motion: content visible by default ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .route:not(.is-run) .dot { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .route::after, .route .dot, .btn svg, .entry summary::before { transition: none !important; }
  .btn:hover svg { transform: none; }
  html { scroll-behavior: auto; }
  .route { --fill: 1; }
  .route .dot { border-color: var(--green); background: var(--green); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .board-offer { grid-column: 1 / -1; padding-right: 0; }
  .calling { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .proof-text, .proof-figure { grid-column: 1 / -1; }
  .proof-figure { margin-top: 1.5rem; }
  .service-body .get { grid-column: 1 / -1; }
  .service-body .shape { grid-column: 1 / span 7; border-left: 0; padding-left: 0; }
  .service-body .price { grid-column: 8 / span 5; }
  .about-grid .prose, .about-grid aside { grid-column: 1 / -1; }
  .about-grid aside { margin-top: 2rem; }
  .form, .next { grid-column: 1 / -1; }
  .next { margin-top: 3rem; }
}
@media (max-width: 760px) {
  .masthead .wrap { grid-template-columns: 1fr auto; }
  .brand { padding-block: 0.8rem; }
  .nav { grid-column: 1 / -1; grid-row: 2; max-width: none; margin: 0 calc(var(--gutter) * -1); border-top: 1px solid var(--rule-soft); }
  .nav a { padding: 0.6rem 0.5rem; font-size: 0.9rem; text-align: center; align-items: center; }
  .nav a:first-child { border-left: 0; }
  .clock { padding-left: 0.9rem; }
  .sheet-head h1, .sheet-head .lede, .section-title h2, .section-title p, .close h2, .close .act,
  .service-head h2, .service-head p, .notice h2, .notice div { grid-column: 1 / -1; }
  .sheet-head .lede, .section-title p { margin-top: 1rem; justify-self: start; }
  .service-head .rno { grid-column: 1 / -1; margin-bottom: 0.5rem; }
  .service-head p { margin-top: 0.75rem; }
  .service-body .shape, .service-body .price { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .close .act { margin-top: 1.5rem; }
  .notice div { margin-top: 1rem; }
  .foot .c1, .foot .c2, .foot .c3 { grid-column: 1 / -1; }
  .rules-list { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }

  .routes thead { display: none; }
  .routes, .routes tbody, .routes tr, .routes td, .routes th { display: block; width: auto !important; }
  .routes tr { display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 0.75rem; border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
  .routes th, .routes td { border: 0; padding: 0; }
  .routes .rno { grid-row: 1 / span 3; font-size: var(--step-3); }
  .routes .rcalls { margin-top: 0.5rem; }
  .routes .rprice { margin-top: 0.75rem; white-space: normal; }

  .entry { grid-template-columns: 1fr auto; row-gap: 0.25rem; }
  .entry time { grid-column: 1; grid-row: 1; }
  .entry .mins { grid-column: 2; grid-row: 1; }
  .entry .main { grid-column: 1 / -1; }
  .entry .tool { grid-column: 1 / -1; grid-row: 3; }

  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr, .stack th, .stack td { display: block; width: auto !important; }
  .stack tr { border-bottom: 1px solid var(--rule-soft); padding: 0.8rem 0; }
  .stack th, .stack td { border: 0; padding: 0.1rem 0; }

  .screen .hide-sm { display: none; }
  .lab-wide { display: none; }
  .lab-tall { display: block; }
  .starter .row { grid-template-columns: 1fr; }
  .starter .btn { width: 100%; }
}
