/* fxbuild.dev — site styles
   Sections: 1 tokens · 2 base · 3 header · 4 hero · 5 trust · 6 services · 7 work
             8 demo · 9 retouch · 10 process · 11 about · 12 faq · 13 contact · 14 footer · 15 motion */

/* ---------- 1. Tokens ---------- */
@font-face { font-family: "Sora"; src: url("../assets/fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../assets/fonts/plex-sans-var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --base: #0a0c10;
  --surface: #11151c;
  --raised: #171c26;
  --grid: #232a36;
  --grid-strong: #323b4a;
  --text: #eef1f6;
  --muted: #a3adbd;
  --action: #23e6ee;
  --action-ink: #00191d;
  --c1: #da77ff; --c2: #c483ff; --c3: #ad8eff; --c4: #869eff; --c5: #60adff; --c6: #23e6ee;
  --ribbon: linear-gradient(100deg, var(--c1), var(--c3) 38%, var(--c5) 70%, var(--c6));
  --display: "Sora", "Segoe UI", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --header-h: 64px;
  --pad: 20px;
  --section: 64px;
  --r-cell: 4px;
  --r-card: 10px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (min-width: 600px) { :root { --pad: 28px; } }
@media (min-width: 900px) { :root { --section: 96px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--base); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--text); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, summary, input, select, textarea { touch-action: manipulation; }
[hidden] { display: none !important; }
::selection { background: var(--action); color: var(--action-ink); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.25; }
p { text-wrap: pretty; }
code, .mono { font-family: var(--mono); }

.container { width: min(100% - 2 * var(--pad), 1120px); margin-inline: auto; }
.section { padding-block: var(--section); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; background: var(--action); color: var(--action-ink); font-weight: 600; border-radius: var(--r-cell); }

.sec-head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.fn-label { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 400 .8125rem/1.4 var(--mono); }
.fn-label::before { content: "fx"; display: grid; place-items: center; width: 26px; height: 22px; border: 1px solid var(--grid-strong); border-radius: var(--r-cell); color: var(--text); font: italic 500 .75rem/1 var(--mono); }
.sec-head p:not(.fn-label) { color: var(--muted); font-size: 1.0625rem; max-width: 40rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--r-cell); font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: #8df4f8; }
.btn-ghost { background: var(--surface); border-color: var(--grid-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--action); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.text-link { color: var(--action); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3em; transition: text-decoration-color .15s; }
.text-link:hover { text-decoration-color: currentColor; }
p .text-link { text-decoration-color: rgb(35 230 238 / .5); }

/* "Selected cell": gradient border + fill handle on hover and keyboard focus */
.cell { position: relative; border: 1px solid var(--grid); border-radius: var(--r-cell); background: var(--surface); transition: border-color .15s; }
.cell::after { content: ""; position: absolute; right: -5px; bottom: -5px; width: 9px; height: 9px; background: var(--action); border: 2px solid var(--base); opacity: 0; transition: opacity .15s; pointer-events: none; }
.cell:hover, .cell:focus-within, .cell.is-selected { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--ribbon) border-box; }
.cell:hover::after, .cell:focus-within::after, .cell.is-selected::after { opacity: 1; }

.ribbon-divider { height: 40px; border-top: 1px solid var(--grid); overflow: hidden; }
.ribbon-divider.has-svg { border-top: 0; }
.ribbon-divider svg { width: 100%; height: 100%; }
.ribbon-divider path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ---------- 3. Header ---------- */
.progress { position: fixed; z-index: 60; inset: 0 0 auto 0; height: 2px; background: var(--ribbon); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgb(10 12 16 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--grid); }
.headrow { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { width: 148px; height: auto; }
.namebox { display: none; align-items: center; gap: 8px; min-width: 9.5rem; height: 30px; padding-inline: 10px; border: 1px solid var(--grid-strong); border-radius: var(--r-cell); color: var(--muted); font: 400 .8125rem/1 var(--mono); }
.namebox b { color: var(--text); font-weight: 500; }
.namebox::after { content: ""; margin-left: auto; border: 4px solid transparent; border-top-color: var(--muted); transform: translateY(2px); }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--muted); font-size: .9375rem; border-radius: var(--r-cell); transition: color .15s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.nav a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--action); border-radius: 0; }
.head-cta { margin-left: auto; }
.menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--surface); border: 1px solid var(--grid-strong); border-radius: var(--r-cell); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.sheet-nav { position: fixed; z-index: 49; inset: var(--header-h) 0 0 0; display: flex; flex-direction: column; padding: 8px var(--pad) 28px; background: var(--base); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.sheet-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
.sheet-nav a.sheet-row { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; min-height: 60px; border-bottom: 1px solid var(--grid); font: 600 1.375rem/1.2 var(--display); letter-spacing: -.02em; }
.sheet-row span:first-child { color: var(--muted); font: 400 .8125rem/1 var(--mono); }
.sheet-row span:last-child { color: var(--muted); font: 400 .8125rem/1 var(--mono); }
.sheet-nav .btn { margin-top: 24px; }
.sheet-contact { display: grid; gap: 4px; margin-top: 20px; color: var(--muted); font-size: .9375rem; }
.sheet-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
@media (min-width: 420px) { .head-cta { display: inline-flex; } }
@media (max-width: 419.98px) { .head-cta { display: none; } .menu-toggle { margin-left: auto; } }
@media (min-width: 960px) {
  .namebox { display: inline-flex; }
  .nav { display: flex; }
  .head-cta { margin-left: 8px; }
  .menu-toggle, .sheet-nav { display: none; }
}

/* ---------- 4. Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--grid); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 96px 48px; opacity: .55; -webkit-mask-image: radial-gradient(120% 90% at 85% 10%, #000 0, transparent 70%); mask-image: radial-gradient(120% 90% at 85% 10%, #000 0, transparent 70%); }
.hero-grid { display: grid; gap: 32px; padding-block: 32px 48px; }
.hero-copy { display: grid; gap: 20px; align-content: center; min-width: 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font: 400 .8125rem/1.4 var(--mono); }
.eyebrow i { width: 28px; height: 11px; background: repeating-linear-gradient(0deg, var(--c6) 0 1px, transparent 1px 3px); }
.fxbar { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: stretch; width: 100%; max-width: 30rem; min-height: 46px; background: var(--surface); border: 1px solid var(--grid-strong); border-radius: var(--r-cell); font: 400 .875rem/1 var(--mono); overflow: hidden; transition: border-color .15s; }
.fxbar:hover { border-color: var(--action); }
.fxbar-name { display: grid; place-items: center; min-width: 3rem; padding-inline: 10px; border-right: 1px solid var(--grid); color: var(--muted); }
.fxbar-fx { display: grid; place-items: center; width: 42px; border-right: 1px solid var(--grid); color: var(--text); font-style: italic; font-weight: 500; }
.fxbar-formula { display: flex; align-items: center; padding: 8px 12px; white-space: nowrap; overflow: hidden; }
.fn { color: var(--svc, var(--c1)); font-weight: 500; }
.str { color: #f3d9a2; }
.caret { flex: none; width: 2px; height: 1.2em; margin-left: 2px; background: var(--action); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(2.375rem, 1.3rem + 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.04em; }
.hero h1 em { display: block; font-style: normal; color: var(--c5); padding-bottom: .08em; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero h1 em { background: var(--ribbon); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.lead { max-width: 34rem; color: var(--muted); font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.pick { display: grid; gap: 10px; min-width: 0; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--grid); }
.pick-label { color: var(--muted); font: 400 .8125rem/1.4 var(--mono); }
.chips { display: flex; gap: 8px; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--grid); border-radius: var(--r-cell); color: var(--muted); font-size: .9375rem; white-space: nowrap; transition: color .15s, border-color .15s; }
.chip::before { content: ""; width: 3px; height: 16px; background: var(--c); }
.chip:hover, .chip[aria-pressed="true"] { color: var(--text); border-color: var(--c); }
.hero-stage { justify-self: center; max-width: 26rem; }
@media (max-width: 399.98px) { .fxbar-name { display: none; } }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; padding-block: 56px 64px; align-items: center; }
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .hero-stage { justify-self: end; max-width: 27rem; }
}

/* ---------- 5. Trust strip ---------- */
.trust { border-bottom: 1px solid var(--grid); background: var(--surface); }
.trust ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust li { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 12px 12px 0; color: var(--muted); font-size: .9375rem; line-height: 1.3; }
.trust li:nth-child(n+3) { border-top: 1px solid var(--grid); }
.trust li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--grid); }
.trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--c); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 860px) {
  .trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust li, .trust li:nth-child(n+3) { border-top: 0; padding-left: 20px; border-left: 1px solid var(--grid); }
  .trust li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- 6. Services ---------- */
.svc { border-top: 1px solid var(--grid); }
.svc-h { font: inherit; letter-spacing: 0; border-bottom: 1px solid var(--grid); }
.svc-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; width: 100%; min-height: 76px; padding: 14px 8px 14px 0; background: none; border: 0; text-align: left; transition: background-color .15s; }
.svc-tick { grid-row: 1 / 3; align-self: stretch; background: var(--c); opacity: .45; transition: opacity .15s; }
.svc-name { font: 600 1.1875rem/1.25 var(--display); letter-spacing: -.02em; }
.svc-line { grid-column: 2; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.svc-fn { grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.svc-row:hover { background: var(--surface); }
.svc-row:hover .svc-tick, .svc-row[aria-expanded="true"] .svc-tick { opacity: 1; }
.svc-row[aria-expanded="true"] .svc-fn { color: var(--c); }
.svc-panel { padding: 20px 0 28px 20px; border-bottom: 1px solid var(--grid); border-left: 4px solid var(--c); }
.svc-panel > p { color: var(--muted); max-width: 34rem; }
.svc-panel h4 { margin: 20px 0 10px; color: var(--muted); font: 400 .8125rem/1.4 var(--mono); }
.svc-list { display: grid; gap: 10px; }
.svc-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.svc-list li::before { content: ""; width: 9px; height: 5px; margin-top: .5em; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }
.svc-panel .btn { margin-top: 24px; }
.svc-sketch { margin-bottom: 16px; color: var(--c); }
.svc-sketch svg { width: 128px; height: 96px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-try { display: inline-flex; align-items: center; min-height: 44px; margin: 12px 0 0 4px; }
.svc-panel.swap > * { animation: swap .28s ease-out both; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.svc-eg { margin-top: 16px; color: var(--muted); font-size: .9375rem; }
.svc-eg b { color: var(--text); font-weight: 500; }
@media (max-width: 899.98px) { .svc-fn { display: none; } .svc-row { grid-template-columns: 4px minmax(0, 1fr) 20px; }
  .svc-row::after { content: ""; grid-column: 3; grid-row: 1 / 3; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
  .svc-row[aria-expanded="true"]::after { transform: rotate(-135deg); } }
@media (min-width: 900px) {
  .svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(6, auto) 1fr; column-gap: 48px; border-top: 0; }
  .svc-h { grid-column: 1; }
  .svc-h:first-of-type { border-top: 1px solid var(--grid); }
  .svc-panel { grid-column: 2; grid-row: 1 / -1; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; background: var(--surface); border: 1px solid var(--grid); border-top: 3px solid var(--c); border-radius: var(--r-card); }
  .svc-panel h3 { font-size: 1.5rem; margin-bottom: 10px; }
}
@media (max-width: 899.98px) { .svc-panel h3 { display: none; } }

/* ---------- 7. Selected work ---------- */
.work-grid { display: grid; gap: 20px; }
.case { display: flex; flex-direction: column; border-radius: var(--r-card); overflow: visible; }
.case-cover { aspect-ratio: 16 / 10; background: var(--base); border-bottom: 1px solid var(--grid); border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; }
.case-cover svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.case-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font: 400 .75rem/1.5 var(--mono); }
.case-meta span:first-child { color: var(--c); }
.case h3 { font-size: 1.3125rem; }
.case-body > p { color: var(--muted); }
.case-body > p b { color: var(--text); font-weight: 500; }
.case details { margin-top: auto; border-top: 1px solid var(--grid); }
.case summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; color: var(--text); font-weight: 500; }
.case summary::-webkit-details-marker { display: none; }
.case summary::after { content: "+"; color: var(--c); font: 400 1.25rem/1 var(--mono); }
.case details[open] summary::after { content: "–"; }
.case details > p:not(.case-result) { padding-bottom: 12px; color: var(--muted); font-size: .9375rem; }
.case details ul { display: grid; gap: 8px; padding-bottom: 8px; color: var(--muted); font-size: .9375rem; }
.case details li { padding-left: 16px; position: relative; }
.case details li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--c); }
.case-result { margin-top: 12px; padding: 12px; background: var(--base); border-left: 2px solid var(--c); border-radius: 0 var(--r-cell) var(--r-cell) 0; color: var(--text); font-size: .9375rem; }
.redact { display: inline-block; width: 4.5em; height: .8em; background: var(--grid-strong); border-radius: 1px; vertical-align: baseline; }
.work-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px; border: 1px dashed var(--grid-strong); border-radius: var(--r-cell); color: var(--muted); font-size: .9375rem; }
.work-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--c4); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 720px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 8. Live demo ---------- */
.demo { background: var(--surface); border-block: 1px solid var(--grid); }
.demo-grid { display: grid; gap: 32px; align-items: start; }
.demo-copy { display: grid; gap: 16px; }
.demo-copy p { color: var(--muted); max-width: 30rem; }
.demo-steps { display: grid; gap: 8px; margin-top: 4px; font: 400 .875rem/1.4 var(--mono); color: var(--muted); }
.demo-steps li { display: flex; align-items: center; gap: 10px; transition: color .2s; }
.demo-steps li::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--grid-strong); border-radius: 2px; transition: background-color .2s, border-color .2s; }
.demo-steps li.is-done { color: var(--text); }
.demo-steps li.is-done::before { background: var(--c2); border-color: var(--c2); }
.sheet { min-width: 0; background: var(--base); border: 1px solid var(--grid-strong); border-radius: var(--r-card); overflow: hidden; }
.sheet-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid var(--grid); background: var(--raised); }
.sheet-bar .btn { min-height: 44px; padding: 8px 14px; font-size: .9375rem; }
.sheet-bar .btn i { font: italic 500 .875rem/1 var(--mono); }
.sheet-status { margin-left: auto; color: var(--muted); font: 400 .75rem/1.4 var(--mono); }
.sheet-scroll { overflow-x: auto; }
.sheet table { width: 100%; min-width: 27rem; border-collapse: collapse; font: 400 .875rem/1.3 var(--mono); }
.sheet th, .sheet td { height: 40px; padding: 6px 10px; border: 1px solid var(--grid); text-align: left; white-space: pre; }
.sheet thead th, .sheet tbody th, .sheet tfoot th { background: var(--raised); color: var(--muted); font-weight: 400; text-align: center; }
.sheet tbody th { width: 2.25rem; }
.sheet tr > :first-child { border-left: 0; } .sheet tr > :last-child { border-right: 0; } .sheet thead tr:first-child > * { border-top: 0; }
.sheet .hdr td { color: var(--text); font-weight: 500; background: var(--surface); }
.sheet td.num { text-align: right; }
.sheet td.bad { color: #ffb4a8; background: rgb(255 120 100 / .07); }
.sheet td.flash { animation: flash .6s ease-out; }
@keyframes flash { from { background: rgb(196 131 255 / .35); } }
.sheet tr.dup td { color: var(--muted); text-decoration: line-through; }
.sheet tr.gone { display: none; }
.sheet tfoot td { color: var(--text); font-weight: 500; background: var(--surface); border-bottom: 0; }
.sheet tfoot td.num { color: var(--c6); }
@media (max-width: 559.98px) { .sheet th, .sheet td { padding: 6px 8px; font-size: .8125rem; } .sheet-status { width: 100%; margin-left: 0; } }
.sheet-note { padding: 10px 12px; border-top: 1px solid var(--grid); color: var(--muted); font-size: .8125rem; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; } .demo-copy { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- 9. Retouch (compare slider) ---------- */
.ba-wrap { display: grid; gap: 28px; align-items: center; }
.ba { --pos: 50%; position: relative; aspect-ratio: 3 / 2; border: 1px solid var(--grid-strong); border-radius: var(--r-card); overflow: hidden; background: var(--surface); user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--text); pointer-events: none; }
.ba-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px; background: var(--action); border: 3px solid var(--base); outline: 1px solid var(--text); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within { outline: 2px solid var(--action); outline-offset: 3px; }
.ba-tag { position: absolute; bottom: 10px; padding: 4px 8px; background: rgb(10 12 16 / .82); border: 1px solid var(--grid-strong); border-radius: var(--r-cell); font: 400 .75rem/1.3 var(--mono); pointer-events: none; }
.ba-tag.l { left: 10px; } .ba-tag.r { right: 10px; }
.ba-copy { display: grid; gap: 16px; }
.ba-copy p { color: var(--muted); }
.ba-list { display: grid; gap: 0; border-top: 1px solid var(--grid); }
.ba-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grid); font-size: .9375rem; }
.ba-list b { font-weight: 500; }
.ba-list span { color: var(--muted); }
@media (min-width: 900px) { .ba-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; } }

