/* jalator-site — HALLIVIIVA
   Steel sampled from their lift photos, signal red only on actions,
   one amber floor line bracketing the request bay. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(archivo-var.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(barlow-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(barlow-600.woff2) format('woff2');
}

:root {
  /* surfaces — the bright hall */
  --surface-0: oklch(0.985 0.002 250);
  --surface-1: oklch(1 0 250);
  --surface-2: oklch(0.955 0.004 250);
  --surface-3: oklch(0.915 0.006 245);
  /* steel — the Velyen lift bodies */
  --steel-950: oklch(0.205 0.028 252);
  --steel-900: oklch(0.262 0.032 252);
  --steel-700: oklch(0.38 0.04 250);
  --steel-500: oklch(0.52 0.044 248);
  --steel-300: oklch(0.76 0.026 248);
  --steel-200: oklch(0.88 0.014 248);
  /* ink */
  --ink: oklch(0.225 0.022 252);
  --ink-2: oklch(0.455 0.02 252);
  --ink-3: oklch(0.545 0.018 252);
  --ink-inv: oklch(0.975 0.003 250);
  --ink-inv-2: oklch(0.82 0.01 250);
  /* signal — the red on their machines; actions only */
  --signal-700: oklch(0.445 0.175 27);
  --signal-600: oklch(0.505 0.196 27);
  --signal-400: oklch(0.68 0.185 32);
  --signal-050: oklch(0.965 0.016 30);
  /* mark — the painted floor line; rules and ticks only, never information */
  --mark-500: oklch(0.845 0.165 92);
  --mark-700: oklch(0.64 0.135 75);
  /* semantic */
  --ok-600: oklch(0.52 0.115 150);
  --ok-050: oklch(0.965 0.026 150);
  --err-600: oklch(0.48 0.185 25);
  --err-050: oklch(0.962 0.016 25);
  --focus: oklch(0.55 0.14 250);

  /* type scale, 390 → 1280 */
  --step--2: clamp(0.6875rem, 0.67rem + 0.08vw, 0.75rem);
  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.31vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.24rem + 0.63vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.51rem + 1.09vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.79rem + 2.03vw, 3.375rem);
  --step-5: clamp(2.625rem, 1.7rem + 4.06vw, 4.875rem);

  --pad: clamp(20px, 3.5vw, 56px);
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}

body {
  font-family: 'Barlow', system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface-0);
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  text-wrap: balance;
}

a { color: inherit; }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* the spec-plate micro label */
.spec {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel-500);
}

/* ---------- utility bar ---------- */
.utility {
  background: var(--steel-950);
  color: var(--ink-inv-2);
  font-size: 12px;
  line-height: 1;
}
.utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  gap: 16px;
}
.utility a { color: var(--ink-inv); text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility-right { display: flex; gap: 14px; align-items: center; }
.utility-right .sep { width: 1px; height: 12px; background: var(--steel-700); }
.utility .addr { display: none; }
@media (min-width: 640px) { .utility .addr { display: inline; } }
@media (max-width: 639px) {
  .utility .container { justify-content: center; }
  .utility-right { display: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface-1);
  border-bottom: 1px solid var(--steel-200);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { position: relative; width: 22px; height: 22px; flex: none; }
.mark::before, .mark::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 2.5px;
  margin-left: -1.25px;
  background: var(--steel-950);
}
.mark::before { transform: rotate(38deg); }
.mark::after { transform: rotate(-38deg); }
.wordmark {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--steel-950);
}
.wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 18px;
  height: 3px;
  background: var(--signal-600);
}
.wordmark small {
  font-weight: 600;
  font-size: 0.42em;
  letter-spacing: 0.16em;
  color: var(--steel-500);
  vertical-align: 0.62em;
  margin-left: 0.3em;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 110ms ease-out, border-color 110ms ease-out;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--steel-300); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--steel-950); }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--signal-600);
  border-radius: 2px;
  color: var(--signal-700);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 110ms ease-out, color 110ms ease-out, transform 90ms ease-out;
}
.header-call:hover { background: var(--signal-600); color: var(--ink-inv); }
.header-call:active { transform: scale(0.97); }
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .header-call { margin-left: auto; }
  .header-call span { display: none; }
}

