/* ==========================================================================
   Ferro Tech Alloys — site stylesheet
   Palette: graphite + foundry sand + molten orange (from the logo)
   Type: Archivo (expanded display) / Inter (text) / JetBrains Mono (specs)
   ========================================================================== */

:root {
  /* Graphite */
  --ink-950: #0E0F11;
  --ink-900: #16181B;
  --ink-850: #1B1E22;
  --ink-800: #22262B;
  --ink-700: #2E3339;
  --ink-600: #464C54;
  /* Steel */
  --steel-500: #6B737C;
  --steel-400: #8E969F;
  --steel-300: #B4BAC1;
  --steel-200: #D5D9DD;
  --steel-100: #E8EAEC;
  /* Foundry sand */
  --sand-200: #E9E4DA;
  --sand-100: #F4F1EB;
  --sand-50:  #FAF8F4;
  --white: #FFFFFF;
  /* Heat */
  --molten: #E8742E;          /* brand orange — on dark only for text */
  --molten-hi: #FF9A4D;
  --molten-glow: #FFB86B;
  --ember: #B3470F;           /* orange text on light backgrounds (7:1) */
  --rust: #7A2E0A;
  --heat: linear-gradient(100deg, #FFC46B 0%, #FF9A4D 22%, #E8742E 55%, #B3470F 100%);

  /* Semantic */
  --bg: var(--sand-50);
  --fg: var(--ink-900);
  --fg-muted: #4F565E;
  --line: rgba(14, 15, 17, .12);
  --line-strong: rgba(14, 15, 17, .22);
  --line-dark: rgba(255, 255, 255, .10);
  --line-dark-strong: rgba(255, 255, 255, .20);
  --on-dark: #F2EFEA;
  --on-dark-muted: #A9AFB6;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + .45vw, 1.3125rem);
  --fs-h4: clamp(1.15rem, 1.05rem + .4vw, 1.375rem);
  --fs-h3: clamp(1.4rem, 1.2rem + .8vw, 1.875rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4vw, 5.25rem);
  --fs-mega: clamp(2.75rem, 1.4rem + 5.6vw, 6.5rem);

  /* Space & layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --section: clamp(72px, 9vw, 144px);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 88px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow-lg: 0 30px 60px -20px rgba(14, 15, 17, .35), 0 12px 24px -12px rgba(14, 15, 17, .2);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; font-stretch: 112%; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--molten); color: var(--ink-950); }
:focus-visible { outline: 3px solid var(--molten); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--molten); color: var(--ink-950); padding: 12px 18px;
  font-weight: 600; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.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; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--sand { background: var(--sand-100); }
.section--white { background: var(--white); }
.section--dark { background: var(--ink-950); color: var(--on-dark); }
.section--dark-2 { background: var(--ink-900); color: var(--on-dark); }
.section--grain::before {
  content: ""; position: absolute; inset: 0; background-image: var(--grain);
  opacity: .07; pointer-events: none; mix-blend-mode: overlay;
}
.section--dark .muted, .section--dark-2 .muted { color: var(--on-dark-muted); }
.muted { color: var(--fg-muted); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ember);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .section--dark-2 .eyebrow, .on-dark .eyebrow { color: var(--molten-hi); }
.eyebrow .idx { color: var(--fg-muted); }
.section--dark .eyebrow .idx, .section--dark-2 .eyebrow .idx { color: var(--on-dark-muted); }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.1; }
.h4 { font-size: var(--fs-h4); line-height: 1.2; font-stretch: 105%; font-weight: 700; letter-spacing: 0; }
.mega { font-size: var(--fs-mega); line-height: .95; text-transform: uppercase; letter-spacing: -.015em; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--fg-muted); max-width: 62ch; }
.section--dark .lead, .section--dark-2 .lead, .on-dark .lead { color: var(--on-dark-muted); }
.text-heat {
  background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-ember { color: var(--ember); }
.mono { font-family: var(--font-mono); }
.measure { max-width: 64ch; }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--molten); --btn-fg: var(--ink-950); --btn-bd: var(--molten);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  border-radius: 999px; font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover svg.i-arrow { transform: translateX(4px); }
.btn--primary:hover { --btn-bg: var(--molten-hi); --btn-bd: var(--molten-hi); box-shadow: 0 10px 30px -8px rgba(232, 116, 46, .6); }
.btn:active { transform: translateY(1px); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: var(--line-dark-strong); }
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.08); --btn-bd: rgba(255,255,255,.45); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink-900); --btn-fg: var(--white); --btn-bd: var(--ink-900); }
.btn--dark { --btn-bg: var(--ink-900); --btn-fg: var(--white); --btn-bd: var(--ink-900); }
.btn--dark:hover { --btn-bg: var(--ink-700); --btn-bd: var(--ink-700); }
.btn--sm { min-height: 44px; padding: 0 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--ember); font-size: var(--fs-sm);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease-out); padding-bottom: 2px;
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow, .section--dark-2 .link-arrow, .on-dark .link-arrow { color: var(--molten-hi); }

/* ---------- Top bar + Header ---------- */
.topbar { background: var(--ink-950); color: var(--on-dark-muted); font-size: var(--fs-xs); border-bottom: 1px solid var(--line-dark); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--white); }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--molten); }
.topbar__badge { font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; font-size: .6875rem; }
@media (max-width: 860px) { .topbar__hide-sm { display: none; } }
@media (max-width: 520px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 15, 17, .86);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
  transition: background-color .3s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(14, 15, 17, .96); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 70px; width: auto; transition: height .3s var(--ease-out); }
