/* ============================================================
   3D Shack, neon print-shop theme
   Palette is defined once here; everything else references it.
   ============================================================ */

:root {
  --ink:      #07060d;
  --ink-2:    #0d0b18;
  --panel:    rgba(18, 15, 34, 0.72);
  --edge:     rgba(255, 255, 255, 0.10);

  --cyan:     #00e5ff;
  --magenta:  #ff2bd6;
  --lime:     #b6ff00;
  --orange:   #ff7a00;
  --violet:   #8b5cff;

  --text:     #a8e3ff;   /* sky blue, all body copy */
  --text-hi:  #dcf4ff;   /* brighter sky, for figures and emphasis */
  --text-dim: #7fc4e8;   /* muted sky blue */

  --layer:    2px;           /* simulated print layer height */
  --gutter:   16px;
  --radius:   14px;
  --maxw:     1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================================
   Animated background: print bed, layer lines, moving print head
   Transform and opacity only, so it stays cheap on a phone.
   ============================================================ */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #1b1040 0%, transparent 60%),
    radial-gradient(90% 60% at 100% 100%, #0b2338 0%, transparent 55%),
    var(--ink);
}

/* Perspective print bed grid along the bottom */
.bg-bed {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -20vh;
  height: 70vh;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 43, 214, 0.22) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(420px) rotateX(74deg);
  transform-origin: 50% 100%;
  animation: bed-scroll 7s linear infinite;
  opacity: 0.55;
  mask-image: linear-gradient(to top, #000 10%, transparent 92%);
}

@keyframes bed-scroll {
  to { background-position: 0 56px, 0 0; }
}

/* Faint horizontal layer lines across the whole page */
.bg-layers {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.045) 0 1px,
    transparent 1px calc(var(--layer) * 2)
  );
  opacity: 0.8;
}

/* Faint square grid overlay */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 255, 0.10) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 75%);
}

/* The print head sweeping down the page, laying a glowing line */
.bg-head {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg,
    transparent, var(--cyan) 18%, #fff 50%, var(--magenta) 82%, transparent);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.85), 0 0 46px rgba(255, 43, 214, 0.45);
  opacity: 0.75;
  animation: head-sweep 9s linear infinite;
}

@keyframes head-sweep {
  0%   { transform: translateY(-4vh);  opacity: 0; }
  8%   { opacity: .85; }
  92%  { opacity: .85; }
  100% { transform: translateY(104vh); opacity: 0; }
}

/* Soft neon blobs for depth */
.bg-blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.30;
  animation: drift 26s ease-in-out infinite alternate;
}
.bg-blob-1 { background: var(--magenta); top: -14vmax; left: -12vmax; }
.bg-blob-2 { background: var(--cyan);    top: 28vmax;  right: -16vmax; animation-delay: -9s; }
.bg-blob-3 { background: var(--violet);  bottom: -18vmax; left: 24vmax; animation-delay: -17s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmax, -5vmax, 0) scale(1.18); }
}

/* ============================================================
   3D printed text
   Section headings are bright sky blue. ONLY the main h1 title
   carries the rainbow, via a gradient clipped to the glyphs.
   Keep each gradient on ONE line: a wrapped value gets dropped and
   the heading then shows nothing but its extrusion.
   ============================================================ */

.printed {
  font-family: "Chakra Petch", "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0;
  color: #dcf4ff;
  text-shadow:
     0 1px 0 #2f6f93,  0 2px 0 #2a6485,  0 3px 0 #255877,
     0 4px 0 #204d69,  0 5px 0 #1b425b,  0 6px 0 #16374d,
     0 7px 0 #112c3f,  0 8px 0 #0c2131,
     0 11px 18px rgba(0, 0, 0, 0.6),
     0 0 24px rgba(168, 227, 255, 0.55),
     0 0 48px rgba(77, 224, 255, 0.35);
}

/* ---- The main title, and only the main title, is a rainbow ---- */

h1.printed {
  font-size: clamp(2.9rem, 13vw, 6.4rem);
  line-height: 1.02;
}