/* ---------- 10. Process ---------- */
.steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 20px 0 20px 28px; border-left: 1px solid var(--grid-strong); }
.step::before { content: ""; position: absolute; left: -5px; top: 28px; width: 9px; height: 9px; background: var(--c); border: 2px solid var(--base); box-sizing: content-box; margin: -2px 0 0 -2px; }
.step code { color: var(--c); font-size: .8125rem; }
.step h3 { margin: 6px 0 8px; font-size: 1.3125rem; }
.step p { color: var(--muted); font-size: .9688rem; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--grid-strong); }
  .step { padding: 28px 24px 0 0; border-left: 0; }
  .step::before { left: 0; top: -5px; margin: -2px 0 0 0; }
}

/* ---------- 11. About ---------- */
.about-grid { display: grid; gap: 32px; align-items: center; }
.stage { position: relative; isolation: isolate; width: 100%; max-width: 30rem; aspect-ratio: 1.08; overflow: hidden; background: linear-gradient(118deg, #14111d 3%, #221d33 48%, #2f3c50 100%); border: 1px solid var(--grid-strong); border-radius: var(--r-card); }
.stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#c6d9f10d 1px, transparent 1px), linear-gradient(90deg, #c6d9f10d 1px, transparent 1px); background-size: 12.5% 12.5%; }
.stage::after { content: ""; position: absolute; z-index: 1; inset: 0; background: url("../assets/brand/fx-stage.webp") 40% 40% / 125% auto no-repeat; mix-blend-mode: screen; opacity: .9; }
.stage img { position: absolute; z-index: 2; width: 76%; max-width: none; height: auto; left: 14%; top: 4%; }
.stage figcaption { position: absolute; z-index: 3; left: 12px; bottom: 12px; padding: 4px 8px; background: rgb(10 12 16 / .82); border: 1px solid var(--grid-strong); border-radius: var(--r-cell); font: 400 .75rem/1.3 var(--mono); }
.about-copy { display: grid; gap: 18px; }
.about-copy > p { color: var(--muted); font-size: 1.0625rem; }
.about-copy > p.about-lead { color: var(--text); font: 500 1.25rem/1.45 var(--body); }
.props { border-top: 1px solid var(--grid); font-size: .9375rem; }
.props div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grid); }
.props dt { color: var(--muted); font: 400 .8125rem/1.7 var(--mono); }
.values { display: grid; gap: 12px; }
.values { margin-top: 20px; }
.values li { padding: 16px; }
.values b { display: block; font: 600 1.0625rem/1.3 var(--display); letter-spacing: -.01em; }
.values span { color: var(--muted); font-size: .9375rem; }
@media (min-width: 620px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } }

/* ---------- 12. FAQ ---------- */
.faq-grid { display: grid; gap: 24px; }
.faq-list { border-top: 1px solid var(--grid); }
.faq-list details { border-bottom: 1px solid var(--grid); }
.faq-list summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 1.0625rem/1.35 var(--display); letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; justify-self: center; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--action); }
.faq-list details p { padding: 0 40px 20px 0; color: var(--muted); max-width: 44rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; } .faq-grid .sec-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; margin-bottom: 0; } }

/* ---------- 13. Contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--grid); }
.contact-grid { display: grid; gap: 36px; }
.contact-copy { display: grid; gap: 18px; align-content: start; }
.contact-copy > p { color: var(--muted); font-size: 1.0625rem; max-width: 30rem; }
.contact-formula { display: block; width: fit-content; max-width: 100%; padding: 10px 12px; background: var(--base); border: 1px solid var(--grid-strong); border-radius: var(--r-cell); font: 400 .875rem/1.4 var(--mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contact-formula .fn { color: var(--c6); font-weight: 500; } .contact-formula .str { color: #f3d9a2; }
.channels { display: grid; gap: 10px; }
.channel { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px 8px 8px; background: var(--base); }
.channel.cell:hover, .channel.cell:focus-visible { background: linear-gradient(var(--base), var(--base)) padding-box, var(--ribbon) border-box; }
.channel.cell:focus-visible { border-color: transparent; }
.channel.cell:focus-visible::after { opacity: 1; }
.channel > svg { width: 22px; height: 22px; justify-self: center; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.channel small { display: block; color: var(--muted); font: 400 .75rem/1.4 var(--mono); }
.channel b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.channel i { color: var(--muted); font-style: normal; }
.form { display: grid; gap: 16px; padding: 20px; background: var(--base); border: 1px solid var(--grid-strong); border-radius: var(--r-card); }
.form h3 { font-size: 1.3125rem; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9375rem; font-weight: 500; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--surface); border: 1px solid #5d6878; border-radius: var(--r-cell); font-size: 1rem; }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; border-color: transparent; }
.field input::placeholder, .field textarea::placeholder { color: #7f8a9c; }
.field .err { display: none; color: #ffb4a8; font-size: .875rem; }
.field.is-invalid .err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff8f7d; }
.form-row { display: grid; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-note { color: var(--muted); font-size: .875rem; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-left: 2px solid var(--c6); background: var(--surface); border-radius: 0 var(--r-cell) var(--r-cell) 0; font-size: .9375rem; }
.hp { position: absolute; left: -9999px; }
@media (min-width: 560px) { .form { padding: 28px; } .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }

/* ---------- 14. Footer + mobile dock ---------- */
.footer { border-top: 1px solid var(--grid); padding-block: 32px calc(32px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 20px; }
.footer p { color: var(--muted); font-size: .9375rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9375rem; }
.footer nav a:hover { color: var(--text); }
.footer .legal { font: 400 .75rem/1.6 var(--mono); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } .footer .legal { grid-column: 1 / -1; } }
.dock { position: fixed; z-index: 40; inset: auto 0 0 0; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgb(10 12 16 / .96); border-top: 1px solid var(--grid-strong); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.dock.is-up { transform: none; visibility: visible; transition: transform .25s ease; }
.dock .btn { min-height: 46px; padding: 8px 10px; font-size: .9375rem; }
@media (min-width: 720px) { .dock { display: none; } }
@media (max-width: 719.98px) { :root { scroll-padding-bottom: 80px; } body.has-dock .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Without JavaScript: show everything, hide what cannot work ---------- */
html:not(.js) .svc { display: block; }
html:not(.js) .svc-panel[hidden] { display: block !important; }
html:not(.js) .svc-panel { position: static; margin-bottom: 16px; }
html:not(.js) .pick, html:not(.js) .demo, html:not(.js) .menu-toggle, html:not(.js) .namebox, html:not(.js) .ba input, html:not(.js) .ba-line { display: none; }

/* ---------- 15. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .draw .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6, .1, .2, 1); transition-delay: calc(var(--i, 0) * 60ms); }
.js .draw.is-in .d { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw .d { stroke-dashoffset: 0; }
  .caret { display: none; }
}
@media print {
  .site-header, .dock, .progress { display: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .draw .d { stroke-dashoffset: 0 !important; }
}
@media (forced-colors: active) {
  .hero h1 em { background: none; color: CanvasText; }
  .btn, .chip, .cell { border-color: ButtonText; }
}
