/* Hallmark · redesign pass · macrostructure: editorial-workbench hybrid (kept)
 * nav: N7 Brutal slab (was: floating blurred bar) · footer: Ft8 Marquee + inline line (was: 4-col index)
 * eyebrows removed sitewide · icon-tile 3-card grids replaced with feature-list / value-stack / spec-list
 * scroll-reveal-on-everything replaced with a single page-load stagger (see motion tokens)
 * brand colours (#66ff00 / #ff33cc) and logo preserved exactly as specified by the client
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* MakerForge brand — dark is the default look, matching the original site */
  --bg: #0b0b0d;
  --bg-alt: #141417;
  --bg-raised: #17171a;
  --bg-dark: #000000;
  --bg-dark-raised: #141417;
  --text: #f4f4f6;
  --text-soft: #a7a8b0;
  --text-on-dark: #f4f4f6;
  --text-on-dark-soft: #a7a8b0;
  --border: #232327;
  --border-dark: #29292e;
  --accent: #66ff00;
  --accent-2: #ff33cc;
  --accent-dark: #4fd400;
  --accent-soft: #16330a;
  --good: #4ade80;
  --good-soft: #10231a;
  --low: #f5b342;
  --low-soft: #2b230f;
  --critical: #ff5d6c;
  --critical-soft: #2b1417;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --maxw: 1180px;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 72px;

  /* Motion — three named easings + three durations. No browser-default `ease`. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --bg-raised: #ffffff;
  --text: #16161a;
  --text-soft: #57585f;
  --border: #e7e7ea;
  --accent-soft: #eafde0;
  --good-soft: #e6f9ed;
  --low-soft: #fdf1de;
  --critical-soft: #fde8ea;
  --shadow: 0 10px 30px rgba(20, 20, 26, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 20, 26, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-style: normal;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { color: var(--text-soft); margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  transition: none;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-short) var(--ease-out), background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  color: #0b0b0d;
  box-shadow: 0 0 14px rgba(102,255,0,0.3), 0 0 24px rgba(255,51,204,0.2);
}
.btn-primary:hover {
  background-position: right center;
  color: #fff;
}
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light {
  background: #fff;
  color: #16161a;
}
.btn-light:hover { background: var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header — N7 Brutal slab: solid, hard-edged, always bordered ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand .fg { color: var(--accent); }

.footer-logo {
  height: 56px;
  width: auto;
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(102,255,0,0.25));
}

.masthead {
  text-align: center;
  padding: 2.25rem 1.75rem 0;
  background: var(--bg);
}
.masthead-logo {
  max-width: 420px;
  width: 90%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(102,255,0,0.3), 0 0 45px rgba(255,51,204,0.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--dur-short) var(--ease-out);
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.85rem; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.08); }
.theme-toggle svg {
  width: 18px; height: 18px;
  position: absolute;
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
@media (prefers-reduced-motion: reduce) { .theme-toggle svg { transition: opacity 1ms; transform: none !important; } }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-cta { display: none; }

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }
.section-tight { padding: 3.25rem 0; }
.section-head {
  max-width: 640px;
  margin: 0 0 3rem;
}
.section-head p { font-size: 1.08rem; }

.band-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.band-dark p { color: var(--text-on-dark-soft); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--text-on-dark); }
.band-alt { background: var(--bg-alt); }

/* ---------- Hero — left-biased, no ambient blob decoration ---------- */
.hero {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { font-size: 1.2rem; max-width: 540px; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(102,255,0,0.15);
  aspect-ratio: 4/5;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.hero-badge {
  position: absolute;
  bottom: 1.4rem; left: 1.4rem; right: 1.4rem;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hero-badge .pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(102,255,0,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(102,255,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(102,255,0,0); }
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat {
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border);
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat .label { font-size: 0.88rem; color: var(--text-soft); margin-top: 0.35rem; }

/* ---------- Cards (used only where a bordered container has real semantic reason — CTA callouts) ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--dur-short) var(--ease-out);
}
.card:hover { border-color: var(--accent); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Feature list — divided rows, not an icon-tile grid ---------- */
.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:first-child { padding-top: 0; }
.feature-row:last-child { border-bottom: none; padding-bottom: 0; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-row h3 { margin-bottom: 0.35rem; }
.feature-row p { margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Value stack — one lead statement + supporting items (About page) ---------- */
.value-stack {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.value-quote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
}
.value-quote span { color: var(--accent); }
.value-support { display: grid; gap: 1.6rem; }
.value-item { padding-top: 1.4rem; border-top: 1px solid var(--border); }
.value-item h3 { margin-bottom: 0.35rem; font-size: 1.1rem; }
.value-item p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 34px; left: 34px; bottom: 34px;
  width: 2px;
  background: var(--border);
}
.timeline-step {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 1.75rem;
  margin-bottom: 2.75rem;
  position: relative;
}
.timeline-step:last-child { margin-bottom: 0; }
.timeline-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  z-index: 1;
  flex-shrink: 0;
  transition: background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.timeline-step.in-view .timeline-num {
  background: var(--accent);
  color: #0b0b0d;
  border-color: var(--accent);
}
.timeline-content h3 { margin-bottom: 0.4rem; }
.timeline-content p { margin-bottom: 0; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.split-media:hover img { transform: scale(1.06); }
.split-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.split-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.98rem; color: var(--text-soft); }
.split-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .tag {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  color: #fff; font-size: 0.82rem; font-weight: 600;
  background: rgba(0,0,0,0.55);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.gallery-item.wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(6,6,8,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(900px, 90vw); max-height: 82vh; border-radius: var(--radius); }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox .lb-close { top: 1.5rem; right: 1.5rem; }
.lightbox .lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: #ddd; font-size: 0.9rem; }

/* ---------- Currently in stock — compact rows with a status chip ---------- */
.stock-groups { display: flex; flex-direction: column; gap: 1.75rem; }
.stock-group-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-soft); margin: 0 0 0.6rem;
}
.stock-list { display: flex; flex-direction: column; gap: 0.6rem; }
.stock-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stock-swatch { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; border: 1px solid rgba(127,127,127,0.25); }
.stock-main { min-width: 0; }
.stock-name { font-weight: 600; font-size: 0.92rem; }
.stock-brand { font-weight: 400; color: var(--text-soft); font-size: 0.88rem; }
.stock-amount { font-size: 0.85rem; color: var(--text-soft); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.stock-bar-track { margin-top: 0.4rem; height: 5px; border-radius: 3px; background: var(--bg-alt); overflow: hidden; max-width: 220px; }
.stock-bar-fill { height: 100%; border-radius: 3px; }
.stock-bar-fill.good { background: var(--good); }
.stock-bar-fill.low { background: var(--low); }
.stock-bar-fill.critical { background: var(--critical); }
.chip {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0.35rem 0.65rem; border-radius: 999px; white-space: nowrap;
}
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.low { background: var(--low-soft); color: var(--low); }
.chip.critical { background: var(--critical-soft); color: var(--critical); }

/* ---------- Materials — spec-list rows, not a card grid ---------- */
.spec-list { border-top: 1px solid var(--border); }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.spec-row-head { display: flex; align-items: center; gap: 0.75rem; }
.spec-row-head h3 { margin: 0; }
.spec-row .swatch { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.spec-row-body p { font-size: 0.95rem; }
.spec-row-body ul { padding-left: 1.1rem; margin: 0.5rem 0 0; color: var(--text-soft); font-size: 0.9rem; }
.spec-row-body ul li { margin-bottom: 0.3rem; }

.infill-scale {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 2rem 0;
}
.infill-step {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  transition: background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.infill-step strong { display: block; font-family: var(--font-head); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.infill-step:hover { background: var(--accent); color: #0b0b0d; }

/* ---------- FAQ Accordion ---------- */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 0.25rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
}
.acc-trigger .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.acc-trigger .plus::before, .acc-trigger .plus::after {
  content: "";
  position: absolute;
  background: var(--text);
  transition: transform var(--dur-short) var(--ease-in-out), background var(--dur-short) var(--ease-out);
}
.acc-trigger .plus::before { width: 10px; height: 1.5px; }
.acc-trigger .plus::after { width: 1.5px; height: 10px; }
.acc-item.open .acc-trigger .plus { background: var(--accent); border-color: var(--accent); }
.acc-item.open .acc-trigger .plus::before, .acc-item.open .acc-trigger .plus::after { background: #0b0b0d; }
.acc-item.open .acc-trigger .plus::after { transform: scaleY(0); }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-long) var(--ease-in-out);
}
.acc-panel p { padding-bottom: 1.4rem; margin: 0; }

/* ---------- Order form ---------- */
.order-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: flex-start;
}
.order-steps { position: sticky; top: calc(var(--header-h) + 2rem); }
.mini-step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0;
  opacity: 0.45;
  transition: opacity var(--dur-short) var(--ease-out);
}
.mini-step.active { opacity: 1; }
.mini-step .n {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.mini-step.active .n { background: var(--accent); color: #0b0b0d; border-color: var(--accent); }

.form-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn var(--dur-long) var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .form-step.active { animation-duration: 150ms; }
}

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.field .hint { font-size: 0.8rem; color: var(--text-soft); margin-top: 0.4rem; }
input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--dur-short) var(--ease-out);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--bg-alt);
  transition: background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
  user-select: none;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip.checked, .chip:has(input:checked) {
  background: var(--accent);
  color: #0b0b0d;
  border-color: var(--accent);
}
.form-nav { display: flex; justify-content: space-between; margin-top: 1.75rem; gap: 1rem; }
.form-msg { font-size: 0.9rem; margin-top: 1rem; display: none; }
.form-msg.show { display: block; }

/* ---------- Footer — Ft8 marquee band + a single inline line (no 4-column index) ---------- */
.site-footer { background: var(--bg-dark); color: var(--text-on-dark); }
.foot-marquee {
  overflow: hidden;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border-dark);
}
.foot-marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  padding-block: 0.9rem;
  animation: foot-marquee 28s linear infinite;
}
.foot-marquee__track span {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  color: var(--accent);
}
@keyframes foot-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .foot-marquee__track { animation: none; } }

.foot-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 0;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.foot-links a { font-size: 0.85rem; color: var(--text-on-dark-soft); transition: color var(--dur-short) var(--ease-out); }
.foot-links a:hover { color: var(--accent); }
.foot-copy { font-size: 0.8rem; color: var(--text-on-dark-soft); margin: 0; }

/* ---------- Page-load reveal — one orchestrated moment, CSS-only, not scroll-linked ---------- */
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Progressive enhancement: content is fully visible by default. Only once interact.js
   confirms it's running (documentElement gets .js) do reveal elements hide and wait
   to animate in on scroll — so a JS failure or slow connection never hides content. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in-view { animation: reveal var(--dur-long) var(--ease-out) both; }
.js .reveal-1.in-view { animation-delay: 90ms; }
.js .reveal-2.in-view { animation-delay: 160ms; }
.js .reveal-3.in-view { animation-delay: 230ms; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.in-view { animation-duration: 1ms; animation-delay: 0ms !important; }
}

/* ---------- Page hero (inner pages) — left-biased, matches the home hero's voice ---------- */
.page-hero { padding: 4rem 0 3.25rem; }
.page-hero h1 { max-width: 30ch; }
.page-hero p { max-width: 620px; font-size: 1.08rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 980px) {
  .hero-grid, .split, .order-wrap, .value-stack { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-logo { display: none; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  section { padding: 3.5rem 0; }
  .header-actions .btn-primary { display: none; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 1.5rem; transform: translateX(100%); transition: transform var(--dur-long) var(--ease-in-out); overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0.25rem; }
  .main-nav a { display: block; padding: 0.9rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); min-height: 44px; }
  .nav-toggle { display: flex; }
  .mobile-cta { display: flex; margin-top: 1.5rem; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 2.5rem; }
  .feature-row { flex-direction: row; }
  .foot-line { flex-direction: column; align-items: flex-start; }
  .stock-row { grid-template-columns: auto 1fr; }
  .stock-amount { grid-column: 2; text-align: left; }
  .stock-row .chip { grid-column: 2; justify-self: start; }
}

/* ================= Interactivity toolkit (interact.js) ================= */

/* Header: shrinks + gains weight once you scroll, so it always feels present but
   never crowds the content. */
.site-header {
  transition: box-shadow var(--dur-short) var(--ease-out), background var(--dur-short) var(--ease-out);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .site-header.is-scrolled { box-shadow: 0 8px 24px rgba(20, 20, 26, 0.12); }

/* Magnetic buttons — JS nudges these toward the cursor; the transition here is what
   makes the pull (and the snap-back) feel springy instead of instant. */
.btn { transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); will-change: transform; }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(102, 255, 0, 0.28); }

/* Spotlight — a soft glow that tracks the cursor across bordered panels. Driven by
   --mx/--my (0-100, set on mousemove) via a pseudo-element so it never fights content. */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity var(--dur-short) var(--ease-out);
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(102, 255, 0, 0.14), transparent 70%);
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* Tilt — a light 3D pivot on hover for the boxier showcase elements. Kept small
   (a few degrees) so it reads as polish, not a gimmick. */
