/* ============================================================
   Lily 3D Studio — shared styles
   One stylesheet for every page. Each page sets a theme class on
   <body> (theme-tech, theme-kids, theme-home, theme-novelty,
   theme-studio, plus the seasonal festive, spooky, spring,
   midwinter, civic and marigold themes) and every component
   picks up its colours, font and shape from the tokens in that block.
   ============================================================ */

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

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

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

/* ---------- tokens ---------- */
:root {
  --wrap: 1120px;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-head: "Outfit", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;

  --bg: #0b0f19;
  --bg-soft: #0b0f19;
  --card: #151c2c;
  --border: #2a364f;
  --text: #e9eefb;
  --muted: #93a1bb;

  --accent: #00f3ff;
  --accent-2: #7c5cff;
  --accent-ink: #04121a; /* text on top of an accent fill */
  --glow: rgba(0, 243, 255, 0.25);

  --nav-bg: color-mix(in srgb, var(--bg) 84%, transparent);
}

/* ---------- base ---------- */
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex: none;
}

.brand-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.brand-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 500;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.is-active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-burger span::before {
  top: -6px;
}

.nav-burger span::after {
  top: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -12px var(--glow);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px var(--glow);
}

.btn-ghost {
  border-color: var(--border);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.82rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  height: 520px;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
  pointer-events: none;
  opacity: 0.85;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 30px;
}

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

/* ---------- section head ---------- */
.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
  max-width: 62ch;
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 24px 44px -28px var(--glow);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-soft));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-media i {
  font-size: 3.4rem;
  color: color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform 0.35s ease, color 0.35s ease;
}

.card:hover .card-media i {
  transform: scale(1.12);
  color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  backdrop-filter: blur(6px);
}

.card-badge--opensource {
  background: color-mix(in srgb, var(--accent) 18%, rgba(8, 14, 24, 0.88));
  border-color: var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
  transition: opacity 0.15s ease;
}

.card-credit-link:hover {
  opacity: 0.8;
}

.card-body {
  padding: 22px 22px 6px;
  flex: 1;
}

.card-body h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 0;
}

.price {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.card-material {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}

.card-foot {
  padding: 16px 22px 22px;
}

.card-foot .btn {
  width: 100%;
}

/* the "request something custom" filler card used on quieter pages */
.card--cta {
  border-style: dashed;
  background: color-mix(in srgb, var(--accent) 4%, var(--card));
  justify-content: center;
  text-align: center;
}

.card--cta .card-body {
  padding: 34px 26px;
}

.card--cta i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- vibe cards on the home page ---------- */
.vibes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 20px;
}

.vibe {
  --vibe: var(--accent);
  position: relative;
  display: block;
  padding: 26px 24px 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--vibe) 10%, var(--card)),
    var(--card) 65%
  );
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.25s ease;
}

.vibe:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--vibe) 60%, var(--border));
  box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--vibe) 70%, transparent);
}

.vibe i {
  font-size: 1.5rem;
  color: var(--vibe);
  margin-bottom: 16px;
}

.vibe h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.vibe p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.vibe span.go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vibe);
}

.vibe span.go::after {
  content: "→";
  transition: transform 0.2s ease;
}

.vibe:hover span.go::after {
  transform: translateX(4px);
}

/* ---------- steps / facts strip ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.step {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.step b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--accent-ink);
  background: var(--accent);
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.step h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta-band {
  margin: 72px 0;
  padding: 44px 40px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--accent) 12%, var(--card)),
    var(--card)
  );
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 52ch;
}

.cta-band .btn {
  flex: none;
}

/* ---------- quote page ---------- */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.panel > h2 {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.panel > h2 i {
  color: var(--accent);
  margin-right: 8px;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calc-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.calc-total span:first-child {
  font-size: 0.85rem;
  color: var(--muted);
}

#calc-total {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.calc-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 10px;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  border-color: #6b2c34;
  background: rgba(150, 40, 55, 0.16);
  color: #ffb3bb;
}

/* ---------- photo-to-print steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.step {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 4%, var(--card));
}

.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.7;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- photo upload ---------- */
.photo-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 16px;
  text-align: center;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-soft));
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.photo-drop:hover,
.photo-drop.is-dragging,
.photo-drop:focus-within {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-soft));
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.photo-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.photo-drop i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.photo-drop strong {
  font-size: 0.85rem;
}

