/* ============================================================
   YKO GmbH — shared stylesheet
   Direction A "tube sheet", rebuilt 2026-10-02 without photos.
   The imagery is technical line diagrams (inline SVG, currentColor):
   they show what a photo cannot — the inside of a closed system.

   Contents: 1 Font & tokens · 2 Base · 3 Header & navigation
             4 Hero & page head · 5 Sections · 6 Components
             7 Diagrams · 8 Cross-section story · 9 FAQ · 10 Footer
             11 Motion · 12 Print
   ============================================================ */

/* ---- 1 Font & tokens ----------------------------------------- */
/* Archivo, OFL 1.1, served locally — see fonts/SOURCE.md */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* Steel and soot against limescale; copper is the only accent,
     because heat exchanger tubes are traditionally made of it. */
  --deep:        #121517;
  --deep-raised: #1a1e21;
  --soot:        #0b0d0f;
  --steel:       #2b2f33;
  --steel-light: #4a5157;
  --copper:      #9c5330;   /* 5.2:1 on paper, 5.7:1 under white text */
  --copper-hover:#874626;
  --copper-light:#d0804f;   /* accent on dark grounds, 6.0:1 */
  --accent-line: var(--copper);
  --lime:        #e8e2d6;
  --paper:       #f6f4ef;
  --paper-deep:  #ece9e2;
  --white:       #ffffff;
  --text:        #1a1c1e;
  --grey:        #5c5953;
  --grey-on-dark:#a9b0b5;
  --line:        #d9d4cb;
  --line-dark:   #30363b;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --max-width: 76rem;
  --section-space: clamp(4rem, 8vw, 7.5rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

/* ---- 2 Base -------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 clamp(1rem, .97rem + .15vw, 1.08rem)/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 50rem); margin-inline: auto; }

svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--copper); color: #fff; padding: .75rem 1.25rem; font-weight: 600;
}
.skip:focus { left: 0; }

h1, h2, h3 { text-wrap: balance; }
h1 {
  font-size: clamp(2.2rem, 1.3rem + 4vw, 4.5rem); font-weight: 650;
  line-height: 1.03; letter-spacing: -.035em; margin: 0 0 1.5rem; hyphens: auto;
}
h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.8rem); font-weight: 630;
  letter-spacing: -.03em; line-height: 1.1; margin: 0 0 1.1rem; hyphens: auto;
}
h3 { font-size: 1.14rem; font-weight: 620; letter-spacing: -.012em; line-height: 1.3; margin: 0 0 .55rem; }
p { margin: 0 0 1rem; }

.eyebrow {
  display: flex; align-items: center; gap: .8rem;
  font: 500 .74rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper); margin: 0 0 1.6rem;
}
.eyebrow::before { content: ""; flex: 0 0 1.75rem; height: 1px; background: currentColor; }
.tone-dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--copper-light); }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.28rem); line-height: 1.55; color: var(--grey); margin: 0 0 2.2rem; max-width: 50ch; }

/* ---- 3 Header & navigation ----------------------------------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 21, 23, .94); color: var(--lime);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-top: env(safe-area-inset-top, 0px);
}
.top .wrap { display: flex; align-items: center; gap: 1.75rem; height: var(--header-h); }
.brand { display: flex; align-items: baseline; gap: .75rem; color: var(--lime); text-decoration: none; margin-right: auto; }
.brand b { font-weight: 700; font-size: 1.15rem; letter-spacing: .26em; }
.brand span { font: 500 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #7d858b; }
@media (max-width: 26rem) { .brand span { display: none; } }
.top nav { display: flex; gap: 1.7rem; font-size: .9rem; }
.top nav a { color: #a2a9ae; text-decoration: none; white-space: nowrap; position: relative; padding: .3rem 0; }
.top nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 1px;
  background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.top nav a:hover, .top nav a:focus-visible, .top nav a[aria-current] { color: var(--lime); }
.top nav a:hover::after, .top nav a[aria-current]::after { transform: scaleX(1); }
.tel {
  font: 600 .84rem/1 var(--mono); color: var(--lime); text-decoration: none;
  border: 1px solid var(--steel-light); padding: .7rem .95rem; white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.tel:hover, .tel:focus-visible { border-color: var(--copper-light); background: rgba(208, 128, 79, .12); }

.header-cta {
  font: 600 .88rem/1 var(--font); color: var(--white); text-decoration: none; white-space: nowrap;
  background: var(--copper); border: 1px solid var(--copper); padding: .7rem 1.05rem;
  transition: background .2s, border-color .2s;
}
.header-cta:hover, .header-cta:focus-visible { background: var(--copper-hover); border-color: var(--copper-hover); }
@media (max-width: 62rem) { .top .wrap { gap: .75rem; } .header-cta { min-height: 2.75rem; display: inline-flex; align-items: center; } }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--steel-light); color: var(--lime);
  min-height: 2.75rem; padding: 0 1rem; font: 600 .85rem/1 var(--font); letter-spacing: .04em; cursor: pointer;
}
@media (max-width: 62rem) {
  .menu-toggle { display: block; }
  .top .tel { display: none; }
  .top nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.75rem;
    background: var(--deep); border-bottom: 1px solid var(--line-dark);
    transform: translateY(-.75rem); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .top nav a { font-size: 1.15rem; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); color: var(--lime); }
  .top nav a::after { display: none; }
  .top nav .nav-tel { margin-top: 1.25rem; border: 1px solid var(--copper); text-align: center; font-family: var(--mono); font-size: 1rem; }
  .menu-open .top nav { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
}
@media (min-width: 62.01rem) { .top nav .nav-tel { display: none; } }

/* ---- 4 Hero & page head -------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--soot); color: var(--lime);
  min-height: min(54rem, calc(100svh - var(--header-h)));
  display: grid; align-items: end;
}
.hero canvas, .hero .hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero .hero-backdrop { background: radial-gradient(110% 90% at 70% 30%, #263137 0%, #141b1f 50%, #0b0d0f 100%); }
/* Text always sits on a darkened zone, otherwise it competes with the
   bright metal once the visitor wipes that area clean. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 10, 12, .95) 0%, rgba(8, 10, 12, .8) 38%, rgba(8, 10, 12, .22) 68%, rgba(8, 10, 12, .05) 100%),
    linear-gradient(0deg, rgba(8, 10, 12, .92) 0%, rgba(8, 10, 12, 0) 38%);
}
.hero .wrap { padding: clamp(5rem, 12vh, 9rem) 0 clamp(2rem, 5vh, 3.5rem); }
.hero-text { max-width: 46rem; }
.hero h1 em { font-style: normal; color: var(--copper-light); }
.hero .lead { color: #c3c9cd; max-width: 42ch; }
.hero-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem;
  margin-top: clamp(3rem, 8vh, 5.5rem); padding-top: 1.4rem; border-top: 1px solid rgba(232, 226, 214, .14);
  font: 500 .72rem/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8f979c;
}
.hero-footer ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 0; padding: 0; list-style: none; }
.hero-footer li::before { content: "— "; color: var(--copper-light); }
.wipe-hint { color: #8a9297; }
html:not(.touch) .wipe-hint [data-touch], html.touch .wipe-hint [data-pointer] { display: none; }
@media (max-width: 60rem) {
  .hero::after { background: linear-gradient(0deg, rgba(8, 10, 12, .97) 0%, rgba(8, 10, 12, .85) 55%, rgba(8, 10, 12, .5) 100%); }
}

/* Subpage head: calmer, with a line diagram on the right */
.page-head { background: var(--deep); color: var(--lime); overflow: hidden; position: relative; isolation: isolate; }
/* Faint drawing grid in the background — a plan sheet instead of a photo */
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 2rem 2rem;
  -webkit-mask-image: radial-gradient(80% 90% at 80% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 90% at 80% 50%, #000 0%, transparent 75%);
}
.page-head .wrap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.page-head .lead { color: #b9c0c4; margin-bottom: 0; }
.page-head .actions { margin-top: 2.2rem; }
.page-head .diagram { color: #8b9499; max-width: 24rem; justify-self: end; width: 100%; }
.page-head--text .wrap { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 56rem) {
  .page-head .wrap { grid-template-columns: 1fr; }
  .page-head .diagram { justify-self: start; max-width: 13rem; order: -1; }
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.75rem; padding: 0; list-style: none;
  font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7d858b; }
.breadcrumb a { color: #a2a9ae; text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--steel-light); }

/* ---- 5 Sections ---------------------------------------------- */
section { padding: var(--section-space) 0; position: relative; }
.tone-muted { background: var(--paper-deep); }
.tone-dark { background: var(--deep); color: var(--lime); }
.tone-dark h2, .tone-dark h3 { color: var(--lime); }
.tone-dark p, .tone-dark li { color: var(--grey-on-dark); }
.tone-dark + .tone-dark { border-top: 1px solid var(--line-dark); }

.section-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--grey); margin: 0; max-width: 58ch; font-size: 1.05em; }
.tone-dark .section-head p { color: var(--grey-on-dark); }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.section-head--split h2 { margin: 0; }
@media (max-width: 52rem) { .section-head--split { grid-template-columns: 1fr; } }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 3.25rem; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }
.prose a { color: var(--copper); text-underline-offset: .2em; overflow-wrap: anywhere; }
.prose dl, .facts { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.prose dt, .prose dd, .facts dt, .facts dd { margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.prose dt, .facts dt { color: var(--grey); font-size: .93rem; padding-right: 1rem; }
@media (max-width: 40rem) {
  /* Stacked: label sits tight above its value, one rule per pair */
  .prose dl, .facts { grid-template-columns: 1fr; }
  .prose dt, .facts dt { border-bottom: 0; padding: .75rem 0 0; font-size: .82rem; line-height: 1.3; }
  .prose dd, .facts dd { padding: .15rem 0 .75rem; overflow-wrap: anywhere; }
}

/* Buttons — min-height instead of fixed height, so labels never overflow */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem;
  text-decoration: none; font-weight: 600; font-size: .97rem; line-height: 1.2;
  padding: .8rem 1.5rem; border: 1px solid var(--copper);
  background: var(--copper); color: var(--white);
  transition: background .2s, border-color .2s, color .2s;
}
.btn::after { content: "→"; transition: transform .3s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--copper-hover); border-color: var(--copper-hover); }
.btn:hover::after { transform: translateX(.25rem); }
.btn--ghost { background: transparent; color: var(--lime); border-color: var(--steel-light); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(255, 255, 255, .04); border-color: var(--lime); }
.btn--light { background: transparent; color: var(--text); border-color: #bdb6aa; }
.btn--light:hover, .btn--light:focus-visible { background: transparent; border-color: var(--text); }

/* ---- 6 Components -------------------------------------------- */

/* Two entry points — the main fork of the home page */
.audiences { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.audience {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); padding: clamp(1.75rem, 3vw, 2.6rem);
  transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
  overflow: hidden;
}
.audience::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--copper);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.audience:hover, .audience:focus-visible { border-color: #b9b2a6; transform: translateY(-4px); box-shadow: 0 28px 60px -32px rgba(20, 22, 24, .4); }
.audience:hover::before, .audience:focus-visible::before { transform: scaleX(1); }
.audience-head { display: flex; justify-content: space-between; align-items: start; gap: 1.5rem; margin-bottom: 1.25rem; }
.audience .diagram { color: var(--steel-light); width: 6.5rem; flex: 0 0 auto; transition: color .3s; }
.audience:hover .diagram { color: var(--copper); }
.audience-label { font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: 0; }
.audience h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); margin: .9rem 0 0; letter-spacing: -.02em; }
.audience p { color: var(--grey); font-size: .98rem; margin: 0 0 1.5rem; }
.audience ul { margin: auto 0 1.75rem; padding: 0; list-style: none; font-size: .93rem; }
.audience li { padding: .6rem 0; border-top: 1px solid var(--line); color: var(--grey); display: flex; gap: .75rem; }
.audience li::before { content: "—"; color: var(--copper); }
.audience-more { font-weight: 600; font-size: .95rem; color: var(--copper); display: inline-flex; gap: .5rem; }
.audience-more::after { content: "→"; transition: transform .3s var(--ease); }
.audience:hover .audience-more::after { transform: translateX(.3rem); }

