/* ==========================================================================
   AdVoxel — Design System
   Precision-workshop aesthetic: near-black canvas, molten-filament orange,
   build-plate grid, voxel motifs. Hand-built CSS (no framework) for a small,
   fast payload and full control over the bespoke look.
   ========================================================================== */

/* ---- Fonts (loaded via <link> in each HTML head for performance) ---------- */
/* Display: Space Grotesk · Body: Fraunces (optical serif) · Labels: Space Mono */

/* ---- Tokens --------------------------------------------------------------- */
:root {
  /* Brand: black + dark orange (molten filament) */
  --ink:        #0b0b0d;   /* base canvas        */
  --ink-2:      #111114;   /* raised surface     */
  --ink-3:      #17171b;   /* card surface       */
  --ink-4:      #1f1f24;   /* hover surface      */
  --line:       rgba(255,255,255,.08);
  --line-2:     rgba(255,255,255,.14);

  --flame:      #e2571e;   /* primary orange     */
  --flame-hot:  #f97316;   /* hover / glow       */
  --amber:      #f5a623;   /* gradient partner   */
  --ember:      #b8431a;   /* pressed            */

  --text:       #f4f3f1;   /* primary text       */
  --text-soft:  #c4c1bc;   /* secondary          */
  --text-mute:  #8b8782;   /* muted (>=4.5:1)    */

  /* Light section (about/contact accents) */
  --paper:      #f4f2ee;
  --paper-2:    #e9e6e0;
  --ink-on-paper: #16161a;
  --mute-on-paper: #57534e;

  --grad-flame: linear-gradient(135deg, var(--flame) 0%, var(--amber) 100%);

  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 30px;  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 18px 40px -18px rgba(0,0,0,.7);
  --glow:     0 0 0 1px rgba(226,87,30,.35), 0 14px 50px -12px rgba(226,87,30,.45);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(.22,.61,.36,1);     /* ease-out, organic */
  --ease-in: cubic-bezier(.55,.06,.68,.19);
  --t-fast: 160ms;
  --t: 240ms;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --nav-h: 72px;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--flame-hot); outline-offset: 3px; border-radius: 4px; }

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.display {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 700; line-height: .98; letter-spacing: -.035em;
}
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 56ch; }
p { max-width: 68ch; }

.mono {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--flame); font-weight: 700;
}
.mono-mute { color: var(--text-mute); }

/* spec chip: PLA · 0.2mm · MULTICOLOR */
.spec {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mute);
}

/* gradient text accent */
.flame-text {
  background: var(--grad-flame); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}

/* ---- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 11vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; }
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--flame); display: inline-block;
}

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
/* On phones: 3-up stacks to 1 column, but 4-up (stats, process) stays 2×2 so it
   doesn't become an endless single column. */
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---- Build-plate grid background ----------------------------------------- */
.plate-bg { position: relative; isolation: isolate; }
.plate-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 75%);
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.5rem; border-radius: var(--r-pill); font-weight: 600;
  font-family: var(--font-display); letter-spacing: -.01em; font-size: .98rem;
  cursor: pointer; transition: transform var(--t-fast) var(--ease),
    background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--flame); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--flame-hot); box-shadow: var(--glow); }
.btn-primary:active { background: var(--ember); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--ink-4); border-color: var(--flame); color: #fff; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--flame);
  font-weight: 600; font-family: var(--font-display); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Navbar (floating) ---------------------------------------------------- */
