/* OSKA — obróbka CNC · prezentacja
   Tokeny: patrz design-tokens.md */

:root {
  --graphite: #15181B;
  --steel-900: #1E2327;
  --steel-800: #262C31;
  --steel-700: #353C42;
  --steel-400: #9AA3AA;
  --steel-200: #C9CED2;
  --paper: #EEF0F0;
  --paper-2: #E1E4E5;
  --white: #FFFFFF;
  --ink: #15181B;
  --ink-2: #4A535A;
  --accent: #FF6A13;
  --accent-ink: #B54200;
  --blueprint: #1B2226;
  --line-dark: rgba(201, 206, 210, .16);
  --line-light: rgba(21, 24, 27, .14);

  --f-display: "Archivo", "Helvetica Neue", sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(1.25rem, 4.5vw, 4.5rem);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--f-display);
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}
h1, h2 {
  font-variation-settings: "wdth" 88;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.02;
}
h2 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 4rem); max-width: 16ch; margin-bottom: 1.25rem; }
h2.wide { max-width: 22ch; }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.005em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: inherit; }
small { font-size: .8em; }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 1; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--graphite); padding: .6rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ───────── layout ───────── */
.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(4.5rem + 2vh) 0 4rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.slide--dark { background: var(--graphite); color: var(--paper); }
.slide--light { background: var(--paper); color: var(--ink); }
.slide--blueprint {
  background-color: var(--blueprint);
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  color: var(--paper);
}
.slide--blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 70% 50%, transparent 0, var(--blueprint) 75%);
}

.kicker {
  font: 500 .78rem/1.2 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .75rem;
  color: var(--ink-2);
}
.slide--dark .kicker, .slide--blueprint .kicker { color: var(--steel-400); }
.kicker__no {
  color: var(--graphite); background: var(--accent);
  padding: .3rem .45rem; letter-spacing: .04em;
}
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 58ch; }
.muted { color: var(--steel-400); }
.slide--light .muted { color: var(--ink-2); }
.small { font-size: .9rem; color: var(--ink-2); }
.note { font: 400 .74rem/1.4 var(--f-mono); color: var(--ink-2); margin: .6rem 0 0; letter-spacing: 0; }
.slide--dark .note, .slide--blueprint .note { color: var(--steel-400); }
.note-inline { display: block; font: 400 .72rem/1.4 var(--f-mono); color: var(--steel-400); margin-top: .4rem; }

.tag {
  display: inline-block; font: 500 .85rem/1 var(--f-mono);
  border: 1.5px solid var(--ink); padding: .45rem .6rem; margin: .15rem .3rem .15rem 0;
}