.tilt { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform var(--dur-short) var(--ease-out); }

/* Chip pop — a quick bounce when a choice is made. */
@keyframes chipPop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.js .chip.checked { animation: chipPop 260ms var(--ease-out); }

/* Toasts */
#mf-toast-root {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1000;
  display: flex; flex-direction: column-reverse; gap: 0.6rem;
  pointer-events: none;
}
.mf-toast {
  pointer-events: auto;
  background: var(--bg-raised); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 0.85rem 1.1rem; font-size: 0.88rem; font-weight: 500;
  max-width: 340px;
  animation: toastIn 260ms var(--ease-out) both;
}
.mf-toast.mf-toast-error { border-left-color: var(--critical); }
.mf-toast.mf-toast-leaving { animation: toastOut 220ms var(--ease-in) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(6px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .mf-toast { animation-duration: 1ms; } }

/* Confetti */
#mf-confetti-root { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.mf-confetti-piece {
  position: absolute; top: -12px; width: 8px; height: 14px; opacity: 0.95;
  animation-name: mfConfettiFall; animation-timing-function: cubic-bezier(0.15, 0.6, 0.4, 1); animation-fill-mode: forwards;
}
@keyframes mfConfettiFall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to { transform: translateY(100vh) rotate(540deg); opacity: 0; }
}

