/* ═══════════════════════════════════════════════════════════════════════════
   CGPRINT: sleek & premium. Ivory paper, black ink, one cobalt accent, serif headlines.
   Loaded after styles.css: everything here only changes the look, never the layout logic,
   so new features from the original site keep working when copied over.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --bg-2: #efede7;
  --panel: #ffffff;
  --panel-2: #f7f6f2;
  --panel-3: #ffffff;
  --line: #e4e1da;
  --line-2: #cfcbc2;
  --text: #121212;
  --muted: #5c5952;
  --dim: #8a867d;
  --ink: #121212;
  --accent: #2c56d2;
  --accent-soft: rgba(44, 86, 210, .08);
  /* the old palette names, pointed at the new one */
  --blue: var(--accent);
  --blue-2: #2c56d2;
  --blue-ink: #ffffff;
  --gold: var(--ink);
  --paint: #b9b4aa;
  --slate: #7c7870;
  --ok: #1f7a4d;

  --radius: 4px;
  --radius-sm: 2px;
  --display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --body: 'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
}

body { background: var(--bg); font-size: 1rem; letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
body::before, body::after { display: none; } /* no layer lines, no grain */
::selection { background: var(--ink); color: #fff; }

/* ── Type: serif display, no shouting ───────────────────────────────────── */
.hero-title, .top h1, .section h2, .band h2, .q-step legend, .q-bar-title, .size-value,
.tk-price, .tp-price, .lt-price, .mp-name, .sent h3, .send-title, .lightbox figcaption b,
.status-card h1, .ib-title, .ib-login h1, .ib-head h1, .ib-label, .tile-img .q-mark {
  font-family: var(--display); font-weight: 400; text-transform: none; letter-spacing: -.01em;
}
.hero-title { font-size: clamp(2.9rem, 11vw, 5.4rem); line-height: .95; text-shadow: none; }
.section h2, .band h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; }
.q-step legend { font-size: clamp(2rem, 4vw, 2.6rem); }
.q-bar-title { font-size: 1.9rem; }
.size-value { font-size: 3.8rem; }
.tk-price { font-size: 2.6rem; color: #fff; }
.lt-price { color: var(--ink); }
.sent h3 { font-size: 2.2rem; }
.send-title { font-size: 1.8rem; }
.mp-name { font-size: 2rem; }
.lightbox figcaption b { font-size: 1.8rem; }

/* small labels: quiet, spaced capitals */
.eyebrow, .tk-label, .tp-label, .ticket-head, .ticket-rows dt, .readout dt, .q-count, .viewer-tag,
.status-facts dt, .ib-facts dt, .c-body .default-tag, .lb-count, .scroll-cue, .spin-tag, .ib-status {
  font-family: var(--body); font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { color: var(--muted); font-size: .72rem; }
.stars { color: var(--accent); }

.ht-print { color: inherit; background: none; -webkit-background-clip: border-box; background-clip: border-box; font-style: italic; }
.ht-dot { color: var(--accent); }

/* ── Buttons & chips: black ink, square-ish ─────────────────────────────── */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: .01em; }
.btn-primary { background: var(--ink); color: #fff; font-weight: 500; box-shadow: none; }
.btn-primary:hover { background: #333; box-shadow: none; }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-text { color: var(--muted); }
.chip { background: transparent; border-color: var(--line-2); font-weight: 400; }
.chip:hover { border-color: var(--ink); }
.chip.on, .chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.chip.chip-rec { border-color: var(--accent); color: var(--accent); font-weight: 500; }
.chip.chip-rec.on { background: var(--accent); border-color: var(--accent); color: #fff; }
:focus-visible { outline-color: var(--accent); }

/* ── Logo & nav ─────────────────────────────────────────────────────────── */
.logo img, .print-logo img { filter: none; }
.nav.scrolled { background: rgba(247, 246, 242, .86); border-color: var(--line); }
.nav nav a { color: var(--muted); font-size: .88rem; letter-spacing: .04em; }
.nav nav a:hover { color: var(--ink); }
.nav-ig:hover { background: rgba(0, 0, 0, .05); }
.ig-ico {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='1.6'%3E%3Crect x='4.5' y='4.5' width='15' height='15' rx='4.5'/%3E%3Ccircle cx='12' cy='12' r='3.4'/%3E%3Ccircle cx='16.6' cy='7.4' r='.7' fill='%23121212' stroke='none'/%3E%3C/svg%3E") center / 82% no-repeat;
}

/* ── Home hero: ivory, centred, nothing else ───────────────────────────── */
.hero { background: var(--bg); }
.hero-bed { display: none; }
.hero-inner { gap: 18px; max-width: 560px; }
.print-logo { width: min(52vw, 200px); margin-bottom: 10px; } /* the CGPRINT wordmark is 3:1 */
.pl-head { display: none !important; }
.hero-stars { color: var(--muted); }

.home-actions { gap: 10px; margin-top: 18px; }
.home-btn {
  min-height: 72px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink);
}
.home-btn:hover { border-color: var(--ink); transform: none; }
.hb-text b { font-weight: 600; font-size: 1.05rem; }
.hb-ico { border-radius: 50%; width: 42px; height: 42px; font-weight: 600; font-size: .82rem; letter-spacing: .04em; }
.home-btn.quote { min-height: 84px; background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.home-btn.quote:hover { background: #2a2a2a; }
.home-btn.quote .hb-text small { color: rgba(255, 255, 255, .66); }
.home-btn.quote .hb-ico { background: rgba(255, 255, 255, .1); }
.home-btn.quote::before, .home-btn.quote::after { display: none; }
.home-btn.wa { border-color: var(--line-2); background: var(--panel); }
/* WhatsApp and Instagram carry their own colours, only in the icon and a hairline on hover */
.home-btn.wa .hb-ico { background: #25d366; color: #fff; }
.home-btn.wa:hover { border-color: #25d366; }
.home-btn.ig { border-color: var(--line-2); background: var(--panel); }
.home-btn.ig .hb-ico {
  width: 42px; height: 42px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='4.5' y='4.5' width='15' height='15' rx='4.5'/%3E%3Ccircle cx='12' cy='12' r='3.4'/%3E%3Ccircle cx='16.6' cy='7.4' r='.7' fill='white' stroke='none'/%3E%3C/svg%3E") center / 58% no-repeat,
    radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 95%);
}
.home-btn.ig:hover { border-color: #d6249f; }
.home-fresh button { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1px; }

.scroll-cue { color: var(--muted); font-size: .66rem; }
.scroll-cue i { width: 1px; height: 28px; background: var(--dim); clip-path: none; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section h2::after { display: none; }
.section-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.link-out { color: var(--ink); font-weight: 500; font-size: .92rem; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.link-out:hover { text-decoration-color: var(--ink); }
.sub { color: var(--muted); }

/* gallery: edge-to-edge tiles with hairline gaps */
.gallery { gap: 4px; }
.g-item { border: 0; border-radius: 0; background: var(--bg-2); }
.g-item:hover img { transform: scale(1.03); }
.g-item.g-spin { background: #e9e8e4; }
.g-title, .spin-cap { font-weight: 500; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.spin-tag { background: #fff; color: var(--ink); font-size: .6rem; }

/* paint-it-yourself band: the one dark moment on the page */
.band { margin-top: clamp(80px, 11vw, 140px); }
.band-paint {
  background-image: linear-gradient(90deg, rgba(10, 10, 10, .86) 0%, rgba(10, 10, 10, .6) 60%, rgba(10, 10, 10, .35) 100%), url("../img/studio-paint.webp");
  color: #fff;
}
.band-paint .sub { color: rgba(255, 255, 255, .78); }
.band-paint .btn-primary { background: #fff; color: var(--ink); }
.band-paint .btn-primary:hover { background: #e9e7e2; }

.review-shots:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: var(--radius); }
.review-shots img { border-radius: var(--radius); border-color: var(--line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35); }
.dots i.on { background: var(--ink); }

.footer { border-color: var(--line); }
.footer p { color: var(--muted); }

/* floating buttons */
.float-quote, .fab { background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55); }
.toast { background: var(--ink); color: #fff; border-radius: var(--radius); font-weight: 500; }

/* lightbox stays dark so photos glow */
.lightbox { background: rgba(10, 10, 10, .96); color: #f4f2ee; }
.lightbox figcaption span { color: rgba(255, 255, 255, .7); }
.lightbox figcaption a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.lightbox img { border-radius: 0; }
.lb-nav, .lb-close { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .1); }
.mp::backdrop, .mail-pick::backdrop { background: rgba(18, 18, 18, .45); }

/* ── Quote builder ──────────────────────────────────────────────────────── */
.top { background: var(--bg); }
.q-note { border-radius: var(--radius); background: var(--accent-soft); border-color: rgba(44, 86, 210, .3); color: var(--ink); }
.q-main { border-radius: var(--radius); border-color: var(--line); background: var(--panel); box-shadow: 0 30px 80px -60px rgba(0, 0, 0, .35); }
.q-progress-wrap { border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(180deg, var(--panel) 85%, rgba(255, 255, 255, 0)); }
.q-progress-wrap.stuck { background: rgba(255, 255, 255, .95); box-shadow: 0 12px 24px -18px rgba(0, 0, 0, .3); }
.q-progress::before, .q-progress::after { height: 2px; border-radius: 0; }
.q-progress::after { background: var(--ink); }
.q-progress .nozzle { width: 8px; height: 8px; margin-left: -4px; bottom: -3px; border-radius: 50%; clip-path: none; background: var(--accent); }
.q-progress button b { font-family: var(--body); font-weight: 500; letter-spacing: .1em; }
.q-progress button.done b { color: var(--ink); }
.q-progress button.now b { color: var(--accent); }
.q-back-hint span { color: var(--accent); }

.tile-body { border-radius: var(--radius); border-color: var(--line); background: var(--panel); box-shadow: none; }
.tile-img { background: var(--bg-2); }
.tile-img .q-mark { color: var(--line-2); }
.tile:hover .tile-body { border-color: var(--ink); transform: none; }
.tile input:checked + .tile-body { border-color: var(--ink); background: var(--panel); box-shadow: 0 0 0 1px var(--ink); }
.tile input:checked + .tile-body .tile-label { color: var(--ink); }
.tile-label { font-weight: 500; }

.c-body { border-radius: var(--radius); border-color: var(--line); background: var(--panel); }
.c-body b { font-weight: 600; }
.c-body .tier { font-family: var(--body); color: var(--accent); }
.c-body .tier i { color: var(--line-2); }
.choice:hover .c-body { border-color: var(--ink); }
.choice input:checked + .c-body { border-color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--ink); }
.c-body .default-tag { color: var(--accent); }

.go-arrow { background: var(--ink); color: #fff; box-shadow: none; }

.drop { border-radius: var(--radius); border: 1px dashed var(--line-2); background: var(--bg); }
.drop:hover, .drop.over { border-color: var(--ink); background-color: var(--bg-2); }
.drop-icon { background: var(--panel); border-color: var(--line-2); }
.mb-drop { border-radius: var(--radius); border-width: 1px; }
.mb-drop:hover, .mb-drop.over { border-color: var(--ink); background: var(--bg-2); }

/* 3D previews sit in a dark display case so the pale model reads */
.viewer { border-radius: var(--radius); border-color: var(--line); background: radial-gradient(circle at 50% 35%, #3a3a3c, #161617 75%); }
.viewer-msg { color: #b5b2ab; font-family: var(--body); }
.lt-viewer { background: radial-gradient(circle at 50% 42%, #4a4a4d, #222224 70%, #161617); }
.mp-3d { background: radial-gradient(circle at 50% 35%, #3a3a3c, #161617 75%); }
.readout { border-radius: var(--radius); border-color: var(--line); background: var(--bg); font-family: var(--body); }
.readout .warn { color: var(--accent); }

.input, .field input[type="text"], .field input[type="url"], .field textarea, .date, .stepper input {
  border-radius: var(--radius); border-color: var(--line-2); background: var(--panel); color: var(--ink);
}
.input:focus, .field input:focus, .field textarea:focus, .date:focus, .stepper input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 18, .08); }
.date { color-scheme: light; }
.field > span:first-child { font-weight: 500; }
.hint a, .link-badge, .picked-info a, .ib-contact a, .ib-links a, .ai-try summary { color: var(--accent); }
.link-badge.bad { color: #a6402f; }

input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { margin-top: -10px; background: var(--panel); border: 1px solid var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
input[type="range"]::-moz-range-thumb { background: var(--panel); border: 1px solid var(--ink); }

.sub-opts, .paint-desc { border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.slider output { color: var(--accent); font-family: var(--body); }

.seg span { border-radius: 999px; background: var(--panel); border-color: var(--line-2); font-weight: 400; }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.seg input:checked + span small { color: rgba(255, 255, 255, .7); }

.stepper { background: var(--panel); border-color: var(--line-2); }
.stepper button:hover { background: var(--bg-2); }
.stepper input { font-family: var(--body); }
.ladder { font-family: var(--body); }
.ladder b { color: var(--accent); }

.preview { border-radius: var(--radius); background: var(--bg); border-color: var(--line); color: #3d3b37; font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace; }
.attach { border-radius: var(--radius); background: var(--bg); border-color: var(--line-2); color: var(--ink); }

.check { border-radius: var(--radius); background: var(--panel); border-color: var(--line); }
.check:hover { border-color: var(--ink); }
.check input { border-width: 1px; border-color: var(--ink); border-radius: 3px; }
.check input::after { color: #fff; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check:has(input:checked) { border-color: var(--ink); background: var(--panel); }

.lt-num input { background: var(--panel); color: var(--ink); font-family: var(--body); }
.lt-num input:focus { border-color: var(--ink); }
.lt-controls, #pick-browser { border-radius: var(--radius); border-color: var(--line); background: var(--panel); }
.lt-font { border-radius: var(--radius); background: var(--panel); border-color: var(--line); }
.lt-font:hover { border-color: var(--ink); }
.lt-font[aria-checked="true"] { border-color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--ink); }
.lt-font-upload { color: var(--accent); }
.lt-font-mine { border-color: var(--accent); }
.lt-font-msg { color: var(--accent); }
.swatch { border-color: rgba(0, 0, 0, .14); }
.swatch[aria-checked="true"] { outline-color: var(--ink); }
.lt-send { border-radius: var(--radius); border-color: var(--line); background: var(--panel); }
.lt-status.err, .send-error, .ib-delete { color: #a6402f; }
.lt-tile-art { color: var(--ink); background: var(--bg-2); }

.mb-card { border-radius: var(--radius); border-color: var(--line); background: var(--panel); }
.mb-card:hover { border-color: var(--ink); transform: none; }
.mb-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mb-card[aria-pressed="true"] .mb-name::before { color: var(--accent); }
.mb-card.skeleton { border-color: var(--line); background: linear-gradient(90deg, var(--bg) 30%, var(--bg-2) 50%, var(--bg) 70%) 0 0 / 200% 100%; }
.mb-paste.nudge { background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.mb-alt { border-top: 1px solid var(--line); }

.mp { border-radius: var(--radius); border-color: var(--line); background: var(--panel); }
.mp-desc { color: #3d3b37; }
.mp-meta { font-family: var(--body); }
.mp-files, .mp-thumbs { background: var(--bg); }
.mp-bar { background: var(--bg); border-color: var(--line); }
.mp-close { background: rgba(18, 18, 18, .7); }
.mp-status { border-radius: var(--radius); background: rgba(18, 18, 18, .88); }

.picked { border-radius: var(--radius); border-color: var(--ink); background: var(--panel); }
.picked-ph { background: var(--ink); color: #fff; }
.pick-steps b { color: var(--muted); font-family: var(--body); }
.pick-steps li.on b { background: var(--ink); border-color: var(--ink); color: #fff; }

.photo-thumb { border-radius: var(--radius); }
.photo-thumb button { background: rgba(18, 18, 18, .8); }

/* send card */
.send-card { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--panel); box-shadow: none; }
.send-btn { border-radius: var(--radius); background: var(--panel); border-color: var(--line-2); font-weight: 500; }
.send-btn:hover { border-color: var(--ink); transform: none; }
.send-btn .ico { border-radius: 50%; background: transparent !important; border: 1px solid var(--ink); color: var(--ink) !important; font-weight: 600; }
.send-two .send-btn.wa, .send-two .send-btn.mail { border-color: var(--line-2); background: var(--panel); }
.send-two .send-btn.wa:hover, .send-two .send-btn.mail:hover { border-color: var(--ink); }
.send-two .send-btn small { color: var(--muted); }
.send-two .send-btn > span:not(.ico) { font-weight: 600; }
.send-phone .input { font-family: var(--body); }
.sent { border-radius: var(--radius); border-color: var(--line); background: var(--panel); }
.sent-mark { background: var(--ink); color: #fff; font-weight: 400; }
.sent-id { font-family: var(--body); }
.sent-retry { border-color: var(--line); }

/* the job ticket: white card, black price strip */
.ticket-body { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 70px -50px rgba(0, 0, 0, .4); -webkit-mask: none; mask: none; }
.ticket-head { border-bottom: 1px solid var(--line); color: var(--muted); }
.ticket-rows dt { color: var(--dim); }
.ticket-rows dd.empty { color: var(--line-2); }
.ticket-rows dd small { font-family: var(--body); color: var(--muted); }
.ticket-price { background: var(--ink); }
.ticket-price .tk-label { color: rgba(255, 255, 255, .6); }
.tk-price.empty { font: 400 1.05rem/1.3 var(--body); color: rgba(255, 255, 255, .7); }
.tk-unit { font-family: var(--body); color: rgba(255, 255, 255, .6); }
.bar { height: 6px; border-radius: 0; background: var(--bg-2); }
.legend { color: var(--muted); }
.legend i { border-radius: 50%; }
.legend b { font-family: var(--body); color: var(--muted); }
.k-material { background: var(--ink); }
.k-machine { background: #7c7870; }
.k-paint { background: #c8c3b9; }
.k-design { background: var(--accent); }
.disclaimer { color: var(--muted); }
.disclaimer b { color: var(--ink); }
@media (max-width: 960px) {
  .ticket-peek { background: var(--ink); color: #fff; border-radius: 0; border-top: 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); }
  .tp-label { color: rgba(255, 255, 255, .6); }
  .tp-price { color: #fff; }
  .tp-toggle { background: rgba(255, 255, 255, .12); color: #fff; }
  .ticket-body { border: 0; border-radius: 0; }
}
@keyframes price-tick { 0% { transform: translateY(8px); opacity: .1; } 100% { transform: none; opacity: 1; } }

/* ── Status page & Costa's inbox ────────────────────────────────────────── */
.status-card, .ib-item, .ib-card { border-radius: var(--radius); border-color: var(--line); background: var(--panel); }
.status-steps li::before { background: var(--panel); }
.status-steps li.done::before, .status-steps li.done::after { background: var(--ink); border-color: var(--ink); }
.status-steps li.now::before { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status-steps small, .ib-item-meta { font-family: var(--body); }
.ib-item:hover { border-color: var(--ink); }
.ib-item.s-new { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ib-status { background: var(--bg-2); color: var(--muted); font-size: .64rem; }
.ib-status.s-new { background: var(--accent); color: #fff; }
.ib-status.s-quoted, .ib-status.s-accepted { background: var(--ink); color: #fff; }
.ib-status.s-printing, .ib-status.s-painting, .ib-status.s-ready { background: var(--accent-soft); color: var(--accent); }
.ib-item-facts { color: var(--accent); }
.ib-label { background: transparent; }
.mail-pick { border-radius: var(--radius); background: var(--panel); border-color: var(--line); }

/* ── Motion: soft rise-and-fade instead of the layer-by-layer print ─────── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .print-logo img { animation: rise 1s var(--ease) .1s both; }
  .hero-title { animation: rise 1s var(--ease) .3s both; }
  .hero .ht-print { animation: none; }
  .hero-stars { animation: rise .9s var(--ease) .5s both; }
  .home-btn { animation: rise .8s var(--ease) both; animation-delay: calc(.65s + var(--i, 0) * .1s); }
  .scroll-cue { animation: fade .8s ease 1.1s both; } /* opacity only: its transform keeps it centred */
  .scroll-cue i { animation: line 2s ease-in-out infinite; transform-origin: top; }
  html.js .g-item.pi { clip-path: none; opacity: 0; }
  html.js .g-item.pi.in { animation: rise .8s var(--ease) var(--d, 0s) both; }
  body[data-view="quote"] .q-main { animation: rise .6s var(--ease) both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.js .g-item.pi { clip-path: none; opacity: 1; }
}
html.seen-home .g-item.pi { opacity: 1; }

/* ── Tab menu: Printers · Services · Gallery · Quotes (shown on phones too, as a second row) ── */
.nav nav.tabs a { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding: 10px 0; }
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; row-gap: 0; padding-bottom: 4px; }
  .nav nav.tabs { display: flex; flex-wrap: wrap; order: 3; flex-basis: 100%; justify-content: center; gap: 0 clamp(18px, 6vw, 34px); margin: 0; } /* (wraps rather than running off the side) */
  .nav-ig { margin-left: auto; }
  html { scroll-padding-top: 116px; }
  /* over the hero the logo row is empty, so tuck the tabs up into it */
  body[data-view="home"] .nav:not(.scrolled) { padding-top: 6px; }
  body[data-view="home"] .nav:not(.scrolled) .logo, body[data-view="home"] .nav:not(.scrolled) .nav-ig { height: 0; overflow: hidden; }
}

/* ── My printers: three cards (photo, name, one line, a few facts) ── */
.printers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .printers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; } }
@media (max-width: 640px) { .printers { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.printer { display: grid; align-content: start; gap: 10px; }
.printer-img { aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.printer-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.printer .eyebrow { margin: 0; color: var(--accent); }
.printer h3 { margin: 0; font: 400 1.75rem/1.1 var(--display); letter-spacing: -.01em; }
.printer > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.printer-facts { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.printer-facts dt { color: var(--dim); font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.printer-facts dd { margin: 0; font-weight: 500; }
/* ── Printers screen: its own page like the quote, with the way home ── */
/* (Noteworthy is a page of its own the same way) */
body:not([data-view="printers"]) .printers-only,
body:not([data-view="noteworthy"]) .noteworthy-only,
body:not([data-view="figures"]) .figures-only,
body:is([data-view="printers"], [data-view="noteworthy"], [data-view="figures"]) :is(.home-only, .quote-only) { display: none !important; } /* (the menu stays: css/wayfinding.css) */
body[data-view="printers"] #printers, body[data-view="noteworthy"] #noteworthy, body[data-view="figures"] #figures { padding-top: 22px; }
:is(#printers, #noteworthy, #figures) .q-bar { margin-bottom: clamp(24px, 4vw, 40px); }
:is(#printers, #noteworthy, #figures) .q-bar-title { margin: 0; }
.printers-next { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(40px, 6vw, 64px) 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  body[data-view="printers"] .printers { animation: rise .6s var(--ease) both; }
}
html.seen-printers body[data-view="printers"] .printers { animation: none; }

/* ── My services: three cards (photo, number, name, a few lines, one link) ── */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; } }
@media (max-width: 640px) { .services { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.service { display: grid; align-content: start; gap: 10px; }
.service-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); margin-bottom: 8px; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service .eyebrow { margin: 0; color: var(--accent); }
.service h3 { margin: 0; font: 400 1.9rem/1.1 var(--display); letter-spacing: -.01em; }
.service > p:not(.eyebrow) { margin: 0; color: var(--muted); }
/* the buttons under each service open the estimate form with the matching answers picked */
.service-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 6px; }
.service-actions .btn { text-align: left; justify-content: flex-start; padding-block: .45em; line-height: 1.25; }

/* six tabs on a phone (or a zoomed-in window): two tidy rows of three */
@media (max-width: 700px) {
  .nav nav.tabs { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0 clamp(18px, 7vw, 36px); }
  .nav nav.tabs a { font-size: .7rem; letter-spacing: .12em; padding: 7px 0; text-align: center; }
  html { scroll-padding-top: 136px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v2.1 finish pass: a fuller hero, steady motion, no blank squares.
   Motion rule: things arrive by rising and fading (never bouncing), interactions answer in under 0.2s,
   and everything has a still fallback under prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --quick: .18s; --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* ── Quick, consistent interactions ── */
.btn { transition: background var(--quick), color var(--quick), border-color var(--quick), transform var(--quick) var(--ease-out); }
.chip, .seg span, .c-body, .tile-body, .send-btn, .check, .drop, .mb-card { transition-duration: var(--quick); }
.btn:active, .chip:active, .seg label:active span, .send-btn:active { transform: scale(.97); }
.link-out { transition: text-decoration-color var(--quick), color var(--quick); }
.home-btn { transition: border-color var(--quick), background var(--quick), box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.hb-go { transition: transform .35s var(--ease-out); }
@media (hover: hover) {
  .home-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .45); }
  .home-btn.quote:hover { box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .75); }
  .home-btn:hover .hb-go { transform: translateX(4px); }
  .home-btn.wa:hover .hb-go, .home-btn.ig:hover .hb-go { transform: translate(3px, -3px); }
}
.home-btn:active { transform: scale(.99); }

/* ── Menu: a hairline that draws under the tab you hover, and under the section you're in ── */
.nav nav.tabs a { position: relative; text-decoration: none; }
.nav nav.tabs a::after {
  content: ''; position: absolute; left: 0; right: .16em; bottom: 4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav nav.tabs a:hover::after, .nav nav.tabs a.on::after { transform: none; }

/* ── Hero ── */
.hero-title { font-size: clamp(2.3rem, 9.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .16em; margin: 0 -.08em -.16em; }
.hero-title .w > span { display: inline-block; }
.hero-stars { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 10px; margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.hero-stars .stars { font-size: .78rem; letter-spacing: .14em; }
/* phones: the hero is only as tall as what's in it, so the gallery follows straight on */
.hero { min-height: 0; padding: 92px var(--gutter) 8px; }
.scroll-cue { display: none; }
.showcase { display: none; }
@media (min-width: 960px) {
  .hero {
    min-height: min(100svh, 940px); display: grid; align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); column-gap: clamp(48px, 7vw, 120px);
    padding: 112px max(var(--gutter), calc((100% - 1200px) / 2)) 88px;
  }
  .hero-inner { justify-items: start; text-align: left; max-width: 540px; margin: 0; gap: 20px; }
  .print-logo { width: 190px; margin-bottom: 14px; }
  .hero-title { font-size: clamp(3.5rem, 5.2vw, 5rem); text-wrap: pretty; }
  .hero-stars { justify-content: flex-start; }
  .home-actions { margin-top: 14px; }
  .scroll-cue { display: grid; }
  .showcase:not([hidden]) { display: grid; }
}

/* the showcase: finished pieces fading one into the next, each easing out of a slow zoom */
.showcase { gap: 14px; width: 100%; max-width: 540px; justify-self: end; }
.sc-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 260px); min-height: 380px;
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); cursor: zoom-in;
}
/* each piece is a layer that fades in over the last; its photo or video moves inside it (main.js) */
.sc-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; }
.sc-slide.on { opacity: 1; }
.sc-slide > img, .sc-slide > video { position: absolute; left: 0; top: 0; display: block; max-width: none; width: 100%; height: 100%; object-fit: cover; }
.sc-slide > video { aspect-ratio: 9 / 16; }
.sc-slide[data-mode="pan-y"] > * { height: auto; }   /* full width, taller than the frame: it pans up or down */
.sc-slide[data-mode="pan-x"] > * { width: auto; }    /* full height, wider than the frame: it pans across */
.sc-spin[data-mode="pan-y"] > video { width: 125%; left: -12.5%; } /* turntables: a little closer, centred */
.sc-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sc-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; font-size: .92rem; }
.sc-title { font-weight: 500; }
.sc-count { color: var(--muted); font-size: .7rem; font-weight: 500; letter-spacing: .16em; }
.sc-line { display: block; height: 1px; margin-top: -4px; background: var(--line); overflow: hidden; }
.sc-line i { display: block; height: 100%; background: var(--ink); transform-origin: left; animation: sc-line 5.2s linear both; }
@keyframes sc-line { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sc-slide { transition: none; }
  .sc-line { display: none; }
}

/* intro: the headline's words rise into place one after another, then the rest follows */
@keyframes word-up { from { transform: translateY(110%); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: none; }
  .hero-title .w > span { animation: word-up .95s var(--ease-out) both; animation-delay: calc(.2s + var(--w, 0) * .07s); }
  .hero-stars { animation: rise .9s var(--ease-out) .65s both; }
  .home-btn { animation: rise .9s var(--ease-out) both; animation-delay: calc(.75s + var(--i, 0) * .08s); }
  .showcase { animation: rise 1.1s var(--ease-out) .45s both; }
}
html.seen-home .hero-title .w > span, html.seen-home .showcase { animation: none !important; }

/* ── Section headings: the title rises, then its hairline draws across ── */
.section-head { position: relative; border-bottom: 0; }
.section-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
@media (prefers-reduced-motion: no-preference) {
  html.js .section-head::after { transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-out) .15s; }
  html.js .section-head h2 { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  html.js .section-head .link-out { opacity: 0; transition: opacity .9s ease .3s, text-decoration-color var(--quick); }
  html.js .section-head.in::after, html.js .section-head.in h2 { transform: none; opacity: 1; }
  html.js .section-head.in .link-out { opacity: 1; }
}

/* ── Gallery ── */
/* laid out square by square in main.js: every row exactly one square tall, no gaps */
/* fixed column counts (3 · 4 · 6) divide evenly by the 2-square pieces, so the grid packs tight */
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.gallery.packed .g-item { aspect-ratio: auto; height: 100%; }
.g-item { isolation: isolate; }
.g-item img { transition: opacity .5s ease, transform .7s var(--ease-out); }
/* photos fade in as they arrive, over a soft placeholder */
html.js img.fi { opacity: 0; transition: opacity .5s ease, transform .7s var(--ease-out); }
html.js img.fi.ok { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.js img.fi { transition: none; } }
/* phones: the filter row scrolls sideways and fades out at the edge rather than chopping a chip in half */
@media (max-width: 520px) {
  .filters { padding-right: 44px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
}
/* filtering: the photos glide to their new places (view transitions, main.js) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; animation-timing-function: ease; }
html.vt-gallery::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
html.vt-gallery::view-transition-group(root) { animation-duration: .24s; }

/* ── Services: cards arrive one after another; Design and build shows photo → model ── */
.service:nth-child(2), .printer:nth-child(2) { transition-delay: .08s; }
.service:nth-child(3), .printer:nth-child(3) { transition-delay: .16s; }
.printer:nth-child(4) { transition-delay: .24s; }
.service-img.split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: transparent; }
.service-img.split figure { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); }
.service-img.split img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.service-img.split figcaption {
  position: absolute; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  left: 6px; bottom: 6px;
}
@media (max-width: 1280px) { .service-img.split figcaption { letter-spacing: .04em; padding: 4px 7px; } }
.service-img.split::after {
  content: '→'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel); color: var(--ink); font-size: 1rem; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4);
}

/* ── Paint-it-yourself band: a little more room to breathe ── */
.band-paint .band-inner { padding-block: clamp(80px, 11vw, 150px); }
.band-paint h2 { max-width: 12em; }

/* ── Quote: the "What" tiles sit in tidy rows (3 across, or 2 on phones with the odd one out spanning) ── */
@media (min-width: 521px) { #cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  #cat-tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #cat-tiles > .tile:last-child:nth-child(odd) .tile-body { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (min-width: 961px) { body[data-view="quote"] .ticket { top: 22px; } }

/* ── Cards side by side line up row by row (photo, label, title, text, facts/link), however long each text is ── */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 641px) {
    .printers { row-gap: 10px; }
    .printer { grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; padding-bottom: 30px; }
  }
  @media (min-width: 861px) { /* one row of four */
    .services { row-gap: 10px; }
    .service { grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; }
  }
}

/* the smallest phones (320–350px): the five tabs still fit on one row */
@media (max-width: 350px) {
  .nav nav.tabs { gap: 8px; }
  .nav nav.tabs a { font-size: .64rem; letter-spacing: .06em; }
}

/* ── Noteworthy: topics that open with a tap ── */
.notes { border-top: 1px solid var(--line); }
.note { border-bottom: 1px solid var(--line); }
.note summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note summary span { font: 400 clamp(1.5rem, 3vw, 1.9rem)/1.15 var(--display); letter-spacing: -.01em; }
.note summary i { position: relative; flex: none; width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; transition: background .2s, color .2s; }
.note summary i::before, .note summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; margin: -.5px 0 0 -5px; background: currentColor; }
.note summary i::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.note[open] summary i::after { transform: rotate(0deg); } /* plus becomes minus */
.note summary:hover i { background: var(--ink); color: #fff; }
.note summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.note-body { max-width: 46em; padding: 0 0 26px; color: var(--muted); }
.note-body p { margin: 0 0 12px; }
.note-body h4 { margin: 22px 0 10px; font: 400 1.3rem/1.2 var(--display); color: var(--ink); }
.note-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.note-body li b { display: block; color: var(--ink); font-weight: 600; }
.note-body .note-tip { margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--panel); }
.note-body a { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .note[open] .note-body { animation: rise .4s var(--ease) both; } }
@media (prefers-reduced-motion: reduce) { .note summary i::after { transition: none; } }

/* ── Estimates screen: intro, a short form, ballpark prices, then the lettering designer ── */
.est { max-width: 980px; }
.est .q-bar-title { margin: 0; font-size: 1.9rem; line-height: 1; text-shadow: none; text-transform: none; }
.est-intro { max-width: 46em; margin: 8px 0 clamp(28px, 4vw, 40px); color: var(--muted); }
.est-intro p { margin: 0 0 12px; }
.est-intro b { color: var(--ink); font-weight: 600; }
.est-form { display: grid; gap: 0; border-top: 1px solid var(--line); padding-bottom: 40vh; } /* room for the last questions to scroll up to the middle of the screen */
.est-q { border: 0; margin: 0; padding: 0 0 26px; min-width: 0; border-bottom: 1px solid var(--line); }
.est-q legend { display: flex; align-items: baseline; gap: 12px; padding: 26px 0 0; margin-bottom: 16px; /* a legend sits on the top edge, so its own padding sets the gap */ font: 400 clamp(1.5rem, 3vw, 1.8rem)/1.15 var(--display); color: var(--ink); }
.est-q legend small { font: 400 .9rem var(--body); color: var(--muted); }
.est-n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); font: 500 .8rem/1 var(--body); transform: translateY(-3px); }
.est-sub { margin: 16px 0 0; max-width: 560px; }
.est-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.est-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.est-opt:hover { border-color: var(--ink); }
.est-opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.est-opt span { display: grid; gap: 3px; }
.est-opt b { font-weight: 600; color: var(--ink); }
.est-opt small { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.est-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.est-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121212' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center / 12px no-repeat;
}
.est-q textarea.input { min-height: 110px; }
.est-drop { margin-top: 14px; padding: 22px 18px; }
.est-drop > span:not(.drop-icon) { color: var(--muted); }
.est-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.est-files:empty { display: none; }
.est-file { cursor: default; max-width: 100%; }
.est-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.est-file button { border: 0; background: none; padding: 0 0 0 4px; cursor: pointer; color: var(--muted); font-size: .8rem; }
.est-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 760px) { .est-grid { grid-template-columns: minmax(0, 1fr); } }
.est-contact .send-error { margin: 0 0 12px; }
.est-contact .send-progress { margin: 0 0 12px; }
.est-submit { width: 100%; margin-top: 4px; }
.est-contact .hint { text-align: center; }
.est-sent { margin-top: 0; }
.est-letter { scroll-margin-top: 12px; } /* the designer, as a step of the form */
.est-letter .lt-grid { margin-top: 4px; }
@media (min-width: 901px) { .est-letter .lt-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } } /* room for the font names */

/* Services comes first after the hero now, so it takes the tighter top spacing the gallery had */
#services { padding-top: clamp(48px, 8vw, 100px); }
#work { padding-top: clamp(72px, 10vw, 130px); }

/* Estimates form: questions open one at a time; the follow-ups to question 1 are cards too */
.est-sub-q { margin: 0 0 10px; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { .est-q:not(:first-child), .est-sub { animation: rise .45s var(--ease) both; } }
/* "Pick a model": the Printables search inside the Estimates form */
.est-model-hint { margin: -6px 0 14px; }
.est-model .picked { margin-bottom: 14px; }
.est-model .mb-root { padding: clamp(12px, 2.5vw, 20px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* The ballpark at the bottom of the Estimates form (like the old job ticket's price strip) */
.est-ballpark { margin: 26px 0 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.est-ballpark .tk-label { margin: 0 0 6px; }
.est-bp-price { margin: 0; font: 400 clamp(2.2rem, 6vw, 2.8rem)/1 var(--display); letter-spacing: -.01em; }
.est-bp-note { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.est-bp-like { margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.est-ballpark .breakdown { margin-top: 14px; }
.est-bp-details summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.est-bp-details summary::-webkit-details-marker { display: none; }
.est-bp-details summary::after { content: '+'; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--ink); border-radius: 50%; font-size: .8rem; line-height: 1; text-decoration: none; }
.est-bp-details[open] summary::after { content: '−'; }
.est-bp-details summary:hover { text-decoration-color: var(--ink); }
.est-bp-details[open] .bar { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { .est-bp-details[open] > :not(summary) { animation: rise .35s var(--ease) both; } }
.est-ballpark .legend { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.est-ballpark .disclaimer { margin: 14px 0 0; }

/* Estimates progress tracker: pinned at the top while they work through the form */
.est-progress { position: sticky; top: 0; z-index: 30; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 12px; background: rgba(247, 246, 242, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.est-progress[hidden] { display: none; }
.est-progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.est-progress-text { margin: 0; font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.est-progress-bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.est-progress-bar li { flex: 1; }
.est-progress-bar button { display: block; width: 100%; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.est-progress-bar button::after { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
.est-progress-bar li.done button::after { background: var(--ink); }
.est-progress-bar li.now button::after { background: var(--accent); }
.est-progress-bar button:disabled { cursor: default; }
.est-progress-bar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .est-progress-bar button::after { transition: none; } }
.est-q { scroll-margin-top: 76px; } /* clear the pinned tracker when jumping to a step */
.est-progress-price { flex: none; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); white-space: nowrap; }
.est-progress-price[hidden] { display: none; }
.est-progress-price span { font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.est-progress-price b { font: 400 1.35rem/1 var(--display); letter-spacing: -.01em; }
@media (max-width: 380px) { .est-progress-price span { display: none; } }

/* ── Top of the home page: WhatsApp and Instagram first, big and in their own colours ── */
.home-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-btn.social { min-height: 96px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 16px 18px; border: 0; color: #fff; }
.home-btn.social .hb-text b { font-size: 1.15rem; color: #fff; }
.home-btn.social .hb-text small { color: rgba(255, 255, 255, .88); }
.home-btn.social.wa { background: #15803d; }
.home-btn.social.wa:hover { background: #116a33; }
.home-btn.social.wa .hb-text small { color: #fff; }
.home-btn.social.wa .hb-ico { background: rgba(255, 255, 255, .18); color: #fff; }
.home-btn.social.ig { background: linear-gradient(135deg, #f9a03f 0%, #e1306c 45%, #833ab4 100%); }
.home-btn.social.ig:hover { filter: brightness(.95); }
.home-btn.social.ig .hb-ico { background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.7'%3E%3Crect x='4.5' y='4.5' width='15' height='15' rx='4.5'/%3E%3Ccircle cx='12' cy='12' r='3.4'/%3E%3Ccircle cx='16.6' cy='7.4' r='.7' fill='white' stroke='none'/%3E%3C/svg%3E") center / 58% no-repeat; border: 0; }
.home-btn.social:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.home-btn.quote { min-height: 72px; }
@media (max-width: 360px) { .home-btn.social { padding: 14px; } .home-btn.social .hb-text small { font-size: .78rem; } }

/* ── What I make: one card per kind of job, with a ballpark and its breakdown ── */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .products { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.product { display: flex; flex-direction: column; gap: 8px; }
.product-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); margin-bottom: 8px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product h3 { margin: 0; font: 400 1.8rem/1.1 var(--display); letter-spacing: -.01em; }
.product-blurb { margin: 0; color: var(--muted); }
.product-ex { display: grid; gap: 4px; margin: 6px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.product-ex-title { margin: 0 0 2px; color: var(--accent); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.product-ex-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.product-ex-row span { color: var(--muted); }
.product-ex-row b { font: 400 1.75rem/1.1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
/* two lines tall, so the card doesn't jump as the pictures change */
.product-ex-parts { margin: 4px 0 0; min-height: 2.7em; color: var(--dim); font-size: .82rem; line-height: 1.35; }
#make .sub { margin-top: 10px; }

/* ── What I make: whole cards open the request form; their pictures take turns ── */
.product { cursor: pointer; }
.product-img { position: relative; }
.product-img img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease, transform .7s ease; }
.product-img img.on { opacity: 1; }
.product:hover .product-img img.on { transform: scale(1.03); }
.pi-cap { position: absolute; left: 8px; top: 8px; display: flex; }
/* "Render": a small see-through grey label, no white pill (on request) */
.render-tag { flex: none; padding: 3px 7px; border-radius: 999px; background: rgba(60, 60, 60, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: rgba(255, 255, 255, .92); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pi-dots { position: absolute; right: 6px; bottom: 6px; display: flex; padding: 0 2px; border-radius: 999px; background: rgba(18, 18, 18, .55); }
.pi-dots button { position: relative; display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
/* a taller invisible tap area than the dot strip itself, so a thumb doesn't miss */
.pi-dots button::before { content: ''; position: absolute; inset: -8px 0; }
.pi-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background .2s, transform .2s; }
.pi-dots [aria-current] i { background: #fff; transform: scale(1.25); }
.pi-dots button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 6px; }
.product-go { margin-top: auto; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .product-img img { transition: none; } .product:hover .product-img img.on { transform: none; } }

/* ── For businesses ── */
.biz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
@media (max-width: 1000px) { .biz { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }
.biz-card { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.biz-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); margin-bottom: 8px; }
.biz-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.biz-card:hover .biz-img img { transform: scale(1.04); }
.biz-img .render-tag { position: absolute; left: 8px; top: 8px; }
.biz-title { font: 400 1.35rem/1.1 var(--display); }
.biz-blurb { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.biz-price { margin-top: 2px; color: var(--muted); font-size: .9rem; }
.biz-price b { color: var(--ink); font-weight: 600; }
.biz-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.biz-foot .hint { margin: 0; max-width: 62ch; }
@media (max-width: 640px) { .biz-title { font-size: 1.2rem; } .biz-foot .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .biz-img img { transition: none; } .biz-card:hover .biz-img img { transform: none; } }

/* ── Estimates: which product they're asking about ── */
.est-for { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.est-for img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.est-for p { flex: 1; min-width: 0; display: grid; gap: 2px; margin: 0; }
.est-for small { color: var(--muted); font-size: .8rem; }
.est-for b { font: 400 1.35rem/1.15 var(--display); }
/* the ballpark's parts, in dollars: one per line */
.est-bp-details .legend { grid-template-columns: minmax(0, 1fr); }
.k-0 { background: var(--ink); }
.k-1 { background: var(--accent); }
.k-2 { background: #7c7870; }
.k-3 { background: #c8c3b9; }

/* ── Estimates: the arrow to the question that just opened below ── */
.est-next { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 .95rem/1 var(--body); white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); cursor: pointer; }
.est-next i { display: inline-block; font-style: normal; font-size: 1.1rem; }
.est-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .est-next-dock:not([hidden]) { animation: est-next-in .3s ease both; }
  .est-next i { animation: est-nudge 1.4s ease-in-out infinite; }
}
@keyframes est-next-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes est-nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(4px); } }

/* ── Estimates: "How many?" (a number, with one-tap numbers under it) ── */
.est-qty { width: min(100%, 220px); font-size: 1.1rem; }
.est-qty-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* links in the Estimates intro (Instagram, WhatsApp) */
.est-link { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }

/* a picture of the thing in a choice card's empty right-hand side (the kit's add-ons, business items) */
.est-opt:has(.est-opt-pic) { align-items: center; }
.est-opt-pic { position: relative; flex: none; width: 104px; height: 78px; margin-left: auto; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.est-opt-pic img { width: 100%; height: 100%; object-fit: cover; }
.est-opt-pic .render-tag { position: absolute; left: 4px; top: 4px; padding: 2px 5px; font-size: .52rem; }
@media (max-width: 400px) { .est-opt-pic { width: 84px; height: 64px; } }

/* ── Buttons pinned to the bottom of the screen sit on a soft fade of the page colour, so they read as their own
   bar instead of blending into whatever is scrolling underneath ── */
.bottom-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 34px 16px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(247, 246, 242, .88) 0%, rgba(247, 246, 242, .6) 55%, rgba(247, 246, 242, 0) 100%); pointer-events: none; }
.bottom-dock > * { pointer-events: auto; }
.est-next-dock { z-index: 40; }
/* the home screen's pill (and Start new beside it once an estimate is under way) */
.float-dock { transform: translateY(110%); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
.float-dock.on { transform: none; opacity: 1; }
.float-dock:not(.on) > * { pointer-events: none; }
.float-dock .float-quote { position: static; transform: none; opacity: 1; padding: 14px 22px; font-size: .98rem; }
.float-dock .float-quote:active { transform: scale(.97); }
.float-dock .float-new { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 26px -14px rgba(0, 0, 0, .4); }
body[data-view="quote"] .float-dock { display: none; }
@media (prefers-reduced-motion: reduce) { .float-dock { transition: none; } }
/* Start over on the general form, above the progress tracker */
.est-reset { display: flex; justify-content: flex-end; margin: 0 0 10px; }

/* ── Computers: the scrollbar is a print nozzle on the right-hand edge that "prints" a line as you scroll
   (js/extrude.js), a dot filling at each section heading; drag it or click the rail to scroll.
   Phones, touch screens and reduced motion keep the normal scrollbar (the media query matches ON in extrude.js). ── */
.extrude { display: none; }
@media (min-width: 1100px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.ex-on { scrollbar-width: none; }
  html.ex-on::-webkit-scrollbar { display: none; }
  html.ex-on .extrude { display: block; position: fixed; z-index: 58; top: 14px; bottom: 14px; right: 0; width: 22px; cursor: pointer; touch-action: none; user-select: none; }
  html.ex-on .extrude.still { display: none; }
}
.ex-track { position: absolute; top: 0; bottom: 0; right: 10px; width: 0; border-left: 1px dashed var(--line-2); opacity: .7; }
.ex-fill { position: absolute; top: 0; bottom: 0; right: 9px; width: 2px; border-radius: 2px; background: var(--accent); transform-origin: top; transform: scaleY(0); will-change: transform; }
.ex-node {
  position: absolute; right: 6px; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); transition: background .4s, border-color .4s, transform .4s var(--ease-out);
}
.ex-node.on { background: var(--accent); border-color: var(--accent); transform: scale(.78); }
/* the nozzle rides the rail; its tip is where you are on the page */
.ex-nozzle { position: absolute; top: 0; right: 2px; width: 16px; height: 24px; will-change: transform; cursor: grab; }
.extrude.dragging, .extrude.dragging .ex-nozzle { cursor: grabbing; }
.ex-nozzle svg { display: block; fill: var(--ink); transition: transform .2s var(--ease-out); }
.extrude:hover .ex-nozzle svg { transform: scale(1.15); }
/* the tip glows while it's "printing" */
.ex-nozzle::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px 2px rgba(44, 86, 210, .55); opacity: 0; transform: scale(.4); transition: opacity .35s, transform .35s;
}
.extrude.moving .ex-nozzle::after, .extrude.dragging .ex-nozzle::after { opacity: .9; transform: scale(1); }
.ex-layer {
  position: absolute; right: 24px; top: 6px; white-space: nowrap; display: none;
  font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
@media (min-width: 1440px) { .ex-layer { display: block; } }

/* ── Flow & clarity pass ──────────────────────────────────────────────────── */
/* Estimates: the intro sits in its own soft panel, apart from the questions */
.est-intro { padding: 16px 20px 4px; border-radius: 10px; background: var(--bg-2); }
/* the pinned tracker lifts off the page once it's stuck over the questions */
.est-progress { box-shadow: 0 10px 24px -20px rgba(18, 18, 18, .45); }
/* each question can become a card; the one they're on is lifted, white, with a blue edge.
   A floated legend is an ordinary block, so the card's background covers the question too */
.est-q { --qp: clamp(12px, 2.6vw, 24px); position: relative; padding-inline: var(--qp); margin-inline: calc(-1 * var(--qp)); border-radius: 12px; transition: background-color .35s, box-shadow .35s, border-color .35s; }
.est-q > legend { float: left; width: 100%; }
.est-q > legend ~ * { clear: both; }
.est-q.is-now {
  border-bottom-color: transparent;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, rgba(255, 255, 255, .7) 100%);
  box-shadow: inset 3px 0 0 var(--accent), 0 1px 2px rgba(18, 18, 18, .05), 0 22px 44px -28px rgba(18, 18, 18, .35);
}
.est-q.is-now .est-opt { background: var(--bg); }
.est-q.is-now .est-opt:has(input:checked) { background: #fff; }
.est-n { transition: background-color .3s, border-color .3s, color .3s; }
.est-q.is-now .est-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.est-q.is-done .est-n { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) { .est-q, .est-n { transition: none; } }

/* What I make: prices and buttons line up across each row of cards */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 641px) {
    .products { row-gap: 0; }
    .product { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 8px; align-content: start; padding-bottom: 44px; }
    .product-ex { align-self: start; }
    .product-go { margin-top: 0; align-self: end; }
  }
}
/* phones: less dead space above the button, and a hairline between one card and the next */
@media (max-width: 640px) {
  .product-ex { margin-bottom: 8px; }
  .product + .product { padding-top: 32px; border-top: 1px solid var(--line); }
  .products { gap: 32px; }
}

/* Sections alternate: Bulk & business and Reviews sit on a soft full-width band */
#business, #reviews { position: relative; padding-bottom: clamp(48px, 7vw, 90px); }
#business::before, #reviews::before {
  content: ''; position: absolute; z-index: -1; top: clamp(36px, 5vw, 70px); bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--bg-2), rgba(239, 237, 231, .55));
}
#business + #work { padding-top: clamp(56px, 8vw, 100px); }
/* the footer follows straight on from the Reviews band, whose edge does the dividing */
.footer.home-only { margin-top: 0; border-top-color: transparent; }
/* a painting kit's figure: two choices first; the Printables search only after "I'll pick one" */
.est-figure:not([hidden]) ~ .est-model-hint { margin-top: 14px; }
.est-model .mb-root[hidden], .est-model .picked.off { display: none; }

/* ── Reaching Costa: WhatsApp sits wherever someone is most likely to want to ask ── */
/* a round WhatsApp button (beside "Get my …" on the product cards, and beside the floating pill) */
.wa-round { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #15803d; color: #fff; text-decoration: none; transition: background var(--quick), transform .2s; }
.wa-round:hover { background: #116a33; }
.wa-round:active { transform: scale(.95); }
.wa-round:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.float-dock .wa-round { width: 48px; height: 48px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55); }
.product-acts { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.product-acts .product-go { margin: 0; }
@supports (grid-template-rows: subgrid) { @media (min-width: 641px) { .product-acts { margin-top: 0; align-self: end; } } }

/* the photo viewer: "Want one like this? Message me" under the caption */
.lb-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 11px 18px 11px 14px; border-radius: 999px; background: #15803d; color: #fff; font-weight: 500; text-decoration: none; }
.lb-wa:hover { background: #116a33; }
.lb-wa .wa-glyph { display: grid; }
.lightbox figure { position: relative; }
.lightbox[open] { overflow-y: auto; }
@media (max-width: 640px) { .lightbox img { max-height: 64svh; } }

/* phones and tablets: finished pieces drift past under the hero buttons */
.home-strip { margin: 26px calc(-1 * var(--gutter)) 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hs-track { display: flex; gap: 8px; width: max-content; padding: 0 var(--gutter); }
.hs-item { flex: none; width: 112px; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.hs-item img { width: 100%; height: 100%; object-fit: cover; }
.hs-item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) {
  .hs-track { animation: hs-drift 70s linear infinite; }
  /* the row is drawn twice, so sliding by half of it (plus half a gap) loops seamlessly */
  @keyframes hs-drift { to { transform: translateX(calc(-50% - 4px)); } }
  .home-strip.off .hs-track, body:has(.lightbox[open]) .hs-track { animation-play-state: paused; }
  @media (hover: hover) { .home-strip:hover .hs-track { animation-play-state: paused; } }
  .home-strip { animation: fade .9s ease .9s both; }
  html.seen-home .home-strip { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-strip { overflow-x: auto; scrollbar-width: none; -webkit-mask: none; mask: none; }
  .home-strip::-webkit-scrollbar { display: none; }
}
@media (min-width: 960px) { .home-strip { display: none; } }

/* the end of the home page: the two quickest ways to reach Costa */
.reach { max-width: 640px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(40px, 6vw, 72px); text-align: center; }
.reach h2 { margin: 0; font: 400 clamp(2.1rem, 6vw, 3rem)/1.05 var(--display); letter-spacing: -.01em; }
.reach p { margin: 12px auto 24px; max-width: 32em; color: var(--muted); }
.reach .home-social { text-align: left; }
.footer.home-only { border-top-color: var(--line); }

/* Lettering: "Can't make it here?" a picture of what they have in mind goes with the request */
.lt-ref { order: 1; margin-top: 18px; }
.drop.lt-ref-drop { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px 14px; padding: 16px 18px; text-align: left; }
.lt-ref-drop .drop-icon { margin: 0; }
.lt-ref-text { display: grid; gap: 3px; }
.lt-ref-text small { font-size: .86rem; line-height: 1.4; }
.lt-ref-btn { grid-column: 2; justify-self: start; pointer-events: none; }
.lt-ref-drop:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
/* LED lights: what the chosen glow is, and a nudge when the strokes are too thin for a strip */
.lt-led-hint { margin: 10px 0 0; }
.lt-led-warn { margin: 8px 0 0; color: #9a5b00; }
.lt-refs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.lt-refs:empty { display: none; }
.lt-ref-pic { position: relative; width: 84px; height: 84px; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.lt-ref-pic img { width: 100%; height: 100%; object-fit: cover; }
.lt-ref-pic button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(18, 18, 18, .7); color: #fff; font-size: .75rem; cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════════════
   v3 motion: quick, and it feels like a print shop. Pictures print in layer by layer, a nozzle
   draws the lines under the headings, the logo prints itself and paint goes on in one stroke.
   Everything is over in about half a second; under prefers-reduced-motion it all just shows.
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --snap: cubic-bezier(.3, .9, .3, 1); --brush: #f2bf55; }

/* ── Snappier timing for what was already there ── */
html.js .reveal { transform: translateY(12px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.sc-slide { transition-duration: .6s; }
.product-img img { transition: opacity .45s ease, transform .5s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .w > span { animation-duration: .5s; animation-delay: calc(.1s + var(--w, 0) * .045s); }
  .hero-stars { animation: rise .45s var(--ease-out) .4s both; }
  .home-btn { animation: rise .45s var(--ease-out) both; animation-delay: calc(.45s + var(--i, 0) * .05s); }
  .showcase { animation: rise .55s var(--ease-out) .25s both; }
  .home-strip { animation: fade .4s ease .55s both; }
  .scroll-cue { animation: fade .4s ease .7s both; }
  body[data-view="quote"] .q-main, body[data-view="printers"] .printers { animation-duration: .35s; }
  .est-q:not(:first-child), .est-sub { animation-duration: .3s; }
  .note[open] .note-body { animation-duration: .25s; }
  html.js .section-head h2 { transition-duration: .45s; }
  html.js .section-head .link-out { transition: opacity .35s ease .15s, text-decoration-color var(--quick); }
}

/* ── The logo prints itself: its eight layers build bottom-up under a glowing hot line and nozzle ── */
@media (prefers-reduced-motion: no-preference) {
  .print-logo img { animation: layer-in .6s steps(10, end) .05s both; }
  .print-logo .pl-head { display: block !important; position: absolute; inset: 0; pointer-events: none; animation: head-up .6s steps(10, end) .05s both, fade-out .2s .7s forwards; }
  .print-logo .pl-head::before { background: var(--brush); box-shadow: 0 0 10px 2px rgba(242, 191, 85, .55); }
  .print-logo .pl-nozzle { background: linear-gradient(#4a4a4a, var(--ink)); animation: sweep .12s ease-in-out .05s 5 alternate both; }
}
html.seen-home .print-logo .pl-head { display: none !important; }

/* ── The headline's "functional parts." gets one quick yellow brush stroke (the logo's yellow) ── */
.hero-title { position: relative; z-index: 0; }
.hero-title .ht-keep { position: relative; display: inline-block; }
.hero-title .ht-keep::after {
  content: ''; position: absolute; z-index: -1; left: -.08em; right: -.04em; bottom: .04em; height: .32em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath fill='%23f2bf55' d='M3 13C30 7 72 9 112 8s104-3 184-2l2 7c-22 3-68 5-118 5S70 20 34 21c-14 0-26 0-31-3z'/%3E%3Cpath fill='%23e2a93a' fill-opacity='.45' d='M16 12c60-3 150-4 270-3l-1 2c-110 0-200 1-269 3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title .ht-keep::after { animation: paint-on .35s var(--snap) .45s both; }
}
@keyframes paint-on { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html.seen-home .hero-title .ht-keep::after { animation: none; }

/* ── Section headings: a little nozzle runs along and lays down the line under the title ── */
@media (prefers-reduced-motion: no-preference) {
  html.js .section-head::after { transition: transform .55s cubic-bezier(.45, 0, .25, 1) .1s; }
  html.js .section-head::before {
    content: ''; position: absolute; left: 0; bottom: 1px; width: 9px; height: 8px; transform: translateX(-50%); opacity: 0; pointer-events: none;
    background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 45%, 65% 100%, 35% 100%, 0 45%);
  }
  html.js .section-head.in::before { animation: nozzle-run .55s cubic-bezier(.45, 0, .25, 1) .1s both; }
}
@keyframes nozzle-run { 0% { left: 0; opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ── Photos print in, layer by layer from the bottom, as they scroll into view ── */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal :is(.product-img, .service-img, .biz-img, .printer-img) { clip-path: inset(100% 0 0 0); }
  html.js .reveal.in :is(.product-img, .service-img, .biz-img, .printer-img) { animation: layer-in .5s steps(10, end) .08s both; }
  html.js .g-item.pi { opacity: 1; clip-path: inset(100% 0 0 0); }
  html.js .g-item.pi.in { animation: layer-in .45s steps(9, end) var(--d, 0s) both; }
}
/* coming back to a screen (or un-hiding a card) shows the photos straight away instead of printing again */
html.seen-home .reveal.in :is(.product-img, .service-img, .biz-img),
html.seen-printers .reveal.in .printer-img { animation: none; clip-path: none; }

/* ── While a photo loads, its frame shows layer lines rising, like a print in progress ── */
:is(.g-item, .service-img, .printer-img):has(img.fi:not(.ok)) {
  background: repeating-linear-gradient(to top, var(--bg-2) 0 5px, #e3dfd6 5px 6px);
}
@media (prefers-reduced-motion: no-preference) {
  :is(.g-item, .service-img, .printer-img):has(img.fi:not(.ok)) { animation: layers-up .5s linear infinite; }
}
@keyframes layers-up { to { background-position: 0 -6px; } }

/* ── Outlined buttons fill with ink like one pass of a brush, left to right ── */
@media (hover: hover) {
  .btn-ghost {
    background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0% 100%;
    transition: background-size .22s var(--snap), color .15s, border-color .15s, transform var(--quick) var(--ease-out);
  }
  .btn-ghost:hover { background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 100% 100%; color: #fff; }
}

/* ── Taps answer straight away: pictures give a little under the thumb ── */
.product-img, .biz-img, .g-item, .hs-item { transition: transform .12s var(--ease-out); }
.product:active .product-img, .biz-card:active .biz-img, .g-item:active, .hs-item:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .product:active .product-img, .biz-card:active .biz-img, .g-item:active, .hs-item:active { transform: none; }
}

/* ── Phones and tablets: a filament line under the menu shows how far down the page you are ──
   (computers have the nozzle scrollbar for this; browsers without scroll timelines just skip it) */
@supports (animation-timeline: scroll()) {
  @media (pointer: coarse) and (prefers-reduced-motion: no-preference) {
    body[data-view="home"] .nav.scrolled::after {
      content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
      transform-origin: left; animation: grow-x linear both; animation-timeline: scroll(root);
    }
  }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }

/* ── Everything on the page is simply there: no build-up as it loads or scrolls into view (changed on request:
   the logo printing itself, words rising, cards fading in and photos printing in made the site look slow to
   load). This overrides the intro and reveal animations above; motion that isn't an entrance (the showcase, the
   product pictures taking turns, the spins, hover effects) is unaffected. ── */
html.js :is(.print-logo img, .hero-title, .hero-title .w > span, .hero .ht-print, .hero-stars, .home-btn, .showcase, .scroll-cue, .home-strip),
html.js .hero-title .ht-keep::after { animation: none !important; }
html.js .print-logo .pl-head, html.js .section-head::before { display: none !important; }
html.js .reveal:not(.in) { opacity: 1; transform: none; }
html.js .reveal :is(.product-img, .service-img, .biz-img, .printer-img) { clip-path: none !important; animation: none !important; }
html.js .g-item.pi { opacity: 1 !important; clip-path: none !important; animation: none !important; }
html.js .section-head:not(.in)::after, html.js .section-head:not(.in) h2 { transform: none; opacity: 1; }
html.js .section-head:not(.in) .link-out { opacity: 1; }
html.js img.fi { opacity: 1; transition: none; }
:is(.g-item, .service-img, .printer-img):has(img.fi:not(.ok)) { animation: none !important; }

/* a very short screen (a laptop zoomed right in, a phone on its side): the top bar scrolls away with the page instead
   of staying pinned, so the page itself keeps most of the screen (the floating buttons stay) */
@media (max-height: 520px) {
  .nav { position: relative; }
  html { scroll-padding-top: 12px; }
}

.swipe-hint { display: none; }
/* ── Phones: more on each screen (on request: the home page took a lot of scrolling). Long stacks become rows
   you swipe sideways, with the next card peeking in; services sit beside their photo; the gallery folds. ── */
@media (max-width: 640px) {
  .section { padding-top: 52px; }
  .section-head { padding-bottom: 12px; }
  /* My services: two by two (on request), each a photo with its name, a line or two and its buttons */
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .service { gap: 5px; }
  .service-img { aspect-ratio: 4 / 3; margin: 0 0 4px; }
  .service-img.split figcaption { font-size: .6rem; padding: 2px 5px; }
  .service h3 { font-size: 1.3rem; margin: 0; }
  .service > p:not(.eyebrow) { margin: 0; font-size: .86rem; line-height: 1.4; }
  .service .eyebrow { margin: 0; font-size: .62rem; }
  .service-actions { margin-top: 4px; gap: 6px; }
  .service-actions .btn { width: 100%; font-size: .8rem; padding: .5em .7em; }
  /* What I make and the business items: swipe sideways */
  .products, .biz {
    display: grid; grid-template-columns: none; grid-auto-flow: column; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
  }
  .products::-webkit-scrollbar, .biz::-webkit-scrollbar { display: none; }
  .products { grid-auto-columns: 84%; }
  .biz { grid-auto-columns: 44%; }
  .product, .biz-card { scroll-snap-align: start; }
  .swipe-hint { display: block; margin: -4px 0 12px; color: var(--dim); font-size: .82rem; letter-spacing: .02em; }
  /* the gallery shows about a screen until "See all" */
  .gallery.folded { max-height: 720px; }
}
/* The gallery shows a couple of rows until "See all" (on every screen, on request: the work now comes first on the
   home page, and the rest of the page should still be a short scroll away) */
.gallery.folded { overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
@media (min-width: 641px) { .gallery.folded { max-height: min(78vh, 760px); } .swipe-hint { display: none; } }
.gallery-more { display: flex; margin: 14px auto 0; }
@media (max-width: 640px) {
  .biz-foot { margin-top: 14px; padding-top: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Refinement (on request: a higher-quality, personal feel for custom and sentimental work; light and simple,
   nothing that pulls attention from the photos or the words). Colour, corners and depth only: no new motion.
   Warm paper instead of cool grey, a warm charcoal ink, a calmer, deeper blue, gold for the stars (the logo's
   underline), softer corners and quiet shadows in place of hard outlines.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #f8f6f1;
  --bg-2: #f0ebe2;
  --panel: #fffdf9;
  --panel-2: #f8f6f1;
  --panel-3: #fffdf9;
  --line: #e8e2d7;
  --line-2: #d6cec1;
  --text: #1c1a17;
  --ink: #1c1a17;
  --muted: #5d5850;
  --dim: #8b8479;
  --accent: #2b50ba;
  --accent-soft: rgba(43, 80, 186, .08);
  --blue-2: #2b50ba;
  --radius: 10px;
  --radius-sm: 6px;
  --lift: 0 1px 2px rgba(28, 26, 23, .04), 0 10px 28px -20px rgba(28, 26, 23, .28);
}
::selection { background: var(--accent); color: #fff; }
.stars { color: #bf9230; }

/* photos: softly rounded, sitting slightly on the page */
.product-img, .service-img, .biz-img, .printer-img, .lt-promo-img { border-radius: var(--radius); box-shadow: 0 1px 2px rgba(28, 26, 23, .05); }
.service-img.split figure { border-radius: var(--radius-sm); }
.g-item { border-radius: 6px; overflow: hidden; }

/* cards: a quiet shadow does the work a hard outline did */
.lt-promo, .est-opt, .est-for, .est-ballpark { border-color: var(--line); box-shadow: var(--lift); }
.lt-promo { border-radius: 16px; }

/* the dark buttons in the warm ink, not pure black */
.home-btn.quote { background: var(--ink); border-color: var(--ink); }
.home-btn.quote:hover { background: #2c2925; }

/* WhatsApp and Instagram stay recognisable, a little calmer so the work stays the star */
.home-btn.social { border-radius: 14px; box-shadow: var(--lift); }
.home-btn.social.wa { background: #17834a; }
.home-btn.social.wa:hover { background: #136f3e; }
.home-btn.social.ig { background: linear-gradient(135deg, #d97a3c 0%, #c43b66 52%, #7b3da3 100%); }
.home-btn.quote { border-radius: 14px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Easier to read and to tap (no change to the look): the faint grey is dark enough to read on the paper,
   the tiniest labels are a size up, the phone's tabs are taller to tap, and the form outlines the box
   that needs fixing.
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --dim: #6b655c; }
.spin-tag, .render-tag, .service-img.split figcaption { font-size: .7rem; }
.eyebrow { font-size: .74rem; }
.product-ex-title { font-size: .78rem; }
.link-out { padding-block: 8px; }
@media (max-width: 700px) {
  .nav nav.tabs a { font-size: .74rem; padding: 11px 0; }
  html { scroll-padding-top: 152px; }
}
@media (max-width: 350px) { .nav nav.tabs a { font-size: .68rem; } }
/* the step's name stays on one line beside the ballpark */
.est-progress-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.input[aria-invalid="true"], .input[aria-invalid="true"]:focus { border-color: #a6402f; box-shadow: 0 0 0 3px rgba(166, 64, 47, .14); }
.est-contact .send-error { font-weight: 500; }

/* A closer price: the optional one-tap answers under a choice (length in cm, the paint job's detail) */
.est-closer { max-width: none; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--panel); }
.est-closer .est-sub-q small { font-weight: 400; color: var(--muted); }
.est-closer .est-qty-quick { margin-top: 0; }
.est-closer .chip small { font-size: .82em; opacity: .75; }
.est-bp-tip { margin: 10px 0 0; color: var(--accent); font-size: .92rem; font-weight: 500; }
.k-4 { background: var(--accent); }


/* ── Inbox: buy links on a figure request, and "My models" (every figure and where to buy its file) ── */
.ib-buy { border-color: var(--accent); }
.ib-model-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; }
.ib-buy .ib-model-links { gap: 8px; }
.ib-model-links a { font-size: .9rem; }
.ib-models-intro { max-width: 70ch; margin: 0 0 12px; color: var(--muted); }
.ib-models-find { width: 100%; max-width: 420px; margin-bottom: 18px; }
.ib-maker { margin-bottom: 26px; }
.ib-maker[hidden], .ib-model-row[hidden] { display: none; }
.ib-maker-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ib-maker-head h2 { margin: 0; font: 400 1.5rem/1.1 var(--display); }
.ib-maker-stores { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.ib-maker-note { color: var(--muted); font-size: .88rem; }
.ib-model-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ib-model-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; border-radius: 10px; background: var(--panel); }
.ib-model-row img { width: 56px; height: 56px; object-fit: cover; object-position: 50% 25%; border-radius: 8px; background: var(--bg-2); }

/* the pinned buttons at the bottom: a line above them, and WhatsApp spelled out (on request) */
.float-dock .float-ask { flex-basis: 100%; margin: 0 0 -2px; text-align: center; font-weight: 500; color: var(--ink); font-size: .95rem; text-shadow: 0 0 8px var(--bg), 0 0 14px var(--bg); }
.float-dock .wa-round.float-wa { width: auto; height: auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; font-weight: 500; font-size: .98rem; white-space: nowrap; }
@media (max-width: 380px) { .float-dock .wa-round.float-wa, .float-dock .float-quote { font-size: .9rem; padding-left: 14px; padding-right: 14px; } }
/* (phones: both buttons on one row where they fit, and a firmer fade behind the line above them) */
.float-dock { background: linear-gradient(to top, rgba(247, 246, 242, .97) 0%, rgba(247, 246, 242, .9) 60%, rgba(247, 246, 242, 0) 100%); padding-top: 40px; gap: 8px; }
@media (max-width: 480px) {
  .float-dock { flex-wrap: wrap; padding-left: 10px; padding-right: 10px; }
  .float-dock .wa-round.float-wa, .float-dock .float-quote { font-size: .86rem; padding: 12px 13px; gap: 6px; }
  .float-dock .wa-round.float-wa svg { width: 18px; height: 18px; }
}
.est-opt-note { font: 400 .8rem/1 var(--sans, inherit); color: var(--muted); letter-spacing: 0; text-transform: none; }

/* ── "custom figurines" in the headline: once, as the page loads, a soft gold glow passes over the words and two
   little sparkles twinkle beside them (on request: subtle). The words are there the whole time; nothing builds up. ── */
.hero-title .ht-fig .w { overflow: visible; position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .ht-fig .w > span { animation: fig-glow 2.4s ease-in-out .5s both !important; }
  .hero-title .ht-fig .w::after {
    content: ''; position: absolute; width: .3em; height: .3em; pointer-events: none; opacity: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23e2a93a' d='M10 0c.9 5.6 4.4 9.1 10 10-5.6.9-9.1 4.4-10 10-.9-5.6-4.4-9.1-10-10 5.6-.9 9.1-4.4 10-10z'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: fig-twinkle 1.5s ease-in-out both;
  }
  .hero-title .ht-fig .w:first-child::after { left: -.22em; top: .02em; animation-delay: .8s; }
  .hero-title .ht-fig .w:last-child::after { right: -.2em; top: -.06em; width: .22em; height: .22em; animation-delay: 1.35s; }
}
@keyframes fig-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(242, 191, 85, 0); }
  45% { text-shadow: 0 0 .28em rgba(242, 191, 85, .45); }
}
@keyframes fig-twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  45% { opacity: .9; transform: scale(1) rotate(45deg); }
}
