/* Cylinder King — site styles. One stylesheet, no build step.
   System: paper ground, navy bands, green for actions only, amber as a line,
   one spine column that every section registers against. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f4f5f2;
  --sheet: #ffffff;
  --ink: #15213d;
  --ink-soft: #46506a;
  --navy: #1b3168;
  --navy-deep: #12224a;
  --brand-navy: #2b478f;
  --brand-green: #02a576;
  --action: #00775a;
  --action-hover: #005f48;
  --amber: #f2a71b;
  --rule: #cfd3cb;
  --rule-strong: #15213d;
  --on-navy: #ffffff;
  --on-navy-soft: #c9d2ea;
  --on-navy-rule: rgba(255, 255, 255, 0.3);
  --tint: #e9edf6;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(2.75rem, 1.75rem + 3vw, 4.5rem);
  --spine: clamp(13rem, 22vw, 19rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; scrollbar-color: #8b92a3 var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-0); line-height: 1.6; font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 750; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand-navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--action); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 0; box-shadow: 0 0 0 5px var(--ink); }
::selection { background: var(--brand-green); color: #fff; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: 0.75rem 1rem; }
.skip:focus { top: 0.5rem; }
.skip:hover { color: #fff; }
.lede { font-size: var(--step-1); line-height: 1.5; }
.small-print { font-size: var(--step--1); color: var(--ink-soft); }
.after { margin-top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 4.5rem; }
.brand img { width: 150px; }
.nav-toggle { display: none; }
.primary-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 0.6rem 0.75rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-bottom: 2px solid transparent; }
.primary-nav a:hover { color: var(--brand-navy); border-bottom-color: var(--rule); }
.primary-nav a[aria-current="page"] { color: var(--brand-navy); border-bottom-color: var(--brand-navy); }
.header-call { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-call svg { width: 1.1rem; height: 1.1rem; color: var(--action); }

/* Buttons: green means go; the line button is always secondary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.7rem 1.35rem; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-action { background: var(--action); color: #fff; }
.btn-action:hover { background: var(--action-hover); color: #fff; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-navy .btn-line { color: #fff; }
.on-navy .btn-line:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }
.next { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: var(--space-3); min-height: 2.75rem; font-weight: 700; }
.next svg { width: 1.1rem; height: 1.1rem; transition: transform 0.25s var(--ease-out); }
.next:hover svg { transform: translateX(3px); }

/* Spine grid: shared by bands, spreads and footer */
.spine-grid { display: grid; grid-template-columns: var(--spine) minmax(0, 1fr); column-gap: var(--gap); }

/* Spread: section name in the spine column, content in the body */
.spread { padding-block: var(--space-5); border-top: 1px solid var(--rule); }
.spread:first-child { border-top: 0; }
.spread-head { align-self: start; position: sticky; top: 6.5rem; }
.spread-head h2 { font-size: var(--step-3); }
.spread-head p { margin-top: 0.75rem; color: var(--ink-soft); font-size: var(--step--1); max-width: 26ch; }
.spread-body { position: relative; min-width: 0; }
.spread-body::before { content: ""; position: absolute; top: calc(-1 * var(--space-5)); bottom: calc(-1 * var(--space-5)); left: calc(var(--gap) / -2); width: 1px; background: var(--rule-strong); }

/* Feature: text and one 4:3 photo plate; text first on desktop, plate first below 900px */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.feature .plate { aspect-ratio: 4 / 3; }

/* Photo plates with pinned captions */
.plate { margin: 0; position: relative; background: var(--ink); overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { position: absolute; left: 0; bottom: 0; max-width: calc(100% - 1rem); background: var(--sheet); color: var(--ink); font-size: 0.8125rem; font-weight: 700; font-stretch: 72%; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.3; padding: 0.45rem 0.7rem 0.4rem; border-top: 3px solid var(--amber); }
.plate-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.plate-pair .plate { aspect-ratio: 4 / 5; }

/* Page title band (inner pages): title and lede beside one photo plate */
.page-title { background: var(--navy); color: var(--on-navy); }
.page-title .spine-grid { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem); align-items: end; }
.page-title .crumb { align-self: start; font-size: var(--step--1); color: var(--on-navy-soft); padding-top: 0.5rem; }
.page-title .crumb a, .page-title .crumb a:hover { color: #fff; }
.title-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); align-items: end; }
.title-body.no-photo { grid-template-columns: minmax(0, 1fr); }
.page-title h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
.page-title p { margin-top: var(--space-2); color: var(--on-navy-soft); font-size: var(--step-1); max-width: 46ch; }
.page-title .plate { aspect-ratio: 4 / 3; }
.page-title, .opening-band, .close-band { overflow: hidden; }
.spine-rule { position: relative; }
.page-title .spine-rule::after, .opening-band .spine-rule::after, .close-band .spine-rule::after { content: ""; position: absolute; top: -50vh; bottom: -50vh; right: calc(var(--gap) / -2); width: 1px; background: var(--on-navy-rule); }