/* mobile nav — hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  position: relative;
  background: none;
  border: 1.5px solid var(--steel-200);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 110ms ease-out, transform 90ms ease-out;
}
.nav-toggle:active { transform: scale(0.96); }
.nav-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background: var(--ink);
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 90ms ease-out;
}
.nav-toggle .bars::before { content: ""; transform: translateY(-6px); }
.nav-toggle .bars::after { content: ""; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: rotate(-45deg); }

.mobile-nav {
  display: block;
  padding: 0 var(--pad) 8px;
  background: var(--surface-1);
  border-top: 1px solid var(--steel-200);
  box-shadow: 0 14px 28px -20px oklch(0.25 0.03 252 / 0.3);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--steel-200);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:active { background: var(--surface-2); }
.mobile-nav .mobile-nav-call { color: var(--signal-700); }

@media (max-width: 1023px) { .nav-toggle { display: inline-flex; } }
@media (min-width: 1024px) { .nav-toggle, .mobile-nav { display: none !important; } }

/* ---------- hero — the request bay ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(var(--pad), 1fr) minmax(0, calc(var(--max) - var(--pad) * 2 - 452px - 4px)) 4px minmax(400px, 452px) minmax(var(--pad), 1fr);
  grid-template-rows: auto minmax(160px, 1fr) auto;
  min-height: 560px;
  background: var(--surface-0);
}
.hero-view { display: contents; }
/* first view = utility (32px) + header (65px) + hero; trust strip is the hero's last row,
   so the fold lands on its bottom edge without a guessed total */
@media (min-width: 1024px) {
  .hero {
    min-height: max(560px, calc(100vh - 97px));
    min-height: max(560px, calc(100dvh - 97px));
  }
}
.hero .trust { grid-column: 1 / -1; grid-row: 3; }
.hero-line { grid-column: 3; grid-row: 1 / 3; background: var(--mark-700); }
.hero-copy {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(22px, 3vh, 40px) clamp(24px, 3vw, 48px) 24px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.hero h1 {
  font-weight: 800;
  font-size: min(var(--step-5), 4.125rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  max-width: 16ch;
}
.hero-deck {
  font-size: var(--step-1);
  line-height: 1.42;
  color: var(--ink-2);
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  align-items: stretch;
}
.call-bar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--steel-950);
  color: var(--ink-inv);
  border-radius: 2px;
  padding: 14px 22px;
  text-decoration: none;
  transition: background-color 110ms ease-out, transform 90ms ease-out;
}
.call-bar:hover { background: var(--steel-900); transform: translateY(-1px); }
.call-bar:active { transform: translateY(0) scale(0.99); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border: 1px solid var(--steel-950);
  border-radius: 2px;
  background: var(--surface-1);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 110ms ease-out, color 110ms ease-out, transform 90ms ease-out;
}
.btn-ghost:hover { background: var(--steel-950); color: var(--ink-inv); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0) scale(0.99); }
.btn-ghost .arrow { transition: transform 120ms ease-out; }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.call-bar .spec { color: var(--ink-inv-2); }
.call-bar .num {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 1.2rem + 1vw, 30px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.call-bar .vsep { width: 1px; align-self: stretch; background: var(--steel-700); }
.hero-photo { grid-column: 2; grid-row: 2; overflow: hidden; position: relative; }
/* absolute breaks the container-height/img-height circularity Safari resolves wrong */
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 66%; }
.hero-bleed {
  grid-column: 5;
  grid-row: 1 / 3;
  background: var(--surface-1);
  border-top: 4px solid var(--mark-700);
  border-bottom: 4px solid var(--mark-700);
}
/* ultrawide: the bay closes instead of bleeding into empty width */
@media (min-width: 1800px) {
  .hero-bleed { display: none; }
  .request-panel { border-right: 4px solid var(--mark-700); }
}