/* Card grid with hairline gaps instead of borders */
.card-grid {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.card { background: var(--paper); padding: clamp(1.5rem, 2.5vw, 2.1rem); }
.tone-muted .card { background: var(--paper-deep); }
.tone-dark .card-grid { background: var(--line-dark); border-color: var(--line-dark); }
.tone-dark .card { background: var(--deep); }
.card .num { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--copper); margin: 0 0 1.4rem; text-transform: uppercase; }
.tone-dark .card .num { color: var(--copper-light); }
.card p { margin: 0; font-size: .95rem; color: var(--grey); }
.tone-dark .card p { color: var(--grey-on-dark); }

/* Service rows on the hub pages: large, whole row clickable */
.service-rows { border-top: 1px solid var(--text); }
.service-row {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 1.2fr) 2rem; gap: 2rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; position: relative; isolation: isolate;
}
.service-row::before {
  content: ""; position: absolute; inset: 0 -1.25rem; background: var(--white); z-index: -1;
  opacity: 0; transition: opacity .3s;
}
.service-row:hover::before, .service-row:focus-visible::before { opacity: 1; }
.service-row .diagram { color: var(--steel-light); width: 100%; transition: color .3s; }
.service-row:hover .diagram { color: var(--copper); }
.service-row h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); margin: 0; letter-spacing: -.02em; }
.service-row h3 small { display: block; font: 500 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: .55rem; }
.service-row p { margin: 0; color: var(--grey); font-size: .97rem; }
.service-row .arrow { font-size: 1.4rem; color: var(--copper); transition: transform .35s var(--ease); }
.service-row:hover .arrow { transform: translateX(.4rem); }
@media (max-width: 52rem) {
  .service-row { grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem 1.25rem; }
  .service-row p { grid-column: 2; }
  .service-row .arrow { display: none; }
}