.site-header.is-scrolled .brand img { height: 58px; }
@media (max-width: 520px) { .brand img { height: 60px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--on-dark-muted);
  transition: color .2s var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--molten); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--white); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-dark-strong);
  background: transparent; color: var(--white); align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1140px) {
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150; background: var(--ink-950); color: var(--on-dark);
  display: flex; flex-direction: column; padding: 0 var(--gutter) 32px;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility .3s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); border-bottom: 1px solid var(--line-dark); }
.drawer__top img { height: 44px; width: auto; }
.drawer nav { display: grid; padding-block: 24px; }
.drawer nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.6rem; text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease-out), opacity .5s var(--ease-out), color .2s;
}
.drawer nav a[aria-current="page"] { color: var(--molten-hi); }
.drawer.is-open nav a { transform: none; opacity: 1; }
.drawer.is-open nav a:nth-child(2) { transition-delay: .04s; } .drawer.is-open nav a:nth-child(3) { transition-delay: .08s; }
.drawer.is-open nav a:nth-child(4) { transition-delay: .12s; } .drawer.is-open nav a:nth-child(5) { transition-delay: .16s; }
.drawer.is-open nav a:nth-child(6) { transition-delay: .2s; } .drawer.is-open nav a:nth-child(7) { transition-delay: .24s; }
.drawer nav a svg { width: 22px; height: 22px; color: var(--molten); }
.drawer__foot { margin-top: auto; display: grid; gap: 14px; }
.drawer__foot .btn { width: 100%; }
body.no-scroll { overflow: hidden; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--on-dark); background: var(--ink-950);
  min-height: min(calc(100svh - var(--header-h) - 40px), 920px);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; transform: scale(1.06); animation: heroZoom 18s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,15,17,.94) 0%, rgba(14,15,17,.78) 38%, rgba(14,15,17,.25) 72%, rgba(14,15,17,.35) 100%),
    linear-gradient(0deg, rgba(14,15,17,1) 0%, rgba(14,15,17,0) 45%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .08; mix-blend-mode: overlay; pointer-events: none; }