/* ───────── topbar / progress / dots ───────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.progress__bar { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.topbar {
  position: fixed; inset: 3px 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem var(--pad);
  color: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
}
.topbar a { pointer-events: auto; }
.topbar__brand {
  display: flex; align-items: center; gap: .55rem; text-decoration: none;
  font: 800 1.05rem/1 var(--f-display); letter-spacing: .06em;
  font-variation-settings: "wdth" 110;
}
.topbar__mark { width: 14px; height: 14px; border: 2px solid currentColor; position: relative; }
.topbar__mark::after { content: ""; position: absolute; inset: 3px; background: currentColor; }
.topbar__sub { font: 400 .78rem/1 var(--f-mono); letter-spacing: .04em; opacity: .85; }
.topbar__count { margin: 0; font: 500 .85rem/1 var(--f-mono); letter-spacing: .04em; }
.topbar__sep { opacity: .5; margin: 0 .3em; }

.dots { display: none; }
@media (min-width: 900px) {
  .dots {
    display: block; position: fixed; right: clamp(.75rem, 1.6vw, 1.75rem); top: 50%;
    transform: translateY(-50%); z-index: 55; mix-blend-mode: difference;
  }
  .dots ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
  .dots a {
    display: flex; align-items: center; justify-content: flex-end;
    width: 28px; height: 22px; position: relative; color: var(--paper);
  }
  .dots a::before {
    content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor;
    transition: width .3s var(--ease), background-color .3s;
  }
  .dots a.is-active::before { width: 22px; background: currentColor; }
  .dots a::after {
    content: attr(data-label); position: absolute; right: 36px; white-space: nowrap;
    font: 500 .72rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
    opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s var(--ease);
    pointer-events: none;
  }
  .dots a:hover::after, .dots a:focus-visible::after { opacity: 1; transform: none; }
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.25rem; min-height: 48px;
  font: 600 .98rem/1.2 var(--f-body); text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn--accent { background: var(--accent); color: var(--graphite); }
.btn--accent::after { content: "→"; font-family: var(--f-mono); transition: transform .2s var(--ease); }
.btn--accent:hover::after { transform: translateX(4px); }
.btn--accent:hover { background: #FF7F33; }
.btn--ghost { border-color: rgba(238, 240, 240, .45); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(238, 240, 240, .06); }
.btn:active { transform: translateY(1px); }

/* ───────── media placeholders ───────── */
.media {
  position: relative; overflow: hidden;
  background-color: var(--steel-800);
  background-image:
    var(--img, none),
    linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(201, 206, 210, .07) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(201, 206, 210, .07) 39px 40px);
  background-size: cover, auto, auto, auto;
  background-position: center;
}
.media__ph {
  position: absolute; left: 1rem; bottom: 1rem;
  font: 400 .72rem/1 var(--f-mono); letter-spacing: .06em; color: var(--steel-400);
  border: 1px dashed rgba(154, 163, 170, .5); padding: .45rem .55rem;
}
.media.has-img .media__ph { display: none; }
.hero__media { --img: url("img/hero.png"); }
.qc__media { --img: url("img/detal.png"); }

/* ───────── 01 hero ───────── */
.hero { padding-top: 5.5rem; justify-content: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(21, 24, 27, .35) 0%, rgba(21, 24, 27, .7) 45%, var(--graphite) 92%);
}
.hero__inner { position: relative; }
.hero__title {
  font-size: clamp(2.35rem, 1rem + 6.4vw, 7rem);
  max-width: 13ch;
  margin-bottom: 1.5rem;
}
.hero__title-2 {
  display: block; color: var(--steel-200);
  font-size: .5em; font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
  margin-top: .45em; max-width: 24ch;
  font-variation-settings: "wdth" 96;
}
.hero .lead { color: var(--steel-200); }
.hero__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0; margin: 2rem 0; border-top: 1px solid var(--line-dark);
  max-width: 900px;
}
.hero__facts div { padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line-dark); }
.hero__facts dt { font: 400 .72rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--steel-400); }
.hero__facts dd { margin: .3rem 0 0; font: 600 clamp(1.05rem, .9rem + .7vw, 1.5rem)/1.15 var(--f-mono); letter-spacing: -.02em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: 1.5rem; display: none;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-dark); color: var(--paper); text-decoration: none; font-family: var(--f-mono);
}
.hero__scroll:hover { border-color: var(--accent); color: var(--accent); }

@media (min-width: 900px) {
  .hero { justify-content: center; }
  .hero__media { left: 34%; }
  .hero::after {
    background:
      linear-gradient(90deg, var(--graphite) 30%, rgba(21, 24, 27, .82) 48%, rgba(21, 24, 27, .15) 75%, rgba(21, 24, 27, .05) 100%),
      linear-gradient(0deg, rgba(21, 24, 27, .6), transparent 30%);
  }
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__facts div { padding-right: 1.25rem; }
  .hero__scroll { display: inline-flex; }
}

