/*
Theme Name: LS-Technologies
Description: Eigenes Theme für die Firmen-Homepage von LS-Technologies (St. Pölten). Farben und Schrift nach dem Logo.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ls-technologies
*/

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --bg: #000;
  --tile: #0b0f14;
  --tile-2: #121821;
  --tile-3: #1c2531;
  --ink: #fff;
  --muted: #b4bfcc;
  --pale: #e8eef6;
  --pale-2: #c9d4e1;
  --pale-ink: #05080c;
  --accent: #0a84ff;
  --accent-ink: #000;
  --led: #3ddc2f;
  --b1: #031a33;
  --b2: #062d57;
  --b3: #08437f;
  --b4: #0a5fb3;
  --b5: #0a84ff;

  /* the full name "LS-TECHNOLOGIES" is 11.91em wide at stretch 125%: fit it into the band (20px spare for a scrollbar) */
  --t-xl: min(240px, calc((100vw - 2 * var(--m) - 2 * var(--pad) - 20px) / 11.95));
  --t-l: clamp(36px, 4.2vw, 64px);
  --t-m: 28px;
  --t-s: 18px;
  --t-xs: 15px;

  --gap: 8px;
  --m: 12px;
  --pad: 24px;
  --section: 160px;
  --radius: 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--t-s);
  line-height: 1.5;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: var(--m); }

