/* =========================================================
   Sealing Technologies — Digital Brochure
   Design tokens → base → components → sections → motion/print
   ========================================================= */

:root {
  /* Kiln palette */
  --bg: #0d0c0b;
  --bg-2: #161412;
  --surface: #1e1b18;
  --line: rgba(237, 231, 222, 0.12);
  --line-strong: rgba(237, 231, 222, 0.28);
  --text: #ede7de;
  --muted: #a8a198;
  --kiln: #ff7a1a;
  --heat: #ffb547;
  --kiln-ink: #9a3d00; /* orange text on light surfaces (5.4:1) */

  /* Concrete (light) sections */
  --concrete: #e7e2da;
  --concrete-2: #d8d1c6;
  --ink: #141210;
  --ink-muted: #57514a;
  --ink-line: rgba(20, 18, 16, 0.14);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

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

h1, h2, h3, h4, p { margin: 0; }

a { color: inherit; }

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--kiln);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Shared type ---------- */

.mono {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--kiln);
}
.light .eyebrow { color: var(--ink-muted); }

.display {
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.accent { color: var(--kiln); }
.light .accent { color: var(--kiln-ink); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Ambient layers ---------- */

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, footer, .nav { position: relative; z-index: 2; }

/* ---------- Cursor (fine pointers only) ---------- */

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid var(--kiln);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor span {
  position: absolute;
  inset: 50%;
  width: 4px; height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: var(--kiln);
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Loader ---------- */

.loader { display: none; }
.js .loader {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  --hole: 0vmax;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
          mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}
.loader-ring { width: min(86vmin, 680px); overflow: visible; }
.loader-ring .ld-half { fill: none; stroke: var(--text); stroke-width: 10; }
.loader-ring .ld-inner { fill: none; stroke: var(--kiln); stroke-width: 2; }
.loader-ring .ld-tick { stroke: var(--line-strong); stroke-width: 1; }
.loader-meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--muted);
}
.ld-count {
  font-family: var(--f-mono);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(13, 12, 11, 0.85), rgba(13, 12, 11, 0));
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-intro { z-index: 600; } /* above the loader while the logo flies in */
.nav.is-solid {
  background-color: rgba(13, 12, 11, 0.88);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.05;
  min-height: 44px;
}
/* Logo highlight: larger mark, orange glow, slowly turning split ring */
.brand svg { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.55)); }
.brand-accent { color: var(--kiln); }
.brand-ring { transform-origin: 20px 20px; animation: brand-spin 18s linear infinite; }
@keyframes brand-spin { to { transform: rotate(360deg); } }
.brand small {
  display: block;
  font-family: var(--f-mono);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-tag { color: var(--muted); }
@media screen and (max-width: 860px) { .nav-tag { display: none; } }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 600 0.875rem/1 var(--f-sans);
  font-stretch: 110%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--kiln);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover,
.btn:focus-visible { color: var(--ink); border-color: var(--kiln); }
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--solid { background: var(--kiln); color: var(--ink); border-color: var(--kiln); }
.btn--solid::before { background: var(--text); }
.btn--solid:hover, .btn--solid:focus-visible { border-color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.75rem; }

/* ---------- Progress seal ---------- */