/* ───────── 02 ───────── */
.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .grid-2 { grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
}
.quote {
  margin: 2rem 0 0; padding: 1.25rem 0 0 1.25rem;
  border-left: 4px solid var(--accent-ink);
  font: 500 clamp(1.05rem, 1rem + .4vw, 1.3rem)/1.45 var(--f-display);
  font-variation-settings: "wdth" 92; max-width: 40ch;
}
.quote p { margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts > li { padding: 1.1rem 0; border-top: 1px solid var(--line-light); display: grid; gap: .35rem; }
.facts > li:last-child { border-bottom: 1px solid var(--line-light); }
.facts p { margin: 0; color: var(--ink-2); }
@media (min-width: 600px) {
  .facts > li { grid-template-columns: 12rem 1fr; gap: 1.5rem; }
}
.awards { list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.awards li { padding: .1rem 0 .1rem 1rem; position: relative; }
.awards li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 2px; background: var(--accent-ink); }
.awards .mono { font-size: .85em; color: var(--ink); }

/* ───────── 03 park ───────── */
.park { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .park { grid-template-columns: 1fr 1.25fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; } }
.park__big { display: flex; align-items: flex-end; gap: 1rem; margin: 1.5rem 0; }
.park__big .num {
  font: 800 clamp(6rem, 4rem + 10vw, 12rem)/.8 var(--f-display);
  font-variation-settings: "wdth" 75; color: var(--accent); letter-spacing: -.04em;
}
.park__big-l { font: 500 .9rem/1.35 var(--f-mono); color: var(--steel-200); padding-bottom: .4rem; }
.park__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.park__list li { border-bottom: 1px solid var(--line-dark); }
.park__list a {
  display: grid; grid-template-columns: 3.25rem 1fr auto; align-items: center; gap: .75rem;
  padding: 1rem .25rem; text-decoration: none; position: relative;
  transition: background-color .25s, padding .25s var(--ease);
}
.park__list a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transition: transform .25s var(--ease);
}
.park__list a:hover, .park__list a:focus-visible { background: var(--steel-900); padding-left: 1rem; }
.park__list a:hover::before, .park__list a:focus-visible::before { transform: scaleY(1); }
.park__n { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 500; line-height: 1; color: var(--paper); }
.park__t { font: 600 clamp(1rem, .95rem + .3vw, 1.2rem)/1.25 var(--f-display); }
.park__t small { display: block; font: 400 .8rem/1.4 var(--f-mono); color: var(--steel-400); margin-top: .3rem; letter-spacing: -.01em; }
.park__go { font-family: var(--f-mono); color: var(--steel-400); transition: transform .25s var(--ease), color .25s; }
.park__list a:hover .park__go { transform: translateX(4px); color: var(--accent); }
.park__extra .park__n { color: var(--accent); }

/* ───────── tables ───────── */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 1080px) { .split { grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 5vw, 5rem); align-items: start; } }

.table-wrap { max-width: 100%; }
.table-wrap:focus-visible { outline-offset: 6px; }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec caption {
  text-align: left; font: 600 1rem/1.3 var(--f-display); padding-bottom: .75rem;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.spec th, .spec td { text-align: left; padding: .7rem .75rem .7rem 0; vertical-align: baseline; }
.spec thead th {
  font: 500 .7rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-2); border-bottom: 2px solid var(--ink);
}
.spec tbody th { font-weight: 600; }
.spec tbody th small { display: block; font-weight: 400; color: var(--ink-2); }
.spec tbody tr { border-bottom: 1px solid var(--line-light); transition: background-color .2s; }
.spec tbody tr:hover { background: var(--paper-2); }
.spec td.mono { white-space: nowrap; font-size: .92rem; }
.spec sup { color: var(--accent-ink); }

.spec--dark thead th, .spec--blue thead th { color: var(--steel-400); border-bottom-color: var(--steel-200); }
.spec--dark tbody tr, .spec--blue tbody tr { border-bottom-color: var(--line-dark); }
.spec--dark tbody tr:hover { background: var(--steel-900); }
.spec--blue tbody tr:hover { background: rgba(255, 255, 255, .04); }
.spec--dark tbody th small { color: var(--steel-400); }
.spec--dark sup, .spec--blue sup { color: var(--accent); }

.badge { font: 600 .72rem/1 var(--f-mono); background: var(--accent); color: var(--graphite); padding: .35rem .45rem; letter-spacing: .04em; text-transform: uppercase; }
.badge--line { background: transparent; color: var(--paper); border: 1.5px solid var(--steel-400); padding: .25rem .4rem; }