/* the form panel — a marked bay */
.request-panel {
  grid-column: 4;
  grid-row: 1 / 3;
  background: var(--surface-1);
  border-top: 4px solid var(--mark-700);
  border-bottom: 4px solid var(--mark-700);
  padding: 26px 34px 24px;
  display: flex;
  flex-direction: column;
}
.request-panel h2 {
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.05;
}
.request-sub {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--steel-200);
  margin-bottom: 16px;
}

/* ---------- form ---------- */
.rq-form { display: grid; gap: 12px; }
.rq-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .rq-row { grid-template-columns: 1fr 1fr; gap: 12px; } }
.field-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel-500);
  display: block;
  margin-bottom: 6px;
}
.field-label[data-required]::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 10px;
  background: var(--signal-600);
  margin-right: 8px;
  transform: translateY(1px);
}
.field {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface-1);
  border: 1px solid var(--steel-200);
  border-radius: 2px;
  transition: border-color 110ms ease-out;
}
.field::placeholder { color: var(--ink-3); }
.field:hover { border-color: var(--steel-500); }
.field:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.field[aria-invalid="true"] { border-color: var(--err-600); background: var(--err-050); }
textarea.field { height: auto; min-height: 72px; padding: 12px 13px; resize: vertical; }
.field-error { display: none; font-size: 13px; color: var(--err-600); margin-top: 5px; }
.field[aria-invalid="true"] ~ .field-error { display: block; }
.submit {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  background: var(--signal-600);
  color: var(--ink-inv);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  transition: background-color 110ms ease-out, transform 90ms ease-out;
}
.submit:hover { background: var(--signal-700); transform: translateY(-1px); }
.submit:active { transform: translateY(0); }
.submit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* --ink-3 on this panel measures ~3.6:1 — under §9's 4.5:1 floor for body text. */
.form-foot { font-size: 13px; color: var(--ink-2); text-align: center; }
.form-foot a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.form-foot a:hover { text-decoration: underline; }

/* Laptop-height compression: the panel's intrinsic height (683px) must fit
   100dvh − 97px chrome − 88px trust. Each clamp() runs its full max→min travel
   across the 868px→718px viewport-height band so the panel tracks the budget
   1:1; below 718px the panel floors and the page scrolls gracefully. */
@media (min-width: 1024px) {
  .request-panel { padding-block: clamp(12px, calc(8vh - 44.4px), 26px) clamp(10px, calc(8vh - 46.4px), 24px); }
  .request-panel .request-sub {
    padding-bottom: clamp(7px, calc(4vh - 21.2px), 14px);
    margin-bottom: clamp(8px, calc(4vh - 19.2px), 16px);
  }
  .request-panel .rq-form { gap: clamp(7px, calc(2.67vh - 11.7px), 12px); }
  .request-panel .field-label { margin-bottom: clamp(2px, calc(2vh - 11.4px), 6px); }
  .request-panel .field { height: clamp(36px, calc(5.33vh - 1.8px), 46px); }
  .request-panel textarea.field { height: clamp(40px, calc(37.3vh - 227.8px), 100px); min-height: 0; }
  .request-panel .submit { height: clamp(46px, calc(5.33vh + 8.7px), 56px); }
}