/* Cursor glow — a faint accent halo that follows the pointer inside hero sections only. */
.cursor-glow {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.cursor-glow::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  left: var(--gx, 50%); top: var(--gy, 50%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(102, 255, 0, 0.3), rgba(255, 51, 204, 0.16) 45%, transparent 72%);
  opacity: 0; transition: opacity var(--dur-long) var(--ease-out);
}
.cursor-glow.active::before { opacity: 1; }
.hero, .page-hero { position: relative; }
.hero > .cursor-glow, .page-hero > .cursor-glow { z-index: 0; }
.hero .container, .page-hero .container { position: relative; z-index: 1; }

/* Live price estimator (materials.html) */
.estimator {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 2.25rem; box-shadow: var(--shadow);
}
.estimator-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: center; }
.estimator-price { text-align: center; }
.estimator-price .amount { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; }
.estimator-price .sub { color: var(--text-soft); font-size: 0.85rem; margin-top: 0.5rem; }
.estimator-offline { display: none; color: var(--text-soft); font-size: 0.9rem; }

/* FAQ AI assistant */
.faq-ai-thread { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; max-height: 360px; overflow-y: auto; }
.faq-ai-msg { padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; max-width: 85%; line-height: 1.5; }
.faq-ai-msg.user { align-self: flex-end; background: var(--accent-soft); color: var(--text); }
.faq-ai-msg.assistant { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--border); }
.faq-ai-msg.pending { opacity: 0.6; }
.faq-ai-form { display: flex; gap: 0.75rem; }
.faq-ai-form input { flex: 1; }
.faq-ai-error { color: var(--critical); }

