/* Art Soul · storefront
   Design read: consumer storefront for a custom-embroidery apparel shop, young local audience,
   "thread on dark fabric" language. Dials: variance 8, motion 6, density 4.
   Tokens: dark by default (their feed is dark fabric), light when the device asks for it.
   Accent: the logo's blush pink, used for every primary action and nothing decorative.
   Shape rule: buttons, chips and pills are full-pill; cards 18px; inputs 12px. */

:root {
  --bg: #121014;
  --surface: #1b181d;
  --surface-2: #241f26;
  --ink: #f5efee;
  --ink-2: #bfb5b6;
  --ink-3: #8c8285;
  --line: rgba(245, 239, 238, .1);
  --line-2: rgba(245, 239, 238, .18);
  --accent: #f2c4c0;
  --on-accent: #2a1517;
  --accent-ink: #f2c4c0;
  --danger: #ff9b8f;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .6);
  color-scheme: dark;

  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --r-card: 18px;
  --r-input: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1320px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbf7f6; --surface: #ffffff; --surface-2: #f5ecea;
    --ink: #1d1517; --ink-2: #594b4e; --ink-3: #85777a;
    --line: rgba(29, 21, 23, .1); --line-2: rgba(29, 21, 23, .2);
    --accent-ink: #9e4c45; --danger: #b3352a;
    --shadow: 0 24px 60px -34px rgba(60, 30, 35, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fbf7f6; --surface: #ffffff; --surface-2: #f5ecea;
  --ink: #1d1517; --ink-2: #594b4e; --ink-3: #85777a;
  --line: rgba(29, 21, 23, .1); --line-2: rgba(29, 21, 23, .2);
  --accent-ink: #9e4c45; --danger: #b3352a;
  --shadow: 0 24px 60px -34px rgba(60, 30, 35, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.i-lg { width: 28px; height: 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: #f7d6d3; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; min-height: 56px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .2s ease;
}
.icon-btn:hover { border-color: var(--line-2); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 68px; padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) { .nav { background: var(--bg); } }
.brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.brand-mark .i { width: 20px; height: 20px; }
.brand-word { font-weight: 600; font-size: 19px; letter-spacing: .01em; }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 34px); font-size: 15px; color: var(--ink-2); }
.nav-links a { padding: 6px 0; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Sections ---------- */
.hero, .designs, .studio, .custom, .how, .faq, .foot { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sec-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: 60ch; }
.sec-title { font-weight: 600; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.sec-lede { margin-top: .6rem; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 52ch; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100dvh - 68px); padding-block: clamp(32px, 6vh, 72px);
}
.hero-title { font-weight: 700; font-size: clamp(40px, 5.6vw, 82px); line-height: 1.18; letter-spacing: -.02em; }
.hero-sub { margin-top: 1.2rem; color: var(--ink-2); font-size: clamp(17px, 1.45vw, 20px); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-art { position: relative; aspect-ratio: 15 / 16; max-height: 76dvh; width: 100%; justify-self: center; }
.tile {
  position: absolute; overflow: hidden; border-radius: var(--r-card); background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(24px) rotate(var(--rot, 0deg));
  animation: tile-in 1.1s var(--ease) forwards; animation-delay: var(--d, 0s);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-a { --rot: -3deg; --d: .1s; width: 54%; aspect-ratio: 4 / 5; top: 2%; inset-inline-end: 4%; }
.tile-b { --rot: 4deg; --d: .25s; width: 40%; aspect-ratio: 4 / 5; top: 34%; inset-inline-start: 2%; }
.tile-c { --rot: -2deg; --d: .4s; width: 36%; aspect-ratio: 4 / 5; bottom: 0; inset-inline-end: 22%; }
@keyframes tile-in { to { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); } }
/* A running stitch draws itself once across the work: the brand's craft in one gesture. */
.thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.thread-path {
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 10 9; stroke-dashoffset: 0;
  -webkit-mask: none;
  clip-path: inset(0 0 100% 0);
  animation: stitch 2.4s var(--ease) .6s forwards;
}
@keyframes stitch { to { clip-path: inset(0 0 0 0); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 28px; }
  .hero-art { order: -1; max-width: 460px; aspect-ratio: 1 / 1; }
}

/* ---------- Catalogue ---------- */
.designs { padding-block: clamp(64px, 10vh, 120px); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; scroll-snap-type: x proximity; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; scroll-snap-align: start;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 15px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid {
  display: grid; gap: clamp(12px, 1.6vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; flex: 1; }
.card-cat { font-size: 13px; color: var(--ink-3); }
.card-name { font-weight: 600; font-size: 17px; line-height: 1.5; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.card-price { font-size: 15px; color: var(--ink-2); }
.card-price strong { color: var(--ink); font-weight: 600; }
.card-new { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.card-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.grid-empty { color: var(--ink-2); padding: 40px 0; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card-name { font-size: 15px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-price { font-size: 13px; }
  .card-btn { width: 100%; }
}
.skel { aspect-ratio: 4 / 6; border-radius: var(--r-card); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -100% 0; } }

/* ---------- Studio ---------- */
.studio { padding-block: clamp(64px, 10vh, 120px); }
.studio-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.preview { position: sticky; top: 88px; order: 2; }
.preview-stage {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 35%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.preview-stage.has-3d .mock { display: none; }
.mock3d { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.mock3d:active { cursor: grabbing; }
.drag-hint { position: absolute; bottom: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 6px 12px; border-radius: 999px; pointer-events: none; }
.drag-hint .i { width: 16px; height: 16px; }
.mock { width: 82%; height: auto; aspect-ratio: 400 / 460; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .35)); transition: opacity .3s ease; }
.mock .design-layer { transition: opacity .3s ease; }
.preview-badge {
  position: absolute; inset-inline-start: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px;
}
.preview-badge img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.preview-tools { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.preview-tools .icon-btn { margin-inline-start: auto; }
.preview-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg-btn { min-height: 36px; min-width: 64px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; transition: background-color .2s ease, color .2s ease; }
.seg-btn.is-on { background: var(--ink); color: var(--bg); }
.seg-btn[disabled] { opacity: .4; cursor: not-allowed; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; transition: background-color .2s ease; }
.switch-ui::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); transition: transform .25s var(--ease), background-color .2s ease; }
.switch input:checked + .switch-ui { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-ui::after { background: var(--on-accent); transform: translateX(-18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 3px; }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(16px, 2vw, 24px); }
.step legend { float: inline-start; width: 100%; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; margin-bottom: 14px; padding: 0; }
.step legend + * { clear: both; }
.step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--surface-2); color: var(--ink-2); }
.choice-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 84px; border-radius: 14px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font-size: 14px; transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.choice .i { width: 26px; height: 26px; }
.choice[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.choice:hover { color: var(--ink); }
@media (max-width: 420px) { .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); padding: 0; position: relative; background: var(--c); transition: transform .2s var(--ease); }
.sw:hover { transform: scale(1.06); }
.sw[aria-checked="true"] { outline: 2px solid var(--accent); outline-offset: 3px; }
.sw-name { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.sizes, .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills + .pills { margin-top: 10px; }
.pill {
  min-height: 44px; min-width: 52px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2); font-size: 15px; transition: all .2s ease;
}
.pill[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill[disabled] { opacity: .35; cursor: not-allowed; }
.hint { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 999px; margin-bottom: 16px; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.tab .i { width: 18px; height: 18px; }
.tab.is-on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 var(--line-2); }
@media (max-width: 460px) { .tab .i { display: none; } .tab { font-size: 13px; } }

.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 170px; padding: 20px; border-radius: 14px; border: 1.5px dashed var(--line-2); cursor: pointer;
  color: var(--ink-2); transition: border-color .2s ease, background-color .2s ease;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.drop-title { font-weight: 500; color: var(--ink); }
.drop-hint { font-size: 13px; color: var(--ink-3); max-width: 34ch; }
.upload-ok { display: flex; gap: 14px; align-items: center; }
.upload-ok img { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 14px 14px; border: 1px solid var(--line); }
.upload-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.upload-meta strong { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.thread-colors { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tc-title { font-size: 14px; color: var(--ink-2); }
.tc-title strong { color: var(--ink); }
.tc-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tc-swatches span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); }
.tc-note { font-size: 13px; color: var(--ink-3); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field-row + .field-row, .field + .field-row, .field-row + .field { margin-top: 12px; }
.field label, .field .label { font-size: 14px; color: var(--ink-2); }
.opt { color: var(--ink-3); }
.field input, .field select, .qty input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-input);
  background: var(--bg); border: 1px solid var(--line-2); font-size: 16px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s ease;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px 50%; padding-left: 36px;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .qty input:focus { outline: none; border-color: var(--accent); }
.field.is-bad input { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); }
.qty { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 6px; }
.qty input { text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { min-height: 48px; border-radius: var(--r-input); border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.thread-pick { display: flex; gap: 8px; flex-wrap: wrap; min-height: 48px; align-items: center; }
.thread-pick .sw { width: 34px; height: 34px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.mini { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini[aria-checked="true"] { border-color: var(--accent); }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 14px; }
.summary-lines { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; font-size: 14px; }
.summary-lines dt { color: var(--ink-3); }
.summary-lines dd { margin: 0; color: var(--ink); }
.summary-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.summary-price .lbl { color: var(--ink-2); font-size: 15px; }
.summary-price .val { font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; }
.summary-price .val.muted { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.summary-note { font-size: 13px; color: var(--ink-3); }

@media (max-width: 960px) {
  .studio-body { grid-template-columns: minmax(0, 1fr); }
  .preview { position: relative; top: 0; order: 0; }
  .preview-stage { aspect-ratio: 4 / 3.4; }
  .mock { width: auto; height: 92%; }
}

/* ---------- Name in thread ---------- */
.namecraft {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center;
}
.nc-copy { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.nc-copy .btn { align-self: flex-start; margin-top: 6px; }
.nc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.nc-row .sw { width: 34px; height: 34px; }
.nc-swatch { border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); aspect-ratio: 4 / 3; }
.nc-swatch canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) {
  .namecraft { grid-template-columns: minmax(0, 1fr); }
  .nc-swatch { order: -1; }
  .nc-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- How: bento ---------- */
.how { padding-block: clamp(64px, 10vh, 120px); }
.bento { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(12px, 1.6vw, 20px); }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(18px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 8px; }
.cell .i-lg { color: var(--accent-ink); margin-bottom: 6px; }
.cell h3 { font-weight: 600; font-size: 19px; line-height: 1.45; }
.cell p { color: var(--ink-2); font-size: 15px; }
.cell-photo { grid-row: span 2; padding: 0; overflow: hidden; position: relative; min-height: 420px; justify-content: flex-end; }
.cell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 8, 12, .92) 10%, rgba(10, 8, 12, .1) 60%); }
.cell-photo .cell-copy { position: relative; z-index: 1; padding: clamp(18px, 2.2vw, 28px); color: #f5efee; }
.cell-photo .cell-copy p { color: #d6cccd; }
.cell-tint { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.bento .cell:nth-child(4) { grid-column: span 2; }
@media (max-width: 860px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell-photo { grid-row: auto; min-height: 360px; }
  .bento .cell:nth-child(4) { grid-column: auto; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(48px, 8vh, 100px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { transition: transform .3s var(--ease); color: var(--ink-3); }
.faq-list details[open] summary .i { transform: rotate(180deg); }
.faq-list p { color: var(--ink-2); padding-bottom: 18px; max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { padding-block: clamp(48px, 8vh, 96px) calc(28px + env(safe-area-inset-bottom)); }
.foot-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot-word { font-weight: 700; font-size: clamp(48px, 9vw, 120px); line-height: 1; letter-spacing: -.03em; direction: ltr; color: var(--accent-ink); }
.foot-line { color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; font-size: 14px; color: var(--ink-3); }
#staff-tap { user-select: none; -webkit-user-select: none; }

/* ---------- Toast + draft bar ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 80; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-size: 15px; box-shadow: var(--shadow);
}
.draft-bar { position: fixed; inset: auto 0 0 0; z-index: 70; display: flex; justify-content: center; gap: 14px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--accent); color: var(--on-accent); font-size: 14px; }
.draft-bar a { text-decoration: underline; font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .tile { opacity: 1 !important; transform: rotate(var(--rot, 0deg)) !important; animation: none !important; transition: none !important; }
  .thread-path { animation: none; clip-path: none; }
  .card, .card-img img, .btn, .skel { transition: none; animation: none; }
}