.hero__content { padding-block: clamp(80px, 12vh, 160px) clamp(40px, 6vh, 72px); }
.hero__title { font-size: var(--fs-mega); text-transform: uppercase; line-height: .94; letter-spacing: -.02em; max-width: 13ch; margin-top: 24px; }
.hero__lead { margin-top: 28px; font-size: var(--fs-lg); color: #C9CDD2; max-width: 52ch; }
.hero .btn-row { margin-top: 36px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0;
  border-top: 1px solid var(--line-dark-strong);
}
.hero__stats dd { margin: 0; }
.hero__stat { padding: 26px 24px 32px; border-left: 1px solid var(--line-dark); }
.hero__stat:first-child { border-left: 0; padding-left: 0; }
.hero__stat-value { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1; color: var(--white); }
.hero__stat-value small { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; color: var(--molten-hi); margin-left: 6px; letter-spacing: .06em; }
.hero__stat-label { margin-top: 10px; font-size: var(--fs-xs); color: var(--on-dark-muted); letter-spacing: .02em; }
@media (max-width: 860px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 420px) { .hero__stat { padding: 20px 14px 22px; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--ink-950); color: var(--on-dark); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,15,17,.97) 0%, rgba(14,15,17,.85) 45%, rgba(14,15,17,.4) 100%), linear-gradient(0deg, rgba(14,15,17,.9), rgba(14,15,17,0) 60%); }
.page-hero .container { padding-block: clamp(72px, 10vw, 140px) clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: var(--fs-h1); text-transform: uppercase; line-height: .96; max-width: 16ch; margin-top: 22px; }
.page-hero .lead { margin-top: 24px; color: #C3C8CE; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { color: var(--ink-600); }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-dark-strong); border-radius: 999px; font-size: var(--fs-xs); color: var(--on-dark);
  background: rgba(255,255,255,.03); white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; color: var(--molten-hi); }
.chip--light { border-color: var(--line-strong); color: var(--ink-800); background: var(--white); }
.chip--light svg { color: var(--ember); }

/* ---------- Sub navigation (in-page) ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(250, 248, 244, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px;
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--fg-muted);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.subnav a .mono { font-size: .6875rem; color: var(--steel-400); }
.subnav a:hover { color: var(--ink-900); }
.subnav a.is-active { color: var(--ink-950); border-bottom-color: var(--molten); }

/* ---------- Process strip ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.process__step { position: relative; padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line); }
.process__step + .process__step { padding-left: 24px; border-left: 1px solid var(--line); }
.process__step:nth-child(6) { padding-left: 0; border-left: 0; }
.process__num { font-family: var(--font-mono); font-size: .75rem; color: var(--ember); letter-spacing: .1em; }
.process__icon { width: 40px; height: 40px; margin: 22px 0 18px; color: var(--ink-900); }
.process__title { font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: 1.125rem; line-height: 1.2; }
.process__text { margin-top: 8px; font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.5; }
.process__step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--heat);
  transition: width .8s var(--ease-out);
}
.process__step.is-visible::before { width: 100%; }
@media (max-width: 1024px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__step, .process__step + .process__step { padding: 24px 20px 28px; border-left: 0; }
  .process__step:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
  .process__step:nth-child(even) { border-left: 0; }
  .process__step, .process__step + .process__step { padding-inline: 0; }
}

/* ---------- Material cards ---------- */
.material {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 3.5vw, 48px);
  background: var(--ink-900); color: var(--on-dark); border: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 22px; min-height: 100%;
  transition: transform .5s var(--ease-out), border-color .4s;
}
.material:hover { transform: translateY(-4px); border-color: rgba(232,116,46,.45); }
.material::after {
  content: ""; position: absolute; right: -30%; top: -40%; width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232,116,46,.22), transparent 62%); pointer-events: none;
  transition: transform .8s var(--ease-out);
}
.material:hover::after { transform: translate(-6%, 6%); }
.material .muted, .tile .muted { color: var(--on-dark-muted); }
.material__code { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--molten-hi); }
.material__title { font-size: var(--fs-h3); text-transform: uppercase; }
.material__grades { display: flex; flex-wrap: wrap; gap: 8px; }
.material__grades span {
  font-family: var(--font-mono); font-size: .8125rem; padding: 6px 12px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark);
}
.material__props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border-radius: 10px; overflow: hidden; margin-top: auto; }
.material__props div { background: var(--ink-850); padding: 16px 18px; }
.material__props dt { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.material__props dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: 1.125rem; }

