:root {
  color-scheme: dark;
  --bg: #0e1011;
  --panel: #131516;
  --text: #f3f3ed;
  --muted: #a7aaa5;
  --line: #2a2c2b;
  --volt: #d4ff3a;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --gutter: clamp(18px, 2.5vw, 44px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button:disabled { cursor: default; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--volt); color: #0b0c0d; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 5px; }
.page-width { width: min(calc(100% - var(--gutter) * 2), 1480px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px; transform: translateY(-150%); z-index: 100; background: var(--volt); color: #000; }
.skip-link:focus { transform: none; }
.topnav { height: 68px; padding-inline: var(--gutter); display: flex; align-items: center; gap: 46px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(11,12,13,.95); backdrop-filter: blur(18px); }
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; }
.logo img { width: 100px; height: auto; mix-blend-mode: screen; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 28px; }
.nav-links { color: #b6b9b3; font-size: 14px; }
.nav-links a { padding-block: 12px; }
.nav-links a:hover, .login:hover, .footer-links a:hover { color: var(--volt); }
.nav-actions { margin-left: auto; font-size: 14px; }
/* Buttons match the studio's primary pill (frontend/src/components/ui/button-types.ts). */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; color: #0c1008; background: var(--volt); border: 1px solid transparent; border-radius: 9999px; font-weight: 600; font-size: 13px; line-height: 1; white-space: nowrap; transition: background-color .16s cubic-bezier(.2,.8,.2,1); }
.button:hover { background: #e4ff6b; }
.button:active { background: #bff01f; }
.button span { font-size: inherit; line-height: 1; }
.button .ico { width: 16px; height: 16px; }
.button--small { min-height: 44px; padding: 8px 16px; gap: 8px; font-size: 13px; }
.text-button { background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; min-height: 44px; padding: 10px 0; }
.text-button:hover { color: var(--volt); }
.text-button > span { font-size: 23px; }
.eyebrow { font: 11px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.signal { display: inline-block; width: 6px; height: 6px; background: var(--volt); border-radius: 50%; vertical-align: middle; margin-right: 8px; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(74px, 8.3vw, 136px); font-weight: 500; line-height: .91; letter-spacing: -.075em; }
h1 em { font-weight: 400; }
h2 { font-size: clamp(30px, 3.8vw, 57px); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; }
.volt { color: var(--volt); }
.muted { color: #969c95; }
.hero { padding: 0 14px; }
.hero-stage { height: clamp(580px, 74svh, 850px); position: relative; isolation: isolate; overflow: hidden; border-radius: 12px; background: #181a16; }
.hero-scene { position: absolute; inset: 0; }
.scene-image { width: 100%; height: 100%; object-fit: cover; object-position: 68% 55%; }
.hero-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,9,9,.85) 0%, rgba(5,9,9,.51) 28%, rgba(5,9,9,.05) 68%), linear-gradient(0deg, rgba(4,8,8,.9), transparent 32%); }
.hero-scene--fashion { background: #b54c09; }
.hero-scene--product { background: #023ca0; }
.hero-scene--fashion .scene-image, .hero-scene--product .scene-image { position: absolute; right: 0; width: 62%; object-position: center 43%; }
.hero-scene--fashion::after, .hero-scene--product::after { background: linear-gradient(90deg, rgba(4,8,8,.92), rgba(4,8,8,.44) 37%, transparent 69%), linear-gradient(0deg, rgba(4,8,8,.8), transparent 30%); }
.hero-content { position: absolute; top: 50%; left: clamp(24px, 4.5vw, 76px); transform: translateY(-55%); max-width: 780px; pointer-events: none; }
.hero-kicker { display: inline-flex; align-items: center; padding: 8px 12px; background: #10171355; border: 1px solid #ffffff30; backdrop-filter: blur(12px); border-radius: 4px; font: 10px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 30px; color: #e4e8df; }
.hero-description { font-size: 15px; color: #e2e5dd; line-height: 1.55; margin-top: 26px; max-width: 380px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 26px; pointer-events: auto; }
.hero-actions .button { min-width: 190px; }
.tour-button { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; background: none; font-size: 13px; }
.round-play { display: grid; place-items: center; border: 1px solid #ffffff70; width: 36px; height: 36px; border-radius: 50%; font-size: 10px; }
.tour-button:hover .round-play { background: #fff; color: #141714; }
.prompt-peek { position: absolute; top: 28px; right: 28px; z-index: 2; padding: 9px 13px; display: flex; align-items: center; gap: 10px; color: white; background: #12191660; border: 1px solid #ffffff45; border-radius: 5px; font-size: 11px; backdrop-filter: blur(12px); min-height: 40px; }
.prompt-peek:hover { background: var(--volt); color: #10130c; }
.hero-bottom { position: absolute; bottom: 24px; left: clamp(24px, 4.5vw, 76px); right: 28px; display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; }
.hero-bottom > p { font: 10px/1.5 var(--mono); color: #c5cbc2; padding-bottom: 12px; }
.tiny-cross { color: var(--volt); margin-right: 9px; font-size: 16px; }
.hero-tabs { display: flex; gap: 8px; }
.hero-tabs button { padding: 6px 12px 6px 6px; display: flex; align-items: center; gap: 10px; background: #0b100e80; border: 1px solid #ffffff30; border-radius: 7px; text-align: left; backdrop-filter: blur(14px); min-width: 140px; }
.hero-tabs button img { width: 54px; height: 46px; object-fit: cover; border-radius: 3px; }
.hero-tabs button span { font-size: 12px; line-height: 1.3; }
.hero-tabs button small { display: block; font: 9px/1.5 var(--mono); color: #bec6b9; margin-bottom: 4px; }
.hero-tabs button[aria-selected="true"] { border-color: var(--volt); background: #151e10b0; }
.hero-tabs button[aria-selected="true"] span { color: var(--volt); }
.tool-rail { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; padding: 16px 14px 0; }
.tool-shortcut { display: flex; align-items: center; gap: 13px; background: #191c1e; border: 1px solid #2b2e2e; border-radius: 9px; padding: 20px 15px; transition: background .2s, border-color .2s; }
.tool-shortcut:hover { background: #212622; border-color: #757f62; }
.tool-icon { width: 35px; height: 35px; display: grid; place-items: center; flex-shrink: 0; color: var(--volt); }
.tool-icon svg { width: 27px; height: 27px; }
.tool-shortcut strong { font-size: 13px; font-weight: 500; display: block; }
.tool-shortcut small { display: block; font-size: 10px; color: #9fa59d; margin-top: 3px; }
.tool-arrow { margin-left: auto; color: #818c7e; font-size: 15px; }
.section { padding-block: 74px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 30px; }
.section-description { max-width: 310px; font-size: 13px; color: var(--muted); }
.explore h2 { font-size: clamp(29px, 3.1vw, 46px); }
.explore .eyebrow { margin-bottom: 12px; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { font-size: 12px; padding: 9px 17px; min-height: 40px; border-radius: 5px; border: 1px solid transparent; background: transparent; color: #a9afa7; }
.filters button:hover { color: white; background: #1b1f1a; }
.filters button[aria-pressed="true"] { background: #2b3027; color: var(--volt); border-color: #454e3b; }
.motion-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 10px; min-height: 40px; background: none; font-size: 11px; color: #b6bdb1; }
.motion-toggle:hover { color: var(--volt); }
.project-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: repeat(5, clamp(100px, 10.5vw, 174px)); gap: 10px; grid-template-areas: "speed speed baker clay" "speed speed baker clay" "nike golden baker product" "nike golden london family" "nike golden london family"; }
.gallery-card--speed { grid-area: speed; }.gallery-card--baker { grid-area: baker; }.gallery-card--nike { grid-area: nike; }.gallery-card--clay { grid-area: clay; }.gallery-card--london { grid-area: london; }.gallery-card--golden { grid-area: golden; }.gallery-card--product { grid-area: product; }.gallery-card--family { grid-area: family; }
.project-grid[data-filtered="true"] { grid-template-areas: none; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: none; grid-auto-rows: 340px; }
.project-grid[data-filtered="true"] .gallery-card { grid-area: auto; }
.project-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 8px; background: #1c201b; text-align: left; padding: 0; width: 100%; height: 100%; }
.project-card > img, .project-card > video { width: 100%; height: 100%; object-fit: cover; }
.project-card > video { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.project-card.playing > video { opacity: 1; }
.project-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #000a, transparent 50%); pointer-events: none; }
.card-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.media-tag { padding: 4px 8px; border: 1px solid #ffffff40; border-radius: 4px; font: 10px/1.5 var(--font); color: white; background: #0005; backdrop-filter: blur(8px); }
.play-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #ffffff60; border-radius: 50%; background: #0005; font-size: 9px; }
.project-card:hover .play-icon { background: var(--volt); color: #000; border-color: var(--volt); }
.card-caption { position: absolute; bottom: 18px; left: 18px; right: 18px; z-index: 2; }
.card-title { display: block; font-size: 23px; font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.gallery-card--speed .card-title { font-size: clamp(30px, 3vw, 45px); }
.card-description { display: block; margin-top: 6px; font-size: 11px; color: #d4d9d0; }
.gallery-card--product .card-title { font-size: 18px; }
.gallery-card--product .card-description { display: none; }
.gallery-card--product .card-top { top: 9px; }
.gallery-card--product .card-caption { bottom: 12px; }
.gallery-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 22px; }
.gallery-bottom p { color: var(--muted); font-size: 11px; }
.inline-link { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 500; }
.inline-link:hover { color: var(--volt); }
.inline-link > span { font-size: 19px; }
.workflow { border-block: 1px solid var(--line); background: #101212; }
.workflow-layout { display: grid; grid-template-columns: .9fr 1.5fr; gap: 50px; align-items: center; }
.workflow-steps { display: flex; flex-direction: column; }
.workflow-step { display: flex; gap: 22px; width: 100%; text-align: left; background: none; padding: 25px 0; border-top: 1px solid var(--line); }
.step-number { font: 12px/2 var(--mono); color: #777d74; }
.workflow-step strong { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.03em; color: var(--muted); }
.step-body { display: block; font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 9px; }
.step-arrow { margin-left: auto; color: #6a7068; }
.workflow-step[aria-selected="true"] { border-color: var(--volt); }
.workflow-step[aria-selected="true"] strong, .workflow-step[aria-selected="true"] .step-number, .workflow-step[aria-selected="true"] .step-arrow { color: var(--volt); }
.workflow-preview { border: 1px solid #353934; border-radius: 12px; overflow: hidden; background: #090a09; box-shadow: 0 20px 70px #0005; }
.workflow-preview img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: contain; }
.preview-chrome { padding: 12px 18px; border-bottom: 1px solid var(--line); font: 10px/1.5 var(--mono); color: #999e96; }
.pip-note { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 22px; }
.pip-note > img { flex: 0 0 64px; }
.pip-note > p { max-width: 680px; font-size: 13px; color: var(--muted); }
.pip-note strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 3px; font-weight: 500; }
.pip-note > a { margin-left: auto; flex-shrink: 0; }
.studio-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.studio-option { position: relative; border-top: 1px solid var(--line); padding-top: 22px; }
.option-number { font: 11px/1.6 var(--mono); color: var(--muted); }
.studio-option h3 { font-size: 27px; font-weight: 500; letter-spacing: -.04em; margin-top: 15px; }
.studio-option p { margin-block: 10px 20px; color: var(--muted); font-size: 14px; max-width: 340px; min-height: 66px; }
.studio-option .inline-link { color: var(--volt); }
.studio-option > img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: center 43%; border-radius: 8px; margin-top: 24px; }
.studio-option:hover { border-color: var(--volt); }
.faq { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 16px; padding-block: 24px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--volt); font-size: 22px; line-height: 1; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { font-size: 14px; line-height: 1.7; color: var(--muted); padding: 0 32px 26px 0; }
.final { background: var(--volt); color: #13170d; padding-block: 74px 56px; }
.final .eyebrow { color: #485624; }
.final h2 { font-size: clamp(62px, 9vw, 134px); letter-spacing: -.065em; line-height: .95; }
.final h2 > span { display: block; color: #536820; }
.final-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 40px; }
.final-bottom p { font-size: 16px; color: #3d4c20; }
.final .button { color: var(--text); background: #10150b; min-width: 235px; }
.final .button:hover { background: #28341a; }
.footer { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding-block: 34px; }
.footer > p { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; font-size: 12px; color: var(--muted); }
.footer-links a { min-height: 44px; display: flex; align-items: center; }
.preview-dialog { color: var(--text); background: #151716; border: 1px solid #3d413c; border-radius: 14px; padding: 0; width: min(1020px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.preview-dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(12px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; }
.dialog-header .eyebrow { margin-bottom: 4px; font-size: 10px; }
.dialog-header h2 { font-size: 26px; }
.close-button { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border: 1px solid #464b44; border-radius: 50%; background: transparent; }
.close-button:hover { background: #30362a; }
.dialog-video, .dialog-image { width: 100%; height: min(60dvh, 640px); object-fit: contain; background: #060706; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; }
.dialog-footer p { max-width: 650px; font-size: 13px; color: var(--muted); }
.media-error { padding: 18px 24px; color: #ffcf91; }
.prompt-details { margin: 20px 24px 0; background: #0c0f0c; border: 1px solid #343b2e; border-radius: 8px; padding: 18px; }
.prompt-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; font-size: 12px; color: var(--volt); }
.copy-prompt { background: #2d3624; color: var(--volt); padding: 9px 12px; border-radius: 5px; font-size: 12px; min-height: 40px; }
#artwork-prompt { color: #b4bdac; font: 12px/1.7 var(--mono); margin-top: 14px; max-height: 145px; overflow: auto; user-select: text; }
.copy-status { font-size: 12px; color: #ccd8bf; margin-top: 8px; }
@media (min-width: 1700px) { .hero, .tool-rail { max-width: 1740px; margin-inline: auto; } }
@media (max-width: 1150px) {
  .tool-shortcut { padding: 16px 10px; gap: 7px; }
  .tool-shortcut small { display: none; }
  .tool-arrow { display: none; }
  .hero-content { max-width: 600px; }
  .hero-tabs button { min-width: 118px; gap: 7px; padding-right: 10px; }
  .hero-tabs button img { width: 44px; height: 42px; }
  .hero-tabs button span { font-size: 11px; }
  .workflow-layout { gap: 28px; grid-template-columns: 1fr 1.3fr; }
  .studio-option h3 { font-size: 23px; }
  .faq { gap: 40px; }
  .card-title { font-size: 20px; }
  .card-description { display: none; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .topnav { height: 62px; gap: 18px; }
  .nav-links { display: none; }
  .nav-actions { gap: 16px; }
  .logo img { width: 84px; }
  .button--small { font-size: 13px; padding-inline: 14px; gap: 8px; }
  .hero { padding-inline: 8px; }
  .hero-stage { height: 660px; min-height: 0; border-radius: 9px; }
  .hero-content { top: auto; bottom: 120px; transform: none; left: 22px; right: 22px; }
  h1 { font-size: clamp(54px, 12vw, 86px); }
  .hero-kicker { font-size: 8px; padding: 6px 8px; margin-bottom: 20px; }
  .hero-description { font-size: 13px; line-height: 1.5; max-width: 310px; margin-top: 20px; }
  .hero-actions { gap: 16px; margin-top: 22px; }
  .hero-actions .button { min-width: 0; min-height: 48px; font-size: 13px; gap: 20px; padding: 12px 17px; }
  .tour-button { font-size: 11px; gap: 8px; }
  .round-play { width: 30px; height: 30px; }
  .scene-image { object-position: 57% 28%; }
  .hero-scene--fashion .scene-image, .hero-scene--product .scene-image { width: 100%; object-position: center 22%; }
  .hero-scene::after, .hero-scene--fashion::after, .hero-scene--product::after { background: linear-gradient(0deg, #050909 0%, #050909cc 28%, #05090915 77%); }
  .prompt-peek { top: 16px; right: 16px; font-size: 10px; padding: 7px 10px; }
  .hero-bottom { left: 22px; right: 22px; bottom: 16px; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .hero-bottom > p { font-size: 8px; padding: 0; }
  .hero-tabs { width: 100%; gap: 6px; }
  .hero-tabs button { flex: 1; min-width: 0; padding: 5px; gap: 7px; }
  .hero-tabs button img { width: 32px; height: 35px; }
  .hero-tabs button span { font-size: 10px; }
  .hero-tabs button small { font-size: 8px; margin-bottom: 1px; }
  .tool-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 8px; gap: 8px; scrollbar-width: none; }
  .tool-rail::-webkit-scrollbar { display: none; }
  .tool-shortcut { flex: 0 0 157px; scroll-snap-align: start; padding: 16px 12px; gap: 10px; }
  .tool-shortcut strong { font-size: 12px; }
  .tool-icon { width: 26px; height: 26px; }
  .tool-icon svg { width: 23px; height: 23px; }
  .section { padding-block: 48px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 24px; }
  .eyebrow { font-size: 9px; margin-bottom: 15px; }
  .section-description { max-width: 420px; font-size: 13px; }
  .explore h2 { font-size: 34px; }
  .explore h2 span { display: block; }
  .gallery-toolbar { flex-wrap: wrap; gap: 6px; }
  .filters { gap: 2px; }
  .filters button { padding: 8px 10px; font-size: 11px; }
  .motion-toggle { margin-left: auto; font-size: 10px; padding-block: 6px; min-height: 32px; }
  .project-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, 140px); gap: 8px; grid-template-areas: "speed speed" "speed speed" "baker clay" "baker clay" "nike golden" "london product" "london family"; }
  .project-grid[data-filtered="true"] { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .card-top { top: 10px; left: 10px; right: 10px; }
  .media-tag { font-size: 9px; padding: 3px 6px; }
  .play-icon { width: 25px; height: 25px; font-size: 8px; }
  .card-caption { bottom: 15px; left: 12px; right: 12px; }
  .card-title { font-size: 19px; }
  .gallery-card--speed .card-title { font-size: 32px; }
  .gallery-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .workflow-layout { grid-template-columns: 1fr; gap: 24px; }
  .workflow-step { padding-block: 20px; }
  .workflow-step strong { font-size: 21px; }
  .workflow-step[aria-selected="false"] .step-body { display: none; }
  .pip-note { flex-wrap: wrap; gap: 14px; margin-top: 28px; }
  .pip-note > img { width: 52px; height: 52px; flex-basis: 52px; }
  .pip-note > p { flex: 1; min-width: 180px; }
  .pip-note > a { margin-left: 66px; }
  .studio-options { grid-template-columns: 1fr; gap: 32px; }
  .studio-option p { min-height: 0; max-width: 440px; }
  .studio-option > img { aspect-ratio: 1.8; margin-top: 20px; }
  .faq { grid-template-columns: 1fr; gap: 25px; }
  .faq-list summary { font-size: 15px; }
  .final { padding-block: 48px; }
  .final-bottom { flex-direction: column; align-items: flex-start; gap: 26px; }
  .final-bottom p { font-size: 14px; }
  .footer { gap: 16px; }
  .footer-links { margin-left: 0; gap: 20px; }
  .dialog-header { padding: 16px; }
  .dialog-header h2 { font-size: 23px; }
  .dialog-footer { padding: 16px; gap: 18px; flex-wrap: wrap; }
  .dialog-video, .dialog-image { height: min(52dvh, 540px); }
  .prompt-details { margin: 16px 16px 0; padding: 14px; }
  .prompt-heading { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 370px) { .login { display: none; } .hero-stage { height: 690px; } .hero-actions { gap: 9px; } .hero-actions .button { padding-inline: 14px; } .tour-button { font-size: 10px; } .hero-description br { display: none; } .hero-tabs button img { width: 25px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover { transform: none; }
}

/* Inline SVG icons (never symbol characters: iOS draws ↗ and ▶ as emoji). */
.ico { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.125em; }
.ico--arrow { width: max(.82em, 12px); height: max(.82em, 12px); }
.ico--play-outline { width: .72em; height: .72em; }
.ico--close { width: 18px; height: 18px; }

/* 404 */
.not-found { min-height: calc(100dvh - 72px); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-block: 120px 80px; }
.not-found h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.not-found-copy { max-width: 460px; color: var(--muted); font-size: 16px; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 8px; }

/* Content pages (use cases, comparisons, guides): built by landing-src/build.py */
.doc { padding-block: 34px 90px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 11px/1.6 var(--mono); color: var(--muted); margin-bottom: 44px; }
.crumbs a:hover { color: var(--volt); }
.crumbs [aria-current] { color: var(--text); }
.doc-header { max-width: 900px; }
.doc-header h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.doc-lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: #cfd2cb; max-width: 720px; }
.doc-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.doc-meta { margin-top: 26px; font: 11px/1.6 var(--mono); color: var(--muted); }
.doc-hero-image { width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: 12px; margin-top: 50px; border: 1px solid var(--line); }
.prose { max-width: 760px; margin-top: 56px; font-size: 17px; line-height: 1.75; color: #d9dcd5; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; color: var(--text); }
.prose h3 { margin-top: 1.8em; font-size: 21px; font-weight: 500; letter-spacing: -.02em; color: var(--text); }
.prose p, .prose li { color: #cfd2cb; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--volt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--volt); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--volt); color: var(--text); }
.prose img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.prose code { font: 14px var(--mono); background: #1b1e1f; padding: 2px 6px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.prose th { font: 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #131516; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 500; }
.doc-faq { max-width: 760px; margin-top: 80px; }
.doc-faq h2, .related h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -.035em; margin-bottom: 14px; }
.related { margin-top: 90px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.related-grid--hub { margin-top: 56px; }
.related-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .2s, background .2s; }
.related-card:hover { border-color: #757f62; background: #181b1b; }
.related-card strong { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.related-card small { color: var(--muted); font-size: 14px; line-height: 1.6; }
.related-card .inline-link { margin-top: auto; color: var(--volt); padding-top: 6px; }
.doc-cta { margin-top: 90px; padding: clamp(28px, 5vw, 56px); border-radius: 16px; background: var(--volt); color: #10130c; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
.doc-cta .eyebrow { color: #3d4a17; }
.doc-cta h2 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.doc-cta .button { color: var(--text); background: #10150b; }
.doc-cta .button:hover { background: #28341a; }
/* Site footer with every content page linked (internal linking for search). */
.footer--site { display: block; border-top: 1px solid var(--line); padding-block: 48px 26px; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-heading { font: 11px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-heading a:hover, .footer-column li a:hover { color: var(--volt); }
.footer-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-column li a { display: inline-flex; min-height: 32px; align-items: center; font-size: 14px; color: #cfd2cb; }
.footer-base { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding-top: 26px; }
.footer-base > p { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .doc { padding-block: 22px 64px; }
  .crumbs { margin-bottom: 28px; }
  .prose { font-size: 16px; margin-top: 40px; }
  .doc-hero-image { margin-top: 34px; }
  .footer-base .footer-links { margin-left: 0; }
}
/* Home: What is Poiema */
.about-body { max-width: 860px; display: grid; gap: 18px; font-size: 17px; line-height: 1.75; color: #cfd2cb; }
.about-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.about-links a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text); }
.about-links a:hover { border-color: var(--volt); color: var(--volt); }
