/* ==========================================================================
   Teens Engineer — storefront design system
   Warm paper, ink, molten-orange accent, technical mono details.
   ========================================================================== */

:root {
  --paper: #f3efe6;
  --paper-2: #ebe6da;
  --surface: #fbf9f4;
  --surface-2: #ffffff;
  --ink: #14161a;
  --ink-soft: #2b2e34;
  --muted: #6d7178;
  --muted-2: #8b8f96;
  --line: rgba(20, 22, 26, 0.14);
  --line-soft: rgba(20, 22, 26, 0.08);
  --accent: #e8541f;
  --accent-deep: #c84315;
  --accent-soft: #fbe4d8;
  --blueprint: #16324a;
  --blueprint-soft: #e7edf1;
  --blueprint-line: rgba(22, 50, 74, 0.16);
  --green: #2c6a4b;
  --amber: #a2661b;
  --red: #a33a2a;
  --dark: #0f1114;
  --dark-2: #171a1f;
  --dark-3: #22262c;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-muted: #9aa0a9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 70px -40px rgba(12, 14, 18, 0.55);
  --shadow-md: 0 18px 40px -26px rgba(12, 14, 18, 0.4);
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti TC", "Noto Serif TC", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1240px;

  /* --- motion: one spec, everything references it --------------------- */
  --dur-micro: 200ms;    /* hover, focus, press */
  --dur-state: 420ms;    /* a thing changes state */
  --dur-enter: 820ms;    /* a thing arrives */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);        /* decelerate, no overshoot */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --rise: 8px;           /* travel distance for entrances */
  --stagger: 90ms;       /* delay between siblings in a list */
  --build: 45ms;         /* delay between print layers */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang^="zh"] body {
  line-height: 1.7;
  letter-spacing: 0.01em;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: var(--accent);
}

html[lang^="zh"] .eyebrow {
  letter-spacing: 0.12em;
}

.section-title {
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

html[lang^="zh"] .section-title {
  letter-spacing: 0;
  line-height: 1.15;
  max-width: 22ch;
}

.section-lead {
  margin: 16px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
}

.mono {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform var(--dur-micro) var(--ease),
              background var(--dur-micro) var(--ease-soft),
              border-color var(--dur-micro) var(--ease-soft),
              box-shadow var(--dur-micro) var(--ease-soft);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.7);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-deep);
  box-shadow: 0 14px 30px -16px rgba(232, 84, 31, 0.7);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn .arr {
  font-size: 15px;
  transition: transform 0.18s ease;
}