.progress {
  position: fixed;
  left: 16px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #ede7de;
}
.progress svg { width: 44px; height: 44px; overflow: visible; }
.progress .pr-track { fill: none; stroke: rgba(237, 231, 222, 0.25); stroke-width: 3; }
.progress .pr-bar { fill: none; stroke: #ede7de; stroke-width: 3; }
.progress .pr-tick { stroke: #ede7de; stroke-width: 1.5; }
.pr-label { min-width: 160px; opacity: 0; }
@media screen and (max-width: 1000px) { .progress { display: none; } }

/* ---------- Section frame ---------- */

section { position: relative; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: clamp(32px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.light .section-head { border-color: var(--ink-line); }
.section-index { color: var(--muted); }
.light .section-index { color: var(--ink-muted); }

.light {
  background: var(--concrete);
  color: var(--ink);
}

/* ---------- HERO ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 24px) 0 clamp(24px, 5svh, 72px);
  overflow: hidden;
}

.hero-ring {
  position: absolute;
  top: 50%;
  right: -18vmin;
  width: min(118vmin, 1100px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.95;
}
.hero-ring svg { width: 100%; height: 100%; overflow: visible; }
.hr-glow { position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.22), transparent 62%); filter: blur(30px); }
.hr-outer { fill: none; stroke: var(--text); stroke-width: 1.2; }
.hr-case { fill: none; stroke: var(--line-strong); stroke-width: 26; }
.hr-lip { fill: none; stroke: var(--kiln); stroke-width: 3; }
.hr-tick { stroke: var(--line-strong); stroke-width: 1; }
.hr-tick.major { stroke: var(--muted); stroke-width: 1.4; }
.hr-dim { fill: none; stroke: var(--muted); stroke-width: 1; }
.hr-dim-text { fill: var(--muted); font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; }
.hr-dash { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 7; }

/* keep the hero buttons clear of the fixed progress dial (shown above 1000px) */
@media screen and (min-width: 1001px) { .hero { padding-bottom: 88px; } }
.hero-copy { position: relative; display: grid; gap: clamp(14px, 2.4svh, 32px); }
.hero-title {
  /* sized by viewport height too, so the whole hero fits on laptop screens */
  font-size: clamp(2.75rem, min(8.4vw, 11svh), 8.5rem);
  max-width: 14ch;
}
.hero-title .line { display: block; }
.hero-title .line--thin { font-weight: 300; font-stretch: 62%; letter-spacing: 0; }
.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--muted);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

/* Highlighter-style tagline; --hl is swept 0% → 100% by GSAP */
.hero-highlight {
  font-size: clamp(1.25rem, min(3vw, 4.6svh), 2.4rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-highlight .hl {
  --hl: 100%;
  padding: 0.02em 0.24em;
  color: var(--ink);
  background: linear-gradient(var(--kiln), var(--kiln)) no-repeat left center / var(--hl) 100%;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(16px, 3svh, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
/* Product tiles — the two product lines, front and centre */
.hero-products { display: flex; flex-wrap: wrap; gap: 12px; }
.prod-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 18px 12px 14px;
  border: 1px solid rgba(255, 122, 26, 0.55);
  border-radius: var(--radius);
  background: linear-gradient(rgba(255, 122, 26, 0.1), rgba(255, 122, 26, 0.1)), var(--bg);
  color: var(--text);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.prod-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--kiln);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.prod-chip:hover,
.prod-chip:focus-visible { color: var(--ink); border-color: var(--kiln); }
.prod-chip:hover::before,
.prod-chip:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.prod-ic { width: 40px; height: 40px; flex: none; }
.prod-chip:hover .prod-ic *,
.prod-chip:focus-visible .prod-ic * { stroke: var(--ink); }
.prod-txt { display: grid; gap: 4px; }
.prod-txt b {
  font-family: var(--f-sans);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  line-height: 1.1;
}
.prod-txt small {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heat);
}
.prod-chip:hover small,
.prod-chip:focus-visible small { color: var(--ink); }
.prod-go { width: 18px; height: 18px; flex: none; margin-left: 8px; transition: transform 0.3s var(--ease-out); }
.prod-chip:hover .prod-go { transform: translateX(4px); }
@media screen and (max-width: 600px) {
  .hero-products, .prod-chip { width: 100%; }
  .prod-go { margin-left: auto; }
}
.hero-hint { display: flex; align-items: center; gap: 10px; }
.hero-hint i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--kiln);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.2);
}

@media screen and (max-width: 700px) {
  .hero-ring { top: 34%; opacity: 0.5; }
  .hr-dims { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .hero-hint { display: none; }
}

/* ---------- ABOUT ---------- */

.about { padding: clamp(96px, 16vh, 180px) 0; }
.about-text {
  font-size: clamp(1.6rem, 3.6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: -0.015em;
  max-width: 26ch;
}
.about-text em { font-style: normal; color: var(--kiln-ink); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--ink-line);
}
.about-cell {
  padding: 28px 24px 8px 0;
  border-right: 1px solid var(--ink-line);
}
.about-cell + .about-cell { padding-left: 24px; }
.about-cell:last-child { border-right: 0; }
.about-cell .big {
  display: block;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  text-transform: uppercase;
  margin: 14px 0 10px;
}
.about-cell p { color: var(--ink-muted); max-width: 32ch; }
@media screen and (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-cell, .about-cell + .about-cell { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--ink-line); }
}

/* ---------- THREAT (pinned kinetic type) ---------- */

.threat {
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.threat-stage {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.2em;
  padding: 0 var(--gutter);
}
.threat-label { margin-bottom: 24px; color: var(--muted); }
.t-word {
  position: relative;
  font-size: clamp(2.4rem, min(12.5vw, 16.5svh), 13rem);
  line-height: 0.86;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.t-word .t-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--kiln);
}
.t-word .t-fill {
  position: absolute;
  inset: 0;
  color: var(--text);
  clip-path: inset(0 0 0 0);
}
.seal-line {
  position: absolute;
  top: -6%;
  bottom: -6%;
  left: 0;
  width: 6px;
  background: var(--kiln);
  box-shadow: 0 0 40px 8px rgba(255, 122, 26, 0.55);
  opacity: 0;
}
.threat-caption {
  margin-top: 32px;
  max-width: 40ch;
  text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--muted);
}
.threat-caption strong { color: var(--text); }

/* ---------- PRODUCTS (horizontal) ---------- */

.products { padding-top: clamp(96px, 14vh, 160px); }
.h-wrap { position: relative; overflow: hidden; }
.h-track {
  display: flex;
  width: max-content;
  height: 100svh;
  min-height: 620px;
}
.panel {
  position: relative;
  flex: none;
  width: min(86vw, 1080px);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 88px;
  border-left: 1px solid var(--line);
}
.panel--intro {
  width: min(70vw, 820px);
  grid-template-columns: 1fr;
  border-left: 0;
}
.panel-num {
  position: absolute;
  top: calc(var(--nav-h) + 8px);
  right: var(--gutter);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.panel-kicker { color: var(--kiln); margin-bottom: 16px; display: block; }
.panel h3 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.panel p { color: var(--muted); max-width: 40ch; }
.panel-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.panel-tags span {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
}
.panel-intro-title {
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  margin: 24px 0;
}
.panel-intro-text { font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 34ch; color: var(--muted); }
.panel-intro-text strong { color: var(--text); font-weight: 600; }

.illus { width: 100%; max-height: 62vh; overflow: visible; }
.illus .ln { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.illus .ln-soft { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.illus .ln-dash { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 6; }
.illus .seal { fill: none; stroke: var(--kiln); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 122, 26, 0.6)); }
.illus .seal-dot { fill: var(--kiln); }
.illus .callout { fill: var(--kiln); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.illus .feed { fill: var(--muted); }
.illus .lbl-sm { fill: var(--muted); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

.h-progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 32px;
  height: 2px;
  background: var(--line);
}
.h-progress i {
  position: absolute;
  inset: 0;
  background: var(--kiln);
  transform: scaleX(0);
  transform-origin: left;
}

@media screen and (max-width: 900px) {
  .h-track { flex-direction: column; width: 100%; height: auto; min-height: 0; }
  .panel, .panel--intro {
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    padding: 64px var(--gutter);
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .panel--intro { border-top: 0; }
  .panel-num { top: 48px; font-size: 6rem; }
  .illus { max-height: 46vh; }
  .h-progress { display: none; }
}

/* ---------- ENGINEERING (sticky cross-sections) ---------- */

.engineering { padding: clamp(96px, 14vh, 160px) 0 40px; background: var(--bg-2); }
.eng-intro {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  max-width: 16ch;
}
.eng {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(64px, 10vh, 120px) 0;
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 8vh, 96px);
}
.eng-visual {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  height: calc(100svh - var(--nav-h) - 48px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}
.eng-visual-head { display: flex; justify-content: space-between; color: var(--muted); }
.eng-visual-head b { color: var(--kiln); font-weight: 500; }
.xsec {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px;
  background-color: rgba(13, 12, 11, 0.6);
}
.xsec .hatch-fill { fill: url(#hatch); stroke: var(--line-strong); stroke-width: 1; }
.xsec .metal { fill: #3a3631; stroke: var(--text); stroke-width: 1.5; transition: fill 0.5s, filter 0.5s; }
.xsec .rubber { fill: #262320; stroke: var(--text); stroke-width: 1.5; transition: fill 0.5s, filter 0.5s; }
.xsec .spring { fill: none; stroke: var(--muted); stroke-width: 2; }
.xsec .lbl { fill: var(--muted); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; transition: fill 0.4s; }
.xsec .lead { stroke: var(--line-strong); stroke-width: 1; fill: none; transition: stroke 0.4s; }
.xsec .particle { fill: var(--heat); }
.xsec .heatwave { fill: none; stroke: var(--kiln); stroke-width: 1.5; opacity: 0; }
.xsec .shockwave { fill: none; stroke: var(--kiln); stroke-width: 1.5; opacity: 0; }
.xsec .ball { fill: #3a3631; stroke: var(--text); stroke-width: 1.2; }
.xsec .is-hot { fill: rgba(255, 122, 26, 0.28); filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.65)); }
.xsec .lbl.is-hot { fill: var(--kiln); filter: none; }
.xsec .lead.is-hot { stroke: var(--kiln); fill: none; filter: none; }

.eng-meter { display: flex; gap: 6px; }
.eng-meter i { flex: 1; height: 3px; background: var(--line); transition: background 0.4s; }
.eng-meter i.on { background: var(--kiln); }

.eng-title { font-size: clamp(2rem, 4.4vw, 3.8rem); margin-bottom: 24px; }
.eng-lede { color: var(--muted); max-width: 42ch; font-size: 1.1rem; }

.step {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.32;
  transition: opacity 0.5s var(--ease-out);
}
.step.is-active { opacity: 1; }
.step-num {
  font-family: var(--f-mono);
  color: var(--kiln);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.step h4 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.05;
  margin-bottom: 16px;
}
.step p { color: var(--muted); max-width: 40ch; font-size: 1.05rem; }
.no-js .step, .reduced .step { opacity: 1; }

@media screen and (max-width: 900px) {
  .eng { grid-template-columns: 1fr; }
  .eng-visual {
    top: 0;
    padding-top: 16px;
    height: 48svh;
    z-index: 3;
    background: var(--bg-2);
    padding-bottom: 8px;
  }
  .step { min-height: 56svh; }
}

/* Metal face seals (HDDF, Duo-Cone), shown after the rotary seal section */
.faces { margin-top: clamp(48px, 8vh, 96px); padding: clamp(56px, 9vh, 104px) 0 clamp(24px, 4vh, 48px); border-top: 1px solid var(--line); }
.faces-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.faces-head .eyebrow { grid-column: 1 / -1; }
.faces-head .eng-title { margin-bottom: 0; }
.faces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.face-card { margin: 0; display: grid; gap: 14px; align-content: start; }
.face-card .xsec { height: auto; }
.face-card h4 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; font-stretch: 115%; line-height: 1; text-transform: uppercase; margin: 6px 0 10px; }
.face-card h4 small { display: block; margin-bottom: 8px; font: 500 0.72rem/1.4 var(--f-mono); letter-spacing: 0.12em; color: var(--kiln); }
.face-card p { color: var(--muted); max-width: 52ch; }
.xsec .face-band { fill: none; stroke: var(--kiln); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.8)); }
.xsec .lbl--hot { fill: var(--kiln); }
@media screen and (max-width: 900px) {
  .faces-head, .faces-grid { grid-template-columns: 1fr; }
}

/* ---------- PROOF ---------- */

.proof { padding: clamp(96px, 14vh, 160px) 0; overflow: hidden; }
.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(12px, 2vw, 24px) 0;
}
.marquee + .marquee { border-top: 0; }
.marquee-inner { display: flex; flex: none; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item .o { color: transparent; -webkit-text-stroke: 1.2px var(--text); }
.marquee-item svg { width: 0.5em; height: 0.5em; flex: none; }
.marquee-item svg circle { fill: none; stroke: var(--kiln); stroke-width: 10; }

.proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(64px, 10vw, 128px);
}
.proof-title { font-size: clamp(2.2rem, 5vw, 4.6rem); margin: 24px 0; }
.proof-text { color: var(--muted); font-size: 1.1rem; max-width: 50ch; }
.proof-text strong { color: var(--text); font-weight: 600; }

.badge { position: relative; width: min(100%, 360px); aspect-ratio: 1; justify-self: center; }
.badge svg { width: 100%; height: 100%; overflow: visible; }
.badge .b-text { fill: var(--text); font-family: var(--f-mono); font-size: 15.5px; letter-spacing: 0.32em; text-transform: uppercase; }
.badge .b-ring { fill: none; stroke: var(--line-strong); }
.badge .b-core { fill: var(--kiln); }
.badge-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}
.badge-center small { display: block; font: 500 0.625rem/1.4 var(--f-mono); letter-spacing: 0.14em; margin-top: 6px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar { background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.pillar svg { width: 40px; height: 40px; margin-bottom: 28px; stroke: var(--kiln); fill: none; stroke-width: 1.5; }
.pillar h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 108%; margin-bottom: 10px; line-height: 1.15; }
.pillar p { color: var(--muted); }
@media screen and (max-width: 860px) {
  .proof-grid, .pillars { grid-template-columns: 1fr; }
}

/* ---------- ECONOMICS ---------- */

.economics { padding: clamp(96px, 14vh, 160px) 0; overflow: hidden; }
.eco-title { font-size: clamp(2.4rem, 7vw, 6.4rem); max-width: 14ch; }
.eco-title .strike { position: relative; display: inline-block; }
.eco-title .strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 52%;
  height: 0.09em;
  background: var(--kiln-ink);
  transform: scaleX(var(--strike, 1));
  transform-origin: left;
}
.eco-lede { margin-top: 28px; max-width: 56ch; color: var(--ink-muted); font-size: 1.1rem; }

.scale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: end;
  height: clamp(320px, 52vh, 520px);
  margin-top: clamp(56px, 8vw, 96px);
  border-bottom: 2px solid var(--ink);
}
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bar-fill {
  position: relative;
  width: 100%;
  transform-origin: bottom;
  display: flex;
  align-items: flex-start;
  padding: 16px;
}
.bar--seal .bar-fill { height: 16%; background: var(--ink); color: var(--concrete); }
.bar--down .bar-fill {
  height: 100%;
  color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--kiln) 0 14px, #ff8f3d 14px 28px);
}
.bar-label {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-muted);
}
.bar-label b { color: var(--ink); font-weight: 600; }
.bar-fill strong {
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 800;
  font-stretch: 120%;
  line-height: 1;
  text-transform: uppercase;
}