h1.printed .line {
  display: block;
  width: fit-content;          /* hug the text, so the whole rainbow lands on it */
  position: relative;
  color: transparent;
  /* this layer is the extrusion */
  text-shadow:
     0 1px 0 #3f2d5c,  0 2px 0 #3a2955,  0 3px 0 #35254e,
     0 4px 0 #302147,  0 5px 0 #2b1d40,  0 6px 0 #261939,
     0 7px 0 #211532,  0 8px 0 #1c112b,  0 9px 0 #170d24,
     0 12px 22px rgba(0, 0, 0, 0.6);
}

/* The rainbow face sits on its own layer ON TOP of the extrusion.
   It cannot share an element with a stacked text-shadow: a shadow paints
   over a background-clip:text fill and flattens it to one dull colour. */
h1.printed .line::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.20) 0 2px, rgba(255,255,255,0) 2px 4px), linear-gradient(92deg, #ff4d6d 0%, #ff9f1c 16%, #ffe74d 32%, #5dff6b 50%, #4de0ff 66%, #9d7bff 83%, #ff6ee7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, .22), 0 0 62px rgba(255, 110, 231, .3);
}

/* The print head sweeping down the page drags a band of light across the
   title. Timed to the 9s sweep so it lands as the line actually crosses. */
h1.printed .line::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(to bottom,
    rgba(255,255,255,0) 38%,
    rgba(214,248,255,.65) 46%,
    rgba(255,255,255,.98) 50%,
    rgba(214,248,255,.65) 54%,
    rgba(255,255,255,0) 62%);
  background-size: 100% 300%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* must be none: a pseudo-element inherits text-shadow, and the parent's
     extrusion stack would paint opaque purple straight over the rainbow */
  text-shadow: none;
  animation: title-scan 9s linear infinite;
}

/* With background-size 300%, a position of 75% puts the bright band at the
   top of the glyphs and 25% puts it at the bottom. So the sweep runs
   95% -> 5%: parked just above, down across the letters, parked just below. */
@keyframes title-scan {
  0%, 11%   { background-position: 0 95%; opacity: 0; }
  12%       { background-position: 0 90%; opacity: 1; }
  29%       { opacity: 1; }
  31%       { background-position: 0 5%; opacity: 0; }
  100%      { background-position: 0 5%; opacity: 0; }
}

/* Stagger the lines so the light travels down through the title */
h1.printed .line-alt::before  { animation-delay: .45s; }
h1.printed .line-alt2::before { animation-delay: .9s; }

@media (prefers-reduced-motion: reduce) {
  h1.printed .line::before { animation: none; opacity: 0; }
}

/* Each line needs headroom below it, or its glow lands on the next line */
h1.printed .line + .line { margin-top: 0.12em; }

/* The headline prints itself in, bottom to top */
.printed-build .line {
  animation: build-up 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.printed-build .line:nth-child(2) { animation-delay: .22s; }
.printed-build .line:nth-child(3) { animation-delay: .44s; }

@keyframes build-up {
  from { clip-path: inset(100% 0 0 0); transform: translateY(14px); opacity: 0; }
  to   { clip-path: inset(0 0 0 0);    transform: translateY(0);    opacity: 1; }
}

/* ---- Section headings: bright sky blue, still extruded ---- */

.printed-sm {
  font-size: clamp(1.7rem, 6.5vw, 2.9rem);
  margin-bottom: 10px;
}

.printed-xs {
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  text-shadow:
     0 1px 0 #2f6f93, 0 2px 0 #255877, 0 3px 0 #1b425b,
     0 4px 0 #112c3f, 0 5px 0 #0c2131,
     0 7px 12px rgba(0,0,0,.55),
     0 0 20px rgba(168,227,255,.5);
}

@media (prefers-reduced-motion: reduce) {
  .printed-build .line { animation: none; }
  .bg-head, .bg-bed, .bg-blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Layout
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter);
  backdrop-filter: blur(14px);
  background: rgba(7, 6, 13, 0.72);
  border-bottom: 1px solid var(--edge);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 1rem;
}

