/* ===== Ferrum Dynamics — design tokens ===== */
:root{
  --void:#0a0a0b;
  --surface:#131316;
  --surface-raised:#18181c;
  --hairline:rgba(242,241,238,0.10);
  --hairline-strong:rgba(242,241,238,0.22);
  --ink:#f2f1ee;
  --steel:#9a9ca3;
  --graphite:#5c5e66;
  --accent:#4a90a4;
  --accent-ink:#0a0a0b;

  --font-display:'Big Shoulders Display', ui-sans-serif, system-ui, sans-serif;
  --font-body:'Archivo', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw:1180px;
  --gap-section:104px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--void);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

.grain{
  position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:0.025;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Nav ===== */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  border-bottom:1px solid transparent;
  transition:background-color .15s linear, border-color .15s linear;
}
.nav.scrolled{
  background:rgba(10,10,11,0.86);
  backdrop-filter:blur(10px);
  border-bottom-color:var(--hairline);
}
.nav-inner{
  max-width:var(--maxw);margin:0 auto;padding:20px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.wordmark{
  font-family:var(--font-mono);font-weight:500;font-size:14px;letter-spacing:0.04em;
  display:flex;gap:6px;
}
.wordmark span{color:var(--steel)}
.wordmark.small{font-size:13px}
.nav-links{display:flex;gap:32px}
.nav-links a{
  font-size:14px;color:var(--steel);transition:color .12s linear;
}
.nav-links a:hover{color:var(--ink)}
.nav-cta{white-space:nowrap}

@media (max-width:820px){
  .nav-links{display:none}
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--font-body);font-weight:600;font-size:14px;
  padding:14px 24px;border-radius:1px;
  transition:transform .1s cubic-bezier(.4,0,.6,1), background-color .12s linear, border-color .12s linear, color .12s linear;
  white-space:nowrap;
}
.btn-fill{background:var(--accent);color:var(--accent-ink)}
.btn-fill:hover{background:#5ea6bc}
.btn-outline{border:1px solid var(--hairline-strong);color:var(--ink)}
.btn-outline:hover{border-color:var(--accent)}
.btn-ghost{color:var(--ink);border:1px solid transparent;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--hairline-strong)}
.btn-ghost:hover{text-decoration-color:var(--accent)}
@media (prefers-reduced-motion:no-preference){
  .btn:active{transform:scale(0.98)}
}

/* ===== Hero ===== */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;align-items:center;
  overflow:hidden;
  padding:96px 0 48px;
}
.hero-ambient-video{
  position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(0.5) contrast(1.1) brightness(0.55);
  opacity:0.55;
}
.hero-ambient-scrim{
  position:absolute;inset:0;z-index:0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.55) 55%, rgba(10,10,11,0.95) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.15) 45%, rgba(10,10,11,0.7) 100%);
}
.hero-grid-bg{
  position:absolute;inset:0;z-index:0;
  background-image:
    linear-gradient(rgba(242,241,238,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,241,238,0.06) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 80% 60% at 30% 40%, black 0%, transparent 75%);
}
.hero-inner{
  position:relative;z-index:1;
  max-width:var(--maxw);margin:0 auto;padding:0 24px;
  width:100%;
  display:grid;grid-template-columns:0.95fr 1.05fr;gap:64px;align-items:center;
}
.mono-tag{
  font-family:var(--font-mono);font-size:12px;letter-spacing:0.12em;text-transform:uppercase;
  color:var(--accent);margin:0 0 20px;
}
.hero h1{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(2.2rem, 3.4vw, 2.9rem);
  line-height:1.08;letter-spacing:-0.01em;
  margin:0 0 20px;max-width:17ch;
}
.hero-sub{
  font-size:17px;color:var(--steel);max-width:38ch;margin:0 0 36px;
}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap}