/* receipt — success state */
.receipt { display: none; }
.request-panel.is-sent { background: var(--ok-050); border-top-color: var(--ok-600); border-bottom-color: var(--ok-600); }
.request-block.is-sent { border-top-color: var(--ok-600); }
.request-block.is-sent .rq-form { background: var(--ok-050); border-color: var(--ok-600); }
.is-sent .rq-form, .is-sent .request-sub { display: none; }
.is-sent .receipt {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: receipt-in 140ms ease-out;
}
@keyframes receipt-in { from { opacity: 0; } to { opacity: 1; } }
.receipt-head {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  border: 3px double var(--ok-600);
  color: var(--ok-600);
  border-radius: 2px;
  padding: 8px 14px;
  transform: rotate(-2deg);
  margin: 8px 0 4px;
}
.receipt-head h3 {
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.receipt-check { position: relative; width: 22px; height: 22px; flex: none; }
.receipt-check::before, .receipt-check::after {
  content: "";
  position: absolute;
  background: var(--ok-600);
  border-radius: 1px;
}
.receipt-check::before { width: 3px; height: 10px; left: 4px; top: 8px; transform: rotate(-45deg); }
.receipt-check::after { width: 3px; height: 17px; left: 13px; top: 2px; transform: rotate(40deg); }
.receipt p { font-size: 15px; color: var(--ink-2); }
.receipt p a { color: var(--ink); font-weight: 600; text-decoration: none; }
.receipt-rows { border-top: 1px solid var(--steel-200); }
.receipt-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--steel-200);
  font-size: 15px;
}
.receipt-row .spec { padding-top: 2px; }
.receipt-reset {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--steel-500);
  text-decoration: underline;
  cursor: pointer;
}
.receipt-note { font-size: 12px; color: var(--ink-3); }

/* ---------- trust strip ---------- */
.trust {
  background: var(--steel-950);
  color: var(--ink-inv);
  border-top: 4px solid var(--mark-500);
}
.trust .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 0;
  min-height: 84px;
  padding-block: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  flex: 1 1 260px;
  padding-right: 24px;
}
.trust-item + .trust-item { border-left: 1px solid var(--steel-700); padding-left: 24px; }
.trust-item::before { content: ""; width: 2px; height: 14px; background: var(--mark-500); flex: none; }
@media (max-width: 860px) {
  .trust-item { flex-basis: 100%; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--steel-700); padding-top: 12px; padding-left: 0; }
}

/* ---------- sections ---------- */
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .spec::before { content: none; }
.section-head h2 {
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.012em;
}

/* palvelut — index rows, not cards */
.services { padding-block: clamp(56px, 7vw, 96px); }
.service-rows { border-top: 1px solid var(--steel-200); }
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr 44px;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--steel-200);
  text-decoration: none;
  transition: background-color 110ms ease-out;
}
@media (min-width: 860px) { .service-row { grid-template-columns: 72px 1fr 360px 44px; } }
.service-row:hover { background: var(--surface-2); }
.service-row:active { background: var(--surface-3); }
/* The ordinal is derived from position, not authored: it must stay 01,02,03… however many
   services the customer adds or removes. {{@number}} would emit 1,2,3 and zero-padding it
   would need a new render helper, which §14 says to propose rather than add. A CSS counter
   is presentation doing a presentation job. aria-hidden on the span: generated content is
   not reliably announced, and the number carries no information the name does not. */
.service-rows { counter-reset: svc; }
.service-row { counter-increment: svc; }
.service-num::before { content: counter(svc, decimal-leading-zero); }
.service-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--steel-300);
  font-variant-numeric: tabular-nums;
  transition: color 110ms ease-out;
}
.service-row:hover .service-num { color: var(--signal-600); }
.service-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--ink);
}
.service-desc { font-size: 15px; color: var(--ink-2); }
@media (max-width: 859px) { .service-desc { grid-column: 2; } }
.service-arrow {
  font-size: 20px;
  color: var(--signal-600);
  justify-self: end;
  transition: transform 120ms ease-out;
}
.service-row:hover .service-arrow { transform: translateX(4px); }

/* photo bento — floor plates */
.work { background: var(--surface-2); padding-block: clamp(40px, 5vw, 64px); }
.work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 264px 196px;
  gap: 2px;
}
.work-grid figure { position: relative; overflow: hidden; margin: 0; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; }
.work-grid figure:nth-child(1) { grid-row: 1 / 3; }
.work-grid figure:nth-child(2) { grid-column: 2 / 4; }
.work-grid figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--steel-950);
  color: var(--ink-inv-2);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
}
@media (max-width: 859px) {
  .work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; }
  .work-grid figure:nth-child(1) { grid-row: 1; grid-column: 1 / 3; }
  .work-grid figure:nth-child(2) { grid-column: 1 / 3; grid-row: 2; }
}