.calc {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(64px, 10vw, 120px);
  padding: clamp(24px, 4vw, 56px);
  background: var(--ink);
  color: var(--text);
}
.calc .eyebrow { color: var(--muted); }
.calc h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; font-stretch: 115%; text-transform: uppercase; line-height: 1; margin: 16px 0 12px; }
.calc .note { color: var(--muted); font-size: 0.9rem; max-width: 40ch; }
.field { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { font-weight: 600; }
.field output { font-family: var(--f-mono); color: var(--heat); font-variant-numeric: tabular-nums; }
.field .help { color: var(--muted); font-size: 0.8rem; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--kiln) var(--p, 50%), var(--line-strong) var(--p, 50%));
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--kiln); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--kiln);
  box-shadow: 0 0 0 6px rgba(255, 122, 26, 0.15);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--kiln);
}

.calc-result { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.calc-amount {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 900;
  font-stretch: 100%;
  line-height: 1;
  color: var(--kiln);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calc-words { font-family: var(--f-mono); color: var(--heat); letter-spacing: 0.08em; text-transform: uppercase; }
.calc-formula { color: var(--muted); font-family: var(--f-mono); font-size: 0.8rem; }

@media screen and (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */

.cta {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(120px, 18vh, 200px) 0;
  overflow: hidden;
}
.cta-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: min(120vmin, 1000px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-rings svg { width: 100%; height: 100%; overflow: visible; }
.cta-rings .cr-half { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.cta-rings .cr-lip { fill: none; stroke: var(--kiln); stroke-width: 2; opacity: 0.8; }
.cta-inner { position: relative; display: grid; justify-items: center; gap: 28px; }
.cta-title { font-size: clamp(3rem, 10vw, 9rem); }
.cta-text { color: var(--muted); max-width: 52ch; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.cta-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; padding-top: 24px; border-top: 1px solid var(--line); font-style: normal; }
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  text-align: left;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  font-stretch: 105%;
  transition: color 0.3s var(--ease-out);
}
.cta-contact-item:hover, .cta-contact-item:focus-visible { color: var(--kiln); }
.cta-contact-item svg { width: 40px; height: 40px; padding: 9px; flex: none; fill: none; stroke: var(--kiln); stroke-width: 1.6; stroke-linejoin: round; border: 1px solid rgba(255, 122, 26, 0.55); border-radius: 50%; }
.cta-contact-item--addr { flex-basis: 100%; justify-content: center; font-size: clamp(0.95rem, 1.2vw, 1.05rem); font-weight: 500; line-height: 1.45; }
.cta-contact-item small { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 400; margin-bottom: 2px; }
.footer-row a { color: var(--text); text-decoration: none; }
.footer-row a:hover { color: var(--kiln); }
@media screen and (max-width: 600px) {
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */

.footer { padding: 48px 0 96px; border-top: 1px solid var(--line); color: var(--muted); }
.footer .wrap { container-type: inline-size; }
.footer-word {
  font-size: clamp(2rem, 9.2vw, 8.4rem); /* fallback for browsers without container units */
  font-size: 10.9cqi; /* the word is ~9.06× its font size wide, so this fills the footer at any width */
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.85;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--kiln);
  white-space: nowrap;
  overflow: hidden;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  font-size: 0.85rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .js .loader { display: none; }
  .cursor, .hero-hint { display: none; }
  .brand-ring { animation: none; }
}

/* ---------- Download PDF button ---------- */

.btn--dl:hover svg, .btn--dl:focus-visible svg { transform: translateY(3px); }
.print-only, .print-contact { display: none; }
@media screen and (max-width: 480px) {
  .nav-right { gap: 8px; }
  .nav .btn--sm { padding: 0 14px; }
  .nav .btn--dl { gap: 0; }
  .nav .dl-txt { display: none; }
  .brand { gap: 10px; font-size: 0.95rem; }
  .brand svg { width: 38px; height: 38px; }
}
@media screen and (max-width: 380px) {
  .brand { gap: 8px; font-size: 0.8rem; }
  .brand svg { width: 32px; height: 32px; }
}

/* ---------- Print / downloadable PDF ----------
   Dark A4 landscape, one chapter per page. The shipped PDF is built from the
   reduced-motion state by scripts/build-pdf.sh, so every drawing is complete. */

@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body {
    background: var(--bg) !important;
    -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
  }
  body { overflow: visible; }
  .skip, .loader, .cursor, #dust, .grain, .progress, .hero-hint, .seal-line, .h-progress,
  .nav .btn, .btn--dl, .screen-only, .eng-meter, .eng-step-label, .panel--intro .mono { display: none !important; }
  .print-only { display: inline; }
  .btn.print-only { display: inline-flex; }

  /* Contact bar: position: fixed repeats it at the foot of every printed page */
  .print-contact {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1000;
    height: 8mm;
    align-items: center;
    gap: 5mm;
    padding: 0 12mm;
    background: var(--bg);
    border-top: 1px solid rgba(255, 122, 26, 0.55);
    color: var(--muted);
    font: 500 7pt/1 var(--f-mono);
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
  .print-contact .print-contact-web { color: var(--kiln); }
  .print-contact a { color: var(--text); text-decoration: none; }
  .print-contact span { margin-left: auto; }

  /* Brand bar on the cover only */
  .nav { position: absolute; background: none; }
  .nav .brand { gap: 16px; font-size: 1.5rem; }
  .nav .brand svg { width: 60px; height: 60px; }

  /* Every chapter starts on a fresh page and fills it */
  .about, .threat, .panel, .engineering, .faces, .eng--vring, .proof, .economics, .calc, .cta { break-before: page; }

  .hero { height: 210mm; min-height: 0; padding: calc(var(--nav-h) + 16px) 0 12mm; }
  .hero-title { font-size: 6.4rem; }

  .about { height: 210mm; padding: 16mm 0 0; }
  .about-text { font-size: 2.2rem; max-width: 30ch; }
  .about-grid { margin-top: 28px; }
  .about-cell .big { font-size: 2rem; }

  .threat { height: 210mm; min-height: 0; }

  .products { padding-top: 0; }
  .h-wrap { overflow: visible; }
  .h-track { flex-direction: column; width: 100%; height: auto; min-height: 0; }
  .panel, .panel--intro { width: 100%; height: 210mm; padding: 26mm 16mm 16mm; border-left: 0; }
  .panel-num { top: 14mm; right: 16mm; font-size: 9rem; }

  .engineering { height: 630mm; padding: 16mm 0 0; background: var(--bg); }
  .engineering .section-head { margin-bottom: 20px; }
  .eng-intro { font-size: 2.8rem; max-width: none; }
  .eng { gap: 48px; align-items: center; padding: 20px 0 0; margin-top: 20px; }
  .eng--vring { margin-top: 0; padding-top: 16mm; border-top: 0; }
  .eng-visual { position: static; height: 132mm; }
  .eng--vring .eng-visual { height: 160mm; }
  .faces { height: 210mm; margin-top: 0; padding: 14mm 0 0; border-top: 0; }
  .faces-head { margin-bottom: 18px; }
  .faces-head .eng-title { font-size: 2.4rem; }
  .faces-head .eng-lede { font-size: 0.95rem; }
  .faces-grid { gap: 28px; }
  .face-card { gap: 10px; }
  .face-card h4 { font-size: 1.3rem; margin: 2px 0 6px; }
  .face-card p { font-size: 0.88rem; }
  .eng-title { font-size: 2.6rem; margin-bottom: 12px; }
  .eng-lede { font-size: 1rem; }
  .step { min-height: 0; padding: 14px 0; }
  .step-num { margin-bottom: 6px; }
  .step h4 { font-size: 1.35rem; margin-bottom: 6px; }
  .step p { font-size: 0.92rem; }

  .proof { height: 210mm; padding: 14mm 0 0; }
  .proof .section-head { margin-bottom: 16px; }
  .marquee { overflow: visible; padding: 10px var(--gutter); }
  .marquee-inner { flex: 1; }
  .marquee-item { flex-wrap: wrap; white-space: normal; gap: 4px 16px; padding-right: 0; font-size: 1.5rem; }
  .proof-grid { margin-top: 16px; gap: 48px; }
  .proof-title { font-size: 2.2rem; margin: 10px 0; }
  .proof-text { font-size: 0.9rem; line-height: 1.5; max-width: 64ch; }
  .badge { width: 230px; }
  .badge-center { font-size: 0.9rem; }
  .badge-center small { font-size: 0.5rem; }
  .pillars { margin-top: 16px; }
  .pillar { padding: 14px 20px; }
  .pillar svg { width: 24px; height: 24px; margin-bottom: 8px; }
  .pillar h3 { font-size: 1.1rem; }
  .pillar p { font-size: 0.88rem; }

  .economics { height: 420mm; padding: 14mm 0 0; }
  .eco-title { font-size: 3.6rem; }
  .eco-lede { margin-top: 18px; }
  .scale { height: 58mm; margin-top: 28px; }
  .bar-fill { padding: 10px 14px; }
  .bar-fill strong { font-size: 1.3rem; }
  .bar--seal .bar-fill { min-height: 46px; }
  .calc { margin-top: 30mm; }

  .cta { height: 164mm; min-height: 0; padding: 0; }
  .cta-rings { width: 150mm; }
  .cta-inner { gap: 16px; }
  .cta-title { font-size: 4.4rem; }
  .footer { height: 46mm; padding: 6mm 0 0; overflow: hidden; }
  .footer-word { font-size: 3.4rem; }
  .footer-row { margin-top: 12px; }
  .footer-contact { display: none; } /* the contact bar already carries it */
}