/* FAQ search */
.faq-search { position: relative; margin-bottom: 1.75rem; }
.faq-search input { padding-left: 2.6rem; }
.faq-search svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-soft); pointer-events: none; }
.faq-count { font-size: 0.82rem; color: var(--text-soft); margin: -1rem 0 1.25rem; }
.acc-item.faq-hidden { display: none; }

/* Gallery filters */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.gallery-item { transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.gallery-item.gallery-hidden { display: none; }

/* How It Works — scroll progress line beside the timeline */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px;
  background: var(--border);
}
.timeline-progress {
  position: absolute; left: 19px; top: 6px; width: 2px; height: 0%;
  background: linear-gradient(var(--accent), var(--accent-2));
  transition: height 120ms linear;
}
.timeline-num { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .estimator-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .estimator { padding: 1.5rem; }
}

/* ---------- Accounts, checkout, order tracking ---------- */
.auth-nav { white-space: nowrap; }

.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.auth-tab {
  background: none; border: none; cursor: pointer;
  padding: 0.75rem 0.25rem; margin-right: 1.25rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  transform: translateY(1px);
}
.auth-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.form-msg.auth-error { color: var(--critical); }

.demo-banner {
  background: var(--low-soft); color: var(--low);
  border: 1px solid var(--low); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; font-size: 0.85rem; margin-bottom: 1.5rem;
}