/* Home: opening */
.opening { background: var(--navy); }
/* Opening carousel: a horizontal filmstrip of genuine photo plates, each at its own shape */
.carousel { position: relative; height: clamp(17.6rem, calc((100svh - 21rem) * 0.8), 35.2rem); }
.carousel-track { display: flex; gap: 4px; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-gliding { scroll-snap-type: none; scroll-behavior: auto; }
.slide img { transform: scale(1.05); filter: brightness(0.8) saturate(0.9); transition: transform 1.8s var(--ease-out), filter 0.9s var(--ease-out); }
.slide.is-active img { transform: scale(1); filter: none; }
.carousel-track:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.slide { flex: none; height: 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
.slide:has(img[height="1280"]) { aspect-ratio: 3 / 4; }
.carousel-controls { position: absolute; right: var(--gutter); bottom: 1rem; display: flex; gap: 4px; }
.carousel-btn { display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 0; background: var(--sheet); color: var(--ink); cursor: pointer; transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.carousel-btn:hover { background: var(--ink); color: #fff; }
.carousel-btn svg { width: 1.25rem; height: 1.25rem; }
.carousel-btn[data-carousel="prev"] svg { transform: scaleX(-1); }
.opening-band { color: var(--on-navy); }
.opening-band .spine-grid { padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
.opening-band h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.6rem); letter-spacing: -0.025em; max-width: 24ch; }
.opening-band .lede { margin: 0.85rem 0 0; color: var(--on-navy-soft); max-width: 60ch; }
.opening-band .actions { margin-top: var(--space-3); }
.routes { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; margin: var(--space-3) 0 0; padding: var(--space-2) 0 0; border-top: 1px solid var(--on-navy-rule); }
.routes a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; color: #fff; font-weight: 700; text-decoration: none; }
.routes a:hover { color: #fff; text-decoration: underline; }
.routes svg { width: 1rem; height: 1rem; color: var(--brand-green); }

/* Ruled index (service list) */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.index li { border-bottom: 1px solid var(--rule); }
.index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1.5rem; align-items: center; padding: 1.05rem 0.25rem; color: var(--ink); text-decoration: none; transition: background-color 0.2s var(--ease-out), padding 0.3s var(--ease-out); }
.index a:hover { background: var(--sheet); padding-inline: 0.75rem; }
.index strong { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
.index span { grid-column: 1; color: var(--ink-soft); font-size: 1rem; }
.index svg { grid-row: 1 / span 2; grid-column: 2; width: 1.5rem; height: 1.5rem; color: var(--brand-navy); }
.index.compact { columns: 2; column-gap: var(--gap); border-top: 0; }
.index.compact li { break-inside: avoid; border-top: 1px solid var(--rule); border-bottom: 0; }
.index.compact strong { font-size: var(--step-1); }

/* Ruled fact tables and lists */
.facts { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule-strong); }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--rule); }
.facts th { width: 34%; font-weight: 700; padding-right: 1.5rem; }
.checklist { list-style: none; margin: var(--space-3) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.checklist li { padding: 0.65rem 0 0.65rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0.15rem; top: 1.25rem; width: 0.65rem; height: 2px; background: var(--brand-navy); }
.block + .block { margin-top: var(--space-4); }
.feature > .block + .block { margin-top: 0; }
.block h3 { font-size: var(--step-2); margin-bottom: 0.9rem; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.clients li { display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 0.75rem; min-height: 9rem; padding: 1.25rem 1rem 0.9rem; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); background: var(--sheet); }
.clients li:nth-child(4n) { border-right: 0; }
.clients img { max-height: 4rem; width: auto; max-width: 80%; object-fit: contain; }
.clients span { font-size: 0.8125rem; color: var(--ink-soft); font-weight: 600; }

/* Plants */
.plants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); }
.plant { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--rule); }
.plant + .plant { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.plant h3 { font-size: var(--step-3); font-stretch: 72%; text-transform: uppercase; letter-spacing: 0; }
.plant .region { display: block; font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; margin-top: 0.35rem; }
.plant address { font-style: normal; margin: 0.9rem 0 0.5rem; max-width: 34ch; }
.plant .next { margin-top: 0; }

/* Hydrotest stations */
.stations { list-style: none; margin: 0; padding: 0; counter-reset: st; border-top: 2px solid var(--rule-strong); }
.stations li { counter-increment: st; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.stations li::before { content: counter(st); font-size: var(--step-2); font-weight: 750; color: var(--brand-navy); line-height: 1.1; }
.stations h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.stations p { color: var(--ink-soft); }

/* Close band: the same ending on every page */
.close-band { background: var(--navy); color: var(--on-navy); }
.close-band .spine-grid { padding-block: var(--space-5); }
.close-band h2 { font-size: var(--step-3); }
.close-band p { color: var(--on-navy-soft); font-size: var(--step-1); }
.on-navy a:not(.btn), .on-navy a:not(.btn):hover { color: #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; list-style: none; margin: 0; padding: 0.75rem 0 0; border-top: 2px solid var(--rule-strong); }
.gallery li { aspect-ratio: 4 / 3; min-height: 0; position: relative; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; contain: size; }
.gallery li:last-child { grid-column: span 2; aspect-ratio: auto; contain: size; }
.gallery button { all: unset; position: absolute; inset: 0; display: block; cursor: zoom-in; }
.gallery button:focus-visible { outline: 3px solid var(--amber); outline-offset: 0; box-shadow: 0 0 0 5px var(--ink); }
.gallery .plate { position: absolute; inset: 0; }
.gallery .plate img { position: absolute; inset: 0; transition: transform 0.6s var(--ease-out); }
.gallery button:hover .plate img { transform: scale(1.03); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.strip .plate { aspect-ratio: 4 / 3; }
.viewer { border: 0; padding: 0; max-width: min(96vw, 76rem); width: 100%; background: transparent; color: #fff; }
.viewer::backdrop { background: rgba(10, 18, 38, 0.92); }
.viewer figure { margin: 0; }
.viewer img { max-height: 80vh; width: auto; margin-inline: auto; }
.viewer figcaption { text-align: center; padding: 0.75rem 1rem 0; font-weight: 600; }
.viewer-bar { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; }
.viewer-bar button { min-height: 3rem; min-width: 3rem; padding: 0.5rem 1rem; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.4); font: inherit; font-weight: 700; cursor: pointer; }
.viewer-bar button:hover { background: rgba(255,255,255,0.22); }

/* Forms */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: 0.7rem 0.8rem; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid #8b92a3; border-radius: 0; caret-color: var(--brand-navy); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--ink); box-shadow: 0 0 0 5px var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 1rem 1.1rem; border: 1px solid; font-weight: 600; margin-bottom: var(--space-3); }
.form-status.ok { border-color: var(--action); background: #e4f5ee; color: #064b39; }
.form-status.err { border-color: #b3261e; background: #fbe9e7; color: #7a1a14; }
.form-status[hidden] { display: none; }

/* Vacancies */
.vacancies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.vacancies h3 { font-size: var(--step-2); margin-bottom: 0.9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--on-navy-rule); background: var(--navy-deep); color: var(--on-navy-soft); font-size: 0.9375rem; padding-block: var(--space-5); }
.site-footer a { color: #fff; text-decoration-color: var(--on-navy-rule); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--gap); }
.site-footer h2 { font-size: 0.875rem; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-logo img { width: 170px; }
.footer-legal { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--on-navy-rule); font-size: 0.8125rem; }
.footer-legal p { max-width: none; }

.action-bar { display: none; }

@media (max-width: 1080px) {
  .header-call { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 1px solid var(--ink); background: transparent; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
  .nav-toggle svg { width: 1.2rem; height: 1.2rem; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--sheet); border-bottom: 2px solid var(--ink); display: none; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
  .primary-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); font-size: 1.125rem; }
  .primary-nav a[aria-current="page"] { border-bottom-color: var(--rule); background: var(--tint); padding-left: 0.9rem; }
  .brand img { width: 128px; }

  .spine-grid, .feature, .title-body { grid-template-columns: minmax(0, 1fr); }
  .feature > .plate, .feature > .plate-pair { order: -1; }
  .footer-logo { margin-bottom: var(--space-4); }
  .spine-rule::after { display: none; }
  .spine-rule:empty { display: none; }
  .close-band h2 { margin-bottom: var(--space-2); }
  .spread-head { position: static; margin-bottom: var(--space-3); }
  .spread-head p { max-width: 48ch; }
  .spread-body::before { display: none; }
  .page-title .crumb { padding: 0 0 0.75rem; }
  .title-body { gap: var(--space-3); }

  .carousel { height: clamp(14.4rem, 46.4svh, 24rem); }
  .slide { max-width: 86vw; }
  .carousel-controls { bottom: auto; top: 0.75rem; right: 0.75rem; }
  .carousel-btn { width: 2.75rem; height: 2.75rem; }
  .opening-band .actions { display: none; }

  .index.compact { columns: 1; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients li:nth-child(4n) { border-right: 1px solid var(--rule); }
  .clients li:nth-child(2n) { border-right: 0; }
  .plants, .vacancies { grid-template-columns: minmax(0, 1fr); }
  .plant, .plant + .plant { padding: 1.5rem 0; border-left: 0; }
  .gallery, .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .gallery li:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery li:last-child { aspect-ratio: 8 / 3; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--sheet); border-top: 1px solid var(--rule); padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom)); gap: 0.5rem; box-shadow: 0 -6px 18px rgba(21, 33, 61, 0.12); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-height: 3.25rem; font-size: 0.8125rem; font-weight: 700; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); }
  .action-bar a.primary { background: var(--action); border-color: var(--action); color: #fff; }
  .action-bar svg { width: 1.3rem; height: 1.3rem; }
  body { padding-bottom: 4.5rem; }
}

@media (max-width: 560px) {
  .plate-pair { gap: 0.5rem; }
  .plate figcaption { font-size: 0.75rem; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .facts th, .facts td { display: block; width: 100%; padding-inline: 0; }
  .facts th { border-bottom: 0; padding-bottom: 0.15rem; }
  .facts td { padding-top: 0; }
  .actions .btn { flex: 1 1 100%; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .index strong { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.slide img), *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
