/* ===================================================================
   jonasprint.dk — workshop-vibe stylesheet
   tokens are CSS variables so the Tweaks panel can override at runtime
   =================================================================== */

:root {
  /* Type — workshop-y but legible. Sora for display, Inter Tight for body, JetBrains Mono for tags */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Inter Tight", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Palette — kraftpapir-baggrund, varm orange, dyb sort */
  --bg:           #f5efe4;     /* kraftpapir / let cremet */
  --bg-deep:      #ebe2d0;     /* lidt mørkere tone til paneler */
  --bg-card:      #fdfaf3;
  --ink:          #1a1612;
  --ink-soft:     #5a4f44;
  --ink-mute:     #8c7f72;
  --line:         #1a161222;   /* tynd stregtone */
  --line-strong:  #1a1612;

  --orange:       #f26b1f;     /* primær */
  --orange-deep:  #c5510e;
  --orange-soft:  #f8a96d;
  --orange-bg:    #fde6d2;

  --green-tag:    #2f6b3a;
  --red-tag:      #b53026;
  --amber-tag:    #c98a16;

  /* Layout */
  --container:    1240px;
  --radius:       14px;
  --radius-lg:    22px;
  --pad-y:        96px;
  --pad-x:        clamp(20px, 4vw, 56px);
  --gap:          24px;

  /* Shadows — soft, warm */
  --shadow-sm:    0 1px 0 rgba(26,22,18,0.05), 0 2px 6px rgba(26,22,18,0.06);
  --shadow-md:    0 2px 0 rgba(26,22,18,0.06), 0 12px 28px -10px rgba(26,22,18,0.18);
  --shadow-lg:    0 30px 60px -25px rgba(26,22,18,0.32);
}

/* density variants applied to <html> */
html[data-density="compact"]  { --pad-y: 64px; --gap: 16px; }
html[data-density="airy"]     { --pad-y: 132px; --gap: 32px; }

/* dark variant */
html[data-theme="dark"] {
  --bg:          #14110d;
  --bg-deep:     #1c1814;
  --bg-card:     #1f1b16;
  --ink:         #f3ecdf;
  --ink-soft:    #beb1a1;
  --ink-mute:    #847868;
  --line:        #ffffff14;
  --line-strong: #f3ecdf;
  --orange-bg:   #3a1e0d;
}