/* ===== Hero technical figure ===== */
.hero-figure{position:relative}
.figure-frame{
  position:relative;
  aspect-ratio:1408/768;
  border:1px solid var(--hairline-strong);
  border-radius:0;
  background:var(--surface);
  overflow:hidden;
}
.figure-img{width:100%;height:100%;object-fit:cover;filter:saturate(0.9)}
.figure-annotations{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.figure-annotations line{
  stroke:var(--accent);stroke-width:1.5;opacity:0;
  stroke-dasharray:220;stroke-dashoffset:220;
  transition:stroke-dashoffset 1s ease, opacity 0.3s ease;
}
.figure-annotations circle{
  fill:var(--void);stroke:var(--accent);stroke-width:2;opacity:0;
  transform-origin:center;transform:scale(0.4);
  transition:opacity 0.4s ease, transform 0.4s ease;
}
.hero-figure.is-armed .figure-annotations line{stroke-dashoffset:0;opacity:0.85}
.hero-figure.is-armed .figure-annotations circle{opacity:1;transform:scale(1)}
.hero-figure.is-armed .figure-annotations line:nth-of-type(3){transition-delay:0.15s}
.hero-figure.is-armed .figure-annotations line:nth-of-type(5){transition-delay:0.3s}
@media (prefers-reduced-motion:reduce){
  .figure-annotations line, .figure-annotations circle{transition:none;opacity:0.85;stroke-dashoffset:0;transform:none}
}
.figure-label{
  position:absolute;
  font-family:var(--font-mono);font-size:10.5px;letter-spacing:0.06em;text-transform:uppercase;
  color:var(--ink);line-height:1.5;margin:0;
  background:rgba(10,10,11,0.72);backdrop-filter:blur(2px);
  padding:6px 10px;border:1px solid var(--hairline-strong);border-radius:0;
  max-width:180px;
}
.figure-label span{color:var(--accent)}
.figure-label.align-right{text-align:right}
.bracket{
  position:absolute;width:22px;height:22px;z-index:2;
  border-color:var(--accent);border-style:solid;border-width:0;
}
.bracket-tl{top:-1px;left:-1px;border-top-width:2px;border-left-width:2px}
.bracket-tr{top:-1px;right:-1px;border-top-width:2px;border-right-width:2px}
.bracket-bl{bottom:-1px;left:-1px;border-bottom-width:2px;border-left-width:2px}
.bracket-br{bottom:-1px;right:-1px;border-bottom-width:2px;border-right-width:2px}
.figure-caption{
  font-family:var(--font-mono);font-size:11.5px;color:var(--graphite);
  margin:14px 2px 0;
}

@media (max-width:960px){
  .hero-inner{grid-template-columns:1fr;gap:40px}
  .figure-label{display:none}
}

/* ===== Trust strip ===== */
.trust-strip{
  border-bottom:1px solid var(--hairline);
  padding:28px 24px;
}
.trust-label{
  max-width:var(--maxw);margin:0 auto 16px;
  font-family:var(--font-mono);font-size:11px;letter-spacing:0.1em;text-transform:uppercase;
  color:var(--graphite);
}
.trust-row{
  max-width:var(--maxw);margin:0 auto;
  display:flex;flex-wrap:wrap;gap:32px;
}
.trust-row span{
  font-size:13px;color:var(--steel);font-family:var(--font-mono);
}

/* ===== Generic section ===== */
.section{
  max-width:var(--maxw);margin:0 auto;padding:var(--gap-section) 24px;
}
.section-head{margin-bottom:56px;max-width:60ch}
.mono-label{
  font-family:var(--font-mono);font-size:12px;letter-spacing:0.12em;text-transform:uppercase;
  color:var(--accent);margin:0 0 16px;
}
.section-head h2, .product h2, .sourcing h2, .cta-band h2{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.8rem, 3.4vw, 2.6rem);
  line-height:1.1;margin:0;
}

/* ===== Card grid ===== */
.card-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--hairline);
  border:1px solid var(--hairline);
}
.card{
  background:var(--void);
  padding:32px 24px;
}
.card-index{
  font-family:var(--font-mono);font-size:12px;color:var(--graphite);margin:0 0 24px;
}
.card h3{
  font-size:17px;font-weight:600;margin:0 0 12px;
}
.card p{font-size:14px;color:var(--steel);margin:0;line-height:1.6}

@media (max-width:900px){
  .card-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .card-grid{grid-template-columns:1fr}
}

