/* Umetalli, variant C: colour chapters.
   Every chapter is one colour of the table: RAL 5015 legs, the steel top,
   the royal blue of the U, the red of a custom frame, workshop white. */

:root {
  --sky: #2271B3;          /* RAL 5015 Sky Blue, the legs */
  --royal: #0038E0;        /* the U of the logo */
  --steel: #1E2328;        /* the top */
  --steel-2: #272D33;
  --steel-light: #D3D8DC;
  --paper: #F2F3F1;        /* workshop white */
  --red: #D90F1B;          /* a custom frame */
  --yellow: #F2B705;
  --ink: #12161B;
  --ink-soft: #49525C;
  --on-dark-soft: #AEB7C0;
  --on-royal-soft: #C3CEFF;
  --white: #FFFFFF;

  --m: clamp(16px, 2.8vw, 40px);
  --g: 8px;

  --f-hero: clamp(96px, 17vw, 300px);
  --f-display: clamp(40px, 6vw, 88px);
  --f-head: clamp(26px, 2.6vw, 40px);
  --f-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --f-small: 0.9375rem;

  --display: "Stack Sans Headline", "Helvetica Neue", Arial, sans-serif;
  --text: "Stack Sans Text", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--sky) var(--steel); }
body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--f-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--royal); color: var(--white); }
input, button { font: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.05;
  text-wrap: balance;
}

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 10; background: var(--paper); padding: 12px 16px; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.chapter { position: relative; min-height: 90svh; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-weight: 500; font-size: var(--f-body); text-decoration: none;
  border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: var(--f-small); }
.btn--wide { width: 100%; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--sky { background: var(--sky); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { background: var(--steel-2); }
  .btn--paper:hover { background: var(--white); }
  .btn--sky:hover { background: #1C63A0; }
}

.link {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em;
  font-weight: 500;
  transition: text-underline-offset var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-underline-offset: 0.34em; }
}

/* ---------- 1. hero: RAL 5015 ---------- */
.hero {
  min-height: 100svh;
  background: var(--sky);
  color: var(--white);
  overflow: hidden;
}
.bar {
  position: absolute; top: 24px; left: var(--m); right: var(--m);
  display: flex; align-items: center; gap: 32px;
  font-size: var(--f-small);
}
.bar__mark img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.bar__links { display: flex; gap: 28px; margin-left: auto; }
.bar__links a { text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .bar__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
}
.hero__name {
  padding: 15svh var(--m) 0;
  margin-left: -0.05em;
  font-size: var(--f-hero);
  letter-spacing: -0.045em;
  line-height: 0.84;
}
.hero__dark { color: var(--ink); }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.lines [data-line] { display: block; }

.hero__table {
  position: absolute; right: -14vw; top: 34svh;
  width: 72vw; margin: 0;
  pointer-events: none;
}
.hero__table img { width: 100%; height: auto; }
.hero__foot {
  position: absolute; left: var(--m); bottom: 40px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.hero__foot p { max-width: 34ch; }
.hero__actions .btn { white-space: nowrap; }
.hero__foot p { font-size: var(--f-body); }
.hero__actions { display: flex; flex-direction: row-reverse; align-items: center; gap: 28px; }

/* ---------- 2. made in Helsinki: one photo across tiles ---------- */
.mosaic {
  background: var(--steel);
  color: var(--paper);
  padding: var(--m);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.board {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--g);
}
.tile {
  grid-column: calc(var(--c) + 1);
  grid-row: calc(var(--r) + 1);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}
.tile--photo span {
  --t: calc((100cqw - 5 * var(--g)) / 6);
  position: absolute; inset: 0;
  background-image: url("../assets/img/sparks-grinding.webp");
  background-repeat: no-repeat;
  background-size: 100cqw auto;
  background-position:
    calc(var(--c) * (var(--t) + var(--g)) * -1)
    calc(var(--r) * (var(--t) + var(--g)) * -1);
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile--photo:hover span { transform: scale(1.08); }
}
.tile--colour {
  padding: 18px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.tile--colour p { font-size: var(--f-body); font-weight: 500; line-height: 1.3; max-width: 14ch; }
.tile--head h2 { font-size: var(--f-head); }
.tile--paper { background: var(--paper); color: var(--ink); }
.tile--sky { background: var(--sky); color: var(--white); }
.tile--royal { background: var(--royal); color: var(--white); }
.tile--red { background: var(--red); color: var(--white); }
.tile--action {
  justify-content: space-between; text-decoration: none;
  font-size: var(--f-body); font-weight: 500;
  transition: transform var(--t-press) var(--ease-out);
}
.tile--action:active { transform: scale(0.97); }
.tile--action svg, .arrow svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; }
.tile--action svg { align-self: flex-end; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile--action:hover svg { transform: translateX(6px); }
}
.mosaic__caption { font-size: var(--f-small); color: var(--on-dark-soft); }

/* ---------- 3. tables: two-column menu ---------- */
.menu {
  background: var(--paper);
  padding: 120px var(--m) 140px;
}
.menu__cat + .menu__cat { margin-top: 140px; }
.menu__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  margin-bottom: 48px;
}
.menu__head h2 { font-size: var(--f-display); }
.menu__head span { font-size: var(--f-body); color: var(--ink-soft); text-align: right; }
.menu__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 36px; }
.menu__list a {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  column-gap: 20px; row-gap: 4px;
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out);
}
.menu__list a:active { transform: scale(0.985); }
.menu__list img {
  grid-row: 1 / span 3;
  width: 64px; height: 64px; object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .menu__list a:hover img { transform: scale(1.12) rotate(-3deg); }
  .menu__list a:hover .menu__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
}
.menu__name { font-weight: 500; }
.menu__price { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu__desc, .menu__note { grid-column: 2 / span 2; }
.menu__desc { color: var(--ink-soft); max-width: 42ch; }
.menu__note { color: var(--royal); font-size: var(--f-small); font-weight: 500; }
.menu__more { margin-top: 56px; display: flex; gap: 32px; flex-wrap: wrap; }

/* ---------- 4. system: royal blue poster list ---------- */
.system {
  background: var(--royal);
  color: var(--white);
  padding: 20vh var(--m);
  display: flex; align-items: center;
}
.system__list { width: 100%; }
.system__row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: baseline;
  padding-bottom: 0.35em;
}
.system__row h2, .system__row h3 {
  grid-column: 1 / span 8;
  font-size: var(--f-display);
  line-height: 1.0;
}
.system__row--head h2 { color: var(--on-royal-soft); }
.system__row p { grid-column: 9 / span 4; max-width: 36ch; }
.system__row--head p { color: var(--on-royal-soft); }

