/* ==========================================================================
   Easy Plastics — design system
   Rules: flat solid colour only. No gradients, no weights above 400,
   no blur panels.
   ========================================================================== */

:root {
  --ink: #0c0e0d;
  --coal: #151817;
  --line-d: #2a2f2d;
  --ivory: #efebe2;
  --paper: #f7f5ef;
  --line-l: #d5d0c2;
  --stone: #5f5d55;
  --fog: #9aa19c;
  --silver: #c5c9c7;
  --lime: #c6f432;
  --coral: #ff8466;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4.4vw, 72px);
  --nav-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- smooth scrolling (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-synthesis: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6, b, strong, th, dt, legend, label, button, summary, output, optgroup { font-weight: 400; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; border-radius: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 0; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[data-theme="light"] :focus-visible { outline-color: var(--ink); }
::selection { background: var(--lime); color: var(--ink); }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- themes ---------- */
[data-theme="dark"] { --bg: var(--ink); --fg: var(--ivory); --muted: var(--fog); --line: var(--line-d); color: var(--fg); }
[data-theme="light"] { --bg: var(--ivory); --fg: var(--ink); --muted: var(--stone); --line: var(--line-l); color: var(--fg); }

/* ---------- type ---------- */
.h-xl, .hero-title {
  font-stretch: 122%;
  font-weight: 200;
  font-size: clamp(2.6rem, 6.4vw, 7.25rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
}
.h-l {
  font-stretch: 118%;
  font-weight: 200;
  font-size: clamp(2.3rem, 5.2vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.h-m {
  font-stretch: 110%;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
h3 { font-stretch: 108%; font-weight: 300; font-size: clamp(1.35rem, 1.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.008em; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 300; line-height: 1.5; }
.link {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-underline-offset 0.3s var(--ease);
}
.link:hover { text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  min-height: var(--h);
  padding: 0 22px 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px; line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn .roll { display: block; height: 1.35em; line-height: 1.35em; overflow: hidden; }
.btn .roll > span { display: block; text-shadow: 0 1.35em currentColor; transition: transform 0.5s var(--ease); }
.btn:hover .roll > span, .btn:focus-visible .roll > span { transform: translateY(-1.35em); }
.arrow { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 0.45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--ivory); }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: var(--lime); color: var(--ink); }
.btn-line { border-color: color-mix(in srgb, currentColor 34%, transparent); }
.btn-line:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; gap: 12px; }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: var(--ink);
  animation: loader-failsafe 0s linear 7s forwards;
}
.loader-mark { width: 40px; height: 48px; }
.loader-mark path {
  fill: none; stroke: var(--ivory); stroke-width: 1;
  stroke-dasharray: 130; stroke-dashoffset: 130;
  animation: loader-draw 1.1s var(--ease) forwards;
}
.loader-line { width: 120px; height: 1px; background: var(--line-d); overflow: hidden; }
.loader-line span { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); transition: transform 0.4s var(--ease); }
.loader.is-done { transform: translateY(-101%); transition: transform 0.8s cubic-bezier(0.76, 0, 0.18, 1); }
@keyframes loader-draw { to { stroke-dashoffset: 0; } }
@keyframes loader-failsafe { to { visibility: hidden; } }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: var(--pad);
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease), transform 0.5s var(--ease);
}
.nav.on-light { color: var(--ink); }
.nav.is-solid { height: 64px; background: var(--nav-bg, var(--ink)); border-bottom-color: color-mix(in srgb, currentColor 14%, transparent); }
.nav.is-hidden { transform: translateY(-101%); }
.nav.is-hidden:focus-within { transform: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-stretch: 118%; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap; justify-self: start; }
.brand svg { width: 17px; height: 20px; fill: currentColor; }
.nav-links ul { display: flex; gap: clamp(14px, 1.6vw, 32px); font-size: 14px; }
.nav-links a { position: relative; display: block; padding: 8px 0; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-end { display: flex; align-items: center; gap: 10px; justify-self: end; }
.nav.on-light .btn-lime { background: var(--ink); color: var(--ivory); }
.nav.on-light .btn-lime:hover { background: var(--lime); color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }

.drawer {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  border: 0; background: var(--ink); color: var(--ivory);
  padding: 0 var(--pad) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer[open] { display: flex; flex-direction: column; }
.drawer::backdrop { background: var(--ink); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); flex: none; }
.drawer-close { min-width: 44px; min-height: 44px; font-size: 15px; }
.drawer nav { flex: 1; display: flex; align-items: center; padding-block: 24px; }
.drawer-links { width: 100%; }
.drawer-links li { border-top: 1px solid var(--line-d); overflow: hidden; }
.drawer-links li:last-child { border-bottom: 1px solid var(--line-d); }
.drawer-links a { display: block; padding: 10px 0; font-stretch: 116%; font-weight: 200; font-size: clamp(1.9rem, 8.4vw, 3.25rem); letter-spacing: -0.02em; line-height: 1.2; }
.drawer-foot { display: flex; flex-direction: column; gap: 4px; color: var(--fog); font-size: 14px; flex: none; }
.drawer-foot a { padding: 6px 0; }

/* ---------- generic 3D view ---------- */
.view { touch-action: pan-y; }
.view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.view svg.fallback { position: absolute; inset: 8% 8%; width: 84%; height: 84%; }
canvas { -webkit-user-select: none; user-select: none; }

/* ---------- hero ---------- */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 600px;
  background: var(--ink); overflow: hidden;
}
.hero-view { position: absolute; inset: 0; }
.hero-title {
  position: absolute; left: var(--pad); right: var(--pad);
  top: calc(var(--nav-h) + clamp(8px, 3vh, 36px));
  text-align: center; pointer-events: none;
  font-size: clamp(2.4rem, min(6.2vw, 10.4vh), 7.5rem);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: block; }
.hero-foot {
  position: absolute; left: var(--pad); right: var(--pad);
  bottom: clamp(24px, 5vh, 56px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.hero-foot > * { pointer-events: auto; }
.hero-foot p { max-width: 30ch; font-size: clamp(0.95rem, 1.15vw, 1.1rem); font-weight: 300; line-height: 1.55; }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.hero-actions .btn { justify-content: space-between; min-width: 262px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; color: var(--fog);
}
.scroll-cue i { display: block; width: 1px; height: 36px; background: var(--line-d); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--lime); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-14px); } 70%, 100% { transform: translateY(38px); } }

/* Everything after the hero slides over it */
main > section:not(.hero), .footer { position: relative; z-index: 1; }

/* ---------- intro ---------- */
.intro {
  background: var(--ivory);
  padding: clamp(110px, 18vh, 220px) var(--pad) clamp(80px, 12vh, 150px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}
.intro-title { grid-column: 1 / 10; }
.intro-lead {
  grid-column: 4 / 13;
  margin-top: clamp(48px, 9vh, 110px);
  font-weight: 300; font-stretch: 104%;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.32; letter-spacing: -0.012em;
}
.facts { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; margin-top: clamp(72px, 13vh, 160px); }
.facts > div { border-top: 1px solid var(--line); padding-top: 18px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin-top: 6px; font-stretch: 112%; font-weight: 200; font-size: clamp(1.5rem, 2.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }

/* ---------- catalogue ---------- */
.catalogue { background: var(--ivory); }
.cat-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
  padding: clamp(40px, 7vh, 90px) var(--pad) clamp(40px, 7vh, 80px);
  border-top: 1px solid var(--line);
}
.cat-head h2 { grid-column: 1 / 8; }
.cat-head p { grid-column: 9 / 13; color: var(--muted); }
.cat-track { height: calc(100vh + 8 * 68vh); }
.cat-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; min-height: 600px;
  overflow: hidden;
  background: var(--stage-bg, #e8e3d7);
  transition: background-color 0.8s var(--ease), color 0.5s var(--ease);
}
.cat-stage[data-theme="dark"] { --line: rgba(239, 235, 226, 0.2); --muted: rgba(239, 235, 226, 0.7); --bg: var(--stage-bg); }
.cat-stage[data-theme="light"] { --line: rgba(12, 14, 13, 0.18); --muted: rgba(12, 14, 13, 0.68); --bg: var(--stage-bg); }
.cat-word {
  position: absolute; left: 0; right: 0; top: 47%; transform: translateY(-50%);
  text-align: center; white-space: nowrap; pointer-events: none;
  font-stretch: 125%; font-weight: 100; line-height: 0.8; letter-spacing: -0.045em;
  font-size: min(36vh, calc(122vw / var(--len, 7)));
  color: var(--word, #d9d2c1);
  transition: color 0.8s var(--ease);
}
.cat-view { position: absolute; inset: 0; cursor: grab; }
.cat-view:active { cursor: grabbing; }
.cat-view:focus-visible, .studio-view:focus-visible, .viewer-mount:focus-visible { outline-offset: -4px; }
.cat-index {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  z-index: 2; counter-reset: item;
}
.cat-index li { counter-increment: item; }
.cat-index button {
  display: flex; align-items: center; gap: 14px;
  padding: 7px 0; min-height: 32px;
  font-size: 13.5px; text-align: left; color: var(--muted);
  transition: color 0.3s;
}
.cat-index button::before {
  content: ""; width: 26px; height: 1px; background: currentColor;
  transform: scaleX(0.35); transform-origin: left; transition: transform 0.45s var(--ease);
}
.cat-index button:hover { color: var(--fg); }
.cat-index button[aria-current="true"] { color: var(--fg); }
.cat-index button[aria-current="true"]::before { transform: scaleX(1); }
.cat-info {
  position: absolute; right: var(--pad); bottom: clamp(28px, 7vh, 80px);
  width: min(340px, 27vw); z-index: 2;
}
.product { display: none; }
.product.is-active { display: block; animation: rise 0.7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.product h3 { margin-bottom: 12px; }
.product-desc { font-size: 15px; }
.product dl { margin-top: 20px; font-size: 14px; }
.product dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.product dt { color: var(--muted); }
.cat-open { margin-top: 14px; width: 100%; justify-content: space-between; }
.cat-pager { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(28px, 7vh, 80px); display: flex; align-items: center; gap: 8px; }
.cat-pager button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); transition: background-color 0.3s, color 0.3s; }
.cat-pager button:hover { background: var(--fg); color: var(--bg); }
.cat-pager svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.cat-count { min-width: 58px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.cat-hint { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 18px; font-size: 12px; color: var(--muted); white-space: nowrap; pointer-events: none; }

/* ---------- product viewer ---------- */
.viewer {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  background: var(--viewer-bg, #e8e3d7); color: var(--ink);
  overflow: hidden;
}
.viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); grid-template-rows: minmax(0, 1fr); animation: viewer-in 0.65s var(--ease) both; }
.viewer::backdrop { background: var(--ink); }
@keyframes viewer-in { from { clip-path: inset(12% 10% 12% 10%); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.viewer-stage { position: relative; min-height: 0; }
.viewer-mount { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.viewer-mount canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer-mount svg.fallback { position: absolute; inset: 10%; width: 80%; height: 80%; }
.viewer-hint { position: absolute; left: 24px; bottom: 18px; font-size: 12px; pointer-events: none; color: var(--viewer-fg, var(--ink)); }
.viewer-panel { background: var(--paper); overflow-y: auto; overscroll-behavior: contain; padding: 28px clamp(22px, 2.6vw, 40px) calc(32px + env(safe-area-inset-bottom)); --fg: var(--ink); --bg: var(--paper); --line: var(--line-l); --muted: var(--stone); }
.viewer-panel :focus-visible { outline-color: var(--ink); }
.viewer-close { display: block; margin-left: auto; min-height: 44px; padding: 0 2px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; font-size: 14px; }
.viewer-panel h2 { margin-top: 22px; }
.viewer-desc { margin-top: 16px; }
.viewer-more { margin-top: 12px; color: var(--stone); font-size: 15px; }
.viewer-spec { margin-top: 24px; font-size: 14px; }
.viewer-spec > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-l); }
.viewer-spec dt { color: var(--stone); }
.viewer fieldset { margin-top: 22px; }
.viewer legend { font-size: 14px; color: var(--stone); margin-bottom: 10px; }
.viewer-enquire { width: 100%; margin-top: 28px; }
.viewer-nav { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.viewer-nav button { min-height: 40px; color: var(--stone); }
.viewer-nav button:hover { color: var(--ink); }

/* ---------- segmented choices and swatches ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input, .swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 15px; font-size: 14px;
  border: 1px solid var(--line-l); border-radius: var(--radius);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.seg input:focus-visible + span, .swatches input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 5px; }
.seg-num span { min-width: 44px; padding: 0; font-variant-numeric: tabular-nums; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; padding: 3px; }
.swatches label { position: relative; cursor: pointer; }
.swatches span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(12, 14, 13, 0.18); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color 0.25s, transform 0.25s var(--ease); }
.swatches label:hover span { transform: scale(1.07); }
.swatches input:checked + span { outline-color: var(--ink); }

/* ---------- manufacturing ---------- */
.process { background: var(--ink); }
.process-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
  padding: clamp(100px, 17vh, 200px) var(--pad) 0;
}
.process-head h2 { grid-column: 1 / 9; }
.process-head p { grid-column: 9 / 13; color: var(--muted); }
.process-track { height: calc(100vh + 6 * 92vh); }
.process-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.process-view { position: absolute; inset: 0; }
.process-steps { position: absolute; left: var(--pad); top: 50%; width: min(380px, 30vw); height: 360px; margin-top: -180px; pointer-events: none; }
.process-steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); visibility: hidden; transition-property: opacity, transform, visibility; }
.process-steps li.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0.12s; }
.step-num { display: block; font-stretch: 125%; font-weight: 100; font-size: clamp(4.5rem, 9vw, 9rem); line-height: 1; letter-spacing: -0.04em; color: var(--lime); margin-bottom: 18px; }
.process-steps h3 { margin-bottom: 12px; }
.process-steps p { color: var(--fog); max-width: 36ch; }
.ink-count { display: flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 13px; }
.ink-count i { width: 14px; height: 14px; border: 1px solid var(--line-d); background: transparent; transition: background-color 0.3s, border-color 0.3s; }
.ink-count i.is-on { background: var(--c); border-color: var(--c); }
.ink-count > span { margin-left: 10px; font-variant-numeric: tabular-nums; }
.process-rail { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(20px, 4vh, 44px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.process-rail button { text-align: left; min-height: 44px; font-size: 13px; color: var(--fog); transition: color 0.3s; }
.process-rail i { display: block; height: 1px; background: var(--line-d); margin-bottom: 12px; position: relative; }
.process-rail i::after { content: ""; position: absolute; inset: 0; background: var(--lime); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.process-rail button:hover, .process-rail button[aria-current="step"] { color: var(--ivory); }

/* ---------- customisation studio ---------- */
.studio { background: var(--paper); --bg: var(--paper); }
.studio-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
  padding: clamp(100px, 16vh, 190px) var(--pad) clamp(48px, 8vh, 90px);
}
.studio-head h2 { grid-column: 1 / 8; }
.studio-head p { grid-column: 9 / 13; color: var(--muted); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.studio-preview { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; background: #dfdbd0; }
.studio-view { position: absolute; inset: 0; cursor: grab; }
.studio-view:active { cursor: grabbing; }
.studio-hint { position: absolute; left: 24px; bottom: 18px; font-size: 12px; color: #4c4a43; pointer-events: none; }
.studio-controls { padding: clamp(28px, 5vh, 56px) var(--pad) clamp(60px, 10vh, 120px) clamp(24px, 3.4vw, 56px); }
.control { padding: 22px 0; border-bottom: 1px solid var(--line); }
.control:first-child { padding-top: 0; }
.control legend { float: left; width: 100%; }
.control legend, .control > label, .control-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.control legend + * { clear: left; }
.control input[type="text"] {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 4px 0 10px; font-stretch: 112%; font-weight: 300; font-size: 1.75rem;
}
.control input[type="text"]:focus { outline: 0; border-bottom-width: 2px; padding-bottom: 9px; }
.control-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.file-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-l); border-radius: var(--radius); font-size: 14px; cursor: pointer; }
.file-btn:hover { border-color: var(--ink); }
.file-row:has(input:focus-visible) .file-btn { outline: 2px solid var(--ink); outline-offset: 3px; }
.file-clear { font-size: 13px; text-decoration: underline; text-underline-offset: 5px; min-height: 40px; }
.studio-summary { padding-top: 28px; }
.studio-summary output { display: block; font-stretch: 108%; font-weight: 300; font-size: 1.2rem; line-height: 1.5; margin-bottom: 22px; }
.studio-cta { width: 100%; white-space: normal; text-align: center; padding-block: 12px; }

/* ---------- industries ---------- */
.industries { background: var(--coal); --bg: var(--coal); }
.ind-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
  padding: clamp(100px, 16vh, 190px) var(--pad) clamp(30px, 6vh, 70px);
}
.ind-head h2 { grid-column: 1 / 9; }
.ind-head p { grid-column: 9 / 13; color: var(--muted); }
.ind-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.ind-stage { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; }
.ind-view { position: absolute; inset: 0; }
.ind-caption { position: absolute; left: var(--pad); bottom: 28px; font-size: 13px; color: var(--fog); }
.ind-list { padding: 8vh var(--pad) 18vh 0; }
.ind-list > li { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line-d); transition: opacity 0.5s var(--ease); }
.ind-list > li:not(.is-active) { opacity: 0.38; }
.ind-list h3 { font-stretch: 116%; font-weight: 200; font-size: clamp(2rem, 3.8vw, 3.9rem); line-height: 1.05; letter-spacing: -0.022em; }
.ind-list p { margin-top: 20px; max-width: 44ch; color: #c3c8c4; }
.ind-list ul { margin-top: 28px; display: flex; flex-wrap: wrap; column-gap: 28px; row-gap: 6px; font-size: 14px; }
.ind-list ul li { display: flex; align-items: center; gap: 10px; }
.ind-list ul li::before { content: ""; width: 5px; height: 5px; background: var(--lime); }

/* ---------- why ---------- */
.why { background: var(--ivory); padding: clamp(100px, 16vh, 190px) var(--pad); }
.why-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: clamp(48px, 8vh, 90px); border-top: 1px solid var(--ink); }
.feature { padding: 34px 0 44px; border-bottom: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.feature > p { color: var(--muted); max-width: 46ch; margin-top: auto; padding-top: 18px; }
.f-materials { grid-column: 1 / 8; padding-right: 40px; border-right: 1px solid var(--line); }
.f-colour { grid-column: 8 / 13; padding-left: 40px; }
.f-stamp { grid-column: 1 / 6; padding-right: 40px; border-right: 1px solid var(--line); }
.f-die { grid-column: 6 / 13; padding-left: 40px; }
.f-ply { grid-column: 1 / 8; padding-right: 40px; border-right: 1px solid var(--line); }
.f-bio { grid-column: 8 / 13; padding-left: 40px; }
.f-range { grid-column: 1 / 13; }

.tabs, .die-tabs { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.tabs button, .die-tabs button { min-height: 40px; border-bottom: 1px solid transparent; color: var(--muted); font-size: 14px; transition: color 0.25s, border-color 0.25s; }
.tabs button[aria-selected="true"], .die-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.chain { width: 100%; height: auto; margin-top: 28px; }
.chain .bond { stroke: var(--ink); stroke-width: 1; fill: none; }
.chain .atom { fill: var(--ivory); stroke: var(--ink); stroke-width: 1; }
.chain .atom-c { fill: var(--ink); }
.chain .atom-m { fill: var(--lime); }
.chain text { font-size: 12px; fill: var(--stone); font-family: var(--font); }
.mat-name { margin-top: 20px; font-stretch: 110%; font-weight: 200; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.1; letter-spacing: -0.018em; }
.mat-text { margin-top: 12px; max-width: 52ch; color: var(--muted); }

.register { width: 100%; max-width: 400px; height: auto; margin: 22px auto 0; }
.register circle.ink { mix-blend-mode: multiply; }
.register .mark { stroke: var(--ink); stroke-width: 0.8; fill: none; }

.stamp-pad { position: relative; display: block; width: 100%; height: 230px; margin-top: 22px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; cursor: crosshair; }
.stamp-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); transition: opacity 0.3s; }
.stamp-pad.has-stamps .stamp-hint { opacity: 0; }
.stamp { position: absolute; width: 92px; height: 92px; margin: -46px 0 0 -46px; pointer-events: none; animation: stamp 0.35s var(--ease) both; }
@keyframes stamp { from { opacity: 0; scale: 1.35; } to { opacity: 0.88; scale: 1; } }

.dieline { width: 100%; height: auto; margin-top: 18px; }
.dieline .cut { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.dieline .fold { fill: none; stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 5 5; }
.dieline .dim { fill: none; stroke: var(--stone); stroke-width: 0.8; }
.dieline text { font-size: 12px; fill: var(--stone); font-family: var(--font); }

.ply { width: 100%; height: auto; margin-top: 18px; }
.ply path, .ply line { fill: none; stroke: var(--ink); stroke-width: 1.4; transition: opacity 0.4s; }
.ply text { font-size: 12px; fill: var(--stone); font-family: var(--font); }

.bio-text { margin-top: 28px; font-stretch: 112%; font-weight: 200; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.12; letter-spacing: -0.018em; max-width: 14ch; }
.f-bio > p:not(.bio-text) { margin-top: 20px; }
.f-bio .link { margin-top: auto; padding-top: 24px; align-self: flex-start; }

.f-range ul { display: flex; flex-wrap: wrap; column-gap: 38px; margin-top: 26px; }
.f-range li { font-stretch: 118%; font-weight: 100; font-size: clamp(1.9rem, 4.6vw, 4.75rem); line-height: 1.18; letter-spacing: -0.03em; white-space: nowrap; transition: color 0.3s; }
.f-range li:hover { color: #55700a; }

/* ---------- about ---------- */
.about {
  background: var(--silver); --line: #9ea4a1; --muted: #3f433f;
  padding: clamp(100px, 16vh, 190px) var(--pad);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
}
.about h2 { grid-column: 1 / 10; }
.about-copy { grid-column: 6 / 13; margin-top: clamp(40px, 7vh, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.timeline { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; margin-top: clamp(72px, 12vh, 150px); }
.timeline li { border-top: 1px solid var(--ink); padding-top: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--ink); }
.t-year { font-stretch: 122%; font-weight: 100; font-size: clamp(2rem, 4.2vw, 4.25rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 26px; }
.timeline h3 { margin-bottom: 8px; }
.timeline li p:last-child { color: var(--muted); font-size: 15px; max-width: 30ch; }

/* ---------- contact ---------- */
.contact { background: var(--ink); padding: clamp(100px, 16vh, 190px) var(--pad) clamp(90px, 14vh, 160px); }
.contact h2 { max-width: 13ch; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(56px, 9vh, 110px); }
.contact-info { grid-column: 1 / 5; align-self: start; }
.contact-info dl { margin: 36px 0 28px; }
.contact-info dl > div { border-top: 1px solid var(--line-d); padding: 16px 0; }
.contact-info dt { font-size: 13px; color: var(--fog); margin-bottom: 2px; }
.contact-info dd { font-size: 1.15rem; font-weight: 300; overflow-wrap: anywhere; }
.contact-info dd a:hover { color: var(--lime); }
.contact-quote { margin-top: 28px; color: var(--fog); font-size: 15px; }
.contact-quote .link { color: var(--ivory); }
.enquiry { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 8px; align-content: start; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--fog); }
.optional { font-size: 12px; opacity: 0.75; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--ivory);
  border: 0; border-bottom: 1px solid #454b48; border-radius: 0;
  padding: 10px 0; min-height: 48px; font-size: 1.05rem; font-weight: 300;
  transition: border-color 0.3s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #6f7672; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--lime); box-shadow: 0 1px 0 var(--lime); }
.field select option { background: var(--ink); color: var(--ivory); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 1px solid var(--ivory); border-bottom: 1px solid var(--ivory); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.error { min-height: 22px; font-size: 13px; color: var(--coral); padding-top: 3px; }
.field [aria-invalid="true"] { border-bottom-color: var(--coral); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.form-foot .btn { min-width: 220px; justify-content: space-between; }
.form-foot .btn[disabled] { opacity: 0.55; cursor: progress; }
.form-note { flex: 1; min-width: 220px; font-size: 13px; color: var(--fog); }
.form-status { margin-top: 20px; border: 1px solid var(--lime); padding: 22px 24px; }
.form-status.is-error { border-color: var(--coral); }
.form-status h3 { margin-bottom: 6px; }
.form-status p { color: #c3c8c4; font-size: 15px; }
.form-status .actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; font-size: 14px; }
.form-status button { text-decoration: underline; text-underline-offset: 6px; min-height: 32px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); padding: 56px var(--pad) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-d); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 14px; color: var(--fog); }
.footer-top ul { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ivory); }
.footer-top a:hover { color: var(--lime); }
.footer-mark { font-stretch: 125%; font-weight: 100; font-size: 11.4vw; line-height: 1.1; letter-spacing: -0.04em; white-space: nowrap; margin: clamp(40px, 8vh, 90px) 0 clamp(20px, 4vh, 40px); color: var(--ivory); text-align: center; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-d); padding-top: 18px; font-size: 13px; color: var(--fog); }

/* ---------- inner pages ---------- */
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.page-head {
  background: var(--ivory);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
  padding: calc(var(--nav-h) + clamp(56px, 11vh, 140px)) var(--pad) clamp(44px, 7vh, 80px);
}
.page-head h1 { grid-column: 1 / 9; }
.page-head p { grid-column: 9 / 13; color: var(--muted); }

.field input[type="file"] { font-size: 14px; padding: 8px 0; }
.field input[type="file"]::file-selector-button { font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: var(--radius); padding: 7px 14px; margin-right: 14px; cursor: pointer; }
.copy-area { width: 100%; margin-top: 14px; background: transparent; color: inherit; border: 1px solid #77756d; padding: 10px; font: inherit; font-size: 13px; }

/* forms on light backgrounds */
.form-light .field label { color: var(--stone); }
.form-light .field input, .form-light .field select, .form-light .field textarea { color: var(--ink); border-bottom-color: #a39f93; }
.form-light .field input::placeholder, .form-light .field textarea::placeholder { color: #8a867b; }
.form-light .field input:focus, .form-light .field select:focus, .form-light .field textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.form-light .field select option { background: var(--paper); color: var(--ink); }
.form-light .field [aria-invalid="true"] { border-bottom-color: #a8321a; }
.form-light .select::after { border-color: var(--ink); }
.form-light .error { color: #a8321a; }
.form-light .form-note { color: var(--stone); }
.form-light .form-status { border-color: var(--ink); }
.form-light .form-status.is-error { border-color: #a8321a; }
.form-light .form-status p { color: var(--stone); }

/* quotation */
.quote { background: var(--paper); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.quote-form { min-width: 0; padding: clamp(40px, 7vh, 72px) clamp(24px, 3.4vw, 56px) clamp(80px, 12vh, 130px) var(--pad); }
.quote-form h2 { margin: 64px 0 18px; }
.quote-form h2:first-child { margin-top: 0; }
.quote-item { border-top: 1px solid var(--ink); padding: 14px 0 4px; margin-bottom: 20px; }
.quote-item-head { display: flex; justify-content: space-between; align-items: center; min-height: 40px; margin-bottom: 8px; }
.item-remove { min-height: 40px; font-size: 14px; color: var(--stone); text-decoration: underline; text-underline-offset: 5px; }
.item-remove:hover { color: var(--ink); }
.item-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 20px; row-gap: 4px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: 1 / -1; }
.quote-side { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding-top: 64px; background: #dfdbd0; }
.quote-view { position: relative; flex: 1 1 auto; min-height: 220px; cursor: grab; }
.quote-view:active { cursor: grabbing; }
.quote-view:focus-visible { outline-offset: -4px; }
.quote-summary { flex: 0 1 auto; max-height: 40%; overflow-y: auto; padding: 20px clamp(22px, 2.6vw, 40px) 26px; border-top: 1px solid #c2bdae; }
.quote-summary h2 { font-size: 14px; color: #4c4a43; margin-bottom: 8px; }
.quote-summary li { border-top: 1px solid #c2bdae; padding: 10px 0; }
.quote-summary li.is-current { border-top-color: var(--ink); }
.quote-summary li p:last-child { font-size: 13px; color: #4c4a43; }
.quote-caveat { margin-top: 8px; font-size: 12px; color: #4c4a43; }

/* careers */
.careers-head { background: var(--ink); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 40px) var(--pad) clamp(56px, 12vh, 130px); overflow: hidden; }
.careers-view { position: absolute; top: var(--nav-h); right: 0; bottom: 0; width: 56%; }
.careers-copy { position: relative; max-width: min(520px, 44%); display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.areas-section { background: var(--ivory); padding: clamp(90px, 15vh, 180px) var(--pad); }
.areas { margin-top: clamp(40px, 7vh, 80px); border-bottom: 1px solid var(--line); }
.areas li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: center; border-top: 1px solid var(--line); padding: 22px 0; }
.areas h3 { font-stretch: 118%; font-weight: 100; font-size: clamp(1.9rem, 4.2vw, 4.25rem); line-height: 1.12; letter-spacing: -0.028em; }
.areas p { color: var(--muted); max-width: 46ch; }
.openings { background: var(--paper); --bg: var(--paper); padding: clamp(90px, 14vh, 170px) var(--pad); }
#openings-list { margin-top: clamp(32px, 5vh, 60px); }
.opening { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 24px; align-items: start; border-top: 1px solid var(--ink); padding: 26px 0; }
.opening-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.apply { background: var(--ink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-content: start; padding: clamp(100px, 16vh, 190px) var(--pad) clamp(90px, 14vh, 160px); }
.apply-head { grid-column: 1 / 5; align-self: start; }
.apply-head h2 { font-size: clamp(2.2rem, 4.2vw, 4.4rem); }
.apply-head p { margin-top: 22px; color: var(--muted); }

/* ---------- motion helpers ---------- */
.js.motion [data-reveal] { opacity: 0; transform: translateY(26px); }
.split-line-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 1100px) {
  .cat-index { display: none; }
  .cat-info { width: min(320px, 36vw); }
  .about-copy { grid-column: 3 / 13; }
  .contact-info { grid-column: 1 / 6; }
  .enquiry { grid-column: 7 / 13; grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  :root { --nav-h: 66px; }

  .hero { min-height: 560px; }
  .hero-title { top: calc(var(--nav-h) + 2vh); font-size: clamp(2.2rem, 10.2vw, 4.6rem); font-stretch: 112%; text-align: left; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); }
  .hero-foot p { font-size: 0.95rem; max-width: 34ch; }
  .hero-actions { gap: 6px; }
  .hero-actions .btn { min-width: 0; --h: 48px; }
  .scroll-cue { display: none; }

  .intro, .about { display: block; }
  .intro-lead { margin-top: 36px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .about-copy { grid-template-columns: 1fr; margin-top: 32px; gap: 16px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 44px; margin-top: 64px; }

  .cat-head, .process-head, .studio-head, .ind-head { display: block; }
  .cat-head p, .process-head p, .studio-head p, .ind-head p { margin-top: 18px; max-width: 46ch; }

  /* catalogue: no scroll-jacking on small screens, swipe or use the pager */
  .cat-track { height: auto; }
  .cat-stage { position: relative; height: auto; min-height: 0; display: flex; flex-direction: column; }
  .cat-view { position: relative; inset: auto; height: 60vh; height: 60svh; min-height: 360px; }
  .cat-word { top: 30vh; top: 30svh; }
  .cat-hint { top: 16px; bottom: auto; }
  .cat-pager { position: relative; left: auto; bottom: auto; justify-content: space-between; padding: 0 var(--pad); order: 3; }
  .cat-info { position: relative; right: auto; bottom: auto; width: auto; padding: 20px var(--pad) 36px; min-height: 380px; order: 4; }

  .viewer[open] { grid-template-columns: 1fr; grid-template-rows: 46% 54%; }

  .process-track { height: calc(100vh + 6 * 80vh); }
  .process-steps { top: auto; bottom: 92px; right: var(--pad); width: auto; height: 220px; margin: 0; }
  .process-steps li { inset: auto 0 0 0; }
  .step-num { font-size: 3.4rem; margin-bottom: 4px; }
  .process-steps p { font-size: 15px; }
  .ink-count { margin-top: 10px; }
  .process-rail { gap: 5px; }
  .process-rail span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .studio-grid { display: block; }
  .studio-preview { position: sticky; top: 0; z-index: 2; height: 46vh; height: 46svh; min-height: 300px; border-bottom: 1px solid var(--line); }
  .studio-controls { padding-inline: var(--pad); }

  .ind-grid { display: block; }
  .ind-stage { position: sticky; top: 0; z-index: 2; height: 48vh; height: 48svh; background: var(--coal); border-bottom: 1px solid var(--line-d); }
  .ind-caption { bottom: 12px; }
  .ind-list { padding: 0 var(--pad) 10vh; }
  .ind-list > li { min-height: 46vh; justify-content: center; }

  .why-grid { display: block; }
  .f-materials, .f-colour, .f-stamp, .f-die, .f-ply, .f-bio { padding-inline: 0; border-right: 0; }
  .f-range li { white-space: normal; }

  .contact-grid { display: block; }
  .enquiry { margin-top: 56px; }
}

@media (max-width: 560px) {
  .nav-end .btn { display: none; }
  .nav.is-solid .nav-end .btn { display: inline-flex; }
  .facts dd { font-size: 1.35rem; }
  .enquiry { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
}

@media (max-height: 700px) and (min-width: 900px) {
  .hero-title { font-size: clamp(2.2rem, 9vh, 5rem); }
  .cat-index button { padding: 3px 0; min-height: 26px; }
  .product dl { margin-top: 12px; }
  .product dl > div { padding: 6px 0; }
}

/* ---------- inner pages, smaller screens ---------- */
@media (max-width: 1100px) {
  .apply-head { grid-column: 1 / 7; }
}

@media (max-width: 899px) {
  .page-head { display: block; }
  .page-head p { margin-top: 20px; max-width: 46ch; }

  .quote { display: flex; flex-direction: column; }
  .quote-side { order: -1; position: static; align-self: stretch; height: auto; padding-top: 0; }
  .quote-view { flex: none; height: 42vh; height: 42svh; min-height: 260px; }
  .quote-summary { max-height: 220px; }
  .quote-form { padding-inline: var(--pad); }
  .item-grid { grid-template-columns: 1fr 1fr; }
  .item-grid > .span-2, .item-grid > .span-3, .item-grid > .span-4, .item-grid > .span-6 { grid-column: 1 / -1; }

  .careers-head { padding-top: var(--nav-h); }
  .careers-view { position: relative; top: auto; right: auto; bottom: auto; width: 100%; flex: 1 1 auto; min-height: 44svh; }
  .careers-copy { max-width: 100%; }
  .areas li, .opening { display: block; }
  .areas p { margin-top: 6px; }
  .opening > * + * { margin-top: 12px; }
  .apply { display: block; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .loader { display: none; }
}
