@font-face { font-family: Ubuntu; src: url('assets/fonts/UbuntuSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Ubuntu; src: url('assets/fonts/UbuntuSans-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Ubuntu; src: url('assets/fonts/UbuntuSans-SemiBold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }

/* Ember palette from the application: charcoal surfaces, ivory text, orange for
   manual work, blue for AI work, plum from the logo and selection fills. */
:root {
  color-scheme: dark;
  --bg: #161417; --bg-2: #1b191c; --surface: #201e21; --surface-2: #29262b; --app: #242225;
  --ivory: #f5f2f0; --muted: #b5aeb7; --dim: #8c8490; --line: #322e35; --line-2: #403b44;
  --orange: #e95420; --orange-hi: #ff7a45; --blue: #5aaaff; --plum: #4d344a; --plum-hi: #7a2a55; --green: #8fcf8f;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ivory); font-family: Ubuntu, system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--plum-hi); color: white; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
img { max-width: 100%; display: block; }
p { color: var(--muted); margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.4; }
.wrap { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .feature-icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; width: 20px; height: 20px; flex: none; }
.ember { color: var(--orange); }
.ai-blue { color: var(--blue); }
.skip-link { position: fixed; z-index: 60; background: var(--orange); color: white; padding: 10px 15px; top: -100px; left: 15px; border-radius: 8px; }
.skip-link:focus { top: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- header */
.header-shell { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.header-shell.scrolled { background: #161417cc; backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 #ffffff0d; }
.header { height: 78px; display: flex; align-items: center; gap: 44px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.brand img { object-fit: contain; width: 28px; height: 34px; }
.header nav { display: flex; gap: 6px; margin-left: auto; font-size: 14px; color: #d6cfd8; }
.header nav a { padding: 8px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.header nav a:hover { color: var(--ivory); background: #ffffff10; }
.source-link { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 9px 15px; border-radius: 999px; background: #ffffff0d; box-shadow: inset 0 0 0 1px #ffffff14; transition: background .2s, box-shadow .2s; }
.source-link:hover { background: #ffffff18; box-shadow: inset 0 0 0 1px #e9542070; }
.source-link .arrow-icon { width: 14px; height: 14px; color: var(--muted); }
.reading-progress { height: 2px; background: linear-gradient(90deg, var(--orange), var(--orange-hi) 60%, var(--blue)); transform: scaleX(0); transform-origin: left; position: absolute; bottom: 0; width: 100%; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(100svh, 1040px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; transform: scale(calc(1.06 + var(--hero-zoom, 0) * .08)) translateY(calc(var(--hero-shift, 0) * 1px)); transform-origin: 60% 40%; animation: hero-in 2.4s var(--ease) both; }
.hero-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #161417f2 0%, #161417c4 30%, #16141740 58%, #16141700 80%),
              linear-gradient(0deg, var(--bg) 0%, #161417d0 14%, #16141700 46%),
              linear-gradient(180deg, #161417a8 0%, #16141700 22%); }
.hero-inner { padding-block: 150px 112px; position: relative; }
.hero-copy { max-width: 640px; }
.release-label { display: inline-flex; align-items: center; gap: 9px; color: #e1d9e2; font-size: 13px; padding: 7px 14px 7px 12px; border-radius: 999px; background: #1614178c; box-shadow: inset 0 0 0 1px #ffffff17; backdrop-filter: blur(10px); animation: rise .9s var(--ease) .15s both; }
.status-dot { background: var(--orange); width: 7px; height: 7px; display: inline-block; border-radius: 50%; flex: none; }
.status-dot.blue { background: var(--blue); }
.label-separator { color: #7d7480; }
.hero-title { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); margin-top: 30px; }
.logo-mark { position: relative; width: clamp(60px, 6.6vw, 100px); aspect-ratio: 241 / 385; flex: none; }
.logo-part { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-orange { animation: wipe-up 1s var(--ease) .35s both; }
.logo-ivory { animation: slide-in 1s var(--ease) .75s both; }
.logo-plum { animation: fade 1s ease 1.05s both; }
h1 { font-size: clamp(64px, 8.4vw, 132px); letter-spacing: -.055em; line-height: .9; white-space: nowrap; animation: rise 1.1s var(--ease) .45s both; }
h1 .ember { color: var(--orange); }
.hero-description { font-size: 21px; line-height: 1.5; color: #ddd5de; margin-top: 26px; max-width: 470px; animation: rise 1s var(--ease) .8s both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; animation: rise 1s var(--ease) .9s both; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 16px 24px; border-radius: 12px; font-size: 15px; font-weight: 500; overflow: hidden; transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.button .icon { width: 19px; height: 19px; }
.primary { background: var(--orange); color: #fff; }
.primary:hover { background: #f2622c; transform: translateY(-1px); }
.ghost { background: #ffffff10; color: var(--ivory); box-shadow: inset 0 0 0 1px #ffffff26; backdrop-filter: blur(10px); }
.ghost:hover { background: #ffffff1c; transform: translateY(-1px); }
.ghost .icon { fill: currentColor; stroke: none; width: 16px; }
.download-meta { font-size: 12.5px; margin-top: 14px; color: #c4bcc6; animation: rise 1s var(--ease) 1s both; }
.other-downloads { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; animation: rise 1s var(--ease) 1.05s both; }
.other-downloads .text-link { font-size: 13px; color: #d4ccd6; }
.hero-facts { display: flex; gap: 18px; font-size: 12px; margin-top: 26px; color: #b9afbc; animation: rise 1s var(--ease) 1.1s both; }
.hero-facts a { display: inline-flex; align-items: center; gap: 4px; }
.hero-facts a:hover { color: var(--orange); }
.hero-facts .icon { width: 12px; height: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px #ffffff50; animation: fade 1s ease 1.6s both; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ivory); animation: cue 1.8s ease-in-out infinite; }

/* ---------------------------------------------------------------- showcase window */
.showcase { position: relative; margin-top: -60px; perspective: 1600px; z-index: 2; }
.showcase-frame { margin: 0; }
.showcase-tilt { position: relative; border-radius: 16px; overflow: hidden; transform-origin: 50% 0%; transform: rotateX(calc(var(--tilt, 1) * 16deg)) scale(calc(1 - var(--tilt, 1) * .06)); box-shadow: 0 40px 120px #000000a0, 0 0 0 1px #ffffff14, 0 0 90px #e9542018; transition: transform .1s linear; }
.showcase-tilt img { width: 100%; height: auto; }
.showcase-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% -10%, #ffffff18, transparent 70%); }
.showcase figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; font-size: 12.5px; color: var(--dim); text-align: center; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: 120px; }
.section-label { display: flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .18em; font-weight: 500; color: #c9b8c6; margin-bottom: 20px; }
.section-label::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--orange); }
.section-label.ai-color::before { display: none; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.section-heading > .text-link { margin-bottom: 6px; }
.section-aside { max-width: 400px; font-size: 15px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #ece6ec; transition: color .2s, gap .2s; }
.text-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--orange-hi); }
.text-link:hover .icon { transform: translate(2px, -2px); }
.section-intro > p { margin-top: 20px; font-size: 16px; max-width: 380px; }
.section-intro > .text-link { margin-top: 28px; }

/* ---------------------------------------------------------------- trailer */
.trailer-section { padding-top: 140px; }
.video-frame { position: relative; border-radius: 18px; overflow: hidden; background: #0e0d0f; box-shadow: 0 50px 140px #00000090, 0 0 0 1px #ffffff12; }
.trailer-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #121013; }
.trailer-video:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.play-overlay { position: absolute; inset: 0 0 56px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(closest-side, #16141700, #16141780); transition: opacity .45s, visibility .45s; }
.play-overlay.hidden { opacity: 0; visibility: hidden; }
.play-ring { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: #e95420e6; box-shadow: 0 20px 50px #00000080; transition: transform .35s var(--ease), background .25s; }
.play-ring .icon { width: 38px; height: 38px; fill: #fff; stroke: none; margin-left: 5px; }
.play-overlay:hover .play-ring { transform: scale(1.04); background: var(--orange); }
.play-text { font-size: 15px; font-weight: 500; color: var(--ivory); text-shadow: 0 2px 16px #000; }
.play-text span { color: #d2c8d3; margin-left: 6px; font-variant-numeric: tabular-nums; }
.trailer-description { margin-top: 18px; font-size: 14px; }
.trailer-download { margin-top: 12px; }

/* ---------------------------------------------------------------- layers story */
.layers-story { position: relative; height: 470vh; background: radial-gradient(60% 40% at 70% 50%, #4d344a40, transparent 70%); }
.layers-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.layers-grid { display: grid; grid-template-columns: minmax(280px, .62fr) 1.5fr; gap: 56px; align-items: center; }
.layers-copy h2 { margin-bottom: 30px; font-size: clamp(32px, 3.2vw, 46px); }
.layers-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.layers-steps li { position: relative; padding: 14px 0 14px 26px; opacity: .32; transition: opacity .45s; counter-increment: step; }
.layers-steps li::before { content: ''; position: absolute; left: 0; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .45s, box-shadow .45s; }
.layers-steps li.active { opacity: 1; }
.layers-steps li.active::before { background: var(--orange); }
.layers-steps h3 { font-size: 18px; }
.layers-steps p { font-size: 14px; margin-top: 4px; max-width: 360px; }
.layers-stage { position: relative; height: min(76vh, 720px); }
.stack-viewport { position: absolute; inset: 0 210px 0 0; display: grid; place-items: center; perspective: 2200px; }
.stack { position: relative; width: 100%; aspect-ratio: 16 / 9; transform-style: preserve-3d; transform: translateX(calc(var(--t, 0) * -2%)) rotateX(calc(var(--t, 0) * 58deg)) rotateZ(calc(var(--t, 0) * -34deg)) scale(calc(1 - var(--t, 0) * .2)); }
.stack.flat { transform-style: flat; isolation: isolate; }
.stack-flat, .plane { position: absolute; inset: 0; border-radius: 10px; }
.stack-flat { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 40px 100px #00000090; transition: opacity .3s; }
.plane { transform: translateZ(calc(var(--z, 0) * 1px)); transition: opacity .35s; }
.plane img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 10px; }
.plane::before { content: ''; position: absolute; inset: 0; border-radius: 10px; background: #2a262d8c; opacity: var(--slab, 0); }
.plane::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--edge, #5aaaff); opacity: var(--slab, 0); }
.plane[data-layer="5-sunlight"], .plane[data-layer="6-dodge"] { --edge: #e95420; }
.plane[data-layer="0-photo"]::before { display: none; }
.stack.flat .plane::before, .stack.flat .plane::after { display: none; }
.stack.flat .plane[data-blend="screen"] { mix-blend-mode: screen; }
.stack.flat .plane[data-blend="overlay"] { mix-blend-mode: overlay; }
.plane.off { opacity: 0; }
.stack:not(.flat) .plane.off { opacity: .1; }
.anchor { position: absolute; right: 0; top: 50%; width: 1px; height: 1px; }
/* who is working where: AI work area in blue (as the app marks it), the manual brush in orange */
.regions { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: var(--regions, 0); }
.activity { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.activity-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; font-size: 12px; color: var(--ivory); background: #161417c7; backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px #ffffff1c; }
.activity-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: blink 1.6s ease-in-out infinite; }
.activity-chip.ai .dot { background: var(--blue); animation-delay: .8s; }
.region-ai { position: absolute; left: 2.5%; top: 3%; width: 95%; height: 22%; border-radius: 6px; border: 2px solid #5aaaff; background: repeating-linear-gradient(135deg, #5aaaff22 0 10px, #5aaaff0d 10px 20px); box-shadow: 0 0 0 1px #0000004d; opacity: var(--areas, 0); transition: opacity .3s; }
.region-you { position: absolute; left: 59.6%; top: 59%; opacity: var(--areas, 0); transition: opacity .3s; }
.brush-ring { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 2px solid var(--orange); background: #e954202e; box-shadow: 0 0 0 1px #0000004d; }
.region-you > * { animation: brush-path 4.5s ease-in-out infinite; }
.region-tag { position: absolute; white-space: nowrap; padding: 4px 9px; border-radius: 6px; font-size: 11.5px; color: #fff; }
.region-ai .region-tag { left: 10px; top: 10px; background: #3f86d8; }
.region-you .region-tag { left: 44px; top: 18px; background: var(--orange); }
.layer-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.layer-links line { stroke-width: 1.2; }
.layer-labels { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 196px; display: flex; flex-direction: column; gap: 10px; }
.layer-label { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border-radius: 999px; font-size: 13px; text-align: left; background: #1d1b1ee6; box-shadow: inset 0 0 0 1.2px var(--c); opacity: var(--labels, 1); transform: translateX(calc((1 - var(--labels, 1)) * 24px)); transition: background .2s, box-shadow .2s, color .2s; }
.layer-label.artist { --c: #e9542099; }
.layer-label.ai { --c: #5aaaff8c; }
.layer-label .who { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; color: #fff; background: var(--orange); }
.layer-label.ai .who { background: #3f86d8; }
.layer-label .icon { margin-left: auto; width: 15px; height: 15px; color: var(--muted); }
.layer-label:hover { background: #2a272c; }
.layer-label[aria-pressed="false"] { color: #7d7480; box-shadow: inset 0 0 0 1.2px #ffffff1a; }
.layer-label[aria-pressed="false"] .who { background: #4a444e; }
.layer-label[aria-pressed="false"] .icon { opacity: .35; }

/* ---------------------------------------------------------------- capability cards */
.capabilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 20px 40px; }
.spot { position: relative; isolation: isolate; border-radius: var(--radius); background: linear-gradient(180deg, #221f24, #1c1a1d); box-shadow: inset 0 0 0 1px #ffffff0f; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), #ffffff0d, transparent 60%); }
.spot:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #ffffff26, 0 18px 44px #00000050; }
.spot:hover::before { opacity: 1; }
.capabilities article { padding: 30px 28px 28px; }
.feature-icon { width: 28px; height: 28px; color: var(--orange); margin-bottom: 18px; transition: transform .35s var(--ease); }
.capabilities h2 { font-size: 19px; letter-spacing: -.01em; line-height: 1.3; }
.capabilities p { margin-top: 10px; font-size: 14px; line-height: 1.65; }

/* ---------------------------------------------------------------- gallery */
.gallery { min-width: 0; position: relative; }
.gallery-controls { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.gallery-controls [role=tab] { font-size: 13.5px; color: var(--muted); padding: 9px 16px; border-radius: 999px; transition: color .2s, background .2s; }
.gallery-controls [role=tab]:hover { color: var(--ivory); background: #ffffff0d; }
.gallery-controls [aria-selected=true] { color: #fff; background: var(--plum); box-shadow: inset 0 0 0 1px #ffffff1c; }
.expand-button { margin-left: auto; display: flex; padding: 10px; border-radius: 50%; color: var(--muted); transition: background .2s, color .2s; }
.expand-button:hover { color: var(--ivory); background: #ffffff10; }
figure { margin: 0; }
.screenshot-button { display: block; width: 100%; padding: 0; background: var(--app); overflow: hidden; border-radius: 16px; box-shadow: 0 40px 110px #00000090, 0 0 0 1px #ffffff12; }
.screenshot-button img { width: 100%; height: auto; aspect-ratio: 2040 / 1350; object-fit: contain; transition: transform .8s var(--ease), filter .3s; }
.screenshot-button:hover img { transform: scale(1.012); filter: brightness(1.04); }
figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.image-count { font-variant-numeric: tabular-nums; color: #8f8794; flex-shrink: 0; }
.example-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #bfb4c0; }
.example-link:hover { color: var(--orange); }
.example-link .icon { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- downloads */
.downloads-section { position: relative; }
.downloads-section .section-heading { margin-bottom: 16px; }
.build-label { color: #cbbcc6; font-size: 12px; font-variant-numeric: tabular-nums; padding: 7px 13px; border-radius: 999px; background: #ffffff0b; box-shadow: inset 0 0 0 1px #ffffff14; }
.download-intro { font-size: 15px; margin-bottom: 30px; }
.platform-list { display: grid; gap: 12px; }
.platform-row { display: flex; gap: 30px; align-items: center; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(180deg, #211e22, #1c1a1d); box-shadow: inset 0 0 0 1px #ffffff0f; transition: transform .3s var(--ease), box-shadow .3s; }
.platform-row:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px #ffffff22, 0 20px 50px #00000055; }
.platform-row.recommended { background: linear-gradient(110deg, #2c1e1b, #211d22 50%, #1e1b1f); box-shadow: inset 0 0 0 1px #e9542066; }
.platform-info { display: flex; align-items: center; gap: 22px; flex: 1; min-width: 0; }
.platform-info > .icon { width: 30px; height: 30px; color: #b9afb9; }
.platform-row.recommended .platform-info > .icon { color: var(--orange); }
.platform-info h3 { display: flex; align-items: center; gap: 14px; font-size: 21px; }
.platform-info p { font-size: 12.5px; margin-top: 4px; }
.os-hint { color: #ffb08f; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: #e9542026; }
.package-size { color: #a89faa; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.platform-download { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 18px; min-width: 140px; font-size: 14px; border-radius: 10px; background: #ffffff0d; box-shadow: inset 0 0 0 1px #ffffff1a; transition: background .2s, color .2s; }
.platform-download .icon { transition: transform .25s var(--ease); width: 18px; }
.platform-download:hover { background: #ffffff18; }
.platform-download:hover .icon { transform: translateY(3px); }
.recommended .platform-download { background: var(--orange); color: #fff; }
.recommended .platform-download:hover { background: #f2622c; }
.download-caution { font-size: 12.5px; max-width: 820px; margin-top: 20px; }
.download-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 20px; }

/* ---------------------------------------------------------------- setup */
.setup-section { display: grid; grid-template-columns: .85fr 1.5fr; gap: 90px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 26px; padding-block: 24px; border-top: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; border-top: 0; }
.steps li:last-child { padding-bottom: 0; }
.step-number { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; color: var(--orange); font-size: 13px; font-variant-numeric: tabular-nums; background: #e9542018; box-shadow: inset 0 0 0 1px #e9542050; }
.steps h3 { padding-top: 6px; }
.steps p { font-size: 14.5px; margin-top: 7px; max-width: 590px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; color: #f1ebf1; }
.steps code { padding: 2px 6px; border-radius: 5px; background: #ffffff10; }

/* ---------------------------------------------------------------- AI */
.ai-section { position: relative; overflow: hidden; background: linear-gradient(110deg, #171a22 0%, #1a1820 55%, #161417 100%); }
.ai-section::before { content: ''; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%; background: radial-gradient(closest-side, #5aaaff26, transparent); pointer-events: none; }
.ai-grid { position: relative; display: grid; grid-template-columns: .85fr 1.5fr; gap: 90px; }
.ai-color, .ai-steps .step-number, .ai-link { color: var(--blue); }
.ai-steps .step-number { background: #5aaaff16; box-shadow: inset 0 0 0 1px #5aaaff50; }
.section-intro .client-list { font-size: 14px; line-height: 1.9; color: var(--ivory); max-width: none; margin-top: 24px; }
.client-list span { color: #5f6f86; margin-inline: 6px; }
.ai-link:hover { color: #a2d0ff; }
.status-capture { margin: 0 0 34px; }
.status-capture img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px #ffffff14, 0 20px 50px #00000070; }
.status-capture figcaption { padding-top: 10px; font-size: 12px; color: var(--dim); }
.code-block { position: relative; margin-top: 24px; background: #121114; padding: 22px; border-radius: 12px; box-shadow: inset 0 0 0 1px #ffffff12; }
.mcp-call { margin-top: 32px; }
.code-title { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; color: #cfe5ff; background: #5aaaff22; font-family: ui-monospace, Consolas, monospace; }
pre { margin: 0; overflow-x: auto; padding-right: 20px; font-size: 13px; line-height: 1.9; }
pre code { font-size: inherit; }
.mcp-call code { color: #bcd9f7; }
.connection-note { display: flex; gap: 14px; margin-top: 28px; }
.connection-note .icon { color: var(--blue); width: 17px; height: 17px; margin-top: 2px; }
.connection-note p { font-size: 13px; max-width: 520px; }
.blue { background: var(--blue); }

/* ---------------------------------------------------------------- formats */
.format-table { overflow-x: auto; border-radius: var(--radius); background: #1c1a1d; box-shadow: inset 0 0 0 1px #ffffff0f; padding: 8px 28px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
thead th { font-size: 11px; letter-spacing: .14em; font-weight: 500; text-transform: uppercase; color: #a89faa; padding: 20px 18px 16px 0; }
tbody th, tbody td { border-top: 1px solid var(--line); padding: 22px 22px 22px 0; vertical-align: top; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: #ffffff05; }
tbody th { width: 28%; font-weight: 500; line-height: 1.5; }
tbody th span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 4px; }
tbody td:nth-child(2) { width: 29%; font-size: 13.5px; }
tbody td:last-child { color: var(--muted); padding-right: 0; font-size: 13.5px; }
.support-dot { display: inline-block; background: #b9c99b; width: 7px; height: 7px; border-radius: 50%; vertical-align: middle; margin-right: 9px; }
.support-dot.protected { background: var(--orange); }
.support-dot.limited { background: #9f95a4; box-shadow: none; }

/* ---------------------------------------------------------------- reference */
.reference-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-top: 20px; }
.reference-section > * { min-width: 0; }
dl { margin: 28px 0 0; }
dl > div { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-size: 12.5px; color: #cfc7d1; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; font: inherit; font-size: 12px; color: var(--ivory); border-radius: 7px; background: linear-gradient(180deg, #343037, #2a262c); box-shadow: inset 0 -2px 0 #1a181b, inset 0 0 0 1px #ffffff14; }
dd kbd + kbd { margin-left: 6px; }
.development > p { margin-top: 18px; font-size: 15px; }
.copy-button { font-size: 12px; color: var(--muted); position: absolute; right: 12px; top: 12px; padding: 5px 11px; border-radius: 8px; background: #ffffff0d; transition: color .2s, background .2s; }
.copy-button:hover { color: #fff; background: var(--orange); }
.development .platform-note { font-size: 12.5px; line-height: 1.7; max-width: 420px; margin-top: 18px; }
.development > .text-link { margin-top: 22px; }

/* ---------------------------------------------------------------- community */
.community-section { position: relative; overflow: hidden; padding-block: 150px 110px; background: var(--bg-2); isolation: isolate; }
.community-backdrop { position: absolute; inset: 0; z-index: -1; }
.community-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: .32; transform: scale(1.1); filter: saturate(1.1) blur(2px); }
.community-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, #16141790 30%, #161417d8 75%, var(--bg) 100%); }
.community-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 80px; align-items: end; }
.community-heading .section-label { grid-column: 1 / -1; margin-bottom: 0; }
.community-heading h2 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -.04em; }
.community-heading > p { max-width: 460px; font-size: 16.5px; color: #d0c7d2; }
.contribution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
.contribution-grid article { padding: 34px 34px 30px; background: linear-gradient(180deg, #221e23e6, #1a181be6); backdrop-filter: blur(14px); }
.artist-card { box-shadow: inset 0 0 0 1px #e9542038; }
.dev-card { box-shadow: inset 0 0 0 1px #5aaaff30; }
.dev-card .feature-icon { color: var(--blue); }
.contribution-grid h3 { font-size: 24px; letter-spacing: -.02em; }
.contribution-grid p { margin-top: 10px; max-width: 460px; font-size: 15px; }
.contribution-grid .text-link { margin-top: 22px; }
.community-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.community-destination { display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: var(--radius); background: #1d1b1ee0; box-shadow: inset 0 0 0 1px #ffffff12; backdrop-filter: blur(14px); transition: transform .3s var(--ease), box-shadow .3s, color .2s; }
.community-destination > .feature-icon { margin: 0; color: #b9a8bc; }
.community-destination > .icon { margin-left: auto; transition: transform .25s var(--ease); }
.community-destination strong { display: block; font-size: 19px; font-weight: 500; }
.community-destination span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.community-destination:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px #ffffff26, 0 16px 40px #00000050; }
.community-destination:hover > .icon { transform: translate(3px, -3px); color: var(--orange); }
.discord-destination > .feature-icon { color: #a9a5ff; }
.community-page { max-width: 760px; padding-top: 80px; }
.community-page .text-link { margin-top: 25px; }
.community-page .button.primary { margin-top: 28px; }

/* ---------------------------------------------------------------- footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; padding-block: 44px 40px; border-top: 1px solid var(--line); }
.footer .brand { font-size: 18px; }
.footer .brand img { width: 22px; height: 28px; }
.footer-license { font-size: 12px; color: var(--muted); }
.footer > div { display: flex; gap: 25px; margin-left: auto; }
.footer > div a { display: flex; gap: 5px; align-items: center; font-size: 13px; color: var(--muted); transition: color .2s; }
.footer > div a:hover { color: var(--orange); }
.footer .icon { width: 13px; height: 13px; }
.footer-credits { width: 100%; font-size: 11.5px; color: #77707b; }

/* ---------------------------------------------------------------- dialog */
.image-dialog { padding: 16px; border: 0; border-radius: 16px; background: var(--app); color: var(--ivory); max-width: min(1440px, calc(100vw - 40px)); max-height: calc(100vh - 40px); width: fit-content; box-shadow: 0 40px 120px #000; }
.image-dialog[open] { animation: pop .35s var(--ease); }
.image-dialog::backdrop { background: #0c0a0de8; backdrop-filter: blur(6px); }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.close-dialog { display: flex; padding: 8px; border-radius: 50%; }
.close-dialog:hover { background: #ffffff12; }
.image-dialog > img { max-height: calc(100vh - 135px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }

/* ---------------------------------------------------------------- reveal + keyframes */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .9s var(--ease), translate .9s var(--ease), transform .35s var(--ease), box-shadow .35s; }
.reveal.revealed { opacity: 1; translate: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; } }
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(28%); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes brush-path { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(24px, 52px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .header { gap: 22px; }
  .header nav a { padding: 8px 9px; }
  .capabilities { grid-template-columns: repeat(2, 1fr); }
  .setup-section, .ai-grid { gap: 50px; grid-template-columns: 1fr 1.3fr; }
  .reference-section { gap: 50px; }
  .layers-grid { grid-template-columns: minmax(250px, .7fr) 1.4fr; gap: 36px; }
  .stack-viewport { right: 180px; }
  .layer-labels { width: 172px; }
  .layer-label { font-size: 12px; padding: 8px 10px; }
}
/* Below 900px or with reduced motion the layer story becomes a static, interactive figure. */
@media (max-width: 900px) {
  .layers-story { height: auto; padding-block: 100px; }
  .layers-sticky { position: static; height: auto; }
  .layers-grid { grid-template-columns: 1fr; }
  .layers-steps li { opacity: 1; padding-block: 8px; }
  .layers-steps li::before { background: var(--orange); }
  .layers-stage { height: auto; }
  .stack-viewport { position: relative; inset: auto; display: block; }
  .layer-labels { position: static; transform: none; width: auto; flex-direction: row; flex-wrap: wrap; margin-top: 20px; gap: 8px; }
  .layer-label { width: auto; --labels: 1; }
  .layer-links { display: none; }
  .brush-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .region-tag { font-size: 10px; padding: 3px 6px; }
  .region-ai .region-tag { left: 6px; top: 6px; }
  .region-you .region-tag { left: -44px; top: 24px; }
  .activity { left: 8px; bottom: 8px; gap: 5px; }
  .activity-chip { font-size: 10px; padding: 4px 8px; gap: 6px; }
}
@media (max-width: 800px) {
  .header nav { display: none; }
  .source-link { margin-left: auto; }
  .hero { min-height: 92svh; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, #161417e0 38%, #16141766 70%, #161417a0 100%); }
  .hero-image { object-position: 70% 50%; }
  .hero-inner { padding-block: 130px 80px; }
  .hero-title { margin-top: 24px; }
  .showcase { margin-top: -20px; }
  .section { padding-block: 80px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .setup-section, .ai-grid, .reference-section { grid-template-columns: 1fr; gap: 40px; }
  .community-heading { grid-template-columns: 1fr; }
  .contribution-grid, .community-links { grid-template-columns: 1fr; gap: 14px; }
  table { min-width: 600px; }
  .format-table { padding: 4px 18px; }
  .platform-info h3 { gap: 8px; flex-direction: column; align-items: flex-start; }
  .footer > div { margin-left: 0; width: 100%; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 66px; }
  .brand { font-size: 20px; }
  .hero-inner { padding-block: 110px 64px; }
  h1 { font-size: 58px; }
    .hero-description { font-size: 16px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-facts { flex-direction: column; gap: 4px; }
  .scroll-cue { display: none; }
  .release-label { font-size: 11px; gap: 6px; padding: 6px 11px 6px 10px; white-space: nowrap; }
  .play-ring { width: 76px; height: 76px; }
  .play-ring .icon { width: 28px; height: 28px; }
  .play-text { display: none; }
  .capabilities { grid-template-columns: 1fr; }
  .gallery-controls [role=tab] { padding: 8px 11px; font-size: 12.5px; }
  figcaption { font-size: 10.5px; gap: 7px; }
  .platform-row { flex-wrap: wrap; gap: 14px; padding: 20px; }
  .platform-info { flex-basis: 100%; gap: 16px; }
  .platform-download { flex: 1; }
  .code-block { padding: 34px 15px 17px; }
  pre { font-size: 11px; }
  .contribution-grid article { padding: 26px 22px; }
  .community-destination { padding: 20px; }
  .image-dialog { max-width: calc(100vw - 20px); padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; translate: none; }
  .showcase-tilt { transform: none; }
  .layers-story { height: auto; padding-block: 100px; }
  .layers-sticky { position: static; height: auto; }
  .layers-steps li { opacity: 1; }
}