.col-bar { width: 22%; min-width: 120px; }
.xbar { display: block; height: 6px; background: var(--steel-700); position: relative; border-radius: 0 3px 3px 0; }
.xbar::after {
  content: ""; position: absolute; inset: 0 auto 0 0; border-radius: 0 3px 3px 0;
  width: calc(var(--x) / 1800 * 100%); background: var(--accent);
  transform-origin: 0 50%; transition: transform .9s var(--ease) .2s;
}

/* mobile cards for tables */
@media (max-width: 759px) {
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec caption { display: flex; }
  .spec tbody tr { border: 1px solid var(--line-light); padding: .75rem .9rem; margin-bottom: .6rem; background: var(--white); }
  .spec--dark tbody tr, .spec--blue tbody tr { border-color: var(--line-dark); background: rgba(255, 255, 255, .03); }
  .spec tbody th { padding: 0 0 .4rem; font-size: 1.02rem; }
  .spec td { padding: .25rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .spec td::before {
    content: attr(data-label); font: 500 .7rem/1.6 var(--f-mono); text-transform: uppercase;
    letter-spacing: .06em; color: var(--ink-2); text-align: left;
  }
  .spec--dark td::before, .spec--blue td::before { color: var(--steel-400); }
  .spec td.col-bar { display: none; }
}

/* ───────── 04 lathe chart ───────── */
.callout { margin-top: 2rem; padding: 1.25rem 1.25rem 1rem; background: var(--white); border-left: 4px solid var(--accent-ink); }
.callout h3 { margin-bottom: .5rem; }
.callout p { color: var(--ink-2); margin-bottom: .4rem; }

.lathe { margin: 2.25rem 0 0; }
.lathe figcaption { font: 500 .78rem/1.4 var(--f-mono); color: var(--ink-2); margin-bottom: 1rem; }
.lathe__chart { position: relative; --labw: 7.5rem; --valw: 6.5rem; padding-bottom: 1.6rem; }
.lathe__row { display: grid; grid-template-columns: var(--labw) 1fr; align-items: center; gap: .6rem; min-height: 30px; margin-bottom: .45rem; }
.lathe__lab { font: 500 .8rem/1.2 var(--f-mono); color: var(--ink-2); }
.lathe__track { position: relative; height: var(--d); display: flex; align-items: center; }
.lathe__bar {
  display: block; height: 100%; width: var(--l); background: var(--ink); border-radius: 0 4px 4px 0;
  transform-origin: 0 50%; transition: transform 1s var(--ease), background-color .2s;
  position: relative;
}
.lathe__bar::after { /* oś toczenia */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(238, 240, 240, .5);
}
.lathe__bar:hover, .lathe__bar:focus-visible { background: var(--accent-ink); }
.lathe__row--conv .lathe__bar { background: transparent; border: 1.5px solid var(--ink); background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(21, 24, 27, .16) 6px 7px); }
.lathe__row--conv .lathe__bar::after { border-top-color: rgba(21, 24, 27, .4); }
.lathe__row--conv .lathe__bar:hover { background-color: rgba(181, 66, 0, .12); }
.lathe__val { grid-column: 2; font-size: .78rem; color: var(--ink); margin-top: -.15rem; }
.lathe__row { grid-template-rows: auto auto; }
.lathe__lab { grid-row: 1 / span 2; }
.lathe__marker {
  position: absolute; top: -.5rem; bottom: 1.2rem;
  left: calc(var(--labw) + .6rem + (100% - var(--labw) - .6rem) * .8);
  border-left: 2px dashed var(--accent-ink);
}
.lathe__marker span {
  position: absolute; top: -.9rem; right: .4rem; white-space: nowrap;
  font: 500 .7rem/1 var(--f-mono); color: var(--accent-ink);
}
.lathe__axis {
  position: absolute; bottom: 0; left: calc(var(--labw) + .6rem); right: 0;
  display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-2);
  border-top: 1px solid var(--ink); padding-top: .3rem;
}
.lathe__axis span:nth-child(even) { visibility: hidden; }
@media (min-width: 600px) { .lathe__axis span:nth-child(even) { visibility: visible; } }
.legend-inline { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .85rem; color: var(--ink-2); }
.legend-inline li { display: flex; align-items: center; gap: .45rem; }
.sw { display: inline-block; width: 14px; height: 10px; flex: none; }
.sw--cnc { background: var(--ink); }
.slide--dark .sw--cnc { background: var(--accent); }
.sw--conv { border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(21, 24, 27, .3) 3px 4px); }
.sw--mark { width: 2px; height: 14px; background: var(--accent-ink); }
.sw--steel { background: var(--steel-400); }