.brand-cube {
  width: 20px;
  height: 20px;
  background: linear-gradient(145deg, var(--lime), var(--cyan));
  box-shadow: 0 0 14px rgba(182, 255, 0, .7);
  transform: rotate(45deg);
  border-radius: 3px;
  flex: none;
}

.brand-accent { color: var(--text-hi); }

main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 58px 0 10px; }

.section-lede {
  color: var(--text-dim);
  max-width: 58ch;
  margin: 6px 0 26px;
}

/* ============================================================
   The rotating 3D printer behind the hero title.
   An enclosed CoreXY machine built from CSS 3D boxes: base unit,
   glass door, heated bed, X gantry with a toolhead, filament spool.
   No library to download, so it stays smooth on a phone.
   Decorative only, hidden from screen readers.
   ============================================================ */

.printer-stage {
  --s:  180px;                       /* width and depth */
  --bh: calc(var(--s) * 0.16);       /* base unit height */
  --ch: calc(var(--s) * 0.62);       /* chamber height */
  --steel: #7b86a8;
  position: absolute;
  top: 10px;
  right: -22px;
  width: var(--s);
  height: var(--s);
  perspective: 950px;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

/* Keep the words above the printer */
.hero > *:not(.printer-stage) { position: relative; z-index: 1; }

.printer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: printer-spin 28s linear infinite;
}

@keyframes printer-spin {
  from { transform: rotateX(-14deg) rotateY(0deg); }
  to   { transform: rotateX(-14deg) rotateY(360deg); }
}

.printer span { position: absolute; }

/* Pieces that genuinely start at the container origin say so themselves,
   because a shared `.printer span` rule would outrank their own positions. */

/* ---- Base unit: the solid electronics box it all sits on ---- */