/* ---------- Bento capabilities ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 14px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  background: var(--ink-850); color: var(--on-dark); border: 1px solid var(--line-dark);
  padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  text-decoration: none; transition: border-color .35s var(--ease-out);
}
.tile:hover { border-color: rgba(232,116,46,.5); }
.tile__media { position: absolute; inset: 0; z-index: -2; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,15,17,.15) 0%, rgba(14,15,17,.62) 40%, rgba(14,15,17,.96) 85%); }
.tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(232,116,46,.12); color: var(--molten-hi); margin-bottom: auto; }
.tile__icon svg { width: 22px; height: 22px; }
.tile__kicker { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--molten-hi); }
.tile__title { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.08; }
.tile__text { color: var(--on-dark-muted); font-size: var(--fs-sm); max-width: 48ch; }
.tile__big { font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); line-height: .95; }
.tile__big small { font-family: var(--font-mono); font-size: .875rem; font-weight: 500; color: var(--molten-hi); margin-left: 6px; letter-spacing: .04em; }
.tile__arrow { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-dark-strong); display: grid; place-items: center; transition: background-color .3s, border-color .3s, transform .4s var(--ease-out); }
.tile__arrow svg { width: 16px; height: 16px; }
.tile:hover .tile__arrow { background: var(--molten); border-color: var(--molten); color: var(--ink-950); transform: rotate(-45deg); }
.tile--heat { background: radial-gradient(120% 100% at 100% 0%, rgba(255,154,77,.35), transparent 55%), var(--ink-850); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .span-4.keep-wide, .span-3.keep-wide { grid-column: span 2; }
  .row-2 { grid-row: span 1; min-height: 360px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-4.keep-wide, .span-3.keep-wide { grid-column: span 1; }
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--wide-media { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split--wide-media { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-900); box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-frame--tall img { aspect-ratio: 4 / 5; }
.media-frame--wide img { aspect-ratio: 16 / 10; }
.media-tag {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; background: rgba(14,15,17,.78); color: var(--on-dark);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--fs-xs); border: 1px solid var(--line-dark);
}
.media-tag b { font-family: var(--font-mono); font-weight: 500; color: var(--molten-hi); letter-spacing: .06em; }

/* ---------- Lists ---------- */
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks svg { width: 20px; height: 20px; color: var(--ember); margin-top: 3px; }
.section--dark .ticks svg, .section--dark-2 .ticks svg { color: var(--molten-hi); }
.ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 640px) { .ticks--2 { grid-template-columns: 1fr; } }

/* Equipment list (datasheet rows) */
.equip { border-top: 1px solid var(--line-strong); }
.equip li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.equip__n { font-family: var(--font-mono); font-size: .75rem; color: var(--steel-500); }
.equip__name { font-weight: 600; }
.equip__name span { display: block; font-weight: 400; color: var(--fg-muted); font-size: var(--fs-sm); margin-top: 2px; }
.equip__val { font-family: var(--font-mono); font-size: .8125rem; color: var(--ember); text-align: right; white-space: nowrap; }
.section--dark .equip, .section--dark-2 .equip { border-color: var(--line-dark-strong); }
.section--dark .equip li, .section--dark-2 .equip li { border-color: var(--line-dark); }
.section--dark .equip__name span, .section--dark-2 .equip__name span { color: var(--on-dark-muted); }
.section--dark .equip__val, .section--dark-2 .equip__val { color: var(--molten-hi); }
@media (max-width: 560px) { .equip li { grid-template-columns: 36px minmax(0, 1fr); } .equip__val { grid-column: 2; text-align: left; } }

