/* Layout: centered hero over an editor timeline, then work grid, then a two-column order builder (services list + sticky order panel). One dark brand world taken from the nhk mark. */
:root {
  --ink: #0B0620;
  --surface: #130C2C;
  --surface-2: #1B1340;
  --line: rgba(196, 186, 255, .12);
  --line-strong: rgba(196, 186, 255, .24);
  --fg: #F4F2FF;
  --muted: #A29CC7;
  --accent: #6E5BFF;
  --accent-soft: #A497FF;
  --ok: #3DDC97;
  --warn: #FFB547;
  --f-display: "Thmanyah Serif Display", "Thmanyah Sans", Georgia, serif;
  --f-body: "Thmanyah Sans", "Segoe UI", Tahoma, system-ui, sans-serif;
  --r: 14px;
  color-scheme: dark;
}

@font-face { font-family: "Thmanyah Sans"; src: url("fonts/thmanyahsans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("fonts/thmanyahsans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("fonts/thmanyahsans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("fonts/thmanyahsans-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; src: url("fonts/thmanyahserifdisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Display"; src: url("fonts/thmanyahserifdisplay-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 40rem at 100% -10%, rgba(110, 91, 255, .22), transparent 60%),
    radial-gradient(50rem 36rem at -10% 110%, rgba(110, 91, 255, .14), transparent 60%),
    var(--ink);
  color: var(--fg);
  font: 400 17px/1.85 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
:lang(en) body, body:lang(en) { line-height: 1.65; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px); /* header owns the status-bar strip instead of sliding over content */
  background: rgba(11, 6, 32, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { height: 26px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-inline-start: 18px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.tools { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.seg button {
  border: 0; background: none; cursor: pointer; padding: 3px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.6;
}
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
@media (max-width: 820px) { .nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7D6CFF; }
.btn-primary:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
}
.hero .dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.no-canvas .hero { background: radial-gradient(circle, rgba(196, 186, 255, .13) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.hero .stage { position: relative; z-index: 2; padding-block: 120px 230px; display: grid; justify-items: center; }
.hero .ruler-x {
  position: absolute; inset: 0 0 auto 0; height: 22px; border-bottom: 1px solid var(--line); z-index: 1;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 100px) bottom / 100% 10px no-repeat,
              repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px) bottom / 100% 5px no-repeat, var(--ink);
}
.hero .ruler-y {
  position: absolute; top: 22px; bottom: 0; inset-inline-end: 0; width: 22px; border-inline-start: 1px solid var(--line); z-index: 1;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 100px) left / 10px 100% no-repeat,
              repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 10px) left / 5px 100% no-repeat, var(--ink);
}
[dir="ltr"] .hero .ruler-y { background-position: right, right; }
.hero .guide { position: absolute; top: 22px; bottom: 0; left: 50%; width: 1px; background: rgba(255, 77, 190, .45); pointer-events: none; }
.hero [data-sel] { position: relative; }
.sel {
  position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: all .3s cubic-bezier(.2, .8, .2, 1);
  background:
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) left / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) right / 1px 100% no-repeat;
  animation: ants .5s linear infinite;
}
.sel.ready { opacity: 1; }
@keyframes ants { to { background-position: 10px 0, -10px 100%, 0 -10px, 100% 10px; } }
.sel i { position: absolute; width: 8px; height: 8px; background: #fff; border: 1px solid #000; }
.sel i:nth-child(1) { top: -4px; left: -4px; } .sel i:nth-child(2) { top: -4px; right: -4px; }
.sel i:nth-child(3) { bottom: -4px; left: -4px; } .sel i:nth-child(4) { bottom: -4px; right: -4px; }
.sel .dim {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: pre;
  background: #2A2A2E; color: #fff; font: 700 11px/1 var(--f-body); padding: 5px 8px; border-radius: 5px;
}
.cursor { position: absolute; z-index: 4; top: 0; left: 0; pointer-events: none; opacity: 0; transition: transform .9s cubic-bezier(.5, 0, .2, 1), opacity .3s; }
.cursor.ready { opacity: 1; }
.cursor .tag { position: absolute; top: 18px; left: 14px; background: var(--accent); color: #fff; font: 700 11px/1 var(--f-body); padding: 4px 8px; border-radius: 6px 6px 6px 1px; white-space: nowrap; }
.layers {
  position: absolute; z-index: 2; inset-inline-start: max(28px, 3vw); bottom: 36px; width: 220px; text-align: start;
  border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(19, 12, 44, .92); overflow: hidden; font-size: 13px; line-height: 1.5;
}
.layers header { display: flex; justify-content: space-between; padding: 7px 12px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.layers div { display: flex; gap: 10px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--line); color: var(--muted); transition: background .2s, color .2s; }
.layers div:last-child { border-bottom: 0; }
.layers div b { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 700 12px/1 var(--f-body); color: var(--fg); flex: none; }
.layers .bgsw { background: var(--ink); }
.layers div.on { background: rgba(110, 91, 255, .28); color: var(--fg); }
.layers .eye { margin-inline-start: auto; font-size: 11px; opacity: .6; }
.spec { position: absolute; z-index: 2; inset-inline-end: max(44px, 4vw); bottom: 40px; text-align: end; font-size: 12px; color: var(--muted); line-height: 1.7; }
.spec b { color: var(--fg); font: 900 24px/1.4 var(--f-display); display: block; }
@media (max-width: 900px) { .layers, .spec { display: none; } .hero .stage { padding-block: 84px 96px; } }
.edit-band { padding-block: 48px 20px; border-top: 1px solid var(--line); }
.edit-band .reel { margin-top: 0; }
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--accent-soft); letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, .16); flex: none; }
.eyebrow[data-tone="busy"]::before { background: var(--warn); box-shadow: 0 0 0 4px rgba(255, 181, 71, .16); }
.eyebrow[data-tone="closed"]::before { background: #FF6B8A; box-shadow: 0 0 0 4px rgba(255, 107, 138, .16); }
.hero h1 {
  font: 900 clamp(42px, 7.2vw, 84px)/1.32 var(--f-display);
  margin: 22px auto 0; max-width: 15ch; text-wrap: balance; padding-inline: 8px; letter-spacing: -.005em;
}
:lang(en) .hero h1 { line-height: 1.08; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent-soft); }
.hero .lede { max-width: 56ch; margin: 44px auto 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); text-wrap: pretty; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 46px; }

/* Editor timeline under the hero */
.reel {
  direction: ltr; position: relative; margin: 64px auto 0; max-width: 980px;
  border: 1px solid var(--line); border-radius: var(--r); background: rgba(19, 12, 44, .7);
  padding: 14px 16px 18px; overflow: hidden; text-align: left;
}
.reel .bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding-bottom: 10px; }
.reel .bar b { color: var(--fg); font-weight: 500; }
.reel .dots { display: flex; gap: 6px; }
.reel .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ruler {
  height: 22px; position: relative; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 10%) bottom / 100% 9px no-repeat,
              repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2%) bottom / 100% 5px no-repeat;
}
.ruler span { position: absolute; top: 0; font-size: 10px; color: var(--muted); transform: translateX(3px); }
.tracks { display: grid; gap: 6px; padding-top: 10px; }
.track { position: relative; height: 34px; border-radius: 6px; background: rgba(255, 255, 255, .025); }
.clip {
  position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 1%); width: calc(var(--w) * 1%);
  border-radius: 6px; padding: 0 10px; display: flex; align-items: center; overflow: hidden;
  font: 500 12px/1 var(--f-body); white-space: nowrap; color: #fff;
  background: var(--c, var(--accent)); border: 1px solid rgba(255, 255, 255, .14);
}
.clip.v { --c: linear-gradient(180deg, #6E5BFF, #5544e0); }
.clip.d { --c: linear-gradient(180deg, #2E2466, #251c55); }
.clip.m { --c: linear-gradient(180deg, #8B7BFF, #6E5BFF); }
.clip.a {
  --c: #1d1748; color: var(--muted);
  background-image: repeating-linear-gradient(90deg, rgba(164, 151, 255, .55) 0 2px, transparent 2px 5px);
  background-size: 100% 60%; background-position: center; background-repeat: repeat-x;
}
.playhead { position: absolute; top: 44px; bottom: 10px; left: 30%; width: 2px; background: var(--fg); pointer-events: none; }
.playhead.flip .tc { left: auto; right: 4px; }
.playhead::before { content: ""; position: absolute; top: -6px; left: -6px; border: 7px solid transparent; border-top-color: var(--fg); }
.playhead .tc {
  position: absolute; top: -32px; left: 4px;
  background: var(--fg); color: var(--ink); font: 700 11px/1 var(--f-body); padding: 5px 7px; border-radius: 5px; white-space: nowrap;
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.sec { padding-block: 84px; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 40px; }
.sec-head h2 { font: 900 clamp(32px, 4.4vw, 50px)/1.4 var(--f-display); margin: 0; text-wrap: balance; }
:lang(en) .sec-head h2 { line-height: 1.12; }
.sec-head p { margin: 0; color: var(--muted); max-width: 54ch; }
.kicker { font-size: 13px; font-weight: 700; color: var(--accent-soft); letter-spacing: .06em; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 6px 16px;
  font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); transition: all .2s;
}
.chip[aria-pressed="true"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }

/* ---------- Work grid ---------- */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .work { gap: 18px 12px; }
  .cover .art { font-size: 24px; padding: 14px; }
  .piece figcaption { flex-direction: column; gap: 0; }
  .piece h3 { font-size: 15px; }
  .piece small { font-size: 13px; white-space: normal; }
  .cover .tag { font-size: 11px; inset-block-start: 10px; inset-inline-start: 10px; }
  .reel .clip { font-size: 10px; padding: 0 6px; }
  .reel .bar b { visibility: hidden; }
}
.piece { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cover {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; max-width: 100%;
  border: 1px solid var(--line); background: var(--bg, var(--surface-2));
  display: grid; place-items: center; text-align: center; isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.piece:hover .cover { transform: translateY(-4px); }
.cover::after {
  content: ""; position: absolute; inset: 8px; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .2s;
  background:
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) left / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) right / 1px 100% no-repeat;
  animation: ants .5s linear infinite;
}
.piece:hover .cover::after { opacity: .9; }
.cover .art { font: 900 clamp(30px, 3.6vw, 44px)/1.3 var(--f-display); color: var(--ink-on, #fff); padding: 24px; text-wrap: balance; }
.cover .tag {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; background: rgba(11, 6, 32, .55); color: #fff; backdrop-filter: blur(6px);
}
.cover .play {
  position: absolute; inset-block-end: 14px; inset-inline-end: 14px; display: flex; gap: 8px; align-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: rgba(11, 6, 32, .55); padding: 4px 10px 4px 6px; border-radius: 999px;
}
.cover .play::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff; clip-path: polygon(35% 25%, 75% 50%, 35% 75%); background-clip: content-box; box-shadow: inset 0 0 0 20px #fff; }
.piece figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.piece h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.piece small { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* ---------- Order builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.svc-list { display: grid; gap: 10px; }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s, background .2s;
}
.svc.on { border-color: rgba(110, 91, 255, .7); background: linear-gradient(0deg, rgba(110, 91, 255, .08), rgba(110, 91, 255, .08)), var(--surface); }
.svc h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.svc p { margin: 2px 0 8px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.svc .meta { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.svc .price { color: var(--fg); font-weight: 700; }
.svc .deal { color: var(--ok); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button {
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; border-radius: 50%;
  display: grid; place-items: center; color: var(--fg);
}
.stepper button:hover { background: var(--surface-2); }
.stepper button:disabled { opacity: .3; cursor: default; background: none; }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .stepper { justify-self: start; }
}

.panel {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px);
  border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); padding: 22px;
}
.panel h3 { margin: 0 0 4px; font-size: 18px; }
.panel .empty { color: var(--muted); font-size: 15px; margin: 6px 0 16px; }
.lines { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.lines li span:first-child { min-width: 0; }
.lines .sub { color: var(--muted); font-size: 13px; display: block; }
.lines .disc { color: var(--ok); }
.rush {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px;
  border-radius: 12px; background: var(--surface-2); margin: 14px 0; cursor: pointer; font-size: 15px;
}
.rush small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
[dir="rtl"] .switch input:checked + span::after { transform: translateX(-18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.totals { border-top: 1px dashed var(--line-strong); padding-top: 14px; display: grid; gap: 8px; }
.totals .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.totals .grand { color: var(--fg); font-size: 22px; font-weight: 900; align-items: baseline; }
.totals .grand span:first-child { font-size: 16px; font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 18px; }
.split div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.split small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.split b { font-size: 17px; }
.panel .btn { width: 100%; }
.panel .note { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.7; text-align: center; }

/* Mobile order bar */
.mbar {
  position: fixed; inset: auto 0 0; z-index: 30; background: rgba(19, 12, 44, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: none; align-items: center; justify-content: space-between; gap: 12px;
}
.mbar small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.mbar b { font-size: 18px; }
@media (max-width: 980px) { .mbar.show { display: flex; } }

/* Form */
.form-card { margin-top: 28px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); padding: clamp(20px, 3vw, 34px); }
.form-card h3 { margin: 0 0 6px; font: 900 26px/1.5 var(--f-display); }
.form-card > p { margin: 0 0 22px; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 700; padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink);
  padding: 10px 14px; font-size: 16px; line-height: 1.6; transition: border-color .2s;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: #FF6B8A; }
.err { color: #FF8FA6; font-size: 13px; }
.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 15px; font-weight: 500; transition: all .2s;
}
.radio input:checked + span { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.radio input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.form-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 24px; }
.form-foot p { margin: 0; color: var(--muted); font-size: 14px; max-width: 46ch; }

.done { text-align: center; padding-block: 12px; }
.done .code { display: inline-block; margin: 10px 0 6px; font: 900 34px/1.3 var(--f-body); letter-spacing: .06em; color: var(--accent-soft); }
.copy-row { display: flex; gap: 8px; max-width: 520px; margin: 14px auto 0; }
.copy-row .input { min-width: 0; direction: ltr; font-size: 14px; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; border-top: 2px solid var(--line-strong); padding-top: 16px; }
.steps li:nth-child(3) { border-top-color: var(--accent); }
.steps li::before { content: counter(s, arabic-indic); display: block; font: 900 30px/1.2 var(--f-display); color: var(--accent-soft); margin-bottom: 8px; }
:lang(en) .steps li::before { content: counter(s, decimal-leading-zero); }
.steps h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.5; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ---------- Tracking ---------- */
.track-box { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 560px) { .track-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .track-box .btn { grid-column: 1 / -1; } }
.track-box .input { direction: ltr; text-align: center; letter-spacing: .06em; font-weight: 700; }
.track-msg { text-align: center; margin: 14px auto 0; }
#myOrders { text-align: center; margin-top: 22px; }
.mine-title { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.mine-title a { color: var(--accent-soft); }
.mine { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mine .chip { text-decoration: none; }
.order { max-width: 980px; margin: 30px auto 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); overflow: hidden; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.order-head b { font-size: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 181, 71, .14); color: var(--warn); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.order-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
@media (max-width: 760px) { .order-body { grid-template-columns: minmax(0, 1fr); } }
.tl { list-style: none; margin: 0; padding: 22px; display: grid; gap: 0; border-inline-end: 1px solid var(--line); }
@media (max-width: 760px) { .tl { border-inline-end: 0; border-bottom: 1px solid var(--line); } }
.tl li { position: relative; padding-inline-start: 26px; padding-bottom: 16px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.tl li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.tl li::after { content: ""; position: absolute; inset-inline-start: 6px; top: 20px; bottom: -2px; width: 1px; background: var(--line-strong); }
.tl li:last-child::after { display: none; }
.tl li.done { color: var(--fg); }
.tl li.done::before { background: var(--accent); border-color: var(--accent); }
.tl li.now { color: var(--fg); font-weight: 700; }
.tl li.now::before { border-color: var(--warn); background: var(--warn); box-shadow: 0 0 0 4px rgba(255, 181, 71, .18); }
.tl small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.order-main { padding: 22px; display: grid; gap: 18px; min-width: 0; }
.previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .previews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wm {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); max-width: 100%;
  display: grid; place-items: center; color: #fff; font: 900 20px/1.3 var(--f-display); text-align: center; padding: 10px;
}
.wm::after {
  content: ""; position: absolute; inset: -40%; transform: rotate(-24deg); opacity: .32; pointer-events: none;
  background-image: var(--wm); background-size: 72px auto; background-repeat: space;
}
.lock { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.lock svg { flex: none; }
.pay { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.pay h4 { margin: 0; font-size: 16px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 620px) { .pay-methods { grid-template-columns: minmax(0, 1fr); } }
.pm { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; min-width: 0; }
.pm small { display: block; color: var(--muted); font-size: 12px; }
.pm .num { font-weight: 700; word-break: break-all; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); margin-top: 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.foot svg { height: 22px; width: auto; display: block; }
.contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--fg); }

.demo-flag {
  position: fixed; z-index: 25; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-start: max(16px, env(safe-area-inset-left, 0px));
  background: var(--warn); color: #241400; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
@media (max-width: 980px) { .demo-flag { display: none; } }

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

/* ---------- Motion ---------- */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }

/* Scroll playhead under the header (CapCut timeline) */
.scrub {
  position: absolute; inset: auto 0 -1px 0; height: 3px; direction: ltr; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 5%);
}
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(110, 91, 255, .2), var(--accent)); }
.scrub-head { position: absolute; top: -4px; left: 0; width: 2px; height: 11px; background: var(--fg); border-radius: 1px; }
.scrub-head span {
  position: absolute; top: 12px; left: 4px; background: var(--fg); color: var(--ink); font: 700 10px/1 var(--f-body);
  padding: 3px 5px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity .25s;
}
.scrub-head.flip span { left: auto; right: 4px; }
.scrolling .scrub-head span { opacity: 1; }

/* Light running around the order panel and the phone order bar */
.panel, .mbar { isolation: isolate; }
.panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none;
  padding: 1.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  background: conic-gradient(from var(--a), transparent 0 68%, var(--accent-soft) 82%, #fff 86%, var(--accent) 90%, transparent 100%);
  animation: spin 4.5s linear infinite;
}
.panel::after {
  content: ""; position: absolute; inset: -12px; border-radius: 28px; z-index: -2; pointer-events: none; filter: blur(20px); opacity: .35;
  background: conic-gradient(from var(--a), transparent 0 72%, var(--accent) 86%, transparent 100%); animation: spin 4.5s linear infinite;
}
.mbar::before {
  content: ""; position: absolute; inset: -1px 0 auto; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-soft), #fff, var(--accent), transparent) 0 0 / 40% 100% no-repeat;
  animation: sweep 3s linear infinite;
}
@keyframes sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* Marquee reveal for work covers; selection outline on hover (mouse) or centered card (touch) */
.cover .fillin { display: contents; }
.piece.pre .cover > :not(.ants-draw):not(.ba-range) { opacity: 0; }
.piece.pre .cover { background: transparent; border-color: transparent; }
.ants-draw {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transform-origin: top right;
  background:
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) left / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) right / 1px 100% no-repeat;
}
[dir="ltr"] .ants-draw { transform-origin: top left; }
.piece.reveal .ants-draw { animation: draw 1.5s cubic-bezier(.6, 0, .2, 1) forwards, ants .5s linear infinite; }
.piece.reveal .cover { animation: coverIn 1.5s ease forwards; }
.piece.reveal .cover > :not(.ants-draw):not(.ba-range) { animation: fadeIn 1.5s ease forwards; }
@keyframes draw { 0% { transform: scale(0); opacity: 1; } 45% { transform: scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes coverIn { 0%, 45% { clip-path: inset(0 0 100% 0); } 80%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes fadeIn { 0%, 50% { opacity: 0; } 100% { opacity: 1; } }
.piece.act .cover { transform: translateY(-4px); }
.piece.act .cover::after { opacity: .9; }
@media (hover: none) { .piece:hover .cover { transform: none; } .piece:hover .cover::after { opacity: 0; } .piece.act .cover::after { opacity: .9; } }

/* Rolling digits */
.odo { display: inline-flex; direction: ltr; align-items: baseline; }
.odo .d { display: inline-block; height: 1.2em; overflow: hidden; clip-path: inset(0); vertical-align: bottom; width: .6em; text-align: center; }
.odo .d > span { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.3, 1.35, .4, 1); }
.odo .d i { font-style: normal; height: 1.2em; line-height: 1.2em; }
.odo .s { white-space: pre; }

@media (prefers-reduced-motion: reduce) {
  .panel::before, .panel::after, .mbar::before { animation: none; }
  .piece.pre .cover > :not(.ants-draw):not(.ba-range) { opacity: 1; }
}

/* ---------- Live features ---------- */
button.cover { padding: 0; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .play { gap: 6px; padding: 4px 10px 4px 8px; }
.cover .play::before { display: none; }
.empty-note { grid-column: 1 / -1; text-align: center; color: var(--muted); padding-block: 30px; }

/* Before / after */
.cover.ba { cursor: ew-resize; touch-action: pan-y; }
.ba-after, .ba-before { position: absolute; inset: 0; background: var(--bg, var(--surface-2)); display: grid; place-items: center; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
[dir="rtl"] .ba-before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.ba-before .art, .ba-before img { filter: grayscale(1) contrast(.75) brightness(.9); }
.ba-before:has(.art) { filter: grayscale(1) contrast(.75) brightness(.85); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
[dir="rtl"] .ba-line { left: auto; right: var(--pos); margin: 0 -1px 0 0; }
.ba-line::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.ba-lbl { position: absolute; z-index: 2; bottom: 12px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(11, 6, 32, .55); padding: 2px 9px; border-radius: 999px; pointer-events: none; }
.ba-l1 { inset-inline-start: 12px; } .ba-l2 { inset-inline-end: 12px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
[dir="rtl"] .ba-range { direction: rtl; }
.ba-range:focus-visible ~ .tag { outline: 2px solid var(--accent-soft); }

/* Packages */
.pkg-lede { margin: 0 0 4px; color: var(--muted); }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pkg { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.pkg.feat { border-color: rgba(110, 91, 255, .55); }
.pkg.on { border-color: var(--accent); background: linear-gradient(0deg, rgba(110, 91, 255, .1), rgba(110, 91, 255, .1)), var(--surface); }
.pkg-flag { position: absolute; top: -11px; inset-inline-start: 16px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.pkg h3 { margin: 0; font-size: 19px; line-height: 1.5; }
.pkg p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.pkg-price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.pkg-price b { font-size: 24px; font-weight: 900; }
.pkg-price span { color: var(--muted); font-size: 14px; }
.pkg .deal { color: var(--ok); font-size: 13px; }
.pkg ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.pkg li::before { content: "✓"; color: var(--accent-soft); margin-inline-end: 8px; }
.pkg .btn { margin-top: auto; }

/* Order form groups */
.qgroup { border: 0; border-top: 1px solid var(--line); margin: 0 0 22px; padding: 18px 0 0; }
.qgroup:first-child { border-top: 0; padding-top: 0; }
.qgroup > legend { font: 900 19px/1.5 var(--f-display); padding: 0 0 12px; float: left; width: 100%; }
.qgroup > legend + * { clear: both; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
[dir="rtl"] select.input { background-position: 20px 50%, 15px 50%; }
.form-err { color: #FF8FA6; font-size: 14px; margin: 0 0 6px; }
.done-cta { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.review { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.stars { color: var(--warn); letter-spacing: 2px; font-size: 15px; }
.stars span { color: var(--line-strong); }
.review blockquote { margin: 0; line-height: 1.85; }
.review figcaption { color: var(--muted); font-size: 14px; margin-top: auto; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; color: var(--fg); max-width: min(920px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); }
.lightbox::backdrop { background: rgba(5, 3, 16, .82); backdrop-filter: blur(6px); }
.lb-inner { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 14px; display: grid; gap: 12px; max-height: calc(100dvh - 24px); }
.lb-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.lb-top b { display: block; font-size: 17px; }
.lb-top small { color: var(--muted); font-size: 13px; }
.lb-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); cursor: pointer; font-size: 16px; }
.lb-body { min-height: 0; display: grid; place-items: center; overflow: auto; border-radius: 12px; background: #000; }
.lb-body img, .lb-body video { max-width: 100%; max-height: calc(100dvh - 170px); display: block; }
.lb-body.is-ig { background: #fff; }
.lb-body iframe { width: min(420px, 100%); height: min(720px, calc(100dvh - 170px)); border: 0; display: block; }
.lb-cover { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100dvh - 170px); background: var(--bg, var(--surface-2)); display: grid; place-items: center; font: 900 clamp(30px, 6vw, 56px)/1.3 var(--f-display); text-align: center; position: relative; }
.lb-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-ig { justify-self: center; }

/* ---------- Order page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.order-page { padding-block: 34px 80px; }
.loading { text-align: center; color: var(--muted); padding-block: 80px; }
.o-demo { background: rgba(255, 181, 71, .12); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 20px; }
.o-empty { text-align: center; padding-block: 60px; display: grid; justify-items: center; gap: 12px; }
.o-empty h1 { margin: 0; font: 900 40px/1.4 var(--f-display); }
.o-empty p { margin: 0; color: var(--muted); max-width: 46ch; }
.o-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.o-head h1 { margin: 2px 0 8px; font: 900 clamp(32px, 5vw, 46px)/1.2 var(--f-body); letter-spacing: .04em; }
.o-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.o-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.o-pill[data-tone="wait"] { background: rgba(164, 151, 255, .14); color: var(--accent-soft); }
.o-pill[data-tone="act"] { background: rgba(255, 181, 71, .14); color: var(--warn); }
.o-pill[data-tone="ok"] { background: rgba(61, 220, 151, .14); color: var(--ok); }
.o-pill[data-tone="bad"] { background: rgba(255, 107, 138, .14); color: #FF8FA6; }
.o-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .o-grid { grid-template-columns: minmax(0, 1fr); } }
.o-main, .o-side { display: grid; gap: 16px; min-width: 0; }
.o-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: clamp(16px, 2.6vw, 24px); display: grid; gap: 14px; min-width: 0; }
.o-card h2 { margin: 0; font-size: 18px; line-height: 1.5; }
.o-card h3 { margin: 0; font-size: 16px; }
.o-sub { margin: 0; color: var(--muted); font-size: 14px; }
.o-msg { margin: 0; font-size: 16px; line-height: 1.9; }
.o-ok { margin: 0; color: var(--ok); font-weight: 500; }
.steps-h { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps-h li { display: grid; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.steps-h li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line-strong); }
.steps-h li.done::before { background: var(--accent); }
.steps-h li.now::before { background: linear-gradient(90deg, var(--warn), var(--accent)); }
.steps-h li.done, .steps-h li.now { color: var(--fg); }
.steps-h li.now { font-weight: 700; }
@media (max-width: 520px) { .steps-h span { font-size: 11px; } }
.o-pay { border-color: rgba(110, 91, 255, .5); }
.o-due { font-size: clamp(30px, 5vw, 40px); font-weight: 900; line-height: 1.2; }
.pm-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pm-copy { border: 1px solid var(--line-strong); background: none; color: var(--fg); border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; flex: none; }
.pm-note { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; padding-inline: 12px; }
.proof { display: grid; gap: 12px; border-top: 1px dashed var(--line-strong); padding-top: 14px; }
input[type="file"].input { padding: 10px; font-size: 14px; }
.wm-media { padding: 0; border: 0; cursor: zoom-in; }
.wm-media img, .wm-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.wm-media video { object-fit: contain; background: #000; position: relative; z-index: 0; }
.wm-pdf { text-decoration: none; background: var(--surface-2); }
.wm-pdf small { font: 400 12px/1.4 var(--f-body); color: var(--muted); }
.wm::after { z-index: 1; }
.lock { margin: 0; }
.finals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.finals li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.fname { min-width: 0; overflow-wrap: anywhere; font-size: 14px; direction: ltr; unicode-bidi: isolate; }
.thread { display: grid; gap: 10px; }
.msg { border-radius: 14px; padding: 10px 14px; background: var(--surface-2); max-width: 88%; }
.msg.admin { background: rgba(110, 91, 255, .16); justify-self: end; }
.msg small { color: var(--muted); font-size: 12px; }
.msg p { margin: 2px 0 0; white-space: pre-wrap; line-height: 1.8; }
.rev-form, .rate { display: grid; gap: 10px; }
.rev-form .btn, .rate .btn { justify-self: start; }
.star-pick { display: flex; gap: 4px; direction: ltr; justify-content: flex-end; }
[dir="ltr"] .star-pick { justify-content: flex-start; }
.star-pick label { position: relative; cursor: pointer; font-size: 30px; color: var(--line-strong); line-height: 1; }
.star-pick input { position: absolute; opacity: 0; inset: 0; }
.star-pick label:has(~ label input:checked), .star-pick label:has(input:checked) { color: var(--warn); }
.star-pick input:focus-visible + span { outline: 2px solid var(--accent-soft); border-radius: 4px; }
.o-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-li { color: var(--muted); font-size: 14px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 760px) { .about-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } }
.portrait { margin: 0; position: relative; width: 100%; max-width: 400px; }
@media (max-width: 760px) { .portrait { max-width: 300px; } }
.portrait-frame { position: relative; padding: 14px; }
.portrait-frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px;
  filter: saturate(.92) contrast(1.04);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 14px; border-radius: 6px; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 6, 32, .55)), linear-gradient(135deg, rgba(110, 91, 255, .18), transparent 50%);
  mix-blend-mode: normal;
}
.ants-frame {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) left / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) right / 1px 100% no-repeat;
  animation: ants .5s linear infinite;
}
.ants-frame i { position: absolute; width: 8px; height: 8px; background: #fff; border: 1px solid #000; }
.ants-frame i:nth-child(1) { top: -4px; left: -4px; } .ants-frame i:nth-child(2) { top: -4px; right: -4px; }
.ants-frame i:nth-child(3) { bottom: -4px; left: -4px; } .ants-frame i:nth-child(4) { bottom: -4px; right: -4px; }
.layer-tag {
  position: absolute; inset-inline-start: 26px; bottom: 26px; display: flex; gap: 8px; align-items: center;
  background: rgba(19, 12, 44, .85); border: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; padding: 5px 10px 5px 6px; border-radius: 8px;
  backdrop-filter: blur(6px);
}
.layer-tag b { width: 20px; height: 20px; border-radius: 4px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--fg); font-size: 11px; }
.about-text { display: grid; gap: 14px; justify-items: start; max-width: 60ch; }
@media (max-width: 760px) { .about-text { justify-items: center; } }
.about-text h2 { margin: 0; font: 900 clamp(34px, 4.6vw, 54px)/1.35 var(--f-display); text-wrap: balance; }
.about-text p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.95; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-top: 6px; }
@media (max-width: 760px) { .facts { justify-content: center; } }
.fact { border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.fact.big b { font-size: 30px; font-weight: 900; line-height: 1; color: var(--accent-soft); }
.tools-line { font-size: 14px !important; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s; }
.qa[open] { border-color: var(--line-strong); }
.qa summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; line-height: 1.6; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent-soft); flex: none; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.95; }
.policy-chk { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 15px; cursor: pointer; }
.policy-chk input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.policy-chk a { color: var(--accent-soft); }

/* ---------- Calm mode: phones and touch screens ----------
   Decorative tool chrome (rulers, guide, moving selection, cursor, timecode chip, hover frames) is desktop-only. */
@media (hover: none), (max-width: 760px) {
  .hero .ruler-x, .hero .ruler-y, .hero .guide, .sel, .cursor { display: none !important; }
  .hero .stage { padding-block: 64px 72px; }
  .hero .lede { margin-top: 24px; }
  .hero .cta { margin-top: 32px; }
  .scrub-head span { display: none; }
  .ants-draw, .cover::after { display: none !important; }
  .piece.act .cover, .piece:hover .cover { transform: none; }
  .portrait .ants-frame { animation: none; opacity: .5; }
}

/* ---------- Marble figures ---------- */
.hero .stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 0; justify-items: stretch; padding-block: 40px 0; }
.hero-copy { padding-bottom: 40px; }
.hero-copy { display: grid; justify-items: center; text-align: center; position: relative; z-index: 2; }
.hero h1 { max-width: 13ch; }
.hero-copy .lede { max-width: 40ch; }
.hero-art { margin: 0; position: relative; align-self: end; justify-self: center; width: min(100%, 520px); margin-inline-start: -40px; }
.hero-art img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 72%, transparent 98%);
}
.hero-art::before { content: ""; position: absolute; inset: 10% 5% 20%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 91, 255, .35), transparent); filter: blur(10px); }
.head-sel { position: absolute; left: 27%; top: 2%; width: 27%; height: 28%; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 5px, #000 5px 10px) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) left / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, #fff 0 5px, #000 5px 10px) right / 1px 100% no-repeat;
  animation: ants .5s linear infinite; }
.head-sel i { position: absolute; width: 8px; height: 8px; background: #fff; border: 1px solid #000; }
.head-sel i:nth-child(1) { top: -4px; left: -4px; } .head-sel i:nth-child(2) { top: -4px; right: -4px; }
.head-sel i:nth-child(3) { bottom: -4px; left: -4px; } .head-sel i:nth-child(4) { bottom: -4px; right: -4px; }
.head-sel em { position: absolute; top: -26px; left: 0; font: 500 11px/1 var(--f-body); font-style: normal; color: #fff; background: #2A2A2E; padding: 4px 7px; border-radius: 5px; white-space: nowrap; direction: ltr; }
.ps-tools { position: absolute; top: 14%; left: -6px; display: grid; gap: 2px; padding: 6px 4px; background: rgba(30, 30, 34, .92); border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.ps-tools i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; color: #cfcfd6; }
.ps-tools i:nth-child(2) { background: rgba(110, 91, 255, .35); color: #fff; }
.ps-tools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ps-tools .sw { width: 22px; height: 22px; margin: 6px auto 2px; border-radius: 4px; background: var(--accent); box-shadow: 8px 8px 0 -2px #f4f2ff; }

.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: end; }
.edit-grid .reel { margin: 0; max-width: none; }
.edit-art { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }

.svc-head { position: relative; }
.point-art-old { position: absolute; inset-inline-end: 0; top: -40px; width: 300px; height: auto; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }


.closing { padding-block: 40px 0; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: end; border-top: 1px solid var(--line); padding-top: 40px; }
.bust-art-old { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.closing-copy { display: grid; justify-items: center; text-align: center; gap: 16px; padding-bottom: 60px; }
.closing-copy h2 { margin: 0; font: 900 clamp(34px, 5vw, 60px)/1.35 var(--f-display); text-wrap: balance; }
.closing-copy p { margin: 0; color: var(--muted); max-width: 48ch; font-size: 17px; }
.closing-copy .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }


@media (max-width: 900px) {
  .hero .stage { grid-template-columns: minmax(0, 1fr); }
  .hero-art { margin: 28px auto 0; width: min(78vw, 360px); }
  .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .edit-art { display: none; }
  .closing-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .closing-copy { padding-bottom: 20px; }
}
@media (hover: none), (max-width: 760px) {
  .ps-tools, .head-sel { display: none; }
  .hero .stage { padding-block: 56px 0; }
}

/* ================= Rhythm: dark / marble sections ================= */
.tone-light {
  --ink: #EAE6E0; --surface: #F7F5F1; --surface-2: #E1DCD4;
  --line: rgba(21, 17, 43, .10); --line-strong: rgba(21, 17, 43, .20);
  --fg: #15112B; --muted: #5C566F; --accent: #5A46EE; --accent-soft: #5A46EE; --ok: #11875A; --warn: #A86400;
  --h-base: #15112B; --h-sheen: #9A8CFF;
  background: var(--ink); color: var(--fg); color-scheme: light; position: relative;
}
.tone-light::before { /* faint marble grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(60rem 30rem at 85% 0%, #fff, transparent 60%), radial-gradient(40rem 30rem at 0% 100%, #DCD6CD, transparent 60%);
}
.tone-light > * { position: relative; }
.tone-light .btn-ghost { border-color: rgba(21, 17, 43, .25); }
.tone-light .chip[aria-pressed="true"] { background: var(--fg); color: #F7F5F1; }
.tone-light .svc, .tone-light .pkg, .tone-light .qa, .tone-light .panel, .tone-light .form-card, .tone-light .review { box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px -18px rgba(21, 17, 43, .35); }
.tone-light .input { background: #fff; }
.tone-light .panel::after { opacity: .18; }
.tone-light .rush { background: var(--surface-2); }
.tone-light .switch span::after { background: #fff; }
.tone-light .cover { border-color: transparent; box-shadow: 0 14px 30px -16px rgba(21, 17, 43, .45); }
.tone-light .err, .tone-light .form-err { color: #C0264A; }
:root { --h-base: #F4F2FF; --h-sheen: #FFFFFF; }

/* Headings: soft moving sheen + stretched word */
.shine {
  background: linear-gradient(105deg, var(--h-base) 0 42%, var(--h-sheen) 48%, var(--accent-soft) 51%, var(--h-base) 57% 100%) 120% 0 / 260% 100% no-repeat;
  background-color: var(--h-base);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s cubic-bezier(.45, 0, .2, 1) infinite;
}
.shine em, .shine .k { -webkit-text-fill-color: currentColor; }
@keyframes sheen { 0%, 55% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
.k { color: var(--accent-soft); }
.tone-light .k { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .shine { animation: none; background-position: 0 0; } }

/* Figures: mask on the image, shadow on the wrapper (avoids the boxed artefact) */
.fig { display: block; pointer-events: none; }
.fig img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 99%); mask-image: linear-gradient(180deg, #000 72%, transparent 99%); }
.tone-light .fig { filter: drop-shadow(0 18px 24px rgba(21, 17, 43, .22)); }

.art-head { position: relative; }
.fig-work { position: absolute; inset-inline-start: 0; top: -30px; width: 250px; }
.point-art { position: absolute; inset-inline-end: 0; top: -36px; width: 300px; }
[dir="ltr"] .point-art img { transform: scaleX(-1); }

.how-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: center; }
.how-grid .steps { grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: s; }
.how-grid .steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; border-top: 1px solid var(--line); padding-block: 16px; }
.how-grid .steps li:nth-child(3) { border-top-color: var(--line); }
.how-grid .steps li::before { grid-row: span 2; margin: 0; font-size: 36px; }
.how-grid .steps h3, .how-grid .steps p { grid-column: 2; }
.fig-how { position: relative; }
.fig-how::before { content: ""; position: absolute; inset: 15% 10% 25%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 91, 255, .35), transparent); filter: blur(12px); }

/* Closing on marble: bust rises from the section, headline overlaps it */
.closing { padding-block: 70px 0; overflow: hidden; }
.closing-grid { border-top: 0; padding-top: 0; grid-template-columns: minmax(0, 1fr) 380px; align-items: end; }
.bust-art { position: relative; width: 100%; }
.bust-art img { -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent); mask-image: linear-gradient(180deg, #000 86%, transparent);
  -webkit-box-reflect: below -6px linear-gradient(transparent 70%, rgba(0, 0, 0, .18)); }
.closing-copy { padding-bottom: 90px; margin-inline-end: -120px; z-index: 2; }
.closing-copy h2 { font-size: clamp(40px, 6vw, 76px); }

@media (max-width: 1100px) { .fig-work, .point-art { width: 200px; } }
@media (max-width: 900px) {
  .art-head { padding-top: 0; }
  .fig-work { display: none; }
  .point-art { position: static; width: min(62vw, 240px); margin: -10px auto 4px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fig-how { width: min(80vw, 340px); margin: 0 auto; }
  .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .closing-copy { margin: 0; padding-bottom: 10px; order: -1; }
  .bust-art { display: block; width: min(70vw, 300px); margin: 10px auto 0; }
}

/* Custom request card */
.svc.custom { border-style: dashed; border-color: var(--line-strong); background: transparent; box-shadow: none; }
.svc.custom.on { border-style: solid; border-color: var(--accent); }
.svc.custom h3 { color: var(--accent-soft); }
.tone-light .svc.custom h3 { color: var(--accent); }
.btn-wa { background: #25D366; color: #06210f; }
.btn-wa:hover { background: #2fe072; }

/* Swap: bust in the hero, seated figure in the closing section */
.hero-art { width: min(100%, 470px); }
.hero-art .head-sel { left: 27%; top: 1%; width: 45%; height: 50%; }
.hero-art .ps-tools { top: 30%; }
@media (min-width: 901px) { .closing-grid { grid-template-columns: minmax(0, 1fr) 440px; } }
.closing-art img { -webkit-box-reflect: none; }
@media (max-width: 900px) { .closing-art { width: min(80vw, 340px); } }