.photo-drop span {
  font-size: 0.72rem;
  color: var(--muted);
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.photo-preview {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(5, 8, 14, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.photo-remove:hover {
  background: #7c2530;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 46px 0 40px;
  margin-top: 40px;
  background: color-mix(in srgb, var(--bg) 80%, #000);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.footer-brand strong {
  display: block;
  font-size: 0.92rem;
}

.footer-brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  width: 100%;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--muted);
}

/* ============================================================
   THEMES
   ============================================================ */

/* --- studio: Sonoran Desert & Valley of the Sun (Home & default) --- */
body.theme-studio {
  --bg: #140f0c;
  --bg-soft: #1d1511;
  --card: #251b16;
  --border: rgba(244, 132, 95, 0.22);
  --text: #fbf4eb;
  --muted: #c8b4a2;
  --accent: #f4845f;
  --accent-2: #7fa67c;
  --accent-ink: #1e0c05;
  --glow: rgba(244, 132, 95, 0.35);
  --font-head: "Bricolage Grotesque", "Space Grotesk", "Outfit", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(960px 540px at 14% -6%, rgba(244, 132, 95, 0.24), transparent 72%),
    radial-gradient(840px 480px at 88% 8%, rgba(235, 180, 76, 0.16), transparent 70%),
    radial-gradient(720px 440px at 50% 68%, rgba(127, 166, 124, 0.12), transparent 70%),
    radial-gradient(rgba(244, 132, 95, 0.11) 1px, transparent 1px);
  background-size: auto, auto, auto, 32px 32px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

body.theme-studio .hero {
  background:
    radial-gradient(ellipse 85% 65% at 72% 28%, rgba(244, 132, 95, 0.14), transparent 72%),
    radial-gradient(ellipse 65% 55% at 18% 15%, rgba(235, 180, 76, 0.10), transparent 70%);
}

body.theme-studio .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #f4845f, #ebb44c 50%, #7fa67c 100%);
}

body.theme-studio .card {
  background: linear-gradient(165deg, rgba(41, 29, 23, 0.96), rgba(27, 19, 15, 0.98));
  border-color: rgba(244, 132, 95, 0.2);
}

body.theme-studio .card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px var(--glow), 0 0 0 1px rgba(244, 132, 95, 0.32);
}

body.theme-studio .vibe {
  background: linear-gradient(160deg, color-mix(in srgb, var(--vibe) 15%, var(--card)), var(--card) 75%);
  border-color: color-mix(in srgb, var(--vibe) 32%, var(--border));
}

body.theme-studio .cta-band {
  background: linear-gradient(135deg, rgba(244, 132, 95, 0.16), rgba(127, 166, 124, 0.14) 55%, var(--card));
  border-color: rgba(244, 132, 95, 0.34);
  box-shadow: 0 16px 36px -16px rgba(244, 132, 95, 0.22);
}

/* --- Desert / Valley Homepage Hero Layout --- */
.hero--desert {
  padding: 82px 0 124px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 40px;
  align-items: center;
}

.valley-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.valley-badge {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--card) 82%, rgba(20, 15, 12, 0.75));
  backdrop-filter: blur(8px);
}

.valley-badge i {
  font-size: 1.05rem;
  color: var(--accent);
  margin-top: 2px;
  flex: none;
}

.valley-badge strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.valley-badge span {
  display: block;
  font-size: 0.73rem;
  line-height: 1.45;
  color: var(--muted);
}

.hero-emblem {
  display: flex;
  justify-content: center;
}

.hero-emblem-card {
  width: 100%;
  max-width: 310px;
  padding: 24px 22px 20px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--border));
  background: linear-gradient(
    160deg,
    rgba(244, 132, 95, 0.14),
    rgba(127, 166, 124, 0.1) 52%,
    rgba(29, 21, 17, 0.92)
  );
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.75), 0 0 40px -18px var(--glow);
  text-align: center;
}

.hero-emblem-logo-link {
  display: inline-block;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.hero-emblem-logo-link:hover {
  transform: scale(1.03);
}

.hero-emblem-img {
  width: 196px;
  height: 196px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.65);
}

.hero-emblem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  margin-bottom: 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), #ebb44c);
  box-shadow: 0 8px 20px -8px var(--glow);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-emblem-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px var(--glow);
  filter: brightness(1.05);
}

.hero-emblem-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 5px;
}

.hero-emblem-caption strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
}

/* --- About the Artists Page Layout --- */
.hero--about {
  padding: 84px 0 116px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.75fr);
  gap: 32px;
  align-items: start;
}

.about-story-card {
  padding: 36px 34px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent) 6%, var(--card)),
    var(--card) 68%
  );
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6);
}

