/* ============================================================
   LINES & LAYERS — Design System · "The Layer Line" v1.0
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
/* Font loading: avoid layout shift while webfonts arrive */
.fonts-loading h1, .fonts-loading h2 { letter-spacing: -0.02em; }

:root {
  --bg:            #0C1111;
  --surface:       #141A1A;
  --surface-high:  #1B2222;
  --text:          #EDEDE8;
  --text-2:        #8E9A97;
  --text-3:        #5A6663;
  --copper:        #C39E6B;
  --copper-deep:   #8A6A3F;
  --line:          rgba(237,237,232,0.08);
  --line-strong:   rgba(237,237,232,0.16);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --fs-display: clamp(2.75rem, 6vw, 5rem);
  --fs-h2:      clamp(1.75rem, 3.5vw, 2.75rem);
  --fs-h3:      1.25rem;
  --fs-body:    1.0625rem;
  --fs-mono:    0.6875rem;

  --container: 1240px;
  --gutter: 24px;
  --pad-x: clamp(24px, 5vw, 64px);
  --section-y: clamp(80px, 12vw, 180px);

  --ease-micro:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro:  180ms;
  --dur-reveal: 600ms;

  --radius: 4px;
  --nav-h: 72px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Layer-line texture behind every page, not just the home hero */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(237,237,232,0.034) 0px,
    rgba(237,237,232,0.034) 1px,
    transparent 1px,
    transparent 7px
  );
  -webkit-mask-image: radial-gradient(ellipse 130% 100% at 50% 45%, #000 25%, transparent 88%);
          mask-image: radial-gradient(ellipse 130% 100% at 50% 45%, #000 25%, transparent 88%);
}

/* Safety net: the first block of any page always clears the fixed nav */
:where(main > *:first-child) { padding-top: var(--nav-h); }

/* Content sits above the texture */
.nav, .menu, main, .footer, .sticky-cta { position: relative; z-index: 1; }

body {
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  font-variant-numeric: proportional-nums;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 1px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(195,158,107,0.12);
}
::selection { background: rgba(195,158,107,0.28); color: var(--text); }

/* ---------- 3. TYPE ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; text-wrap: balance; }
h1 { font-size: var(--fs-display); letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: var(--fs-h2);      letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3);      letter-spacing: -0.01em; font-weight: 500; }
p  { text-wrap: pretty; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lead { color: var(--text-2); max-width: 62ch; }
.measure { max-width: 66ch; }

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

.section { padding-block: var(--section-y); scroll-margin-top: calc(var(--nav-h) + 24px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
/* Deliberate density contrast — sections must not all breathe the same */
.section--dense { padding-block: clamp(56px, 8vw, 110px); }
.section--airy  { padding-block: clamp(100px, 16vw, 240px); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }

.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head__title { grid-column: 1 / span 5; }
.section-head__intro { grid-column: 7 / span 6; align-self: end; color: var(--text-2); }
.section-head .mono { display: block; margin-bottom: 14px; }

@media (max-width: 860px) {
  .section-head__title, .section-head__intro { grid-column: 1 / -1; }
  .section-head__intro { margin-top: 4px; }
}

/* ---------- 5. LAYER LINE (signature motif) ---------- */
.layer-line { position: relative; height: 1px; background: var(--line); }
.layer-line::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--copper-deep), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 700ms var(--ease-reveal);
}
.layer-line.is-visible::after { transform: scaleX(1); }