.nav-wrap { position: fixed; inset: 16px 0 auto 0; z-index: 50; pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: var(--container); margin-inline: auto;
  margin-inline: clamp(12px, 4vw, auto);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--nav-h); padding: 0 .8rem 0 1.3rem;
  background: rgba(17,17,20,.72); backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.nav.scrolled { background: rgba(11,11,13,.9); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .5rem .85rem; border-radius: var(--r-pill); font-size: .92rem; font-weight: 500;
  font-family: var(--font-display); letter-spacing: -.01em;
  color: var(--text-soft); transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a:hover { color: #fff; background: var(--ink-4); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; width: 18px; margin: 2px auto 0;
  background: var(--flame); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: .5rem; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-display);
  font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; color: #fff; }
.logo .mark { width: 30px; height: 30px; flex: none; margin-right: .5rem; }
.logo b { color: var(--flame); font-weight: 700; }

/* Lang toggle */
.lang { display: inline-flex; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px; }
.lang button { padding: .3rem .62rem; font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  border-radius: var(--r-pill); color: var(--text-mute); font-family: var(--font-mono);
  transition: color var(--t-fast), background var(--t-fast); }
.lang button[aria-pressed="true"] { background: var(--flame); color: #fff; }

/* Hamburger */
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-pill);
  align-items: center; justify-content: center; border: 1px solid var(--line); }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast); }
.burger span::before { transform: translateY(-6px); }
.burger span::after  { transform: translateY(4px); }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: rotate(45deg); }
body.menu-open .burger span::after  { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + 28px) 12px auto 12px;
    flex-direction: column; align-items: stretch; gap: .25rem; padding: .8rem;
    background: rgba(11,11,13,.96); backdrop-filter: blur(18px);
    border: 1px solid var(--line-2); border-radius: var(--r-lg);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  }
  .nav-links a { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav-links a.active::after { display: none; }
  body.menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---- Cards ---------------------------------------------------------------- */
.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}
.card:hover { border-color: var(--line-2); background: var(--ink-4); }
.card .ic { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center;
  background: rgba(226,87,30,.12); border: 1px solid rgba(226,87,30,.25); color: var(--flame-hot);
  margin-bottom: 1.1rem; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .96rem; }

/* numbered process step */
.step { position: relative; }
.step .num { font-family: var(--font-mono); font-size: .8rem; color: var(--flame);
  letter-spacing: .1em; margin-bottom: .9rem; display: block; }

/* ---- Product card --------------------------------------------------------- */
.product { overflow: hidden; padding: 0; }
.product .ph {
  position: relative; aspect-ratio: 4 / 3; background:
    radial-gradient(120% 100% at 50% 0%, #26262c 0%, #131316 70%);
  display: grid; place-items: center; overflow: hidden;
}
.product .ph picture { display: block; width: 78%; margin-inline: auto; }
.product .ph img { width: 100%; object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.55));
  transition: transform var(--t) var(--ease); will-change: transform; }
.product:hover .ph img { transform: translateY(-6px) scale(1.04) rotate(-1deg); }
.product .ph .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: .3rem .6rem; border-radius: var(--r-pill);
  background: rgba(11,11,13,.7); backdrop-filter: blur(6px); border: 1px solid var(--line-2);
}
.product .body { padding: 1.2rem 1.3rem 1.4rem; }
.product .body h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.product .swatches { display: flex; gap: .35rem; margin-top: .8rem; }
.product .sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); }

/* ---- Marquee -------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 3.5rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee li { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  color: var(--text-mute); display: inline-flex; align-items: center; gap: 3.5rem; white-space: nowrap; }
.marquee li::after { content: "◆"; color: var(--flame); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee ul { animation: none; } }

/* ---- Stats ---------------------------------------------------------------- */
.stat { }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1; letter-spacing: -.03em; }
.stat .l { color: var(--text-mute); font-size: .9rem; margin-top: .4rem; }

/* ---- Forms ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-soft);
  font-family: var(--font-display); letter-spacing: .01em; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-md); font: inherit; font-size: .98rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--flame); box-shadow: 0 0 0 3px rgba(226,87,30,.18); background: var(--ink-3); }
.field textarea { resize: vertical; min-height: 130px; }

/* Custom dropdown chevron (native arrow sits flush to the edge; this one is
   inset a bit from the right and colour-matched). */
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c4c1bc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

/* file dropzone */
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 1.6rem;
  text-align: center; color: var(--text-mute); background: var(--ink-2);
  transition: border-color var(--t-fast), background var(--t-fast); cursor: pointer; }
.dropzone:hover { border-color: var(--flame); background: var(--ink-3); color: var(--text-soft); }
.dropzone svg { width: 26px; height: 26px; margin: 0 auto .5rem; color: var(--flame); }
.dropzone input { display: none; }

