:root {
  color-scheme: dark;
  --base: #080e18;
  --panel: #101a2a;
  --text: #f4f8fc;
  --muted: #adbbcc;
  --accent: #49d9f1;
  --edge: rgba(195, 225, 250, .18);
  --page: clamp(20px, 5.3vw, 94px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin:0; background:var(--base); color:var(--text); font: 16px/1.5 "Inter","Helvetica Neue",Arial,sans-serif; }
body:has(dialog[open]) { overflow:hidden; }
button, input, select { font:inherit; }
button, a { -webkit-tap-highlight-color:transparent; }
a { color:inherit; text-decoration:none; }
button { cursor:pointer; color:inherit; }
button:disabled { opacity:.32; cursor:default; }
:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.topbar { position:absolute; z-index:2; top:0; inset-inline:0; height:74px; padding:0 var(--page); display:flex; align-items:center; gap:46px; background:linear-gradient(#060e18e8,transparent); }
.brand { display:inline-flex; align-items:center; flex-shrink:0; }
.brand img { display:block; height:42px; width:auto; }
nav, .top-actions { display:flex; align-items:center; gap:25px; }
nav a, .home-link { color:#d4dee9; font-size:14px; white-space:nowrap; }
nav a:hover, .home-link:hover { color:var(--accent); }
.top-actions { margin-left:auto; }
.home-link span { color:var(--accent); margin-left:5px; }
body.is-landing .topbar, body:has(.landing) .topbar { justify-content:center; height:auto; padding-top:clamp(32px,5vh,48px); padding-bottom:20px; gap:0; }
body.is-landing .brand, body:has(.landing) .brand { margin-inline:auto; }
body.is-landing .brand img, body:has(.landing) .brand img { height:calc(42px * 1.3); }
body.is-landing .top-actions, body:has(.landing) .top-actions { display:none; }
.backdrop { background-size:cover; background-position:center; position:relative; isolation:isolate; }
.backdrop::before { content:""; position:absolute; z-index:-1; inset:0; }
.landing { min-height:100svh; background-image:url("assets/covers/landing.webp"); background-position:center 42%; display:flex; align-items:center; justify-content:center; }
.landing::before { background:radial-gradient(ellipse at 50% 56%,#07101dd8 0%,#08122178 52%,transparent 86%),linear-gradient(0deg,#080e18 0%,#080e18d4 16%,#080e1838 68%); }
.landing-content { width:100%; padding:132px var(--page) 56px; display:flex; flex-direction:column; align-items:center; }
.eyebrow { margin:0 0 14px; font-size:12px; letter-spacing:.20em; color:#d8e4f0; font-weight:750; }
.eyebrow span { display:inline-block; width:16px; height:2px; background:var(--accent); margin-right:8px; vertical-align:middle; }
.landing .eyebrow { margin:0 0 22px; text-align:center; }
.hero .eyebrow, .dialog-body .eyebrow { display:inline-flex; align-items:center; gap:9px; }
.hero .eyebrow span, .dialog-body .eyebrow span { width:9px; height:10.4px; margin-right:0; flex-shrink:0; }
.hero .eyebrow span { clip-path:polygon(100% 0,0 50%,100% 100%); }
.dialog-body .eyebrow span { clip-path:polygon(0 0,100% 50%,0 100%); }
h1 { font-size:clamp(65px,10vw,164px); line-height:.88; letter-spacing:-.075em; margin:0 0 44px; font-weight:820; }
.portal-triangles { display:grid; grid-template-columns:repeat(2,clamp(150px,20vw,256px)); gap:clamp(12px,2vw,26px); justify-content:center; }
.portal-tri { position:relative; isolation:isolate; width:100%; aspect-ratio:866/1000; display:flex; align-items:center; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); transition:transform .2s; }
.portal-tri-right { clip-path:polygon(0 0,100% 50%,0 100%); padding:20px 34% 20px 22px; justify-content:flex-start; text-align:left; }
.portal-tri-left { clip-path:polygon(100% 0,0 50%,100% 100%); padding:20px 22px 20px 34%; justify-content:flex-end; text-align:right; }
.portal-tri:hover { transform:translateY(-4px); }
.portal-tri:focus-visible { outline:none; }
.tri-shape { position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; z-index:0; }
.tri-shape path { stroke-width:2.5px; stroke-linejoin:round; transition:fill .18s,stroke .18s; }
.portal-feature { color:#06131a; }
.portal-feature .tri-shape path { fill:#46d9f1; stroke:transparent; }
.portal-feature:hover .tri-shape path { fill:#97eafa; }
.portal-feature:focus-visible .tri-shape path { stroke:#fff; stroke-width:6px; }
.portal-tech .tri-shape path { fill:#0f1b2cd9; stroke:rgba(195,225,250,.32); }
.portal-tech:hover .tri-shape path { fill:#14273e; stroke:var(--accent); }
.portal-tech:focus-visible .tri-shape path { stroke:var(--accent); stroke-width:6px; }
.tri-content { position:relative; z-index:1; display:block; }
.tri-title { display:block; font-size:clamp(16px,1.75vw,23px); font-weight:780; line-height:1.12; letter-spacing:-.025em; }
.tri-title i { font-style:normal; font-size:.8em; opacity:.85; margin-left:3px; display:inline-block; transition:transform .18s; }
.portal-tech .tri-title i { color:var(--accent); opacity:1; }
.portal-tri:hover .tri-title i { transform:translate(2px,-2px); }
.portal-tri small { display:block; font-size:12.5px; line-height:1.28; margin-top:6px; font-weight:560; max-width:128px; color:#082430; }
.portal-tri-left small { margin-inline-start:auto; }
.portal-sublinks { display:grid; grid-template-columns:repeat(2,clamp(124px,13vw,162px)); gap:12px; justify-content:center; margin-top:24px; }
.portal-link { display:flex; justify-content:space-between; align-items:center; gap:14px; border:1px solid var(--edge); border-radius:10px; font-weight:720; background:#0f1b2cd9; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); transition:background .18s,border-color .18s,transform .18s; }
.portal-link:hover { transform:translateY(-3px); border-color:var(--accent); background:#14273e; }
.portal-sub { min-height:46px; padding:10px 16px; font-size:15px; letter-spacing:.03em; }
.portal-sub span:last-child { color:var(--accent); font-size:14px; }
.hero { min-height:clamp(570px,79vh,850px); padding:155px var(--page) 125px; display:flex; align-items:end; background-image:url("assets/covers/manifesto.webp"); background-position:70% center; }
.hero::before { background:linear-gradient(90deg,#070c17f7 0%,#080e18bb 34%,#080e180a 76%),linear-gradient(0deg,#080e18 0%,transparent 46%); }
.hero h1 { font-size:clamp(60px,8.5vw,136px); margin:0; }
.hero-copy { color:#d4dfeb; max-width:500px; margin:22px 0; font-size:clamp(15px,1.7vw,18px); }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
.button, .icon { border-radius:7px; border:1px solid var(--edge); background:#182639db; padding:10px 15px; font-weight:680; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.button:hover, .icon:hover { background:#284058; }
.button.primary { background:var(--accent); border-color:transparent; color:#05151d; }
.button.primary:hover { background:#9beefa; }
.icon { min-width:40px; min-height:40px; padding:5px; }
.search::before { content:""; display:block; width:13px; height:13px; box-sizing:border-box; border:2px solid currentColor; border-radius:100%; }
.search::after { content:""; width:7px; height:2px; background:currentColor; transform:rotate(45deg); margin-left:-10px; margin-top:12px; }
.search-form { position:absolute; right:var(--page); top:66px; z-index:5; width:min(370px,calc(100% - 2 * var(--page))); }
.search-form input { width:100%; padding:13px 17px; background:#101a2a; color:var(--text); border-radius:9px; border:1px solid var(--edge); }
.shelves { position:relative; margin-top:-88px; padding:0 0 58px; }
.shelves.search-mode { margin:0; padding-top:118px; }
.shelf { margin:0 0 34px; scroll-margin-top:24px; padding:0 var(--page); }
.shelf-top { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:10px; }
.shelf h2 { margin:0; font-size:clamp(21px,2.4vw,31px); letter-spacing:-.04em; }
.arrows { display:flex; gap:5px; }
.arrows button { width:35px; height:35px; min-width:0; min-height:0; }
.rail { display:grid; grid-auto-flow:column; grid-auto-columns:clamp(198px,23.5vw,355px); gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:#33495e transparent; padding:5px 2px 13px; }
.tile { position:relative; isolation:isolate; border:0; border-radius:12px; padding:0; display:block; text-align:left; background:#111c2b; width:100%; min-width:0; overflow:hidden; scroll-snap-align:start; transition:transform .25s ease; }
.tile:hover { transform:translateY(-3px); }
.tile-image { position:relative; aspect-ratio:16/9; display:block; overflow:hidden; background:#0b111c; }
.tile-image img { display:block; height:100%; width:100%; object-fit:cover; transition:transform .25s ease; }
.tile:hover img { transform:scale(1.045); }
.tile-type { position:absolute; z-index:3; bottom:8px; right:10px; background:#070e1ae6; color:#e4edf7; border-radius:5px; padding:4px 7px; font-size:11px; font-weight:720; }
.tile-info { position:relative; z-index:2; isolation:isolate; display:block; margin-top:-60px; padding:64px 14px 14px; border-radius:0 0 12px 12px; background:linear-gradient(to top,#111c2b 0%,#111c2b 54%,rgba(17,28,43,.76) 76%,rgba(17,28,43,0) 100%); }
.tile-info::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .25s ease; background:linear-gradient(to top,#182c42 0%,#182c42 54%,rgba(24,44,66,.76) 76%,rgba(24,44,66,0) 100%); }
.tile:hover .tile-info::before { opacity:1; }
.tile-info b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:calc(15px * 1.3); line-height:1.25; letter-spacing:-.015em; }
.tile-info small { display:block; color:var(--muted); font-size:12px; margin-top:2px; }
.single { min-height:100svh; padding:150px var(--page) 70px; display:grid; align-content:center; justify-items:start; background:radial-gradient(ellipse at top right,#0e3048,transparent 65%); }
.single h1 { font-size:clamp(55px,9vw,126px); margin-bottom:18px; }
.single p { color:var(--muted); margin-bottom:23px; }
dialog { border:1px solid var(--edge); border-radius:16px; padding:0; background:#0e1725; color:var(--text); width:min(960px,calc(100% - 34px)); max-height:calc(100% - 38px); }
dialog::backdrop { background:#030810d9; backdrop-filter:blur(7px); }
.dialog-shell { position:relative; }
.dismiss { position:absolute; z-index:1; top:12px; right:12px; background:#091421f5; font-size:24px; line-height:1; }
.detail-cover { width:100%; aspect-ratio:3/1; object-fit:cover; display:block; }
.dialog-body { padding:24px clamp(14px,4vw,40px) 32px; }
.dialog-body h2 { margin:0; font-size:clamp(28px,5vw,53px); line-height:1.02; letter-spacing:-.05em; }
.summary { margin:13px 0 20px; color:#c9d6e3; max-width:680px; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--edge); margin-top:20px; }
.tabs button { color:var(--muted); border:0; border-bottom:2px solid transparent; padding:9px 12px; background:none; }
.tabs button[aria-pressed="true"] { color:var(--text); border-color:var(--accent); }
.viewer { margin-top:13px; }
.viewer img, .viewer video { display:block; width:100%; aspect-ratio:16/9; object-fit:contain; background:#03060b; border-radius:7px; }
.viewer-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; flex-wrap:wrap; }
.video-controls { justify-content:flex-end; }
.video-controls .scene-caption { margin:0 auto 0 0; }
.slide-nav { display:flex; align-items:center; gap:10px; flex:1; justify-content:space-between; }
.viewer-controls .icon { min-width:44px; }
.fs-btn { padding:8px 13px; font-size:13px; gap:7px; white-space:nowrap; }
.viewer-controls label { color:var(--muted); font-size:13px; text-align:center; }
.viewer-controls select { color:var(--text); background:#111e30; border:1px solid var(--edge); border-radius:5px; padding:6px; }
.slide-stage:fullscreen, .slide-stage:-webkit-full-screen { background:#03060b; color:var(--text); padding:clamp(12px,2.2vw,26px); display:flex; flex-direction:column; width:100vw; height:100vh; }
.slide-stage:fullscreen .scene-wrap, .slide-stage:-webkit-full-screen .scene-wrap { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; }
.slide-stage:fullscreen .scene, .slide-stage:-webkit-full-screen .scene { width:100%; height:100%; aspect-ratio:auto; border-radius:0; }
.empty-viewer { margin:8px 0 0; padding:26px 20px; border-radius:10px; background:#0a121f; color:var(--muted); font-size:14px; }
.chapters { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
.chapters button { border:1px solid var(--edge); background:#152438; padding:5px 8px; border-radius:6px; font-size:12px; }
.chapters button[aria-current="step"] { background:var(--accent); color:#06121a; }
.scene-caption { margin:12px 0 0; color:#c2cfde; font-size:14px; }
@media(max-width:700px) {
  .topbar {
    height: 65px;
    gap: 12px;
  }

  .brand img {
    height: 34px;
  }

  body.is-landing .topbar,
  body:has(.landing) .topbar {
    padding-top: 28px;
    padding-bottom: 14px;
  }

  body.is-landing .brand img,
  body:has(.landing) .brand img {
    height: calc(34px * 1.3);
  }

  nav {
    display: none;
  }

  .top-actions {
    gap: 9px;
  }

  .home-link {
    font-size: 12px;
  }

  .portal-triangles {
    grid-template-columns: repeat(2, minmax(0, min(42vw, 180px)));
    gap: 10px;
    width: 100%;
  }

  .portal-tri-right {
    padding: 12px 32% 12px 13px;
  }

  .portal-tri-left {
    padding: 12px 13px 12px 32%;
  }

  .tri-title {
    font-size: clamp(13px, 3.9vw, 17px);
  }

  .portal-tri small {
    font-size: 10.5px;
    max-width: 86px;
    margin-top: 4px;
  }

  .portal-sublinks {
    grid-template-columns: repeat(2, minmax(112px, 142px));
    gap: 10px;
    margin-top: 18px;
  }

  .portal-sub {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .landing-content {
    padding: 108px var(--page) 36px;
  }

  h1 {
    margin-bottom: 26px;
  }

  .hero {
    min-height: 570px;
    padding-top: 120px;
    padding-bottom: 126px;
    background-position: 65% center;
  }

  .hero::before {
    background: linear-gradient(90deg, #080e18ca, transparent), linear-gradient(0deg, #080e18 5%, #080e1890 44%, transparent 85%);
  }

  .detail-cover {
    aspect-ratio: 16/8;
  }

  .fs-btn span {
    display: none;
  }

  .fs-btn {
    padding: 8px;
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}