/* Numbered sequence — order is mandatory, hence numbers */
.steps { border-top: 1px solid currentColor; }
.step {
  display: grid; grid-template-columns: 4rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.tone-dark .step { border-color: var(--line-dark); }
.step-num { font: 500 .8rem/1.5 var(--mono); color: var(--copper); margin: 0; }
.tone-dark .step-num { color: var(--copper-light); }
.step h3 { font-size: 1.05rem; margin: 0; }
.step p { margin: 0; font-size: .96rem; color: var(--grey); }
.tone-dark .step p { color: var(--grey-on-dark); }
@media (max-width: 46rem) {
  .step { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .5rem 1rem; }
  .step p { grid-column: 2; }
}

/* Lists of equipment types */
.columns { display: grid; gap: 2.25rem 2.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.column h3 { font-size: .98rem; margin-bottom: .9rem; }
.column ul { margin: 0; padding: 0; list-style: none; font-size: .95rem; color: var(--grey); }
.column li { padding: .45rem 0; border-top: 1px solid var(--line); }
.tone-dark .column li { border-color: var(--line-dark); }
.column p { color: var(--grey); font-size: .95rem; }

/* Symptom list: what you notice on the left, the cause on the right */
.symptoms { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--text); }
.symptoms li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .5rem 3rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
}
.symptoms strong { font-weight: 620; font-size: 1.05rem; }
.symptoms span { color: var(--grey); font-size: .96rem; }
@media (max-width: 46rem) { .symptoms li { grid-template-columns: 1fr; } }