.about-story-header {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-story-header h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.about-prose {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-section-block {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background: color-mix(in srgb, var(--bg-soft) 72%, var(--card));
}

.about-section-block h3 {
  font-size: 1.12rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-prose p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--text);
  opacity: 0.94;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-emblem-panel {
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  background: linear-gradient(
    160deg,
    rgba(244, 132, 95, 0.14),
    rgba(127, 166, 124, 0.1) 55%,
    var(--card)
  );
  text-align: center;
}

.about-emblem-logo {
  width: 156px;
  height: 156px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.65);
}

.about-emblem-panel h3 {
  font-size: 1.1rem;
  margin: 4px 0 8px;
}

.about-emblem-panel p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.about-pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-soft));
  color: var(--accent);
  font-size: 1rem;
}

.about-pillar h3 {
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.about-pillar p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.desert-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 115px;
  pointer-events: none;
  z-index: 1;
}

.desert-horizon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 860px) {
  .hero-grid,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-story-card {
    padding: 26px 22px;
  }
  .hero-emblem-card {
    max-width: 280px;
  }
  .hero-emblem-img {
    width: 150px;
    height: 150px;
  }
}

/* --- tech: high-performance cyberdeck, SBC cases & recycled rPETG --- */
body.theme-tech {
  --bg: #040811;
  --bg-soft: #081020;
  --card: #0a1426;
  --border: #162842;
  --text: #eaf2ff;
  --muted: #8aa1be;
  --accent: #00f0ff;
  --accent-2: #0df2a6;
  --accent-ink: #011317;
  --glow: rgba(0, 240, 255, 0.36);
  --radius: 10px;
  --radius-sm: 6px;
  --font-head: "Space Grotesk", "Outfit", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 15% -8%, rgba(0, 240, 255, 0.24), transparent 68%),
    radial-gradient(800px 450px at 85% 12%, rgba(13, 242, 166, 0.18), transparent 65%),
    radial-gradient(650px 380px at 50% 70%, rgba(124, 92, 255, 0.12), transparent 70%),
    linear-gradient(rgba(0, 240, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.055) 1px, transparent 1px);
  background-size: auto, auto, auto, 40px 40px, 40px 40px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed;
}

body.theme-tech .brand-name {
  color: var(--accent);
  letter-spacing: 0.15em;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

body.theme-tech .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #00f0ff, #0df2a6 50%, #8b5cf6 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

body.theme-tech .hero h1 {
  letter-spacing: -0.03em;
}

body.theme-tech .card {
  background: linear-gradient(155deg, #0e192c, #070e1a);
  border-color: rgba(0, 240, 255, 0.2);
}

body.theme-tech .card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 42px -18px var(--glow), 0 0 0 1px rgba(0, 240, 255, 0.35);
}

body.theme-tech .card-media {
  background: #08101e;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

body.theme-tech .card-badge {
  color: #011317;
  background: var(--accent);
  border-color: transparent;
  font-family: var(--font-head);
  letter-spacing: 0.1em;
}

body.theme-tech .price {
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(13, 242, 166, 0.35);
}

body.theme-tech .cta-band {
  background: linear-gradient(130deg, rgba(0, 240, 255, 0.15), rgba(13, 242, 166, 0.12) 55%, var(--card));
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 18px 40px -20px rgba(0, 240, 255, 0.3);
}

/* --- kids: playful toy workshop, articulated dragons & candy PLA+ --- */
body.theme-kids {
  --bg: #141138;
  --bg-soft: #1d184d;
  --card: #251f61;
  --border: #443c96;
  --text: #fffdf7;
  --muted: #c9c5f5;
  --accent: #ffd13b;
  --accent-2: #ff4d8d;
  --accent-ink: #2b1700;
  --glow: rgba(255, 209, 59, 0.4);
  --radius: 24px;
  --radius-sm: 14px;
  --font-body: "Fredoka", "Outfit", sans-serif;
  --font-head: "Fredoka", "Outfit", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 85% -6%, rgba(255, 77, 141, 0.28), transparent 70%),
    radial-gradient(750px 420px at 12% 4%, rgba(255, 209, 59, 0.26), transparent 70%),
    radial-gradient(650px 380px at 50% 65%, rgba(46, 204, 113, 0.14), transparent 70%),
    radial-gradient(circle at 12px 12px, rgba(255, 209, 59, 0.35) 2px, transparent 2.5px),
    radial-gradient(circle at 45px 42px, rgba(255, 77, 141, 0.32) 2px, transparent 2.5px),
    radial-gradient(circle at 72px 22px, rgba(0, 229, 255, 0.28) 1.5px, transparent 2px);
  background-size: auto, auto, auto, 80px 80px, 80px 80px, 80px 80px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat;
  background-attachment: fixed;
}

body.theme-kids .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: linear-gradient(90deg, #ff4d8d, #ffd13b, #00e5ff, #38ef7d, #a855f7);
}

body.theme-kids .card {
  border-width: 2.5px;
  border-color: rgba(255, 209, 59, 0.35);
  background: linear-gradient(165deg, #2b246f, #1e1852);
}

body.theme-kids .card:hover {
  transform: translateY(-8px) rotate(-1.2deg);
  border-color: var(--accent);
  box-shadow: 0 24px 44px -16px rgba(255, 209, 59, 0.35), 0 0 0 1px rgba(255, 209, 59, 0.4);
}

body.theme-kids .card-media {
  background: #1b1649;
  border-bottom: 2.5px dashed rgba(255, 209, 59, 0.4);
}

body.theme-kids .card-badge {
  color: #fff;
  background: var(--accent-2);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.4);
}

body.theme-kids .btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 22px -6px rgba(255, 209, 59, 0.5);
}

