/* Ceļraksts — example site by SiteAI. Direction: "the page is the object" (the CMR waybill and its coloured copies). */
:root {
  --bg: #e6dbc7;
  --surface: #ddd0b9;
  --paper: #ebe8e1;
  --ink: #062b8a;
  --muted: #2f4f9e;
  --accent: #062b8a;
  --accent-ink: #ebe8e1;
  --red: #9e2b25;
  --green: #1c5537;
  --night: #041d5e;
  --m: clamp(16px, 2.6vw, 36px);
  --gap: clamp(12px, 1.6vw, 24px);
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.08rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.125rem, 1.4rem + 3vw, 4rem);
  --step-display: clamp(2.6rem, 1.2rem + 5.4vw, 6.25rem);
  --sec: clamp(96px, 12vw, 190px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Onest", system-ui, sans-serif; font-size: var(--step-body); line-height: 1.5;
  letter-spacing: -0.005em; font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
h3 { letter-spacing: -0.02em; line-height: 1.1; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--paper); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.tnum { font-variant-numeric: tabular-nums; }
.small { font-size: var(--step-small); }
.lead { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.015em; }

/* Example marking bar */
.demo-bar { background: var(--night); color: var(--paper); font-size: var(--step-small); padding: 9px var(--m); display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 30; }
.demo-bar a { color: var(--paper); font-weight: 500; }

/* Header */
.site-head { background: var(--bg); position: sticky; top: 0; z-index: 25; }
.site-head .in { display: flex; align-items: center; gap: 24px; min-height: 72px; padding-inline: var(--m); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.375rem; letter-spacing: -0.03em; margin-right: auto; }
.brand svg { width: 34px; height: 24px; flex: none; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 30px); align-items: center; }
.nav a { text-decoration: none; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: inline-flex; gap: 2px; background: var(--surface); padding: 3px; }
.lang a, .lang span { padding: 6px 9px; text-decoration: none; font-size: var(--step-small); font-weight: 500; line-height: 1; }
.lang span { background: var(--ink); color: var(--paper); }
.lang a:hover { background: var(--paper); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: inherit; font-weight: 500; border: 0; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.btn:hover { background: var(--night); }
.btn:active { transform: scale(.97); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: #fff8ea; }
.head-cta { min-height: 44px; padding: 10px 18px; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; padding: 0 14px; background: var(--ink); color: var(--paper); border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.textlink { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; }
.textlink:hover { text-decoration-thickness: 4px; }
@media (max-width: 1080px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-head .in { gap: 10px; min-height: 64px; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); color: var(--paper); padding: 8px var(--m) 24px; box-shadow: 0 24px 40px rgba(4, 29, 94, .25); } /* taste-skill-ignore: open mobile menu is a real overlay */
  .nav.open a { padding: 14px 0; font-size: 1.375rem; }
  .nav.open a::after { background: var(--paper); height: 2px; }
  .nav.open .nav-cta { display: inline-flex; margin-top: 14px; background: var(--paper); color: var(--ink); justify-content: center; padding: 14px; }
}
.nav .nav-cta { display: none; }

/* ===== HERO: the waybill on the road ===== */
.hero { position: relative; padding: clamp(72px, 11vh, 150px) var(--m) 0; overflow: hidden; background: #1d2b22; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 30%; }
.js .hero-photo img { animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -2%, 0); } }
/* The four corner punch-holes of the waybill are cut with a mask; nothing visible is a gradient. */
.sheet-card { position: relative; background: var(--paper); color: var(--ink);
  -webkit-mask: radial-gradient(circle 14px at 0 0, transparent 13px, #000 14px) top left / 51% 51% no-repeat, radial-gradient(circle 14px at 100% 0, transparent 13px, #000 14px) top right / 51% 51% no-repeat, radial-gradient(circle 14px at 0 100%, transparent 13px, #000 14px) bottom left / 51% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13px, #000 14px) bottom right / 51% 51% no-repeat; /* taste-skill-ignore: mask for punched corners */
  mask: radial-gradient(circle 14px at 0 0, transparent 13px, #000 14px) top left / 51% 51% no-repeat, radial-gradient(circle 14px at 100% 0, transparent 13px, #000 14px) top right / 51% 51% no-repeat, radial-gradient(circle 14px at 0 100%, transparent 13px, #000 14px) bottom left / 51% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13px, #000 14px) bottom right / 51% 51% no-repeat; } /* taste-skill-ignore: mask for punched corners */
.hero .sheet-card { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px); }
.card-top { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-small); margin-bottom: clamp(20px, 3vw, 40px); color: var(--muted); }
.card-top b { font-weight: 500; color: var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.hero h1 { font-size: var(--step-display); letter-spacing: -0.045em; line-height: 0.92; max-width: 11ch; }
.hero .lead { margin: clamp(20px, 2.4vw, 36px) 0 28px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* Fields: the boxes of the form, separated by tone, not by lines */
.fields { display: grid; gap: 6px; }
.field { background: var(--surface); padding: 12px 14px 14px; }
.field .k { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; }
.field .v { font-size: var(--step-body); }

/* ===== Load calculator ===== */
.calc { display: grid; gap: 6px; }
.calc h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.stepper { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; background: var(--surface); padding: 10px 10px 10px 14px; }
.stepper label { font-size: var(--step-body); line-height: 1.25; }
.stepper label small { display: block; font-size: var(--step-small); color: var(--muted); }
.stepper .ctl { display: flex; align-items: center; background: var(--paper); }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--ink); color: var(--paper); font: inherit; font-size: 1.375rem; line-height: 1; cursor: pointer; transition: transform .15s var(--ease), background-color .2s; }
.stepper button:hover { background: var(--night); }
.stepper button:active { transform: scale(.92); }
.stepper input { width: 58px; height: 44px; border: 0; background: transparent; text-align: center; font: inherit; font-size: 1.25rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.weight input { width: 110px; padding: 0 10px; background: var(--paper); height: 44px; text-align: right; }
.check { display: flex; align-items: center; gap: 12px; background: var(--surface); padding: 12px 14px; cursor: pointer; min-height: 56px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.result { margin-top: clamp(18px, 2.5vw, 32px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 6px; }
.result .big { background: var(--ink); color: var(--paper); padding: 16px 18px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.result .big .k { font-size: var(--step-small); opacity: .85; }
.result .big .n { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.result .big .fit { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; }
.deck-box { background: var(--surface); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.deck-box .k { font-size: var(--step-small); color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.deck svg { width: 100%; height: auto; }
.deck .pal { transition: opacity .25s; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.ladder li { background: var(--paper); padding: 8px 10px; font-size: var(--step-small); line-height: 1.3; }
.ladder li b { display: block; font-weight: 500; }
.ladder li.ok { background: var(--ink); color: var(--paper); }
.ladder li.dim { opacity: .55; }
.calc-note { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); margin: 8px 0 0; }

@media (max-width: 860px) {
  .hero { padding-top: 56px; }
  .hero .sheet-card { margin-inline: calc(var(--m) * -1 + 12px); padding: 26px 20px 36px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .result { grid-template-columns: 1fr; }
  .card-top { flex-direction: column; gap: 2px; }
}

/* ===== Sections ===== */
.sec { padding-block: var(--sec); }
.sec-head { font-size: var(--step-head); }
.on-dark { color: var(--paper); }

/* Intro: title, note, facts row */
.intro .row1 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.intro h2 { grid-column: 1 / 8; font-size: var(--step-display); letter-spacing: -0.045em; line-height: .92; }
.intro .note { grid-column: 9 / 13; margin: 0; max-width: 36ch; }
.facts { display: flex; justify-content: space-between; gap: 32px; margin-top: clamp(64px, 8vw, 120px); flex-wrap: wrap; }
.facts div { max-width: 21ch; }
.facts .f { display: block; font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts .x { display: block; font-size: var(--step-small); color: var(--muted); margin-top: 10px; line-height: 1.4; }
.intro .plate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.intro .plate figure { margin: 0; grid-column: 6 / 13; }
.intro .plate .cap { grid-column: 1 / 5; align-self: end; font-size: var(--step-small); color: var(--muted); max-width: 30ch; }
.plate img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 860px) {
  .intro .row1, .intro .plate { grid-template-columns: 1fr; }
  .intro h2, .intro .note, .intro .plate figure, .intro .plate .cap { grid-column: auto; }
  .intro h2 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .facts .f { font-size: 1.75rem; }
}

/* Stacking colour sheets: the CMR copies */
.copies { padding-top: 0; }
.copies .sec-head { margin-bottom: 48px; }
.copy { position: sticky; min-height: 86svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 72px 1fr; column-gap: var(--gap); color: var(--paper); margin-inline: var(--m); }
.copy:nth-of-type(1) { top: 72px; background: var(--red); }
.copy:nth-of-type(2) { top: 144px; background: var(--ink); }
.copy:nth-of-type(3) { top: 216px; background: var(--green); }
.copy .tab { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(18px, 2.5vw, 36px); gap: 16px; }
.copy h3 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.75rem); letter-spacing: -0.03em; }
.copy .who { font-size: var(--step-small); opacity: .9; text-align: right; }
.copy .body { grid-column: 1 / 7; align-self: end; padding: 32px clamp(18px, 2.5vw, 36px) clamp(28px, 4vw, 56px); }
.copy .body p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; letter-spacing: -0.015em; }
.copy .body ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.copy .body li { background: rgba(235, 232, 225, .14); padding: 6px 10px; font-size: var(--step-small); }
.copy .ph { grid-column: 7 / 13; position: relative; overflow: hidden; }
.copy .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.copy .go { color: var(--paper); }
@media (max-width: 860px) {
  .copy { grid-template-columns: 1fr; grid-template-rows: 52px auto auto; min-height: 70svh; margin-inline: 0; }
  .copy:nth-of-type(1) { top: 64px; } .copy:nth-of-type(2) { top: 116px; } .copy:nth-of-type(3) { top: 168px; }
  .copy h3 { font-size: 1.375rem; }
  .copy .who { display: none; }
  .copy .ph { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 3; }
  .copy .body { grid-column: 1; grid-row: 3; padding: 20px 20px 32px; }
  .copy .body p { font-size: 1.0625rem; }
}

/* Output slips: the paperwork of one run */
.papers { position: relative; min-height: 96svh; overflow: hidden; color: var(--paper); padding: 0; background: #2a2018; }
.papers > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.papers .say { position: relative; margin-left: 18%; width: min(620px, 64%); padding: clamp(80px, 12vh, 140px) 0 40px; }
.papers .say::before { content: ""; position: absolute; inset: 40px -40px 0 -40px; background: rgba(12, 14, 20, .58); z-index: -1; }
.papers .say { z-index: 1; isolation: isolate; }
.papers h2 { font-size: var(--step-head); margin-bottom: 20px; }
.papers .say p { font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); line-height: 1.25; letter-spacing: -0.015em; max-width: 26ch; }
.slips { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding-inline: var(--m); align-items: end; z-index: 2; }
.slip { background: var(--paper); color: var(--ink); padding: 18px 16px 24px; font-size: 0.9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; transform-origin: 50% 100%; }
.slip b { font-weight: 500; display: block; font-size: 1rem; }
.slip .dash { color: var(--muted); letter-spacing: .1em; overflow: hidden; white-space: nowrap; display: block; margin: 4px 0 6px; }
.slip:nth-child(1) { height: 40svh; } .slip:nth-child(2) { height: 30svh; transform: rotate(-1.5deg); } .slip:nth-child(3) { height: 44svh; }
.slip:nth-child(4) { height: 34svh; transform: rotate(1.2deg); } .slip:nth-child(5) { height: 38svh; } .slip:nth-child(6) { height: 28svh; transform: rotate(-1deg); }
.slip { overflow: hidden; }
@media (max-width: 1100px) { .slip { font-size: 0.875rem; padding: 14px 12px; } }
@media (max-width: 860px) {
  .papers { min-height: 100svh; }
  .papers .say { margin: 0; width: auto; padding: 72px var(--m) 24px; }
  .papers .say::before { inset: 40px 0 -10px 0; }
  .papers .say p { font-size: 1.375rem; }
  .slips { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0; gap: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .slips::-webkit-scrollbar { display: none; }
  .slip { flex: 0 0 46vw; scroll-snap-align: start; font-size: 0.875rem; }
  .slip:nth-child(n) { height: auto; min-height: 30svh; }
  .slip:nth-child(1) { min-height: 36svh; } .slip:nth-child(3) { min-height: 40svh; }
}

/* Drag row of moments */
.moments .top { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-inline: var(--m); }
.moments h2 { font-size: var(--step-head); max-width: 16ch; }
.moments .arrows { display: flex; gap: 6px; }
.moments .arrows button { width: 52px; height: 52px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center; transition: transform .15s var(--ease), opacity .2s; }
.moments .arrows button:active { transform: scale(.92); }
.moments .arrows button[disabled] { opacity: .35; cursor: default; }
.moments .arrows svg { width: 20px; height: 20px; }
.progress { margin: 28px var(--m) 0; height: 6px; background: var(--surface); position: relative; overflow: hidden; }
.progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(.2); }
.row { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px var(--m) 8px; scroll-padding-inline: var(--m); scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row li { flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.row ol, ol.row { list-style: none; margin: 0; }
.row h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.row p { font-size: 1rem; margin: 0; }
.row .sp { flex: none; }
.row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-top: auto; }
@media (max-width: 860px) { .moments .arrows { display: none; } .row { gap: 16px; } .row li { flex-basis: 74vw; } .row .sp { height: 40px !important; } }

/* Routes: giant word + filled bars, beside the map */
.routes .grid { align-items: start; row-gap: 48px; }
.routes .col { grid-column: 1 / 6; container-type: inline-size; }
.giant { font-size: 30cqw; letter-spacing: -0.06em; line-height: .8; margin-bottom: 24px; white-space: nowrap; }
.bars { display: grid; gap: 6px; }
.bars details { background: var(--surface); }
.bars summary { list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; cursor: pointer; font-weight: 500; }
.bars summary::-webkit-details-marker { display: none; }
.bars summary .pm { width: 16px; height: 16px; position: relative; flex: none; }
.bars summary .pm::before, .bars summary .pm::after { content: ""; position: absolute; background: currentColor; left: 0; right: 0; top: 7px; height: 2px; transition: transform .3s var(--ease); }
.bars summary .pm::after { transform: rotate(90deg); }
.bars details[open] summary .pm::after { transform: rotate(0); }
.bars summary:hover { background: #d4c6ac; }
.bars ul { list-style: none; margin: 0; padding: 4px 18px 20px; display: grid; gap: 12px; }
.bars li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.bars li span:last-child { white-space: nowrap; }
.bars li small { display: block; font-size: var(--step-small); color: var(--muted); }
.routes .mapcol { grid-column: 7 / 13; position: sticky; top: 100px; }
.map svg { width: 100%; height: auto; }
.map .land { fill: var(--surface); }
.map .rt { stroke: var(--ink); stroke-width: 2.5; fill: none; opacity: .28; transition: opacity .3s, stroke-width .3s; }
.map .rt.ferry { stroke-dasharray: 2 7; stroke-linecap: round; }
.map .ct circle { fill: var(--ink); opacity: .4; transition: opacity .3s; }
.map .ct text { font: 500 17px "Onest", sans-serif; fill: var(--ink); opacity: 0; transition: opacity .3s; }
.map .on .rt, .map .rt.on { opacity: 1; stroke-width: 3.5; }
.map .ct.on circle { opacity: 1; }
.map .ct.on text { opacity: 1; }
.map .home circle { fill: var(--red); opacity: 1; }
.map .home text { opacity: 1; font-size: 19px; }
.map .sea-note { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .routes .col, .routes .mapcol { grid-column: 1 / -1; position: static; }  }

/* FAQ beside tall photograph */
.faq { background: var(--ink); color: var(--paper); overflow: hidden; }
.faq .grid { align-items: start; }
.faq .left { grid-column: 1 / 6; }
.faq h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); margin-bottom: 28px; }
.faq .facts-l { list-style: none; margin: 0 0 40px; padding: 0; font-size: 1.125rem; display: grid; gap: 4px; }
.faq .facts-l a { color: var(--paper); }
.qa details { padding-block: 14px; }
.qa summary { list-style: none; cursor: pointer; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa .chev { width: 14px; height: 14px; flex: none; margin-top: 8px; position: relative; transition: transform .3s var(--ease); }
.qa .chev::before, .qa .chev::after { content: ""; position: absolute; top: 5px; width: 9px; height: 2px; background: currentColor; }
.qa .chev::before { left: 0; transform: rotate(45deg); } .qa .chev::after { right: 0; transform: rotate(-45deg); }
.qa details[open] .chev { transform: rotate(180deg); }
.qa details p { margin: 12px 0 0; font-size: 1.0625rem; max-width: 52ch; opacity: .92; }
.faq .actions { margin-top: 36px; }
.faq .textlink { color: var(--paper); }
.faq .pics { grid-column: 7 / 13; position: relative; margin-top: calc(var(--sec) * -1); margin-bottom: 80px; }
.faq .pics .tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.faq .pics .sq { position: absolute; width: 36%; aspect-ratio: 1; object-fit: cover; left: -40px; bottom: -40px; border: 8px solid var(--ink); }
@media (max-width: 860px) {
  .faq .left, .faq .pics { grid-column: 1 / -1; }
  .faq .pics { order: -1; margin: calc(var(--sec) * -1) calc(var(--m) * -1) 72px; }
  .faq .pics .tall { aspect-ratio: 4 / 5; }
  .faq .pics .sq { left: auto; right: var(--m); bottom: -36px; width: 38%; }
  .faq h2 { font-size: 1.875rem; }
}

/* Contact: card on a photograph */
.visit { position: relative; min-height: 100svh; padding: 0; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit .holder { position: relative; height: 100%; padding: 60px var(--m); display: flex; justify-content: flex-start; }
.vcard { position: sticky; top: 100px; width: 400px; max-width: 100%; background: var(--paper); padding: 32px 32px 0; display: flex; flex-direction: column; }
.vcard h2 { font-size: 1.75rem; letter-spacing: -0.03em; margin-bottom: 18px; line-height: 1.1; }
.vcard p { margin: 0 0 16px; }
.hours { margin: 0 0 18px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt, .hours dd { margin: 0; }
.vcard .tel { font-size: var(--step-lead); font-weight: 500; text-decoration: none; display: inline-block; margin-bottom: 26px; }
.vcard .btn { margin: 0 -32px; min-height: 56px; }
@media (max-width: 860px) {
  .visit { min-height: 0; }
  .visit > img { position: relative; height: 70svh; }
  .visit .holder { margin-top: -80px; padding: 0 var(--m) 0; }
  .vcard { position: relative; top: 0; width: 100%; padding: 26px 22px 0; }
  .vcard .btn { margin: 0 -22px; }
}

/* Footer: the back of the sheet, uncovered by the page (curtain) */
main { position: relative; z-index: 2; background: var(--bg); }
.foot { position: sticky; bottom: 0; z-index: 1; background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 110px) var(--m) 28px; }
.back { position: relative; background: var(--paper); color: var(--ink); max-width: 1180px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) clamp(22px, 4vw, 56px) 24px; }
.back::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 0; border-top: 14px dotted var(--ink); }
.back .halves { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.back h2 { font-size: 2rem; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; }
.back .msg p { max-width: 40ch; }
.back nav ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.back nav a { font-size: 1rem; }
.addr { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 1.125rem; }
.addr a { text-decoration: none; } .addr a:hover { text-decoration: underline; }
.stamp { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(22px, 4vw, 56px); width: 88px; background: var(--paper); padding: 6px; transform: rotate(3deg); outline: 3px dotted var(--surface); }
.stamp img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.right-half { position: relative; padding-top: 0; }
.imprint { text-align: center; font-size: var(--step-small); color: var(--muted); margin-top: 48px; line-height: 1.6; }
.imprint a { color: var(--muted); }
.foot .word { font-size: clamp(3.5rem, 15vw, 15rem); letter-spacing: -0.06em; line-height: .8; font-weight: 500; text-align: center; margin: 40px 0 0; white-space: nowrap; overflow: hidden; color: var(--paper); }
@media (max-width: 860px) {
  .back .halves { grid-template-columns: 1fr; }
  .stamp { width: 64px; top: 18px; right: 18px; }
  .back h2 { padding-right: 72px; font-size: 1.625rem; }
  .addr { font-size: 1.0625rem; }
  .foot { position: relative; }
}

/* ===== Inner pages ===== */
.pagehead { background: var(--ink); padding: clamp(40px, 6vw, 88px) var(--m) 0; position: relative; overflow: hidden; }
.pagehead.red { background: var(--red); } .pagehead.green { background: var(--green); }
.pagehead .sheet-card { max-width: 1320px; margin: 0 auto; padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end;
  -webkit-mask-size: 51% 51%; mask-size: 51% 51%; }
.crumbs { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: -8px; }
.crumbs a { color: var(--muted); }
.pagehead h1 { font-size: var(--step-display); letter-spacing: -0.045em; line-height: .92; }
.pagehead .lead { margin: 24px 0 0; max-width: 36ch; }
.pagehead .plate-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pagehead .tail { height: clamp(40px, 6vw, 80px); background: var(--paper); max-width: 1320px; margin: 0 auto; }
@media (max-width: 860px) {
  .pagehead .sheet-card { grid-template-columns: 1fr; margin-inline: calc(var(--m) * -1 + 12px); padding: 24px 20px 28px; }
  .pagehead h1 { font-size: clamp(2.375rem, 10.5vw, 4rem); }
}
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.split > .a { grid-column: 1 / 6; }
.split > .b { grid-column: 7 / 13; }
.split h2 { font-size: var(--step-head); }
.split .a p { margin-top: 24px; }
.prose p, .prose li { max-width: 62ch; }
.prose h3 { font-size: 1.5rem; margin: 36px 0 12px; }
.prose h3:first-child { margin-top: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tiles li { background: var(--surface); padding: 18px 18px 20px; }
.tiles li b { display: block; font-weight: 500; font-size: 1.125rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.tiles li span { font-size: 1rem; }
.tiles.on-ink li { background: rgba(235, 232, 225, .1); }
@media (max-width: 860px) { .split > .a, .split > .b { grid-column: 1 / -1; } .split { row-gap: 36px; } .tiles { grid-template-columns: 1fr; } }

.band { background: var(--ink); color: var(--paper); }
.band.red { background: var(--red); } .band.green { background: var(--green); }
.band .split .b img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Temperature ranges table */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid rgba(6, 43, 138, .25); vertical-align: top; }
th { font-weight: 500; font-size: var(--step-small); color: var(--muted); }
td:first-child { font-weight: 500; }
.band table th { color: var(--paper); opacity: .8; } .band th, .band td { border-color: rgba(235, 232, 225, .3); }
.tablewrap { overflow-x: auto; }

/* Fleet */
.fleet { display: grid; gap: clamp(56px, 7vw, 110px); }
.unit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); align-items: start; }
.unit .name { grid-column: 1 / 5; }
.unit h2, .unit h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -0.035em; }
.unit .name p { margin-top: 16px; max-width: 36ch; }
.unit .draw { grid-column: 5 / 13; background: var(--surface); padding: 18px 20px 16px; }
.unit .draw .k { font-size: var(--step-small); color: var(--muted); display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.specs { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: -18px 0 0; }
.specs div { background: var(--paper); padding: 12px 14px; }
.specs dt { font-size: var(--step-small); color: var(--muted); }
.specs dd { margin: 4px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .unit .name, .unit .draw, .specs { grid-column: 1 / -1; } .specs { grid-template-columns: 1fr 1fr; margin-top: -18px; } }

/* Process page */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); background: var(--paper); padding: clamp(24px, 3.5vw, 48px); }
.steps > li:nth-child(even) { background: var(--surface); }
.steps h2 { grid-column: 1 / 6; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -0.035em; }
.steps .t { grid-column: 6 / 13; }
.steps .t p { max-width: 58ch; }
.steps .t ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
@media (max-width: 860px) { .steps h2, .steps .t { grid-column: 1 / -1; } }
.copies3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.copies3 div { color: var(--paper); padding: 16px 16px 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.copies3 b { font-weight: 500; font-size: 1.125rem; }
.copies3 span { font-size: var(--step-small); }
@media (max-width: 600px) { .copies3 { grid-template-columns: 1fr; } .copies3 div { min-height: 0; gap: 10px; } }

/* FAQ page groups */
.qgroups { display: grid; gap: clamp(64px, 8vw, 120px); }
.qgroup { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); }
.qgroup h2 { grid-column: 1 / 5; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -0.035em; position: sticky; top: 100px; align-self: start; }
.qgroup .qa { grid-column: 6 / 13; display: grid; gap: 6px; }
.qgroup .qa details { background: var(--surface); padding: 16px 20px; }
.qgroup .qa details p { opacity: 1; }
@media (max-width: 860px) { .qgroup h2, .qgroup .qa { grid-column: 1 / -1; position: static; } }

/* Contact form */
.formcard { background: var(--paper); padding: clamp(22px, 3.5vw, 48px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 2px solid transparent; padding: 12px 14px; min-height: 50px; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .btn { width: 100%; min-height: 56px; }
.formnote { grid-column: 1 / -1; background: var(--ink); color: var(--paper); padding: 16px 18px; margin: 0; }
.formnote[hidden] { display: none; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 6px; align-content: start; }
.contact-side .field .v a { font-size: var(--step-lead); text-decoration: none; font-weight: 500; }
.contact-side .field .v a:hover { text-decoration: underline; }

.cta-band { padding-block: clamp(72px, 9vw, 130px); }
.cta-band .in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gap); align-items: end; }
.cta-band h2 { grid-column: 1 / 8; font-size: var(--step-head); }
.cta-band .r { grid-column: 9 / 13; }
.cta-band .r p { margin-bottom: 22px; }
@media (max-width: 860px) { .cta-band h2, .cta-band .r { grid-column: 1 / -1; } }

/* Service overview rows */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; color: var(--paper); }
.svc + .svc { margin-top: 6px; }
.svc .t { grid-column: 1 / 7; padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 480px; }
.svc .t h2 { font-size: var(--step-head); }
.svc .t p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; letter-spacing: -0.015em; }
.svc .im { grid-column: 7 / 13; position: relative; min-height: 320px; }
.svc .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc:nth-child(even) .t { order: 2; grid-column: 7 / 13; }
.svc:nth-child(even) .im { grid-column: 1 / 7; }
.svc .go { color: var(--paper); }
@media (max-width: 860px) { .svc .t, .svc .im, .svc:nth-child(even) .t, .svc:nth-child(even) .im { grid-column: 1 / -1; } .svc .im { aspect-ratio: 4 / 3; min-height: 0; order: -1; } .svc:nth-child(even) .t { order: 0; } .svc .t { min-height: 0; } }

/* ===== Motion: entrances (content visible without JS) ===== */
.js [data-rise] > * { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-rise].in > * { opacity: 1; transform: none; }
.js [data-rise].in > *:nth-child(2) { transition-delay: .08s; } .js [data-rise].in > *:nth-child(3) { transition-delay: .16s; }
.js [data-rise].in > *:nth-child(4) { transition-delay: .24s; } .js [data-rise].in > *:nth-child(5) { transition-delay: .32s; } .js [data-rise].in > *:nth-child(n+6) { transition-delay: .4s; }
.js .slips.in .slip { animation: slipup 1s var(--ease) both; }
.js .slips.in .slip:nth-child(2) { animation-delay: .07s; } .js .slips.in .slip:nth-child(3) { animation-delay: .14s; } .js .slips.in .slip:nth-child(4) { animation-delay: .21s; } .js .slips.in .slip:nth-child(5) { animation-delay: .28s; } .js .slips.in .slip:nth-child(6) { animation-delay: .35s; }
@keyframes slipup { from { translate: 0 30%; } to { translate: 0 0; } }
.js .copy .ph img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.js .copy.in .ph img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise] > * { opacity: 1; transform: none; transition: none; }
  .js .hero-photo img { animation: none; }
  .js .slips.in .slip { animation: none; }
  .js .copy .ph img { transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ---- round 2 ---- */
.hero { padding-top: clamp(36px, 5.5vh, 72px); }
.hero h1 { font-size: clamp(2.5rem, 0.9rem + 4.3vw, 4.875rem); max-width: none; }
.hero .lead { max-width: 30ch; }
.calc .big { margin-top: 6px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 22px; row-gap: 4px; align-items: end; padding: 14px 18px 18px; background: var(--ink); color: var(--paper); }
.calc .big .k { grid-column: 1 / -1; font-size: var(--step-small); opacity: .85; }
.calc .big .n { font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .big .fit { font-size: 1.0625rem; line-height: 1.3; padding-bottom: 3px; }
.result { grid-template-columns: 1fr; }
.deck-box { padding: 16px 18px 14px; }
.ladder li { min-height: 52px; }
.intro .plate .cap { grid-column: 1 / 5; align-self: stretch; display: flex; flex-direction: column; max-width: none; color: var(--ink); font-size: var(--step-body); }
.intro .plate .cap h3 { font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 6px; }
.checks li { background: var(--surface); padding: 12px 14px; }
.intro .plate .cap .small { color: var(--muted); margin: 24px 0 0; max-width: 34ch; }
.row img { margin-top: 0; }
.row li { justify-content: flex-start; }
.map { background: var(--paper); padding: 0; }
.map figcaption { padding: 12px 16px 14px; margin: 0; }
.map .land { fill: var(--surface); }
.map .rt { opacity: 0; }
.map .ct circle { opacity: .35; }
.faq { padding-bottom: clamp(64px, 7vw, 110px); }
.faq .pics { margin-bottom: 40px; }
.foot .word { line-height: 1; padding-bottom: .14em; font-size: clamp(3.5rem, 14vw, 13.5rem); margin-top: 32px; }
.copy { min-height: 80svh; }
.copy .body p { font-size: clamp(1.375rem, 1rem + 1.2vw, 2.125rem); line-height: 1.22; max-width: 24ch; }
@media (max-width: 860px) {
  .intro .plate .cap { grid-column: 1 / -1; order: 2; }
  .copy .body p { font-size: 1.1875rem; }
}
.row img { flex: none; height: auto; }
.intro .plate .cap .checks { margin-bottom: 0; }

/* ---- round 3 ---- */
.copy { position: relative; top: auto !important; min-height: 72svh; }
.copy + .copy { margin-top: 6px; }
.copy .body p { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); max-width: 28ch; }
.rowclip { margin-inline: var(--m); overflow: hidden; }
.row { padding: 40px 0 8px; scroll-padding-inline: 0; }
.slip, .slip:nth-child(n) { font-size: 0.9375rem; }
.calc .big .k { grid-column: auto; grid-row: auto; opacity: .9; font-size: 1rem; align-self: end; padding-bottom: 4px; }
.calc .big .fit { grid-column: 1 / -1; }
@media (min-width: 1200px) {
  .moments .arrows, .progress { display: none; }
  .row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); overflow: visible; }
  .row li { flex: none; }
}
.foot { position: relative; }
.js .foot .back { will-change: transform; }

.calc .big { margin-top: 22px; }
.slip, .slip:nth-child(n) { font-size: 1rem; }
.facts .x { font-size: 1rem; }
.copy .body p { max-width: 32ch; }
@media (max-width: 860px) {
  .slips { left: var(--m); right: var(--m); padding-inline: 0; }
  .slip { padding: 16px 16px 20px; flex-basis: 58vw; }
}

.facts .x, .calc-note, .intro .plate .cap .small { color: var(--ink); }
.calc .big { grid-template-columns: 1fr auto; grid-template-areas: "fit n" "fit k"; align-items: end; }
.calc .big .n { grid-area: n; text-align: right; }
.calc .big .k { grid-area: k; text-align: right; padding-bottom: 0; }
.calc .big .fit { grid-area: fit; align-self: end; max-width: 22ch; }
.check { font-size: 1.1875rem; }
@media (max-width: 860px) { .row li { flex-basis: min(74vw, 340px); } }
.cta-band { background: var(--surface); }
.ldm-tiles { margin-top: 28px; }
.ldm-tiles li { background: var(--bg); }
.band .qgroup .qa details { background: rgba(235, 232, 225, .1); color: var(--paper); }
.band .qgroup .qa details p { color: var(--paper); }
@media (min-width: 861px) { .pagehead .sheet-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.strip { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: var(--gap); align-items: end; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.strip figure:first-child img { aspect-ratio: 10 / 7; }
.strip figcaption { font-size: var(--step-small); margin-top: 10px; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr 1fr; } .strip figure:first-child { grid-column: 1 / -1; } }
.tiles { gap: 28px var(--gap); }
.tiles li { background: none; padding: 0; }
.tiles li b { font-size: var(--step-lead); }
.tiles.on-ink li { background: none; }
.ldm-tiles li { background: none; }
.specs div { background: none; padding: 0; }
.specs { margin-top: 0; row-gap: 14px; }
.strip + .routes { padding-top: calc(var(--sec) + 48px); }
.unit .draw { background: none; padding: 0; }
.form input, .form select, .form textarea { background: var(--paper); }
.strip + .sec { padding-top: calc(var(--sec) + 40px); }
