/* Cosmic Frontiers: an illuminated field guide inside the Osavus universe. */
.cf-feature, .cf-page { --cf-bg:#020205; --cf-ink:#eff4f3; --cf-muted:#a7b5bd; --cf-line:#ffffff26; --cf-accent:#a4e4e8; color:var(--cf-ink); }
.cf-status { color:var(--cf-accent); font-size:.875rem; }
.cf-feature-art { margin:0; min-width:0; position:relative; }
.cf-feature-art video { width:100%; height:auto; display:block; }
.cf-feature-art figcaption { display:flex; justify-content:space-between; gap:16px; padding:0 32px 30px; color:var(--cf-muted); font-size:.75rem; letter-spacing:.035em; }
.cf-feature-art .cf-motion-toggle { bottom:70px; right:28px; }
.cf-actions { display:flex; align-items:center; flex-wrap:wrap; gap:18px 28px; margin-top:28px; }
.cf-button { display:inline-flex; align-items:center; justify-content:space-between; gap:32px; background:var(--cf-accent); color:#091519; padding:14px 23px; min-height:50px; font-size:.9375rem; font-weight:600; border:1px solid var(--cf-accent); border-radius:2px; text-decoration:none; transition:background .2s; }
.cf-button:hover { background:#d1faff; }
.cf-text-link { display:inline-block; font-size:.9375rem; text-underline-offset:6px; text-decoration:underline; }
.cf-text-link:hover { color:var(--cf-accent); }
.cf-motion-toggle { position:absolute; bottom:18px; right:18px; min-height:44px; padding:10px 16px; background:#03080bd9; border:1px solid #ffffff50; border-radius:2px; color:#eaf6f8; font:.875rem var(--body); cursor:pointer; }
.cf-motion-toggle[hidden], .cf-page [hidden] { display:none; }
.cf-page { margin:0; background:var(--cf-bg); color-scheme:dark; --muted:var(--cf-muted); --line:var(--cf-line); font:1rem/1.65 var(--body); }
.cf-page * { box-sizing:border-box; }
.cf-page h1, .cf-page h2, .cf-page h3, .cf-page p, .cf-page figure { margin:0; }
.cf-page a { color:inherit; text-decoration:none; }
.cf-page a:focus-visible, .cf-page button:focus-visible, .cf-page summary:focus-visible, .cf-page input:focus-visible { outline:2px solid var(--cf-accent); outline-offset:5px; }
.cf-page button, .cf-page input { font:inherit; }
.cf-page img { display:block; max-width:100%; height:auto; }
.cf-page h1, .cf-page h2, .cf-page h3 { font-family:var(--display); letter-spacing:-.045em; font-weight:500; line-height:1.08; text-wrap:balance; }
.cf-page h2 { font-size:clamp(2.25rem,1.35rem + 3vw,4.75rem); }
.cf-page h2 em, .cf-page h1 em { font-family:var(--editorial); font-weight:400; }
.cf-page h3 { font-size:1.5rem; }
.cf-page p { max-width:60ch; }
.cf-page .cf-button { color:#091519; }
.cf-page .cf-text-link { text-decoration:underline; }
.cf-wrap { width:min(1320px,calc(100% - 96px)); margin-inline:auto; }
.cf-header { min-height:100px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--cf-line); }
.cf-wordmark { font:800 2rem/1 var(--display); letter-spacing:-.08em; }
.cf-header nav, .cf-footer nav { display:flex; align-items:center; gap:28px; font-size:.875rem; }
.cf-header a:hover, .cf-footer a:hover { color:var(--cf-accent); }
.cf-header .cf-nav-project { color:var(--cf-muted); }
.cf-hero { overflow:hidden; display:grid; grid-template-columns:1.05fr 1fr; align-items:center; min-height:690px; position:relative; }
.cf-hero-copy { padding:64px 0; position:relative; z-index:1; }
.cf-hero-copy h1 { font-size:clamp(4rem,2.3rem + 5.3vw,8rem); line-height:.94; margin:30px 0; letter-spacing:-.06em; }
.cf-hero-copy .cf-hero-line { font-size:clamp(1.5rem,1rem + 1vw,2rem); line-height:1.3; color:var(--cf-ink); margin-bottom:18px; }
.cf-hero-copy > p { color:var(--cf-muted); max-width:43ch; }
.cf-hero-art { position:relative; min-width:0; }
.cf-hero-art video { width:130%; max-width:none; margin-left:-15%; display:block; }
.cf-hero-art figcaption { display:flex; justify-content:space-between; gap:20px; font-size:.75rem; letter-spacing:.04em; color:var(--cf-muted); position:relative; }
.cf-hero-art .cf-motion-toggle { bottom:45px; }
.cf-snapshot { border-block:1px solid var(--cf-line); padding:23px 0; display:grid; grid-template-columns:1.3fr repeat(3,1fr); gap:25px; }
.cf-snapshot > p { color:var(--cf-muted); font-size:.875rem; }
.cf-snapshot > p strong { display:block; color:var(--cf-ink); font-weight:400; }
.cf-snapshot > div { display:flex; align-items:center; gap:15px; }
.cf-snapshot b { font:400 2.5rem/1 var(--display); letter-spacing:-.06em; }
.cf-snapshot span { font-size:.875rem; color:var(--cf-muted); line-height:1.4; max-width:10ch; }
.cf-section { padding-block:110px; border-bottom:1px solid var(--cf-line); }
.cf-section-head { display:flex; justify-content:space-between; align-items:end; gap:40px; margin-bottom:44px; }
.cf-section-head > p { color:var(--cf-muted); max-width:40ch; }
.cf-section-head .section-label, .cf-split-copy .section-label { margin-bottom:20px; }
.cf-preview { display:grid; grid-template-columns:1fr 1.7fr; align-items:center; gap:70px; }
.cf-preview h2 { margin:20px 0 24px; }
.cf-preview-copy > p:not(.section-label) { color:var(--cf-muted); }
.cf-video-frame { position:relative; background:#05080d; }
.cf-video-frame video { width:100%; display:block; aspect-ratio:16/9; object-fit:contain; }
.cf-video-frame figcaption { color:var(--cf-muted); display:flex; justify-content:space-between; gap:20px; font-size:.75rem; margin-top:12px; }
.cf-stellar { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); border:1px solid var(--cf-line); }
.cf-stellar-art { position:relative; min-width:0; }
.cf-stellar-art video { display:block; width:100%; height:100%; aspect-ratio:1; object-fit:contain; }
.cf-stellar-body { display:flex; flex-direction:column; justify-content:center; padding:45px; background:#090d11; }
.cf-stellar-body h3 { font-size:clamp(2rem,1.3rem + 2vw,3.5rem); margin:15px 0 22px; }
.cf-stellar-body > p { color:var(--cf-muted); }
.cf-stellar-body .cf-stellar-quote { font-family:var(--editorial); font-style:italic; font-size:1.5rem; line-height:1.4; color:var(--cf-ink); margin-bottom:20px; }
.cf-stellar-body .cf-text-link { align-self:flex-start; margin-top:24px; }
.cf-star-choices { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; background:var(--cf-line); border:1px solid var(--cf-line); border-top:0; }
.cf-star-choice { display:flex; align-items:center; gap:15px; background:#080b10; border:0; border-bottom:2px solid transparent; padding:12px 18px; color:var(--cf-muted); text-align:left; cursor:pointer; text-decoration:none; font-size:.875rem; }
.cf-star-choice img { width:55px; aspect-ratio:1; }
.cf-star-choice[aria-pressed="true"] { border-bottom-color:var(--cf-accent); background:#121d22; color:var(--cf-ink); }
.cf-star-choice:hover { background:#142026; }
.cf-section-end { margin-top:26px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; color:var(--cf-muted); font-size:.875rem; }
.cf-worlds-grid { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:28px; align-items:start; }
.cf-object img { aspect-ratio:1; object-fit:contain; background:#020205; width:100%; transition:transform .4s; }
.cf-object:hover img { transform:scale(1.025); }
.cf-object h3 { margin:12px 0; font-size:1.5rem; }
.cf-object p { color:var(--cf-muted); font-size:1rem; }
.cf-object .cf-object-type { font-size:.75rem; color:var(--cf-accent); letter-spacing:.07em; text-transform:uppercase; margin-top:18px; }
.cf-worlds-grid .cf-object:nth-child(2) { padding-top:80px; }
.cf-worlds-grid .cf-object:nth-child(3) { padding-top:150px; }
.cf-universe { position:relative; background:#050812; margin-top:0; }
.cf-universe > img { width:100%; aspect-ratio:16/8; object-fit:cover; }
.cf-universe > figcaption { padding:26px 32px; display:flex; justify-content:space-between; gap:30px; border:1px solid var(--cf-line); border-top:0; color:var(--cf-muted); font-size:.875rem; }
.cf-universe > figcaption strong { display:block; color:var(--cf-ink); font-weight:500; }
.cf-anomalies { display:grid; grid-template-columns:1fr 1fr 1fr; gap:32px; margin-top:52px; }
.cf-anomaly { display:grid; grid-template-columns:110px 1fr; align-items:center; gap:18px; }
.cf-anomaly h3 { font-size:1.125rem; margin-bottom:8px; }
.cf-anomaly p { font-size:.875rem; color:var(--cf-muted); }
.cf-fleet { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; }
.cf-fleet a { display:block; }
.cf-fleet img { width:100%; aspect-ratio:1; object-fit:contain; }
.cf-fleet h3 { font-size:1.125rem; text-align:center; margin-top:18px; }
.cf-fleet a:hover h3 { color:var(--cf-accent); }
.cf-wiki-invite { display:grid; grid-template-columns:1fr 1fr; gap:80px; }
.cf-wiki-invite h2 { margin:20px 0 26px; }
.cf-wiki-invite p { color:var(--cf-muted); }
.cf-wiki-categories { display:grid; grid-template-columns:1fr 1fr; gap:0 30px; align-content:center; }
.cf-wiki-categories a { display:flex; justify-content:space-between; gap:20px; padding:24px 0; border-bottom:1px solid var(--cf-line); }
.cf-wiki-categories a span { color:var(--cf-muted); font-size:.875rem; }
.cf-wiki-categories a:hover { color:var(--cf-accent); }
.cf-log { display:grid; grid-template-columns:1fr 1.25fr; gap:80px; }
.cf-log h2 { margin:20px 0 26px; }
.cf-log > div > p { color:var(--cf-muted); }
.cf-log-entry { border-top:1px solid var(--cf-line); padding-top:25px; }
.cf-log-entry time { font-size:.875rem; color:var(--cf-accent); }
.cf-log-entry h3 { margin:14px 0 20px; font-size:2rem; }
.cf-log-entry p { color:var(--cf-muted); margin-bottom:22px; }
.cf-log-entry ul { padding-left:20px; color:var(--cf-muted); }
.cf-footer { display:flex; justify-content:space-between; gap:30px; padding:30px 0; font-size:.875rem; color:var(--cf-muted); }
.cf-page .skip { position:absolute; top:-100px; left:20px; z-index:20; padding:12px 18px; background:var(--cf-accent); color:#091519; }
.cf-page .skip:focus { top:10px; }
@media(min-width:1500px) { .cf-hero { min-height:760px; } }
@media(max-width:1000px) {
 .cf-feature-art figcaption { flex-direction:column; gap:2px; }
 .cf-preview, .cf-log, .cf-wiki-invite { gap:40px; }
 .cf-stellar-body { padding:28px; }
 .cf-star-choice { padding:12px; gap:8px; flex-direction:column; align-items:start; }
 .cf-anomaly { grid-template-columns:1fr; gap:8px; }
 .cf-anomaly img { width:140px; }
 .cf-snapshot { grid-template-columns:1fr 1fr 1fr; }
 .cf-snapshot > p { grid-column:1/-1; }
}
@media(max-width:700px) {
 .cf-wrap { width:calc(100% - 40px); }
 .cf-hero, .cf-stellar, .cf-preview, .cf-wiki-invite, .cf-log { grid-template-columns:1fr; }
 .cf-feature-art { margin-top:-15px; }
 .cf-feature-art video { aspect-ratio:1; }
 .cf-feature-art figcaption { flex-direction:row; padding:0 20px 20px; font-size:.75rem; }
 .cf-feature-art .cf-motion-toggle { bottom:58px; }
 .cf-header { min-height:85px; gap:16px; }
 .cf-header nav { gap:18px; }
 .cf-header .cf-nav-project { display:none; }
 .cf-hero { min-height:0; }
 .cf-hero-copy { padding:48px 0 0; }
 .cf-hero-copy h1 { font-size:clamp(3.75rem,15.5vw,6.5rem); }
 .cf-hero-art { margin:0 0 30px; }
 .cf-hero-art video { width:100%; margin:0; }
 .cf-hero-art figcaption { margin-top:-20px; }
 .cf-hero-art .cf-motion-toggle { bottom:35px; }
 .cf-snapshot { gap:25px 12px; }
 .cf-snapshot > div { flex-direction:column; align-items:start; gap:10px; }
 .cf-snapshot b { font-size:2.25rem; }
 .cf-section { padding-block:65px; }
 .cf-section-head { flex-direction:column; align-items:start; gap:22px; margin-bottom:30px; }
 .cf-stellar-body { padding:28px 24px 32px; }
 .cf-star-choices { grid-template-columns:1fr 1fr; }
 .cf-star-choice { flex-direction:row; align-items:center; padding:12px; min-width:0; }
 .cf-star-choice img { width:42px; }
 .cf-worlds-grid { grid-template-columns:1fr 1fr; gap:32px 20px; }
 .cf-worlds-grid .cf-object:first-child { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:center; }
 .cf-worlds-grid .cf-object:nth-child(2), .cf-worlds-grid .cf-object:nth-child(3) { padding-top:0; }
 .cf-object h3 { font-size:1.25rem; }
 .cf-object p { font-size:.9375rem; }
 .cf-universe > img { aspect-ratio:4/3; }
 .cf-universe > figcaption { padding:20px; flex-direction:column; gap:12px; }
 .cf-anomalies { grid-template-columns:1fr; gap:20px; margin-top:35px; }
 .cf-anomaly { grid-template-columns:110px 1fr; gap:20px; }
 .cf-fleet { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 20px; }
 .cf-fleet a:last-child { grid-column:1/-1; width:50%; justify-self:center; }
 .cf-fleet h3 { margin-top:0; }
 .cf-wiki-categories { gap:0 20px; }
 .cf-wiki-categories a { font-size:.875rem; gap:12px; }
 .cf-footer { flex-direction:column; gap:16px; }
 .cf-footer nav { gap:24px; flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) { .cf-feature *, .cf-page * { scroll-behavior:auto !important; transition:none !important; } }
/* The original poster remains beneath motion for loading, errors and loop dissolves. */
.cf-motion-screen { position:relative; aspect-ratio:1; }
.cf-motion-screen .cf-motion-still { width:100%; height:100%; object-fit:contain; }
.cf-feature-art .cf-motion-screen video, .cf-hero-art .cf-motion-screen video, .cf-stellar-art .cf-motion-screen video { position:absolute; inset:0; width:100%; height:100%; margin:0; object-fit:contain; transition:opacity .3s linear; }
.cf-hero-art .cf-motion-screen { width:130%; margin-left:-15%; }
.cf-stellar-art { display:flex; align-items:center; }
.cf-stellar-art .cf-motion-screen { width:100%; }
@media(max-width:700px) { .cf-hero-art .cf-motion-screen { width:100%; margin:0; } }
/* The studio chapter keeps its open, alternating layout. Actual artwork floats
   against the studio background; no separate panel or cropped frame. */
.worlds .cf-feature { grid-template-columns:minmax(0,1.22fr) minmax(0,1fr); margin:0; background:transparent; border:0; border-bottom:1px solid var(--line); }
.worlds .cf-feature-copy { min-width:0; padding:0; }
.worlds .cf-feature-copy h3 { font-family:var(--editorial); font-size:var(--type-project); font-weight:400; line-height:.94; letter-spacing:-.06em; overflow-wrap:anywhere; }
.worlds .cf-feature-copy > p { font-size:var(--type-lead); max-width:30ch; color:#a8b5b9; }
.worlds .cf-feature .cf-actions { margin-top:0; gap:20px 28px; }
.worlds .cf-feature .section-label { color:var(--muted); }
.worlds .cf-feature-scene { position:relative; order:-1; align-self:center; min-width:0; width:100%; max-width:700px; margin:0; }
.worlds .cf-feature-space { position:relative; aspect-ratio:1.12; overflow:hidden; }
.worlds .cf-feature-horizon { position:absolute; top:-10%; left:-5%; width:110%; mix-blend-mode:screen; -webkit-mask-image:radial-gradient(ellipse closest-side,#000 70%,transparent 100%); mask-image:radial-gradient(ellipse closest-side,#000 70%,transparent 100%); }
.worlds .cf-feature-horizon video { display:block; width:100%; height:auto; aspect-ratio:1; }
.worlds .cf-feature-horizon .cf-motion-screen video { position:absolute; inset:0; height:100%; object-fit:contain; transition:opacity .3s linear; }
.worlds .cf-feature-scene figcaption { position:relative; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px 20px; margin:15px 6% 0; font-size:var(--type-small); color:var(--muted); }
.worlds .cf-feature-scene figcaption a { display:inline-flex; align-items:center; gap:16px; min-height:44px; }
.worlds .cf-feature-scene figcaption a:hover { color:var(--cf-accent); }
.worlds .cf-feature-scene .cf-motion-toggle { position:static; padding:8px 0 8px 12px; border:0; background:transparent; color:var(--muted); font-size:var(--type-small); }
.worlds .cf-feature-scene .cf-motion-toggle:hover { color:var(--cf-accent); }
@media(max-width:760px) {
 .worlds .cf-feature { grid-template-columns:minmax(0,1fr); gap:22px; }
 .worlds .cf-feature-copy h3 { margin-top:30px; }
 .worlds .cf-feature-scene { order:0; width:min(100%,540px); justify-self:center; }
 .worlds .cf-feature-scene figcaption { margin:4px 0 0; }
 .worlds .cf-feature .cf-actions { gap:12px 24px; }
}