/* ----- base ----- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* paper grain subtle texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(26,22,18,0.025) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(242,107,31,0.04) 0, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ----- layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--pad-y) 0; position: relative; }
.section.container { padding: var(--pad-y) var(--pad-x); }

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.nav-logo svg { height: 28px; width: auto; color: var(--ink); }
.nav-logo .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-bg);
}
.nav-links {
  display: flex; gap: 4px; flex: 1;
  min-width: 0;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
  transition: all .15s;
}
.nav-link:hover { background: var(--bg-deep); color: var(--ink); }
.nav-link.active {
  background: var(--ink); color: var(--bg);
}
.nav-admin { margin-left: 4px; }
.nav-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 42px;
  box-shadow: var(--shadow-sm);
}
.nav-menu-btn span {
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 38;
  border: 0;
  padding: 0;
  background: rgba(26,22,18,.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 39;
  width: min(86vw, 360px);
  padding: 18px;
  background: var(--bg-card);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(26,22,18,.22);
}
@keyframes nav-drawer-in {
  from { transform: translateX(104%); }
  to { transform: translateX(0); }
}
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-links {
  display: grid;
  gap: 8px;
  padding: 18px 0;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 800;
  border: 1px solid transparent;
}
.nav-drawer-link.active {
  color: var(--bg);
  background: var(--ink);
}
.nav-drawer-link:not(.active):hover {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--line);
}
.nav-drawer-actions {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: var(--orange); color: white; transform: translateY(-1px); }
.btn-orange {
  background: var(--orange); color: white;
  box-shadow: 0 6px 0 var(--orange-deep);
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--orange-deep); }
.btn-orange:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-deep); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ----- typography ----- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; background: currentColor;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(34px, 4vw, 58px); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 60ch; }

/* ----- hero ----- */
.hero {
  padding: clamp(60px, 9vw, 130px) 0 clamp(40px, 6vw, 80px);
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  align-items: end;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero h1 { margin-top: 18px; }
.hero h1 .swirl {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero h1 .swirl::after {
  content: "";
  position: absolute; left: 4%; right: 4%; bottom: -6px;
  height: 8px;
  background: var(--orange);
  opacity: .25;
  border-radius: 4px;
}
.hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-soft);
}
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* "spool" decorative card on hero */
.hero-spool {
  aspect-ratio: 1;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-spool .reel {
  --c: var(--orange);
  position: absolute; right: -60px; bottom: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(var(--c) 0 4deg, color-mix(in oklab, var(--c) 75%, black) 4deg 8deg);
  box-shadow: inset 0 0 0 22px var(--bg-card), inset 0 0 0 24px var(--ink), inset 0 0 0 90px var(--bg-card);
  animation: reel-spin 60s linear infinite;
}
@keyframes reel-spin { to { transform: rotate(360deg); } }
.hero-spool .tag {
  align-self: flex-start;
  background: var(--ink); color: var(--bg);
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
}
.hero-spool .tag-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.hero-spool .label {
  position: relative; z-index: 2;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-soft);
}
.hero-spool .label b { color: var(--ink); font-size: 14px; }
.hero-image-card {
  padding: 0;
  background: var(--ink);
  min-height: 360px;
}
.hero-image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-card .image-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.hero-image-card .image-label b {
  max-width: 100%;
  border-radius: 10px;
  padding: 8px 11px;
  background: color-mix(in oklab, var(--bg-card) 92%, transparent);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ----- marquee strip ----- */
.strip {
  background: var(--ink); color: var(--bg);
  padding: 14px 0;
  overflow: hidden;
  border-block: 1px solid var(--ink);
}
.strip-track {
  display: flex; gap: 40px;
  animation: strip-scroll 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 14px; white-space: nowrap;
}
.strip-track span { display: inline-flex; align-items: center; gap: 12px; }
.strip-track .star { color: var(--orange); }
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- generic card grid ----- */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head .h-left { max-width: 600px; }
.section-head h2 { margin-top: 8px; }

/* ----- filaments ----- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 10px;
}
.filter-divider { width: 1px; background: var(--line); margin: 0 6px; }
.chip {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  transition: all .15s;
  white-space: nowrap;
  display: inline-flex; align-items: center;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { opacity: .55; margin-left: 6px; }

.filament-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.filament-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
  position: relative;
}
.filament-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.filament-swatch {
  height: 140px; position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0, transparent 50%),
    var(--swatch);
}
.filament-swatch.has-photo {
  background: var(--ink);
}
.filament-swatch.has-photo::after { display: none; }
.filament-swatch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.finish-badge, .photo-count {
  position: absolute;
  right: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  background: color-mix(in oklab, var(--bg-card) 88%, transparent);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.finish-badge { top: 12px; }
.photo-count { bottom: 12px; }
.finish-gloss { background: rgba(255,255,255,.84); }
.finish-semi-gloss { background: var(--orange-bg); color: var(--orange-deep); }
.finish-matte { background: rgba(26,22,18,.86); color: var(--bg); }
.finish-transparent { background: rgba(232,238,240,.86); color: var(--ink); }
.filament-swatch::after {
  /* faux spool ring */
  content: "";
  position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 8px solid color-mix(in oklab, var(--swatch) 65%, black);
  background: var(--swatch);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35), 0 4px 12px rgba(0,0,0,0.18);
  z-index: 1;
}
.filament-swatch .stock-badge { z-index: 2; }
.filament-body { padding: 14px 16px; }
.filament-body .row1 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.filament-body .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.filament-body .meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: .05em;
  text-transform: uppercase;
}
.filament-body .price {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.filament-body .price b { font-family: var(--font-display); font-size: 20px; }
.filament-body .price small { color: var(--ink-mute); font-size: 12px; }

.stock-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px;
  padding: 5px 9px; border-radius: 999px;
  letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(6px);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* ----- color group chips (dyslexia-friendly: swatch + text) ----- */
.color-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-soft);
  font-size: 13px; font-weight: 500;
  transition: all .15s;
}
.color-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.color-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.color-chip .swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--line-strong), 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.color-chip .swatch.multi {
  background:
    conic-gradient(#d6342c 0 60deg, #f26b1f 60deg 120deg, #f5c33b 120deg 180deg,
                   #2f6b3a 180deg 240deg, #244aa5 240deg 300deg, #b5a1d4 300deg 360deg);
}

/* ----- studio (STL configurator) ----- */
.studio {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
  align-items: start;
}
.studio > *, .studio-step, .studio-summary { min-width: 0; max-width: 100%; }
.studio-step input { min-width: 0; }
@media (max-width: 1100px) { .studio { grid-template-columns: 1fr; } }

.studio-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 18px;
}
.studio-step .step-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.studio-step .step-num {
  width: 32px; height: 32px;
  background: var(--orange); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  flex-shrink: 0;
}
.studio-step h3 { font-size: 22px; }
.studio-step .step-sub { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }

.dropzone {
  display: block;
  width: 100%;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: all .15s;
}
.dropzone:hover, .dropzone.is-drag {
  border-color: var(--orange);
  background: var(--orange-bg);
}
.dropzone .icon { font-size: 36px; margin-bottom: 10px; }
.dropzone p { color: var(--ink-soft); font-size: 14px; }
.dropzone b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 17px; font-family: var(--font-display); }

.file-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.file-tile .ext {
  width: 44px; height: 44px;
  background: var(--orange);
  color: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.file-tile .info { flex: 1; min-width: 0; }
.file-tile .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-tile .info span { font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); }

.selected-usage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.selected-usage-row {
  display: grid;
  grid-template-columns: auto minmax(90px, 130px) 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.selected-usage-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.selected-usage-name b {
  display: block;
  font-size: 13px;
}
.selected-usage-name span {
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}
.selected-usage-row input {
  min-width: 0;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  border-radius: 8px;
  outline: none;
}

/* color picker grid in studio */
.color-pick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-height: 380px; overflow-y: auto;
  padding-right: 4px;
  min-width: 0;
}
.color-pick {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  position: relative;
}
.color-pick:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.color-pick.selected { border-color: var(--orange); background: var(--orange-bg); }
.color-pick.selected::after {
  content: "✓";
  position: absolute; top: 4px; right: 8px;
  color: var(--orange-deep);
  font-weight: 700;
}
.color-pick .swatch {
  width: 100%; height: 50px;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  position: relative;
}
.color-pick.disabled { opacity: 0.45; cursor: not-allowed; }
.color-pick.disabled .swatch::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,0.18) 4px 5px);
  border-radius: 5px;
}
.color-pick .name {
  font-size: 12px; font-weight: 600; color: var(--ink);
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.color-pick .meta {
  font-size: 10px; color: var(--ink-mute); font-family: var(--font-mono);
}

/* studio summary panel */
.studio-summary {
  position: sticky; top: 96px;
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.studio-summary h3 { color: var(--bg); margin-bottom: 18px; font-size: 22px; }
.studio-summary .selected-color {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 14px;
}
.studio-summary .selected-color .sw {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.studio-summary .selected-color b { display: block; font-size: 15px; }
.studio-summary .selected-color span { font-size: 12px; opacity: .7; font-family: var(--font-mono); }

.studio-summary .breakdown {
  border-top: 1px dashed rgba(255,255,255,0.16);
  padding-top: 14px; margin-top: 14px;
}
.studio-summary .breakdown .row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-family: var(--font-mono); font-size: 13px;
}
.studio-summary .breakdown .row span { opacity: .7; }
.studio-summary .grand {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 18px; padding-top: 18px;
  border-top: 2px solid var(--orange);
}
.studio-summary .grand b {
  font-family: var(--font-display); font-size: 38px; color: var(--orange);
}

.field-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.quality-grid .chip {
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px;
  height: auto;
  white-space: normal;
  border-radius: 10px;
  gap: 2px;
}
.quality-grid .chip b { font-size: 14px; }
.quality-grid .chip span { font-size: 11px; opacity: .7; }

.notice {
  padding: 12px 14px;
  background: var(--orange-bg);
  border: 1px solid var(--orange);
  color: var(--orange-deep);
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
}
.notice.success { background: rgba(47,107,58,.12); border-color: rgba(47,107,58,.45); color: var(--green-tag); }
.notice.error { background: rgba(181,48,38,.10); border-color: rgba(181,48,38,.35); color: var(--red-tag); }
.stock-in    { background: rgba(47,107,58,0.92); color: white; }
.stock-low   { background: rgba(201,138,22,0.95); color: white; }
.stock-out   { background: rgba(181,48,38,0.92); color: white; }

/* ----- pricing ----- */
.calc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 800px) { .calc { grid-template-columns: 1fr; } }
.calc h3 { margin-bottom: 8px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  font: inherit;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.field small { color: var(--ink-mute); font-size: 13px; }
.field .row { display: flex; gap: 10px; }
.field .row > * { flex: 1; }
.field-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.calc-summary {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  align-self: start;
}
.calc-summary .row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-family: var(--font-mono); font-size: 13px;
  border-bottom: 1px dashed rgba(255,255,255,0.16);
}
.calc-summary .row b { color: white; }
.calc-summary .row:last-of-type { border: 0; }
.calc-summary .total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 18px; padding-top: 18px;
  border-top: 2px solid var(--orange);
}
.calc-summary .total b { font-family: var(--font-display); font-size: 42px; color: var(--orange); }