.btn:hover .arr {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Announcement + header
   -------------------------------------------------------------------------- */

.announcement {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.announcement .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 36px;
  padding-block: 8px;
  text-align: center;
}

.announcement p {
  margin: 0;
}

.announcement button {
  flex: none;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.announcement button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  /* three columns, equal 1fr shoulders: the nav is centred on the page
     itself, so it does not drift when the brand or the CTA changes length */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}

/* no nav on the 404 page — the CTA takes the right-hand column */
body[data-page="404"] .header-inner {
  grid-template-columns: 1fr auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

html[lang^="zh"] .brand-sub {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0.78;
  transition: opacity 0.15s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

/* "Upload a file" and "上載檔案" are different lengths, and a width change here
   pushes the language switch sideways. One fixed width for both, content
   centred. px, not rem: the label itself is sized in px, so the floor has to
   be in the same unit to actually hold. */
.header-actions .btn {
  min-width: 136px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.lang-switch button {
  min-width: 38px;
  height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button.is-active {
  background: var(--ink);
  color: #fff;
}

/* --- switching language: a dissolve, never a cut ------------------------
   The swap rewrites every string in one frame and reflows the type rules
   keyed on html[lang] at the same instant.

   A plain crossfade is wrong here: English and Chinese have different line
   lengths and sizes, so both languages end up visible on top of each other
   for the length of the fade. Instead the page dissolves to paper and
   resolves as the new copy — one set of type at a time. */

::view-transition {
  background-color: #f3efe6;
}

::view-transition-old(root) {
  animation: lang-out 110ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: lang-in 190ms cubic-bezier(0, 0, 0.2, 1) 110ms both;
}

@keyframes lang-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes lang-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* fallback for browsers without View Transitions: a paper veil dips over the
   page while the swap happens behind it, so nothing snaps */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.lang-swap::after {
  opacity: 1;
  transition-duration: 120ms;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  margin: 3.5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 82px) 0 clamp(40px, 5vw, 64px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -10%;
  height: 620px;
  background: radial-gradient(circle at 40% 40%, rgba(232, 84, 31, 0.1), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  padding-bottom: 22px;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 68px);
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.9rem, 5.9vw, 5.2rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.048em;
}

.hero-title span {
  display: block;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
}

html[lang^="zh"] .hero-title {
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
}

html[lang^="zh"] .hero-title em {
  font-family: "Songti TC", "Noto Serif TC", var(--font-serif);
  font-style: normal;
}

.hero-title .accent-dot {
  color: var(--accent);
}

.hero-lead {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-trust li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stat-strip .stat-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-strip .stat-value {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-strip .stat-value small {
  font-weight: 400;
  color: var(--muted);
}

/* --- hero visual ------------------------------------------------------- */

.hero-visual {
  position: relative;
}

.spec-panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
}

.spec-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 18%, rgba(232, 84, 31, 0.18), transparent 55%);
  pointer-events: none;
}

.spec-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.spec-head .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e9e7e2;
}

.spec-head .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14);
}

.spec-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.hero-quote-card {
  position: absolute;
  z-index: 2;
  left: -30px;
  bottom: -30px;
  width: 252px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 50px -28px rgba(10, 12, 16, 0.55);
}

.hero-quote-card .card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-quote-card .card-label .swatch-mini {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2b2d31;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero-quote-card .card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-quote-card .card-price small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.hero-quote-card .card-meta {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--muted);
}

.hero-quote-card .card-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(60px, 7.5vw, 104px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head .section-title {
  max-width: 22ch;
}

.section-head .section-lead {
  max-width: 44ch;
}

.section-action {
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.link-arrow span {
  transition: transform 0.18s ease;
}

.link-arrow:hover span {
  transform: translateX(3px);
}

/* --- materials --------------------------------------------------------- */

.materials-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 40%);
  border-top: 1px solid var(--line-soft);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.material-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.material-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 22, 26, 0.24);
  box-shadow: var(--shadow-md);
}

.material-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.swatch {
  position: relative;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--swatch, #888);
  background-image: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55), transparent 46%),
    radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.28), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 -8px 16px rgba(0, 0, 0, 0.16),
    0 8px 18px -10px rgba(0, 0, 0, 0.45);
}

.swatch::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pill-in {
  border-color: rgba(44, 106, 75, 0.2);
  background: rgba(44, 106, 75, 0.08);
  color: var(--green);
}

.pill-low {
  border-color: rgba(162, 102, 27, 0.22);
  background: rgba(162, 102, 27, 0.09);
  color: var(--amber);
}

.pill-out {
  border-color: rgba(20, 22, 26, 0.12);
  background: rgba(20, 22, 26, 0.04);
  color: var(--muted);
}

.pill-accent {
  border-color: rgba(232, 84, 31, 0.22);
  background: rgba(232, 84, 31, 0.09);
  color: var(--accent-deep);
}

.material-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.material-color {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.material-stockline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.meter {
  position: relative;
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: rgba(20, 22, 26, 0.08);
  overflow: hidden;
}

.meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--accent);
}

.meter.is-low span {
  background: var(--amber);
}

.meter.is-out span {
  background: var(--muted-2);
}

.material-left {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}

