/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #14151a;
  --surface: #1b1d24;
  --surface-2: #242730;
  --tint: #181a20;
  --ink: #eef0f5;
  --ink-2: #c6cad6;
  --muted: #9ba1b2;
  --line: #2d303b;
  --line-strong: #444857;
  --accent: #a99bff;
  --accent-hover: #bdb2ff;
  --on-accent: #15122e;
  --accent-soft: rgba(169, 155, 255, .14);
  --ok: #4cd9a2;
  --warn: #f2b45a;
  --bad: #ff8a80;

  /* The preview panel keeps a 3D-viewport look in both themes. */
  --vp-bg: #2b2d34;
  --vp-grid: #3b3e47;
  --vp-sel: #ff9a2e;
  --vp-ink: #e8eaf0;

  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 50px rgba(0, 0, 0, .4);

  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f7;
  --surface: #ffffff;
  --surface-2: #eceef3;
  --tint: #eaecf1;
  --ink: #14161c;
  --ink-2: #3d4251;
  --muted: #5b6171;
  --line: #dcdfe7;
  --line-strong: #bfc4d1;
  --accent: #5a3df0;
  --accent-hover: #4a2edb;
  --on-accent: #ffffff;
  --accent-soft: rgba(90, 61, 240, .09);
  --ok: #0f7a56;
  --warn: #8f5200;
  --bad: #b3261e;
  --shadow: 0 1px 2px rgba(20, 22, 28, .06), 0 18px 44px rgba(20, 22, 28, .12);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { font: 500 .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: .1em .4em; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
ol, ul, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

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

.container { width: min(1160px, 100% - clamp(2rem, 6vw, 4rem)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: .7rem 1rem; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); font-stretch: 85%; }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: .75rem; }
.micro { color: var(--muted); font-size: .875rem; margin-top: 1.25rem; max-width: 70ch; }
.notice { color: var(--muted); padding: 1rem 0; }

/* ==========================================================================
   Buttons and controls
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding-inline: 1.6rem; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: .5rem .95rem; font-size: .875rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: inherit; }
.btn-primary[aria-disabled="true"]:hover { background: var(--accent); }
.btn-secondary[aria-disabled="true"]:hover { background: transparent; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink);
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.link-btn { background: none; border: 0; padding: .25rem 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); font-size: .9rem; }
.link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ==========================================================================
   Setup banner and header
   ========================================================================== */
.setup-banner {
  display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: .6rem 1rem; background: #f2b45a; color: #1c1200; font-size: .875rem; font-weight: 500;
}
.setup-banner[hidden] { display: none; }
.setup-banner button { background: #1c1200; color: #fff; border: 0; border-radius: 6px; padding: .3rem .7rem; font-size: .8rem; }

.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 700 1.1rem var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: inline-block; position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: -4px; width: 9px; height: 11px; background: var(--accent); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.brand-mark::before { left: 3px; }
.brand-mark::after { right: 3px; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .55rem .85rem; border-radius: var(--r-sm); color: var(--ink-2); font-size: .95rem; font-weight: 500; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="true"] { color: var(--ink); background: var(--accent-soft); }

.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.menu-toggle { display: none; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); min-height: min(760px, calc(100svh - var(--header-h))); }
.status { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background-color .15s; }
.status:hover { background: var(--surface-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.status[data-state="limited"] .status-dot, .status[data-state="waitlist"] .status-dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }
.status[data-state="closed"] .status-dot { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 22%, transparent); }

.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); font-stretch: 80%; font-weight: 750; line-height: 1; letter-spacing: -.03em; margin: 1.4rem 0 1.25rem; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 46ch; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.facts { display: grid; gap: 1rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); max-width: 560px; }
.facts div { display: grid; grid-template-columns: 11.5rem 1fr; gap: 1rem; }
.facts dt { font-weight: 600; font-size: .95rem; }
.facts dd { color: var(--muted); font-size: .95rem; }