.strata {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(237,237,232,0.035) 0px, rgba(237,237,232,0.035) 1px,
    transparent 1px, transparent 7px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

/* ---------- 6. REVEAL MOTION ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease-reveal), transform var(--dur-reveal) var(--ease-reveal);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ---------- 7. NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease-micro), backdrop-filter 300ms var(--ease-micro),
              border-color 300ms var(--ease-micro), transform 350ms var(--ease-micro);
}
.nav.is-scrolled {
  background: rgba(12,17,17,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.nav__brand img { width: 26px; height: 26px; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  position: relative; font-size: 0.9375rem; color: var(--text-2); padding-block: 4px;
  transition: color var(--dur-micro) var(--ease-micro);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 400ms var(--ease-reveal);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current] { color: var(--text); }
.nav__links a[aria-current]::after { transform: scaleX(1); background: var(--copper); }

.nav__right { display: flex; align-items: center; gap: 24px; }

.lang { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; }
.lang a { color: var(--text-3); transition: color var(--dur-micro) var(--ease-micro); }
.lang a:hover { color: var(--text-2); }
.lang a[aria-current] { color: var(--text); }
.lang span { color: var(--text-3); opacity: 0.5; }

.nav__burger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--text); transition: transform 300ms var(--ease-micro); }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: calc(var(--nav-h) + 40px) var(--pad-x) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 400ms var(--ease-reveal), visibility 400ms;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a { font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; padding-block: 10px; border-bottom: 1px solid var(--line); }
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__right > .btn { display: none; }
}

/* ---------- 8. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; min-height: 48px;
  transition: background var(--dur-micro) var(--ease-micro), border-color var(--dur-micro) var(--ease-micro),
              color var(--dur-micro) var(--ease-micro), transform var(--dur-micro) var(--ease-micro);
}
.btn--primary { background: var(--copper); color: #0C1111; font-weight: 600; }
.btn--primary:hover { background: #D0AC7B; transform: translateY(-1px); }
.btn--primary:active { background: var(--copper-deep); transform: none; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-3); background: rgba(237,237,232,0.03); }
.btn--sm { padding: 10px 18px; min-height: 40px; font-size: 0.875rem; }

.link-trace { display: inline-flex; align-items: center; gap: 8px; position: relative; font-size: 0.9375rem; color: var(--text); padding-bottom: 3px; }
.link-trace::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--text-3); transform: scaleX(0); transform-origin: left;
  transition: transform 400ms var(--ease-reveal);
}
.link-trace:hover::after { transform: scaleX(1); }
.link-trace svg { width: 14px; height: 14px; transition: transform var(--dur-micro) var(--ease-micro); }
.link-trace:hover svg { transform: translateX(3px); }

/* ---------- 9. HERO ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); width: 100%; align-items: center; }
.hero__text { grid-column: 1 / span 6; }
.hero__visual { grid-column: 8 / span 5; }
.hero h1 { margin: 18px 0 24px; }
.hero__sub { color: var(--text-2); font-size: 1.125rem; max-width: 46ch; margin-bottom: 40px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.specs { display: flex; margin-top: 56px; border-top: 1px solid var(--line); }
.specs__item { padding: 18px 24px 0 0; margin-right: 24px; border-right: 1px solid var(--line); padding-right: 24px; }
.specs__item:last-child { border-right: 0; margin-right: 0; }
.specs__val { font-variant-numeric: tabular-nums; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; display: block; }
.specs__key { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; display: block; }

.layer-stack {
  position: relative; aspect-ratio: 4 / 5;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg));
  overflow: hidden;
}
.layer-stack__lines { position: absolute; inset: 0; }
.layer-stack__lines i {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.layer-stack__glow {
  position: absolute; left: 50%; top: 58%; width: 62%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(195,158,107,0.16), transparent 68%);
  filter: blur(6px);
}
.layer-stack__label { position: absolute; left: 20px; bottom: 18px; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.layer-stack__tick { position: absolute; right: 20px; top: 20px; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; color: var(--text-3); }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 48px) 64px; }
  .hero__text  { grid-column: 1 / -1; order: 2; }
  .hero__visual{ grid-column: 1 / -1; order: 1; margin-bottom: 40px; }
  .layer-stack { aspect-ratio: 16 / 10; }
  .hero__cta .btn { flex: 1 1 auto; }
  .specs { overflow-x: auto; scrollbar-width: none; }
  .specs::-webkit-scrollbar { display: none; }
  .specs__item { flex: 0 0 auto; }
}

/* ---------- 10. CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 300ms var(--ease-reveal), border-color 300ms var(--ease-micro), background 300ms var(--ease-micro);
}
.card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--copper-deep), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 500ms var(--ease-reveal);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-high); }
.card:hover::after { transform: scaleX(1); }
.card__icon { color: var(--text-2); }
.card__icon svg { width: 30px; height: 30px; stroke-width: 1.25; }
.card__benefit { color: var(--copper); font-size: 0.9375rem; font-weight: 500; }
.card__desc { color: var(--text-2); font-size: 0.9375rem; }
.card__spec {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3);
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--dur-micro) var(--ease-micro), transform var(--dur-micro) var(--ease-micro);
}
.card:hover .card__spec { opacity: 1; transform: none; }
.card__foot { margin-top: auto; padding-top: 20px; }
@media (max-width: 900px) { .card__spec { opacity: 1; transform: none; } }

/* ---------- 11. PROCESS ---------- */
.step {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter);
  padding-block: 40px; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__idx { grid-column: 1 / span 1; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--text-3); padding-top: 6px; }