/* Two columns: text + diagram */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 56rem) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--copper); border-bottom-color: var(--text); }
.compare tbody th { font-weight: 600; width: 24%; }
.compare td { color: var(--grey); }
@media (max-width: 40rem) {
  /* Phone: each row becomes a block, the column name comes from data-label */
  .table-scroll { overflow-x: visible; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { padding: 1rem 0 .75rem; border-bottom: 1px solid var(--line); }
  .compare tbody tr:first-child { border-top: 1px solid var(--text); }
  .compare tbody th { width: auto; padding: 0 0 .4rem; border: 0; font-size: 1rem; }
  .compare td { padding: .35rem 0; border: 0; }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: .1rem; font: 500 .68rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
}

/* Standards strip: a quiet trust signal */
.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.standard { background: var(--deep); padding: 1.75rem 1.5rem; }
.standard b { display: block; font: 600 1.05rem/1.2 var(--mono); color: var(--lime); letter-spacing: .02em; margin-bottom: .7rem; }
.standard span { font-size: .92rem; color: var(--grey-on-dark); display: block; }

/* Side note, e.g. scope boundaries */
.note {
  border-left: 2px solid var(--copper); padding: .25rem 0 .25rem 1.4rem; margin: 2.5rem 0 0;
  color: var(--grey); font-size: .96rem; max-width: 66ch;
}
.note strong { color: var(--text); }
.tone-dark .note { color: var(--grey-on-dark); }
.tone-dark .note strong { color: var(--lime); }

/* Contact channels */
.contact-ways { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.contact-way { background: var(--deep); padding: clamp(1.75rem, 3vw, 2.5rem); text-decoration: none; color: var(--lime); display: block; transition: background .25s; }
a.contact-way:hover, a.contact-way:focus-visible { background: var(--deep-raised); }
.contact-way small { display: block; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); margin-bottom: 1.1rem; }
.contact-way strong { display: block; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); font-weight: 620; letter-spacing: -.02em; overflow-wrap: anywhere; color: var(--lime); }
.contact-way span { display: block; color: var(--grey-on-dark); font-size: .93rem; margin-top: .6rem; }