.material-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.material-price {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.material-price small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

.material-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.material-card:hover .material-link {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* --- process ----------------------------------------------------------- */

.process-section {
  background: var(--dark);
  color: #f4f2ec;
}

.process-section .eyebrow {
  color: var(--dark-muted);
}

.process-section .section-title {
  color: #f7f5ef;
}

.process-section .section-lead {
  color: var(--dark-muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--dark-line);
}

.process-step {
  position: relative;
  padding: 32px 32px 8px 0;
  border-right: 1px solid var(--dark-line);
}

.process-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.process-step:not(:first-child) {
  padding-left: 32px;
}

.process-num {
  display: block;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.process-step h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

html[lang^="zh"] .process-step h3 {
  letter-spacing: 0;
}

.process-step p {
  margin: 0 0 26px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--dark-muted);
}

.process-meta {
  display: block;
  padding-top: 18px;
  border-top: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* --- services / what we print ------------------------------------------ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.service-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

html[lang^="zh"] .service-card h3 {
  letter-spacing: 0;
  font-size: 17px;
}

.service-card p {
  margin: 0;
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.services-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 38px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.services-note a {
  flex: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}

/* --- workshops --------------------------------------------------------- */

.workshops-section {
  background-color: var(--blueprint-soft);
  background-image:
    linear-gradient(rgba(22, 50, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 50, 74, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.workshops-section .eyebrow {
  color: #53718a;
}

.workshops-section .eyebrow::before {
  background: var(--accent);
}

.workshops-section .section-title {
  color: var(--blueprint);
}

.workshops-section .section-lead {
  color: #3d5568;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.workshop-card {
  padding: 24px 24px 22px;
  border: 1px solid var(--blueprint-line);
  border-radius: 14px;
  background: rgba(251, 249, 244, 0.8);
}

.workshop-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}

.workshop-card h3 {
  margin: 16px 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--blueprint);
}

html[lang^="zh"] .workshop-card h3 {
  letter-spacing: 0;
  font-size: 18px;
}

.workshop-card p {
  margin: 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: #456072;
}

.workshop-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--blueprint-line);
}

.workshop-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #53718a;
}

.workshop-note {
  font-size: 12.5px;
  color: #53718a;
}

.workshops-cta {
  flex: none;
}

@media (max-width: 960px) {
  .workshop-grid {
    grid-template-columns: 1fr;
  }
}

/* --- service area ------------------------------------------------------ */

.area-section {
  background: var(--paper-2);
}

.area-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.area-note {
  margin: 22px 0 0;
  max-width: 48ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted-2);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 4px;
}

.area-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

html[lang^="zh"] .area-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.area-link {
  margin-top: 4px;
}

.area-list li {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

html[lang^="zh"] .area-list li {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }

  .area-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .services-note {
    flex-direction: column;
  }
}

/* --- machine ----------------------------------------------------------- */

.machine-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.machine-copy .section-lead {
  max-width: 46ch;
}

.machine-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.machine-note::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.spec-table {
  border-top: 1px solid var(--line);
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.spec-row dt {
  font-size: 12px;
  color: var(--muted);
}

.spec-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: right;
}

.machine-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.machine-status-card .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.machine-status-card .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 106, 75, 0.12);
}

/* --- pricing ----------------------------------------------------------- */

.pricing-section {
  background: var(--paper-2);
  border-top: 1px solid rgba(20, 22, 26, 0.06);
  border-bottom: 1px solid rgba(20, 22, 26, 0.06);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.pricing-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.pricing-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-soft);
}

.pricing-list li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(44, 106, 75, 0.12);
  color: var(--green);
  font-size: 10px;
}

.invoice {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.invoice-head h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.invoice-head p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.invoice-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.invoice-rows {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.invoice-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.invoice-row span:first-child {
  color: var(--muted);
}

.invoice-row span:last-child {
  font-family: var(--font-mono);
  font-size: 12px;
}

.invoice-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
}

.invoice-total strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* --- faq --------------------------------------------------------------- */

.faq-wrap {
  max-width: 860px;
}

.faq-list {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.faq-item p {
  max-width: 68ch;
  margin: -4px 0 24px;
  padding-right: 46px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* --- cta --------------------------------------------------------------- */

.cta {
  padding: 0 0 clamp(64px, 7vw, 100px);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 4.5vw, 56px);
  border-radius: 24px;
  background: var(--dark);
  color: #f7f5ef;
}

.cta-panel::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -60%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 84, 31, 0.28), transparent 62%);
  pointer-events: none;
}

.cta-panel h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.cta-panel p {
  position: relative;
  margin: 0;
  max-width: 46ch;
  color: var(--dark-muted);
  font-size: 14.5px;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-panel .btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f7f5ef;
}