body.theme-kids .price {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 209, 59, 0.4);
}

body.theme-kids .cta-band {
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.22), rgba(255, 209, 59, 0.2) 60%, var(--card));
  border-color: rgba(255, 209, 59, 0.45);
  border-width: 2.5px;
  box-shadow: 0 20px 44px -20px rgba(255, 77, 141, 0.35);
}

/* --- home: Japandi architectural ceramics & quiet living --- */
body.theme-home {
  --bg: #0d1416;
  --bg-soft: #121c1f;
  --card: #172428;
  --border: #293d42;
  --text: #f7f9f6;
  --muted: #9bb1ab;
  --accent: #52b788;
  --accent-2: #e07a5f;
  --accent-ink: #071610;
  --glow: rgba(82, 183, 136, 0.3);
  --radius: 6px;
  --radius-sm: 4px;
  --font-head: "Playfair Display", Georgia, serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 85% -8%, rgba(224, 122, 95, 0.24), transparent 68%),
    radial-gradient(750px 420px at 12% 5%, rgba(82, 183, 136, 0.22), transparent 68%),
    radial-gradient(650px 380px at 50% 65%, rgba(244, 241, 222, 0.06), transparent 70%),
    repeating-linear-gradient(90deg, rgba(82, 183, 136, 0.04) 0 1px, transparent 1px 28px);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

body.theme-home .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #52b788, #e07a5f 60%, #f4f1de 100%);
}

body.theme-home .hero h1 {
  font-weight: 600;
  line-height: 1.18;
}

body.theme-home .eyebrow {
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent-2);
  padding: 0 0 6px;
  letter-spacing: 0.22em;
  color: var(--accent-2);
}

body.theme-home .card {
  background: linear-gradient(175deg, #19272c, #131f23);
  border-color: rgba(82, 183, 136, 0.25);
}

body.theme-home .card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(224, 122, 95, 0.35);
}

body.theme-home .card-badge {
  border-radius: 0;
  color: var(--accent-2);
  background: rgba(13, 20, 22, 0.85);
  border-color: rgba(224, 122, 95, 0.5);
  letter-spacing: 0.12em;
}

body.theme-home .price {
  color: var(--accent-2);
  font-weight: 600;
}

body.theme-home .btn-accent {
  background: var(--accent-2);
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 24px -10px rgba(224, 122, 95, 0.45);
}

body.theme-home .btn-accent:hover {
  background: #e76f51;
}

body.theme-home .cta-band {
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.16), rgba(224, 122, 95, 0.18) 60%, var(--card));
  border-color: rgba(224, 122, 95, 0.35);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.7);
}

/* --- novelty: pop-art neon nightclub & gag prints --- */
body.theme-novelty {
  --bg: #160410;
  --bg-soft: #200718;
  --card: #2b0b21;
  --border: #52183d;
  --text: #fff0f5;
  --muted: #d49db8;
  --accent: #ff007f;
  --accent-2: #ccff00;
  --accent-ink: #19000a;
  --glow: rgba(255, 0, 127, 0.42);
  --radius: 12px;
  --radius-sm: 8px;
  --font-head: "Bricolage Grotesque", "Outfit", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 15% -6%, rgba(255, 0, 127, 0.30), transparent 66%),
    radial-gradient(800px 450px at 85% 10%, rgba(204, 255, 0, 0.20), transparent 66%),
    radial-gradient(650px 380px at 50% 65%, rgba(157, 78, 221, 0.18), transparent 70%),
    radial-gradient(rgba(255, 0, 127, 0.14) 2px, transparent 2px);
  background-size: auto, auto, auto, 26px 26px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