/* määräaikaisuus band */
.recurring { background: var(--steel-900); color: var(--ink-inv); }
.recurring .container {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 88px);
  align-items: center;
}
@media (min-width: 860px) { .recurring .container { grid-template-columns: 6fr 5fr; } }
.recurring .spec { color: var(--ink-inv-2); }
.recurring h2 {
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1.0;
  letter-spacing: -0.012em;
  margin: 14px 0 16px;
  max-width: 18ch;
}
.recurring p { color: var(--ink-inv-2); max-width: 52ch; margin-bottom: 26px; }
.btn-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  background: var(--signal-600);
  color: var(--ink-inv);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 110ms ease-out, transform 90ms ease-out;
}
.btn-signal:hover { background: var(--signal-700); transform: translateY(-1px); }
.btn-signal:active { transform: translateY(0) scale(0.99); }
.recurring-photo { overflow: hidden; }
.recurring-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* ihmiset — contact plates */
.people { padding-block: clamp(64px, 8vw, 112px); }
.people-intro {
  color: var(--ink-2);
  max-width: 52ch;
  margin: -20px 0 28px;
}
.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--steel-200);
  border-left: 1px solid var(--steel-200);
}
@media (min-width: 640px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
.person {
  background: var(--surface-1);
  border-right: 1px solid var(--steel-200);
  border-bottom: 1px solid var(--steel-200);
  padding: 26px 28px;
  transition: background-color 110ms ease-out;
}
.person:hover { background: var(--signal-050); }
.person h3 { font-weight: 700; font-size: 20px; line-height: 1.15; }
.person .role { font-size: 14px; color: var(--ink-2); margin: 3px 0 14px; }
.person .tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--signal-700);
  text-decoration: none;
  border-bottom: 1.5px solid var(--signal-600);
  transition: color 110ms ease-out, border-color 110ms ease-out;
}
.person .tel:hover { color: var(--signal-600); border-bottom-width: 2.5px; margin-bottom: -1px; }
.person .lang { font-size: 14px; font-style: italic; color: var(--ink-2); margin-top: 10px; }

/* luotettavuus + sijainti */
.credentials { background: var(--surface-1); border-top: 1px solid var(--steel-200); padding-block: clamp(48px, 6vw, 72px); }
.credentials .container { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 1024px) { .credentials .container { grid-template-columns: 7fr 5fr; } }
.badge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--steel-200);
  border: 1px solid var(--steel-200);
  margin-top: 26px;
}
.badge-plate {
  background: var(--surface-1);
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
}
.badge-plate img { max-height: 56px; width: auto; }
.badge-plate figcaption {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-500);
  text-align: center;
}
@media (max-width: 639px) { .badge-row { grid-template-columns: 1fr; } }
.address-block h3 { font-weight: 700; font-size: var(--step-2); margin-bottom: 18px; }
.address-rows { display: grid; gap: 14px; margin-bottom: 22px; }
.address-row { display: grid; grid-template-columns: 1fr; gap: 2px 12px; font-size: 16px; overflow-wrap: break-word; }
.address-row > * { min-width: 0; }
.address-row .spec { padding-top: 3px; }
@media (min-width: 480px) { .address-row { grid-template-columns: 130px minmax(0, 1fr); } }
.map-frame { border: 1px solid var(--steel-200); }
.map-frame iframe { display: block; width: 100%; height: 280px; border: 0; }
/* The facade occupies exactly the height the iframe will, so opening the map shifts nothing
   below it — a third-party embed is the classic CLS source and §13.1 gates CLS at 0.05. */