/* table-style price list */
.price-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-row {
  display: grid; grid-template-columns: 1fr auto;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 16px;
}
.price-row:last-child { border: 0; }
.price-row .name { font-weight: 600; }
.price-row .desc { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.price-row .price {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--orange-deep);
  white-space: nowrap;
}

/* ----- gallery ----- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: all .2s;
}
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-img {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(45deg,
      hsl(var(--hue) 65% 60% / .35) 0 12px,
      hsl(var(--hue) 65% 50% / .35) 12px 24px),
    hsl(var(--hue) 60% 92%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: hsl(var(--hue) 70% 18%);
  letter-spacing: .12em;
  position: relative;
}
.gallery-img.has-photo {
  background: var(--ink);
}
.gallery-img.has-photo::before { display: none; }
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-img::before {
  content: "// PRINT";
  position: absolute; top: 12px; left: 14px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .15em;
  background: var(--bg-card); padding: 4px 8px;
  border-radius: 4px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.gallery-body { padding: 14px 18px; }
.gallery-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.gallery-body h4 { font-family: var(--font-display); font-weight: 600; margin: 0; font-size: 17px; }
.gallery-body p { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.gallery-price {
  white-space: nowrap;
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 14px;
}
.gallery-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ----- about / steps ----- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.step .num {
  font-family: var(--font-display); font-weight: 800;
  color: var(--orange);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.step h4 { font-family: var(--font-display); font-size: 18px; margin: 0 0 6px; }
.step p { color: var(--ink-soft); font-size: 14px; }

/* ----- faq ----- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all .2s;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono);
  font-size: 24px; color: var(--orange);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* ----- contact ----- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: start;
}
.contact-grid > * { min-width: 0; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.contact-card .blob {
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--orange);
  filter: blur(40px); opacity: .35;
}
.contact-card h3 { font-size: 32px; margin-bottom: 18px; }
.contact-card a { display: block; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.contact-card a:hover { color: var(--orange); }
.contact-card .lbl { font-family: var(--font-mono); font-size: 11px; opacity: .55; letter-spacing: .1em; text-transform: uppercase; }
.contact-card .val { font-family: var(--font-display); font-size: 22px; font-weight: 600; }

/* ----- footer ----- */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  margin-top: 80px;
  background: var(--bg-deep);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; font-weight: 600; }
.footer-col a { display: block; padding: 4px 0; color: var(--ink-soft); font-size: 14px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
}