.base {
  top: 0;
  left: 0;
  width: var(--s);
  height: var(--bh);
  background: linear-gradient(180deg, #232a44, #11142a);
  border: 1px solid var(--steel);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .7);
}
.base-f { transform: translateY(calc(var(--s) * 0.84)) translateZ(calc(var(--s) / 2)); }
.base-b { transform: translateY(calc(var(--s) * 0.84)) rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.base-l { transform: translateY(calc(var(--s) * 0.84)) rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.base-r { transform: translateY(calc(var(--s) * 0.84)) rotateY(90deg)  translateZ(calc(var(--s) / 2)); }
.base-t {
  height: var(--s);
  transform: translateY(calc(var(--s) * 0.34)) rotateX(90deg);
  background: #2a3152;
}

/* A lit strip across the front of the base, like a status light */
.base-f::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 28%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* ---- Chamber: four walls, a lid and a glass door ---- */

.face {
  top: 0;
  left: 0;
  width: var(--s);
  height: var(--ch);
  border: 2px solid var(--steel);
  background: rgba(0, 229, 255, 0.045);
  box-shadow: inset 0 0 26px rgba(0, 229, 255, .10);
}
.face-front {
  transform: translateY(calc(var(--s) * 0.22)) translateZ(calc(var(--s) / 2));
  border: 3px solid var(--lime);
  border-radius: 3px;
  background: rgba(182, 255, 0, .07);
  box-shadow: 0 0 20px rgba(182, 255, 0, .35), inset 0 0 30px rgba(182, 255, 0, .08);
}
.face-back  { transform: translateY(calc(var(--s) * 0.22)) rotateY(180deg) translateZ(calc(var(--s) / 2));
              background: rgba(10, 14, 32, .85); }
.face-left  { transform: translateY(calc(var(--s) * 0.22)) rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.face-right { transform: translateY(calc(var(--s) * 0.22)) rotateY(90deg)  translateZ(calc(var(--s) / 2)); }
.face-top   {
  height: var(--s);
  transform: translateY(calc(var(--s) * -0.28)) rotateX(90deg);
  border-color: var(--magenta);
  background: rgba(255, 43, 214, .10);
  box-shadow: 0 0 20px rgba(255, 43, 214, .3);
}

/* Door handle on the right edge of the glass front */
.handle {
  top: 38%;
  left: auto;
  right: 7%;
  width: 4px;
  height: 22%;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

/* ---- Z rails up the back of the chamber ---- */

.zpost {
  top: 0;
  width: 4px;
  height: var(--ch);
  background: linear-gradient(180deg, var(--steel), #434c6e);
  transform: translateY(calc(var(--s) * 0.22)) translateZ(calc(var(--s) * -0.4));
}
.zp-l { left: 13%; }
.zp-r { left: 85%; }

/* ---- Heated bed ---- */

.bed {
  top: 0;
  left: 0;
  width: var(--s);
  height: var(--s);
  transform: translateY(calc(var(--s) * 0.30)) rotateX(90deg) scale(.78);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 11px),
    linear-gradient(135deg, rgba(255, 43, 214, .30), rgba(139, 92, 255, .20));
  border: 2px solid var(--magenta);
  box-shadow: 0 0 26px rgba(255, 43, 214, .5);
}

/* ---- X gantry and the toolhead that rides it ---- */

.gantry {
  top: 0;
  left: 0;
  width: var(--s);
  height: 6px;
  background: linear-gradient(180deg, #cfd6ea, var(--steel));
  box-shadow: 0 0 12px rgba(0, 229, 255, .7);
  transform-style: preserve-3d;
  animation: gantry-rise 9s ease-in-out infinite;
}

@keyframes gantry-rise {
  0%   { transform: translateY(calc(var(--s) * 0.76)); }
  85%  { transform: translateY(calc(var(--s) * 0.30)); }
  90%  { transform: translateY(calc(var(--s) * 0.30)); }
  100% { transform: translateY(calc(var(--s) * 0.76)); }
}

.head {
  top: -18px;
  left: 40%;
  width: 26px;
  height: 24px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #ffffff, #c2cadf 55%, var(--steel));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 18px rgba(255, 255, 255, .8), 0 0 30px rgba(0, 229, 255, .5);
  animation: head-track 2.6s ease-in-out infinite alternate;
}

/* the nozzle poking out underneath */
.head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 0;
  margin-left: -4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid var(--lime);
  filter: drop-shadow(0 0 5px var(--lime));
}

@keyframes head-track {
  from { left: 14%; }
  to   { left: 64%; }
}

/* ---- Filament spool on top, and the strand feeding in ---- */

.spool {
  --d: calc(var(--s) * 0.26);
  width: var(--d);
  height: var(--d);
  top: 0;
  left: calc(50% - var(--d) / 2);
  transform: translateY(calc(var(--s) * 0.015)) translateZ(0);
  transform-style: preserve-3d;
}
.spool::before,
.spool::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: calc(var(--s) * 0.042) solid var(--magenta);
  box-shadow: 0 0 14px rgba(255, 43, 214, .55);
}
.spool::before { transform: translateZ(calc(var(--s) * 0.022)); }
.spool::after  { transform: translateZ(calc(var(--s) * -0.022)); }

/* the wound filament between the two flanges */
.spool-hub {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg,
    rgba(255,43,214,.75) 0 2px, rgba(150,20,120,.75) 2px 4px);
  box-shadow: 0 0 12px rgba(255,43,214,.5);
}

.filament {
  top: 0;
  left: calc(50% - 1.5px);
  width: 3px;
  height: calc(var(--s) * 0.17);
  transform: translateY(calc(var(--s) * 0.13));
  background: linear-gradient(180deg, var(--magenta), rgba(255,43,214,.3));
  box-shadow: 0 0 9px var(--magenta);
}

/* ---- The part being printed: a real box, growing on the bed ---- */

.part {
  --p: calc(var(--s) * 0.19);
  left: calc(50% - var(--p) / 2);
  top: auto;
  bottom: calc(var(--s) * 0.20);
  width: var(--p);
  height: 0;
  transform-style: preserve-3d;
  animation: part-grow 9s ease-in-out infinite;
}

.part span {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--p);
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(182, 255, 0, .95) 0 2px,
    rgba(116, 163, 0, .95) 2px 4px
  );
  border: 1px solid rgba(182, 255, 0, .85);
  box-shadow: 0 0 14px rgba(182, 255, 0, .4);
}