.map-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 280px;
  padding: 16px;
  border: 0;
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
  text-align: center;
  font: inherit;
}
.map-load:hover { background: var(--surface-3); }
.map-load:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.map-load-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.map-load-note { font-size: 13px; color: var(--ink-2); max-width: 32ch; }
.map-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--steel-500); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--steel-950);
  color: var(--ink-inv-2);
  border-top: 4px solid var(--mark-500);
  font-size: 14px;
}
.site-footer .container { padding-block: clamp(40px, 5vw, 64px) 28px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.site-footer .wordmark { color: var(--ink-inv); border-bottom-color: var(--steel-700); }
.site-footer .mark::before, .site-footer .mark::after { background: var(--mark-500); }
.site-footer h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  /* --steel-500 on --steel-950 measures ~3.2:1, under §9's 4.5:1. The label still reads as
     secondary against --ink-inv body text; it just does so above the floor rather than below. */
  color: var(--steel-300);
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--ink-inv); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-small {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--steel-700);
  font-size: 12px;
  color: var(--ink-inv-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

/* ---------- contact page ---------- */
.contact-hero { padding-block: clamp(40px, 5vw, 72px); }
.contact-hero .container { display: grid; gap: clamp(32px, 4vw, 64px); }
.contact-hero .container > * { min-width: 0; }
@media (min-width: 1024px) { .contact-hero .container { grid-template-columns: 6fr 5fr; } }
.contact-hero h1 {
  font-weight: 800;
  font-size: var(--step-4);
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 12px 0 28px;
}
.phone-table { border-top: 1px solid var(--steel-200); }
.phone-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2px 20px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--steel-200);
}
@media (min-width: 480px) {
  .phone-row { grid-template-columns: 1fr auto; gap: 8px 20px; padding: 16px 2px; }
}
.phone-row h2 { font-weight: 700; font-size: 19px; line-height: 1.2; }
.phone-row .role { font-size: 14px; color: var(--ink-2); }
.phone-row .lang { font-size: 14px; font-style: italic; color: var(--ink-2); margin-top: 2px; }
.phone-row .tel {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 1.1rem + 0.9vw, 26px);
  font-variant-numeric: tabular-nums;
  color: var(--signal-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.phone-row .tel:hover { text-decoration: underline; }
.contact-side { display: grid; gap: 24px; align-content: start; }
.contact-side > * { min-width: 0; }
.contact-side .portrait { overflow: hidden; }
.contact-side .portrait img { width: 100%; max-height: 380px; object-fit: cover; object-position: 50% 40%; }
.contact-side .address-plate {
  border: 1px solid var(--steel-200);
  background: var(--surface-1);
  padding: 24px 26px;
}
.contact-side .address-plate .address-rows { margin-bottom: 0; }

/* full-width request section (contact page) */
.request-block {
  background: var(--surface-2);
  border-top: 4px solid var(--mark-700);
  padding-block: clamp(48px, 6vw, 88px);
}
.request-block .container { max-width: 880px; }
.request-block h2 { font-weight: 800; font-size: var(--step-3); margin: 12px 0 6px; }
.request-block .request-sub { border-bottom: 0; margin-bottom: 20px; padding-bottom: 0; }
.request-block .rq-form { background: var(--surface-1); border: 1px solid var(--steel-200); padding: clamp(20px, 3vw, 36px); }
.request-block form { display: grid; gap: 14px; }
.request-block.is-sent .rq-form { display: grid; }
.request-block.is-sent form { display: none; }
.request-block .receipt { display: none; }
.request-block.is-sent .receipt { display: flex; }

/* ---------- mobile hero rework ---------- */
@media (max-width: 1023px) {
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-line, .hero-bleed { display: none; }
  /* copy + photo fill the first screen; the photo is the flexible element (svh:
     smallest viewport, so the fold is honest with the mobile URL bar visible) */
  .hero-view {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 97px);
    min-height: calc(100svh - 97px);
  }
  .hero-copy { padding: 26px 16px 22px; }
  .hero h1 { font-size: var(--step-5); }
  .hero-cta { flex-direction: column; align-self: stretch; }
  .call-bar, .btn-ghost { justify-content: center; }
  .hero-photo { flex: 1 1 auto; min-height: 200px; }
  .hero-photo img { object-position: 50% 38%; }
  .request-panel {
    border-bottom: 0;
    padding: 26px 16px 30px;
  }
}