/* ----- admin ----- */
.admin-shell {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  min-height: 70vh;
}
@media (max-width: 800px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-side {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  height: fit-content;
  position: sticky; top: 90px;
}
.admin-side h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; padding: 0 10px; font-weight: 700;}
.admin-side button {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px;
  background: transparent; border: 0;
  color: var(--ink-soft); font-weight: 500;
  margin-bottom: 2px;
}
.admin-side button.active { background: var(--ink); color: var(--bg); }
.admin-side button:hover { background: var(--bg-deep); color: var(--ink); }
.admin-main {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px);
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -16px 0 18px;
}
.admin-tabs button {
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
}
.admin-tabs button.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 24px;
  align-items: start;
}
.catalog-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.brand-box, .catalog-detail, .image-manager {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.brand-box h4, .catalog-side h4, .image-manager h4 { margin: 0; font-family: var(--font-display); }
.brand-add input {
  min-width: 0;
  flex: 1;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--ink);
}
.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 6px 8px 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.brand-pill small { color: var(--ink-mute); font-family: var(--font-mono); }
.brand-pill button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--ink-soft);
  line-height: 1;
}
.filament-admin-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.filament-admin-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  color: var(--ink);
}
.filament-admin-row.active, .filament-admin-row:hover {
  border-color: var(--orange);
  background: var(--orange-bg);
}
.filament-admin-row small {
  display: block;
  color: var(--ink-mute);
  font-size: 12px;
  margin-top: 2px;
}
.catalog-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filament-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.filament-image-admin {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.filament-image-admin img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.filament-image-admin input {
  width: calc(100% - 16px);
  margin: 8px;
  font: inherit;
  font-size: 13px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.filament-image-admin .icon-btn { margin: 0 8px 8px; }
.gallery-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 24px;
  align-items: start;
}
.gallery-admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery-admin-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  color: var(--ink);
}
.gallery-admin-row.active, .gallery-admin-row:hover {
  border-color: var(--orange);
  background: var(--orange-bg);
}
.gallery-admin-row img {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-admin-row small {
  display: block;
  color: var(--ink-mute);
  font-size: 12px;
  margin-top: 2px;
}
.gallery-admin-detail {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.gallery-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-image-admin {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.gallery-image-admin img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
.gallery-image-admin .field { padding: 12px; margin: 0; }
.gallery-image-admin .btn { margin: 0 12px 12px; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
.content-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.content-panel h4 { margin: 0 0 14px; font-family: var(--font-display); }
.copy-panel {
  margin-bottom: 24px;
}
.copy-panel .admin-toolbar p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 4px;
}
.copy-section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
}
.copy-section summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 15px;
  font-family: var(--font-display);
  font-weight: 700;
}
.copy-section summary::-webkit-details-marker { display: none; }
.copy-section summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-family: var(--font-mono);
}
.copy-section[open] summary::after { content: "×"; }
.copy-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 0 15px 15px;
}
.copy-step {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.copy-step > b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.simple-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.simple-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.simple-row small {
  display: block;
  color: var(--orange-deep);
  font-weight: 800;
  margin-top: 2px;
}
.simple-row p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 5px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: start;
}
.front-preview {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.front-preview .preview-card {
  width: 100%;
  max-width: 380px;
  margin-top: 14px;
}
.orders-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) { .orders-layout { grid-template-columns: 1fr; } }
.order-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0 0 14px;
}
.order-tools input, .order-tools select {
  min-width: 0;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
}
.order-row:hover, .order-row.active { border-color: var(--orange); background: var(--orange-bg); }
.order-id { font-family: var(--font-mono); color: var(--ink-mute); font-size: 12px; }
.order-row small { display: block; color: var(--ink-mute); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.order-detail {
  min-height: 360px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 24px);
}
.order-meta, .order-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
@media (max-width: 700px) { .order-meta, .order-specs { grid-template-columns: 1fr; } }
.order-meta > div, .order-specs > div {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
}
.order-meta span, .order-specs span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.order-meta b, .order-meta a, .order-specs b { overflow-wrap: anywhere; font-weight: 700; }
.message-box {
  white-space: pre-wrap;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  color: var(--ink-soft);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg-deep);
  color: var(--ink-soft);
}
.status-new { background: var(--orange-bg); color: var(--orange-deep); }
.status-seen { background: rgba(90,79,68,.14); color: var(--ink-soft); }
.status-quoted { background: rgba(201,138,22,.16); color: var(--amber-tag); }
.status-accepted { background: rgba(47,107,58,.16); color: var(--green-tag); }
.status-done { background: rgba(47,107,58,.24); color: var(--green-tag); }
.status-rejected { background: rgba(181,48,38,.14); color: var(--red-tag); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.admin-table th {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
}
.admin-swatch {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: inline-block; vertical-align: middle;
}
.admin-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px; align-items: center;
  justify-content: space-between;
}
.admin-toolbar h3 { margin: 0; }
.admin-toolbar .right { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 24px;
  padding: 20px; border-radius: var(--radius);
  background: var(--bg);
  border: 1px dashed var(--line-strong);
}
@media (max-width: 800px) { .admin-form { grid-template-columns: 1fr; } }
.admin-form .full { grid-column: 1 / -1; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--ink-soft);
}
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.icon-btn.danger:hover { background: var(--red-tag); border-color: var(--red-tag); }