.step__body { grid-column: 2 / span 6; }
.step__meta { grid-column: 10 / span 3; text-align: right; color: var(--text-3); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; padding-top: 6px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.9375rem; }
@media (max-width: 860px) {
  .step__idx  { grid-column: 1 / -1; }
  .step__body { grid-column: 1 / -1; margin-top: 8px; }
  .step__meta { grid-column: 1 / -1; text-align: left; margin-top: 10px; padding-top: 0; }
}

/* ---------- 12. SPLIT / PEOPLE / SPECS ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.split__a { grid-column: 1 / span 6; }
.split__b { grid-column: 8 / span 5; }
@media (max-width: 900px) { .split__a, .split__b { grid-column: 1 / -1; } .split__b { margin-top: 40px; } }

.person { padding-block: 24px; border-top: 1px solid var(--line); }
.person:last-child { border-bottom: 1px solid var(--line); }
.person__name { font-size: 1.125rem; font-weight: 500; }
.person__role { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
.person__note { color: var(--text-2); font-size: 0.9375rem; margin-top: 12px; }

.spec-list { display: flex; flex-direction: column; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.spec-row:first-child { border-top: 1px solid var(--line); }
.spec-row dt { color: var(--text-3); font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 4px; }
.spec-row dd { color: var(--text); text-align: right; margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- 13. FORM ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-size: 1rem;
  transition: border-color var(--dur-micro) var(--ease-micro), box-shadow var(--dur-micro) var(--ease-micro);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6663' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(195,158,107,0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-sent { padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.form-sent__title { color: var(--copper); font-size: 1.125rem; font-weight: 500; margin-bottom: 8px; }
.form-sent p { color: var(--text-2); font-size: 0.9375rem; }

/* ---------- 14. CTA BAND ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-2); margin: 0 auto 32px; max-width: 52ch; }

/* ---------- 15. FOOTER ---------- */
.footer { padding-block: 64px 40px; }
.footer__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.footer__brand { grid-column: 1 / span 4; }
.footer__col { grid-column: span 2; }
.footer__col:nth-of-type(2) { grid-column: 7 / span 2; }
.footer__tag { color: var(--text-3); font-size: 0.875rem; margin-top: 12px; max-width: 30ch; }
.footer h4 { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 0.9375rem; color: var(--text-2); transition: color var(--dur-micro) var(--ease-micro); }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--text-3);
}
@media (max-width: 860px) {
  .footer__brand { grid-column: 1 / -1; margin-bottom: 32px; }
  .footer__col, .footer__col:nth-of-type(2) { grid-column: span 6; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 16. MOBILE STICKY CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom));
  background: rgba(12,17,17,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform 350ms var(--ease-reveal);
  display: none;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 900px) { .sticky-cta { display: block; } }

/* ---------- 17. UTILITIES ---------- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--copper); color: var(--bg); padding: 12px 20px; font-weight: 600; }
.skip:focus { left: 0; }
.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; }

/* ---------- 18. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .layer-line::after { transform: scaleX(1); }
}

/* ============================================================
   19. STL PRINT SIMULATOR
   ============================================================ */
.ps {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg));
  overflow: hidden;
}

.ps__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 500ms var(--ease-reveal);
}
.ps.is-loaded .ps__canvas { opacity: 1; }

/* Build plate line */
.ps::after {
  content: '';
  position: absolute; left: 12%; right: 12%; bottom: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 25%, var(--line-strong) 75%, transparent);
  pointer-events: none;
}

/* Drop zone — visible until a file is loaded */
.ps__drop {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
  cursor: pointer;
  transition: opacity 400ms var(--ease-reveal), background 200ms var(--ease-micro);
}
.ps__drop:hover, .ps__drop.is-over { background: rgba(195,158,107,0.05); }
.ps__drop.is-over { outline: 1px dashed var(--copper); outline-offset: -12px; }
.ps.is-loaded .ps__drop { opacity: 0; pointer-events: none; }