/* Numbered checklist */
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: item; border-bottom: 1px solid var(--line); }
.checklist li { counter-increment: item; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.checklist li::before { content: counter(item, decimal-leading-zero); font: 500 .8rem/1.9 var(--mono); color: var(--copper); }
.checklist strong { display: block; font-weight: 620; }
.checklist span { color: var(--grey); font-size: .95rem; }
.tone-dark .checklist, .tone-dark .checklist li { border-color: var(--line-dark); }
.tone-dark .checklist li::before { color: var(--copper-light); }
.tone-dark .checklist span { color: var(--grey-on-dark); }

/* Closing call to action */
.closing { overflow: hidden; }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3rem; align-items: center; }
.closing h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); max-width: 16ch; }
.closing p { max-width: 48ch; margin: 0 0 2.25rem; }
.closing .diagram { color: #475057; max-width: 22rem; justify-self: end; }
@media (max-width: 56rem) { .closing .wrap { grid-template-columns: 1fr; } .closing .diagram { display: none; } }

/* Large statement */
.statement { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.3rem); font-weight: 580; letter-spacing: -.032em; line-height: 1.12; max-width: 22ch; margin: 0; }
.statement em { font-style: normal; color: var(--copper); }
.tone-dark .statement { color: var(--lime); }
.tone-dark .statement em { color: var(--copper-light); }

/* Spacing helpers */
.space-top { margin-top: clamp(2.5rem, 5vw, 4rem); }
.flush-top { padding-top: 0; }