.display { font-stretch: 125%; font-weight: 800; letter-spacing: -0.04em; line-height: .9; }
.h2 { font-size: var(--t-l); font-stretch: 112%; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.statement { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; font-size: var(--t-s); text-decoration: none;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: #3a9cff; }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--pale-ink); color: var(--ink); }
.btn--dark:hover { background: var(--tile-3); }

.led { display: inline-flex; gap: 5px; }
.led i { width: 8px; height: 8px; border-radius: 50%; background: var(--led); }

/* ---------- board frame ---------- */
.board { padding: 0 var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tile { background: var(--tile); padding: var(--pad); position: relative; overflow: hidden; }
.tile--photo { padding: 0; }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero {
  height: max(100svh, 720px);
  padding-top: var(--m);
  padding-bottom: var(--gap);
  grid-template-rows: auto 64px minmax(0, 1fr);
}
@media (min-width: 1101px) {
  .hero .tile--photo img { position: absolute; inset: 0; }
}
.hero__band {
  grid-column: 1 / -1;
  background: var(--tile);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 20px var(--pad) 16px; margin: 0; font: inherit; font-size: var(--t-xl);
}
.hero__band .display { white-space: nowrap; line-height: 1; transform: translateY(4%); }
.hero__band .dash { color: var(--accent); }
.hero__link {
  grid-column: span 3; background: var(--tile-2);
  padding: 18px 24px; font-size: var(--t-s); font-weight: 600; text-decoration: none;
  transition: background-color .18s var(--ease);
}
.hero__link:hover { background: var(--tile-3); }
.hero__link:active { background: var(--b3); }
.hero__left { grid-column: 1 / span 2; display: grid; grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); min-height: 0; }
.hero__facts { background: var(--tile-2); font-size: var(--t-xs); }
.hero__facts li { padding: 6px 0; display: flex; gap: 10px; align-items: baseline; }
.hero__facts li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--led); transform: translateY(-1px); }
.hero__main { grid-column: 3 / span 8; min-height: 0; }
.hero__main img { animation: drift 24s var(--ease) infinite alternate; }
.hero__statement {
  position: absolute; left: 0; bottom: 0; width: min(78%, 760px);
  background: var(--bg); padding: var(--pad) var(--pad) var(--pad) var(--pad);
}
.hero__statement .statement { font-weight: 700; }
.hero__statement p { margin-top: 14px; color: var(--ink); max-width: 46ch; }
.hero__rail { grid-column: 11 / span 2; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); gap: var(--gap); min-height: 0; }
.hero__rail .tile { padding: 18px; font-size: var(--t-xs); line-height: 1.35; }
.rail-1 { background: #fff; color: var(--pale-ink); }
.rail-2 { background: var(--pale-2); color: var(--pale-ink); }
.rail-3 { background: var(--tile-3); }
.rail-4 { background: var(--tile-2); }
.rail-5 { background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: background-color .18s var(--ease); }
.rail-5:hover { background: #3a9cff; }
.rail-5 strong { font-size: var(--t-s); line-height: 1.2; }
.rail-5 .arrow { font-size: var(--t-m); transition: transform .2s var(--ease); }
.rail-5:hover .arrow { transform: translateX(6px); }
.rail-1 a, .rail-2 a { text-decoration: none; font-weight: 600; }

/* ---------- features ---------- */
.section { margin-top: var(--section); }
.features { display: grid; grid-template-columns: 1fr 1fr; }
.features__cell {
  background: var(--pale); color: var(--pale-ink);
  min-height: 90svh; padding: 40px;
  display: flex; flex-direction: column; gap: 32px;
}
.features__cell h2 span { display: block; }
.features__cell h2 .r { text-align: right; }
/* the picture of the lit service; the pictures cross-fade */
.features__media { position: relative; flex: 1 1 auto; min-height: 300px; overflow: hidden; background: var(--pale-2); }
.features__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity .5s var(--ease), transform 1.4s var(--ease);
}
.features__media img.is-active { opacity: 1; transform: none; }
.features__media figcaption {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
  background: var(--pale-ink); color: var(--ink); padding: 12px 18px; font-size: var(--t-xs); font-weight: 700;
}
.features__foot { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.features__foot p { max-width: 30ch; }
/* each service is a rack unit: status LEDs on the right, lit while it is the active one */
.features__rows { display: grid; grid-auto-rows: 1fr; }
.row {
  position: relative; display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 20px;
  padding: 28px 60px 28px 28px; align-items: start; cursor: default;
  transition: background-color .35s var(--ease);
}
.row:nth-child(odd) { background: var(--tile); }
.row:nth-child(even) { background: var(--tile-2); }
.row.is-active { background: var(--b2); }
.row h3 { font-size: var(--t-m); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.row ul { font-size: var(--t-xs); color: var(--muted); transition: color .35s var(--ease); }
.row.is-active ul { color: var(--pale-2); }
.row ul li + li { margin-top: 4px; }
.row__media { display: none; }
.row__led { position: absolute; top: 34px; right: 26px; display: flex; flex-direction: column; gap: 6px; }
.row__led i { width: 8px; height: 8px; border-radius: 50%; background: var(--tile-3); transition: background-color .35s var(--ease); }
.row.is-active .row__led i { background: var(--led); animation: led-chase 1.4s var(--ease) calc(var(--i, 0) * .18s) 3; }
.row__led i:nth-child(2), .stage__leds i:nth-child(2) { --i: 1; }
.row__led i:nth-child(3), .stage__leds i:nth-child(3) { --i: 2; }
.tile--photo img, .features__media img, .row__media, .stage__media img, .strip__track img { filter: saturate(.82) contrast(1.04); }

/* ---------- marquee ---------- */
.marquee { margin-top: var(--section); overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee__track span { font-size: var(--t-xl); padding-right: .5em; }
.marquee__track .dash { color: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- how it works ---------- */
.how__intro { align-items: end; }
.how__intro h2 { grid-column: 1 / span 5; }
.how__intro p { grid-column: 7 / span 5; }
.stages { display: flex; height: 560px; margin-top: 64px; }
.stage { position: relative; flex: 0 0 8%; overflow: hidden; transition: flex-basis .45s var(--ease); color: var(--ink); }
.stage.is-open { flex: 1 1 auto; }
.stage:nth-child(1) { background: var(--b1); }
.stage:nth-child(2) { background: var(--b2); }
.stage:nth-child(3) { background: var(--b3); }
.stage:nth-child(4) { background: var(--b4); }
.stage__tab {
  position: absolute; inset: 0; width: 100%; background: transparent; border: 0; color: inherit; cursor: pointer;
  font: inherit; font-size: var(--t-s); font-weight: 700; text-align: left;
  transition: background-color .2s var(--ease);
}
.stage__tab:hover { background: rgb(255 255 255 / .08); }
.stage__label { position: absolute; left: 22px; bottom: 24px; transform-origin: left bottom; transform: rotate(-90deg) translate(0, 100%); white-space: nowrap; }
/* closed stages blink until they have been opened once, so it is clear they open */
.stage__plus { position: absolute; top: 22px; left: 50%; width: 44px; height: 44px; translate: -50% 0; background: var(--bg); transition: background-color .2s var(--ease), rotate .3s var(--ease); }
.stage__plus::before, .stage__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; background: var(--ink); translate: -50% -50%; }
.stage__plus::after { rotate: 90deg; }
.stage__tab:hover .stage__plus { background: var(--pale-ink); rotate: 90deg; }
.stage__leds { position: absolute; top: 84px; left: 50%; translate: -50% 0; display: flex; gap: 6px; }
.stage__leds i { width: 8px; height: 8px; border-radius: 50%; background: var(--led); }
.stages.is-calling .stage:not(.is-seen) .stage__leds i { animation: led-chase 1.4s var(--ease) calc(var(--i, 0) * .18s + var(--o, 0s)) 3; }
.stage:nth-child(3) { --o: .25s; }
.stage:nth-child(4) { --o: .5s; }
.stage.is-seen .stage__leds i { opacity: .5; }
/* .stage clips its overflow, so the tab draws its focus ring inside */
.stage__tab:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.stage.is-open .stage__tab { display: none; }
.stage__body {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease) .15s;
}
.stage.is-open .stage__body { opacity: 1; visibility: visible; }
.stage__text { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.stage__text h3 { font-size: var(--t-l); font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.stage__text p { max-width: 36ch; }
.stage__media { min-width: 0; min-height: 0; }
.stage__media img { width: 100%; height: 100%; object-fit: cover; }

/* rack calculator (the live thing) */
.rack { display: grid; grid-template-columns: 1fr 150px; gap: 20px; min-height: 0; background: var(--b1); padding: 20px; }
.rack__controls { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rack__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--t-m); font-weight: 700; }
.rack__count { font-weight: 800; font-stretch: 112%; }
.rack input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }
.rack dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: var(--t-xs); }
.rack dt { color: var(--muted); }
.rack dd { font-weight: 700; }
.rack__note { font-size: var(--t-xs); color: var(--muted); }
.rack__unit-list { display: flex; flex-direction: column; gap: 3px; background: #000; padding: 8px; overflow: hidden; }
.rack__u { height: 14px; background: var(--tile-3); display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 0; }
.rack__u.is-used { background: #2a3442; }
.rack__u .led { gap: 3px; }
.rack__u .led i { width: 4px; height: 4px; }
.rack__u.is-free { background: #10161e; }

/* ---------- about ---------- */
.about__lead { grid-column: 1 / span 6; margin-top: 24px; font-size: var(--t-m); line-height: 1.3; }
.about__heading { grid-column: 1 / -1; }
.about__tiles { margin-top: 72px; align-items: start; gap: 16px; }
.about__photo { grid-column: 1 / span 8; aspect-ratio: 16 / 10; }
.about__photo p {
  position: absolute; top: 0; right: 0; width: 320px; padding: 20px;
  background: var(--pale); color: var(--pale-ink); font-size: var(--t-s);
}
.about__side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
.about__map { background: var(--b3); aspect-ratio: 16 / 9.6; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.about__map svg { width: 100%; height: auto; }
.about__map p { font-size: var(--t-xs); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; font-size: var(--t-xs); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 700; font-size: var(--t-s); overflow-wrap: anywhere; }

/* ---------- contact ---------- */
.contact { background: var(--accent); color: var(--accent-ink); padding: 48px 0 72px; overflow: hidden; }
.strip { overflow: hidden; }
.strip__track { display: flex; gap: 8px; width: max-content; animation: marquee 70s linear infinite; }
.strip__track img { height: 150px; width: auto; object-fit: cover; }
.strip__track img.r34 { aspect-ratio: 3 / 4; }
.strip__track img.r11 { aspect-ratio: 1 / 1; }
.strip__track img.r32 { aspect-ratio: 3 / 2; }
.strip:hover .strip__track { animation-play-state: paused; }
.contact__inner { padding: 0 var(--m); margin-top: 72px; }
.contact__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.contact__top > div { grid-column: 1 / span 6; }
.contact__address { grid-column: 8 / span 5; font-style: normal; font-size: var(--t-s); line-height: 1.5; }
.contact__address a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact__inner .h2 { max-width: 14ch; }
.contact__lead { margin-top: 20px; max-width: 52ch; }
.mailbar { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mailbar input, .mailbar button {
  height: 96px; border: 0; border-radius: var(--radius); font: inherit; font-size: var(--t-s);
  text-align: center; padding: 0 16px; width: 100%;
}
.mailbar input { background: #3a9cff; color: var(--accent-ink); transition: background-color .18s var(--ease); }
.mailbar input::placeholder { color: #00264d; opacity: 1; }
.mailbar input:focus { background: var(--pale); outline: 3px solid var(--accent-ink); outline-offset: 0; }
.mailbar button { background: var(--accent-ink); color: var(--ink); font-weight: 700; cursor: pointer; transition: transform .18s var(--ease), background-color .18s var(--ease); }
.mailbar button:hover { background: var(--tile-3); }
.mailbar button:active { transform: scale(.98); }
.mailbar__small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; font-size: var(--t-xs); }
.mailbar__small a { font-weight: 700; }

/* ---------- footer ---------- */
.footer { background: var(--tile); margin-top: var(--gap); padding: 48px var(--m) 24px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 180px; }
.blocks span {
  flex: 1 1 0; display: flex; align-items: flex-end; justify-content: center;
  font-weight: 800; font-stretch: 125%; color: var(--tile); line-height: .8;
  font-size: var(--t-l); padding-bottom: 8px; overflow: hidden;
}
.blocks span:nth-child(3n+1) { background: var(--ink); }
.blocks span:nth-child(3n+2) { background: var(--accent); }
.blocks span:nth-child(3n) { background: var(--pale-2); }
.footer__cols { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); font-size: var(--t-xs); }
.footer__col { grid-column: span 2; }
.footer__col h2 { font-size: var(--t-xs); font-weight: 700; margin-bottom: 10px; }
.footer__col li + li { margin-top: 6px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__contact { grid-column: 9 / span 4; }
.footer__credits { margin-top: 40px; font-size: var(--t-xs); color: var(--muted); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 32px; }
.footer__credits a { color: inherit; }
.footer__last { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: var(--t-xs); }
.footer__last .btn { min-height: 40px; padding: 0 16px; font-size: var(--t-xs); }

/* ---------- subpages ---------- */
.bar { display: flex; align-items: center; gap: 8px; padding: var(--m); }
.bar a { text-decoration: none; }
.bar__brand { background: var(--tile); padding: 14px 20px; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }
.bar__brand .dash { color: var(--accent); }
.bar__links { display: flex; gap: 8px; margin-left: auto; }
.bar__links a { background: var(--tile-2); padding: 14px 18px; font-size: var(--t-s); font-weight: 600; transition: background-color .18s var(--ease); }
.bar__links a:hover { background: var(--tile-3); }
.page { padding: 0 var(--m); }
.page__head { background: var(--tile); padding: 64px var(--pad) 48px; }
.page__head h1 { font-size: var(--t-l); font-stretch: 112%; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.prose { background: var(--pale); color: var(--pale-ink); padding: 56px var(--pad) 80px; margin-top: var(--gap); }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: var(--t-m); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 4px; }
.prose a { color: #0058b3; }

/* ---------- motion ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes led-chase { 0%, 100% { opacity: .2; } 30% { opacity: 1; } 60% { opacity: .35; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .strip__track, .hero__main img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stage, .stage__body { transition: none; }
  .stages.is-calling .stage:not(.is-seen) .stage__leds i, .row.is-active .row__led i { animation: none; }
  .features__media img { transition: none; transform: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-rows: auto 64px auto auto; height: auto; }
  .hero__left { grid-column: 1 / span 4; grid-row: 4; grid-template-rows: auto auto; }
  .hero__left .tile--photo { aspect-ratio: 4 / 3; }
  .hero__main { grid-column: 1 / -1; grid-row: 3; aspect-ratio: 16 / 10; }
  .hero__rail { grid-column: 5 / -1; grid-row: 4; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero__rail .rail-5 { grid-column: span 2; min-height: 120px; }
  .features { grid-template-columns: 1fr; }
  .features__cell { min-height: 0; gap: 48px; }
  .features__media { display: none; }
  .features__rows { grid-auto-rows: auto; }
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto 1fr; column-gap: 28px; row-gap: 12px; padding: 20px 60px 20px 20px; }
  .row__media { display: block; grid-column: 1; grid-row: 1 / span 3; width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
  .row h3, .row p, .row ul { grid-column: 2; }
  .row h3 { padding-top: 8px; }
  .row ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .row ul li + li { margin-top: 0; }
  .how__intro h2, .how__intro p { grid-column: 1 / -1; }
  .stage__body { grid-template-columns: 1fr; }
  .stage__media { display: none; }
  .about__lead { grid-column: 1 / span 10; }
  .about__photo { grid-column: 1 / -1; }
  .about__side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .footer__col { grid-column: span 3; }
  .footer__credits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__contact { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  :root { --m: 8px; --gap: 6px; --pad: 18px; --section: 120px; --t-l: 32px;
    /* 9.51em wide at stretch 100% */
    --t-xl: calc((100vw - 2 * var(--m) - 2 * var(--pad) - 4px) / 9.55); }
  .hero__band .display { font-stretch: 100%; }
  .grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-rows: auto auto auto auto auto; }
  .hero__link { grid-column: span 1; padding: 16px; order: 3; }
  .hero__band { order: 1; }
  .hero__main { grid-column: 1 / -1; grid-row: auto; order: 2; aspect-ratio: auto; display: flex; flex-direction: column; background: var(--bg); }
  .hero__main img { aspect-ratio: 4 / 3; height: auto; }
  .hero__statement { position: static; width: 100%; padding: 18px 2px 8px; }
  .hero__left { grid-column: 1 / -1; grid-row: auto; order: 5; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hero__left .tile--photo { aspect-ratio: auto; }
  .hero__rail { grid-column: 1 / -1; grid-row: auto; order: 4; grid-template-columns: repeat(2, 1fr); }
  .hero__rail .tile { min-height: 84px; }
  .features__cell { padding: 24px; gap: 32px; }
  .features__cell h2 { font-stretch: 90%; }
  .features__foot { flex-direction: column; align-items: start; }
  .row { grid-template-columns: 1fr auto; grid-template-rows: none; gap: 10px; padding: 0 0 24px; }
  .row__media { grid-column: 1 / -1; grid-row: 1; height: auto; min-height: 0; aspect-ratio: 16 / 10; margin-bottom: 8px; }
  .row h3 { grid-column: 1; grid-row: 2; padding: 0 0 0 20px; }
  .row__led { position: static; grid-column: 2; grid-row: 2; flex-direction: row; align-self: center; padding-right: 20px; }
  .row p, .row ul { grid-column: 1 / -1; padding: 0 20px; }
  .row ul { display: block; }
  .row ul li { display: inline; }
  .row ul li:not(:last-child)::after { content: ", "; }
  .stages { flex-direction: column; height: auto; margin-top: 40px; }
  .stage { flex: none; }
  .stage__tab { position: static; height: 64px; padding: 0 10px 0 18px; font-size: 18px; display: flex; align-items: center; gap: 16px; }
  .stage__label { position: static; transform: none; order: 1; flex: 1; }
  .stage__leds { position: static; translate: none; order: 2; }
  .stage__plus { position: relative; top: auto; left: auto; translate: none; order: 3; flex: none; }
  .stage.is-open .stage__tab { display: none; }
  .stage__body { position: static; display: none; padding: 22px 18px; opacity: 1; visibility: visible; }
  .stage.is-open .stage__body { display: grid; }
  .stage__text h3 { font-size: var(--t-m); margin-bottom: 12px; }
  .rack { grid-template-columns: 1fr 72px; gap: 14px; padding: 16px; }
  .rack dd { white-space: nowrap; }
  .rack__head { font-size: var(--t-s); }
  .rack__count { font-size: var(--t-m); }
  .about__lead { grid-column: 1 / -1; font-size: var(--t-s); }
  .about__photo { aspect-ratio: auto; background: var(--bg); }
  .about__photo img { aspect-ratio: 4 / 3; height: auto; }
  .about__photo p { position: static; width: auto; background: var(--bg); color: var(--ink); padding: 16px 2px 0; }
  .about__side { grid-template-columns: 1fr; }
  .about__map { aspect-ratio: 3 / 2; }
  .strip__track img { height: 110px; }
  .contact__top > div, .contact__address { grid-column: 1 / -1; }
  .contact__address { margin-top: 24px; }
  .mailbar, .mailbar__small { grid-template-columns: 1fr; }
  .mailbar input, .mailbar button { height: 60px; }
  .mailbar__small span:last-child { grid-column: auto; }
  .blocks { height: 22svh; min-height: 120px; gap: 2px; }
  .blocks span { font-size: var(--t-s); padding-bottom: 4px; }
  .footer__credits { grid-template-columns: 1fr; }
  .footer__col { grid-column: span 6; }
  .footer__contact { grid-column: 1 / -1; }
  .bar { flex-wrap: wrap; }
  .bar__links { margin-left: 0; flex-wrap: wrap; }
  .page__head { padding: 40px var(--pad) 32px; }
}

/* ---------- subpage body ---------- */
.page__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); align-items: start; }
.page__body .prose { grid-column: 1 / span 8; margin-top: 0; }
.prose h2 { overflow-wrap: anywhere; hyphens: auto; }
.page__aside { grid-column: 9 / span 4; position: sticky; top: var(--m); background: var(--accent); color: var(--accent-ink); padding: var(--pad); font-size: var(--t-s); }
.page__aside ul { margin-top: 20px; }
.page__aside li + li { margin-top: 6px; }
.page__aside a { font-weight: 700; }
@media (max-width: 900px) {
  .page__body .prose, .page__aside { grid-column: 1 / -1; }
  .page__aside { position: static; }
}