.ps__icon { color: var(--text-3); margin-bottom: 4px; }
.ps__icon svg { width: 34px; height: 34px; stroke-width: 1.25; }
.ps__label { font-size: 0.9375rem; color: var(--text-2); }
.ps__hint { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.ps__hint u { text-decoration-color: var(--text-3); text-underline-offset: 3px; }
.ps__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Readout — mono telemetry, the cotation language */
.ps__readout { font-variant-numeric: tabular-nums;
  position: absolute; left: 16px; bottom: 14px; z-index: 3;
  display: flex; gap: 14px;
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
  opacity: 0; transition: opacity 400ms var(--ease-reveal);
}
.ps.is-loaded .ps__readout { font-variant-numeric: tabular-nums; opacity: 1; }
.ps__readout span:first-child { color: var(--copper); }

.ps__name {
  position: absolute; right: 16px; top: 14px; z-index: 3;
  max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.12em; color: var(--text-3);
  opacity: 0; transition: opacity 400ms var(--ease-reveal);
}
.ps.is-loaded .ps__name { opacity: 1; }

.ps__actions {
  position: absolute; right: 14px; bottom: 12px; z-index: 4;
  display: flex; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 400ms var(--ease-reveal);
}
.ps.is-loaded .ps__actions { opacity: 1; pointer-events: auto; }

.ps__replay, .ps__change {
  position: relative; z-index: 4;
  background: rgba(20,26,26,0.85); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--text-2);
  padding: 7px 13px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.16em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: color var(--dur-micro) var(--ease-micro), border-color var(--dur-micro) var(--ease-micro);
}
.ps__replay:hover, .ps__change:hover { color: var(--text); border-color: var(--text-3); }

/* Drag affordance */
.ps.is-loaded .ps__canvas { cursor: grab; }
.ps.is-dragging .ps__canvas { cursor: grabbing; }

.ps__hint-drag {
  position: absolute; left: 50%; bottom: 46px; z-index: 3;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.5625rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
  background: rgba(20,26,26,0.7); border-radius: var(--radius);
  padding: 5px 10px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 500ms var(--ease-reveal);
}
.ps.is-loaded .ps__hint-drag { opacity: 1; }
.ps.is-dragging .ps__hint-drag { opacity: 0; }
.ps__hint-drag[hidden] { display: none; }

.ps__canvas:focus-visible { outline: 1px solid var(--copper); outline-offset: -3px; }

.ps__error {
  position: absolute; left: 16px; right: 16px; bottom: 44px; z-index: 5;
  background: rgba(20,26,26,0.95); border: 1px solid var(--copper-deep);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 0.8125rem; color: var(--text-2); text-align: center;
}

@media (max-width: 980px) {
  .ps { aspect-ratio: 16 / 11; }
}

/* ============================================================
   20. EXPERTISE COLUMNS — sized to fit one screen
   ============================================================ */

/* Compact page header so the columns start high */
.sf-head {
  padding-top: calc(var(--nav-h) + clamp(24px, 4vh, 48px));
  padding-bottom: clamp(14px, 2vh, 24px);
}
.sf-head h1 {
  font-size: clamp(1.75rem, 1rem + 2.2vw, 2.6rem);
  margin: 10px 0 8px;
  max-inline-size: none;
}
.sf-head__sub {
  color: var(--text-2);
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem);
  max-width: 74ch;
}

.sf-cols { padding-bottom: clamp(32px, 5vh, 64px); }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
  align-items: stretch;
}

.exp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 1.8vh, 26px) clamp(16px, 1.4vw, 24px);
  display: flex;
  flex-direction: column;
  transition: border-color 300ms var(--ease-micro), background 300ms var(--ease-micro);
}
.exp:hover { border-color: var(--line-strong); background: var(--surface-high); }

.exp__icon { color: var(--text-2); margin-bottom: clamp(8px, 1vh, 14px); }
.exp__icon svg { width: clamp(24px, 2.4vh, 30px); height: clamp(24px, 2.4vh, 30px); stroke-width: 1.25; }