/* Missing information that must be filled in before go-live */
.placeholder { background: #fbe7d9; color: #8a3f17; padding: 0 .3em; font-weight: 600; }

/* ---- 7 Diagrams ---------------------------------------------- */
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram .ln { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.diagram .ln-thin { fill: none; stroke: currentColor; stroke-width: 1; opacity: .45; vector-effect: non-scaling-stroke; }
.diagram .ln-accent { fill: none; stroke: var(--accent-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.diagram .fill-deposit { fill: var(--lime); }
.diagram .fill-deposit-dark { fill: #c9bfa9; }
.diagram .fill-accent { fill: var(--accent-line); }
.diagram .fill-tint { fill: currentColor; opacity: .08; }
.diagram text { font: 500 10px/1 var(--mono); letter-spacing: .1em; fill: currentColor; text-transform: uppercase; }
.diagram .txt-accent { fill: var(--accent-line); }
.tone-dark, .page-head, .hero, .xsec-stage { --accent-line: var(--copper-light); }

/* Flow: a dashed line that runs while visible */
.diagram .flow { fill: none; stroke: var(--accent-line); stroke-width: 2; stroke-dasharray: 5 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.flow-host.in .flow { animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* Draw-on: strokes appear when visible (pathLength="1" in the SVG) */
.js .draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease); }
.js .draw.in [pathLength] { stroke-dashoffset: 0; }

/* Diagram panel: drawing plus caption bar, like a plan sheet */
.panel { border: 1px solid var(--line); background: var(--white); }
.tone-muted .panel { background: var(--paper); }
.tone-dark .panel { border-color: var(--line-dark); background: var(--soot); }
.panel-body { padding: clamp(1.25rem, 3vw, 2.5rem); color: var(--steel-light); }
.tone-dark .panel-body { color: #848d93; }
.panel figcaption {
  display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: .85rem 1.1rem;
  font: 500 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey);
}
.tone-dark .panel figcaption { border-color: var(--line-dark); color: #848d93; }
.panel figcaption b { color: var(--copper); font-weight: 500; }
.tone-dark .panel figcaption b { color: var(--copper-light); }
figure { margin: 0; }

/* Deposit thickness row (mechanism only — no percentages) */
.layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.layer { background: var(--white); padding: 1.75rem 1.25rem 1.4rem; }
.layer svg { width: 100%; max-width: 6.5rem; margin: 0 auto 1.4rem; color: var(--steel-light); }
.layer b { display: block; font: 600 .95rem/1.2 var(--mono); }
.layer span { display: block; color: var(--grey); font-size: .9rem; margin-top: .4rem; }

/* ---- 8 Cross-section story ----------------------------------- */
/* The pipe cross-section sticks on the left while the steps scroll past
   on the right. The script sets data-stage; without script the steps are
   stacked and the drawing shows the cleaned state. */
.xsec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.xsec-stage { position: sticky; top: calc(var(--header-h) + 2rem); height: min(36rem, calc(100svh - var(--header-h) - 4rem)); display: grid; place-items: center; }
.xsec-stage svg { width: 100%; max-width: 30rem; max-height: calc(100% - 2.5rem); color: #848d93; }
.xsec-status {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; margin: 0;
  font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #848d93;
}
.xsec-status b { color: var(--copper-light); font-weight: 500; }
.xsec-steps { padding: 8vh 0 18vh; }
.xsec-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s; }
.xsec-step.active { opacity: 1; }
.xsec-step .step-num { margin-bottom: 1rem; }
.xsec-step h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.2rem); letter-spacing: -.025em; margin-bottom: 1rem; }
.xsec-step p { max-width: 44ch; }
@media (max-width: 56rem) {
  .xsec { grid-template-columns: 1fr; gap: 0; }
  .xsec-stage { top: var(--header-h); height: 42svh; z-index: 1; background: var(--deep); padding: 1rem 0 2.25rem; }
  .xsec-stage svg { max-width: 15rem; }
  .xsec-steps { padding: 2vh 0 8vh; }
  .xsec-step { min-height: 58svh; }
}
html:not(.js) .xsec-step { opacity: 1; min-height: 0; padding: 1.5rem 0; }
html:not(.js) .xsec-stage { position: static; }
/* Drawing states, cross-faded */
#xsec .xsec-deposit, #xsec .xsec-fluid, #xsec .xsec-film, #xsec .xsec-arrows, #xsec .xsec-sample {
  transition: opacity .8s var(--ease), transform 1.2s var(--ease); transform-origin: 200px 200px; transform-box: view-box;
}
#xsec .xsec-fluid, #xsec .xsec-film, #xsec .xsec-arrows, #xsec .xsec-sample { opacity: 0; }
#xsec .xsec-fluid circle { fill: var(--copper-light); transition: fill .8s; }
#xsec[data-stage="1"] .xsec-sample { opacity: 1; }
#xsec[data-stage="2"] .xsec-fluid, #xsec[data-stage="2"] .xsec-arrows { opacity: 1; }
#xsec[data-stage="2"] .xsec-deposit { opacity: .35; transform: scale(1.06); }
#xsec[data-stage="3"] .xsec-deposit, #xsec[data-stage="4"] .xsec-deposit { opacity: 0; transform: scale(1.12); }
#xsec[data-stage="3"] .xsec-fluid { opacity: .45; }
#xsec[data-stage="3"] .xsec-fluid circle { fill: #6f9aa8; }
#xsec[data-stage="4"] .xsec-film { opacity: 1; }
#xsec .xsec-arrows { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
html:not(.js) #xsec .xsec-deposit { opacity: 0; }
html:not(.js) #xsec .xsec-film { opacity: 1; }

/* ---- 9 FAQ --------------------------------------------------- */
.faq { border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem; gap: 1rem; align-items: center;
  padding: 1.4rem 0; font-weight: 620; font-size: 1.08rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: .7rem; height: .7rem; justify-self: end;
  border-right: 1.5px solid var(--copper); border-bottom: 1.5px solid var(--copper);
  transform: translateY(-25%) rotate(45deg); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(25%) rotate(225deg); }
.faq .answer { padding: 0 2.5rem 1.6rem 0; color: var(--grey); max-width: 70ch; }
.faq .answer p:last-child { margin: 0; }

/* ---- 10 Footer ----------------------------------------------- */
footer { background: var(--soot); color: #79818a; font-size: .9rem; }
.footer-top .wrap { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; display: grid; gap: 2.25rem 2.5rem; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 56rem) { .footer-top .wrap { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); } }
.footer-brand b { display: block; color: var(--lime); font-size: 1.45rem; letter-spacing: .26em; margin-bottom: 1rem; }
.footer-brand p { max-width: 32ch; color: #8a9297; }
footer h3 { color: var(--lime); font: 500 .74rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
footer ul { margin: 0; padding: 0; list-style: none; }
footer li { padding: .3rem 0; }
footer a { color: #a0a7ac; text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--lime); }
.footer-bottom { border-top: 1px solid #1f2427; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; padding: 1.4rem 0 calc(1.4rem + env(safe-area-inset-bottom, 0px)); font-size: .8rem; }

/* ---- 11 Motion ----------------------------------------------- */
/* Enter-on-scroll. Only active with JS (html.js), so nothing stays
   hidden when scripts are off. */
.js .reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Headings slide up line by line out of a mask */
.js .mask { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.js .mask > span { display: block; transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: var(--delay, 0ms); }
.js .in .mask > span { transform: none; }

/* Marquee of equipment types */
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark); background: var(--soot); color: #848d93; padding: 1.2rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; font: 500 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.marquee-track span { padding-right: 3rem; }
.marquee-track span::before { content: "◦"; color: var(--copper-light); margin-right: 3rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .mask > span { transform: none; }
  .js .draw [pathLength] { stroke-dashoffset: 0; }
}

/* ---- 12 Print ------------------------------------------------ */
@media print {
  .top, .hero canvas, .actions, .marquee, .footer-top, .menu-toggle { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .tone-dark, .page-head { background: #fff !important; color: #000 !important; }
  .hero::after, .page-head::before { display: none; }
  .js .reveal, .js .mask > span { opacity: 1; transform: none; }
}

/* Contact form (/kontakt/) */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-row { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .45rem; }
.form-row--half { grid-column: span 1; }
@media (max-width: 40rem) { .form-row--half { grid-column: 1 / -1; } }
.form-row label { font: 500 .74rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1px solid var(--line); border-radius: 0; padding: .8rem .9rem; width: 100%;
  transition: border-color .2s;
}
.form-row textarea { resize: vertical; min-height: 9rem; }
.form-row [aria-invalid="true"] { border-color: #a3361f; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--grey); }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; cursor: pointer; font-family: inherit; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.4em; }
.form-status.is-ok { color: #2f6b3a; }
.form-status.is-error, .form-result--error { color: #a3361f; }
.form-result { display: none; grid-column: 1 / -1; padding: 1rem 1.1rem; border: 1px solid currentColor; }
.form-result:target { display: block; }