.form-note { font-size: .8rem; color: var(--text-mute); }

/* ---- Contact rows --------------------------------------------------------- */
.crow { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: none; }
.crow .ic { flex: none; width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center;
  background: rgba(226,87,30,.1); border: 1px solid rgba(226,87,30,.22); color: var(--flame-hot); }
.crow .ic svg { width: 20px; height: 20px; }
.crow .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.crow .v { font-weight: 500; font-size: 1.05rem; }
.crow a.v:hover { color: var(--flame-hot); }

/* ---- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px) 2rem; background: var(--ink-2); }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 460px) {
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .cols > :first-child { grid-column: 1 / -1; }
}
.footer h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute);
  font-family: var(--font-mono); margin-bottom: 1rem; }
.footer a { color: var(--text-soft); font-size: .95rem; display: inline-block; padding: .25rem 0; }
.footer a:hover { color: var(--flame-hot); }
.footer .bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--text-mute); font-size: .85rem; }

/* social */
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--text-soft);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
.social a:hover { border-color: var(--flame); color: #fff; background: var(--ink-4); }
.social svg { width: 18px; height: 18px; }

/* ---- Panels (light accent) ----------------------------------------------- */
.panel-paper { background: var(--paper); color: var(--ink-on-paper); border-radius: var(--r-xl); }
.panel-paper .lead, .panel-paper p { color: var(--mute-on-paper); }
.panel-paper .mono { color: var(--ember); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: radial-gradient(120% 140% at 0% 0%, #2a1409 0%, #131316 55%); border: 1px solid var(--line-2); }
.cta-band::after { content: ""; position: absolute; right: -10%; top: -40%; width: 50%; height: 180%;
  background: radial-gradient(closest-side, rgba(226,87,30,.35), transparent); filter: blur(20px); pointer-events: none; }
.cta-band > .bg { position: absolute; inset: 0; z-index: 0; opacity: .2; }
.cta-band > .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band > .bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19,19,22,.6), rgba(19,19,22,.2)); }
.cta-band > .split { position: relative; z-index: 1; }

/* ---- Hero / Voxel --------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 80px); padding-bottom: clamp(60px, 9vw, 110px);
  overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero .hero-art { display: none; }
}

.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--ink-2); font-size: .82rem; color: var(--text-soft); }
.badge svg { width: 15px; height: 15px; color: var(--flame); }

/* glow blob behind hero art */
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-art .blob { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226,87,30,.4), transparent); filter: blur(40px); z-index: 0; }

/* Isometric voxel stack — the signature mark, "printed" in layers */
.voxel { --s: clamp(34px, 8vw, 56px); position: relative; width: calc(var(--s)*3); height: calc(var(--s)*3.4);
  transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(45deg); z-index: 1; }
.cube { position: absolute; width: var(--s); height: var(--s); transform-style: preserve-3d; }
.cube .face { position: absolute; width: var(--s); height: var(--s); }
.cube .top   { background: var(--flame-hot); transform: translateZ(calc(var(--s)/2)); }
.cube .left  { background: var(--ember); transform: rotateY(-90deg) translateZ(calc(var(--s)/2)); filter: brightness(.7); }
.cube .right { background: var(--flame); transform: rotateX(90deg) translateZ(calc(var(--s)/2)); filter: brightness(.85); }
.cube.dim .top { background: #2a2a30; } .cube.dim .left { background:#17171b; } .cube.dim .right{ background:#202026; }

/* continuous "solving" wave — each cube ripples up and resettles, staggered
   per grid position so a diagonal wave keeps sweeping across the voxel. */
.cube { opacity: 1; transform: translateZ(var(--lift, 0px)); animation: cubeSolve 3.4s var(--ease) infinite; }
@keyframes cubeSolve {
  0%, 42%, 100% { transform: translateZ(var(--lift, 0px)) rotateZ(0deg); }
  16% { transform: translateZ(calc(var(--lift, 0px) + 28px)) rotateZ(0deg); }
  29% { transform: translateZ(calc(var(--lift, 0px) + 6px)) rotateZ(0deg); }
}
@media (prefers-reduced-motion: reduce) { .cube { animation: none; transform: translateZ(var(--lift, 0px)); } }

/* ---- Scroll reveal -------------------------------------------------------- */
/* "Print-up": content rises from a baseline behind a clip, like a part being
   laid down off the build plate — deliberately not a generic AOS fade-up. */
/* Hidden initial state only when JS is active (no-JS users see content) */
html.js .reveal {
  opacity: 0; transform: translateY(26px);
  clip-path: inset(-12% -12% 100% -12%);
  transition: opacity .75s var(--ease), transform .85s var(--ease), clip-path .85s var(--ease);
  will-change: opacity, transform, clip-path;
}
html.js .reveal.in { opacity: 1; transform: none; clip-path: inset(-12% -12% -12% -12%); }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none; }
}

