:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --bg: #fbfbfa;
  --panel: #f3f2f0;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #c46a17;
  --accent-soft: #f6e9dc;
  --dark: #0f0f10;
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 64px;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); line-height: 1.55; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 251, 250, 0.78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 30px; margin: 0 auto; }
.main-nav a { font-size: 14px; color: var(--ink-2); padding: 6px 0; position: relative; transition: color .2s; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); }
.langs { display: flex; gap: 8px; }
.langs button {
  width: 30px; height: 21px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: pointer;
  opacity: 0.45; filter: saturate(0.6); transition: opacity .2s, transform .2s, filter .2s;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.langs button svg { width: 100%; height: 100%; display: block; }
.langs button:hover { opacity: 0.85; filter: none; }
.langs button.active { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.menu-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; transition: transform .2s var(--ease), background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f1f1; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.link-arrow { color: var(--accent); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.link-arrow::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- home: hero with fixed, fading background ---------- */
.hero-bg { position: fixed; inset: 0; z-index: -1; background: var(--dark); overflow: hidden; }
.hero-bg .slide {
  position: absolute; inset: -4%; background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0; transition: opacity 2.2s ease;
  animation: kenburns 18s ease-in-out infinite alternate;
}
.hero-bg .slide.on { opacity: 1; }
.hero-bg .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.15) 35%, rgba(10,10,12,.35) 70%, rgba(10,10,12,.85) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(0,0,0,.45) 100%);
}
.hero-bg .veil { position: absolute; inset: 0; background: var(--dark); opacity: 0; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }

.home { color: #fff; }
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 40px) 0 calc(12vh + 48px); }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 { font-size: clamp(40px, 7vw, 88px); font-weight: 600; margin: 18px 0 22px; max-width: 14em; text-wrap: balance; }
.hero p { font-size: clamp(17px, 1.8vw, 22px); color: rgba(255,255,255,.82); max-width: 34em; }
.hero .actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.scroll-cue { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.about { min-height: 120vh; display: flex; align-items: center; padding: 18vh 0; }
.about h2 { font-size: clamp(34px, 5.2vw, 64px); margin: 16px 0 28px; max-width: 13em; }
.about .eyebrow { color: #f0a457; }
.about p.text { font-size: clamp(17px, 1.7vw, 22px); color: rgba(255,255,255,.8); max-width: 36em; line-height: 1.6; }
.about-text { display: grid; gap: 18px; }
.about p.sign { font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: #fff; margin-top: 8px; letter-spacing: -0.01em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 36px; }
.stat b { display: block; font-size: clamp(38px, 5vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: rgba(255,255,255,.65); font-size: 15px; }

.solid { background: var(--bg); color: var(--ink); position: relative; }
.section { padding: 120px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 12px; }

.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--panel);
  color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7) 100%); }