/* ===== Product showcase ===== */
.product{
  max-width:var(--maxw);margin:0 auto;padding:0 24px var(--gap-section);
  display:grid;grid-template-columns:1.1fr 0.9fr;gap:64px;align-items:center;
}
.product-media{
  border:1px solid var(--hairline);border-radius:0;overflow:hidden;
  background:var(--surface);
}
.product-media{position:relative}
.product-media video, .product-media img{width:100%;height:100%;object-fit:cover;filter:saturate(0.9)}
.product h2{margin-bottom:20px}
.product-copy{color:var(--steel);font-size:15px;margin:0 0 28px;max-width:48ch}
.spec-table{width:100%;border-collapse:collapse;font-family:var(--font-mono);font-size:13px}
.spec-table tr{border-top:1px solid var(--hairline)}
.spec-table tr:last-child{border-bottom:1px solid var(--hairline)}
.spec-table td{padding:12px 0}
.spec-table td:first-child{color:var(--graphite)}
.spec-table td:last-child{text-align:right;color:var(--ink)}

@media (max-width:820px){
  .product{grid-template-columns:1fr}
}

.product-details{
  max-width:var(--maxw);margin:0 auto;padding:0 24px var(--gap-section);
  display:grid;grid-template-columns:1fr 1fr;gap:24px;
}
.detail-frame{position:relative;border:1px solid var(--hairline);border-radius:0;overflow:hidden;background:var(--surface)}
.detail-frame img{width:100%;aspect-ratio:4/3;object-fit:cover}
.detail-caption{
  font-family:var(--font-mono);font-size:12px;color:var(--graphite);
  padding:14px 16px;border-top:1px solid var(--hairline);margin:0;
}
@media (max-width:700px){
  .product-details{grid-template-columns:1fr}
}

/* ===== Stats ===== */
.stats{
  border-top:1px solid var(--hairline);
  border-bottom:1px solid var(--hairline);
  max-width:var(--maxw);margin:0 auto;
  display:grid;grid-template-columns:repeat(3,1fr);
}
.stat{
  padding:56px 28px;
  border-left:1px solid var(--hairline);
}
.stat:first-child{border-left:none}
.stat-number{
  font-family:var(--font-display);font-weight:700;font-size:clamp(2.6rem,5.2vw,3.8rem);
  color:var(--accent);margin:0 0 10px;line-height:0.95;letter-spacing:-0.01em;
}
.stat-label{
  font-family:var(--font-mono);font-size:11px;letter-spacing:0.06em;text-transform:uppercase;
  color:var(--steel);margin:0;
}
@media (max-width:700px){
  .stats{grid-template-columns:1fr}
  .stat{border-left:none;border-top:1px solid var(--hairline)}
  .stat:first-child{border-top:none}
}

/* ===== Sourcing ===== */
.sourcing{
  max-width:var(--maxw);margin:0 auto;padding:var(--gap-section) 24px;
  text-align:center;
}
.sourcing .mono-label{display:block;text-align:center}
.sourcing h2{max-width:32ch;margin:0 auto 40px}
.wordmark-row{
  display:flex;flex-wrap:wrap;justify-content:center;gap:40px;
}
.wordmark-row span{
  font-family:var(--font-mono);font-size:14px;color:var(--steel);letter-spacing:0.02em;
}

/* ===== Compliance ===== */
.compliance-list{display:flex;flex-direction:column}
.compliance-row{
  display:flex;justify-content:space-between;gap:24px;
  padding:20px 0;border-top:1px solid var(--hairline);
  flex-wrap:wrap;
}
.compliance-list .compliance-row:last-child{border-bottom:1px solid var(--hairline)}
.compliance-name{font-weight:600;font-size:15px}
.compliance-detail{font-size:14px;color:var(--steel);font-family:var(--font-mono)}

/* ===== CTA band ===== */
.cta-band{
  max-width:var(--maxw);margin:0 auto;padding:var(--gap-section) 24px;
  text-align:center;border-top:1px solid var(--hairline);
}
.cta-band h2{max-width:24ch;margin:0 auto 16px}
.cta-band p{color:var(--steel);max-width:44ch;margin:0 auto 32px}

/* ===== Footer ===== */
.footer{border-top:1px solid var(--hairline);padding:40px 24px}
.footer-inner{
  max-width:var(--maxw);margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.footer-links{display:flex;gap:24px}
.footer-links a{font-size:13px;color:var(--steel)}
.footer-links a:hover{color:var(--ink)}
.footer-note{font-size:12px;color:var(--graphite);margin:0;width:100%;order:3}

/* ===== Scroll reveal ===== */
[data-reveal]{
  opacity:0;transform:translateY(16px);
  transition:opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1;transform:none;transition:none}
}