body.theme-novelty .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  background: repeating-linear-gradient(-45deg, #ccff00 0 16px, #160410 16px 32px);
}

body.theme-novelty .hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.theme-novelty .card {
  border-width: 2.5px;
  border-color: rgba(255, 0, 127, 0.35);
  background: linear-gradient(160deg, #300c25, #22071a);
}

body.theme-novelty .card:hover {
  transform: translateY(-6px) rotate(0.8deg);
  border-color: var(--accent);
  box-shadow: 0 24px 44px -16px var(--glow), 0 0 0 1px rgba(255, 0, 127, 0.5);
}

body.theme-novelty .card-badge {
  color: #19000a;
  background: var(--accent-2);
  border-color: transparent;
  transform: rotate(-3deg);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(204, 255, 0, 0.35);
}

body.theme-novelty .btn-accent {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px -8px var(--glow);
}

body.theme-novelty .price {
  color: var(--accent-2);
  text-shadow: 0 0 14px rgba(204, 255, 0, 0.4);
}

body.theme-novelty .cta-band {
  background: linear-gradient(130deg, rgba(255, 0, 127, 0.22), rgba(204, 255, 0, 0.16) 65%, var(--card));
  border-color: rgba(255, 0, 127, 0.45);
  border-width: 2.5px;
  box-shadow: 0 20px 48px -20px var(--glow);
}

/* --- quote page: precision blueprint & custom drafting studio --- */
body.page-quote {
  --bg: #07101e;
  --bg-soft: #0b182b;
  --card: #102138;
  --border: #1e395e;
  --text: #eef6ff;
  --muted: #8ea5c4;
  --accent: #00e5ff;
  --accent-2: #ff9e00;
  --accent-ink: #01131c;
  --glow: rgba(0, 229, 255, 0.38);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 50% -5%, rgba(0, 229, 255, 0.24), transparent 72%),
    radial-gradient(750px 420px at 85% 15%, rgba(255, 158, 0, 0.16), transparent 70%),
    radial-gradient(650px 380px at 15% 45%, rgba(0, 255, 183, 0.10), transparent 70%),
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px, 12px 12px, 12px 12px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat;
  background-attachment: fixed;
}

body.page-quote .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #00e5ff, #ff9e00 50%, #0df2a6 100%);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

body.page-quote .panel {
  background: linear-gradient(165deg, rgba(16, 33, 56, 0.95), rgba(11, 24, 43, 0.98));
  border-color: rgba(0, 229, 255, 0.28);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 229, 255, 0.1);
}

body.page-quote .step {
  background: linear-gradient(155deg, rgba(16, 33, 56, 0.8), rgba(11, 24, 43, 0.9));
  border-color: rgba(0, 229, 255, 0.24);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
}

body.page-quote .step-num {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

body.page-quote .photo-drop {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.04);
}

body.page-quote .photo-drop:hover,
body.page-quote .photo-drop.is-dragging {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.10);
  box-shadow: 0 0 24px -6px rgba(0, 229, 255, 0.4);
}

body.page-quote .model-banner {
  background: linear-gradient(130deg, rgba(255, 158, 0, 0.18), rgba(0, 229, 255, 0.14) 60%, var(--card));
  border-color: rgba(255, 158, 0, 0.45);
  box-shadow: 0 16px 36px -18px rgba(255, 158, 0, 0.25);
}

body.page-quote .model-banner .eyebrow {
  color: var(--accent-2);
  border-color: rgba(255, 158, 0, 0.5);
  background: rgba(255, 158, 0, 0.1);
}

/* --- festive: evergreen, brass gold & warm hearth --- */
body.theme-festive {
  --bg: #06170e;
  --bg-soft: #0a2014;
  --card: #0f2b1c;
  --border: #1e4d34;
  --text: #f4f8f1;
  --muted: #a6c4b0;
  --accent: #f3c05b;
  --accent-2: #2a9d8f;
  --accent-ink: #191204;
  --glow: rgba(243, 192, 91, 0.32);
  --radius: 14px;
  --radius-sm: 8px;
  --font-head: "Playfair Display", Georgia, serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 12% -6%, rgba(243, 192, 91, 0.24), transparent 68%),
    radial-gradient(800px 450px at 88% 8%, rgba(42, 157, 143, 0.22), transparent 68%),
    radial-gradient(650px 380px at 50% 65%, rgba(230, 57, 70, 0.12), transparent 70%),
    radial-gradient(circle at 20px 20px, rgba(243, 192, 91, 0.15) 1.5px, transparent 2px);
  background-size: auto, auto, auto, 48px 48px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