.cat:hover img { transform: scale(1.05); }
.cat h3 { font-size: 30px; }
.cat p { color: rgba(255,255,255,.82); margin: 8px 0 14px; font-size: 15px; }
.cat .link-arrow { color: #fff; }

.craft { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.craft-media { position: relative; }
.craft-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.craft-media img.inset { position: absolute; width: 58%; aspect-ratio: 16/10; right: -8%; bottom: -10%; border: 6px solid var(--bg); box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.craft h2 { font-size: clamp(30px, 4vw, 48px); margin: 12px 0 22px; }
.craft ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.craft li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.craft li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--accent); }

.cta-band { background: var(--dark); color: #fff; border-radius: 32px; padding: 80px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url(../img/factory-hall.jpg) center/cover; opacity: .18; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 52px); }
.cta-band p { color: rgba(255,255,255,.72); margin: 16px auto 32px; max-width: 34em; font-size: 18px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- page header ---------- */
.page { padding-top: var(--header-h); min-height: 80vh; }
.page-head { padding: 72px 0 36px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 5.5vw, 64px); }
.page-head p { margin: 14px auto 0; max-width: 36em; }

.segmented { display: inline-flex; background: var(--panel); padding: 4px; border-radius: 999px; margin-top: 32px; gap: 2px; }
.segmented a, .segmented button { border: 0; background: none; padding: 9px 22px; border-radius: 999px; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.segmented .active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-weight: 500; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; padding-bottom: 120px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; border: 0; padding: 0; transition: transform .4s var(--ease), box-shadow .4s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0,0,0,.09); }
.card .media { aspect-ratio: 4 / 5; background: var(--panel); position: relative; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.card:hover .media img { transform: scale(1.04); }
.card .media img[data-loading] { opacity: 0; }
.badge { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); color: var(--ink-2); }
.badge.real { color: var(--accent); }
.card .body { padding: 20px 22px 24px; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, var(--panel) 30%, #fafaf9 50%, var(--panel) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- product dialog ---------- */
dialog.product-dialog { border: 0; padding: 0; border-radius: 28px; width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--card); color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,.35); }
dialog.product-dialog::backdrop { background: rgba(20,20,22,.45); backdrop-filter: blur(6px); }
dialog[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; }
.pd-media { background: var(--panel); min-height: 420px; position: relative; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pd-body { padding: 48px 44px; display: flex; flex-direction: column; }
.pd-body h2 { font-size: 40px; margin: 10px 0 14px; }
.pd-body .lead { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.chip { background: var(--panel); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.chip i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.pd-actions { display: grid; gap: 10px; margin-top: auto; }
.pd-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 20px; line-height: 1; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* ---------- configurator ---------- */
.cfg-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 60px; }
.cfg-pick .card .media { aspect-ratio: 4/4.4; }
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); }
.stage { position: relative; background: #f3f2f0; overflow: hidden; }
.stage canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; }
.stage canvas:active { cursor: grabbing; }
.stage-top { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; gap: 12px; }
.stage-top > * { pointer-events: auto; }
.stage-title .eyebrow { display: block; }
.stage-title h2 { font-size: 30px; margin-top: 4px; }
.stage-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.stage-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.75); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pill:hover { background: #fff; }
.pill.on { background: var(--ink); color: #fff; }

.panel { background: var(--card); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel-scroll { overflow-y: auto; padding: 24px 28px 28px; flex: 1; overscroll-behavior: contain; }
.panel-actions { border-top: 1px solid var(--line); padding: 16px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: rgba(255,255,255,.96); }
.panel-actions .btn-primary { grid-column: 1 / -1; }
.dl { position: relative; }
.dl-menu { position: absolute; bottom: calc(100% + 8px); left: 0; right: -60px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.18); padding: 6px; display: none; z-index: 5; }
.dl-menu.open { display: block; }
.dl-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.dl-menu button:hover { background: var(--panel); }
.dl-menu small { display: block; color: var(--muted); font-size: 12px; }

.examples { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin: 10px -2px 4px; scrollbar-width: thin; }
.example { flex: none; width: 76px; border: 0; padding: 0; background: none; cursor: pointer; text-align: center; font-size: 11.5px; color: var(--ink-2); }
.example .thumb { width: 76px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.example img { width: 100%; height: 100%; object-fit: cover; }
.example.active .thumb { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.example span { display: block; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.opt { padding: 18px 0; border-top: 1px solid var(--line); }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.opt-head label, .opt-head .label { font-weight: 600; font-size: 15px; }
.opt-head output, .opt-head .val { color: var(--muted); font-size: 14px; text-align: right; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.choice { border: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); border-radius: 12px; padding: 11px 10px; font-size: 13.5px; cursor: pointer; transition: box-shadow .15s, background .15s; text-align: center; line-height: 1.25; }
.choice:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); }
.choice.active { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 500; }
.choice small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.choice.finish i { display: block; width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.swatch-group { font-size: 12.5px; color: var(--muted); margin: 12px 0 8px; }
.swatch-group:first-child { margin-top: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); position: relative; transition: transform .15s; }
.swatch.grain { background-image: repeating-linear-gradient(95deg, rgba(60,30,10,.12) 0 1px, transparent 1px 4px), linear-gradient(var(--c), var(--c)); }
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.partner { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.partner b { color: var(--ink-2); font-weight: 600; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--p, 50%) 100% no-repeat, #e2e1de; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.3); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.3); cursor: pointer; }
.num { display: flex; align-items: center; gap: 6px; }
.num input { width: 78px; height: 32px; border-radius: 9px; border: 1px solid var(--line); text-align: right; padding: 0 8px; font-size: 14px; background: var(--panel); }
.stepper { display: inline-flex; align-items: center; background: var(--panel); border-radius: 999px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper span { min-width: 42px; text-align: center; font-weight: 600; }
.toggle { position: relative; width: 50px; height: 30px; border-radius: 999px; border: 0; background: #d9d8d5; cursor: pointer; transition: background .2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.toggle.on { background: #34c759; }
.toggle.on::after { transform: translateX(20px); }
.opt.inline { display: flex; justify-content: space-between; align-items: center; }
.opt.inline .opt-head { margin: 0; }

.saved { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.saved h4 { margin: 0 0 12px; font-size: 15px; }
.saved-list { display: grid; gap: 8px; }
.saved-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--panel); }
.saved-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.saved-item b { display: block; font-size: 14px; font-weight: 600; }
.saved-item small { color: var(--muted); font-size: 12px; }
.saved-item .acts { display: flex; gap: 6px; }
.icon-btn { border: 0; background: #fff; border-radius: 999px; height: 30px; padding: 0 12px; font-size: 12.5px; cursor: pointer; }
.icon-btn:hover { background: var(--ink); color: #fff; }
.empty { color: var(--muted); font-size: 14px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; padding-bottom: 120px; align-items: start; }
.box { background: var(--card); border-radius: var(--radius); padding: 36px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.box h3 { font-size: 22px; }
.box > p.sub { color: var(--muted); margin: 6px 0 20px; font-size: 15px; }
.attached { display: grid; gap: 10px; margin-bottom: 14px; }
.att { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--panel); }
.att img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; }
.att .file-ic { width: 64px; height: 64px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.att b { font-size: 15px; display: block; }
.att small { color: var(--muted); font-size: 12.5px; display: block; line-height: 1.4; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.x-btn { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.1); transition: background .15s, color .15s; }
.x-btn svg { width: 12px; height: 12px; }
.x-btn:hover { background: #fdecec; color: #b42318; }
.x-btn.sm { width: 22px; height: 22px; box-shadow: none; background: transparent; }
.x-btn.sm svg { width: 10px; height: 10px; }
.chip-s { display: inline-flex; align-items: center; background: var(--panel); border-radius: 999px; padding-right: 4px; }
.chip-s:hover { background: var(--accent-soft); }
.chip-s > button[data-add] { background: transparent !important; }
.saved-item .acts { display: flex; gap: 6px; align-items: center; }
.saved-item .acts .icon-btn { display: inline-flex; align-items: center; }
.suggest button[data-add] { border: 0; background: var(--panel); border-radius: 999px; padding: 6px 12px 6px 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.suggest button[data-add] img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.suggest button[data-add]:hover { background: var(--accent-soft); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px dashed rgba(0,0,0,.2); border-radius: 16px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop b { font-weight: 500; }
.drop small { color: var(--muted); }
.fsec { padding: 30px 0; border-top: 1px solid var(--line); }
.fsec:first-child { padding-top: 0; border-top: 0; }
.fsec:last-child { padding-bottom: 0; }
.fsec-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.fsec-head h3 { font-size: 21px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fsec-head .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.step { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; margin-top: -2px; }
.opt-tag { font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); background: var(--panel); padding: 3px 10px; border-radius: 999px; }
.skip { border: 0; background: none; color: var(--accent); font-weight: 500; font-size: 14.5px; cursor: pointer; margin-top: 14px; padding: 0; }
.skip::after { content: " ↓"; }
.skip:hover { text-decoration: underline; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 7px 2px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(0,0,0,.14); border-radius: 12px; padding: 13px 14px; background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.field.req label::after { content: " *"; color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; display: none; }
.form-msg.ok { display: block; background: #e8f6ec; color: #17602e; }
.form-msg.err { display: block; background: #fdecec; color: #8a1c1c; }
.info p { color: var(--ink-2); margin: 4px 0; }
.info h3 { margin-bottom: 14px; }
.info .row { padding: 16px 0; border-top: 1px solid var(--line); }
.info .row:first-of-type { border-top: 0; padding-top: 0; }
.info small { color: var(--muted); display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.map { margin-top: 18px; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--panel); }
.map iframe { border: 0; width: 100%; height: 100%; filter: grayscale(.4); }

/* ---------- footer & toast ---------- */
.site-footer { background: var(--panel); color: var(--ink-2); font-size: 14px; position: relative; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 56px 24px 32px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { max-width: 22em; color: var(--muted); margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols > div { display: grid; gap: 8px; align-content: start; }
.footer-cols a:hover { color: var(--ink); }
.footer-legal { max-width: var(--max); margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.route-home .site-footer { background: var(--panel); }
body.route-configure .site-footer { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cfg { grid-template-columns: minmax(0, 1fr); height: auto; }
  .stage { height: 48vh; height: 48svh; min-height: 300px; position: sticky; top: var(--header-h); z-index: 2; }
  .panel { border-left: 0; }
  .panel-actions { position: sticky; bottom: 0; z-index: 3; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .panel-actions .btn { height: 40px; font-size: 14px; }
  body.route-configure .site-footer { display: block; }
}
@media (max-width: 900px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); box-shadow: 0 18px 40px rgba(0,0,0,.12); backdrop-filter: blur(20px); padding: 8px 24px 20px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { font-size: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .langs { margin-left: auto; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .cats, .cfg-pick { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 4/3.6; }
  .craft { grid-template-columns: 1fr; gap: 64px; }
  .craft-media img.inset { right: 4%; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .pd { grid-template-columns: 1fr; }
  .pd-media { min-height: 0; aspect-ratio: 4/3.4; }
  .pd-body { padding: 30px 26px; }
  .contact { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
}
@media (max-width: 560px) {
  /* 16px stops iOS Safari from zooming in when a field is tapped. */
  .field input, .field select, .field textarea, .num input { font-size: 16px; }
  .scroll-cue { white-space: nowrap; font-size: 11px; letter-spacing: .1em; }
  .stage-hint { font-size: 11.5px; bottom: 10px; }
  .wrap, .header-inner { padding: 0 16px; }
  .header-inner { gap: 14px; }
  .brand img { height: 36px; }
  .langs { gap: 6px; }
  .langs button { width: 26px; height: 18px; }
  .form { grid-template-columns: 1fr; }
  .box { padding: 24px 20px; }
  .cta-band { padding: 56px 22px; border-radius: 24px; }
  .panel-scroll, .panel-actions { padding-left: 16px; padding-right: 16px; }
  .stage-title h2 { font-size: 22px; }
  .stage-top { left: 14px; right: 14px; top: 14px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card .body { padding: 14px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
