/* Vidfy home (hx): sidebar studio layout in the graphite + gold palette of the creator flow.
   Only applies to <body class="hx">; the classic template (/?classic=1) is untouched. */
html[data-theme="dark"] body.hx {
  --hx-bg: #08090c;
  --hx-surface: #0f1116;
  --hx-raised: #151922;
  --hx-line: #242934;
  --hx-line-soft: #1a1e26;
  --hx-text: #eceef2;
  --hx-muted: #8a92a3;
  --hx-faint: #5c6475;
  --hx-accent: #e8b45a;
  --hx-accent-hi: #f1c271;
  --hx-accent-ink: #1a1306;
  --hx-accent-soft: rgba(232, 180, 90, .14);
  --hx-ease: cubic-bezier(.2, .7, .2, 1);
  --hx-side: 232px;
  --accent: var(--hx-accent);
  --accent-ink: var(--hx-accent-ink);
  --link: var(--hx-accent-hi);
  --bg: var(--hx-bg);
  --line: var(--hx-line);
  --surface: var(--hx-surface);
  --composer-bg: var(--hx-surface);
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(232, 180, 90, .07), transparent 70%),
    radial-gradient(700px 480px at -10% 30%, rgba(143, 179, 255, .05), transparent 70%),
    var(--hx-bg);
  color: var(--hx-text);
}
html[data-theme="dark"] body.hx .site-header {
  position: sticky; top: 0;
  background: rgba(8, 9, 12, .82);
  border-bottom-color: rgba(255, 255, 255, .05);
}
html[data-theme="dark"] body.hx .site-header-inner { width: calc(100% - 40px); max-width: none; }
html[data-theme="dark"] body.hx .site-link.is-active { background: var(--hx-accent-soft); color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .site-cta { background: var(--hx-accent); border-color: var(--hx-accent); color: var(--hx-accent-ink); }
html[data-theme="dark"] body.hx .site-cta:hover { background: var(--hx-accent-hi); color: var(--hx-accent-ink); }

/* ---------------------------------------------------------------- shell + sidebar */
.hx-shell { display: block; }
.hx-main { min-width: 0; }
html[data-theme="dark"] body.hx #app { grid-template-columns: minmax(0, 1fr); min-width: 0; }
html[data-theme="dark"] body.hx { overflow-x: clip; height: auto; min-height: 100%; }
.hx-side { display: none; }
@media (min-width: 1100px) {
  .hx-shell { display: grid; grid-template-columns: var(--hx-side) minmax(0, 1fr); align-items: start; }
  .hx-side {
    position: sticky; top: var(--hx-head, 82px); height: calc(100vh - var(--hx-head, 82px)); display: flex; flex-direction: column; gap: 18px;
    padding: 22px 14px 22px 18px; border-right: 1px solid var(--hx-line-soft); overflow-y: auto; scrollbar-width: none;
  }
  /* Once the conversation starts, the wizard keeps the whole width. */
  body.hx:has(#app.phase-chat) .hx-shell { grid-template-columns: minmax(0, 1fr); }
  body.hx:has(#app.phase-chat) .hx-side { display: none; }
}
.hx-nav { display: flex; flex-direction: column; gap: 2px; }
html[data-theme="dark"] body.hx .hx-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--hx-muted); font-size: .92rem; font-weight: 600; text-decoration: none;
  transition: background .25s, color .25s;
}
.hx-nav-link svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] body.hx .hx-nav-link:hover { background: rgba(255, 255, 255, .04); color: var(--hx-text); }
html[data-theme="dark"] body.hx .hx-nav-link.is-active { background: var(--hx-accent-soft); color: var(--hx-accent-hi); }
.hx-nav-rule { height: 1px; margin: 10px 12px; background: var(--hx-line-soft); }
html[data-theme="dark"] body.hx .hx-side-card {
  margin-top: auto; display: grid; gap: 6px; padding: 16px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(150deg, rgba(232, 180, 90, .16), rgba(232, 180, 90, .03) 60%), var(--hx-surface);
  border: 1px solid rgba(232, 180, 90, .2); color: var(--hx-text);
  transition: border-color .3s, transform .3s var(--hx-ease);
}
html[data-theme="dark"] body.hx .hx-side-card:hover { border-color: rgba(232, 180, 90, .45); transform: translateY(-2px); }
.hx-side-card strong { font-size: .95rem; }
.hx-side-card span { color: var(--hx-muted); font-size: .8rem; line-height: 1.45; }
.hx-side-card em { color: var(--hx-accent-hi); font-style: normal; font-size: .82rem; font-weight: 700; }