/* Preview panel (3D viewport) */
.viewport { background: var(--vp-bg); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; color: var(--vp-ink); }
.vp-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .9rem .75rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .16); }
.vp-title { font-size: .875rem; color: #aab0bf; font-weight: 500; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: rgba(0, 0, 0, .28); border-radius: 10px; }
.seg button { min-height: 36px; padding: .3rem .8rem; border: 0; border-radius: 8px; background: transparent; color: #c0c5d2; font-size: .85rem; font-weight: 500; transition: background-color .15s, color .15s; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: #fff; color: #17181d; }
.seg button:focus-visible { outline-color: var(--vp-sel); }

.vp-stage { position: relative; height: clamp(360px, 46vw, 500px); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 38%, #383b44, transparent 70%); }
.vp-floor {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: 52%;
  background-image: linear-gradient(var(--vp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--vp-grid) 1px, transparent 1px);
  background-size: 46px 46px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent); mask-image: linear-gradient(to top, #000 25%, transparent);
}
.avatar { position: relative; height: 92%; width: auto; max-width: 92%; transition: transform .35s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.hero-image { position: relative; height: 100%; width: 100%; object-fit: cover; }
.vp-note { padding: .7rem 1.1rem; font-size: .8125rem; color: #aab0bf; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .16); }
.vp-note code { background: rgba(255, 255, 255, .1); color: #e8eaf0; }

/* Avatar shading modes */
.avatar .p { stroke: none; }
.avatar .p-skin { fill: url(#gSkin); }
.avatar .p-hair { fill: url(#gHair); }
.avatar .p-inner { fill: url(#gInner); }
.avatar .p-cloth { fill: url(#gCloth); }
.avatar .p-eye { fill: #1c1e2b; }
[data-mode="clay"] .avatar .p { fill: url(#gClay); }
[data-mode="clay"] .avatar .p-eye { fill: #77726c; }
[data-mode="clay"] .avatar .hl, [data-mode="clay"] .avatar .line { display: none; }
[data-mode="wire"] .avatar .p { fill: url(#mesh); stroke: var(--vp-sel); stroke-width: 2; stroke-linejoin: round; }
[data-mode="wire"] .avatar .p-eye { fill: #25272e; }
[data-mode="wire"] .avatar .hl, [data-mode="wire"] .avatar .line { display: none; }

/* ==========================================================================
   Work
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button { min-height: 40px; padding: .4rem 1rem; border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: background-color .15s, color .15s, border-color .15s; }
.filters button:hover { background: var(--surface-2); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.work-card { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; border-radius: var(--r-lg); }
.work-card[hidden] { display: none; }
.work-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.work-card:hover .work-media img { transform: scale(1.03); }
.work-card:focus-visible { outline-offset: 5px; border-radius: var(--r-lg); }
.work-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem .25rem 0; }
.work-cap h3 { font-size: 1.25rem; font-stretch: 90%; }
.work-cap span { color: var(--muted); font-size: .9rem; text-align: right; }
.work-zoom { position: absolute; right: .9rem; top: .9rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(15, 16, 20, .72); color: #fff; font-size: .8rem; font-weight: 500; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; backdrop-filter: blur(6px); }
.work-card:hover .work-zoom, .work-card:focus-visible .work-zoom { opacity: 1; transform: none; }

.ph { position: absolute; inset: 0; display: grid; place-items: center; background:
  linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(160deg, hsl(var(--h) 38% 30%), hsl(calc(var(--h) + 40) 36% 16%)); }
.ph span { padding: .4rem .8rem; border: 1px dashed rgba(255, 255, 255, .4); border-radius: 999px; color: rgba(255, 255, 255, .85); font-size: .85rem; }

/* ==========================================================================
   Services
   ========================================================================== */
.service-list { border-top: 1px solid var(--line-strong); }
.service { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 9.5rem auto; gap: 1.5rem; align-items: center; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.service h3 { font-size: 1.4rem; font-stretch: 90%; margin-bottom: .35rem; }
.service-main p { color: var(--muted); max-width: 44ch; }
.service-need, .service-price { font-size: .95rem; color: var(--ink-2); }
.service-need span, .service-price span { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: .15rem; }

/* ==========================================================================
   Process
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 19px; left: 19px; right: calc(25% - 19px); height: 1px; background: var(--line-strong); }
.steps li { position: relative; padding-right: .5rem; }
.step-num { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); font: 700 1rem var(--display); margin-bottom: 1.25rem; }
.steps h3 { font-size: 1.2rem; font-stretch: 90%; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   Brief builder
   ========================================================================== */
.brief-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.brief-form { display: grid; gap: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group legend, .field > label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .65rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: .875rem; margin-left: .35rem; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input, .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice > span { display: block; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; color: var(--muted); font-size: .875rem; margin-top: .1rem; }
.choice:hover > span { background: var(--surface-2); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip > span { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover > span { background: var(--surface-2); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.chip input:checked + span::before { content: ""; width: 6px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-right: .6rem; }

.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: .65rem .9rem; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-md); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .85; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field[hidden] { display: none; }
.field-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.hint, .count { color: var(--muted); font-size: .875rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-error { color: var(--bad); font-size: .9rem; margin-top: .5rem; font-weight: 500; }
.field-error[hidden] { display: none; }
.field.invalid textarea { border-color: var(--bad); }
.form-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.save-state { color: var(--muted); font-size: .875rem; }

.summary { position: sticky; top: calc(var(--header-h) + 1.25rem); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 1.75rem); }
.summary h3 { font-size: 1.5rem; font-stretch: 90%; margin-bottom: 1rem; }
.summary-list { display: grid; }
.srow { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.srow dt { color: var(--muted); }
.srow dd { overflow-wrap: anywhere; }
.srow dd.empty { color: var(--muted); opacity: .8; }
.srow dd.long { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.needs { margin-top: 1rem; font-size: .9rem; font-weight: 500; min-height: 1.4em; }
.needs.ready { color: var(--ok); }
.needs.todo { color: var(--ink-2); }
.summary-actions { display: grid; gap: .6rem; margin-top: 1rem; }
.summary .micro { margin-top: 1rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { border-top: 1px solid var(--line-strong); max-width: 860px; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; cursor: pointer; list-style: none; font: 600 1.15rem var(--display); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-right: .3rem; }
details[open] summary::after { transform: rotate(-135deg); }
summary:hover { color: var(--accent); }
details p { color: var(--ink-2); padding: 0 2.5rem 1.4rem 0; max-width: 68ch; }

/* ==========================================================================
   Footer, dock, toast
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: .6rem; }
.footer-links { display: grid; gap: .55rem; justify-items: start; }
.footer-links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); font-size: .95rem; }
.footer-links a:hover { color: var(--ink); text-decoration-color: currentColor; }
.footer-links a[hidden] { display: none; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .25s; display: none; }
.dock .btn { width: 100%; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, 20px); display: flex; align-items: center; gap: 1rem; padding: .75rem 1.1rem; background: var(--ink); color: var(--bg); border-radius: var(--r-md); box-shadow: var(--shadow); font-size: .95rem; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 2rem); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; padding: .25rem; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { width: min(1040px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(8, 9, 12, .72); backdrop-filter: blur(4px); }
.lb-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); max-height: 92vh; }
.lb-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: var(--surface); }
.lb-media { position: relative; background: var(--surface-2); min-height: 320px; aspect-ratio: 4 / 5; max-height: 92vh; }
.lb-media img { width: 100%; height: 100%; object-fit: contain; }
.lb-side { padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: .5rem; overflow: auto; }
.lb-count { color: var(--muted); font-size: .875rem; }
.lb-side h3 { font-size: 2rem; font-stretch: 85%; padding-right: 2.5rem; }
.lb-tags { color: var(--ink-2); }
.lb-note { color: var(--muted); margin-top: .5rem; }
.lb-actions { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .75rem; }
.lb-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.lb-nav .btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .viewport { max-width: 640px; }
  .service { grid-template-columns: minmax(0, 1fr) auto; row-gap: 1rem; }
  .service-main { grid-column: 1 / -1; }
  .service-main p { max-width: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .steps::before { display: none; }
  .brief-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .nav-cta { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .15rem; padding: .75rem 1rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 1rem; font-size: 1.05rem; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .dock { display: block; }
  .dock.show { transform: none; }
  .footer { padding-bottom: 6rem; }
  .toast { bottom: 5.5rem; }
  .facts div { grid-template-columns: 1fr; gap: .15rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .choice-grid, .row-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 5.5rem 1fr; }
  .lb-inner { grid-template-columns: 1fr; overflow: auto; }
  .lb-media { aspect-ratio: 4 / 4; min-height: 0; }
  .lb-side { padding: 1.25rem; }
  .lb-side h3 { font-size: 1.6rem; }
  .vp-bar { flex-wrap: wrap; }
}

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

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { padding: 1rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 12px; margin-top: 1rem; font-size: .95rem; }
