/* Self-hosted fonts (SIL Open Font License — see assets/fonts) */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/archivo-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/archivo-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/archivo-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }

/* Metalcast Foundries — site styles */
:root {
  --bg: #000000;
  --bg-alt: #0A0A0A;
  --surface: #141518;
  --surface-2: #17181B;
  --line: #25272A;
  --line-strong: #3A3B3D;
  --text: #FFFFFF;
  --muted: #E4E4E4;
  --faint: #D6D6D6;
  --dim: #D0D0D0;
  --copper: #E0782F;
  --alu: #7FB2E0;
  --on-accent: #111213;
  --max: 1280px;
  --gutter: 24px;
  --header-h: 84px;
  --f-body: 'Archivo', system-ui, sans-serif;
  --f-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-mono: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-weight: 500; font-size: 17px; line-height: 1.65; }
strong, b { font-weight: 800; color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); }
a:hover { color: #F08A3E; }
:focus-visible { outline: 2px solid var(--alu); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; line-height: 0.95; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--copper); color: var(--on-accent); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 112px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 80px 0; }

.kicker { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--copper); text-transform: uppercase; margin-bottom: 16px; }
.h-xl { font-size: clamp(54px, 8vw, 116px); line-height: 0.9; }
.h-lg { font-size: clamp(40px, 5vw, 72px); }
.h-md { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; }
.h-sm { font-size: 26px; line-height: 1.05; }
.cu { color: var(--copper); }
.al { color: var(--alu); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.lede { font-size: 20px; font-weight: 600; max-width: 640px; line-height: 1.55; }

.split-head { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }
.split-head > :first-child { flex: 1 1 520px; min-width: 0; }
.split-head > p { flex: 1 1 380px; min-width: 0; margin: 0; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-block; text-decoration: none; padding: 16px 28px; font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn--primary { background: var(--copper); color: var(--on-accent); }
.btn--primary:hover { background: #F08A3E; color: var(--on-accent); }
.btn--ghost { border-color: #5A5853; color: var(--text); font-weight: 600; }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.link-arrow { font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }

/* Top bar */
.topbar { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid #111; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 32px; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #000; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 60px; height: 60px; border-radius: 50%; }
.brand span { font-family: var(--f-head); font-weight: 800; font-size: 22px; letter-spacing: 0.08em; line-height: 1; }
.brand small { display: block; font-weight: 600; font-size: 12px; letter-spacing: 0.34em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; font-family: var(--f-head); font-weight: 600; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--copper); color: var(--text); }
.nav .btn { padding: 12px 22px; font-size: 16px; border: none; }
.nav .btn:hover { border: none; }
.stripe { display: flex; height: 4px; }
.stripe::before, .stripe::after { content: ""; flex: 1 1 0; }
.stripe::before { background: var(--copper); }
.stripe::after { background: var(--alu); }
.menu-toggle { display: none; background: none; border: 1px solid #5A5853; color: var(--text); font-family: var(--f-head); font-weight: 700; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; align-items: center; gap: 10px; }
.menu-toggle .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars i { top: 5px; } .menu-toggle .bars::after { bottom: 0; }

@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .brand img { width: 48px; height: 48px; }
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: calc(var(--header-h) + 4px) 0 0 0; background: #000; flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 40px; font-size: 26px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--copper); border-bottom-color: var(--line); }
  .nav .btn { margin-top: 24px; text-align: center; padding: 18px; font-size: 20px; }
  body.menu-open { overflow: hidden; }
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.82) 38%, rgba(0,0,0,.25) 68%, rgba(0,0,0,0) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 128px; min-height: 640px; display: flex; align-items: center; }
.hero__content { max-width: 640px; }
.hero p { margin-top: 28px; }
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-hero .wrap { padding-top: 96px; padding-bottom: 88px; }
.page-hero .lede { margin-top: 24px; }
.page-hero--image picture, .page-hero--image picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.85) 45%, rgba(0,0,0,.35) 100%); }
.page-hero--image .wrap { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .hero::after, .page-hero--image::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.85) 55%, rgba(0,0,0,.95) 100%); }
  .hero .wrap { padding-top: 88px; padding-bottom: 88px; min-height: 0; }
  .section { padding: 80px 0; }
}

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.facts > div { padding: 32px 24px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: none; }
.facts dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.facts dd { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 56px; line-height: 1.05; }
.facts dd small { font-size: 22px; color: var(--muted); font-weight: 800; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts > div:nth-child(2) { border-right: none; } .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .facts dd { font-size: 44px; } }

