:root { --ink:#031a24; --deep:#051219; --water:#07556b; --mist:#edf5f2; --foam:#d6e8e4; --aqua:#69e3dc; --accent:#f0c66b; --white:#fff; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:var(--mist); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--mist); }
.site-header { position:relative; z-index:5; min-height:88px; display:grid; grid-template-columns:1fr auto; align-items:center; max-width:1280px; margin:auto; padding:0 34px; background:var(--mist); }
.brand { display:flex; align-items:center; gap:12px; color:var(--ink); font-weight:850; letter-spacing:-.035em; text-decoration:none; font-size:1.05rem; line-height:1; }.brand small { display:block; margin-top:5px; color:#668087; font-size:.58rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }.brand .brand-mark { display:grid; place-items:center; width:38px; height:38px; border:1px solid #9ebbb8; border-radius:50%; color:var(--water); font-family:Georgia,serif; font-size:.72rem; letter-spacing:.08em; }
nav { display:flex; gap:32px; } nav a { color:#395760; font-weight:750; font-size:.76rem; letter-spacing:.04em; text-decoration:none; text-transform:uppercase; } nav a:hover,.text-link:hover { color:var(--water); }
.header-actions { justify-self:end; display:flex; align-items:center; gap:24px; }.header-cta { padding-bottom:5px; border-bottom:1px solid var(--ink); color:var(--ink); font-size:.75rem; font-weight:800; letter-spacing:.04em; text-decoration:none; text-transform:uppercase; }.theme-toggle { display:inline-flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid #a9bfbc; border-radius:999px; color:#38565e; background:transparent; cursor:pointer; font:inherit; }.theme-icon { width:15px; font-size:.9rem; line-height:1; }.theme-label { font-size:.62rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.hero { position:relative; min-height:690px; display:grid; grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr); align-items:end; gap:clamp(40px,7vw,110px); padding:110px max(34px,calc((100vw - 1212px)/2)) 74px; overflow:hidden; color:var(--white); background:linear-gradient(90deg,rgba(2,20,28,.96) 0%,rgba(2,25,35,.76) 46%,rgba(2,29,39,.22) 100%),url("https://d2du92h297hvfr.cloudfront.net/thumbnails/clown_fish/clown_fish_thumb.0000002.jpg") center/cover; }.hero::after { content:""; position:absolute; inset:auto 0 0; height:1px; background:rgba(255,255,255,.25); }
.hero-content { position:relative; z-index:1; }.eyebrow { margin:0 0 18px; color:#4ca9b6; font-size:.67rem; font-weight:850; letter-spacing:.19em; text-transform:uppercase; }.hero .eyebrow { display:flex; align-items:center; gap:10px; color:#b8eeea; }.hero .eyebrow span { width:28px; height:1px; background:var(--aqua); }
h1,h2,h3,p { margin-top:0; } h1 { max-width:760px; margin-bottom:28px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(4rem,7.4vw,7.5rem); font-weight:400; letter-spacing:-.07em; line-height:.84; } h1 em { color:var(--aqua); font-weight:400; }.hero-copy { max-width:590px; margin-bottom:0; color:#cee0df; line-height:1.75; font-size:1.02rem; }
.hero-actions { display:flex; align-items:center; gap:26px; margin-top:34px; }.button { display:inline-flex; align-items:center; justify-content:space-between; gap:28px; min-width:210px; padding:16px 18px; border:1px solid rgba(255,255,255,.34); color:var(--white); font-size:.74rem; font-weight:850; letter-spacing:.05em; text-decoration:none; text-transform:uppercase; }.button-primary { border-color:var(--aqua); background:var(--aqua); color:var(--ink); }.button-primary:hover { background:#a2f2ed; }.hero-status { display:flex; align-items:center; gap:8px; color:#c5d7d7; font-size:.7rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }.hero-status b { width:7px; height:7px; border-radius:50%; background:#79e28f; box-shadow:0 0 0 5px rgba(121,226,143,.14); }
.featured-film { position:relative; z-index:1; display:grid; grid-template-columns:1fr auto; align-content:end; min-height:270px; padding:26px; border:1px solid rgba(255,255,255,.35); color:var(--white); background:linear-gradient(180deg,rgba(3,21,28,.08),rgba(3,21,28,.94)),url("https://d2du92h297hvfr.cloudfront.net/thumbnails/clown_fish/clown_fish_thumb.0000000.jpg") center/cover; cursor:pointer; text-align:left; }.featured-film::before { content:""; position:absolute; inset:10px; border:1px solid rgba(255,255,255,.14); pointer-events:none; }.featured-kicker { align-self:start; color:#c4e9e5; font-size:.65rem; font-weight:850; letter-spacing:.18em; text-transform:uppercase; }.featured-play { display:grid; place-items:center; grid-row:1/3; grid-column:2; align-self:start; width:46px; height:46px; border-radius:50%; background:var(--aqua); color:var(--ink); font-size:.8rem; }.featured-title { margin-top:80px; font-family:Georgia,serif; font-size:1.65rem; letter-spacing:-.035em; }.featured-meta { grid-column:1/-1; margin-top:7px; color:#b7cdcd; font-size:.68rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }.hero-index { position:absolute; z-index:1; right:max(34px,calc((100vw - 1212px)/2)); top:60px; color:rgba(255,255,255,.55); font-size:.67rem; font-weight:800; letter-spacing:.15em; }
.catalogue,.about { max-width:1124px; margin:0 auto; padding:96px 28px; }.section-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:34px; }.section-heading h2,.about h2 { margin:0; font-size:clamp(2rem,4vw,3.4rem); letter-spacing:-.06em; }.section-heading > p { color:#55717d; font-size:.9rem; }
.controls { display:grid; gap:18px; margin-bottom:34px; }.search input { width:100%; padding:16px 18px; border:1px solid #b8d2d7; border-radius:3px; background:var(--white); color:var(--ink); font:inherit; }.search input:focus { outline:3px solid #78cdd5; outline-offset:2px; }.filters { display:flex; flex-wrap:wrap; gap:8px; }.filter { padding:9px 14px; color:#43636e; border:1px solid #b8d2d7; border-radius:999px; background:transparent; cursor:pointer; font:inherit; font-size:.82rem; }.filter:hover,.filter.active { border-color:var(--ink); background:var(--ink); color:var(--white); }
.video-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }.video-card { background:var(--white); box-shadow:0 7px 25px rgba(0,44,63,.08); }.video-open { position:relative; display:block; width:100%; padding:0; overflow:hidden; border:0; background:#123; cursor:pointer; aspect-ratio:1.42; }.video-open img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }.video-open:hover:not(:disabled) img { transform:scale(1.04); }.video-open:disabled { cursor:not-allowed; }.is-unavailable img { opacity:.58; }.is-unavailable .play { display:none; }.play { position:absolute; left:18px; bottom:17px; width:42px; height:42px; padding:12px 0 0 3px; border-radius:50%; color:var(--ink); background:var(--white); }.duration,.availability { position:absolute; right:12px; bottom:12px; padding:5px 7px; color:var(--white); background:rgba(2,23,36,.75); font-size:.75rem; font-weight:700; }.availability { text-transform:uppercase; letter-spacing:.05em; }.card-copy { padding:18px; }.card-copy p { margin-bottom:7px; color:#55717d; font-size:.74rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }.card-copy h3 { margin-bottom:18px; font-size:1.28rem; letter-spacing:-.035em; }.text-link { padding:0; border:0; background:none; color:var(--ink); cursor:pointer; font:inherit; font-size:.84rem; font-weight:800; }.text-link:disabled { color:#718991; cursor:not-allowed; }.empty-state { padding:30px 0; color:#55717d; }
.about { max-width:none; padding-left:max(28px,calc((100vw - 1124px)/2)); padding-right:max(28px,calc((100vw - 1124px)/2)); color:var(--white); background:var(--ink); }.about h2 { margin-bottom:22px; }.about p:last-child { max-width:720px; color:#c7e2e4; line-height:1.7; }
dialog { width:min(780px,calc(100% - 32px)); padding:0; border:0; color:var(--ink); background:var(--white); box-shadow:0 20px 70px rgba(0,0,0,.4); } dialog::backdrop { background:rgba(1,22,33,.75); }.dialog-close { position:absolute; z-index:1; top:12px; right:12px; width:36px; height:36px; border:0; border-radius:50%; color:var(--ink); background:var(--white); cursor:pointer; font-size:1.7rem; line-height:1; }.dialog-media { display:grid; place-items:center; min-height:280px; padding:20px; background:center/cover; }.dialog-media video { width:min(680px,100%); max-height:380px; background:#000; }.player-status { max-width:520px; margin:0; padding:12px 15px; color:var(--white); background:rgba(1,27,41,.86); text-align:center; line-height:1.45; }.player-status:empty { display:none; }.dialog-content { padding:30px; }.dialog-content h2 { margin-bottom:13px; font-size:2.2rem; letter-spacing:-.05em; }.dialog-content > p:not(.eyebrow) { line-height:1.65; }.dialog-content dl { display:flex; gap:44px; padding-top:12px; }.dialog-content dt { color:#55717d; font-size:.75rem; font-weight:800; text-transform:uppercase; }.dialog-content dd { margin:3px 0 0; font-weight:700; }.stream-note { margin:20px 0 0; padding:12px; border-left:3px solid var(--accent); background:#fff8e8; font-size:.88rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:where(a,button,input,video):focus-visible { outline:3px solid #78cdd5; outline-offset:3px; }

body,.site-header,.catalogue,footer,.dialog-content { transition:background-color .25s ease,color .25s ease,border-color .25s ease; }
html[data-theme="dark"] body { color:#e8f3f1; background:#06171e; }
html[data-theme="dark"] .site-header,html[data-theme="dark"] .catalogue { background:#06171e; }
html[data-theme="dark"] .brand,html[data-theme="dark"] .header-cta,html[data-theme="dark"] nav a,html[data-theme="dark"] .section-heading h2,html[data-theme="dark"] .card-copy h3,html[data-theme="dark"] .search input { color:#e8f3f1; }
html[data-theme="dark"] .brand small,html[data-theme="dark"] .section-summary,html[data-theme="dark"] .card-description,html[data-theme="dark"] .card-copy .card-label p { color:#91aaa9; }
html[data-theme="dark"] .brand .brand-mark,html[data-theme="dark"] .theme-toggle { border-color:#446167; color:#b7cecc; }
html[data-theme="dark"] .header-cta { border-bottom-color:#e8f3f1; }
html[data-theme="dark"] .controls,html[data-theme="dark"] .search input,html[data-theme="dark"] .section-summary #results-count { border-color:#355159; }
html[data-theme="dark"] .section-summary #results-count { color:#dceae8; }
html[data-theme="dark"] .filter { color:#a8bfbe; }
html[data-theme="dark"] .filter:hover,html[data-theme="dark"] .filter.active { border-color:var(--aqua); background:var(--aqua); color:#031a24; }
html[data-theme="dark"] .video-card { color:#e8f3f1; }
html[data-theme="dark"] footer { color:#91aaa9; background:#031015; }
html[data-theme="dark"] footer > a:last-child { color:#dceae8; }
html[data-theme="dark"] .dialog-content { color:#e8f3f1; background:#09202a; }
html[data-theme="dark"] .dialog-content > #dialog-description,html[data-theme="dark"] .live-badge,html[data-theme="dark"] .dialog-content dt { color:#9db4b4; }
html[data-theme="dark"] .dialog-content dl { border-color:#355159; }
html[data-theme="dark"] .stream-note { color:#b9d6d3; border-left-color:var(--aqua); background:#0d3036; }
@media (prefers-reduced-motion:reduce) { body,.site-header,.catalogue,footer,.dialog-content { transition:none; } }
@media (max-width:720px) { .site-header { padding:0 20px; }.hero { min-height:520px; padding:85px 20px; }.catalogue,.about { padding:64px 20px; }.video-grid { grid-template-columns:1fr; }.section-heading { align-items:start; flex-direction:column; }.section-heading > p { margin:0; } .dialog-media { min-height:210px; } }
@media (min-width:721px) and (max-width:980px) { .video-grid { grid-template-columns:repeat(2,1fr); } }

/* Redesigned content surfaces */
.catalogue { max-width:1280px; padding:118px 34px 130px; }
.section-heading { align-items:start; margin-bottom:48px; }
.section-heading h2,.about h2 { max-width:650px; color:var(--ink); font-family:Georgia,"Times New Roman",serif; font-size:clamp(3rem,5vw,5.5rem); font-weight:400; letter-spacing:-.065em; line-height:.95; }
.section-summary { max-width:390px; padding-top:28px; color:#557078; line-height:1.65; }
.section-summary > p:first-child { margin-bottom:28px; }
.section-summary #results-count { display:inline-block; margin:0; padding-top:9px; border-top:1px solid #9cb6b2; color:var(--ink); font-size:.68rem; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.controls { grid-template-columns:minmax(260px,1fr) auto; align-items:end; gap:30px; margin-bottom:42px; padding:20px 0; border-top:1px solid #bed0cc; border-bottom:1px solid #bed0cc; }
.search { display:grid; grid-template-columns:auto minmax(160px,340px); align-items:center; gap:20px; }
.search > span { color:#48636a; font-size:.65rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.search input { padding:12px 0; border:0; border-bottom:1px solid #78928f; border-radius:0; background:transparent; font-size:.9rem; }
.filters { justify-content:flex-end; }
.filter { padding:8px 12px; border-color:transparent; border-radius:2px; font-size:.68rem; font-weight:780; letter-spacing:.04em; text-transform:uppercase; }
.filter:hover,.filter.active { border-color:var(--ink); background:var(--ink); }
.favourites-filter span { display:inline-grid; place-items:center; min-width:18px; height:18px; margin-left:5px; padding:0 5px; border-radius:999px; color:var(--ink); background:var(--aqua); font-size:.58rem; }
.video-grid { gap:46px 22px; }
.video-card { display:flex; flex-direction:column; box-shadow:none; background:transparent; }
.card-media { position:relative; }
.video-open { aspect-ratio:1.18; background:#0a2630; }
.video-open::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(2,17,23,.72)); pointer-events:none; }
.video-open img { filter:saturate(.82) contrast(1.04); }
.video-open:hover:not(:disabled) img { transform:scale(1.035); filter:saturate(1.05) contrast(1.04); }
.card-number { position:absolute; z-index:1; top:15px; left:15px; color:rgba(255,255,255,.78); font-size:.62rem; font-weight:850; letter-spacing:.12em; }
.play { z-index:1; left:17px; bottom:16px; display:grid; place-items:center; width:44px; height:44px; padding:0 0 0 2px; border:1px solid rgba(255,255,255,.7); background:rgba(3,25,34,.48); color:var(--white); backdrop-filter:blur(8px); }
.duration,.availability { z-index:1; right:15px; bottom:17px; padding:0; background:none; font-size:.66rem; letter-spacing:.08em; }
.availability { color:#e3eeee; }
.card-copy { flex:1; display:flex; flex-direction:column; padding:19px 2px 0; }
.card-label { display:flex; justify-content:space-between; gap:12px; margin-bottom:12px; }
.card-copy .card-label p,.card-label span { margin:0; color:#547078; font-size:.62rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.card-label span { color:#159095; }
.is-unavailable .card-label span { color:#7f9295; }
.card-copy h3 { margin-bottom:9px; font-family:Georgia,"Times New Roman",serif; font-size:1.75rem; font-weight:400; letter-spacing:-.045em; }
.card-description { min-height:48px; margin-bottom:22px; color:#617980; font-size:.82rem; line-height:1.55; }
.text-link { align-self:flex-start; margin-top:auto; padding-bottom:5px; border-bottom:1px solid currentColor; font-size:.68rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.is-unavailable img { opacity:.45; filter:grayscale(.45); }
.favourite-button { position:absolute; z-index:2; top:12px; right:12px; display:grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid rgba(255,255,255,.68); border-radius:50%; color:var(--white); background:rgba(3,25,34,.56); cursor:pointer; font-size:1.22rem; backdrop-filter:blur(9px); transition:background-color .22s ease,border-color .22s ease,color .22s ease,transform .22s ease; }
.favourite-button:hover { border-color:var(--aqua); color:var(--aqua); transform:scale(1.08); }
.favourite-button.saved { border-color:var(--aqua); color:var(--ink); background:var(--aqua); }

.about { max-width:none; display:grid; grid-template-columns:1fr; gap:64px; padding:120px max(34px,calc((100vw - 1212px)/2)); background:var(--deep); }
.about-intro { display:grid; grid-template-columns:minmax(480px,1.25fr) minmax(280px,.75fr); column-gap:clamp(54px,9vw,130px); align-items:end; }
.about .eyebrow { color:var(--aqua); }
.about-intro .eyebrow { grid-column:1; margin-bottom:22px; }
.about h2 { grid-column:1; max-width:820px; margin-bottom:0; color:var(--white); font-size:clamp(4rem,6.6vw,6.6rem); }
.about-intro > p:last-child { grid-column:2; grid-row:1/3; align-self:end; max-width:430px; margin:0 0 8px; color:#9fb9ba; line-height:1.75; }
.architecture { grid-column:1/-1; min-width:0; }
.architecture-flow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr) 20px) minmax(0,1fr); gap:12px; align-items:stretch; padding:0; }
.architecture-node { min-width:0; padding:21px 18px; border:1px solid rgba(255,255,255,.18); color:#78979a; background:rgba(255,255,255,.025); cursor:pointer; font:inherit; text-align:left; transition:border-color .25s ease,background-color .25s ease,color .25s ease,transform .25s ease; }
.architecture-node span,.architecture-node small { display:block; font-size:.55rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.architecture-node strong { display:block; margin:24px 0 9px; color:var(--white); font-family:Georgia,serif; font-size:1.15rem; font-weight:400; line-height:1.05; }
.architecture-node small { color:#678589; line-height:1.4; }
.architecture-node:hover,.architecture-node.active { border-color:var(--aqua); color:var(--aqua); background:rgba(105,227,220,.09); transform:translateY(-3px); }
.flow-arrow { align-self:center; color:#56777a; font-size:.9rem; text-align:center; }
.architecture-detail { min-height:220px; display:grid; grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr); column-gap:clamp(40px,7vw,95px); align-items:start; margin-top:18px; padding:34px 38px 28px; border-left:3px solid var(--aqua); background:#0b252e; }
.architecture-detail > p:first-child { margin-bottom:10px; color:var(--aqua); font-size:.6rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.architecture-detail h3 { grid-column:1; margin:0; color:var(--white); font-family:Georgia,serif; font-size:clamp(1.85rem,3vw,2.65rem); font-weight:400; letter-spacing:-.04em; line-height:1.05; }
.architecture-detail #architecture-description { grid-column:2; grid-row:1/3; align-self:center; max-width:680px; margin:0; color:#9ab3b5; font-size:.9rem; line-height:1.75; }
.architecture-detail #architecture-meta { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px 28px; margin:28px 0 0; padding-top:19px; border-top:1px solid rgba(255,255,255,.12); color:#729194; font-size:.58rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.pipeline { counter-reset:steps; border-top:1px solid rgba(255,255,255,.2); }
.pipeline article { position:relative; display:grid; grid-template-columns:45px 110px 1fr; gap:18px; align-items:start; padding:28px 0; border-bottom:1px solid rgba(255,255,255,.16); }
.pipeline article > span { color:var(--aqua); font-size:.65rem; font-weight:850; letter-spacing:.12em; }
.pipeline .pipeline-label { color:#779497; font-size:.62rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.pipeline h3 { margin:0 0 8px; color:var(--white); font-family:Georgia,serif; font-size:1.45rem; font-weight:400; }
.pipeline article > p:not(.pipeline-label) { grid-column:3; margin:0; color:#91abad; font-size:.8rem; line-height:1.55; }
.pipeline strong { grid-column:3; margin-top:8px; color:var(--aqua); font-size:.61rem; letter-spacing:.13em; text-transform:uppercase; }
.proof-strip { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,1fr); margin-top:10px; border-top:1px solid rgba(255,255,255,.22); }
.proof-strip p { margin:0; padding:25px 0; color:#91abad; font-size:.66rem; font-weight:780; letter-spacing:.11em; text-transform:uppercase; }
.proof-strip p + p { padding-left:32px; border-left:1px solid rgba(255,255,255,.16); }
.proof-strip span { margin-right:10px; color:var(--white); font-family:Georgia,serif; font-size:1.75rem; letter-spacing:-.04em; text-transform:none; }

footer { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:30px; min-height:130px; padding:28px max(34px,calc((100vw - 1212px)/2)); color:#4f696f; background:#dfece8; }
footer p { margin:0; font-size:.65rem; font-weight:760; letter-spacing:.1em; text-transform:uppercase; }
footer > a:last-child { justify-self:end; color:var(--ink); font-size:.67rem; font-weight:850; letter-spacing:.08em; text-decoration:none; text-transform:uppercase; }

dialog { width:min(1040px,calc(100% - 32px)); max-height:calc(100vh - 32px); overflow:auto; background:var(--deep); color:var(--white); }
.dialog-close { position:absolute; z-index:3; top:14px; right:14px; background:var(--white); box-shadow:0 5px 18px rgba(0,0,0,.24); }
.dialog-media { min-height:500px; padding:28px; background-position:center; }
.dialog-media video { width:100%; max-height:560px; aspect-ratio:16/9; object-fit:contain; }
.dialog-content { padding:42px 48px 46px; background:var(--white); color:var(--ink); }
.dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.live-badge { display:flex; align-items:center; gap:8px; color:#557078; font-size:.62rem; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.live-badge b { width:7px; height:7px; border-radius:50%; background:#4bcf71; }
.dialog-content h2 { max-width:700px; margin-bottom:18px; font-family:Georgia,serif; font-size:clamp(2.6rem,5vw,4.5rem); font-weight:400; letter-spacing:-.06em; line-height:.95; }
.dialog-content > #dialog-description { max-width:680px; color:#587078; }
.dialog-content dl { flex-wrap:wrap; gap:28px 60px; margin:28px 0 0; padding:22px 0 0; border-top:1px solid #c7d6d2; }
.stream-note { color:#34535b; border-left-color:var(--aqua); background:#eaf7f4; }
.player-dashboard { display:grid; grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr); gap:28px; padding:22px 28px; border-top:1px solid #21414b; border-bottom:1px solid #21414b; background:#071c24; }
.quality-panel { align-self:center; }
.quality-panel > p { margin:0 0 10px; color:#82a1a4; font-size:.58rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.quality-options { display:flex; flex-wrap:wrap; gap:7px; }
.quality-option { padding:8px 11px; border:1px solid #36565f; border-radius:2px; color:#9bb4b5; background:transparent; cursor:pointer; font:inherit; font-size:.64rem; font-weight:820; letter-spacing:.06em; }
.quality-option:hover,.quality-option.active { border-color:var(--aqua); color:var(--ink); background:var(--aqua); }
.quality-option:disabled { cursor:default; opacity:.82; }
.stream-stats { display:grid; grid-template-columns:repeat(5,minmax(80px,1fr)); gap:0; margin:0; }
.stream-stats > div { min-width:0; padding:4px 13px; border-left:1px solid #28434b; }
.stream-stats dt { margin-bottom:8px; color:#6f8d90; font-size:.53rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.stream-stats dd { margin:0; overflow:hidden; color:#d9eeee; font-family:Georgia,serif; font-size:.9rem; line-height:1.2; text-overflow:ellipsis; }
.dialog-badges { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:14px; }
.dialog-favourite { padding:8px 10px; border:1px solid #9eb7b4; border-radius:2px; color:#405d64; background:transparent; cursor:pointer; font:inherit; font-size:.59rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.dialog-favourite.saved { border-color:#0f858b; color:#075f64; background:#dff5f1; }
html[data-theme="dark"] .dialog-favourite { border-color:#507078; color:#b5cecc; }
html[data-theme="dark"] .dialog-favourite.saved { border-color:var(--aqua); color:var(--aqua); background:#10363b; }

@media (max-width:900px) {
  .site-header { grid-template-columns:1fr auto; }.site-header nav { display:none; }
  .hero { grid-template-columns:1fr; align-items:end; padding-top:90px; }.featured-film { min-height:220px; }.hero-index { display:none; }
  .controls { grid-template-columns:1fr; }.filters { justify-content:flex-start; }
  .about { grid-template-columns:1fr; padding:100px 28px; }.about-intro { grid-template-columns:1fr; }.about-intro .eyebrow,.about h2,.about-intro > p:last-child { grid-column:1; grid-row:auto; }.about-intro > p:last-child { max-width:620px; margin-top:28px; }.architecture-flow { grid-template-columns:repeat(4,140px 16px) 140px; overflow-x:auto; padding-bottom:15px; scrollbar-color:#34555b transparent; }.pipeline { margin-top:10px; }
  .player-dashboard { grid-template-columns:1fr; }.stream-stats { grid-template-columns:repeat(3,1fr); row-gap:18px; }
  footer { grid-template-columns:1fr auto; } footer p { display:none; }
}
@media (max-width:620px) {
  .site-header { min-height:76px; padding:0 20px; }.header-cta { display:none; }.header-actions { gap:0; }
  .hero { min-height:auto; gap:38px; padding:82px 20px 44px; }.hero-actions { align-items:flex-start; flex-direction:column; }.featured-film { min-height:205px; }.featured-title { margin-top:58px; }
  .catalogue { padding:82px 20px 90px; }.section-heading { flex-direction:column; }.section-summary { padding-top:0; }.search { grid-template-columns:1fr; gap:8px; }
  .video-grid { grid-template-columns:1fr; gap:42px; }.video-open { aspect-ratio:1.4; }
  .about { gap:50px; padding:84px 20px; }.about h2 { font-size:clamp(3.3rem,15vw,5rem); }.architecture-flow { width:100%; grid-template-columns:repeat(4,128px 16px) 128px; }.architecture-detail { grid-template-columns:1fr; padding:25px 22px; }.architecture-detail > p:first-child,.architecture-detail h3,.architecture-detail #architecture-description,.architecture-detail #architecture-meta { grid-column:1; grid-row:auto; }.architecture-detail #architecture-description { margin-top:20px; }.architecture-detail #architecture-meta { margin-top:22px; }.pipeline article { grid-template-columns:34px 80px 1fr; gap:10px; }.proof-strip { grid-template-columns:1fr; }.proof-strip p + p { padding-left:0; border-top:1px solid rgba(255,255,255,.16); border-left:0; }
  footer { padding:25px 20px; }.footer-brand { display:none; } footer { grid-template-columns:1fr; } footer > a:last-child { justify-self:start; }
  .dialog-media { min-height:260px; padding:12px; }.player-dashboard { padding:20px 16px; }.stream-stats { grid-template-columns:repeat(2,1fr); }.stream-stats > div { padding-left:10px; }.dialog-content { padding:30px 22px; }.dialog-heading { align-items:flex-start; flex-direction:column; }.dialog-badges { justify-content:flex-start; }.dialog-content dl { flex-direction:column; gap:17px; }
}

/* Motion system */
@keyframes rise-in {
  from { opacity:0; transform:translateY(24px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes hero-drift {
  from { background-position:center 52%; }
  to { background-position:center 48%; }
}
@keyframes status-pulse {
  0%,100% { box-shadow:0 0 0 5px rgba(121,226,143,.14); }
  50% { box-shadow:0 0 0 9px rgba(121,226,143,.03); }
}
@keyframes dialog-in {
  from { opacity:0; transform:translateY(18px) scale(.985); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
.hero { animation:hero-drift 10s ease-out both; }
.hero-content > *,.featured-film,.hero-index { opacity:0; animation:rise-in .72s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-content .eyebrow { animation-delay:80ms; }
.hero-content h1 { animation-delay:160ms; }
.hero-content .hero-copy { animation-delay:240ms; }
.hero-content .hero-actions { animation-delay:320ms; }
.featured-film { animation-delay:360ms; transition:border-color .3s ease,box-shadow .3s ease,transform .3s ease; }
.hero-index { animation-delay:440ms; }
.featured-film:hover { border-color:rgba(105,227,220,.9); box-shadow:0 22px 55px rgba(0,0,0,.24); transform:translateY(-5px); }
.featured-play,.play { transition:background-color .25s ease,color .25s ease,transform .25s ease; }
.featured-film:hover .featured-play,.video-open:hover:not(:disabled) .play { background:var(--aqua); color:var(--ink); transform:scale(1.08); }
.button,.filter,.theme-toggle,.text-link,nav a,footer > a:last-child { transition:background-color .22s ease,border-color .22s ease,color .22s ease,transform .22s ease; }
.button:hover,.theme-toggle:hover { transform:translateY(-2px); }
.hero-status b { animation:status-pulse 2.2s ease-in-out infinite; }
.video-card { transition:transform .32s ease; }
.video-card:hover { transform:translateY(-7px); }
.pipeline article { transition:background-color .25s ease,padding-left .25s ease; }
.pipeline article:hover { padding-left:12px; background:rgba(105,227,220,.035); }
.js .reveal { opacity:0; transform:translateY(30px); transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1); transition-delay:var(--reveal-delay,0ms); }
.js .reveal.is-visible { opacity:1; transform:translateY(0); }
dialog[open] { animation:dialog-in .3s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; transition-delay:0ms !important; }
  .js .reveal { opacity:1; transform:none; }
}
#account-status { padding: .6rem 5%; text-align: right; overflow-wrap: anywhere; }
#account { cursor: pointer; }
#account { display:inline-block; background:transparent; border:0; margin-left:.6rem; }
#my-videos { margin: 1rem auto; width:min(92%,72rem); border:1px solid currentColor; border-radius:.7rem; padding:1rem; }
#my-videos summary { cursor:pointer; font-weight:700; }
#upload-form { display:flex; flex-wrap:wrap; align-items:end; gap:1rem; margin:1rem 0; }
#upload-form label { display:grid; gap:.4rem; max-width:100%; }
#upload-form input { max-width:100%; min-width:0; }
#my-videos button { padding:.45rem .8rem; cursor:pointer; }
#my-videos, #metadata-editor {
  --surface:#fbfdfc; --field:#fff; --text:#11363b; --muted:#49676b; --line:#b6ccca;
  --primary:#075f64; --on-primary:white; --wash:#edf5f3;
  color:var(--text); background:var(--surface); color-scheme:light;
}
html[data-theme="dark"] :is(#my-videos,#metadata-editor) {
  --surface:#10272d; --field:#0b1e24; --text:#e6f4ef; --muted:#b0c8c5; --line:#486369;
  --primary:#90e3d6; --on-primary:#073638; --wash:#19353a; color-scheme:dark;
}
#my-videos { padding:clamp(1rem,3vw,2rem); border-color:var(--line); }
#my-videos summary { font-size:1.2rem; }
.owned-heading { margin:1.6rem 0 .6rem; font-size:1rem; }
#owned-list { list-style:none; padding:0; margin:0; }
#owned-list li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.7rem 1rem; padding:.9rem 0; border-top:1px solid var(--line); }
#owned-list strong { display:block; overflow-wrap:anywhere; }
.owned-status { display:inline-block; margin-top:.25rem; color:var(--muted); font-size:.8rem; text-transform:capitalize; }
.owned-status::before { content:""; display:inline-block; width:.48rem; height:.48rem; border-radius:50%; margin-right:.4rem; background:currentColor; }
.owned-status[data-state="PUBLISHED"]::before { background:#309477; }
.owned-status[data-state="FAILED"]::before { background:#d86756; }
.owned-actions,.category-tools,.editor-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
#metadata-editor { width:min(94vw,38rem); max-height:90dvh; border:1px solid var(--line); border-radius:1rem; padding:0; overflow:auto; }
.editor-header { background:#0b343c; color:#fff; padding:1.35rem clamp(1rem,4vw,2rem); border-top:4px solid #68d7ca; }
.editor-header h2 { margin:0; font-size:1.45rem; }
.editor-header p { margin:.35rem 0 0; color:#c3e7df; overflow-wrap:anywhere; }
.editor-fields,.editor-actions { padding:1.25rem clamp(1rem,4vw,2rem); }
#metadata-form fieldset { margin:1.25rem 0 0; padding:0; border:0; min-width:0; }
#metadata-form legend,.description-label { font-weight:700; margin-bottom:.5rem; }
.description-label { display:flex; justify-content:space-between; gap:.5rem; }
#description-count { font-size:.8rem; font-weight:400; color:var(--muted); }
#metadata-form :is(textarea,input,select),#upload-form :is(input,select) { font:inherit; color:var(--text); background:var(--field); border:1px solid var(--line); border-radius:.5rem; padding:.65rem; }
#metadata-form textarea { width:100%; resize:vertical; min-height:5rem; line-height:1.5; }
#category-rows div { display:flex; gap:.5rem; margin-bottom:.5rem; }
#category-rows input,.category-tools select { flex:1; min-width:0; }
#metadata-form button,#my-videos button { min-height:42px; font:inherit; font-weight:600; border:1px solid var(--line); border-radius:.5rem; padding:.5rem .8rem; color:var(--text); background:var(--field); cursor:pointer; }
#metadata-form button:hover,#my-videos button:hover { background:var(--wash); }
#metadata-form button[type="submit"],#upload-form button { background:var(--primary); color:var(--on-primary); border-color:var(--primary); }
#metadata-form button:disabled { opacity:.55; cursor:default; }
.editor-actions { position:sticky; bottom:0; justify-content:flex-end; border-top:1px solid var(--line); background:var(--surface); }
#edit-message:empty { margin:0; }
:is(#my-videos,#metadata-editor) :focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
@media(max-width:480px) {
  #upload-form { display:grid; }
  .category-tools { align-items:stretch; flex-direction:column; }
  .editor-actions button { flex:1; }
}
body #new-category-label[hidden] { display:none; }