/* magnetic primary button — JS nudges --mx/--my toward the cursor */
.btn-primary { transform: translate(var(--mx, 0), var(--my, 0)); }
.btn-primary:hover { transform: translate(var(--mx, 0), calc(var(--my, 0) - 2px)); }

/* subtle parallax on the product frame image (JS sets --py) */
.frame img { transform: translateY(var(--py, 0)); }
@media (prefers-reduced-motion: reduce) { .btn-primary, .frame img { transform: none !important; } }

/* print-line divider that "draws" across */
.printline { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.printline::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--grad-flame);
  transition: width 1.1s var(--ease); }
.printline.in::after { width: 100%; }

/* ---- Utilities ------------------------------------------------------------ */
.muted { color: var(--text-mute); }
.soft { color: var(--text-soft); }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}.mt-6{margin-top:3.6rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}
.flex{display:flex}.wrap{flex-wrap:wrap}.gap{gap:1rem}.gap-sm{gap:.5rem}.items-center{align-items:center}.between{justify-content:space-between}
.btn-row{display:flex;flex-wrap:wrap;gap:.8rem}
.skip { position: absolute; left: -999px; top: 0; background: var(--flame); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0; z-index: 100; }
.skip:focus { left: 0; }
[hidden] { display: none !important; }

/* ==========================================================================
   Page components — catalogue, custom, about, contact
   ========================================================================== */

/* nav CTA hides on small (burger takes over) */
@media (max-width: 860px) { .nav-cta { display: none; } }

/* page header (interior pages) */
.page-head { padding-top: calc(var(--nav-h) + 72px); padding-bottom: clamp(36px, 6vw, 60px); }
.page-head .display { font-size: clamp(2.3rem, 5.5vw, 4rem); }
.breadcrumb { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.breadcrumb b { color: var(--flame); font-weight: 700; }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem .95rem; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--ink-2); color: var(--text-soft); font-size: .88rem; font-weight: 500;
  transition: all var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--flame); color: #fff; }
.chip[aria-pressed="true"] { background: var(--flame); border-color: var(--flame); color: #fff; }

/* category card with icon art */
.cat { display: flex; flex-direction: column; gap: .8rem; }
.cat .art { aspect-ratio: 5/4; border-radius: var(--r-md); display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 10%, #23232a, #131316); border: 1px solid var(--line);
  color: var(--flame-hot); position: relative; overflow: hidden; }
.cat .art svg { width: 46%; height: 46%; opacity: .92; transition: transform var(--t) var(--ease); }
.cat:hover .art svg { transform: translateY(-4px) scale(1.05); }
.cat .art::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%); }
.cat h3 { font-size: 1.08rem; }
.cat .meta { display: flex; justify-content: space-between; align-items: center; }

/* timeline (custom process) */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding-bottom: 2.2rem; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-3); border: 1px solid var(--line-2); color: var(--flame-hot); font-family: var(--font-mono);
  font-weight: 700; font-size: .9rem; z-index: 1; }
.tl-line { width: 1px; flex: 1; background: var(--line); margin-top: 6px; }
.tl-item:last-child .tl-line { display: none; }
.tl-body h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.tl-body p { color: var(--text-soft); font-size: .96rem; }