#live-estimate { margin-top: 0.75rem; }

#payment-element { padding: 1rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); }

.order-summary { margin-bottom: 1.5rem; }
.summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.summary-row.summary-total {
  border-bottom: none; padding-top: 0.9rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}

.orders-list { display: flex; flex-direction: column; gap: 1.25rem; max-width: 760px; }
.order-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.75rem;
}
.order-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order-card__head strong { font-family: var(--font-head); font-size: 1.05rem; }
.order-date { color: var(--text-soft); font-size: 0.85rem; margin-left: 0.6rem; }
.order-card__body { margin-top: 0.9rem; }
.order-card__body p { margin: 0.3rem 0; }
.order-link a { word-break: break-all; }
.order-specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
  margin: 0.9rem 0; padding: 0.9rem; background: var(--bg-alt); border-radius: var(--radius-sm);
}
.order-spec { display: flex; flex-direction: column; gap: 0.2rem; }
.order-spec .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); }
.order-spec .v { font-size: 0.9rem; font-weight: 600; }
.order-ship-line { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-top: 0.6rem !important; }
@media (max-width: 560px) { .order-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.order-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 700;
}

.status-pill {
  padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: var(--bg-alt); border: 1px solid var(--border); white-space: nowrap;
}
.status-pill.status-paid, .status-pill.status-printing { background: var(--low-soft); color: var(--low); border-color: var(--low); }
.status-pill.status-shipped, .status-pill.status-delivered { background: var(--good-soft); color: var(--good); border-color: var(--good); }
.status-pill.status-payment_failed, .status-pill.status-cancelled { background: var(--critical-soft); color: var(--critical); border-color: var(--critical); }
.status-pill.status-pending_payment { background: var(--border); color: var(--text-soft); }

.order-tracker { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.order-tracker__step {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text-soft);
  padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border);
}
.order-tracker__step .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-dark); flex-shrink: 0; }
.order-tracker__step.done { color: var(--text); }
.order-tracker__step.done .dot { background: var(--accent); }
.order-tracker__step.current { border-color: var(--accent); color: var(--text); }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.88rem; vertical-align: top;
}
.admin-table th { font-family: var(--font-head); color: var(--text-soft); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-table select { width: auto; padding: 0.5rem 0.75rem; }

@media (max-width: 720px) {
  .order-card { padding: 1.25rem; }
  .admin-table { min-width: 620px; }
}