/* login */
.login-card {
  max-width: 420px; margin: 80px auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-card .lock {
  width: 56px; height: 56px;
  background: var(--orange-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
}
.login-card h2 { font-size: 30px; margin-bottom: 8px; }
.login-card p { color: var(--ink-soft); margin-bottom: 24px; }

/* utilities */
.spaced > * + * { margin-top: var(--gap); }
.row-h { display: flex; gap: 14px; align-items: center; }
.tape {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  background: var(--orange-bg);
  color: var(--orange-deep);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  border-radius: 4px;
  transform: rotate(-1.2deg);
}
.divider {
  height: 1px; background: var(--line); margin: 16px 0;
}

/* hover overlay for filament card */
.filament-card.is-out { opacity: .55; filter: grayscale(.3); }

@media (max-width: 1100px) {
  :root { --pad-y: 76px; --pad-x: clamp(18px, 4vw, 34px); }
  .nav-inner { gap: 16px; }
  .nav-link { padding-inline: 11px; font-size: 14px; }
  .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 34px; align-items: center; }
  .hero-spool .reel { width: 280px; height: 280px; }
  .settings-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .gallery-admin-layout { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --pad-y: 62px; }
  body { font-size: 16px; }
  .nav-inner {
    height: 64px;
    gap: 10px;
  }
  .nav-logo { flex: 1 1 auto; min-width: 160px; }
  .nav-logo svg { max-width: 172px; }
  .nav .btn-orange { padding: 8px 12px; box-shadow: 0 4px 0 var(--orange-deep); }
  .nav-links, .nav-admin { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-drawer.open {
    display: block;
    animation: nav-drawer-in .22s ease both;
  }
  .hero { padding: 42px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-spool {
    width: min(100%, 440px);
    justify-self: center;
    min-height: 300px;
  }
  .hero-image-card { aspect-ratio: 4 / 3; }
  .hero-meta { gap: 10px 14px; margin-top: 22px; }
  .section-head { align-items: start; margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .price-row { padding: 16px; }
  .contact-card { padding: 28px; }
  .admin-main { padding: 16px; }
}

@media (max-width: 560px) {
  :root { --pad-y: 48px; --pad-x: 16px; --radius-lg: 18px; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  h2 { font-size: clamp(29px, 9vw, 40px); }
  h3 { font-size: 22px; }
  .lede { font-size: 18px; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; }
  .btn { width: 100%; justify-content: center; padding: 12px 16px; }
  .btn-sm { width: auto; }
  .nav-logo { min-width: 0; }
  .nav-logo svg { max-width: 150px; }
  .nav-cta { width: auto; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-drawer { width: min(90vw, 340px); }
  .nav-drawer-actions .btn { width: 100%; }
  .hero { padding-top: 32px; }
  .hero h1 { margin-top: 14px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta span:nth-child(2), .hero-meta span:nth-child(4) { display: none; }
  .hero-spool {
    min-height: 270px;
    padding: 18px;
    border-radius: 18px;
  }
  .hero-spool .reel {
    width: 230px;
    height: 230px;
    right: -54px;
    bottom: -52px;
  }
  .hero-spool .tag { font-size: 10px; padding: 5px 9px; }
  .strip { padding: 10px 0; }
  .strip-track { font-size: 12px; gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 18px; }
  .step .num { font-size: 42px; margin-bottom: 10px; }
  .price-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .price-row .price { white-space: normal; }
  .contact-card .val { font-size: 18px; overflow-wrap: anywhere; }
  .admin-form { padding: 14px; }
  .studio { gap: 18px; }
  .studio-step { padding: 18px; }
  .studio-step .step-head { align-items: flex-start; }
  .studio-step .icon-btn { flex: 0 0 32px; }
  .dropzone { padding: 28px 18px; }
  .color-pick-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .field-mini { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .selected-usage-row { grid-template-columns: auto 1fr auto; }
  .selected-usage-row input { grid-column: 1 / -1; }
  .studio-summary {
    position: static;
    padding: 20px;
  }
  .studio-summary .breakdown .row,
  .studio-summary .grand {
    gap: 14px;
  }
  .catalog-form { grid-template-columns: 1fr; }
  .gallery-form { grid-template-columns: 1fr; }
  .simple-row { grid-template-columns: 1fr; }
  .copy-field-grid { grid-template-columns: 1fr; }
  .order-tools { grid-template-columns: 1fr; }
  .filter-divider { display: none; }
  .login-card { margin: 36px auto; padding: 30px; }
  .order-row { grid-template-columns: auto 1fr; }
  .order-row .status-pill { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* skip link */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip: rect(0,0,0,0); }
