@font-face {
  font-family: "Alliance Display";
  src: url("assets/editorial-v1/manrope-display.woff2") format("woff2");
  font-weight: 200 800;
  font-display: optional;
}

:root {
  color-scheme: dark;
  --ink: #090b0f;
  --panel: #111419;
  --paper: #f4f4f1;
  --muted: #b9c0c8;
  --edge: rgb(207 218 231 / 17%);
  --steel: #c8d3dd;
  --ember: #df9e86;
  --gutter: clamp(17px, 4.65vw, 52px);
  --masthead-height: 68px;
  --hero-height: clamp(416px, 57svh, 545px);
  --card-radius: 15px;
  --dock-height: 70px;
  --dock-bottom: max(10px, env(safe-area-inset-bottom));
  --glass-edge: #b3cee75c;
  --glass-metal: #ebf5ff;
  --glass-dark: #101822;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --display: "Alliance Display", "Segoe UI", system-ui, sans-serif;
  font-family: system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); }
@media (hover: none) and (pointer: coarse) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
}
body {
  position: relative; isolation: isolate; margin: 0; min-height: 100dvh; color: var(--paper);
  background: var(--ink);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--steel); color: var(--ink); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.glyph-fill { fill: currentColor; stroke: none; opacity: var(--glyph-opacity, 0); transition: opacity .18s; }
.shell { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }

.atmosphere {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at 83% 57%, #202b36 0%, transparent 55%),
              linear-gradient(177deg, #090b0f 30%, #151e28 62%, #0a0d12 92%);
}
.atmosphere-fade {
  position: absolute; inset: calc(var(--hero-height) - clamp(106px, 16vw, 180px)) 0 0;
  overflow: clip;
  mask-image: linear-gradient(180deg, transparent, #000 23% 84%, transparent);
}
.atmosphere-floor, .atmosphere-ribs { position: absolute; inset: 0; }
.atmosphere-floor {
  background:
    linear-gradient(180deg, transparent 77%, #aeb7c316 77.2%, transparent 77.6% 86%, #73829719 86.2%, transparent 86.55%),
    linear-gradient(160deg, transparent 25%, #9bb5ce09 25.2%, #9bb5ce04 45%, transparent 45.3%),
    linear-gradient(147deg, transparent 36%, #06101c2e 36.3%, #a6bdda0b 55.2%, transparent 55.5%),
    radial-gradient(ellipse at 16% 21%, #91b6db2d, transparent 54%),
    radial-gradient(ellipse at 81% 60%, #633c3029, transparent 40%);
}
.atmosphere-ribs {
  background: linear-gradient(151deg, #7b91a289 14%, #8296aa4f 49%, #8b9dad34 68%, #bcc5d01c 84%);
  mask-image:
    radial-gradient(ellipse 82% 85% at 100% -31%, transparent 98.6%, #000 99%, transparent 99.4%),
    radial-gradient(ellipse 100% 106% at 100% -27%, transparent 98.6%, #000 99%, transparent 99.45%),
    radial-gradient(ellipse 111% 130% at 100% -29%, transparent 98.6%, #000 99%, transparent 99.35%),
    radial-gradient(ellipse 130% 150% at 100% -31%, transparent 99%, #0009 99.3%, transparent 99.65%),
    linear-gradient(158deg, transparent 22.8%, #000a 23.05%, transparent 23.27%);
}
.atmosphere-light {
  position: absolute; inset: 0 -18% auto; height: clamp(175px, 37svh, 350px);
  background: radial-gradient(ellipse 44% 43% at 49% 47%, #e2f1ffd1, #9ec8f285 34%, #7ea9d548 64%, transparent);
  transform: translate3d(17%, -28px, 0); opacity: .38;
}
body:not([data-route="home"]) .atmosphere { opacity: .48; }

.scene {
  position: absolute; inset: 0 0 auto; height: var(--hero-height); z-index: -1;
  overflow: hidden; isolation: isolate; pointer-events: none;
  background: radial-gradient(ellipse at 86% 23%, #303944, transparent 63%), var(--ink);
  mask-image: linear-gradient(#000 0 61%, #000d 76%, transparent 100%);
}
.scene-plate, .scene-frame, .scene-beam, .scene-shade { position: absolute; inset: 0; }
.scene-plate { transition: opacity .28s ease; }
.scene-poster { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
html[data-media-enhanced] :is(.scene-poster, .project-cover):not([data-media-ready]) { opacity: 0; }
.scene-beam {
  inset: -17% -24%; opacity: 0;
  mask-image: radial-gradient(ellipse farthest-side, #000 44%, #000d 68%, transparent 100%);
  background: linear-gradient(158deg, transparent 33%, #a2cafa29 46%, #e2efff82 50%, #729ac62b 53%, transparent 66%);
}
.scene-reflection {
  position: absolute; inset: 45% -6% 0; opacity: 0;
  background: radial-gradient(ellipse 61% 16% at 56% 45%, #c3dcff5c, #8aaed22f 49%, transparent 100%);
}
.scene-shade {
  background: linear-gradient(180deg, #080a0e80 0%, transparent 22%, #090b0f08 42%, #090b0fc7 70%, var(--ink) 98%);
}
body:not([data-route="home"]) .scene-plate { opacity: .19; }

.masthead { display: flex; align-items: center; justify-content: space-between; padding-top: env(safe-area-inset-top); min-height: calc(var(--masthead-height) + env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 11px; padding-block: 8px; line-height: .98; font-size: 10px; letter-spacing: .14em; font-weight: 750; }
.brand span { border-inline-start: 1px solid #e3e9ef59; padding-inline-start: 10px; }
.round-control { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: #11151bdd; border: 1px solid var(--edge); border-radius: 50%; cursor: pointer; transition: background .18s, transform .18s; }
.round-control:hover { background: #282f39; }
.round-control:active { transform: scale(.92); }
.round-control .icon { width: 19px; height: 19px; }
.menu-trigger {
  width: 48px; height: 48px; border-color: var(--glass-edge); border-radius: 17px 9px 17px 9px;
  background: linear-gradient(157deg, #293d52f2, #101821f7 70%);
  box-shadow: inset 0 1px 0 #eef8ff66, 0 7px 18px #0005; color: var(--glass-metal);
}
.menu-trigger:hover, .menu-trigger[aria-expanded="true"] { background: #31485f; }
.menu-trigger .icon { width: 23px; height: 23px; }

#content { padding-bottom: calc(var(--dock-height) + var(--dock-bottom) + 34px); }
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: calc(var(--hero-height) - var(--masthead-height) - env(safe-area-inset-top));
  padding: 20px 0 24px;
}
.hero-trace {
  position: absolute; inset: auto 0 0; height: 1px; transform-origin: left;
  background: linear-gradient(90deg, #e8eff8 0 32px, #9bb1c659 32px, #b5c5d607);
}
.hero h1, .detail h1 {
  margin: 0 0 23px; font-family: var(--display);
  font-size: clamp(48px, 13.75vw, 70px); line-height: .98; font-weight: 750;
  letter-spacing: -.04em; text-shadow: 0 6px 30px #090b0fa0;
}
.hero-line, .hero-line-text { display: block; }
.hero-line { overflow: clip; overflow-clip-margin: .14em; }
.hero-line-secondary { margin-top: 5px; font-size: .83em; font-weight: 480; color: #d5dbe0; }
.hero h1:focus, .detail h1:focus, .sheet-heading h2:focus { outline: none; }
.primary {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; overflow: clip;
  width: 276px; max-width: 100%; min-height: 60px; padding: 5px 5px 5px 17px;
  border: 1px solid #f4faff; border-radius: 16px 10px 16px 10px;
  background: linear-gradient(158deg, #f3f8ff, #cbd9e7 62%, #b9cce0); color: #101e30;
  box-shadow: inset 0 1px 0 #fff, 0 8px 26px #03080da3;
  font-size: 17px; font-weight: 760; transition: border-color .2s, transform .2s var(--ease-out);
}
.primary-glint, .project-glint, .dock-arrival { position: absolute; pointer-events: none; opacity: 0; }
.primary-glint {
  inset: 0; border-radius: inherit;
  background: linear-gradient(114deg, transparent 20%, #fff0 36%, #fff9 49%, #fff0 62%, transparent 80%);
}
.primary:hover { border-color: #eff8ff; }
.primary:active { transform: scale(.975); }
.primary-arrow {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px 6px 10px 6px; color: #edf7ff;
  background: linear-gradient(151deg, #2d4864, #132131); box-shadow: inset 0 1px 0 #d6ebff52;
}
.primary .icon { width: 22px; height: 22px; transition: transform .2s var(--ease-out); }
.primary:hover .icon, .primary:focus-visible .icon { transform: translateX(3px); }
.home-section { margin-top: 23px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.section-trace { order: 1; flex: 1; height: 1px; transform-origin: left; background: linear-gradient(90deg, #a5c3df69, #b0cee51a); }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(23px, 5.8vw, 32px); line-height: 1.12; font-weight: 710; letter-spacing: -.034em; }
.section-heading a { order: 2; display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 44px; min-height: 44px; font-size: 13px; color: var(--steel); }
.section-heading a:hover { color: var(--paper); }
.section-heading .icon { width: 15px; height: 15px; }
[data-entry-pending]:not(:focus-within) { opacity: .15; }
.project-grid { display: grid; gap: 10px; }
.project {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  gap: 8px; min-height: 60px; min-width: 0; padding: 10px 13px;
  font-size: 14px; font-weight: 630; transition: background .2s, border-color .2s, transform .22s var(--ease-out);
}
.project:hover { background-color: #222833; }
.project:active { transform: scale(.984); }
.project-name { display: flex; align-items: center; gap: 8px; }
.project-community {
  isolation: isolate; overflow: hidden; align-items: flex-end; min-height: 132px; padding: 14px;
  border: 1px solid #a5bdd054; border-radius: 20px 8px 20px 8px;
  background: linear-gradient(115deg, #161c23, #344353);
  box-shadow: 0 12px 29px #03060b64;
  font-family: var(--display); font-size: clamp(22px, 6vw, 29px); font-weight: 700; letter-spacing: -.035em;
}
.project-glint {
  inset: 0; z-index: -1;
  background: linear-gradient(121deg, transparent 30%, #96c8fa45 52%, #dcefff6e 54%, transparent 68%);
}
.project-frame {
  position: absolute; pointer-events: none; top: 11px; left: 12px; width: 26px; height: 14px;
  border: 1px solid #c8d8e7a1; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0;
  transform-origin: top left;
}
.project-community:hover { border-color: #c8d3dd80; }
.project-community::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #090b0fec, transparent 77%), linear-gradient(90deg, #10151ca8, transparent 84%); }
.project-cover { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; filter: saturate(.58); }
.project-link-icon { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e5ebf14a; border-radius: 10px 5px 10px 5px; background: #0c1017d9; }
.project-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); gap: 9px; }
.project-links > a { outline-offset: -4px; border: 1px solid #9db4cc4f; }
.project-links > a:hover { border-color: #d0deebad; }
.project-channel {
  border-radius: 12px 5px 12px 5px;
  background: linear-gradient(139deg, #354657, #1c2630 55%, #12181f);
  box-shadow: inset 0 1px 0 #d4e4f34a;
}
.project-forum {
  border-radius: 5px 12px 5px 12px;
  background: repeating-linear-gradient(0deg, #cfdeee07 0 1px, transparent 1px 7px),
              linear-gradient(123deg, #1b2734, #10151c 70%);
}
.project-links .project-name { gap: 7px; }
.project-links .project-icon { width: 19px; height: 19px; }
.project-icon { color: var(--steel); width: 21px; height: 21px; }
.project-arrow { width: 15px; height: 15px; color: var(--steel); transition: transform .22s var(--ease-out); }
.project:hover .project-arrow { transform: translate(2px, -2px); }
.news { margin-top: 33px; }
.news .section-heading { margin-bottom: 10px; }
.news-story {
  position: relative; isolation: isolate; display: grid;
  min-height: 68px; align-items: center; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px;
  padding: 8px 12px 8px 14px; border: 1px solid #b0c0d233; border-radius: 6px 13px 13px 6px;
  color: var(--paper); font-weight: 610; font-size: 14px;
  background: linear-gradient(104deg, #222a35e8, #151a22ef 75%);
}
.news-story:hover { border-color: #b0c0d266; background: #242c37; }
.news-spine {
  position: absolute; inset: 11px auto 11px 0; width: 2px; transform-origin: top;
  background: linear-gradient(#d1e4f8, #7c98af50);
}
.news-story .icon { width: 17px; height: 17px; }
.news-icon {
  display: grid; place-items: center; width: 34px; height: 38px; color: #e0eaf3;
  border: 1px solid #aabcce55; border-radius: 6px 6px 6px 2px;
  background: linear-gradient(145deg, #3b4a5a, #1a222c 70%);
}

.dock {
  width: min(calc(100% - 22px), 510px); height: var(--dock-height);
  position: fixed; bottom: var(--dock-bottom); left: 50%; z-index: 3;
  transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  padding: 5px; border: 1px solid var(--glass-edge); border-radius: 22px 22px 17px 17px;
  background: linear-gradient(178deg, #324558ed, #152131f6 32%, #0b111af9 94%);
  box-shadow: inset 0 1px 0 #e8f4ff4d, inset 0 -1px 0 #45647f50, 0 10px 27px #000a;
  touch-action: pan-y; user-select: none; isolation: isolate; overflow: hidden;
}
.dock-arrival {
  inset: 0; border-radius: inherit;
  background: linear-gradient(108deg, transparent 12%, #abcff21c 39%, #cce6ff79 51%, #cae7ff10 64%, transparent 84%);
}
.dock::before {
  content: ""; position: absolute; inset: 0 15px auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #d1eaff88 36%, #a2bcdb27 70%, transparent);
}
.dock-lens {
  position: absolute; inset: 5px auto 5px 0; z-index: -1; pointer-events: none;
  width: var(--lens-w, 20%); border: 1px solid #afd5fba8; border-radius: 17px 17px 12px 12px;
  background: radial-gradient(ellipse at var(--lens-light, 50%) -3%, #ebf6ffaf, #88b5e544 42%, transparent 75%),
              linear-gradient(159deg, #46617f, #1c2c3e 72%, #111c29);
  box-shadow: inset 0 1px 1px #f4f9ff73, inset 0 -3px 10px #112036ad, 0 3px 12px #010710a3;
  transform: translate3d(var(--lens-x, 5px), 0, 0) scale(var(--lens-scale, 1));
  transform-origin: center center;
}
.dock-tab { position: relative; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding-bottom: 2px; border-radius: 13px; outline-offset: -3px; color: #b8cadd; letter-spacing: -.015em; font-size: clamp(10px, 2.8vw, 12px); font-weight: 620; line-height: 1; -webkit-tap-highlight-color: transparent; transition: color .18s; }
.dock-tab::after { content: ""; position: absolute; bottom: 3px; left: calc(50% - 7px); width: 14px; height: 2px; border-radius: 1px; background: #c0e5ff; box-shadow: 0 0 7px #a0d6ffab; opacity: 0; }
.dock-tab[aria-current="page"]::after { opacity: 1; }
.dock-tab[aria-current="page"], .dock-tab[data-preview], .dock-tab:hover { color: #f7fcff; }
.dock-icon { width: 24px; height: 24px; transition: transform .26s cubic-bezier(.19, 1, .22, 1), color .18s, filter .18s; }
.dock-tab[aria-current="page"] .dock-icon, .dock-tab[data-preview] .dock-icon { --glyph-opacity: .28; color: #f3faff; filter: drop-shadow(0 2px 4px #88baf682); transform: translateY(-1px) scale(1.12); }
.dock-tab:active .dock-icon { transform: translateY(-1px) scale(1.22); }

.detail { max-width: 680px; padding-top: clamp(34px, 11dvh, 100px); }
.detail-mark { display: block; width: 57px; height: 57px; margin-bottom: 20px; color: var(--steel); }
.detail-back { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--steel); margin-bottom: 20px; }
.detail-back .icon { transform: rotate(180deg); width: 17px; }
.detail p { margin: 0 0 20px; max-width: 42ch; font-size: 16px; line-height: 1.55; color: var(--muted); }
.detail-links { display: grid; gap: 10px; }
.detail-links a, .detail-links details { display: block; padding: 14px 16px; border: 1px solid var(--edge); background: var(--panel); border-radius: var(--card-radius); font-size: 15px; }
.detail-links a:hover, .menu-sheet > a:hover { background: #252c35; }
.detail-links summary { cursor: pointer; }
.detail-links details p { margin: 10px 0 0; font-size: 14px; }

.menu-sheet {
  position: fixed; inset: auto 0 max(8px, env(safe-area-inset-bottom)); margin: 0 auto; width: min(calc(100% - 16px), 510px);
  max-width: none; max-height: calc(100dvh - max(8px, env(safe-area-inset-bottom)) - 18px); overflow: auto;
  padding: 14px 15px 15px; border: 1px solid var(--glass-edge); border-radius: 22px 22px 17px 17px;
  background: radial-gradient(ellipse at 98% 0, #38536d, transparent 65%), var(--glass-dark); color: var(--paper);
  box-shadow: inset 0 1px 0 #e5f2ff5c, 0 14px 45px #0009;
}
.menu-sheet[open] { animation: sheet-in .19s ease-out; overscroll-behavior: contain; }
.menu-sheet::backdrop { background: #02060bca; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-inline: 3px; }
.sheet-heading h2 { margin: 0; font: 730 28px var(--display); letter-spacing: -.035em; }
.sheet-heading .round-control { border: 0; border-radius: 13px 8px 13px 8px; }
.sheet-heading .round-control:focus-visible { outline-color: var(--glass-metal); }
.menu-sheet > a {
  display: grid; grid-template-columns: 36px 1fr 17px; gap: 10px; align-items: center; min-height: 50px;
  padding-inline: 7px 11px; margin-block: 4px; border: 1px solid #a9c7e92a; border-radius: 12px;
  background: #142130b3;
}
.sheet-icon { display: grid; place-items: center; height: 34px; border-radius: 8px; background: #92bde51c; box-shadow: inset 0 1px 0 #cfe7ff2a; }
.menu-sheet > a .icon { width: 17px; height: 17px; color: var(--steel); }
@keyframes sheet-in { from { opacity: .8; } to { opacity: 1; } }

@media (min-width: 620px) {
  :root { --masthead-height: 82px; --hero-height: clamp(455px, 58svh, 660px); }
  .scene-poster { object-position: 62% 54%; }
  .scene-shade {
    background: linear-gradient(90deg, #090b0fdf 0%, #090b0f28 48%, transparent 74%),
                linear-gradient(180deg, #090b0f2e, transparent 37%, #090b0f2e 72%, var(--ink) 100%);
  }
  .hero { align-items: center; padding-bottom: 45px; }
  .hero h1, .detail h1 { font-size: clamp(60px, 8vw, 100px); margin-bottom: 29px; }
  .hero-line-secondary { font-size: .8em; }
  .project-grid { grid-template-columns: 1.55fr 1fr; gap: 12px; }
  .project-community { min-height: 186px; padding: 20px; }
  .project-link-icon { top: 15px; right: 15px; width: 36px; height: 36px; }
  .project-links { grid-template-columns: 1fr; grid-template-rows: .85fr 1.15fr; }
  .project-links a { padding-inline: 19px; font-size: 15px; }
  .home-section { margin-top: 26px; }
  .news { margin-top: 37px; }
  .dock { bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (min-width: 620px) and (max-width: 1000px) {
  :root { --hero-height: clamp(450px, 54svh, 570px); }
  .scene-poster { object-position: right 54%; }
}
@media (max-width: 619px) {
  .hero-copy { width: 100%; }
  .primary { width: min(100%, 360px); }
  .scene-frame {
    bottom: auto; aspect-ratio: 660 / 504; max-height: min(425px, 54svh);
    mask-image: linear-gradient(#000 0 73%, #000c 86%, transparent 100%);
  }
  .scene-poster { object-position: center 53%; }
  .scene-shade { background: linear-gradient(180deg, #090b0faa, transparent 20% 60%, #090b0f32 75%, var(--ink) 100%); }
}
@media (max-width: 619px) and (max-height: 720px) {
  :root { --hero-height: clamp(386px, 60svh, 416px); }
  .scene-frame { top: -13px; }
  .hero { padding-bottom: 21px; }
  .hero h1 { font-size: clamp(44px, 12.1vw, 51px); margin-bottom: 14px; }
  .project-community { min-height: 116px; }
}
@media (max-width: 350px) {
  .menu-trigger { width: 44px; height: 44px; }
  .dock-icon { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-entry-pending]:not(:focus-within) { opacity: 1; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