/* Grids & cells */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.cells > * { background: var(--bg); padding: 32px 28px; }
.cells--alt > * { background: var(--bg-alt); }
.cells--accent { border-top: 2px solid var(--copper); }
.cell-num { font-family: var(--f-mono); font-size: 13px; color: var(--copper); }
.cell-title { font-family: var(--f-head); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1.1; margin: 8px 0; }
.cell p { font-size: 15px; color: var(--muted); margin: 0; }
.stat { font-family: var(--f-head); font-weight: 800; font-size: 64px; line-height: 1; margin-top: 18px; }
.stat small { font-size: 28px; color: var(--muted); }
.icon { width: 40px; height: 40px; }

/* Two-column */
.two-col { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.two-col > * { flex: 1 1 440px; min-width: 0; }
.figure img { width: 100%; height: 440px; object-fit: cover; border: 1px solid var(--line); }
.figure figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--faint); }
@media (max-width: 720px) { .figure img { height: 260px; } }

.spec-list { font-family: var(--f-mono); font-size: 14px; border-top: 1px solid var(--line); margin: 32px 0 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--faint); }
.spec-list dd { margin: 0; text-align: right; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); border-top: 2px solid var(--copper); margin-top: 72px; }
.timeline > div { padding: 28px 24px 32px; border-right: 1px solid var(--line); }
.timeline > div:first-child { padding-left: 0; }
.timeline > div:last-child { border-right: none; background: var(--surface-2); }
.timeline .yr { font-family: var(--f-head); font-weight: 800; font-size: 48px; line-height: 1; color: var(--dim); }
.timeline .yr--now { color: var(--text); }
.timeline .yr--cu { color: var(--copper); }
.timeline h3 { font-size: 20px; font-weight: 700; margin: 12px 0 8px; line-height: 1.1; }
.timeline p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 720px) { .timeline > div, .timeline > div:first-child { padding: 24px 20px; border-right: none; border-bottom: 1px solid var(--line); } }

/* Product cards */
.product { border: 1px solid var(--line); border-top: 3px solid var(--copper); background: var(--surface); display: flex; flex-direction: column; }
.product--al { border-top-color: var(--alu); }
.product img { width: 100%; height: 240px; object-fit: cover; }
.product__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 28px; font-weight: 700; line-height: 1.05; }
.product p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.product dl { margin: 16px 0 0; font-family: var(--f-mono); font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.product dt { color: var(--faint); }
.product dd { margin: 0; }
.product .link-arrow { margin-top: auto; padding-top: 20px; font-size: 16px; }
.ingot { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--copper); background: var(--surface); }
.ingot--al { border-left-color: var(--alu); }
.ingot .sym { font-family: var(--f-head); font-weight: 800; font-size: 34px; line-height: 1; color: var(--copper); }
.ingot--al .sym { color: var(--alu); }
.ingot h3 { font-size: 24px; font-weight: 700; }
.ingot p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.element-tiles { display: flex; gap: 12px; }
.element { width: 104px; height: 104px; border: 2px solid var(--copper); padding: 10px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.element b { font-family: var(--f-head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--copper); }
.element--al { border-color: var(--alu); }
.element--al b { color: var(--alu); }
.note-bar { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 24px; border: 1px solid var(--line); }

/* Founders */
.founder .initials { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--copper); display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; font-size: 26px; color: var(--copper); }
.founder .initials--al { border-color: var(--alu); color: var(--alu); }
.founder h3 { font-size: 32px; line-height: 1.05; margin-top: 22px; }
.founder .role { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin-top: 8px; }
.statement { margin-top: 72px; text-align: center; font-family: var(--f-head); font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; text-transform: uppercase; }