/* ---------- 5. gold sets: stacked folders ---------- */
.sets {
  background: var(--paper);
  padding: 120px 0 0;
}
.sets__intro {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: 0 var(--m) 96px;
  align-items: end;
}
.sets__intro h2 { grid-column: 1 / span 6; font-size: var(--f-display); }
.sets__intro p { grid-column: 9 / span 4; max-width: 46ch; }
.folder {
  --tab: 44px;
  position: sticky;
  top: calc(var(--tab) + var(--i) * 80px);
  margin-top: var(--tab);
  min-height: 80svh;
  padding: 0 var(--m) 64px;
  background: var(--fold);
  color: var(--fold-ink);
}
.folder--sky { --fold: var(--sky); --fold-ink: var(--white); }
.folder--steel { --fold: var(--steel); --fold-ink: var(--paper); }
.folder--light { --fold: var(--steel-light); --fold-ink: var(--ink); }
.folder--royal { --fold: var(--royal); --fold-ink: var(--white); }
.folder__tab {
  position: absolute; left: var(--m); top: calc(var(--tab) * -1);
  height: var(--tab); min-width: 240px; padding: 0 40px 0 18px;
  display: flex; align-items: center;
  background: var(--fold);
  clip-path: polygon(0 100%, 0 10px, 10px 0, calc(100% - 26px) 0, 100% 100%);
}
.folder__tab h3 { font-family: var(--text); font-weight: 500; font-size: var(--f-body); letter-spacing: 0; white-space: nowrap; }
.folder__cat {
  height: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 20px;
  font-size: var(--f-small);
}
.folder__cat b { font-weight: 500; font-size: var(--f-body); font-variant-numeric: tabular-nums; }
.folder__body {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding-top: 64px;
}
.folder__body img {
  grid-column: 1 / span 7;
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain;
  background: #F1F1F1;
}
.folder__text { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.folder__price { font-family: var(--display); font-size: var(--f-head); font-weight: 300; font-variant-numeric: tabular-nums; }

/* ---------- 6. your logo, your colour ---------- */
.custom {
  display: grid; grid-template-columns: 5fr 7fr;
  min-height: 100svh;
}
.custom__panel {
  background: var(--red); color: var(--white);
  padding: 96px var(--m) 72px;
  display: flex; flex-direction: column; gap: 28px;
}
.custom__panel h2 { font-size: var(--f-display); }
.custom__panel > p { max-width: 38ch; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: var(--f-small); font-weight: 500; }
.field input {
  height: 56px; padding: 0 16px;
  background: var(--white); color: var(--ink);
  border: 0; border-radius: 0;
  font-size: var(--f-body);
}
.field input { caret-color: var(--red); }
.field input::placeholder { color: #6B737C; }
.field input:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.swatches { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.swatches legend { font-size: var(--f-small); font-weight: 500; margin-bottom: 10px; padding: 0; }
.swatch { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 48px; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch__chip {
  flex: none; width: 44px; height: 44px; background: var(--chip);
  border: 4px solid transparent;
  transition: transform var(--t-press) var(--ease-out), border-color var(--t-hover) ease;
}
.swatch:active .swatch__chip { transform: scale(0.95); }
.swatch input:checked + .swatch__chip { border-color: var(--white); }
.swatch input:focus-visible + .swatch__chip { outline: 3px solid var(--ink); outline-offset: 6px; }
.swatch small { display: block; font-size: var(--f-small); }
.swatch > span:last-child { line-height: 1.25; font-weight: 500; }
.custom__note { font-size: var(--f-small); }

.custom__stage {
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding: 72px var(--m);
}
.table { width: 100%; height: auto; --frame: var(--sky); }
.custom:has(input[data-c="red"]:checked) .table { --frame: var(--red); }
.custom:has(input[data-c="black"]:checked) .table { --frame: var(--ink); }
.custom:has(input[data-c="yellow"]:checked) .table { --frame: var(--yellow); }
.table__frame rect { fill: var(--frame); transition: fill 240ms ease; }
.table__face { fill: #5B636B; }
.table__edge { fill: #3A4148; }
.table__side { fill: #2C3238; }
.table__holes ellipse { fill: #23292E; }
.table__holes circle { fill: #15191D; }
.table__frame--back rect { filter: brightness(0.72); }
.table__plate rect { fill: #C7CCD0; }
.table__plate text {
  fill: #2F363D;
  font-family: var(--text); font-weight: 500; font-size: 26px; letter-spacing: 0.14em;
}
.custom__stage figcaption { font-size: var(--f-body); }

/* ---------- 7. workshop: inset steel panel on RAL 5015 ---------- */
.workshop { background: var(--sky); padding: 20px; }
.workshop__panel {
  position: relative; overflow: hidden;
  min-height: 110svh;
  background: var(--steel); color: var(--paper);
  display: grid; grid-template-columns: 63% 1fr;
}
.workshop__left { padding: 56px; }
.workshop__left h2 { font-size: var(--f-display); max-width: 13ch; }
.workshop__photo {
  position: absolute; left: 56px; bottom: calc(38vw * -0.2);
  width: 38vw; aspect-ratio: 1;
  clip-path: circle(50% at 50% 50%);
  overflow: hidden;
}
.workshop__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.workshop__right {
  padding: 56px 56px 56px 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 56px;
}
.workshop__right > div { max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.workshop__right h3 { font-size: var(--f-head); }
.workshop__right p { color: var(--paper); }

/* ---------- 8. proof: names on tiles ---------- */
.proof {
  background: var(--paper);
  padding: 140px var(--m) 120px;
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
}
.proof__board { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); }
.proof__tile {
  aspect-ratio: 3 / 2;
  background: #E2E5E3;
  padding: 24px;
  font-family: var(--display); font-weight: 400; font-size: var(--f-head); line-height: 1.1;
  letter-spacing: -0.015em;
}
.proof__tile--head { grid-column: span 2; aspect-ratio: auto; background: var(--royal); color: var(--white); }
.proof__tile--head h2 { font-size: var(--f-display); max-width: 9ch; }
.proof__line { max-width: 60ch; }

/* ---------- 9. FAQ: a band per question ---------- */
.faq__head {
  min-height: 40svh; background: var(--sky); color: var(--white);
  display: flex; align-items: flex-end;
  padding: 56px var(--m);
}
.faq__head h2 { font-size: var(--f-display); }
.faq__band {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: 56px var(--m);
  background: var(--paper);
}
.faq__band:nth-of-type(odd) { background: var(--steel-light); }
.faq__band h3 { grid-column: 1 / span 7; font-size: var(--f-head); font-weight: 400; }
.faq__band p { grid-column: 9 / span 4; max-width: 56ch; }

/* ---------- 10. contact: address in display rows ---------- */
.contact { background: var(--steel); color: var(--paper); min-height: auto; }
.contact__rows li {
  min-height: 150px;
  display: flex; align-items: flex-end; gap: 24px;
  padding: 0 var(--m) 26px;
  font-family: var(--display); font-weight: 300; font-size: var(--f-display); line-height: 1;
  letter-spacing: -0.022em;
}
.contact__rows li:nth-child(even) { background: var(--steel-2); }
.contact__rows a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .contact__rows li > a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
}
.contact__hello { align-items: center !important; padding-top: 26px !important; }
.arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 0.9em; height: 0.9em; flex: none;
  background: var(--sky); color: var(--white);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.arrow:active { transform: scale(0.95); }
.arrow svg { width: 55%; height: 55%; }
@media (hover: hover) and (pointer: fine) {
  .arrow:hover { background: var(--royal); }
}

/* ---------- 11. footer: the mark built from blocks ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 72px var(--m) 32px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 220px; }
.blocks span {
  flex: 1; height: var(--h);
  background: var(--b); color: var(--l, var(--ink));
  display: flex; align-items: flex-end; justify-content: center;
  font-family: var(--display); font-weight: 400; font-size: min(10vw, 19svh); line-height: 0.9;
  padding-bottom: 0.04em;
  overflow: hidden;
}
.foot__grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px;
  font-size: var(--f-small);
}
.foot__grid nav { grid-column: span 2; }
.foot__grid h2 { font-family: var(--text); font-size: var(--f-small); font-weight: 500; letter-spacing: 0; color: var(--on-dark-soft); margin-bottom: 12px; }
.foot__grid li + li { margin-top: 8px; }
.foot__grid a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .foot__grid a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
}
.foot__contact { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; font-size: var(--f-body); }
.foot__last {
  margin-top: 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: var(--f-small); color: var(--on-dark-soft);
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .hero__table { width: 64vw; right: -12vw; top: 54svh; }
  .hero__foot p { max-width: 30ch; }
  .menu__list { column-gap: 40px; }
  .workshop__panel { grid-template-columns: 1fr 1fr; }
  .workshop__photo { width: 44vw; bottom: calc(44vw * -0.2); }
  .proof__board { grid-template-columns: repeat(3, 1fr); }
  .proof__tile--head { grid-column: span 3; }
  .foot__grid nav { grid-column: span 3; }
  .foot__contact { grid-column: 1 / -1; }
}

/* ---------- the board re-cuts to three columns below 1080 ---------- */
@media (max-width: 1080px) {
  .mosaic { --g: 6px; }
  .board { grid-template-columns: repeat(3, 1fr); }
  .tile { grid-column: calc(var(--pc) + 1); grid-row: calc(var(--pr) + 1); }
  .tile--head { grid-column: 1 / span 2; aspect-ratio: auto; }
  .tile--head h2 { font-size: var(--f-head); }
  .tile--wide-only { display: none; }
  .tile--photo span {
    --t: calc((100cqw - 2 * var(--g)) / 3);
    background-image: url("../assets/img/laser-welding.webp");
    background-size: auto calc(6 * var(--t) + 5 * var(--g));
    background-position:
      calc((var(--pc) * (var(--t) + var(--g)) + (var(--t) + 1.33 * var(--g)) / 2) * -1)
      calc(var(--pr) * (var(--t) + var(--g)) * -1);
  }
  .tile--colour { padding: 12px; }
  .tile--colour p, .tile--action { font-size: var(--f-small); }
  .tile--action svg { width: 28px; height: 28px; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --f-display: clamp(34px, 9.6vw, 56px); --f-head: clamp(22px, 6vw, 30px); }

  .bar { top: 16px; gap: 16px; }
  .bar__links { display: none; }
  .bar .btn { margin-left: auto; }
  .bar__mark img { height: 24px; }
  .hero { display: flex; flex-direction: column; }
  .hero__name { padding-top: 92px; font-size: 24vw; }
  .hero__table { position: relative; right: auto; top: auto; width: 112vw; margin: 4svh 0 0 4vw; }
  .hero__foot { position: relative; left: auto; bottom: auto; margin-top: auto; padding: 24px var(--m) 24px; align-items: stretch; }
  .hero__actions { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .hero__foot .btn { width: 100%; }
  .hero__actions .link { align-self: flex-start; }


  .menu { padding: 88px var(--m) 96px; }
  .menu__cat + .menu__cat { margin-top: 96px; }
  .menu__head { flex-direction: column; gap: 4px; margin-bottom: 32px; }
  .menu__head span { text-align: left; }
  .menu__list { grid-template-columns: 1fr; row-gap: 28px; }
  .menu__list a { grid-template-columns: 52px 1fr auto; column-gap: 14px; }
  .menu__list img { width: 52px; height: 52px; }
  .menu__desc { font-size: var(--f-small); }

  .system { padding: 96px var(--m); }
  .system__row { display: block; padding-bottom: 28px; }
  .system__row h2, .system__row h3 { font-size: 11vw; }
  .system__row p { margin: 8px 0 0 var(--m); }

  .sets { padding-top: 88px; }
  .sets__intro { display: block; padding-bottom: 56px; }
  .sets__intro p { margin-top: 20px; }
  .folder { position: relative; top: auto; min-height: 0; padding-bottom: 40px; --tab: 40px; }
  .folder__tab { min-width: 0; }
  .folder__body { display: block; padding-top: 12px; }
  .folder__body img { aspect-ratio: 4 / 3; }
  .folder__text { margin-top: 24px; }

  .custom { grid-template-columns: 1fr; }
  .custom__panel { padding: 72px var(--m) 48px; }
  .custom__stage { padding: 48px var(--m); }

  .workshop { padding: 10px; }
  .workshop__panel { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0; }
  .workshop__left { padding: 40px 24px 0; display: contents; }
  .workshop__left h2 { padding: 40px 24px 0; order: 0; max-width: none; }
  .workshop__right { padding: 32px 24px 48px; order: 1; gap: 36px; }
  .workshop__right > div { max-width: none; }
  .workshop__photo { position: relative; left: auto; bottom: auto; order: 2; width: 86vw; margin: 0 auto -21.5vw; }

  .proof { padding: 96px var(--m); }
  .proof__board { grid-template-columns: 1fr 1fr; gap: 6px; }
  .proof__tile { font-size: 20px; padding: 16px; }
  .proof__tile--head { grid-column: 1 / -1; min-height: 120px; }
  .proof__tile:nth-child(n+10) { display: none; }

  .faq__head { min-height: 30svh; padding: 32px var(--m); }
  .faq__head h2 { font-size: 13vw; }
  .faq__band { display: block; padding: 32px 20px; }
  .faq__band p { margin-top: 12px; }

  .contact__rows li { min-height: 84px; padding: 0 16px 18px; font-size: 9.6vw; }
  .contact__hello { justify-content: space-between; background: var(--red) !important; }
  .contact__hello .arrow { width: 56px; height: 56px; }

  .blocks { height: 22svh; min-height: 150px; }
  .blocks span { font-size: min(10vw, 12svh); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid nav, .foot__contact { grid-column: auto; }
  .foot__contact { grid-column: 1 / -1; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] {
    transform: translateY(105%);
    animation: line-up 900ms var(--ease-out) forwards;
    animation-delay: calc(var(--i) * 110ms + 150ms);
  }
  .js [data-rise] {
    opacity: 0; transform: translateY(18px);
    animation: rise 700ms var(--ease-out) forwards;
    animation-delay: 520ms;
  }

  /* each section arrives in its own manner */
  /* entrances move but never hide: text is readable before, during and after */
  .js [data-stagger] > * {
    transform: translateY(24px);
    transition: transform 800ms var(--ease-out);
    transition-delay: calc(var(--k, 0) * 70ms);
  }
  .js .board[data-stagger] > * { transform: scale(0.94); transition-delay: calc(var(--k, 0) * 45ms); }
  .js .system__list[data-stagger] > * { transform: translateY(40px); transition-delay: calc(var(--k, 0) * 90ms); }
  .js .contact__rows[data-stagger] > * { transform: translateY(32px); transition-delay: calc(var(--k, 0) * 60ms); }
  .js [data-stagger].is-in > * { transform: none; }

  .js [data-hole] { clip-path: circle(0% at 50% 50%); transition: clip-path 1200ms var(--ease-in-out); }
  .js [data-hole].is-in { clip-path: circle(50% at 50% 50%); }
  .js .hero__table { animation: table-in 1100ms var(--ease-out) 380ms both; }
  .workshop__photo img { animation: drift 22s var(--ease-in-out) infinite alternate; }

  .js .folder__body { transform: translateY(28px); transition: transform 800ms var(--ease-out); }
  .js .folder.is-in .folder__body { transform: none; }

  .js .blocks span { transform: scaleY(0.6); transform-origin: bottom; transition: transform 900ms var(--ease-out); transition-delay: calc(var(--k, 0) * 60ms); }
  .js .blocks.is-in span { transform: none; }

  .table__frame rect { transition: fill 240ms ease; }
  .table__plate text { transition: opacity 160ms ease; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes table-in { from { opacity: 0; transform: translateX(8vw); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.1) translateY(-2%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
