/* Ivan Campos — a spatial portfolio. Native layout, progressively enhanced. */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --surface-soft: #ececef;
  --text: #202126;
  --muted: #62636e;
  --subtle: #777984;
  --line: #d9d9df;
  --glass: rgb(255 255 255 / 70%);
  --accent: #5443ce;
  --shadow: 0 30px 80px -32px rgb(31 28 60 / 28%);
  --focus: #5a46dd;
  --ease: cubic-bezier(.2, .75, .2, 1);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101114;
  --surface: #1b1c21;
  --surface-soft: #17181d;
  --text: #f0f0f3;
  --muted: #a5a5b0;
  --subtle: #a1a2ad;
  --line: #303139;
  --glass: rgb(25 26 32 / 75%);
  --accent: #b2a7ff;
  --shadow: 0 32px 80px -20px rgb(0 0 0 / 65%);
  --focus: #c1b8ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.viewer-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .35; cursor: default; }
button, a { touch-action: manipulation; }
img, video { display: block; max-width: 100%; }
img { height: auto; color: var(--muted); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg .fill { fill: currentColor; stroke: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h1, h2 { overflow-wrap: anywhere; }
::selection { color: var(--text); background: #aaa0ff66; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.enhanced-only { display: none !important; }
.is-enhanced .enhanced-only { display: flex !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.skip-link:focus { top: 20px; }
.shell { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; padding: 16px max(56px, calc((100vw - 1320px) / 2)); background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 42%); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { font-size: 1.75rem; letter-spacing: -.1em; line-height: 1; }
.brand-mark > span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 0.875rem; }
.site-nav a { position: relative; padding-block: 10px; color: var(--muted); transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a::after { content: ""; position: absolute; bottom: 4px; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.header-github { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.875rem; }
.header-github svg { width: 16px; height: 16px; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 20px; min-height: 710px; padding-block: 66px 70px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.signal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent), transparent 92%); }
h1 { font-size: clamp(4rem, 6.9vw, 6.25rem); line-height: .99; letter-spacing: -.075em; margin: 28px 0 30px; }
h1 > span { display: block; }
.secondary-heading { color: var(--subtle); }
.hero-description { max-width: 355px; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 50px; padding: 13px 24px; border: 1px solid transparent; border-radius: 99px; font-size: 0.875rem; font-weight: 500; line-height: 1.5; transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--text); color: var(--bg); box-shadow: 0 5px 16px #0000000a; }
.button.primary:hover { box-shadow: 0 8px 26px #00000025; }
.button.secondary { border-color: var(--line); background: transparent; }
.button.secondary:hover { background: var(--surface); }
.button svg { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 0.875rem; }
.text-link:hover { color: var(--accent); }
.text-link svg { width: 17px; height: 17px; }
.hero-signature { display: flex; align-items: center; gap: 14px; margin-top: 50px; color: var(--muted); font-size: 0.75rem; }
.signature-line { width: 24px; height: 1px; background: var(--line); }
.hero-stage { position: relative; min-width: 0; height: 530px; perspective: 1500px; }
.stage-halo { position: absolute; inset: 0 -30px -30px -80px; background: radial-gradient(ellipse at 55% 50%, #ada0ed45 0, #afcae326 33%, transparent 68%); pointer-events: none; }
[data-theme="dark"] .stage-halo { background: radial-gradient(ellipse at 55% 50%, #71609b40 0, #31365b30 35%, transparent 68%); }
.stage-orbit { position: absolute; top: 28px; left: 50%; width: 490px; max-width: 100%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--line), transparent 30%); border-radius: 50%; transform: translateX(-50%); pointer-events: none; }
.spatial-composition { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, -5deg)) translateY(var(--stage-lift, 0px)); transition: transform .6s var(--ease); }
.stage-main { position: absolute; top: 105px; left: 0; width: 94%; padding: 7px; background: var(--glass); border: 1px solid color-mix(in srgb, var(--surface), transparent 30%); box-shadow: var(--shadow), inset 0 0 0 1px #ffffff16; border-radius: 21px; transform: translateZ(30px); }
.stage-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 30px; padding: 0 9px 6px; color: var(--muted); font-size: 0.75rem; letter-spacing: .035em; }
.stage-dots { display: flex; gap: 4px; }
.stage-dots i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--subtle); opacity: .6; }
.stage-coordinate { font-size: 0.5625rem; }
.stage-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #29252c; }
.stage-screen video { width: 100%; height: 100%; object-fit: cover; }
.stage-open { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px; color: white; background: linear-gradient(transparent 40%, #100d207d 80%, #100d20b5); }
.stage-title { font-size: 2.25rem; line-height: 1.15; letter-spacing: -.035em; }
.stage-title > span { display: block; margin-top: 5px; font-size: 0.75rem; letter-spacing: .005em; color: #fffffff0; }
.round-play { display: none; }
.stage-open:hover .round-play { background: #ffffff30; }
.preview-toggle { position: absolute; z-index: 2; left: 16px; top: 16px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #ffffff65; border-radius: 50%; color: white; background: #100d2055; }
.pause-symbol { display: none; }
.is-playing .pause-symbol { display: block; }
.is-playing .play-symbol { display: none; }
.satellite { position: absolute; overflow: hidden; padding: 5px; width: 40%; border-radius: 16px; background: var(--glass); border: 1px solid color-mix(in srgb, var(--surface), transparent 25%); box-shadow: 0 15px 36px #0000001f; transition: box-shadow .3s; }
.satellite img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 11px; }
.satellite > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px 3px; font-size: 0.75rem; }
.satellite svg { width: 14px; height: 14px; }
.satellite:hover { box-shadow: 0 12px 36px #7565bd45; }
.satellite-back { right: 0; top: 0; transform: translateZ(-35px) rotate(5deg); }
.satellite-front { right: -2px; bottom: 7px; transform: translateZ(70px) rotate(-6deg); }
.stage-caption { position: absolute; bottom: -26px; left: 7%; right: 7%; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 0.75rem; letter-spacing: .025em; }
.tiny-cross { font-size: 1.25rem; font-weight: 300; color: var(--subtle); }
.chapter-rule { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; }
.chapter-rule > a { display: flex; align-items: center; gap: 26px; min-height: 44px; }
.scroll-arrow { font-size: 1.375rem; font-weight: 300; }
.chapter-caption { font-size: 0.75rem; color: var(--muted); }
.section { padding-block: 108px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.section-number { font-variant-numeric: tabular-nums; opacity: .7; margin-right: 8px; }
h2 { font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -.055em; }
.section-heading h2, .about-copy h2 { margin-top: 20px; }
.section-intro { max-width: 290px; margin-bottom: 5px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 28px; }
.feature-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; background: var(--surface-soft); }
.feature-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#00000035, transparent 35%, transparent 60%, #00000045); pointer-events: none; }
.feature-media:hover > img { transform: scale(1.035); }
.feature-category { position: absolute; z-index: 1; top: 22px; left: 22px; display: flex; align-items: center; gap: 10px; color: white; font-size: 0.75rem; text-shadow: 0 1px 6px #000; }
.feature-category > span:first-child { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #ffffff80; border-radius: 50%; font-size: 0.625rem; }
.feature-play { position: absolute; z-index: 1; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 10px 17px; border: 1px solid #ffffff60; border-radius: 99px; background: #1111117d; backdrop-filter: blur(16px); color: white; font-size: 0.75rem; }
.feature-play svg { width: 15px; height: 15px; }
.feature-copy { display: grid; grid-template-columns: 1fr 1.15fr; align-items: start; gap: 24px; padding: 21px 3px 0; }
.feature-copy h3 { font-size: 1.4375rem; line-height: 1.2; letter-spacing: -.025em; }
.feature-copy p { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }
.collection-section { padding-top: 26px; }
.collection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-top: 56px; margin-bottom: 36px; }
.collection-heading h2 { font-size: clamp(2rem, 3vw, 2.75rem); margin-top: 15px; }
.collection-total { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 0.75rem; }
.collection-total strong { font-size: 2.75rem; color: var(--text); font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.media-card { min-width: 0; }
.media-link { display: block; }
.media-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface-soft); }
.media-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media-link:hover .media-thumb > img { transform: scale(1.04); }
.media-play { position: absolute; display: grid; place-items: center; width: 36px; height: 36px; bottom: 12px; right: 12px; background: #12131670; border: 1px solid #ffffff66; backdrop-filter: blur(10px); border-radius: 50%; color: white; transition: background .25s, transform .25s; }
.media-play svg { width: 15px; height: 15px; }
.media-link:hover .media-play { transform: scale(1.12); background: #121316b0; }
.media-number { position: absolute; top: 12px; left: 12px; color: white; padding: 1px 7px; background: #00000070; border-radius: 4px; font-size: 0.625rem; font-variant-numeric: tabular-nums; }
.media-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 13px 1px 0; }
.media-caption h3 { font-size: 0.9375rem; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.media-caption p { color: var(--muted); font-size: 0.75rem; margin-top: 3px; }
.media-caption > svg { margin-top: 3px; width: 15px; height: 15px; color: var(--muted); }
.collection-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.collection-status { color: var(--muted); font-size: 0.8125rem; }
.expand-symbol { font-size: 1.375rem; line-height: 1; font-weight: 300; }
.ai-section { background: var(--surface-soft); }
.ai-section .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 24px; }
.ai-section .media-thumb { aspect-ratio: 4 / 3; background: var(--surface); }
.media-thumb.preview-unavailable { display: grid; place-items: center; padding: 26px; background: linear-gradient(135deg, var(--surface), var(--bg)); }
.thumbnail-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.thumbnail-video.is-ready { opacity: 1; }
.thumbnail-video.is-ready + .preview-fallback { visibility: hidden; }
.preview-unavailable > img { display: none; }
.preview-fallback { text-align: center; color: var(--muted); font-size: 0.8125rem; }
.writing-list { border-top: 1px solid var(--line); }
.writing-row { display: grid; grid-template-columns: 42px 1fr auto 24px; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); padding: 28px 0; transition: padding .3s var(--ease), color .3s; }
.writing-row:hover { color: var(--accent); padding-inline: 10px; }
.writing-index, .writing-row time { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.writing-row h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -.025em; }
.writing-row p { color: var(--muted); font-size: 0.875rem; margin-top: 7px; max-width: 800px; }
.writing-row > svg { width: 20px; }
.about-section { background: var(--surface-soft); }
.about-top { display: grid; grid-template-columns: .8fr 1fr; gap: 100px; align-items: center; }
.portrait-wrap { position: relative; max-width: 460px; border-radius: 20px; overflow: hidden; background: var(--surface); }
.portrait-wrap > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.portrait-wrap::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #080914b0); }
.portrait-label { position: absolute; z-index: 1; bottom: 24px; left: 26px; right: 26px; display: flex; align-items: center; justify-content: space-between; color: white; font-size: 0.875rem; }
.portrait-label > span { font-size: 0.6875rem; }
.about-copy h2 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); }
.about-lead { margin-top: 28px; font-size: 1.1875rem; line-height: 1.6; letter-spacing: -.02em; }
.about-copy > p:not(.eyebrow, .about-lead) { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; }
.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: background .25s, transform .25s; }
.social-links a:hover { background: var(--surface); transform: translateY(-3px); }
.social-links svg { width: 17px; height: 17px; }
.social-links path { fill: currentColor; stroke: none; }
.about-details { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 60px; margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--line); }
.tool-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 20px 0 0; list-style: none; }
.tool-chips li { border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; font-size: 0.75rem; color: var(--muted); }
.inspiration-list { padding: 0; margin: 17px 0 0; list-style: none; font-size: 0.8125rem; color: var(--muted); }
.inspiration-list li + li { margin-top: 9px; }
.inspiration-list a { display: inline-block; padding-block: 3px; }
.inspiration-list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.flow-copy { margin-top: 20px; font-size: 0.875rem; color: var(--muted); }
.site-footer { padding-block: 54px 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 38px; }
.footer-wordmark { display: flex; gap: 34px; font-size: clamp(1.875rem, 4vw, 3.375rem); line-height: 1.1; letter-spacing: -.05em; }
.footer-wordmark > span { font-size: .7em; color: var(--subtle); }
.footer-top > p { font-size: 0.875rem; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 0.75rem; }
.preferences { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.preferences select { max-width: 135px; min-height: 44px; padding: 6px 22px 6px 9px; border: 1px solid var(--line); border-radius: 8px; background-color: var(--bg); font-size: 0.75rem; }
.motion-toggle { border: 1px solid var(--line); border-radius: 8px; background: transparent; padding: 8px 10px; font-size: 0.75rem; min-height: 44px; }
.motion-toggle[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.back-top { display: flex; gap: 15px; align-items: center; min-height: 44px; }
.back-top:hover { color: var(--text); }
.media-viewer { width: min(1120px, calc(100% - 64px)); max-height: calc(100dvh - 64px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); overflow: auto; box-shadow: 0 40px 120px #00000065; }
.media-viewer::backdrop { background: #060711ab; backdrop-filter: blur(18px); }
.media-viewer[open] { animation: viewer-in .3s var(--ease) both; }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; }
.viewer-header h2 { font-size: 1.5rem; line-height: 1.25; margin-top: 5px; letter-spacing: -.035em; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.icon-button:hover:not(:disabled) { background: var(--surface-soft); }
.viewer-stage { position: relative; background: #090a0c; min-height: 180px; }
.viewer-stage video { width: 100%; max-height: calc(100dvh - 265px); min-height: 180px; aspect-ratio: 16 / 9; object-fit: contain; }
.viewer-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 20px; background: #111318cc; border-radius: 99px; color: white; font-size: 0.875rem; pointer-events: none; }
.viewer-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 28px; background: #090a0cf5; color: #fff; text-align: center; }
.viewer-error .button { border-color: #62636e; }
.viewer-error .button:hover { background: #24252c; }
.viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 26px; }
.viewer-navigation { display: flex; align-items: center; gap: 18px; }
#viewer-previous svg { transform: rotate(180deg); }
#viewer-counter { min-width: 66px; text-align: center; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.reveal.is-revealing { animation: reveal-in .8s var(--ease) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viewer-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: reveal-in 1s var(--ease) both; }
  .hero-stage { animation: reveal-in 1.35s .12s var(--ease) both; }
}
@media (min-width: 1500px) { .hero { min-height: 770px; } }
@media (max-width: 1100px) {
  .shell { width: calc(100% - 72px); }
  .site-header { padding-inline: 36px; }
  .hero { gap: 16px; min-height: 630px; padding-block: 55px; }
  h1 { font-size: clamp(4rem, 7vw, 5.625rem); }
  .hero-stage { height: 460px; }
  .stage-main { top: 100px; }
  .satellite-back { top: 20px; }
  .stage-orbit { top: 40px; width: 410px; }
  .hero-actions { gap: 14px; }
  .button { padding-inline: 20px; gap: 14px; }
  .hero-description { font-size: 1rem; max-width: 330px; }
  .hero-signature { margin-top: 32px; }
  .section { padding-block: 82px; }
  .feature-copy { grid-template-columns: 1fr; gap: 10px; }
  .about-top { gap: 55px; }
  .about-details { gap: 30px; }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .site-header { padding: 13px 24px; gap: 16px; min-height: 72px; }
  .site-nav { gap: 20px; }
  .header-github { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 52px; gap: 34px; }
  .hero-copy { max-width: 610px; }
  h1 { font-size: clamp(4.125rem, 12vw, 5.75rem); }
  .hero-description { max-width: 440px; }
  .hero-stage { width: min(600px, 100%); height: 500px; margin: 0 auto; }
  .stage-main { width: 90%; left: 1%; top: 76px; }
  .satellite-back { top: 0; width: 36%; }
  .satellite-front { bottom: 4px; right: 0; width: 38%; }
  .stage-orbit { width: 440px; top: 15px; }
  .stage-caption { bottom: -15px; }
  .chapter-rule { gap: 22px; }
  .chapter-caption { font-size: 0.6875rem; text-align: right; }
  .section-heading { gap: 32px; align-items: flex-start; }
  .section-intro { max-width: 230px; font-size: 0.875rem; padding-top: 35px; }
  .featured-grid { gap: 38px 20px; }
  .feature-copy h3 { font-size: 1.3125rem; }
  .feature-play { right: 12px; bottom: 12px; padding: 8px 12px; }
  .feature-category { left: 14px; top: 14px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-section .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-top { gap: 30px; grid-template-columns: .8fr 1fr; }
  .about-copy h2 { font-size: 2.375rem; }
  .about-lead { font-size: 1rem; }
  .about-details { grid-template-columns: 1fr 1fr; }
  .about-details > div:last-child { grid-column: 1 / -1; }
  .writing-row { gap: 18px; grid-template-columns: 24px 1fr auto 20px; }
  .writing-row h3 { font-size: 1.125rem; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 20px; }
  .footer-bottom { justify-content: flex-start; }
  .preferences { order: 3; width: 100%; }
  .back-top { margin-left: auto; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 112px; }
  .site-header { flex-wrap: wrap; gap: 4px 16px; padding-block: 10px 8px; }
  .wordmark { font-size: 0.875rem; gap: 9px; }
  .brand-mark { font-size: 1.5625rem; }
  .site-nav { flex-wrap: wrap; gap: 0 18px; width: 100%; justify-content: space-between; font-size: 0.8125rem; }
  .site-nav a { padding-block: 6px; }
  .hero { padding-top: 42px; padding-bottom: 44px; gap: 30px; }
  h1 { font-size: clamp(3.25rem, 14.5vw, 4.75rem); margin-block: 23px; }
  .hero .eyebrow { font-size: 0.75rem; }
  .hero-actions { gap: 15px; }
  .hero-actions .button { padding-inline: 18px; font-size: 0.8125rem; }
  .hero-actions .text-link { font-size: 0.8125rem; }
  .hero-signature { margin-top: 28px; font-size: 0.75rem; }
  .hero-stage { height: clamp(310px, 90vw, 440px); }
  .stage-main { top: 65px; width: 93%; padding: 5px; border-radius: 16px; }
  .stage-topline { height: 26px; font-size: 0.75rem; }
  .stage-coordinate { display: none; }
  .stage-screen { border-radius: 10px; }
  .stage-open { padding: 15px; }
  .stage-title { font-size: 1.75rem; }
  .stage-title > span { font-size: 0.75rem; }
  .round-play { display: none; }
  .preview-toggle { left: 12px; top: 12px; width: 44px; height: 44px; }
  .satellite { padding: 4px; border-radius: 12px; }
  .satellite img { border-radius: 8px; }
  .satellite > span { font-size: 0.75rem; padding-inline: 4px; }
  .satellite-back { top: 8px; width: 38%; }
  .satellite-front { width: 42%; bottom: 0; }
  .stage-orbit { top: 8px; width: 320px; }
  .stage-halo { inset: -20px -20px; }
  .stage-caption { font-size: 0.75rem; bottom: -21px; left: 3%; right: 3%; }
  .chapter-rule { padding-top: 15px; }
  .chapter-rule .eyebrow { font-size: 0.75rem; }
  .chapter-rule > a { gap: 10px; }
  .chapter-caption { max-width: 155px; font-size: 0.75rem; }
  .section { padding-block: 62px; }
  .section-heading { flex-direction: column; gap: 20px; margin-bottom: 30px; }
  .section-intro { padding-top: 0; max-width: 340px; }
  h2 { font-size: 2.5rem; }
  .featured-grid { grid-template-columns: 1fr; gap: 34px; }
  .feature-copy { grid-template-columns: 1fr; padding-top: 17px; }
  .feature-copy h3 { font-size: 1.4375rem; }
  .feature-copy p { font-size: 0.875rem; max-width: 340px; }
  .collection-section { padding-top: 0; }
  .collection-heading { gap: 20px; padding-top: 40px; }
  .collection-heading h2 { font-size: 2rem; }
  .collection-total { flex-direction: column; gap: 5px; font-size: 0.625rem; }
  .collection-total strong { font-size: 2rem; }
  .media-grid, .ai-section .media-grid { gap: 25px 14px; }
  .media-thumb { border-radius: 9px; }
  .media-number { top: 7px; left: 7px; font-size: 0.5625rem; }
  .media-play { width: 28px; height: 28px; right: 7px; bottom: 7px; }
  .media-play svg { width: 12px; height: 12px; }
  .media-caption h3 { font-size: 0.875rem; }
  .media-caption p { font-size: 0.75rem; }
  .media-caption > svg { display: none; }
  .collection-footer { justify-content: center; flex-direction: column; gap: 18px; margin-top: 30px; }
  .collection-status { font-size: 0.75rem; }
  .writing-row { grid-template-columns: 1fr auto; padding-block: 23px; gap: 14px; }
  .writing-index { display: none; }
  .writing-row time { grid-row: 2; font-size: 0.6875rem; }
  .writing-row > svg { grid-row: 1; grid-column: 2; }
  .writing-row p { font-size: 0.8125rem; }
  .about-top { grid-template-columns: 1fr; gap: 38px; }
  .portrait-wrap { max-width: 330px; }
  .about-copy h2 { font-size: 2.75rem; }
  .about-details { grid-template-columns: 1fr; gap: 32px; margin-top: 45px; }
  .about-details > div:last-child { grid-column: auto; }
  .footer-bottom { gap: 12px; }
  .preferences { gap: 8px; }
  .preferences label:not(.sr-only) { width: 100%; margin-top: 10px; }
  .media-viewer { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  .viewer-header { padding: 16px; }
  .viewer-header h2 { font-size: 1.25rem; }
  .viewer-footer { flex-wrap: wrap; justify-content: center; padding: 14px; gap: 12px; }
  .viewer-footer .text-link { font-size: 0.75rem; }
  .viewer-stage video { max-height: calc(100dvh - 265px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .spatial-composition { transform: none; }
  .feature-media:hover > img, .media-link:hover img, .button:hover, .social-links a:hover { transform: none; }
}
html[data-motion="reduce"] { scroll-behavior: auto; }
[data-motion="reduce"] *, [data-motion="reduce"] *::before, [data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
[data-motion="reduce"] .spatial-composition,
[data-motion="reduce"] .feature-media:hover > img,
[data-motion="reduce"] .media-link:hover img,
[data-motion="reduce"] .button:hover,
[data-motion="reduce"] .social-links a:hover { transform: none; }
@media (forced-colors: active) {
  .button, .media-thumb, .feature-media, .stage-main, .satellite, .preview-toggle, .round-play { border: 1px solid CanvasText; }
  .stage-halo, .stage-orbit { display: none; }
}