/* pricing */
.price { position: relative; display: flex; flex-direction: column; }
.price.featured { border-color: rgba(226,87,30,.4); background:
  radial-gradient(120% 80% at 50% 0%, rgba(226,87,30,.12), transparent 60%), var(--ink-3); box-shadow: var(--glow); }
.price .badge-top { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--flame); color: #fff; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--font-mono); font-weight: 700; padding: .25rem .7rem; border-radius: var(--r-pill); }
.price .amount { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -.03em; }
.price .amount small { font-size: .9rem; color: var(--text-mute); font-weight: 500; }
.price ul.feat { display: grid; gap: .6rem; margin: 1.2rem 0 1.6rem; }
.price ul.feat li { display: flex; gap: .6rem; align-items: flex-start; font-size: .94rem; color: var(--text-soft); }
.price ul.feat li svg { width: 18px; height: 18px; color: var(--flame); flex: none; margin-top: 2px; }
.price .btn { margin-top: auto; }

/* specs table */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.specs th { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 700; width: 38%; }
.specs td { color: var(--text-soft); }

/* testimonial */
.quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.35;
  letter-spacing: -.02em; }
.quote::before { content: "“"; color: var(--flame); font-size: 1.4em; line-height: 0; vertical-align: -.35em; margin-right: .1em; }
.qauthor { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; }
.qauthor .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-flame); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; }

/* prose (about) */
.prose p { color: var(--text-soft); margin-bottom: 1.1rem; max-width: 65ch; }
.prose p:last-child { margin-bottom: 0; }

/* success / error messages — collapse + fade so they animate in and out
   (the `.show` class is toggled by JS; base state is collapsed) */
.form-ok, .form-err {
  display: flex; align-items: center; gap: .6rem; border-radius: var(--r-md); font-size: .92rem;
  overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-6px);
  margin: 0; padding: 0 1.1rem; border: 0 solid transparent;
  transition: max-height .45s var(--ease), opacity .3s var(--ease), transform .35s var(--ease),
              margin .35s var(--ease), padding .35s var(--ease);
}
.form-ok  { background: rgba(34,197,94,.12);  color: #86efac; border-color: rgba(34,197,94,.35); }
.form-err { background: rgba(239,68,68,.12);  color: #fca5a5; border-color: rgba(239,68,68,.38); }
.form-ok.show, .form-err.show {
  max-height: 8rem; opacity: 1; transform: none;
  margin-bottom: 1rem; padding: .9rem 1.1rem; border-width: 1px;
}
.form-ok svg, .form-err svg { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: reduce) { .form-ok, .form-err { transition: opacity .2s linear; } }

/* busy button */
[data-busy] { opacity: .7; pointer-events: none; }

/* map frame */
.map { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }

/* two-col content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split-wide { grid-template-columns: 1.15fr .85fr; }

/* image frame for photos */
.frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); position: relative;
  background: radial-gradient(120% 100% at 50% 0%, #26262c, #131316); }
.frame img { width: 100%; }

/* Editorial media framing — give split images a controlled, consistent shape
   instead of letting raw photo dimensions dictate a towering column. */
.frame--tall { aspect-ratio: 4 / 5; }
.frame--tall picture { display: block; width: 100%; height: 100%; }
.frame--tall img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall::after {   /* soft bottom vignette for depth */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11,11,13,.35));
}

/* Product "on-stage" — centered on a clean light card so it reads intentional
   rather than a white rectangle floating on dark. */
.frame--product { aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: var(--paper); border-color: rgba(0,0,0,.12); }
.frame--product picture { display: block; width: 76%; }
.frame--product img { width: 100%; height: auto;
  filter: drop-shadow(0 20px 26px rgba(0,0,0,.22)); }