.part .pf { transform: translateZ(calc(var(--p) / 2)); }
.part .pb { transform: rotateY(180deg) translateZ(calc(var(--p) / 2)); }
.part .pl { transform: rotateY(-90deg) translateZ(calc(var(--p) / 2)); }
.part .pr { transform: rotateY(90deg)  translateZ(calc(var(--p) / 2)); }
.part .pt {
  height: var(--p);
  transform: translateY(calc(var(--p) / -2)) rotateX(90deg);
  background: linear-gradient(135deg, rgba(182,255,0,.95), rgba(116,163,0,.95));
}

@keyframes part-grow {
  0%   { height: 0; opacity: .3; }
  85%  { height: calc(var(--s) * 0.30); opacity: 1; }
  93%  { height: calc(var(--s) * 0.30); opacity: 1; }
  97%  { height: calc(var(--s) * 0.30); opacity: 0; }
  100% { height: 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .printer { animation: none; transform: rotateX(-14deg) rotateY(-34deg); }
  .gantry { animation: none; transform: translateY(calc(var(--s) * 0.42)); }
  .head, .part { animation: none; }
  .part { height: calc(var(--s) * 0.30); }
}


/* Hero */
.hero { position: relative; padding: 54px 0 26px; }

.eyebrow {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: .76rem;
  color: var(--text);
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(1.02rem, 3.6vw, 1.22rem);
  color: var(--text-dim);
  max-width: 54ch;
  margin: 26px 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  padding: 26px 0 0;
  margin: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.45rem;
  color: var(--text-hi);
  line-height: 1.1;
}
.hero-stats span { font-size: .8rem; color: var(--text-dim); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  color: #0a0712;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 8px 26px rgba(0, 229, 255, .30);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  min-height: 46px;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

.btn-lg { padding: 15px 28px; font-size: 1.03rem; min-height: 52px; }
.btn-sm { padding: 9px 15px; font-size: .88rem; min-height: 40px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--cyan); }

.btn-submit { width: 100%; margin-top: 8px; }

/* Cards and steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

.card {
  position: relative;
  padding: 24px 20px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--edge);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* a printed layer edge along the top of every card */
.card::before,
.tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: repeating-linear-gradient(90deg,
    currentColor 0 10px, transparent 10px 14px);
  opacity: .9;
}
.card-cyan    { color: var(--cyan); }
.card-magenta { color: var(--magenta); }
.card-lime    { color: var(--lime); }

.card h3, .tile h3 {
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.16rem;
  margin: 8px 0 8px;
}
.card p, .tile p { color: var(--text-dim); margin: 0; font-size: .96rem; }

.step-no {
  font-family: "Chakra Petch", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1;
  text-shadow: 0 0 18px rgba(168, 227, 255, .75);
}

/* Tiles */
.tiles {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.tile {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--edge);
  color: var(--violet);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.tile:nth-child(3n+1) { color: var(--cyan); }
.tile:nth-child(3n+2) { color: var(--magenta); }
.tile:nth-child(3n)   { color: var(--lime); }
.tile-icon { font-size: 1.6rem; display: block; }

/* Materials */
.mats { display: grid; gap: 12px; grid-template-columns: 1fr; }
.mat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--edge);
}
.mat p { margin: 0; color: var(--text-dim); font-size: .94rem; }