.cta-panel .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: #c7cbd2;
  padding: clamp(48px, 6vw, 72px) 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--dark-line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-sub {
  color: rgba(255, 255, 255, 0.42);
}

.site-footer .brand-mark {
  color: #f4f2ec;
}

.site-footer .brand-mark path:not(:first-child) {
  stroke: rgba(255, 255, 255, 0.72);
}

.footer-tagline {
  max-width: 34ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dark-muted);
}

.footer-seo {
  margin: 0 0 20px;
  max-width: none;
  font-size: 10.5px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.45);
}

.footer-col h4 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .muted {
  color: var(--dark-muted);
  font-size: 12px;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.38);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Quote page
   -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 36px);
}

.page-title {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

html[lang^="zh"] .page-title {
  letter-spacing: 0;
  line-height: 1.12;
}

.page-lead {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.stepper li > span:first-child {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 8.5px;
}

.stepper li.is-active {
  color: var(--ink);
}

.stepper li.is-active > span:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.stepper .sep {
  width: 26px;
  height: 1px;
  background: var(--line);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  align-items: start;
  gap: 28px;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(20px, 2.6vw, 28px);
}

.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-title .num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
}

.panel-sub {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* --- dropzone ---------------------------------------------------------- */

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 32px 24px;
  border: 1.5px dashed rgba(20, 22, 26, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(232, 84, 31, 0.045);
}

.dropzone.is-busy {
  pointer-events: none;
  opacity: 0.75;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
}

.dropzone h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.dropzone p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.dropzone .browse {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drop-privacy {
  margin-top: 8px !important;
  font-family: var(--font-mono);
  font-size: 9.5px !important;
  letter-spacing: 0.03em;
  color: var(--muted-2) !important;
}

.dropzone.is-reading .drop-icon svg {
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- file summary ------------------------------------------------------ */

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.file-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.file-meta {
  min-width: 0;
  flex: 1;
}

.file-name {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
}

.file-sub {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.text-btn {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.text-btn:hover {
  background: rgba(20, 22, 26, 0.06);
  color: var(--ink);
}

.text-btn.danger:hover {
  background: rgba(163, 58, 42, 0.08);
  color: var(--red);
}

.geo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--line-soft);
}

.geo-stat {
  padding: 12px 14px;
  background: var(--surface);
}

.geo-stat dt {
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.geo-stat dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.geo-stat dd.ok {
  color: var(--green);
}

.geo-stat dd.bad {
  color: var(--red);
}

/* --- viewer ------------------------------------------------------------ */

.viewer {
  position: relative;
  height: 330px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 38%, #1c2026, #0c0e11 72%);
  touch-action: none;
}

.viewer canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.viewer canvas:active {
  cursor: grabbing;
}

.viewer-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.viewer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

/* --- per-part filament pickers ----------------------------------------- */

.parts {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
}

.parts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.parts-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.parts-hint {
  font-size: 11.5px;
  color: var(--muted-2);
}

.parts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.part-row {
  display: grid;
  grid-template-columns: 22px 14px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  margin-inline: -8px;
  border-top: 1px solid var(--line-soft);
  border-radius: 10px;
  cursor: pointer;
}

.part-row.is-active {
  background: rgba(232, 84, 31, 0.07);
  box-shadow: inset 2px 0 0 var(--accent);
}

.part-row.is-active .part-name {
  font-weight: 600;
}

.part-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.part-row:first-child {
  border-top: 0;
}

.part-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
}

.part-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch, #9aa0a9);
  box-shadow: inset 0 0 0 1px rgba(20, 22, 26, 0.18);
}

.part-name {
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.part-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.part-select {
  min-width: 176px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
}

.field-note {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.part-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 700px) {
  .part-row {
    grid-template-columns: 22px 14px minmax(0, 1fr) auto;
  }

  .part-meta {
    display: none;
  }

  .part-select {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }
}

.viewer-badge.is-bad {
  background: rgba(232, 84, 31, 0.18);
  color: #ffb08d;
}

/* --- filament picker --------------------------------------------------- */

.filament-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filament-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.4);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.filament-option:hover {
  border-color: rgba(20, 22, 26, 0.26);
  background: rgba(255, 255, 255, 0.75);
}

.filament-option .swatch {
  width: 30px;
  height: 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -4px 8px rgba(0, 0, 0, 0.15);
}

.filament-option .swatch::after {
  inset: 4px;
}

.filament-info {
  min-width: 0;
  flex: 1;
}

.filament-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.filament-color {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
}

.filament-price {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.filament-option[aria-pressed="true"] {
  border-color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.filament-option[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
}

.filament-option[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.filament-option[disabled] .filament-price {
  color: var(--red);
}

.sold-out {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(251, 249, 244, 0.6);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

/* --- control grid ------------------------------------------------------ */

.field-group {
  margin-top: 22px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 600;
}

.field-hint {
  margin: 9px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.field-label small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seg button {
  min-width: 52px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.seg button:hover {
  border-color: rgba(20, 22, 26, 0.3);
}

.seg button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.45);
}

.qty-stepper button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
  color: var(--muted);
}

.qty-stepper button:hover {
  background: rgba(20, 22, 26, 0.07);
  color: var(--ink);
}

.qty-stepper output {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.toggle-row:first-of-type {
  margin-top: 6px;
}

.toggle-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.toggle-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 23px;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: rgba(20, 22, 26, 0.16);
  transition: background 0.18s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(17px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- summary ----------------------------------------------------------- */

.summary-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.summary-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.summary-head .pill {
  border-color: rgba(44, 106, 75, 0.2);
  background: rgba(44, 106, 75, 0.08);
  color: var(--green);
}

.summary-body {
  padding: 22px;
}

.summary-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  gap: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.summary-empty .drop-icon {
  width: 44px;
  height: 44px;
}

.price-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.price-big {
  font-size: 44px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.price-unit {
  padding-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.price-included {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.breakdown {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.breakdown-row span:first-child {
  color: var(--muted);
}

.breakdown-row span:last-child {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.metric dt {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric dd {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
}

.summary-ship {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}

.summary-ship strong {
  color: var(--ink);
  font-weight: 600;
}

.warning-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.warning {
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(162, 102, 27, 0.22);
  border-radius: 9px;
  background: rgba(162, 102, 27, 0.07);
  font-size: 10.5px;
  line-height: 1.55;
  color: #7a4d12;
}

.warning::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
}

.contact-block {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.contact-block h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-field {
  display: grid;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 68px;
}

.form-field .err {
  margin: 0;
  font-size: 10px;
  color: var(--red);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--red);
}

.delivery-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.delivery-toggle button {
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.3;
}

.delivery-toggle button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.summary-submit {
  margin-top: 14px;
}

.summary-submit .btn {
  width: 100%;
}

.consent {
  margin: 9px 0 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--muted-2);
  text-align: center;
}

.summary-note {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--muted-2);
}

/* --- success ----------------------------------------------------------- */

.success-panel {
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(44, 106, 75, 0.1);
  color: var(--green);
}

.success-panel h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.success-panel p {
  margin: 0 auto;
  max-width: 38ch;
  font-size: 13px;
  color: var(--muted);
}

.ref-code {
  display: inline-block;
  margin: 20px 0 8px;
  padding: 12px 22px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.success-total {
  margin: 6px 0 22px;
  font-size: 13px;
  color: var(--muted);
}

.success-total strong {
  font-size: 19px;
  color: var(--ink);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Mobile quote bar
   -------------------------------------------------------------------------- */

.mobile-quote-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-quote-bar.is-visible {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(251, 249, 244, 0.96);
    box-shadow: 0 -16px 40px -30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
  }

  .mqb-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .mqb-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .mqb-price strong {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
  }

  body.has-mobile-bar {
    padding-bottom: 74px;
  }
}

/* --------------------------------------------------------------------------
   Track page
   -------------------------------------------------------------------------- */

.track-wrap {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.track-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 10px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.track-form .form-field label {
  color: var(--muted);
}

.track-form .btn {
  height: 38px;
  min-height: 38px;
  padding-block: 0;
  border-radius: 8px;
  white-space: nowrap;
}

.track-error {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(163, 58, 42, 0.22);
  border-radius: 9px;
  background: rgba(163, 58, 42, 0.06);
  font-size: 12px;
  color: var(--red);
}

.track-result {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

.track-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.track-result-head h2 {
  margin: 0 0 3px;
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.track-result-head p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.track-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
}

.track-summary div {
  padding: 16px 22px;
  border-right: 1px solid var(--line-soft);
}

.track-summary div:last-child {
  border-right: 0;
}

.track-summary dt {
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.track-summary dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.timeline {
  padding: 22px 24px 26px;
}

.timeline h3 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline ol {
  position: relative;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.timeline ol::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding-bottom: 18px;
  font-size: 12px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline li:last-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline time {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}

.timeline .zh-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.track-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  font-size: 11.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 60px 0;
  text-align: center;
}

.notfound h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.notfound p {
  max-width: 40ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Toast + skeletons
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  max-width: min(92vw, 440px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast.is-error {
  background: var(--red);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(20, 22, 26, 0.06);
  border-radius: 8px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.is-hidden {
  display: none !important;
}


/* --- technical illustration ------------------------------------------- */

.spec-svg .hidden-edge {
  fill: none;
  stroke: #333941;
  stroke-dasharray: 4 5;
  stroke-width: 1;
}

.spec-svg .bed-grid line {
  stroke: #2f343b;
  stroke-width: 1;
}

.spec-svg .part-layer {
  fill: none;
  stroke: #ff6a2b;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: var(--o, 1);
}

.spec-svg .corners .corner {
  fill: none;
  stroke: #4a505a;
  stroke-width: 1;
}

.spec-svg .dims line {
  stroke: #6f757e;
  stroke-width: 1;
}

.spec-svg .dims text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  fill: #8a9099;
}

.spec-svg .caption {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  fill: #565d67;
}

@keyframes head-sweep {
  from { transform: translateX(-58px); }
  to { transform: translateX(62px); }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .main-nav {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .hero-quote-card {
    left: auto;
    right: 18px;
    bottom: -20px;
  }

  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .machine-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pricing-grid .invoice {
    max-width: 520px;
  }
}

/* The nav needs ~950px to sit centred between the brand and the actions.
   Below that it goes behind the menu button rather than drifting off-centre. */
@media (max-width: 1100px) {
  /* the descriptor wraps once the header tightens; the name carries the brand */
  .brand-sub {
    display: none;
  }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.4);
  }

  .main-nav.is-open {
    display: flex;
  }


  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

}

@media (max-width: 900px) {
  .header-actions .btn {
    display: none;
  }

  .header-inner {
    gap: 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand-name {
    font-size: 14px;
    white-space: nowrap;
  }

  .quote-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:not(:first-child) {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .process-num {
    margin-bottom: 12px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

  .brand-sub {
    display: none;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .material-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-quote-card {
    display: none;
  }

  .hero-quote-card .card-price {
    font-size: 23px;
  }

  .spec-panel {
    padding: 12px;
    border-radius: 18px;
  }

  .spec-head {
    font-size: 8px;
  }

  .filament-grid {
    grid-template-columns: 1fr;
  }

  .split-fields {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .geo-stats {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .track-form {
    grid-template-columns: 1fr;
  }

  .track-summary {
    grid-template-columns: 1fr 1fr;
  }

  .track-summary div:nth-child(2) {
    border-right: 0;
  }

  .track-summary div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .viewer {
    height: 260px;
  }

  .price-big {
    font-size: 40px;
  }

  .invoice {
    padding: 22px;
  }

  .cta-panel {
    border-radius: 18px;
  }

  .faq-item p {
    padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   Motion — "Quiet"
   An engineer's notebook left open on the desk. Things are simply there, and
   a few of them arrive so softly you notice them a beat late. Nothing draws
   itself, nothing bounces, no overshoot anywhere.

   Rules this section follows:
     · animate transform and opacity only — never width/height/top/left
     · every animation ends on the element's resting state, with fill `both`,
       so the page is complete with motion off or JS broken
     · hero only — scoped to body[data-page="home"]
   -------------------------------------------------------------------------- */

body[data-page="home"] .site-header {
  animation: hero-fade var(--dur-enter) var(--ease) both;
}

body[data-page="home"] .hero .eyebrow {
  animation: hero-rise var(--dur-enter) var(--ease) 120ms both;
}

body[data-page="home"] .hero .eyebrow::before {
  transform-origin: left center;
  animation: hero-grow var(--dur-enter) var(--ease) 120ms both;
}

body[data-page="home"] .hero-title > span:nth-child(1) {
  animation: hero-rise var(--dur-enter) var(--ease) 240ms both;
}

body[data-page="home"] .hero-title > span:nth-child(2) {
  animation: hero-rise var(--dur-enter) var(--ease) 400ms both;
}

body[data-page="home"] .hero-lead {
  animation: hero-rise var(--dur-enter) var(--ease) 640ms both;
}

body[data-page="home"] .hero-actions .btn:nth-child(1) {
  animation: hero-rise var(--dur-enter) var(--ease) 780ms both;
}

body[data-page="home"] .hero-actions .btn:nth-child(2) {
  animation: hero-rise var(--dur-enter) var(--ease) 840ms both;
}

body[data-page="home"] .hero-trust li {
  animation: hero-rise var(--dur-state) var(--ease) both;
  animation-delay: calc(900ms + var(--i) * var(--stagger));
}

body[data-page="home"] .hero-trust li:nth-child(1) { --i: 0; }
body[data-page="home"] .hero-trust li:nth-child(2) { --i: 1; }
body[data-page="home"] .hero-trust li:nth-child(3) { --i: 2; }

/* the panel arrives barely under its own weight — a hair of scale, no more */
body[data-page="home"] .spec-panel {
  transform-origin: 62% 40%;
  animation: hero-settle var(--dur-enter) var(--ease) 420ms both;
}

body[data-page="home"] .spec-svg {
  animation: hero-fade 900ms var(--ease) 560ms both;
}

/* the part still builds bottom up — that is how a printer works — but the
   layers simply fade in, on the printer's cadence, quieter than the rest */
body[data-page="home"] .spec-svg .part-layer {
  animation: hero-layer-in 520ms var(--ease) both;
  animation-delay: calc(950ms + var(--i) * var(--build));
}

body[data-page="home"] .spec-svg .print-head {
  animation:
    hero-fade 600ms var(--ease) 1700ms both,
    head-sweep 26s ease-in-out 2200ms infinite alternate;
}

body[data-page="home"] .hero-quote-card {
  animation: hero-rise var(--dur-enter) var(--ease) 2200ms both;
}

body[data-page="home"] .stat-strip > div {
  animation: hero-rise var(--dur-state) var(--ease) both;
  animation-delay: calc(2400ms + var(--i) * var(--stagger));
}

body[data-page="home"] .stat-strip > div:nth-child(1) { --i: 0; }
body[data-page="home"] .stat-strip > div:nth-child(2) { --i: 1; }
body[data-page="home"] .stat-strip > div:nth-child(3) { --i: 2; }
body[data-page="home"] .stat-strip > div:nth-child(4) { --i: 3; }

@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(var(--rise)); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes hero-settle {
  from { opacity: 0; transform: translateY(6px) scale(0.988); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hero-layer-in {
  from { opacity: 0; }
  to   { opacity: var(--o); }
}

@media (prefers-reduced-motion: reduce) {
  /* Hover feedback survives, but instantly. Loading spinners keep turning —
     they carry state, they aren't decoration. */
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Every entrance lands straight on its resting state instead of flashing
     through it at 1ms — which is what the old blanket rule did. */
  body[data-page="home"] .site-header,
  body[data-page="home"] .hero .eyebrow,
  body[data-page="home"] .hero .eyebrow::before,
  body[data-page="home"] .hero-title > span,
  body[data-page="home"] .hero-lead,
  body[data-page="home"] .hero-actions .btn,
  body[data-page="home"] .hero-trust li,
  body[data-page="home"] .spec-panel,
  body[data-page="home"] .spec-svg,
  body[data-page="home"] .spec-svg .part-layer,
  body[data-page="home"] .hero-quote-card,
  body[data-page="home"] .stat-strip > div {
    animation: none !important;
  }

  /* no sweep to rescue the head, so park it clear of the part */
  body[data-page="home"] .spec-svg .print-head {
    animation: none !important;
    transform: translateX(-112px);
  }

}