/* full-bleed editorial image band (breaks the card-grid rhythm) */
.fullbleed { position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(360px, 56vh, 560px); display: flex; align-items: center; }
.fullbleed > .bg { position: absolute; inset: 0; z-index: -1; }
.fullbleed > .bg img { width: 100%; height: 100%; object-fit: cover; }
.fullbleed > .bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,13,.94) 0%, rgba(11,11,13,.7) 45%, rgba(11,11,13,.25) 100%); }
.fullbleed.center-overlay > .bg::after {
  background: linear-gradient(0deg, rgba(11,11,13,.92) 0%, rgba(11,11,13,.55) 50%, rgba(11,11,13,.8) 100%); }
.fullbleed .inner { position: relative; z-index: 1; width: 100%; }
.fullbleed .eyebrow.mono { color: var(--flame-hot); }
@media (max-width: 620px) {
  .fullbleed > .bg::after { background: linear-gradient(90deg, rgba(11,11,13,.92) 0%, rgba(11,11,13,.78) 100%); }
}
.frame .cap { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between;
  align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: var(--r-pill);
  background: rgba(11,11,13,.65); backdrop-filter: blur(8px); border: 1px solid var(--line); }

/* ==========================================================================
   Mobile: designed, not shrunk
   ========================================================================== */

/* Pricing becomes a horizontal snap-carousel on phones (not a flat stack) */
@media (max-width: 620px) {
  .grid.price-carousel {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 1.2rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .grid.price-carousel::-webkit-scrollbar { display: none; }
  .grid.price-carousel > * { scroll-snap-align: center; }
  /* Show the recommended tier first in the carousel (stays centred on desktop). */
  .grid.price-carousel .price.featured { order: -1; }
  .carousel-hint { display: flex; }
}
.carousel-hint { display: none; align-items: center; gap: .5rem; justify-content: center;
  margin-top: .4rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-mute); }
.carousel-hint svg { width: 16px; height: 16px; }

/* Hero CTAs become full-width stacked targets on small phones */
@media (max-width: 560px) {
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { width: 100%; }
}

/* Sticky bottom action bar (injected by JS) */
.mobilebar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none; }
.mobilebar a { width: 100%; box-shadow: var(--shadow-2); }
@media (max-width: 860px) {
  .mobilebar { display: block; }
  body { padding-bottom: 78px; }
}
body.menu-open .mobilebar { display: none; }
@media (prefers-reduced-motion: reduce) { .grid.price-carousel { scroll-behavior: auto; } }

/* ==========================================================================
   Handcrafted card micro-interactions — restrained, cursor-aware, pointer-only.
   The goal is "more expensive," not busier: nothing animates on its own.
   ========================================================================== */
.card { position: relative; }

/* One unified transition so BOTH the scroll-reveal entrance and the hover
   states animate smoothly (the reveal rule would otherwise drop the
   border/shadow transitions, making hovers snap). */
html.js .card {
  transition:
    opacity .7s var(--ease),
    clip-path .85s var(--ease),
    transform .4s var(--ease),
    box-shadow .45s var(--ease),
    border-color .3s var(--ease),
    background-color .3s var(--ease);
}

/* Cursor-follow spotlight — a soft warm glow that tracks the pointer.
   Content cards only (product/price cards have their own treatments). */
.card:not(.product):not(.price)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), rgba(242,116,42,.10), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:not(.product):not(.price):hover::before { opacity: 1; }
.card:not(.product):not(.price) > * { position: relative; z-index: 1; }

/* Hairline accent that draws in across the top edge on hover. */
.card:not(.product):not(.price)::after {
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
  transform: scaleX(0); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.card:not(.product):not(.price):hover::after { transform: scaleX(1); opacity: .9; }
/* Keep the "most popular" badge above any hover decoration. */
.price .badge-top { z-index: 3; }

/* Refined lift + layered shadow. (Featured price card keeps its own glow.) */
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 45px -22px rgba(0,0,0,.72); }

/* Icon reacts to its card. */
.card .ic { transition: transform .4s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease); }
.card:hover .ic { transform: translateY(-2px) scale(1.06); background: rgba(226,87,30,.2); border-color: rgba(226,87,30,.5); }

/* Process-step number gets a small underscore that extends on hover. */
.step .num { position: relative; display: inline-block; }
.step .num::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 14px; border-radius: 2px;
  background: var(--flame); transform-origin: left; transition: width .45s var(--ease);
}
.card.step:hover .num::after { width: 30px; }