/* ---------------------------------------------------------------- hero */
html[data-theme="dark"] body.hx .page-home .app.show-home-showcase,
html[data-theme="dark"] body.hx .app.show-home-showcase { background: transparent; color: var(--hx-text); }
html[data-theme="dark"] body.hx .app.show-home-showcase .stage { padding: 22px clamp(16px, 2.6vw, 36px) 6px; }
html[data-theme="dark"] body.hx .app.show-home-showcase .hero { width: min(100%, 1240px); gap: 18px; }
.hx-hero { display: none; }
html[data-theme="dark"] body.hx .app.show-home-showcase .hx-hero {
  position: relative; isolation: isolate; display: grid; place-items: end center; width: 100%;
  min-height: clamp(250px, 34vh, 380px); padding: clamp(24px, 4vw, 48px) 24px clamp(22px, 3vw, 34px);
  border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06);
  background: var(--hx-surface); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
  animation: hx-rise .9s var(--hx-ease) both;
}
.hx-hero-media { position: absolute; inset: 0; z-index: -1; }
.hx-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 9, 12, .96) 4%, rgba(8, 9, 12, .55) 45%, rgba(8, 9, 12, .25) 100%),
              radial-gradient(70% 90% at 50% 100%, rgba(232, 180, 90, .12), transparent 70%);
}
html[data-theme="dark"] body.hx .hx-hero .home-cinema-video { object-position: center 40%; }
.hx-hero-copy { text-align: center; max-width: 860px; }
html[data-theme="dark"] body.hx .hx-eyebrow {
  display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(232, 180, 90, .35);
  background: rgba(232, 180, 90, .08); color: var(--hx-accent-hi); font-size: .68rem; font-weight: 800; letter-spacing: .2em;
}
html[data-theme="dark"] body.hx .hx-title {
  margin: 16px 0 10px; font-size: clamp(2.1rem, 4.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800;
  background: linear-gradient(180deg, #fff 30%, #f3dcb0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="dark"] body.hx .hx-lead { margin: 0 auto; max-width: 620px; color: #c9ced8; font-size: clamp(.95rem, 1.3vw, 1.12rem); line-height: 1.55; }
html[data-theme="dark"] body.hx .hx-hero-toggle {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(8, 9, 12, .45); color: #fff; cursor: pointer;
  backdrop-filter: blur(8px); font-size: .9rem;
}
html[data-theme="dark"] body.hx .hx-hero-toggle:hover { border-color: var(--hx-accent); }
html[data-theme="dark"] body.hx .app.show-home-showcase .greeting { display: none; }

/* ---------------------------------------------------------------- wizard choices + composer */
html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choices { width: min(100%, 760px); gap: 12px; }
html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choice {
  min-height: 60px; padding: 12px 22px; border-radius: 16px; font-size: clamp(.92rem, 1vw, 1.05rem); font-weight: 700;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9); transition: transform .3s var(--hx-ease), border-color .3s, background .3s;
}
html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choice[data-value="content"] {
  color: var(--hx-accent-ink); border-color: var(--hx-accent);
  background: linear-gradient(120deg, var(--hx-accent-hi), var(--hx-accent) 55%, #d39a3e);
}
html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choice[data-value="ad"] {
  color: var(--hx-text); border-color: var(--hx-line); background: rgba(21, 25, 34, .9);
}
html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choice:hover:not(:disabled) { transform: translateY(-2px); }
html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choice[data-value="ad"]:hover:not(:disabled) {
  border-color: rgba(232, 180, 90, .55); background: rgba(232, 180, 90, .08); color: #fff;
}
html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choice::before { content: "✦"; color: inherit; margin-right: 10px; }
html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choice[data-value="ad"]::before { content: "▶"; color: var(--hx-accent); }
html[data-theme="dark"] body.hx .choice:not(.choice-visual):hover:not(:disabled) { background: rgba(232, 180, 90, .08); border-color: rgba(232, 180, 90, .5); color: #fff; }
html[data-theme="dark"] body.hx .choice.picked,
html[data-theme="dark"] body.hx .choice.choice-visual.picked,
html[data-theme="dark"] body.hx .setup-block[data-step-id="type"] .choice.picked,
html[data-theme="dark"] body.hx .side-tab.is-active,
html[data-theme="dark"] body.hx .mode-menu button[aria-pressed="true"] { background: rgba(232, 180, 90, .14); border-color: var(--hx-accent); color: #fff3dc; }
html[data-theme="dark"] body.hx .setup-answer,
html[data-theme="dark"] body.hx .brief-kicker,
html[data-theme="dark"] body.hx .choice.choice-visual.picked .choice-visual-label { color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .composer,
html[data-theme="dark"] body.hx .app.show-home-showcase .composer {
  max-width: 900px; background: rgba(15, 17, 22, .92); border: 1px solid var(--hx-line);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .95); backdrop-filter: blur(16px);
}
html[data-theme="dark"] body.hx .composer.is-ready { border-color: rgba(232, 180, 90, .45); }
html[data-theme="dark"] body.hx .send-btn:not(:disabled) { background: var(--hx-accent); color: var(--hx-accent-ink); }
html[data-theme="dark"] body.hx .send-btn:not(:disabled):hover { background: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .send-btn:disabled { background: #2a2f3a; color: var(--hx-faint); }
html[data-theme="dark"] body.hx .composer-wrap { background: linear-gradient(180deg, transparent, var(--hx-bg) 32%); }
html[data-theme="dark"] body.hx .composer-wrap.is-reveal .composer-hint { color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .app.show-home-showcase .composer-wrap { background: transparent; }

/* ---------------------------------------------------------------- showcase + sections */
html[data-theme="dark"] body.hx .home-showcase.hx-showcase { width: min(calc(100% - 2 * clamp(16px, 2.6vw, 36px)), 1240px); margin: 26px auto 72px; }
.hx-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 44px; }
html[data-theme="dark"] body.hx .hx-tool {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; text-align: left; cursor: pointer;
  border: 1px solid var(--hx-line-soft); background: var(--hx-surface); color: var(--hx-text); font: inherit; text-decoration: none;
  transition: border-color .3s, transform .35s var(--hx-ease), background .3s;
}
html[data-theme="dark"] body.hx .hx-tool:hover { border-color: rgba(232, 180, 90, .4); background: var(--hx-raised); transform: translateY(-3px); }
.hx-tool img { width: 68px; height: 68px; object-fit: cover; border-radius: 16px; flex: none; }
.hx-tool span { display: grid; gap: 3px; min-width: 0; }
.hx-tool strong { font-size: .98rem; }
.hx-tool small { color: var(--hx-muted); font-size: .8rem; line-height: 1.35; }

html[data-theme="dark"] body.hx .hx-row-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
html[data-theme="dark"] body.hx .home-showcase-eyebrow { color: var(--hx-accent); letter-spacing: .2em; font-size: .68rem; font-weight: 800; }
html[data-theme="dark"] body.hx .hx-row-head h2 { margin: 6px 0 0; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.03em; color: #fff; }
html[data-theme="dark"] body.hx .hx-row-head h2 em { font-style: normal; color: var(--hx-accent-hi); }
.hx-row-actions { display: flex; align-items: center; gap: 8px; }
html[data-theme="dark"] body.hx .home-showcase-link { color: var(--hx-muted); font-size: .88rem; margin-right: 8px; }
html[data-theme="dark"] body.hx .home-showcase-link:hover { color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .hx-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hx-line); background: var(--hx-surface);
  color: var(--hx-text); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: border-color .25s, color .25s;
}
html[data-theme="dark"] body.hx .hx-arrow:hover { border-color: var(--hx-accent); color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .hx-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 19vw, 250px); gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none;
}
.hx-rail::-webkit-scrollbar { display: none; }
html[data-theme="dark"] body.hx .hx-rail .hx-card.is-landscape { grid-column: span 1; }
html[data-theme="dark"] body.hx .hx-card {
  scroll-snap-align: start; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--hx-line-soft); background: var(--hx-surface);
  transition: border-color .3s, transform .35s var(--hx-ease);
}
html[data-theme="dark"] body.hx .hx-card:hover { border-color: rgba(232, 180, 90, .4); transform: translateY(-3px); }
html[data-theme="dark"] body.hx .hx-card .home-showcase-media { position: relative; aspect-ratio: 9 / 14; background: #0b0d11; }
html[data-theme="dark"] body.hx .hx-card.is-landscape .home-showcase-media { aspect-ratio: 9 / 14; }
html[data-theme="dark"] body.hx .hx-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-theme="dark"] body.hx .hx-card .home-showcase-play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(8, 9, 12, .5); color: #fff; backdrop-filter: blur(6px); cursor: pointer;
  transition: transform .3s var(--hx-ease), background .3s;
}
html[data-theme="dark"] body.hx .hx-card:hover .home-showcase-play { transform: scale(1.08); background: var(--hx-accent); color: var(--hx-accent-ink); }
html[data-theme="dark"] body.hx .hx-card .home-showcase-media.is-playing .home-showcase-play { opacity: 0; pointer-events: none; }
html[data-theme="dark"] body.hx .hx-card time {
  position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(8, 9, 12, .65); color: #fff; font-size: .72rem;
}
html[data-theme="dark"] body.hx .hx-card .home-showcase-meta { padding: 11px 14px 13px; color: var(--hx-text); font-size: .88rem; font-weight: 600; }

.hx-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 40px 0 56px; }
html[data-theme="dark"] body.hx .hx-benefits div {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 16px; border-radius: 16px; background: var(--hx-surface); border: 1px solid var(--hx-line-soft);
}
.hx-benefits img { grid-row: span 2; width: 40px; height: 40px; object-fit: contain; }
.hx-benefits strong { font-size: .92rem; color: #fff; }
.hx-benefits span { font-size: .8rem; color: var(--hx-muted); }

html[data-theme="dark"] body.hx .hx-banner {
  position: relative; isolation: isolate; display: flex; align-items: center; min-height: 300px; padding: clamp(28px, 4vw, 52px);
  border-radius: 28px; overflow: hidden; border: 1px solid rgba(232, 180, 90, .18); background: var(--hx-surface); margin-bottom: 64px;
}
.hx-banner-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hx-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 9, 12, .96) 0%, rgba(8, 9, 12, .78) 40%, rgba(8, 9, 12, .1) 100%);
}
.hx-banner-copy { max-width: 520px; }
html[data-theme="dark"] body.hx .hx-banner h2,
html[data-theme="dark"] body.hx .hx-steps-head h2,
html[data-theme="dark"] body.hx .hx-split h2,
html[data-theme="dark"] body.hx .hx-credit h2 { margin: 14px 0 10px; color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.5rem); letter-spacing: -.035em; line-height: 1.1; }
html[data-theme="dark"] body.hx .hx-banner p,
html[data-theme="dark"] body.hx .hx-split p,
html[data-theme="dark"] body.hx .hx-credit p { color: #b9bfcb; line-height: 1.6; margin: 0 0 20px; }
html[data-theme="dark"] body.hx .hx-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--hx-accent); color: var(--hx-accent-ink); border: 1px solid var(--hx-accent); transition: background .25s, transform .3s var(--hx-ease);
}
html[data-theme="dark"] body.hx .hx-btn:hover { background: var(--hx-accent-hi); transform: translateY(-2px); }
html[data-theme="dark"] body.hx .hx-btn-ghost { background: transparent; color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .hx-btn-ghost:hover { background: var(--hx-accent-soft); }

.hx-steps-head { text-align: center; margin-bottom: 22px; }
.hx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 64px; }
html[data-theme="dark"] body.hx .hx-steps article {
  display: flex; flex-direction: column; padding: 22px; border-radius: 22px; background: var(--hx-surface); border: 1px solid var(--hx-line-soft);
}
.hx-steps article > span { font: 700 .78rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--hx-accent); }
html[data-theme="dark"] body.hx .hx-steps h3 { margin: 10px 0 6px; font-size: 1.12rem; color: #fff; }
html[data-theme="dark"] body.hx .hx-steps p { margin: 0 0 18px; color: var(--hx-muted); font-size: .9rem; line-height: 1.55; }
.hx-step-art { margin-top: auto; border-radius: 14px; overflow: hidden; background: var(--hx-raised); border: 1px solid var(--hx-line-soft); }
html[data-theme="dark"] body.hx .hx-step-prompt { display: flex; align-items: center; justify-content: space-between; padding: 16px; color: var(--hx-muted); font-size: .88rem; }
.hx-step-prompt i { font-style: normal; color: var(--hx-accent); }
.hx-step-frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.hx-step-frames img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 9px; display: block; }
.hx-step-video { position: relative; }
.hx-step-video img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.hx-step-video i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--hx-accent); color: var(--hx-accent-ink); font-style: normal; }

