/* SXM 3D Forge website
   Layout: dark "build chamber" hero where the logo prints itself layer by layer, then light sections
   on a cool off-white with sea-teal as the one accent. Layer lines (thin horizontal rules) are the motif. */
:root {
  --ink: #0f1416;
  --ink-2: #39464a;
  --muted: #5d6a69;
  --paper: #f3f6f5;
  --card: #ffffff;
  --line: #dbe3e1;
  --sea: #0b7471;
  --sea-dark: #075a58;
  --sea-bright: #45d3c8;
  --glow: #ffb347;
  --on-dark: #eef3f2;
  --on-dark-muted: #9fb0ad;
  --radius: 14px;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 0.78rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea); }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
:focus-visible { outline: 3px solid var(--sea-bright); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0 1.35em; border-radius: 999px;
  font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); }
.btn-light { background: var(--sea-bright); color: var(--ink); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; }
.btn-sm { min-height: 40px; padding: 0 1em; font-size: 0.92rem; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(15, 20, 22, 0.94); backdrop-filter: blur(8px); color: var(--on-dark); border-bottom: 1px solid rgba(255,255,255,.07); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--ink); z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 800 1.05rem/1 var(--display); font-stretch: 118%; letter-spacing: 0.01em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--on-dark); background: rgba(255,255,255,.06); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: .92rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-list { display: flex; }
.menu-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; background: var(--ink); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 8px; min-width: 200px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.menu-list a { color: var(--on-dark); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.menu-list a:hover { background: rgba(255,255,255,.07); }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } .site-header .btn { display: none; } }

/* hero: the build chamber */
.hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 7px); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero .eyebrow { color: var(--sea-bright); }
.hero h1 { margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--sea-bright); }
.hero .lede { color: #c9d4d2; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font: 500 .86rem/1.4 var(--mono); color: var(--on-dark-muted); }
.facts span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sea-bright); margin-right: 8px; vertical-align: 1px; }
.chamber { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.chamber canvas { width: 100%; height: 100%; display: block; }
.chamber::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -2%; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(69, 211, 200, .35), transparent); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 28px; }
  .chamber { max-width: 300px; order: -1; }
}

/* sections */
section.band { padding: 84px 0; }
section.band.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
@media (max-width: 640px) { section.band { padding: 60px 0; } .sec-head { margin-bottom: 28px; } }