body.theme-festive .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, #f3c05b 0 28px, #2a9d8f 28px 56px, #e63946 56px 84px);
}

body.theme-festive .card {
  background: linear-gradient(165deg, #133323, #0d2519);
  border-color: rgba(243, 192, 91, 0.25);
}

body.theme-festive .card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px var(--glow);
}

body.theme-festive .card-badge {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
  font-weight: 700;
}

body.theme-festive .cta-band {
  background: linear-gradient(130deg, rgba(243, 192, 91, 0.2), rgba(42, 157, 143, 0.16) 60%, var(--card));
  border-color: rgba(243, 192, 91, 0.35);
}

/* --- spooky: pumpkin, burning embers & midnight plum --- */
body.theme-spooky {
  --bg: #12081c;
  --bg-soft: #190c27;
  --card: #221136;
  --border: #442468;
  --text: #fdf2e6;
  --muted: #bfa8d4;
  --accent: #ff7b00;
  --accent-2: #a855f7;
  --accent-ink: #1a0800;
  --glow: rgba(255, 123, 0, 0.38);
  --radius: 12px;
  --radius-sm: 8px;
  --font-head: "Bricolage Grotesque", "Outfit", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 85% -8%, rgba(168, 85, 247, 0.26), transparent 66%),
    radial-gradient(750px 420px at 12% 5%, rgba(255, 123, 0, 0.24), transparent 66%),
    radial-gradient(650px 380px at 50% 65%, rgba(255, 0, 90, 0.12), transparent 70%),
    radial-gradient(rgba(255, 123, 0, 0.12) 1.5px, transparent 2px);
  background-size: auto, auto, auto, 36px 36px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

body.theme-spooky .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #ff7b00 0 20px, #12081c 20px 40px, #a855f7 40px 60px);
}

body.theme-spooky .card {
  border-width: 2px;
  border-color: rgba(255, 123, 0, 0.28);
  background: linear-gradient(160deg, #27143e, #1a0d2a);
}

body.theme-spooky .card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  border-color: var(--accent);
  box-shadow: 0 22px 44px -18px var(--glow);
}

body.theme-spooky .card-badge {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
  transform: rotate(-2deg);
  font-weight: 800;
}

/* --- spring: wild plum, sakura blush & morning mint --- */
body.theme-spring {
  --bg: #1a0f24;
  --bg-soft: #231530;
  --card: #2e1b3f;
  --border: #4d2e69;
  --text: #fff6f8;
  --muted: #d8c0d2;
  --accent: #ff9ebb;
  --accent-2: #52b788;
  --accent-ink: #300816;
  --glow: rgba(255, 158, 187, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 85% -6%, rgba(82, 183, 136, 0.24), transparent 68%),
    radial-gradient(750px 420px at 12% 5%, rgba(255, 158, 187, 0.26), transparent 68%),
    radial-gradient(650px 380px at 50% 65%, rgba(255, 214, 165, 0.12), transparent 70%),
    radial-gradient(circle at 18px 18px, rgba(255, 158, 187, 0.16) 1.5px, transparent 2px);
  background-size: auto, auto, auto, 44px 44px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

body.theme-spring .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff9ebb, #52b788 50%, #ffd6a5 100%);
}

body.theme-spring .card {
  border-width: 2px;
  border-color: rgba(255, 158, 187, 0.28);
  background: linear-gradient(160deg, #331e45, #261634);
}

body.theme-spring .card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -18px var(--glow);
}

body.theme-spring .btn,
body.theme-spring .eyebrow {
  border-radius: 999px;
}

body.theme-spring .price {
  color: var(--accent);
}

/* --- midwinter: polar night, glacial ice & silver starlight --- */
body.theme-midwinter {
  --bg: #061020;
  --bg-soft: #0a182e;
  --card: #0e203c;
  --border: #203b66;
  --text: #eef6ff;
  --muted: #9bb7dd;
  --accent: #70d6ff;
  --accent-2: #c7b3ff;
  --accent-ink: #021220;
  --glow: rgba(112, 214, 255, 0.36);
  --font-head: "Playfair Display", Georgia, serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 50% -10%, rgba(112, 214, 255, 0.24), transparent 68%),
    radial-gradient(750px 420px at 88% 8%, rgba(199, 179, 255, 0.20), transparent 68%),
    radial-gradient(650px 380px at 12% 50%, rgba(0, 245, 212, 0.12), transparent 70%),
    radial-gradient(rgba(238, 246, 255, 0.5) 1px, transparent 1.5px),
    radial-gradient(rgba(112, 214, 255, 0.25) 1.5px, transparent 2px);
  background-size: auto, auto, auto, 54px 54px, 27px 27px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed;
}