/* ---------- lightbox ---------- */
.zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.zoom:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.zoom img { width: 100%; height: 100%; }
.recurring-photo .zoom { height: 100%; }
.lightbox {
  margin: auto;
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1400px);
  max-height: none;
  overflow: visible;
}
.lightbox::backdrop { background: oklch(0.205 0.028 252 / 0.93); }
.lightbox[open] { animation: lightbox-in 140ms ease-out; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox figure { margin: 0; }
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  border: 1px solid var(--steel-700);
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
}
.lightbox-bar figcaption {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-inv-2);
  min-width: 0;
}
.lightbox-close {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--steel-700);
  border-radius: 2px;
  background: none;
  color: var(--ink-inv);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 110ms ease-out, transform 90ms ease-out;
}
.lightbox-close:hover { border-color: var(--ink-inv-2); }
.lightbox-close:active { transform: scale(0.95); }
.lightbox-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- välisivut (tuotanto 8/2026) ---------- */

/* The apps console fills .rq-form at runtime; until it does, an empty padded box
   would read as broken — the call fallback below it carries the CTA alone. */
.rq-form:empty { display: none; }

.page-hero {
  background: var(--surface-1);
  border-bottom: 3px solid var(--mark-500);
  padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 44px);
}
.page-hero h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.014em;
  margin: 12px 0 14px;
  max-width: 24ch;
  text-wrap: balance;
}
.page-lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0;
}

.page-section { padding-block: clamp(40px, 6vw, 72px); }
.page-section--tint { background: var(--surface-1); }
.page-section h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
}
.page-section p { max-width: 62ch; }

.page-cols { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) {
  .page-cols { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

.claim-plate {
  background: var(--surface-1);
  border-left: 4px solid var(--mark-700);
  padding: 16px 20px;
  margin: 18px 0 12px;
  max-width: 56ch;
}
.page-section--tint .claim-plate { background: var(--surface-0); }
.claim-plate p { margin: 0; font-weight: 600; }
.aside-line { font-family: 'Archivo', sans-serif; font-weight: 600; }
.person-line { font-weight: 600; margin-top: 14px; }

.page-figure { margin: 0; }
.page-figure .zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--steel-200);
  cursor: zoom-in;
  transition: border-color 140ms ease-out;
}
.page-figure .zoom:hover { border-color: var(--steel-500); }
.page-figure .zoom img { width: 100%; display: block; }
.page-figure figcaption { font-size: var(--step--1); color: var(--ink-3); padding-top: 8px; }

.device-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-top: 20px;
}
.device-group h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: var(--step-0);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mark-500);
}
.device-list { list-style: none; margin: 0; padding: 0; }
.device-list li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid var(--surface-3);
}
.device-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--mark-700);
}

.text-link { color: var(--signal-700); font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
/* on the dark band signal red has no contrast headroom — the link runs in inverse ink */
.recurring .text-link { color: var(--ink-inv); text-decoration: underline; text-underline-offset: 3px; }
.recurring .text-link:hover { color: var(--ink-inv-2); }

.cat-lead { margin: 14px 0 0; font-weight: 600; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cat-nav a {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface-0);
  border: 1px solid var(--steel-200);
  padding: 8px 14px;
  transition: border-color 140ms ease-out;
}
.cat-nav a:hover { border-color: var(--steel-500); }

.cat-section .cat-head { max-width: 62ch; }
.cat-head p { margin: 0 0 8px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 22px;
}
.product-card { margin: 0; }
.product-card .zoom {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-1);
  border: 1px solid var(--steel-200);
  padding: 14px;
  cursor: zoom-in;
  transition: border-color 140ms ease-out;
}
.product-card .zoom:hover { border-color: var(--steel-500); }
.product-card .zoom img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card figcaption {
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.35;
  padding: 10px 2px 0;
}

/* contact pair: phone OR email — one shared error, shown via the group class
   because the error sits beside .rq-row, not beside the inputs */
.contact-pair .pair-hint { font-size: 13px; color: var(--ink-3); margin: -2px 0 8px; }
.contact-pair.pair-invalid > .field-error { display: block; }

/* six-link nav needs a touch less air on narrow desktops */
@media (min-width: 1024px) and (max-width: 1280px) {
  .site-nav { gap: 14px; }
}