/* services */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.service { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.service .spec { font: 500 .8rem/1.4 var(--mono); color: var(--sea); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.service p { color: var(--ink-2); }
.service.feature { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.service.feature p { color: #c9d4d2; }
.service.feature .spec { color: var(--sea-bright); border-color: rgba(255,255,255,.15); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } .service, .service:nth-child(4), .service:nth-child(5) { grid-column: span 1; } .service:nth-child(5) { grid-column: span 2; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service:nth-child(5) { grid-column: span 1; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.step { padding: 22px 22px 0 0; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 .85rem/1 var(--mono); color: var(--sea); display: block; margin-bottom: 14px; }
.step::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 4px var(--card); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); } .step { padding: 0 0 0 22px; } .step::after { top: 2px; left: -7px; } }

/* shop */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .ph { aspect-ratio: 1; background: #e8eeec; display: flex; align-items: center; justify-content: center; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; }
.product .ph .noimg { width: 46%; opacity: .25; }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.product .price { font: 800 1.35rem/1.1 var(--display); font-stretch: 110%; }
.product .price small { font: 500 .8rem/1 var(--mono); color: var(--muted); margin-left: 6px; }
.product p { color: var(--ink-2); font-size: .94rem; }
.product .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

/* materials */
.materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.mat { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.mat:nth-child(3n) { border-right: 0; }
.mat:nth-last-child(-n+3) { border-bottom: 0; }
.mat b { font: 700 1.05rem/1.2 var(--display); font-stretch: 110%; }
.mat span { font: 500 .78rem/1.3 var(--mono); color: var(--sea); text-transform: uppercase; letter-spacing: .05em; }
.mat p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .materials { grid-template-columns: 1fr 1fr; } .mat:nth-child(3n) { border-right: 1px solid var(--line); } .mat:nth-child(2n) { border-right: 0; } .mat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); } .mat:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 480px) { .materials { grid-template-columns: 1fr; } .mat { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; } .mat:last-child { border-bottom: 0 !important; } }
.machines { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.machine-stat { border-left: 3px solid var(--sea); padding: 4px 0 4px 16px; }
.machine-stat b { display: block; font: 800 1.5rem/1.1 var(--display); font-stretch: 112%; }
.machine-stat span { color: var(--ink-2); font-size: .95rem; }
.fleet { margin-top: 22px; font: 500 .85rem/1.6 var(--mono); color: var(--muted); }
@media (max-width: 760px) { .machines { grid-template-columns: 1fr; } }

/* gallery */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.gallery figcaption { padding: 10px 12px; font-size: .9rem; color: var(--ink-2); }
.insta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.insta p { flex: 1 1 280px; color: var(--ink-2); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.about .badge { max-width: 340px; width: 100%; justify-self: center; }
.about .story { display: grid; gap: 16px; font-size: 1.08rem; color: var(--ink-2); }
.about .story p:first-of-type { font-size: 1.25rem; color: var(--ink); font-weight: 500; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 28px; } .about .badge { max-width: 220px; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.3rem/1 var(--mono); color: var(--sea); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* contact + footer */
.contact { background: var(--ink); color: var(--on-dark); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.contact .lede { color: #c9d4d2; }
.contact .eyebrow { color: var(--sea-bright); }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: inherit; text-decoration: none; }
a.contact-item:hover { border-color: var(--sea-bright); }
.contact-item span { font: 500 .76rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-item b { font-size: 1.1rem; }
@media (max-width: 800px) { .contact .wrap { grid-template-columns: 1fr; } }
footer { background: #0a0e0f; color: var(--on-dark-muted); font-size: .9rem; padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
footer a { color: var(--on-dark-muted); }

/* quote page */
.quote-hero { background: var(--ink); color: var(--on-dark); padding: 54px 0 120px; position: relative; overflow: hidden; }
.quote-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 7px); }
.quote-hero .wrap { position: relative; display: grid; gap: 14px; }
.quote-hero .eyebrow { color: var(--sea-bright); }
.quote-hero .lede { color: #c9d4d2; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: -84px; position: relative; padding-bottom: 80px; align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 18px 50px rgba(15, 20, 22, .08); }
@media (max-width: 560px) { .form-card { padding: 22px 18px; } }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.form-card legend { font: 800 1.15rem/1.2 var(--display); font-stretch: 110%; margin-bottom: 14px; padding: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-weight: 600; font-size: .94rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1.5px solid #c9d3d1; border-radius: 10px; padding: 10px 14px; font: inherit; background: #fff; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(11, 116, 113, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; } }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid #c9d3d1; border-radius: 12px; padding: 12px 14px; cursor: pointer; height: 100%; }
.choice span b { font-size: .98rem; }
.choice span small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.choice input:checked + span { border-color: var(--sea); background: rgba(11, 116, 113, .06); box-shadow: inset 0 0 0 1px var(--sea); }
.choice input:focus-visible + span { outline: 3px solid var(--sea-bright); outline-offset: 2px; }
.drop { border: 2px dashed #c3cecc; border-radius: 14px; padding: 26px 18px; text-align: center; background: #f8fbfa; cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.drop.over { border-color: var(--sea); background: rgba(11, 116, 113, .06); }
.drop b { font-size: 1rem; }
.drop small { color: var(--muted); }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; gap: 10px; align-items: center; background: #f3f7f6; border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
.file-list li .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li .sz { font: 500 .8rem/1 var(--mono); color: var(--muted); }
.file-list button { border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0 4px; }
.prog { height: 4px; background: #e3eae8; border-radius: 2px; overflow: hidden; width: 80px; }
.prog i { display: block; height: 100%; background: var(--sea); width: 0; }
.form-error { background: #fdecea; color: #9b1c13; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.aside { display: grid; gap: 14px; }
.aside .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 10px; }
.aside ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.done-panel { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 20px 0; }
.done-panel .tick { width: 64px; height: 64px; border-radius: 50%; background: rgba(11, 116, 113, .12); display: grid; place-items: center; color: var(--sea); font-size: 2rem; font-weight: 800; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