/* ---------- Spec block (big numbers) ---------- */
.specs { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.spec { padding: 28px 24px 4px 0; }
.spec + .spec { padding-left: 24px; border-left: 1px solid var(--line); }
.spec__label { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.spec__value { margin-top: 12px; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.625rem); line-height: 1; }
.spec__value small { font-family: var(--font-mono); font-weight: 500; font-size: .8125rem; color: var(--ember); margin-left: 4px; letter-spacing: .04em; }
.spec__note { margin-top: 8px; font-size: var(--fs-sm); color: var(--fg-muted); }
.section--dark .specs, .section--dark-2 .specs { border-color: var(--line-dark-strong); }
.section--dark .spec + .spec, .section--dark-2 .spec + .spec { border-color: var(--line-dark); }
.section--dark .spec__label, .section--dark-2 .spec__label, .section--dark .spec__note, .section--dark-2 .spec__note { color: var(--on-dark-muted); }
.section--dark .spec__value small, .section--dark-2 .spec__value small { color: var(--molten-hi); }
@media (max-width: 760px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec, .spec + .spec { padding: 22px 16px 18px 0; border-left: 0; }
  .spec:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* ---------- Infrastructure blocks ---------- */
.block { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.block:first-of-type { border-top: 0; }
.block__head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.block__num { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: clamp(2.5rem, 2rem + 2vw, 4rem); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--steel-300); }
.block__head h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); text-transform: uppercase; }
.block__head .lead { margin-top: 16px; }
@media (max-width: 760px) { .block__head { grid-template-columns: 1fr; gap: 12px; } }

.machine-card {
  border-radius: var(--radius); padding: 28px; background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; height: 100%;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .4s var(--ease-out);
}
.machine-card:hover { border-color: rgba(179,71,15,.4); box-shadow: 0 20px 40px -24px rgba(14,15,17,.25); transform: translateY(-3px); }
.machine-card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--sand-100); color: var(--ember); }
.machine-card__icon svg { width: 24px; height: 24px; }
.machine-card__qty { font-family: var(--font-display); font-weight: 800; font-stretch: 115%; font-size: 2.75rem; line-height: 1; }
.machine-card__qty small { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--ember); letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; }
.machine-card h3 { font-size: 1.25rem; font-stretch: 108%; font-weight: 700; line-height: 1.2; }
.machine-card p { color: var(--fg-muted); font-size: var(--fs-sm); }
.machine-card dl { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: grid; gap: 6px; }
.machine-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.machine-card dt { color: var(--fg-muted); }
.machine-card dd { margin: 0; font-family: var(--font-mono); font-size: .8125rem; text-align: right; }
.section--sand .machine-card { background: var(--sand-50); }

/* Dark variant cards */
.dcard { border-radius: var(--radius); padding: 28px; background: var(--ink-850); border: 1px solid var(--line-dark); height: 100%; display: flex; flex-direction: column; gap: 12px; transition: border-color .3s; }
.dcard:hover { border-color: rgba(232,116,46,.45); }
.dcard__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(232,116,46,.12); color: var(--molten-hi); }
.dcard__icon svg { width: 22px; height: 22px; }
.dcard h3 { font-size: 1.1875rem; font-stretch: 106%; font-weight: 700; line-height: 1.25; }
.dcard p { color: var(--on-dark-muted); font-size: var(--fs-sm); }
.dcard .tag { margin-top: auto; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--molten-hi); }