body.theme-midwinter .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, #70d6ff, #eef6ff 50%, #c7b3ff 100%);
  box-shadow: 0 0 14px rgba(112, 214, 255, 0.5);
}

body.theme-midwinter .card {
  background: linear-gradient(165deg, #102444, #0b1a32);
  border-color: rgba(112, 214, 255, 0.25);
}

body.theme-midwinter .card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -18px var(--glow);
}

body.theme-midwinter .card-badge {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
  font-weight: 700;
}

/* --- civic: heritage navy, liberty crimson & federal blue --- */
body.theme-civic {
  --bg: #071224;
  --bg-soft: #0b1a32;
  --card: #102444;
  --border: #203e6b;
  --text: #f4f8fe;
  --muted: #a3b9dc;
  --accent: #ef233c;
  --accent-2: #4895ef;
  --accent-ink: #ffffff;
  --glow: rgba(239, 35, 60, 0.35);
  --font-head: "Space Grotesk", "Outfit", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 85% -6%, rgba(72, 149, 239, 0.24), transparent 68%),
    radial-gradient(750px 420px at 12% 5%, rgba(239, 35, 60, 0.22), transparent 68%),
    radial-gradient(650px 380px at 50% 65%, rgba(244, 248, 254, 0.08), transparent 70%),
    radial-gradient(rgba(244, 248, 254, 0.18) 1.5px, transparent 2px);
  background-size: auto, auto, auto, 40px 40px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

body.theme-civic .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, #ef233c 0 33.33%, #f4f8fe 33.33% 66.66%, #4895ef 66.66% 100%);
}

body.theme-civic .card {
  background: linear-gradient(165deg, #132a50, #0d1e3a);
  border-color: rgba(72, 149, 239, 0.28);
}

body.theme-civic .card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: 0 20px 40px -18px rgba(72, 149, 239, 0.35);
}

body.theme-civic .card-badge {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
  font-weight: 700;
}

/* --- marigold: royal velvet, saffron gold & festival spice --- */
body.theme-marigold {
  --bg: #1f070e;
  --bg-soft: #280a13;
  --card: #340e1a;
  --border: #5e1c2e;
  --text: #fff6eb;
  --muted: #dab09e;
  --accent: #ffb703;
  --accent-2: #fb5607;
  --accent-ink: #220f00;
  --glow: rgba(255, 183, 3, 0.38);
  --radius: 14px;
  --radius-sm: 8px;
  --font-head: "Bricolage Grotesque", "Outfit", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(850px 480px at 85% -6%, rgba(251, 86, 7, 0.26), transparent 66%),
    radial-gradient(750px 420px at 12% 5%, rgba(255, 183, 3, 0.24), transparent 66%),
    radial-gradient(650px 380px at 50% 65%, rgba(255, 0, 110, 0.12), transparent 70%),
    radial-gradient(rgba(255, 183, 3, 0.16) 1.5px, transparent 2px);
  background-size: auto, auto, auto, 36px 36px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

body.theme-marigold .hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffb703, #fb5607 60%, #ff006e 100%);
}

body.theme-marigold .card {
  background: linear-gradient(160deg, #3c1220, #2b0b15);
  border-color: rgba(255, 183, 3, 0.28);
}

body.theme-marigold .card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -18px var(--glow);
}

body.theme-marigold .card-badge {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
  font-weight: 800;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .nav-burger {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }

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

  .nav-links a {
    padding: 12px 10px;
  }

  .nav {
    position: relative;
  }

  .hero {
    padding: 64px 0 52px;
  }

  .section {
    padding: 48px 0;
  }

  .cta-band {
    padding: 32px 24px;
    margin: 52px 0;
  }
}

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

  .brand-tag {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- service picker on the quote form ---------- */
.hidden {
  display: none;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

/* .field label sets display:block and outranks a bare .choice, so win on specificity here. */
.choice-grid .choice {
  position: relative;
  display: flex;
  align-items: stretch;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice > span {
  display: grid;
  align-content: start;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color 0.2s, background 0.2s;
}

.choice > span i {
  color: var(--accent);
}

.choice > span strong {
  font-size: 0.95rem;
}

.choice > span small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.choice input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  box-shadow: inset 0 0 0 1px var(--accent);
}

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

.model-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 32px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent-2) 14%, var(--card)), var(--card));
}