.exp h2 {
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  max-inline-size: none;
}
.exp__benefit {
  color: var(--copper);
  font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: clamp(8px, 1vh, 12px);
}
.exp__desc {
  color: var(--text-2);
  font-size: clamp(0.8125rem, 0.78rem + 0.12vw, 0.875rem);
  line-height: 1.5;
  margin-bottom: clamp(12px, 1.6vh, 20px);
}

.exp h3 {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.exp .spec-list { margin-bottom: clamp(12px, 1.6vh, 20px); }
.exp .spec-row {
  padding-block: clamp(4px, 0.6vh, 8px);
  font-size: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  gap: 10px;
  line-height: 1.35;
}
.exp .spec-row dt { font-size: 0.5625rem; padding-top: 2px; }
.exp .spec-row dd { text-align: right; }

.exp__uses { list-style: none; padding: 0; margin: 0 0 clamp(12px, 1.6vh, 20px); border-top: 1px solid var(--line); }
.exp__uses li {
  padding-block: clamp(4px, 0.6vh, 8px);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  line-height: 1.35;
}
.exp__foot { margin-top: auto; padding-top: 4px; }
.exp__foot .link-trace { font-size: clamp(0.75rem, 0.73rem + 0.1vw, 0.875rem); }

/* Explanatory note block (lead times, legal reserves) */
.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--copper-deep);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 2.5vw, 30px) clamp(20px, 2.5vw, 34px);
  max-width: 88ch;
}
.note__title {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}
.note__body { color: var(--text-2); font-size: 0.9375rem; line-height: 1.7; margin: 0; }

/* Short viewports: let it scroll rather than crush the type */
@media (max-height: 700px) and (min-width: 1081px) {
  .sf-head { padding-top: calc(var(--nav-h) + 20px); }
  .exp .spec-row:nth-last-child(-n+1) { display: none; }
}

@media (max-width: 1080px) {
  .exp-grid { grid-template-columns: 1fr; gap: 16px; }
  .exp { padding: 24px 22px; }
  .exp h2 { font-size: 1.25rem; }
  .exp__benefit, .exp__desc, .exp .spec-row, .exp__uses li { font-size: 0.875rem; }
}

/* ============================================================
   21. LOADING CHOREOGRAPHY & FINAL POLISH
   ============================================================ */

/* Page arrives composed, not flickering into place */
@keyframes ll-fade-in { from { opacity: 0 } to { opacity: 1 } }
body { animation: ll-fade-in 320ms var(--ease-micro) both; }

/* Hanging punctuation & optical alignment on lead paragraphs */
.lead, .hero__sub, .section-head__intro {
  hanging-punctuation: first last;
}

/* Headings: prevent orphan words on two-line titles */
h1, h2 { text-wrap: balance; max-inline-size: 20ch; }
.hero h1 { max-inline-size: 16ch; }
.cta-band h2 { max-inline-size: 24ch; margin-inline: auto; }

/* Mono readouts sit on the baseline more precisely */
.mono { font-feature-settings: 'kern' 1; font-variant-numeric: tabular-nums; }

/* Links inside body copy — underline offset that respects descenders */
main p a:not(.btn):not(.link-trace) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--text-3);
  transition: text-decoration-color var(--dur-micro) var(--ease-micro);
}
main p a:not(.btn):not(.link-trace):hover { text-decoration-color: var(--copper); }

/* Buttons: subtle press feedback rather than a hard state jump */
.btn { will-change: transform; }
.btn:active { transform: translateY(0) scale(0.985); }

/* Specs strip: last item shouldn't carry trailing space */
.specs__item:last-child { padding-right: 0; }

/* Scrollbar — matches the palette instead of the OS default */
@supports (scrollbar-color: red blue) {
  html { scrollbar-color: var(--text-3) var(--bg); scrollbar-width: thin; }
}

/* Selection inside the copper button stays legible */
.btn--primary::selection { background: rgba(12,17,17,0.25); color: #0C1111; }

/* Print: strip the furniture, keep the substance */
@media print {
  .nav, .menu, .sticky-cta, .ps, .layer-line { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}

/* Legal entities in the footer */
.footer__ent{
  display:flex; flex-direction:column; gap:2px;
  margin-top:14px; font-size:0.875rem; color:var(--text-2);
}
.footer__ent .mono{ font-size:0.625rem; letter-spacing:0.14em; color:var(--text-3); }