/* ---------- Industry cards ---------- */
.industry {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 32px; min-height: 340px;
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s, transform .5s var(--ease-out);
}
.industry:hover { transform: translateY(-4px); border-color: rgba(179,71,15,.35); }
.industry__num { font-family: var(--font-mono); font-size: .75rem; color: var(--steel-500); letter-spacing: .1em; }
.industry__icon { width: 64px; height: 64px; color: var(--ember); margin: 28px 0 auto; }
.industry h3 { margin-top: 28px; font-size: var(--fs-h4); font-stretch: 108%; font-weight: 800; line-height: 1.15; }
.industry p { margin-top: 10px; font-size: var(--fs-sm); color: var(--fg-muted); }
.industry ul { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.industry li { font-size: .75rem; padding: 5px 10px; border-radius: 999px; background: var(--sand-100); color: var(--ink-700); }

/* ---------- Brand feature (HBT) ---------- */
.brandband {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  background: var(--ink-900); color: var(--on-dark); padding: clamp(32px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.brandband .lead, .on-dark .muted { color: var(--on-dark-muted); }
.brandband .eyebrow { color: var(--molten-hi); }
.brandband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 100% 50%, rgba(232,116,46,.28), transparent 60%); }
.brandband__art { justify-self: center; width: min(100%, 340px); color: var(--molten-hi); }
@media (max-width: 860px) { .brandband { grid-template-columns: 1fr; } .brandband__art { width: 220px; justify-self: start; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
.table caption { text-align: left; padding: 20px 24px 0; font-weight: 600; caption-side: top; }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); background: var(--sand-100); white-space: nowrap; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr { transition: background-color .2s; }
.table tbody tr:hover { background: var(--sand-50); }
.table tbody th { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 1rem; white-space: nowrap; }
.table td.num { font-family: var(--font-mono); font-size: .8125rem; white-space: nowrap; }
.table-note { margin-top: 12px; font-size: var(--fs-xs); color: var(--fg-muted); }

/* ---------- Quote / proof band ---------- */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.proof > div { padding: 28px; border-left: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.proof > div:first-child { border-left: 0; }
.proof svg { width: 28px; height: 28px; color: var(--ember); flex-shrink: 0; }
.proof b { display: block; font-weight: 600; }
.proof span { display: block; font-size: var(--fs-sm); color: var(--fg-muted); margin-top: 4px; }
@media (max-width: 1024px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proof > div:nth-child(3) { border-left: 0; } .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .proof { grid-template-columns: 1fr; } .proof > div { border-left: 0 !important; } .proof > div + div { border-top: 1px solid var(--line); } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; background: var(--ink-950); color: var(--on-dark);
  padding-block: clamp(80px, 10vw, 150px);
}
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -60%; width: 120%; aspect-ratio: 2 / 1; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232,116,46,.45), rgba(179,71,15,.15) 45%, transparent 70%);
  filter: blur(10px);
}
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .08; mix-blend-mode: overlay; }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.cta h2 { font-size: var(--fs-mega); text-transform: uppercase; line-height: .94; }
.cta__side { display: grid; gap: 20px; }
.cta__contact { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-dark-strong); }
.cta__contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); font-size: var(--fs-md); }
.cta__contact a:hover { color: var(--molten-hi); }
.cta__contact svg { width: 18px; height: 18px; color: var(--molten-hi); }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); font-size: var(--fs-sm); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-block: clamp(56px, 7vw, 96px); }
.footer__brand img { height: 104px; width: auto; }
.footer__brand p { margin-top: 20px; max-width: 36ch; }
.footer h3 { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 18px; font-stretch: 100%; }
.footer ul { display: grid; gap: 4px; }
.footer a { text-decoration: none; transition: color .2s; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.footer a:hover { color: var(--white); }
.footer a svg { width: 15px; height: 15px; color: var(--molten); flex-shrink: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: flex-start; padding-right: 200px; gap: 12px 24px; padding-block: 24px; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }
.footer__iso { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 14px; border: 1px solid var(--line-dark-strong); border-radius: 10px; color: var(--on-dark); }
.footer__iso svg { width: 22px; height: 22px; color: var(--molten-hi); }
.footer__iso b { font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; }
.footer__wordmark {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(2.5rem, 10.5vw, 11rem); line-height: .8; letter-spacing: -.03em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); user-select: none; padding-top: 12px;
  white-space: nowrap; overflow: hidden;
}
@media (max-width: 560px) { .footer__bottom { padding-right: 72px; } }
@media (max-width: 960px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  /* bottom offset clears the 64px "Powered by Netlify" badge Netlify injects bottom-right */
  position: fixed; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px;
  border-radius: 999px; background: #1FAF5A; color: #fff; text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  box-shadow: 0 14px 30px -10px rgba(14,15,17,.5); transition: transform .3s var(--ease-out), background-color .2s;
}
.wa-float:hover { transform: translateY(-2px); background: #189C4F; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float span { display: none; } }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(14,15,17,.3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field label .req { color: var(--ember); }
.field .hint { font-size: var(--fs-xs); color: var(--fg-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 10px;
  background: var(--sand-50); border: 1px solid var(--line-strong); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23464C54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--steel-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ember); background: var(--white); box-shadow: 0 0 0 4px rgba(232,116,46,.18); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #B42318; }
.field .error { display: none; font-size: var(--fs-xs); color: #B42318; font-weight: 500; }
.field.has-error .error { display: block; }
.dropzone {
  position: relative; display: grid; place-items: center; text-align: center; gap: 6px;
  padding: 28px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--sand-50);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--ember); background: #FFF7F0; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 28px; height: 28px; color: var(--ember); }
.dropzone b { font-weight: 600; }
.dropzone small { color: var(--fg-muted); font-size: var(--fs-xs); }
.dropzone .file-name { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-800); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--sand-50); font-size: var(--fs-sm); cursor: pointer; transition: all .2s; }
.check input:checked + span { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.check input:focus-visible + span { outline: 3px solid var(--molten); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-foot p { font-size: var(--fs-xs); color: var(--fg-muted); max-width: 44ch; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }

.contact-card { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contact-card:first-child { padding-top: 0; }
.contact-card .k { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.contact-card a { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.375rem; text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--ember); }

/* ---------- Misc ---------- */
.divider-heat { height: 2px; background: var(--heat); border: 0; margin: 0; }
.quote { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.2; letter-spacing: -.01em; }
.quote em { font-style: normal; color: var(--ember); }
.section--dark .quote em, .section--dark-2 .quote em { color: var(--molten-hi); }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.credits { font-size: var(--fs-xs); color: var(--fg-muted); }
.credits a { color: var(--ember); }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .42s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .49s; }
.reveal-stagger.is-visible > *:nth-child(n+9) { transition-delay: .56s; }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}

@media print {
  .topbar, .site-header, .wa-float, .drawer, .cta, .subnav { display: none !important; }
  body { background: #fff; color: #000; }
}

/* 3-column process variant */
@media (min-width: 1025px) {
  .process--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process--3 .process__step:nth-child(4) { padding-left: 0; border-left: 0; }
  .process--3 .process__step:nth-child(6) { padding-left: 24px; border-left: 1px solid var(--line); }
}
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 80px); }
.split--form { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: start; }
@media (max-width: 900px) { .split--form { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 18px 0;
  cursor: pointer; list-style: none; font-weight: 600; font-size: var(--fs-md); line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--ember); }