.chip {
  flex: none;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: #0a0712;
  min-width: 92px;
  text-align: center;
}
.chip-cyan    { background: var(--cyan);    box-shadow: 0 0 16px rgba(0,229,255,.5); }
.chip-magenta { background: var(--magenta); box-shadow: 0 0 16px rgba(255,43,214,.5); }
.chip-lime    { background: var(--lime);    box-shadow: 0 0 16px rgba(182,255,0,.5); }
.chip-orange  { background: var(--orange);  box-shadow: 0 0 16px rgba(255,122,0,.5); }

/* ============================================================
   Form
   ============================================================ */

.order-wrap { display: grid; gap: 18px; grid-template-columns: 1fr; }

.order-form {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 8px 16px 20px;
  backdrop-filter: blur(10px);
}

fieldset { border: 0; padding: 0; margin: 18px 0 0; }

legend {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  color: var(--text);
  padding: 0;
  margin-bottom: 10px;
}

.field { display: block; margin-bottom: 14px; }

.label {
  display: block;
  font-size: .86rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}
.label em {
  font-style: normal;
  color: var(--text-dim);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-left: 6px;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;            /* stops iOS zooming on focus */
  color: var(--text);
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 12px 13px;
  min-height: 48px;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .22);
}

input[type="file"] { padding: 10px; }
input::placeholder, textarea::placeholder { color: #5f93ad; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
                    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
select option { background: #15122a; color: var(--text); }

.row { display: grid; gap: 12px; }
.row-2 { grid-template-columns: 1fr; }
.row-3 { grid-template-columns: repeat(3, 1fr); }

.hint { display: block; font-size: .82rem; color: var(--text-dim); margin-top: 6px; }
.hint-block { margin: 0 0 12px; }

.err { display: block; font-size: .82rem; font-weight: 700; color: var(--text-hi); margin-top: 5px; min-height: 1em; }

.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.34);
  cursor: pointer;
}
.radio input { width: auto; min-height: 0; accent-color: var(--cyan); }
.radio:has(input:checked) {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0,229,255,.26);
}

/* Estimate panel */
.estimate {
  align-self: start;
  background: linear-gradient(160deg, rgba(255,43,214,.13), rgba(0,229,255,.10));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 20px 18px;
  backdrop-filter: blur(10px);
}
.estimate h3 {
  margin: 0 0 6px;
  font-family: "Chakra Petch", sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .84rem;
  color: var(--text-dim);
}
.price {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 3.1rem);
  line-height: 1;
  color: var(--text-hi);
  text-shadow: 0 0 26px rgba(168, 227, 255, .6), 0 3px 0 #2a5a7a, 0 6px 0 #16354a;
}
.price-note { color: var(--text-dim); font-size: .86rem; margin: 8px 0 16px; }

.est-rows { margin: 0 0 14px; display: grid; gap: 7px; }
.est-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.est-rows dt { color: var(--text-dim); margin: 0; }
.est-rows dd { margin: 0; font-weight: 700; color: var(--text); }

.est-caveat { font-size: .78rem; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* Result */
.result {
  margin-top: 22px;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 40px rgba(0,229,255,.18);
}
.result-note { color: var(--text-dim); font-size: .92rem; }
.summary {
  background: rgba(0,0,0,.5);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  font-size: .86rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.smallprint {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 18px;
}

/* Footer */
.footer {
  max-width: var(--maxw);
  margin: 46px auto 0;
  padding: 28px var(--gutter) 46px;
  border-top: 1px solid var(--edge);
  color: var(--text-dim);
  font-size: .9rem;
}
.footer-brand { margin-bottom: 10px; }
.footer p { margin: 6px 0; }

/* ============================================================
   Larger screens
   ============================================================ */

@media (min-width: 620px) {
  .printer-stage { --s: 230px; top: 10px; right: 0; opacity: .5; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .mats  { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .order-form { padding: 8px 24px 26px; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .section { padding: 76px 0 10px; }
  .hero { padding: 76px 0 34px; }
  .printer-stage { --s: 310px; top: 54px; right: 24px; opacity: .62; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .order-wrap { grid-template-columns: 1.55fr 1fr; align-items: start; }
  .estimate { position: sticky; top: 86px; }
}