/* ───────── 05 mill ───────── */
.mill-head { display: grid; gap: .5rem; margin-bottom: 2rem; }
@media (min-width: 960px) { .mill-head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; } .mill-head h2 { margin: 0; } .mill-head .lead { margin: 0; } }
.mill { display: grid; gap: 2rem; }
@media (min-width: 1180px) { .mill { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.benefits { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.benefits li { padding: 1.25rem 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1rem; }
.benefits__k { grid-row: 1 / span 2; color: var(--accent); font-size: 1.1rem; font-weight: 500; }
.benefits h3 { margin-bottom: .35rem; }
.benefits p { margin: 0; color: var(--steel-200); font-size: .95rem; }
@media (min-width: 900px) {
  .benefits { grid-template-columns: 1.3fr 1fr 1fr; border-top: 0; }
  .benefits li { border-bottom: 0; border-top: 2px solid var(--steel-700); padding-right: 1.5rem; grid-template-columns: 1fr; }
  .benefits li:first-child { border-top-color: var(--accent); }
  .benefits__k { grid-row: auto; margin-bottom: .6rem; font-size: 1.6rem; }
}

/* ───────── 06 big ───────── */
.big { display: grid; gap: 2.5rem; }
@media (min-width: 1080px) { .big { grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 5vw, 5rem); align-items: center; } }
.big__range { margin-top: 1.5rem; font-size: .95rem; color: var(--steel-200); border-left: 3px solid var(--accent); padding-left: 1rem; }
.big__range .mono { display: block; font-size: 1.5rem; color: var(--paper); font-weight: 500; }
.tables { margin: 0; }
.tables figcaption { font: 500 .78rem/1.45 var(--f-mono); color: var(--steel-400); margin-bottom: 1rem; max-width: 52ch; }
.tables__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem .75rem; }
.tables__grid svg { display: block; width: 100%; height: auto; overflow: visible; }
.tables__grid .ref { fill: none; stroke: var(--steel-400); stroke-width: 14; stroke-dasharray: 50 40; opacity: .55; vector-effect: none; }
.tables__grid .t { fill: rgba(255, 106, 19, .16); stroke: var(--accent); stroke-width: 22; transition: fill .25s; transform-origin: 50px 1850px; }
.tables__grid li:hover .t { fill: rgba(255, 106, 19, .4); }
.tables__grid .is-tos .t { fill: rgba(255, 106, 19, .34); }
.tables__grid p { margin: .45rem 0 0; display: flex; flex-direction: column; line-height: 1.25; }
.tables__grid b { font: 600 .82rem/1.25 var(--f-display); }
.tables__grid .mono { font-size: .72rem; color: var(--steel-400); }

/* ───────── 07 chain ───────── */
.chain { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0; counter-reset: c; }
.chain li { position: relative; padding: 1.25rem 0 1.25rem 3.25rem; border-top: 1px solid var(--line-light); }
.chain li:last-child { border-bottom: 1px solid var(--line-light); }
.chain__no {
  position: absolute; left: 0; top: 1.2rem; width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center; border: 1.5px solid var(--ink); font-size: .85rem; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.chain li:hover .chain__no { background: var(--ink); color: var(--paper); }
.chain h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.chain p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.mini { margin: 0; display: grid; gap: .25rem; }
.mini div { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.mini dt { color: var(--ink-2); font-size: .9rem; min-width: 3.5rem; }
.mini dd { margin: 0; font-size: .92rem; font-weight: 500; }
@media (min-width: 1000px) {
  .chain { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chain li { padding: 4rem 1.5rem 0 0; border: 0; border-top: 2px solid var(--ink); }
  .chain li:last-child { border-bottom: 0; }
  .chain li::after { /* strzałka przepływu */
    content: ""; position: absolute; top: -7px; right: 0; width: 12px; height: 12px;
    border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg);
    background: var(--paper);
  }
  .chain li:last-child::after { display: none; }
  .chain li:nth-child(3) { border-top-color: var(--accent-ink); }
  .chain__no { top: 1.2rem; }
}
.aside { margin-top: 2.5rem; max-width: 60ch; font: 500 1.1rem/1.5 var(--f-display); font-variation-settings: "wdth" 94; }
.aside::before { content: "→ "; color: var(--accent-ink); font-family: var(--f-mono); }

/* ───────── 08 QC ───────── */
.qc { display: grid; gap: 2rem; }
.qc__media { aspect-ratio: 16 / 9; width: 100%; }
.qc__text h2 { max-width: 18ch; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checks li { padding: .65rem 0 .65rem 2rem; border-top: 1px solid var(--line-dark); position: relative; color: var(--steel-200); }
.checks li::before {
  content: ""; position: absolute; left: .2rem; top: 1.05rem; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.cmm { margin: 0; }
.cmm figcaption { font: 500 .78rem/1.4 var(--f-mono); color: var(--steel-400); margin-bottom: .75rem; }
.cmm svg { width: 100%; height: auto; display: block; max-width: 640px; }
.box polygon { stroke-width: 6; stroke-linejoin: round; }
.box--a polygon { stroke: var(--accent); }
.box--a .f-front { fill: rgba(255, 106, 19, .18); }
.box--a .f-top { fill: rgba(255, 106, 19, .30); }
.box--a .f-side { fill: rgba(255, 106, 19, .10); }
.box--b polygon { stroke: var(--steel-400); }
.box--b .f-front { fill: rgba(154, 163, 170, .18); }
.box--b .f-top { fill: rgba(154, 163, 170, .30); }
.box--b .f-side { fill: rgba(154, 163, 170, .10); }
.cmm .base { stroke: var(--steel-700); stroke-width: 4; }
.cmm .lbl { font: 500 52px var(--f-mono); fill: var(--paper); }
.cmm__legend { margin: 1rem 0 0; display: grid; gap: .5rem; }
.cmm__legend div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: .5rem; }
.cmm__legend dt { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.cmm__legend dt small { font-weight: 400; color: var(--steel-400); }
.cmm__legend dd { margin: 0; color: var(--steel-200); font-size: .88rem; }
@media (min-width: 1000px) {
  .qc { grid-template-columns: 1.1fr 1fr; grid-template-areas: "media text" "cmm text"; column-gap: clamp(3rem, 5vw, 5rem); row-gap: 2rem; align-items: start; }
  .qc__media { grid-area: media; }
  .qc__text { grid-area: text; align-self: center; }
  .cmm { grid-area: cmm; }
}

/* ───────── 09 scope ───────── */
.scope { display: grid; gap: 2rem 3rem; }
.scope__block { border-top: 2px solid var(--ink); padding-top: 1rem; }
.scope__block h3 { margin-bottom: .9rem; font-size: 1.1rem; }
.chips { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { border: 1.5px solid var(--ink); padding: .35rem .6rem; font-size: .9rem; transition: background-color .2s, color .2s; }
.chips li:hover { background: var(--ink); color: var(--paper); }
.list-cols { list-style: none; padding: 0; margin: 0; }
.list-cols li { padding: .45rem 0 .45rem 1.1rem; border-bottom: 1px solid var(--line-light); position: relative; font-size: .96rem; }
.list-cols li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 2px; background: var(--accent-ink); }
.industries { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.industries li { background: var(--ink); color: var(--paper); padding: .4rem .7rem; font: 500 .88rem/1.3 var(--f-mono); letter-spacing: -.01em; }
@media (min-width: 760px) {
  .scope { grid-template-columns: 1fr 1fr; }
  .scope__head { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .scope { grid-template-columns: 1.1fr 1fr 1fr; }
  .scope__head { grid-column: 1; grid-row: 1 / span 2; }
  .scope__block--ind { grid-column: 2 / -1; }
}

/* ───────── 10 contact ───────── */
.contact { padding-bottom: 0; justify-content: space-between; }
.contact > .wrap:first-child { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.steps li { background: var(--graphite); padding: 1rem; font: 600 1rem/1.3 var(--f-display); display: flex; flex-direction: column; gap: .5rem; position: relative; transition: background-color .2s; }
.steps li:hover { background: var(--steel-900); }
.steps .mono { font-size: .75rem; font-weight: 500; color: var(--accent); }
.steps li:nth-child(5) { box-shadow: inset 0 3px 0 var(--accent); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } .steps li { min-height: 7.5rem; justify-content: space-between; } }
.contact__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: end; } }
.contact__card { font-style: normal; display: flex; flex-direction: column; gap: .35rem; }
.contact__card p { margin: .6rem 0 0; color: var(--steel-200); }
.contact__card .muted { margin-top: .1rem; font-size: .9rem; color: var(--steel-400); }
.contact__mail {
  font: 750 clamp(1.6rem, 1rem + 3.4vw, 3.6rem)/1.05 var(--f-display); font-variation-settings: "wdth" 85;
  text-decoration: none; letter-spacing: -.02em; color: var(--accent);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease); width: fit-content; max-width: 100%;
}
.contact__mail:hover { background-size: 100% 2px; }
.contact__tel { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); text-decoration: none; font-weight: 500; width: fit-content; }
.contact__tel:hover { color: var(--accent); }
.link { margin-top: .8rem; width: fit-content; font: 500 .95rem/1.3 var(--f-mono); color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.refs h3 { font: 500 .75rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--steel-400); margin-bottom: .9rem; }
.refs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.refs li { font: 700 clamp(1rem, .9rem + .4vw, 1.25rem)/1.3 var(--f-display); font-variation-settings: "wdth" 110; letter-spacing: .02em; color: var(--steel-200); }
.foot { margin-top: 3rem; border-top: 1px solid var(--line-dark); padding: 1.25rem 0 1.5rem; }
.foot p { margin: 0; font: 400 .74rem/1.55 var(--f-mono); color: var(--steel-400); max-width: 110ch; }

/* ───────── reveal (tylko z JS i bez reduced-motion) ───────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-group > .reveal:nth-child(2) { transition-delay: .07s; }
  .js .reveal-group > .reveal:nth-child(3) { transition-delay: .14s; }
  .js .reveal-group > .reveal:nth-child(4) { transition-delay: .21s; }
  .js .reveal-group > .reveal:nth-child(5) { transition-delay: .28s; }
  .js .reveal-group > .reveal:nth-child(6) { transition-delay: .35s; }
  .js .lathe:not(.is-in) .lathe__bar { transform: scaleX(0); }
  .js .table-wrap:not(.is-in) .xbar::after { transform: scaleX(0); }
  .js .tables:not(.is-in) .t { transform: scale(.2); }
  .tables__grid .t { transition: transform .9s var(--ease), fill .25s; }
  .tables__grid li:nth-child(n+4) .t { transition-delay: .1s; }
  .tables__grid li:nth-child(n+7) .t { transition-delay: .2s; }
}

@media (forced-colors: active) {
  .kicker__no, .badge, .btn--accent { border: 1px solid CanvasText; }
  .lathe__bar, .xbar::after { background: CanvasText; }
}

@media print {
  .topbar, .dots, .progress, .hero__scroll, .skip { display: none; }
  .slide { min-height: auto; page-break-after: always; }
}

/* ───────── poprawki po przeglądzie renderu ───────── */
.spec caption { display: table-caption; }
.spec caption .badge { margin-right: .5rem; vertical-align: .1em; }
.spec td.mono { font-size: .88rem; }
.spec thead th { white-space: nowrap; }
@media (max-width: 759px) { .spec caption { display: block; } }
.lathe__chart { padding-top: 1.4rem; }
.lathe__marker { top: 0; }
.lathe__marker span { top: 0; }
.hero .media__ph { left: auto; right: var(--pad); bottom: auto; top: 4.5rem; z-index: 2; }
.mini div { display: block; }
.mini dt { font-size: .85rem; }
@media (min-width: 1180px) { .mill .col-bar { width: 14%; min-width: 80px; } }
