/* ==========================================================================
   fillgen — "build sheet" design system
   Paper + ink + filament orange. Everything is drawn like a slicer readout or
   a technical drawing: layer lines, G-code labels, dimension lines, Z-height.
   ========================================================================== */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }

:root {
  --paper: #EFEBE3; --paper-2: #E6E0D4; --paper-3: #DAD3C5; --white: #FBF9F5;
  --ink: #141311; --ink-2: #24221F; --ink-3: #3A3732;
  --mute: #6E685E; --line: #CFC7B8; --line-d: #3A3732;
  --orange: #FF5A1F; --orange-d: #D9440E; --orange-l: #FFD9C8;
  --teal: #0F6E6A; --red: #C2361B;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --hdr: 68px;
  --layers: repeating-linear-gradient(180deg, transparent 0 5px, rgba(20,19,17,.07) 5px 6px);
  --layers-d: repeating-linear-gradient(180deg, transparent 0 5px, rgba(239,235,227,.06) 5px 6px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: .95; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* width play — the signature of the type system */
.w-x { font-stretch: 125%; }
.w-n { font-stretch: 62%; }
.w-m { font-stretch: 100%; }
.o { color: var(--orange); }
.o-d { color: var(--orange-d); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); background: rgba(239,235,227,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, transform .35s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-logo img { height: 30px; width: auto; }
.hdr-nav { display: flex; gap: 2px; margin-left: auto; }
.hdr-nav a { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; text-decoration: none; padding: 8px 12px; position: relative; display: flex; gap: 6px; align-items: baseline; letter-spacing: .03em; }
.hdr-nav a i { font-style: normal; color: var(--mute); font-size: 10px; }
.hdr-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s steps(6); }
.hdr-nav a:hover::after, .hdr-nav a.is-on::after { transform: scaleX(1); }
.hdr-act { display: flex; align-items: center; gap: 16px; }
.hdr-track, .hdr-acct { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; text-decoration: none; letter-spacing: .03em; }
.hdr-track:hover, .hdr-acct:hover { color: var(--orange-d); }
.hdr-menu { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; font: inherit; align-items: center; gap: 8px; color: var(--ink); }
.hdr-menu .hb { display: flex; flex-direction: column; gap: 6px; }
.hdr-menu .hb i { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .25s; }
.hdr-menu b { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.hdr-menu[aria-expanded="true"] .hb i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.hdr-menu[aria-expanded="true"] .hb i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--hdr) 0 0 0; z-index: 49; background: var(--ink); color: var(--paper); padding: 24px var(--pad); display: flex; flex-direction: column; background-image: var(--layers-d); }
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { text-decoration: none; font-size: clamp(30px, 8vw, 48px); font-weight: 800; font-stretch: 112%; padding: 8px 0; border-bottom: 1px solid var(--line-d); display: flex; align-items: baseline; gap: 14px; letter-spacing: -.02em; }
.drawer nav a i { font-family: var(--mono); font-style: normal; font-size: 12px; font-weight: 400; color: var(--orange); letter-spacing: 0; }
.drawer-foot { margin-top: auto; color: #A49D90; }
body.menu-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; gap: 10px; background: var(--bg); color: var(--fg); border: 0; padding: 14px 22px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; position: relative; transition: background .2s, color .2s, transform .2s; line-height: 1.2; }
.btn:hover { --bg: var(--orange); --fg: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-nozzle { --bg: var(--orange); --fg: var(--ink); padding: 11px 18px 13px; clip-path: polygon(0 0, 100% 0, 100% 72%, calc(100% - 10px) 100%, 10px 100%, 0 72%); }
.btn-nozzle:hover { --bg: var(--ink); --fg: var(--paper); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn-lg { padding: 18px 28px; font-size: 14px; }
.btn .arr { display: inline-block; transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; }
.link:hover { color: var(--orange-d); }

/* ---------- Z-height rail (scroll progress) ---------- */
.zrail { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; mix-blend-mode: multiply; }
.zrail-track { width: 2px; height: 180px; background: repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 6px); position: relative; opacity: .5; }
.zrail-head { position: absolute; left: -5px; width: 12px; height: 4px; background: var(--orange); bottom: 0; }
.zrail-val, .zrail-label { font-size: 10px; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--ink-3); }

/* ---------- labels / tags ---------- */
.tag { display: inline-flex; gap: 10px; align-items: center; margin: 0 0 22px; color: var(--ink-3); }
.tag b { background: var(--ink); color: var(--paper); padding: 3px 7px; font-weight: 500; }
.tag span::before { content: '; '; color: var(--orange-d); }
.dark .tag { color: #B9B1A3; }
.dark .tag b { background: var(--orange); color: var(--ink); }

/* ---------- plates (framed images) ---------- */
.plate { margin: 0; position: relative; background: var(--paper-3); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate picture { display: block; height: 100%; background-size: cover; background-position: center; }
.plate .cx { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.plate .cx::before, .plate .cx::after { content: ''; position: absolute; background: var(--ink); }
.plate .cx::before { width: 18px; height: 1.5px; top: 50%; }
.plate .cx::after { height: 18px; width: 1.5px; left: 50%; }
.plate .tl { top: -9px; left: -9px; } .plate .tr { top: -9px; right: -9px; }
.plate .bl { bottom: -9px; left: -9px; } .plate .br { bottom: -9px; right: -9px; }
.dark .plate .cx::before, .dark .plate .cx::after { background: var(--paper); }
.plate .dim { position: absolute; left: 0; right: 0; bottom: -30px; height: 14px; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 11px; }
.plate .dim::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); }
.plate .dim span { position: relative; background: var(--paper); padding: 0 8px; }
.dark .plate .dim { border-color: var(--paper); color: #B9B1A3; }
.dark .plate .dim::before { background: var(--paper); }
.dark .plate .dim span { background: var(--ink); }
.plate.has-dim { margin-bottom: 34px; }

/* the "print in" reveal — content materialises bottom-up in discrete layers */
.js [data-print] { clip-path: inset(97% 0 0 0); }
.js [data-print].is-printed { clip-path: inset(0 0 0 0); transition: clip-path 1.1s steps(18, end); }
.js [data-print] .cx, .js [data-print] .dim { opacity: 0; transition: opacity .3s .9s; }
.js [data-print].is-printed .cx, .js [data-print].is-printed .dim { opacity: 1; }
.js .plate[data-print] { clip-path: none; }
.js .plate[data-print] picture { clip-path: inset(100% 0 0 0); }
.plate img { opacity: 1; transition: opacity .35s; }
.plate img.is-loading { opacity: 0; }
.js .plate[data-print].is-printed picture { clip-path: inset(0); transition: clip-path .7s steps(14, end); }
.js [data-rise] { opacity: 0; transform: translateY(18px); }
.js [data-rise].is-printed { opacity: 1; transform: none; transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .js [data-print], .js .plate[data-print] picture { clip-path: none !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- flash ---------- */
.flash { position: fixed; z-index: 60; left: 50%; top: calc(var(--hdr) + 14px); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); padding: 12px 14px 12px 16px; max-width: min(640px, 92vw); box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 15px; }
.flash .mono { color: var(--orange); white-space: nowrap; }
.flash-err .mono { color: #FF8A6B; }
.flash-x { background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; padding: 0 4px; }

/* ---------- section scaffolding ---------- */
main { padding-top: var(--hdr); }
.sec { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec-tight { padding: clamp(48px, 6vw, 80px) 0; }
.dark { background: var(--ink); color: var(--paper); }
.dark .mono { color: inherit; }
.paper2 { background: var(--paper-2); }
.ruled { background-image: var(--layers); }
.h-xl { font-size: clamp(54px, 10.5vw, 168px); line-height: .86; letter-spacing: -.035em; }
.h-l { font-size: clamp(40px, 6.4vw, 96px); line-height: .9; letter-spacing: -.03em; }
.h-m { font-size: clamp(30px, 3.8vw, 56px); line-height: .95; }
.h-s { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 46ch; color: var(--ink-3); }
.dark .lede { color: #C9C2B5; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .lede { justify-self: end; }

/* ---------- G-code ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; background: var(--paper); position: relative; }
.ticker-row { display: inline-flex; gap: 44px; padding: 10px 0; animation: tick 60s linear infinite; }
.ticker-row span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.ticker-row span b { color: var(--orange-d); font-weight: 500; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-row { animation: none; } }

/* ---------- home hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.hero h1 { display: flex; flex-direction: column; margin: 8px 0 32px; font-size: clamp(52px, 7.6vw, 128px); }
.hero h1 .ln { display: block; }
.hero h1 .ln-1 { font-stretch: 62%; font-weight: 900; }
.hero h1 .ln-2 { font-stretch: 125%; font-weight: 300; letter-spacing: -.05em; }
.hero h1 .ln-3 { font-stretch: 100%; font-weight: 900; color: var(--orange); position: relative; }
.hero h1 .ln-3 i { font-style: normal; display: inline-block; width: .45em; height: .1em; background: var(--ink); vertical-align: .22em; margin-left: .12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.hero-specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); margin-top: 48px; }
.hero-specs div { padding: 14px 14px 4px 0; }
.hero-specs div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-specs dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--mute); }
.hero-specs dd { margin: 4px 0 0; font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
.hero-visual { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 16px; min-height: 560px; }
.hero-visual .plate { height: 100%; }
.hero-visual .plate img { object-position: 100% 50%; }
.hero-visual .plate.has-dim { margin: 0 0 34px 0; }
.hero-badge { position: absolute; z-index: 2; left: -28px; top: 34px; background: var(--ink); color: var(--paper); padding: 14px 16px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; text-transform: uppercase; min-width: 210px; }
.hero-badge b { color: var(--orange); font-weight: 500; }
.hero-badge .bar { height: 6px; background: var(--ink-3); margin-top: 8px; position: relative; overflow: hidden; }
.hero-badge .bar::after { content: ''; position: absolute; inset: 0; width: var(--p, 62%); background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 8px); }

/* ---------- services index ---------- */
.idx { border-top: 1.5px solid var(--ink); position: relative; }
.idx-row { display: grid; grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr) 140px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: padding .3s; }
.idx-row::before { content: ''; position: absolute; inset: 0; background: var(--layers), var(--orange); clip-path: inset(100% 0 0 0); transition: clip-path .45s steps(9, end); z-index: -1; }
.idx-row:hover::before { clip-path: inset(0); }
.idx-row:hover { padding-left: 16px; padding-right: 16px; }
.idx-n { font-family: var(--mono); font-size: 13px; }
.idx-t { font-size: clamp(26px, 3.2vw, 46px); font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; line-height: 1; }
.idx-d { color: var(--ink-3); font-size: 16px; }
.idx-k { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; text-align: right; }
.idx-peek { position: fixed; z-index: 30; width: 300px; aspect-ratio: 4/3; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .2s, transform .2s; background: var(--ink) center/cover no-repeat; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.idx-peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- slicer readout ---------- */
.slicer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.readout { background: var(--ink-2); border: 1px solid var(--line-d); font-family: var(--mono); color: var(--paper); }
.readout-top { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line-d); font-size: 11.5px; text-transform: uppercase; color: #A49D90; }
.readout-top b { color: var(--orange); font-weight: 500; }
.readout-body { display: grid; grid-template-columns: 1fr 1fr; }
.readout-body > div { padding: 18px 16px; border-bottom: 1px solid var(--line-d); }
.readout-body > div:nth-child(odd) { border-right: 1px solid var(--line-d); }
.readout dt { font-size: 11px; text-transform: uppercase; color: #8F887B; margin-bottom: 6px; }
.readout dd { margin: 0; font-family: var(--sans); font-size: clamp(26px, 3vw, 40px); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
.readout dd small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: #A49D90; letter-spacing: 0; margin-left: 4px; }
.readout .total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; background: var(--orange); color: var(--ink); border: 0; }
.readout .total dt { color: var(--ink); }
.readout .total dd { font-size: clamp(36px, 4.4vw, 60px); }
.layerviz { height: 120px; padding: 16px; display: flex; flex-direction: column-reverse; gap: 2px; border-bottom: 1px solid var(--line-d); }
.layerviz i { display: block; height: 4px; background: var(--ink-3); transform-origin: left; }
.layerviz i.on { background: var(--orange); }

/* ---------- materials strip ---------- */
.spools { display: flex; flex-wrap: wrap; border-top: 1.5px solid var(--ink); border-left: 1px solid var(--line); }
.spool { flex: 1 1 140px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 18px 18px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; transition: background .2s; }
.spool:hover { background: var(--white); }
.spool-disc { width: 64px; height: 64px; border-radius: 50%; position: relative; background: repeating-radial-gradient(circle, var(--c, var(--ink)) 0 2px, color-mix(in srgb, var(--c, var(--ink)) 80%, #000) 2px 3px); box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px var(--line); }
.spool-disc::after { content: ''; position: absolute; inset: 37%; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px var(--ink); }
.spool:hover .spool-disc { animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spool b { font-size: 20px; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
.spool span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--mute); }

/* ---------- departure board (shipping zones) ---------- */
.board { border: 1.5px solid var(--paper); font-family: var(--mono); }
.board-row { display: grid; grid-template-columns: 70px 1fr 140px 120px; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-d); align-items: center; font-size: 14px; text-transform: uppercase; }
.board-row:last-child { border-bottom: 0; }
.board-head { color: #8F887B; font-size: 11px; background: var(--ink-2); }
.board-row .flap { display: inline-flex; gap: 2px; }
.board-row .flap i { font-style: normal; background: var(--ink-3); color: var(--paper); padding: 2px 4px; min-width: 1.15em; text-align: center; border-radius: 2px; position: relative; }
.board-row .flap i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); }
.board-row .st { color: var(--orange); }
.board-row .dest { font-family: var(--sans); font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; font-stretch: 112%; text-transform: none; letter-spacing: -.01em; }

/* ---------- studio mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(70px, 8vw, 120px); gap: 18px; }
.mosaic .plate:nth-child(1) { grid-column: 1 / 8; grid-row: span 4; }
.mosaic .plate:nth-child(2) { grid-column: 8 / 13; grid-row: span 2; }
.mosaic .plate:nth-child(3) { grid-column: 8 / 11; grid-row: span 2; }
.mosaic .plate:nth-child(4) { grid-column: 11 / 13; grid-row: span 2; }
.coord { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink-3); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.coord b { color: var(--ink); font-weight: 500; }

/* ---------- inner page head ---------- */
.phead { padding: clamp(48px, 7vw, 110px) 0 clamp(36px, 5vw, 70px); border-bottom: 1.5px solid var(--ink); position: relative; overflow: hidden; }
.phead::after { content: ''; position: absolute; right: 0; bottom: 0; width: 38%; height: 70%; background: var(--layers); pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.phead h1 { font-size: clamp(56px, 10vw, 156px); line-height: .86; letter-spacing: -.04em; }
.phead h1 .w-x { font-weight: 300; }
.phead-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
.crumbs { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--mute); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange-d); }

/* ---------- spec table ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec th, .spec td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; color: var(--mute); }
.spec thead th { border-bottom: 1.5px solid var(--ink); color: var(--ink); }
.spec td b { font-weight: 700; }
.spec-wrap { overflow-x: auto; }
.dark .spec th, .dark .spec td { border-color: var(--line-d); }
.dark .spec thead th { border-color: var(--paper); color: var(--paper); }

/* property bars made of layers */
.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--mute); }
.bar-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.bar-cells i { height: 9px; background: var(--paper-3); }
.bar-cells i.on { background: var(--ink); }
.bar-cells i.on:last-of-type, .bar-cells i.on.hi { background: var(--orange); }

/* ---------- service blocks ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); padding: clamp(56px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.svc:nth-child(even) .svc-media { order: 2; }
.svc-media .plate { aspect-ratio: 4 / 3.2; }
.svc-n { font-family: var(--mono); font-size: 13px; color: var(--orange-d); margin-bottom: 14px; display: block; }
.svc h2 { font-size: clamp(36px, 4.6vw, 70px); margin-bottom: 22px; }
.svc ul { list-style: none; padding: 0; margin: 24px 0 30px; border-top: 1px solid var(--line); }
.svc li { padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; }
.svc li::before { content: 'G1'; position: absolute; left: 0; top: 13px; font-family: var(--mono); font-size: 10px; color: var(--orange-d); }

/* ---------- material cards ---------- */
.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); border-left: 1px solid var(--line); }
.mat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 16px; background: var(--paper); position: relative; }
.mat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mat h3 { font-size: 30px; font-stretch: 112%; }
.mat .chip { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; border: 1px solid var(--ink); padding: 3px 7px; white-space: nowrap; }
.mat .chip.resin { background: var(--ink); color: var(--paper); }
.mat p { color: var(--ink-3); font-size: 15.5px; margin: 0; }
.mat-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; }
.mat-colors { font-size: 13px; color: var(--mute); }

/* ---------- process program ---------- */
.prog { border-top: 1.5px solid var(--ink); counter-reset: n; }
.prog-step { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.prog-step .n { font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.prog-step .n b { font-family: var(--sans); font-size: 44px; font-stretch: 62%; font-weight: 900; line-height: 1; color: var(--orange); }
.prog-step h3 { font-size: clamp(28px, 3vw, 42px); font-stretch: 112%; }
.prog-step p { color: var(--ink-3); margin: 0; }
.prog-step code { font-family: var(--mono); font-size: 12px; display: block; color: var(--mute); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font-family: var(--mono); font-size: 28px; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--orange-d); }
.faq .ans { padding: 0 0 26px; max-width: 72ch; color: var(--ink-3); }
.faq-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 60px; }
.faq-nav { position: sticky; top: calc(var(--hdr) + 30px); align-self: start; display: flex; flex-direction: column; gap: 4px; }
.faq-nav a { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; text-decoration: none; padding: 6px 0; color: var(--ink-3); }
.faq-nav a:hover { color: var(--orange-d); }
.faq-group { margin-bottom: 60px; scroll-margin-top: calc(var(--hdr) + 20px); }
.faq-group h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 18px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .lbl { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.field label em { font-style: normal; color: var(--orange-d); }
.inp, .field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-bottom: 2px solid var(--ink); padding: 13px 14px; border-radius: 0; transition: border-color .2s, background .2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 140px; resize: vertical; }
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--orange); background: #fff; }
.field .hint { font-size: 13px; color: var(--mute); }
.hp { position: absolute; left: -5000px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 100px); }
.addr-card { background: var(--ink); color: var(--paper); padding: 30px; display: flex; flex-direction: column; gap: 22px; background-image: var(--layers-d); }
.addr-card h3 { font-size: 28px; font-stretch: 112%; }
.addr-card a { color: var(--orange); text-decoration: none; }
.addr-card .row { border-top: 1px solid var(--line-d); padding-top: 14px; }
.addr-card .row .mono { color: #8F887B; display: block; margin-bottom: 6px; }
.map { width: 100%; height: 300px; border: 0; filter: grayscale(1) contrast(1.05) sepia(.15); display: block; }

/* ---------- track / timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 26px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--line); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px var(--orange-l); }
.timeline li b { display: block; font-size: 19px; font-stretch: 108%; }
.timeline li span { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--mute); }
.timeline li p { margin: 4px 0 0; color: var(--ink-3); font-size: 15px; }
.timeline li.todo b { color: var(--mute); font-weight: 600; }
.panel { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.panel-dark { background: var(--ink); color: var(--paper); border: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; padding: 5px 10px; background: var(--paper-2); border: 1px solid var(--line); white-space: nowrap; }
.status-pill::before { content: ''; width: 7px; height: 7px; background: var(--mute); }
.st-received::before, .st-reviewing::before { background: #C99A2E; }
.st-quoted::before { background: var(--orange); }
.st-approved::before, .st-printing::before, .st-finishing::before { background: var(--teal); }
.st-shipped::before, .st-delivered::before { background: var(--ink); }
.st-cancelled::before { background: var(--red); }

/* ---------- quote tool ---------- */
.qt { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 3vw, 44px); align-items: start; }
.drop { position: relative; border: 2px dashed var(--ink); background-color: var(--white); background-image: linear-gradient(var(--paper-2) 1px, transparent 1px), linear-gradient(90deg, var(--paper-2) 1px, transparent 1px); background-size: 24px 24px; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.drop:hover, .drop.is-over { border-color: var(--orange); background-color: #FFF4EE; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 64px; margin-bottom: 18px; }
.drop h2 { font-size: clamp(28px, 3vw, 40px); font-stretch: 112%; margin-bottom: 10px; }
.drop p { color: var(--ink-3); margin: 0; }
.drop .mono { margin-top: 14px; color: var(--mute); }
.drop.compact { min-height: 120px; padding: 22px; }
.drop.compact h2 { font-size: 22px; }
.drop.compact .drop-ico, .drop.compact p { display: none; }
.parts { display: grid; gap: 18px; margin-top: 22px; }
.part { background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.part-view { background: var(--ink); position: relative; min-height: 220px; }
.part-view canvas { width: 100%; height: 100%; display: block; }
.part-view .mono { position: absolute; left: 10px; bottom: 8px; color: #A49D90; font-size: 10.5px; }
.part-view .noprev { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #A49D90; text-align: center; padding: 20px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.part-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.part-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.part-name { font-weight: 700; font-size: 17px; word-break: break-all; }
.part-x { background: none; border: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; cursor: pointer; color: var(--mute); padding: 4px 0; }
.part-x:hover { color: var(--red); }
.part-geo { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--ink-3); }
.part-geo b { color: var(--ink); font-weight: 500; }
.part-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.part-opts .field select, .part-opts .field input { padding: 9px 10px; font-size: 14.5px; }
.part-opts .field select { padding-right: 30px; }
.part-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); gap: 12px; flex-wrap: wrap; }
.part-price { font-size: 26px; font-weight: 800; font-stretch: 112%; }
.part-price small { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--mute); margin-left: 6px; }
.warn { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--red); }
.sum { position: sticky; top: calc(var(--hdr) + 20px); }
.sum .readout dd { font-size: 24px; }
.sum-lines { font-family: var(--mono); font-size: 13px; }
.sum-lines div { display: flex; justify-content: space-between; padding: 9px 16px; border-bottom: 1px solid var(--line-d); text-transform: uppercase; }
.sum-lines div span:last-child { font-weight: 500; }
.sum-form { padding: 18px 16px; display: grid; gap: 14px; }
.sum-form .field label { color: #A49D90; }
.sum-form .field input, .sum-form .field select, .sum-form .field textarea { background: var(--ink-3); color: var(--paper); border-color: var(--line-d); border-bottom-color: #8F887B; font-size: 15px; padding: 10px 12px; }
.sum-form .field select { background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.sum-form .field textarea { min-height: 80px; }
.sum-form .field input:focus, .sum-form .field select:focus, .sum-form .field textarea:focus { background: var(--ink-2); border-bottom-color: var(--orange); }
.sum-form .btn { width: 100%; justify-content: center; --bg: var(--orange); --fg: var(--ink); }
.sum-form .btn:hover { --bg: var(--paper); }
.sum-note { font-size: 12.5px; color: #8F887B; margin: 0; }
.progress { height: 6px; background: var(--ink-3); display: none; }
.progress.on { display: block; }
.progress i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 8px); transition: width .2s; }

/* ---------- prose (legal) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 28px; font-stretch: 108%; margin: 44px 0 14px; }
.prose p, .prose li { color: var(--ink-3); }
.prose ul { padding-left: 20px; }

/* ---------- 2-col utility ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.cols-3 > div { padding: 26px 26px 26px 0; }
.cols-3 > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.dark .cols-3 { border-color: var(--paper); }
.dark .cols-3 > div + div { border-color: var(--line-d); }
.cols-3 h3 { font-size: 26px; font-stretch: 112%; margin: 10px 0 12px; }
.cols-3 p { color: var(--ink-3); margin: 0; font-size: 16px; }
.dark .cols-3 p { color: #C9C2B5; }
.big-num { font-size: clamp(60px, 7vw, 110px); font-weight: 900; font-stretch: 62%; line-height: .85; color: var(--orange); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.ftr-cta { padding: clamp(60px, 9vw, 130px) var(--pad) clamp(40px, 6vw, 80px); max-width: var(--max); margin: 0 auto; border-bottom: 1px solid var(--line-d); }
.ftr-cta .mono { color: #8F887B; margin-bottom: 20px; }
.ftr-big { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; text-decoration: none; font-size: clamp(54px, 11vw, 176px); font-weight: 900; line-height: .86; letter-spacing: -.04em; }
.ftr-big span:first-child { font-stretch: 62%; }
.ftr-big span:nth-child(2) { font-stretch: 125%; font-weight: 300; }
.ftr-big em { font-style: normal; color: var(--orange); font-weight: 300; transition: transform .3s; display: inline-block; }
.ftr-big:hover em { transform: translateX(.15em); }
.ftr-big:hover span:nth-child(2) { color: var(--orange); }
.ftr-grid { max-width: var(--max); margin: 0 auto; padding: 50px var(--pad); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr-col { display: flex; flex-direction: column; gap: 9px; }
.ftr-col p { color: #A49D90; max-width: 34ch; margin-top: 14px; font-size: 15px; }
.ftr-col h4 { font-size: 11.5px; color: var(--orange); font-weight: 500; margin-bottom: 6px; letter-spacing: .04em; }
.ftr-col a { text-decoration: none; color: #D8D1C4; font-size: 15.5px; }
.ftr-col a:hover { color: var(--orange); }
.ftr-col address { font-style: normal; color: #D8D1C4; font-size: 15.5px; line-height: 1.55; }
.ftr-word { font-size: clamp(90px, 23vw, 370px); overflow: hidden; font-weight: 900; font-stretch: 125%; letter-spacing: -.06em; line-height: .72; text-align: center; padding: 0 var(--pad); color: transparent; background: repeating-linear-gradient(180deg, #2E2B27 0 9px, transparent 9px 13px); -webkit-background-clip: text; background-clip: text; user-select: none; margin-bottom: -.06em; }
.ftr-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px var(--pad); border-top: 1px solid var(--line-d); color: #8F887B; font-size: 11.5px; max-width: var(--max); margin: 0 auto; position: relative; }
.ftr-base a { text-decoration: none; }
.ftr-base a:hover { color: var(--orange); }

/* ---------- auth pages (customer side, public skin) ---------- */
.auth { min-height: calc(100vh - var(--hdr)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-side::after { content: ''; position: absolute; inset: 0; background: var(--layers-d), linear-gradient(0deg, rgba(20,19,17,.9), transparent 70%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: clamp(40px, 5vw, 76px); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 60px var(--pad); }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: clamp(44px, 5vw, 64px); margin-bottom: 10px; }
.auth-box .alt { margin-top: 26px; font-size: 15px; color: var(--ink-3); }
.auth-box .alt a { color: var(--orange-d); }

/* ---------- account dashboard (customer) ---------- */
.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 48px 0 100px; }
.acct-nav { position: sticky; top: calc(var(--hdr) + 30px); align-self: start; display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); }
.acct-nav a, .acct-nav button { display: flex; justify-content: space-between; text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; color: var(--ink); text-align: left; width: 100%; }
.acct-nav a.is-on { color: var(--orange-d); }
.acct-nav a:hover, .acct-nav button:hover { color: var(--orange-d); }
.acct h1 { font-size: clamp(40px, 5vw, 70px); margin-bottom: 8px; }
.qlist { border-top: 1.5px solid var(--ink); }
.qrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 150px 120px 24px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.qrow:hover { background: var(--white); }
.qrow .ref { font-family: var(--mono); font-weight: 500; }
.qrow .what { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .what small { display: block; font-weight: 400; color: var(--mute); font-size: 13px; }
.qrow .amt { font-weight: 800; font-stretch: 108%; text-align: right; }
.empty { padding: 60px 30px; text-align: center; border: 1.5px dashed var(--line); }
.empty h3 { font-size: 30px; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 0; border-top: 1px solid var(--line); }
.kv > * { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--mute); }
.kv dd { margin: 0; }
.items-t td, .items-t th { font-size: 14.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hdr-nav { display: none; }
  .hdr-menu { display: inline-flex; }
  .hdr-act { margin-left: auto; }
  .qt { grid-template-columns: 1fr; }
  .sum { position: static; }
}
@media (max-width: 960px) {
  .hero-grid, .slicer, .cols, .contact-grid, .phead-grid, .sec-head, .svc, .faq-grid, .acct { grid-template-columns: 1fr; }
  .sec-head .lede { justify-self: start; }
  .hero-visual { min-height: 420px; }
  .hero-badge { left: 12px; top: 12px; }
  .svc:nth-child(even) .svc-media { order: 0; }
  .idx-row { grid-template-columns: 50px 1fr; }
  .idx-d { grid-column: 2; }
  .idx-k { display: none; }
  .idx-peek { display: none; }
  .prog-step { grid-template-columns: 70px 1fr; }
  .prog-step p { grid-column: 2; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .mosaic .plate:nth-child(n) { grid-column: auto; grid-row: span 1; }
  .mosaic .plate:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 220px; }
  .acct-nav { position: static; }
  .zrail { display: none; }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-3 > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hdr-track, .hdr-acct { display: none; }
  .btn-nozzle span { font-size: 12px; }
  .hero-specs { grid-template-columns: 1fr 1fr; }
  .hero-specs div:nth-child(3) { display: none; }
  .form-2, .part-opts { grid-template-columns: 1fr 1fr; }
  .part { grid-template-columns: 1fr; }
  .part-view { min-height: 200px; }
  .board-row { grid-template-columns: 1fr 90px; }
  .board-row > :nth-child(1), .board-row > :nth-child(4) { display: none; }
  .qrow { grid-template-columns: 1fr auto; }
  .qrow .what, .qrow > :nth-child(5) { display: none; }
  .readout-body { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .ftr-grid { grid-template-columns: 1fr; }
}