/* Footer links: underline wipes in from the left. */
.footer a { position: relative; }
.footer a::after {
  content: ""; position: absolute; left: 0; bottom: .1rem; width: 100%; height: 1px; background: var(--flame-hot);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.footer a:hover::after { transform: scaleX(1); }

/* Contact rows: icon lifts gently on hover. */
.crow .ic { transition: transform .35s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease); }
.crow:hover .ic { transform: translateY(-2px); background: rgba(226,87,30,.16); border-color: rgba(226,87,30,.4); }

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
  .card::after, .card:hover .ic, .crow:hover .ic, .step .num::after, .footer a::after { transition: none; }
}

/* ==========================================================================
   Dedicated mobile pass — tighter rhythm, compact 2×2 cards, full-width CTAs.
   ========================================================================== */
.hide-on-mobile { }
@media (max-width: 880px) { .hide-on-mobile { display: none !important; } }

/* Ensure BOTH split variants collapse to one column on tablets/phones.
   (.split-wide's base rule is defined after the earlier stacking media query,
   so re-assert the stack here as the last word.) */
@media (max-width: 880px) { .split, .split-wide { grid-template-columns: 1fr; } }

@media (max-width: 620px) {
  /* Trim vertical rhythm */
  .section { padding-block: clamp(46px, 9vw, 74px); }
  .section--tight { padding-block: clamp(34px, 7vw, 58px); }

  /* Compact the process cards so the 2×2 grid reads cleanly */
  .card.step { padding: 1.05rem 1.1rem; }
  .card.step h3 { font-size: 1.02rem; }
  .card.step p { font-size: .86rem; line-height: 1.5; }
  .card.step .num { margin-bottom: .45rem; }

  /* Slightly smaller stat numbers so 2 columns never crowd */
  .stat .n { font-size: clamp(2rem, 9vw, 2.9rem); }
  .stat .l { font-size: .82rem; }

  /* Tighten the 4-up gap on phones */
  .grid-4 { gap: 12px; }

  /* CTA band: stacked full-width buttons (overrides the inline flex-end) */
  .cta-band .btn-row { flex-direction: column; align-items: stretch; justify-content: stretch !important; }
  .cta-band .btn-row .btn { width: 100%; }

  /* Editorial band: a touch shorter and readable */
  .fullbleed { min-height: clamp(320px, 62vw, 440px); }

  /* Show the swipe affordance on the pricing carousel (base rule sets it to
     none later in the file, so re-assert it here as the last word). */
  .carousel-hint { display: flex; }
}

/* ==========================================================================
   Legal pages (privacy, terms) · consent checkbox · footer legal links
   ========================================================================== */
.legal { max-width: 820px; }
.legal .prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 2.4rem; margin-bottom: .6rem; }
.legal .prose h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: .4rem; color: var(--text); }
.legal .prose h2:first-of-type { margin-top: 0; }
.legal .prose p { margin-bottom: 1rem; }
.legal .prose ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.1rem; }
.legal .prose li { color: var(--text-soft); margin-bottom: .45rem; }
.legal .prose a { color: var(--flame); text-decoration: underline; text-underline-offset: 2px; }
.legal .prose a:hover { color: var(--flame-hot); }
.legal .prose strong { color: var(--text); }
.legal .updated { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mute); }
.legal .lead-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.3rem 1.5rem; margin-bottom: 2rem; }
.legal .lead-card p { margin: 0; color: var(--text-soft); }

/* GDPR consent checkbox on forms */
.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .86rem;
  color: var(--text-soft); line-height: 1.5; cursor: pointer; }
.check input[type="checkbox"] { margin-top: .15rem; width: 17px; height: 17px; flex: none;
  accent-color: var(--flame); cursor: pointer; }
.check a { color: var(--flame); text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { color: var(--flame-hot); }

/* Footer legal links (bottom bar) */
.foot-legal { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.foot-legal a { color: var(--text-mute); font-size: .85rem; }
.foot-legal a:hover { color: var(--flame-hot); }