.hx-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 56px); align-items: center; margin-bottom: 56px; }
.hx-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
html[data-theme="dark"] body.hx .hx-checks li { position: relative; padding-left: 28px; color: var(--hx-text); font-weight: 600; }
.hx-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: var(--hx-accent-soft); color: var(--hx-accent-hi); }
.hx-split-art { width: 100%; border-radius: 22px; border: 1px solid var(--hx-line-soft); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }

.hx-filmstrip { overflow: hidden; margin: 0 0 56px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hx-filmstrip-track { display: flex; gap: 12px; width: max-content; animation: hx-strip 48s linear infinite; }
.hx-filmstrip-track img { width: 220px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--hx-line-soft); }
@keyframes hx-strip { to { transform: translateX(calc(-50% - 6px)); } }

html[data-theme="dark"] body.hx .hx-credit {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 3.5vw, 40px);
  border-radius: 24px; background: linear-gradient(120deg, rgba(232, 180, 90, .1), transparent 55%), var(--hx-surface);
  border: 1px solid rgba(232, 180, 90, .18);
}
.hx-credit > div { max-width: 640px; }
html[data-theme="dark"] body.hx .hx-credit p { margin: 0; }

/* Soft entrances */
@keyframes hx-rise { from { opacity: 0; transform: translateY(18px); } }
.hx-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--hx-ease), transform .9s var(--hx-ease); }
.hx-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1099px) {
  html[data-theme="dark"] body.hx .site-header-inner { width: min(1120px, calc(100% - 32px)); }
}
@media (max-width: 860px) {
  .hx-tools { grid-template-columns: 1fr; }
  .hx-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-steps, .hx-split { grid-template-columns: 1fr; }
  html[data-theme="dark"] body.hx .hx-credit { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  html[data-theme="dark"] body.hx .app.show-home-showcase .hx-hero { min-height: 240px; border-radius: 22px; }
  html[data-theme="dark"] body.hx .hx-hero-toggle { top: 12px; bottom: auto; right: 12px; width: 34px; height: 34px; font-size: .8rem; }
  html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choices { flex-direction: column; }
  .hx-benefits { grid-template-columns: 1fr; }
  html[data-theme="dark"] body.hx .hx-rail { grid-auto-columns: 62vw; }
  .hx-row-actions .hx-arrow { display: none; }
  .hx-filmstrip-track img { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-filmstrip-track, html[data-theme="dark"] body.hx .app.show-home-showcase .hx-hero { animation: none; }
  .hx-reveal { opacity: 1; transform: none; transition: none; }
}

/* Neutralise the classic home's blue showcase chrome (ID specificity beats the old rules). */
html[data-theme="dark"] body.hx #home-showcase { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
html[data-theme="dark"] body.hx #home-showcase .home-showcase-link {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hx-line); background: transparent; color: var(--hx-muted); box-shadow: none;
}
html[data-theme="dark"] body.hx #home-showcase .home-showcase-link:hover { border-color: var(--hx-accent); color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx #home-showcase .hx-card { border: 1px solid var(--hx-line-soft); background: var(--hx-surface); box-shadow: none; }
html[data-theme="dark"] body.hx #home-showcase .hx-card:hover { border-color: rgba(232, 180, 90, .4); }
html[data-theme="dark"] body.hx #home-showcase .home-showcase-media { border: 0; border-radius: 0; box-shadow: none; }
html[data-theme="dark"] body.hx #home-showcase .home-showcase-meta { background: transparent; color: var(--hx-text); }
html[data-theme="dark"] body.hx #home-showcase .hx-rail { grid-template-columns: none; grid-auto-columns: clamp(210px, 19vw, 250px); }
html[data-theme="dark"] body.hx #home-showcase .hx-card { grid-column: auto; grid-row: auto; width: auto; }
@media (max-width: 560px) { html[data-theme="dark"] body.hx #home-showcase .hx-rail { grid-auto-columns: 64vw; } }
html[data-theme="dark"] body.hx #home-showcase .hx-card video { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }

/* Later wizard steps and the footer in the same graphite + gold palette. */
html[data-theme="dark"] body.hx #setup .setup-block:not([data-step-id="type"]) .choice {
  background: linear-gradient(160deg, #161a23, #0f1116 70%); border-color: var(--hx-line); color: var(--hx-text); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9);
}
html[data-theme="dark"] body.hx #setup .setup-block:not([data-step-id="type"]) .choice:hover:not(:disabled) {
  background: linear-gradient(160deg, rgba(232, 180, 90, .12), #11141b 70%); border-color: rgba(232, 180, 90, .55); color: #fff;
}
html[data-theme="dark"] body.hx #setup .setup-block:not([data-step-id="type"]) .choice.picked {
  background: linear-gradient(160deg, rgba(232, 180, 90, .2), #11141b 75%); border-color: var(--hx-accent); color: #fff3dc;
}
html[data-theme="dark"] body.hx #setup .setup-block:not([data-step-id="type"]) .choice::before,
html[data-theme="dark"] body.hx #setup .setup-block:not([data-step-id="type"]) .choice::after { border-color: rgba(232, 180, 90, .45); color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx #setup .choice-with-description span { color: var(--hx-muted); }
html[data-theme="dark"] body.hx #setup .setup-question { color: var(--hx-text); }
html[data-theme="dark"] body.hx .history-toggle { border-color: var(--hx-line); background: var(--hx-surface); color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .site-footer {
  background: radial-gradient(600px 300px at 92% 0%, rgba(232, 180, 90, .08), transparent 70%), #0a0b0e;
  border-top: 1px solid var(--hx-line-soft);
}
html[data-theme="dark"] body.hx .site-footer::before,
html[data-theme="dark"] body.hx .site-footer::after { background: none; }
html[data-theme="dark"] body.hx .site-footer-column h3::after { background: var(--hx-accent) !important; }
html[data-theme="dark"] body.hx .site-footer-cta { background: var(--hx-accent); color: var(--hx-accent-ink); }
html[data-theme="dark"] body.hx .site-footer-cta:hover { background: var(--hx-accent-hi); color: var(--hx-accent-ink); }
html[data-theme="dark"] body.hx .lang-switch { border-color: var(--hx-line); background: var(--hx-surface); }
html[data-theme="dark"] body.hx .lang-btn.is-active { background: var(--hx-accent-soft); color: var(--hx-accent-hi); }

/* ---------------------------------------------------------------- shared shell on public + account pages */
.hx-nav-group { margin: 2px 12px 4px; color: var(--hx-faint); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
html[data-theme="dark"] body.hx .hx-nav-link.hx-nav-sub { padding: 7px 12px 7px 43px; font-size: .86rem; }
html[data-theme="dark"] body.hx .page-main { max-width: 1240px; }
@media (min-width: 1100px) {
  /* the account links live in the sidebar, so the page keeps one column */
  html[data-theme="dark"] body.hx.page-account .account-nav { display: none; }
  html[data-theme="dark"] body.hx.page-account .account-layout { grid-template-columns: minmax(0, 1fr); width: min(1240px, calc(100% - 56px)); }
  html[data-theme="dark"] body.hx .page-main { width: min(1240px, calc(100% - 56px)); }
}
html[data-theme="dark"] body.hx .page-title { letter-spacing: -.035em; }
html[data-theme="dark"] body.hx .page-title { background: linear-gradient(180deg, #fff 30%, #f3dcb0); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
html[data-theme="dark"] body.hx.page-account .account-main-head { border-bottom-color: rgba(232, 180, 90, .22); }

/* ---------------------------------------------------------------- phones and tablets */
.hx-tabbar { display: none; }
@media (max-width: 1099px) {
  .hx-tabbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px;
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(12, 13, 17, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .95);
  }
  html[data-theme="dark"] body.hx .hx-tab {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 14px;
    color: var(--hx-muted); font-size: .66rem; font-weight: 700; text-decoration: none; letter-spacing: .01em;
  }
  .hx-tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  html[data-theme="dark"] body.hx .hx-tab.is-active { color: var(--hx-accent-hi); background: var(--hx-accent-soft); }
  html[data-theme="dark"] body.hx .hx-tab:active { transform: scale(.96); }
  html[data-theme="dark"] body.hx { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.hx:has(#app.phase-chat) .hx-tabbar { display: none; }
  html[data-theme="dark"] body.hx:has(#app.phase-chat) { padding-bottom: 0; }
  /* the header menu button in the studio palette */
  html[data-theme="dark"] body.hx .nav-toggle { background: var(--hx-surface) !important; border-color: rgba(232, 180, 90, .4) !important; box-shadow: none !important; }
  html[data-theme="dark"] body.hx .nav-toggle span { background: var(--hx-accent-hi) !important; }
  html[data-theme="dark"] body.hx .site-menu { background: #0f1116 !important; border: 1px solid var(--hx-line) !important; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95) !important; }
  /* account sub-navigation as a horizontal chip rail */
  html[data-theme="dark"] body.hx.page-account .account-nav { position: static; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  html[data-theme="dark"] body.hx.page-account .account-nav-kicker { display: none; }
  html[data-theme="dark"] body.hx.page-account .account-nav-links { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; flex-direction: row; }
  html[data-theme="dark"] body.hx.page-account .account-nav-link {
    flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hx-line); background: var(--hx-surface); white-space: nowrap; font-size: .85rem;
  }
  html[data-theme="dark"] body.hx.page-account .account-nav-link.is-active { background: var(--hx-accent-soft); border-color: rgba(232, 180, 90, .5); color: #fff3dc; box-shadow: none; }
}
@media (max-width: 560px) {
  html[data-theme="dark"] body.hx .app.show-home-showcase .stage { padding: 14px 12px 4px; }
  html[data-theme="dark"] body.hx .app.show-home-showcase .hx-hero { min-height: 300px; padding: 22px 16px 20px; place-items: end center; }
  html[data-theme="dark"] body.hx .hx-title { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  html[data-theme="dark"] body.hx .hx-lead { font-size: .92rem; }
  html[data-theme="dark"] body.hx .hx-eyebrow { font-size: .58rem; letter-spacing: .14em; padding: 6px 11px; }
  html[data-theme="dark"] body.hx .app.show-home-showcase .setup-block[data-step-id="type"] .choice { min-height: 54px; padding: 10px 14px; font-size: .9rem; }
  html[data-theme="dark"] body.hx .home-showcase.hx-showcase { width: calc(100% - 24px); margin: 18px auto 40px; }
  .hx-tools { gap: 10px; margin-bottom: 30px; }
  .hx-tool img { width: 56px; height: 56px; }
  html[data-theme="dark"] body.hx .hx-row-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  html[data-theme="dark"] body.hx .hx-banner { min-height: 260px; padding: 24px 20px; border-radius: 22px; margin-bottom: 44px; }
  .hx-banner::after { background: linear-gradient(0deg, rgba(8, 9, 12, .96) 10%, rgba(8, 9, 12, .55) 70%, rgba(8, 9, 12, .3)); }
  html[data-theme="dark"] body.hx .hx-banner { align-items: flex-end; }
  .hx-steps { margin-bottom: 44px; }
  .hx-split { margin-bottom: 40px; }
  html[data-theme="dark"] body.hx .hx-credit { padding: 22px 18px; }
  html[data-theme="dark"] body.hx .page-main, html[data-theme="dark"] body.hx.page-account .account-layout { width: calc(100% - 24px); }
}

/* ---------------------------------------------------------------- the system: idea to finished film */
html[data-theme="dark"] body.hx .hx-system {
  position: relative; margin: 56px 0 40px; padding: clamp(26px, 4vw, 56px); border-radius: 30px; overflow: hidden;
  border: 1px solid rgba(232, 180, 90, .2);
  background: radial-gradient(800px 420px at 100% 0%, rgba(232, 180, 90, .12), transparent 65%),
              radial-gradient(600px 400px at 0% 100%, rgba(143, 179, 255, .05), transparent 70%), var(--hx-surface);
}
.hx-system-head { max-width: 760px; }
html[data-theme="dark"] body.hx .hx-system-head h2 { margin: 16px 0 12px; color: #fff; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 35%, #f3dcb0); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] body.hx .hx-system-head p { margin: 0; color: #c3c8d2; font-size: clamp(.98rem, 1.25vw, 1.1rem); line-height: 1.65; }
.hx-system-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 30px 0; }
html[data-theme="dark"] body.hx .hx-system-stats div { padding: 16px 18px; border-radius: 16px; background: rgba(8, 9, 12, .55); border: 1px solid var(--hx-line-soft); }
html[data-theme="dark"] body.hx .hx-system-stats strong { display: block; color: var(--hx-accent-hi); font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; }
html[data-theme="dark"] body.hx .hx-system-stats span { display: block; margin-top: 4px; color: var(--hx-muted); font-size: .84rem; line-height: 1.45; }
.hx-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
html[data-theme="dark"] body.hx .hx-feature {
  padding: 18px; border-radius: 18px; background: rgba(15, 17, 22, .8); border: 1px solid var(--hx-line-soft);
  transition: border-color .3s, transform .35s var(--hx-ease), background .3s;
}
html[data-theme="dark"] body.hx .hx-feature:hover { border-color: rgba(232, 180, 90, .45); background: var(--hx-raised); transform: translateY(-3px); }
.hx-feature img { width: 54px; height: 54px; border-radius: 14px; display: block; margin-bottom: 14px; }
html[data-theme="dark"] body.hx .hx-feature h3 { margin: 0 0 6px; color: #fff; font-size: 1rem; }
html[data-theme="dark"] body.hx .hx-feature p { margin: 0; color: var(--hx-muted); font-size: .86rem; line-height: 1.55; }
.hx-system-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
html[data-theme="dark"] body.hx .hx-system-note { color: var(--hx-muted); font-size: .85rem; margin-left: 6px; }
/* benefit tiles and sample cards use the gold icon set */
.hx-benefits img { border-radius: 11px; }
html[data-theme="dark"] body.hx .page-home .home-showcase-meta::before,
html[data-theme="dark"] body.hx #home-showcase .home-showcase-meta::before {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px;
  background: url("/static/assets/home/icons/feat-cinematic-v1.webp") center / cover no-repeat;
}
@media (max-width: 1000px) {
  .hx-system-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  html[data-theme="dark"] body.hx .hx-system { margin: 36px 0 30px; padding: 22px 16px; border-radius: 22px; }
  .hx-features { grid-template-columns: 1fr; gap: 10px; }
  html[data-theme="dark"] body.hx .hx-feature { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 14px; }
  .hx-feature img { width: 46px; height: 46px; grid-row: span 2; margin: 0; }
  .hx-system-stats { gap: 8px; margin: 22px 0; }
  html[data-theme="dark"] body.hx .hx-system-stats div { padding: 12px 14px; }
  .hx-system-cta .hx-btn { flex: 1 1 100%; justify-content: center; }
  html[data-theme="dark"] body.hx .hx-system-note { margin: 0; text-align: center; width: 100%; }
}

/* landscape films take two rail columns so they are not cropped to a portrait card */
html[data-theme="dark"] body.hx #home-showcase .hx-card.is-landscape { grid-column: span 2; }
@media (max-width: 560px) { html[data-theme="dark"] body.hx #home-showcase .hx-card.is-landscape { grid-column: span 1; } }
html[data-theme="dark"] body.hx #home-showcase .hx-card.is-landscape .home-showcase-media { aspect-ratio: 18 / 14; }
@media (max-width: 560px) { html[data-theme="dark"] body.hx #home-showcase .hx-card.is-landscape .home-showcase-media { aspect-ratio: 9 / 14; } }

/* ---------------------------------------------------------------- account · plan & membership */
.hx-plan-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hx-plan-intro .site-lead { margin: 0; }
html[data-theme="dark"] body.hx .hx-plan-now { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(232, 180, 90, .35); background: var(--hx-accent-soft); color: var(--hx-muted); font-size: .86rem; }
html[data-theme="dark"] body.hx .hx-plan-now strong { color: var(--hx-accent-hi); }
.hx-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
html[data-theme="dark"] body.hx .hx-plan {
  position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; border-radius: 22px;
  border: 1px solid var(--hx-line); background: linear-gradient(170deg, #151922, #0f1116 60%); color: var(--hx-text);
  transition: border-color .3s, transform .35s var(--hx-ease), box-shadow .35s;
}
html[data-theme="dark"] body.hx .hx-plan:hover { transform: translateY(-3px); border-color: rgba(232, 180, 90, .4); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .95); }
html[data-theme="dark"] body.hx .hx-plan.is-popular {
  border-color: rgba(232, 180, 90, .55);
  background: radial-gradient(420px 220px at 100% 0%, rgba(232, 180, 90, .16), transparent 70%), linear-gradient(170deg, #181b23, #0f1116 60%);
  box-shadow: 0 0 0 1px rgba(232, 180, 90, .18), 0 34px 70px -36px rgba(232, 180, 90, .35);
}
html[data-theme="dark"] body.hx .hx-plan.is-current { border-color: rgba(95, 208, 164, .45); }
.hx-plan-top { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-bottom: 14px; }
html[data-theme="dark"] body.hx .hx-plan-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(232, 180, 90, .22), rgba(232, 180, 90, .05)); border: 1px solid rgba(232, 180, 90, .3); color: var(--hx-accent-hi); }
.hx-plan-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] body.hx .hx-plan-badge { padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--hx-accent); color: var(--hx-accent-ink); }
html[data-theme="dark"] body.hx .hx-plan-badge.is-current { background: rgba(95, 208, 164, .14); color: #8fe6c4; border: 1px solid rgba(95, 208, 164, .4); }
html[data-theme="dark"] body.hx .hx-plan h3 { margin: 0 0 8px; color: #fff; font-size: 1.15rem; letter-spacing: -.01em; }
html[data-theme="dark"] body.hx .hx-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
html[data-theme="dark"] body.hx .hx-plan-price strong { font-size: clamp(1.9rem, 2.6vw, 2.4rem); letter-spacing: -.04em; color: #fff; }
html[data-theme="dark"] body.hx .hx-plan.is-popular .hx-plan-price strong { color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .hx-plan-price span { color: var(--hx-muted); font-size: .9rem; }
html[data-theme="dark"] body.hx .hx-plan-credits { margin: 4px 0 16px; color: var(--hx-accent-hi); font-weight: 700; font-size: .9rem; }
.hx-plan-list { list-style: none; margin: 0 0 20px; padding: 16px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--hx-line-soft); flex: 1; }
html[data-theme="dark"] body.hx .hx-plan-list li { position: relative; padding-left: 26px; color: #c9ced8; font-size: .86rem; line-height: 1.45; }
.hx-plan-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  font-size: .62rem; font-weight: 800; background: var(--hx-accent-soft); color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .hx-plan-list li.is-off { color: var(--hx-faint); }
.hx-plan-list li.is-off::before { content: "–"; background: rgba(255, 255, 255, .05); color: var(--hx-faint); }
.hx-plan-action { margin-top: auto; }
html[data-theme="dark"] body.hx .hx-plan .auth-submit {
  width: 100%; min-height: 46px; border-radius: 14px; border: 1px solid rgba(232, 180, 90, .45); background: transparent; color: var(--hx-accent-hi);
  font-weight: 700; box-shadow: none; transition: background .25s, color .25s, transform .3s var(--hx-ease);
}
html[data-theme="dark"] body.hx .hx-plan .auth-submit:hover:not(:disabled) { background: var(--hx-accent-soft); color: #fff; transform: translateY(-1px); }
html[data-theme="dark"] body.hx .hx-plan.is-popular .auth-submit:not(:disabled) { background: var(--hx-accent); border-color: var(--hx-accent); color: var(--hx-accent-ink); }
html[data-theme="dark"] body.hx .hx-plan.is-popular .auth-submit:hover:not(:disabled) { background: var(--hx-accent-hi); color: var(--hx-accent-ink); }
html[data-theme="dark"] body.hx .hx-plan .auth-submit:disabled { opacity: .55; cursor: not-allowed; }
html[data-theme="dark"] body.hx .hx-plan-active { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 14px;
  background: rgba(95, 208, 164, .08); border: 1px solid rgba(95, 208, 164, .3); color: #8fe6c4; font-weight: 700; font-size: .9rem; }
html[data-theme="dark"] body.hx .hx-plan-foot { margin: 18px 0 0; font-size: .84rem; }
.hx-plan-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
html[data-theme="dark"] body.hx .hx-plan-tools .auth-submit { width: auto; padding: 0 18px; min-height: 42px; border-radius: 12px; background: var(--hx-surface); border: 1px solid var(--hx-line); color: var(--hx-text); }
@media (max-width: 1280px) { .hx-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hx-plans { grid-template-columns: 1fr; } }
html[data-theme="dark"] body.hx[data-page="samples"] .samples-grid { grid-auto-flow: row dense; }

/* ---------------------------------------------------------------- sign in / sign up */
html[data-theme="dark"] body.hx.page-auth { padding-bottom: 0; }
html[data-theme="dark"] body.hx .auth-main.hx-auth {
  width: min(1240px, calc(100% - 40px)); max-width: none; margin: 0 auto; padding: clamp(20px, 4vh, 48px) 0 56px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: clamp(18px, 3vw, 40px); align-items: stretch;
  min-height: calc(100vh - var(--hx-head, 82px));
}
html[data-theme="dark"] body.hx .hx-auth-visual {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 520px;
  border-radius: 30px; border: 1px solid rgba(255, 255, 255, .06); background: var(--hx-surface);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.hx-auth-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hx-auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8, 9, 12, .96) 8%, rgba(8, 9, 12, .55) 48%, rgba(8, 9, 12, .12)),
              radial-gradient(70% 60% at 0% 100%, rgba(232, 180, 90, .14), transparent 70%); }
.hx-auth-copy { padding: clamp(24px, 4vw, 44px); }
html[data-theme="dark"] body.hx .hx-auth-copy h2 { margin: 14px 0 16px; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.05; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 35%, #f3dcb0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-auth-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
html[data-theme="dark"] body.hx .hx-auth-copy li { position: relative; padding-left: 28px; color: #d3d7df; font-size: .95rem; }
.hx-auth-copy li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: .65rem; font-weight: 800; background: var(--hx-accent-soft); color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .hx-auth .auth-page-card {
  align-self: center; width: 100%; max-width: 460px; justify-self: center; margin: 0; padding: clamp(26px, 3vw, 38px);
  border-radius: 26px; border: 1px solid var(--hx-line); color: var(--hx-text);
  background: radial-gradient(420px 260px at 100% 0%, rgba(232, 180, 90, .1), transparent 70%), linear-gradient(170deg, #151922, #0f1116 65%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95);
}
html[data-theme="dark"] body.hx .auth-logo { width: 150px; height: auto; }
html[data-theme="dark"] body.hx .auth-tagline { color: var(--hx-muted); }
html[data-theme="dark"] body.hx .auth-tabs { padding: 4px; border-radius: 14px; background: rgba(8, 9, 12, .6); border: 1px solid var(--hx-line-soft); }
html[data-theme="dark"] body.hx .auth-tab { border-radius: 10px; color: var(--hx-muted); }
html[data-theme="dark"] body.hx .auth-tab.is-active { background: var(--hx-accent-soft); color: var(--hx-accent-hi); box-shadow: inset 0 0 0 1px rgba(232, 180, 90, .35); }
html[data-theme="dark"] body.hx .auth-field span { color: #c3c8d2; }
html[data-theme="dark"] body.hx .auth-field input { background: rgba(8, 9, 12, .7); border: 1px solid var(--hx-line); color: var(--hx-text); border-radius: 12px; }
html[data-theme="dark"] body.hx .auth-field input:focus { border-color: rgba(232, 180, 90, .6); outline: none; box-shadow: 0 0 0 3px rgba(232, 180, 90, .14); }
html[data-theme="dark"] body.hx .auth-submit:not(:disabled) { background: var(--hx-accent); border-color: var(--hx-accent); color: var(--hx-accent-ink); border-radius: 12px; font-weight: 800; }
html[data-theme="dark"] body.hx .auth-submit:not(:disabled):hover { background: var(--hx-accent-hi); color: var(--hx-accent-ink); }
html[data-theme="dark"] body.hx .auth-form a { color: var(--hx-accent-hi); }
html[data-theme="dark"] body.hx .auth-footnote { color: var(--hx-faint); }
html[data-theme="dark"] body.hx.page-auth .site-footer { display: none; }
@media (max-width: 900px) {
  html[data-theme="dark"] body.hx .auth-main.hx-auth { grid-template-columns: 1fr; min-height: 0; padding-top: 14px; }
  html[data-theme="dark"] body.hx .hx-auth-visual { min-height: 230px; border-radius: 22px; }
  .hx-auth-copy ul { display: none; }
  html[data-theme="dark"] body.hx .hx-auth-copy h2 { margin-bottom: 0; font-size: clamp(1.5rem, 6.5vw, 2rem); }
  html[data-theme="dark"] body.hx .hx-auth .auth-page-card { max-width: none; }
}
html[data-theme="dark"] body.hx.page-auth .auth-tab.is-active { background: var(--hx-accent) !important; color: var(--hx-accent-ink) !important; border-color: var(--hx-accent) !important; box-shadow: none !important; }
html[data-theme="dark"] body.hx.page-auth .auth-tab:not(.is-active) { background: transparent !important; color: var(--hx-muted) !important; }
html[data-theme="dark"] body.hx.page-auth .auth-submit { background: var(--hx-accent) !important; border-color: var(--hx-accent) !important; color: var(--hx-accent-ink) !important; box-shadow: 0 14px 34px -16px rgba(232, 180, 90, .55) !important; }
html[data-theme="dark"] body.hx.page-auth .auth-submit:hover:not(:disabled) { background: var(--hx-accent-hi) !important; }
html[data-theme="dark"] body.hx.page-auth .auth-submit:disabled { opacity: .55; }
html[data-theme="dark"] body.hx.page-auth .auth-field input { background: rgba(8, 9, 12, .7) !important; border-color: var(--hx-line) !important; }
html[data-theme="dark"] body.hx.page-auth .auth-field input:focus { border-color: rgba(232, 180, 90, .6) !important; }

/* ---------------------------------------------------------------- account · studio projects */
html[data-theme="dark"] body.hx .hx-projects { margin: 6px 0 34px; }
html[data-theme="dark"] body.hx .hx-projects-title { margin: 0 0 14px; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--hx-accent); }
html[data-theme="dark"] body.hx .hx-projects-title.is-classic { margin-top: 10px; color: var(--hx-faint); }
.hx-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
html[data-theme="dark"] body.hx .hx-proj {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--hx-line);
  background: linear-gradient(170deg, #151922, #0f1116 65%); transition: border-color .3s, transform .35s var(--hx-ease);
}
html[data-theme="dark"] body.hx .hx-proj:hover { border-color: rgba(232, 180, 90, .45); transform: translateY(-3px); }
html[data-theme="dark"] body.hx .hx-proj-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(60% 80% at 50% 40%, rgba(232, 180, 90, .14), transparent 70%), #0b0d11; color: var(--hx-accent-hi); font-weight: 800; text-decoration: none; }
.hx-proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--hx-ease); }
html[data-theme="dark"] body.hx .hx-proj:hover .hx-proj-thumb img { transform: scale(1.04); }
html[data-theme="dark"] body.hx .hx-proj-stage { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; font-style: normal; font-size: .72rem; font-weight: 800;
  background: rgba(8, 9, 12, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
html[data-theme="dark"] body.hx .hx-proj-stage.is-review, html[data-theme="dark"] body.hx .hx-proj-stage.is-story { color: var(--hx-accent-hi); border-color: rgba(232, 180, 90, .5); }
html[data-theme="dark"] body.hx .hx-proj-stage.is-done { color: #8fe6c4; border-color: rgba(95, 208, 164, .5); }
html[data-theme="dark"] body.hx .hx-proj-stage.is-failed, html[data-theme="dark"] body.hx .hx-proj-stage.is-attention { color: #ffb38a; border-color: rgba(255, 159, 90, .5); }
.hx-proj-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
html[data-theme="dark"] body.hx .hx-proj-body h3 { margin: 0; font-size: 1.02rem; }
html[data-theme="dark"] body.hx .hx-proj-body h3 a { color: #fff; text-decoration: none; }
html[data-theme="dark"] body.hx .hx-proj-meta { margin: 0; color: var(--hx-muted); font-size: .8rem; }
html[data-theme="dark"] body.hx .hx-proj-next { margin: 2px 0 10px; color: #c9ced8; font-size: .86rem; }
.hx-proj-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
html[data-theme="dark"] body.hx .hx-proj-actions .proj-btn { text-decoration: none; }
html[data-theme="dark"] body.hx .price-card li.price-clips { color: var(--hx-accent-hi); font-weight: 700; }