/* CTA band */
.cta-band { background: var(--bg-alt); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; }
.cta-band .btns { margin-top: 0; }

/* Notice */
.notice { border: 1px solid var(--line); border-left: 3px solid var(--alu); background: var(--surface); padding: 20px 24px; font-size: 14px; color: var(--muted); }
.notice strong { color: var(--text); font-weight: 800; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); padding: 14px; font-size: 16px; font-family: var(--f-body); border-radius: 0; width: 100%; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--copper); }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; font-family: var(--f-body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--copper); }
.form button { grid-column: 1 / -1; border: none; padding: 18px; font-size: 20px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; font-size: 15px; margin: 0; min-height: 1em; }
.form-status.ok { color: #7FD99A; } .form-status.err { color: #FF8A7A; }
.map { width: 100%; height: 320px; border: 1px solid var(--line); filter: grayscale(1) invert(0.92) contrast(0.9); margin-top: 32px; }

/* Legal / prose pages */
.prose { max-width: 820px; }
.prose h2 { font-size: 30px; margin: 56px 0 16px; line-height: 1.05; }
.prose h3 { font-size: 21px; font-weight: 700; margin: 32px 0 10px; line-height: 1.1; }
.prose p, .prose li { color: #F2F2F2; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--faint); font-weight: 400; text-transform: uppercase; width: 38%; }
.ph { color: var(--copper); font-family: var(--f-mono); font-size: 0.9em; }
.draft-banner { background: #2A1A0E; border: 1px solid var(--copper); color: #F5C9A6; padding: 14px 18px; font-size: 14px; margin-bottom: 40px; }
.toc { font-family: var(--f-mono); font-size: 13px; columns: 2 240px; padding-left: 18px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; } .toc a:hover { color: var(--text); }

/* Footer */
.site-footer { background: #000; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-main h2 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 16px; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: 8px; }
.footer-main a { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-main a:hover { color: var(--copper); }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-contact { font-size: 15px; color: var(--muted); font-style: normal; }
.footer-legal { border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--faint); }
.footer-legal .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; }
.footer-disclaimer { font-size: 12px; color: var(--dim); line-height: 1.5; margin: 0; padding-bottom: 28px; max-width: 980px; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .nav { transition: none; } }

/* Facts strip wrapper */
.facts-strip { border-bottom: 1px solid var(--line); }
.facts-strip .facts { border-bottom: none; margin: 0 auto; padding-left: 0; padding-right: 0; }

@media (max-width: 720px) { .link-arrow { white-space: normal; } .element-tiles { display: none; } }

@media (max-width: 720px) { .topbar .wrap > span:first-child { display: none; } .topbar .wrap { justify-content: center; } }

.prose td, .prose th { overflow-wrap: anywhere; }
@media (max-width: 600px) { .prose table, .prose tbody, .prose tr, .prose th, .prose td { display: block; width: 100%; } .prose th { padding-bottom: 0; border-bottom: none; } }

/* Labels: bold sans (replaces typewriter mono) */
.kicker, .facts dt, .cell-num, .figure figcaption, .spec-list, .product dl, .element, .founder .role, .form label, .prose th, .toc, .footer-main h2, .footer-legal, .mono, .topbar { font-weight: 700; }
.kicker { font-size: 14px; letter-spacing: 0.14em; }
.spec-list dd, .product dd { font-weight: 600; }
.cell p, .product p, .ingot p, .timeline p { font-size: 16px; }
.footer-disclaimer { color: var(--faint); }