.model-banner h3 {
  margin: 6px 0 8px;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.model-banner p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.55;
}

.model-banner .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .model-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Announcement bar */
.announcement-bar {
  position: relative;
  z-index: 90;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.announcement-text {
  flex: 1;
  text-align: center;
}
.announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.announcement-close {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  opacity: 0.8;
  padding: 4px 8px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.announcement-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.12);
}

/* Footer contact and social icons */
.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  width: 100%;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}
.footer-contact-item i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact-item strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 3px;
}
.footer-contact-item a:hover {
  color: var(--accent);
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.footer-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 15%, var(--card));
}

/* Pattern overlay background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--pattern-bg, none);
  background-size: var(--pattern-size, auto);
  opacity: var(--pattern-opacity, 0.4);
}

/* ============================================================
   LIVE PHOTO-TO-3D PRINT PREVIEW STUDIO
   ============================================================ */

.model-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.inline-accent-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.photo-preview-3d {
  position: absolute;
  bottom: 4px;
  left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 6px;
  background: rgba(5, 10, 20, 0.85);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, color 0.15s ease;
}

.photo-preview-3d:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

#order-form {
  scroll-margin-top: 96px;
}

.preview-studio {
  scroll-margin-top: 96px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent) 6%, var(--card)),
    var(--card) 70%
  );
  box-shadow: 0 24px 52px -24px rgba(0, 0, 0, 0.75);
}

.p3d-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.p3d-header h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 6px;
}

.p3d-sub {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 68ch;
  line-height: 1.55;
}

.p3d-source-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px 8px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  flex-shrink: 0;
}

.p3d-source-pill img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.p3d-source-pill small {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.p3d-source-pill strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text);
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p3d-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.p3d-stage {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  background: radial-gradient(circle at 50% 35%, #10233e 0%, #060d18 85%);
  overflow: hidden;
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.65);
}

.p3d-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.p3d-tool {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 16, 30, 0.78);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.16s ease;
}

.p3d-tool:hover {
  color: var(--text);
  border-color: var(--accent);
}

.p3d-tool.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

#preview3d-canvas {
  display: block;
  width: 100%;
  height: 430px;
  cursor: grab;
  touch-action: none;
}

#preview3d-canvas:active {
  cursor: grabbing;
}

.p3d-stage-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(6, 12, 22, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.73rem;
  color: var(--muted);
}

.p3d-stage-hint i {
  color: var(--accent);
  margin-right: 4px;
}

.p3d-telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.p3d-stat {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.p3d-stat small {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3px;
}

.p3d-stat strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
}

.p3d-stat .p3d-stat-accent {
  color: var(--accent);
  font-size: 0.96rem;
}

.p3d-controls-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p3d-block {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 75%, var(--card));
}

.p3d-block > label,
.p3d-block-head label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.p3d-upload-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p3d-upload-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.p3d-upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

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

.p3d-sample {
  flex: 1 1 auto;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.p3d-sample:hover {
  color: var(--text);
  border-color: var(--accent);
}

.p3d-sample.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}

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

.p3d-style-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.p3d-style-btn:last-child {
  grid-column: span 2;
}

.p3d-style-btn i {
  color: var(--accent);
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.p3d-style-btn strong {
  font-size: 0.82rem;
  color: var(--text);
}

.p3d-style-btn small {
  font-size: 0.7rem;
  color: var(--muted);
}

.p3d-style-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.p3d-style-btn.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  box-shadow: inset 0 0 0 1px var(--accent);
}

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

.p3d-spool {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.p3d-spool:hover {
  color: var(--text);
  border-color: var(--accent);
}

.p3d-spool.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}

.p3d-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.p3d-sliders {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.p3d-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.p3d-slider-label label {
  color: var(--muted);
  font-weight: 600;
}

.p3d-slider-label strong {
  color: var(--accent);
  font-size: 0.78rem;
}

.p3d-sliders input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.p3d-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  margin-top: 2px;
}

.p3d-checkbox input {
  accent-color: var(--accent);
}

.p3d-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p3d-actions > .btn {
  width: 100%;
}

.p3d-actions-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.p3d-toast {
  display: none;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  color: var(--text);
  font-size: 0.78rem;
}

.p3d-toast.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .p3d-grid {
    grid-template-columns: 1fr;
  }
  #preview3d-canvas {
    height: 360px;
  }
}

@media (max-width: 600px) {
  .preview-studio {
    padding: 18px;
  }
  .p3d-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p3d-spools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p3d-actions-sub {
    grid-template-columns: 1fr;
  }
}