.faq__icon { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line-strong); transition: background-color .25s, border-color .25s, transform .35s var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease-out); }
.faq__item[open] .faq__icon { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 48px 22px 0; color: var(--fg-muted); }

/* ---------- Related links ---------- */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related a {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, transform .4s var(--ease-out);
}
.related a:hover { border-color: rgba(179,71,15,.4); transform: translateY(-3px); }
.related .k { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.related b { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.related span.d { font-size: var(--fs-sm); color: var(--fg-muted); }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article { max-width: 72ch; margin-inline: auto; }
.article > * + * { margin-top: 1.1em; }
.article h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2em; font-stretch: 108%; line-height: 1.15; }
.article h3 { font-size: 1.2rem; margin-top: 1.6em; font-stretch: 105%; font-weight: 700; line-height: 1.25; }
.article p, .article li { color: #353A40; font-size: 1.0625rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 1.3em; list-style: revert; display: grid; gap: .4em; }
.article a { color: var(--ember); }
.article .table-wrap { margin-block: 1.6em; }
.article .callout { padding: 20px 24px; border-radius: var(--radius); background: var(--sand-100); border-left: 3px solid var(--molten); }
.article .callout p { color: var(--ink-800); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.post-card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, transform .4s var(--ease-out); }
.post-card:hover { border-color: rgba(179,71,15,.4); transform: translateY(-4px); }
.post-card .k { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.post-card h2 { font-size: var(--fs-h4); font-stretch: 108%; line-height: 1.2; }
.post-card p { color: var(--fg-muted); font-size: var(--fs-sm); }
.post-card .link-arrow { margin-top: auto; }
.article .table { min-width: 460px; }
