/* ==========================================================================
   mitachi design system
   deep slate · aqua · one signature per page
   ========================================================================== */

@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ---------- tokens ---------- */

:root {
  --hdr-h: 74px;
  --bg-deep:    #191A20;
  --bg:         #202128;
  --bg-2:       #24262E;
  --surface:    #282A34;
  --surface-2:  #30333F;
  --surface-3:  #383C4A;

  --line:       #343746;
  --line-soft:  #2B2E3A;

  --text:       #EEEFF4;
  --text-2:     #AEB3C4;
  --text-3:     #7F8598;

  --aqua:       #55D2C7;
  --aqua-lt:    #7BE2D9;
  --aqua-dk:    #3BB5AA;
  --on-aqua:    #042521;
  --aqua-06:    rgba(85, 210, 199, 0.06);
  --aqua-12:    rgba(85, 210, 199, 0.12);
  --aqua-20:    rgba(85, 210, 199, 0.20);
  --aqua-35:    rgba(85, 210, 199, 0.35);

  /* live/availability status, deliberately not the brand aqua, so it reads as
     a state rather than as decoration */
  --live:       #40DBAC;
  --live-14:    rgba(64, 219, 172, 0.14);
  --live-40:    rgba(64, 219, 172, 0.40);

  --grad-aqua:  linear-gradient(135deg, #7BE2D9 0%, #55D2C7 45%, #3BB5AA 100%);
  --grad-text:  linear-gradient(100deg, #EEEFF4 0%, #A9EFE7 45%, #55D2C7 100%);

  /* per-page second hue, only ever used in ambient glow */
  --hue-2: rgba(96, 140, 255, 0.18);

  --ff:      "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow:    0 18px 48px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 34px 80px -32px rgba(0, 0, 0, 0.9);
  --glow:      0 0 0 1px var(--aqua-20), 0 22px 60px -26px var(--aqua-35);

  --shell: 1200px;
  --gut:   clamp(20px, 5vw, 48px);
  --ease:  cubic-bezier(.2, .7, .3, 1);
}

body[data-page="files"] { --hue-2: rgba(80, 170, 255, 0.16); }
body[data-page="work"]  { --hue-2: rgba(150, 120, 255, 0.18); }
body[data-page="log"]   { --hue-2: rgba(140, 220, 120, 0.14); }

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
[hidden] { display: none !important; }

::selection { background: var(--aqua); color: var(--on-aqua); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

/* ---------- themed scrollbar ---------- */

html { scrollbar-width: thin; scrollbar-color: var(--aqua-dk) var(--bg-deep); }
::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--aqua) 0%, var(--aqua-dk) 100%);
  border-radius: 999px; border: 3px solid var(--bg-deep); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--aqua-lt) 0%, var(--aqua) 100%); background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: var(--bg-deep); }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  margin: 0; font-weight: 800; line-height: 1.08;
  letter-spacing: -0.034em; text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); letter-spacing: -0.043em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.28rem, 2.1vw, 1.6rem); letter-spacing: -0.026em; }
h4 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.62; color: var(--text-2); max-width: 56ch;
}
.dim { color: var(--text-2); }
.dimmer { color: var(--text-3); }

.gtext {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
code, .mono { font-family: var(--ff-mono); font-size: 0.88em; letter-spacing: -0.01em; }

/* ---------- layout ---------- */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 840px; margin-inline: auto; }

.sec { padding-block: clamp(60px, 7vw, 100px); position: relative; overflow: hidden; }
.sec--tight { padding-block: clamp(38px, 4.4vw, 60px); position: relative; overflow: hidden; }
.sec--deep { background: var(--bg-deep); }
.sec > .shell { position: relative; z-index: 2; }

/* ambient glow */
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0; opacity: .55;
  animation: drift 22s ease-in-out infinite;
}
.glow--aqua { background: radial-gradient(circle, rgba(85,210,199,.34) 0%, transparent 70%); }
.glow--two  { background: radial-gradient(circle, var(--hue-2) 0%, transparent 70%); animation-duration: 30s; animation-direction: reverse; }
@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33%      { transform: translate3d(46px,-34px,0) scale(1.1); }
  66%      { transform: translate3d(-34px,26px,0) scale(.93); }
}

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  background: var(--aqua-06); border: 1px solid var(--aqua-20);
  color: var(--aqua); font-size: 0.82rem; font-weight: 600; margin-bottom: 24px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--aqua);
  box-shadow: 0 0 0 4px var(--aqua-20); animation: pulse 2.6s ease-in-out infinite; flex: none;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(85,210,199,.04); } }

.eyebrow--live {
  background: rgba(18, 24, 22, 0.72);
  border-color: var(--live-40);
  color: var(--live);
  backdrop-filter: blur(8px);
}
.eyebrow--live .dot {
  background: var(--live); box-shadow: 0 0 0 4px var(--live-14);
  animation: pulselive 2.6s ease-in-out infinite;
}
@keyframes pulselive { 50% { box-shadow: 0 0 0 8px rgba(64,219,172,.05); } }

.sechead { margin-bottom: clamp(32px, 4vw, 52px); }
.sechead .lede { margin-top: 14px; }
.sechead--mid { text-align: center; }
.sechead--mid .lede { margin-inline: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; letter-spacing: -0.012em;
  cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s, background .22s, border-color .22s, color .22s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-aqua); color: var(--on-aqua);
  box-shadow: 0 12px 30px -12px var(--aqua-35);
}
.btn--primary:hover { box-shadow: 0 20px 46px -14px rgba(85,210,199,.55); }

.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--surface-3); }

.btn--lg { padding: 18px 34px; font-size: 1.06rem; }
.btn--wide { width: 100%; }

.btnrow { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow, .tlink:hover .arrow { transform: translateX(4px); }

.tlink { display: inline-flex; align-items: center; gap: 8px; color: var(--aqua); font-weight: 700; }
.tlink:hover { color: var(--aqua-lt); }
.tlink svg { width: 17px; height: 17px; transition: transform .22s; }

/* ---------- header ---------- */

.hdr {
  position: sticky; top: 0; z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, transform .34s var(--ease);
}
body[data-swap="true"] .hdr { transform: translateY(-100%); }
.hdr[data-stuck="true"] {
  background: rgba(32, 33, 40, 0.93);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom-color: var(--line-soft);
}
.hdr__in { display: flex; align-items: center; gap: 20px; height: var(--hdr-h); }
.hdr__prog {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--grad-aqua); border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px var(--aqua-35);
}

.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.14rem; letter-spacing: -0.03em; }
.logo__badge {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: block; object-fit: contain;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease);
}
.logo:hover .logo__badge { transform: rotate(-8deg) scale(1.06); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav a {
  position: relative; padding: 9px 15px; border-radius: 999px;
  font-size: 0.97rem; font-weight: 600; color: var(--text-2);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--aqua); background: var(--aqua-06); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px; background: var(--aqua);
}

.hdr__cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr__cta .btn { padding: 11px 20px; font-size: 0.95rem; }

.burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); place-items: center; cursor: pointer;
}
.burger svg { width: 19px; height: 19px; }

@media (max-width: 940px) {
  .burger { display: grid; }
  .hdr__cta { margin-left: auto; }
  .hdr__cta .btn--ghost { display: none; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    padding: 14px var(--gut) 22px;
    background: rgba(25, 26, 32, 0.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: 14px 16px; border-radius: var(--r-sm); font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
}

/* ==========================================================================
   HERO: one signature per page
   ========================================================================== */

.hero { position: relative; overflow: hidden; padding-block: clamp(52px, 7vw, 92px) clamp(38px, 4.5vw, 62px); }
.hero > .shell { position: relative; z-index: 2; }

/* texture layer, different per page */
.tex { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* artwork behind the home hero, faded out at the foot so the section below
   does not start on a hard edge */
.heroart {
  position: absolute; inset: -70px 0 -40px; width: 100%; height: calc(100% + 110px);
  object-fit: cover; object-position: 50% 34%;
  opacity: .36; z-index: 0; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0,0,0,.4) 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0,0,0,.4) 74%, transparent 100%);
}
/* the text sits left, so keep the archer in frame rather than the empty middle */
@media (max-width: 900px) { .heroart { opacity: .26; object-position: 74% 34%; } }

body[data-page="work"] .tex {
  background-image: radial-gradient(rgba(255,255,255,.10) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 78% at 50% 30%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse 70% 78% at 50% 30%, #000 0%, transparent 74%);
}
body[data-page="log"] .tex {
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

/* -- home: asymmetric split -- */
.hero__split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(36px, 5vw, 68px); align-items: center; }
.hero__split h1 { font-size: clamp(2.3rem, 4.2vw, 3.35rem); margin-bottom: 22px; }
@media (max-width: 1000px) { .hero__split { grid-template-columns: 1fr; gap: 40px; } }

.hero__note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--text-3); font-size: 0.95rem; }
.hero__note svg { width: 17px; height: 17px; color: var(--aqua); flex: none; }
.hero .btnrow { margin-top: 34px; }
@media (max-width: 560px) { .hero .btnrow { flex-direction: column; align-items: stretch; } .hero .btnrow .btn { width: 100%; } }

.card3d {
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 26px;
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-13px); } }
.card3d__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.tagpill { font-family: var(--ff-mono); font-size: 0.74rem; padding: 5px 11px; border-radius: 999px; background: var(--aqua-12); color: var(--aqua); }
.livedot {
  width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block;
  background: var(--aqua); box-shadow: 0 0 0 3px var(--aqua-20);
  animation: pulse 2.6s ease-in-out infinite;
}
.card3d__rows { display: grid; gap: 10px; }
.crow {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--r-sm); background: rgba(255,255,255,.025);
  border: 1px solid var(--line-soft); font-size: 0.97rem; font-weight: 600;
}
.crow .tick { width: 21px; height: 21px; border-radius: 50%; background: var(--aqua-12); color: var(--aqua); display: grid; place-items: center; flex: none; }
.crow .tick svg { width: 12px; height: 12px; }
.crow span:last-child { color: var(--text-3); margin-left: auto; font-weight: 500; font-size: .88rem; }

/* -- home: short and personal -- */
.hero--me h1 { font-size: clamp(3.4rem, 9vw, 6.6rem); letter-spacing: -.055em; margin-bottom: 22px; }
.hero--me .lede { font-size: clamp(1.16rem, 1.9vw, 1.42rem); max-width: 44ch; line-height: 1.55; color: var(--text-2); }
.hero--me .lede b { color: var(--text); font-weight: 600; }

/* what I do */
.tasks { display: grid; }
.task {
  display: grid; grid-template-columns: 48px minmax(0, 236px) minmax(0, 1fr);
  gap: 0 24px; align-items: baseline;
  padding: 21px 18px 21px 0; border-bottom: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: background .22s var(--ease), padding-left .22s var(--ease);
}
.task:first-child { border-top: 1px solid var(--line-soft); }
.task:hover { background: rgba(255,255,255,.03); padding-left: 16px; }
.task__n { font-family: var(--ff-mono); font-size: .8rem; color: var(--aqua); }
.task__t { font-size: 1.13rem; font-weight: 700; letter-spacing: -.022em; }
.task__d { color: var(--text-2); font-size: .99rem; line-height: 1.55; }
@media (max-width: 760px) {
  .task { grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; }
  .task__d { grid-column: 2; margin-top: 6px; }
}

/* the one bright thing */
.drop {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
  max-width: 780px; margin-inline: auto;
  padding: 26px 32px; border-radius: var(--r-xl);
  background:
    linear-gradient(140deg, rgba(85,210,199,.16) 0%, rgba(85,210,199,.02) 58%),
    var(--surface-2);
  border: 1px solid var(--aqua-35);
  box-shadow: 0 0 0 1px var(--aqua-20), 0 28px 74px -30px rgba(85,210,199,.6);
  transition: transform .32s var(--ease), box-shadow .32s;
}
.drop::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 60%, var(--aqua-lt) 76%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: rot 6s linear infinite;
}
.drop:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--aqua-35), 0 38px 96px -30px rgba(85,210,199,.75); }
.drop__ico {
  width: 56px; height: 56px; border-radius: 17px; flex: none;
  background: var(--grad-aqua); color: var(--on-aqua);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -12px var(--aqua-35);
}
.drop__ico svg { width: 27px; height: 27px; }
.drop b { display: block; font-size: 1.28rem; font-weight: 800; letter-spacing: -.032em; line-height: 1.2; }
.drop em { display: block; font-style: normal; color: var(--text-2); font-size: .97rem; margin-top: 5px; }
.drop__go { display: inline-flex; align-items: center; gap: 9px; color: var(--aqua); font-weight: 700; white-space: nowrap; }
.drop__go svg { width: 18px; height: 18px; transition: transform .22s var(--ease); }
.drop:hover .drop__go svg { transform: translateX(4px); }
@media (max-width: 660px) {
  .drop { grid-template-columns: 1fr; gap: 18px; padding: 26px; text-align: left; }
  .drop__go { justify-self: start; }
}

/* -- serverfiles: centered -- */
.hero--mid { text-align: center; }
.hero--mid h1 { margin-bottom: 20px; }
.hero--mid .lede { margin-inline: auto; }
.hero--mid .btnrow { justify-content: center; }
.hero--mid .hero__note { justify-content: center; }

/* -- services: orbit -- */
.orbit {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 34%, #000 0%, transparent 82%);
  mask-image: radial-gradient(ellipse 62% 60% at 50% 34%, #000 0%, transparent 82%);
}
.orbit svg { width: min(900px, 140%); height: auto; overflow: visible; }
.orbit .r { fill: none; stroke: var(--aqua); stroke-opacity: .18; transform-origin: 300px 300px; }
.orbit .r1 { animation: spin 46s linear infinite; }
.orbit .r2 { animation: spin 68s linear infinite reverse; }
.orbit .r3 { animation: spin 96s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -- changelog: the current build -- */
.hero__log h1 { margin-bottom: 20px; }
.hero__log { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .hero__log { grid-template-columns: 1fr; } .build { display: none; } }

.build {
  border-radius: var(--r-lg); padding: 28px 40px; text-align: center;
  background: var(--surface); border: 1px solid var(--aqua-20); box-shadow: var(--glow);
}
.build__l { display: block; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); }
.build__v {
  display: block; font-size: clamp(2.8rem, 4.6vw, 4rem); font-weight: 800; letter-spacing: -.05em;
  line-height: 1.08; margin: 10px 0 6px;
  background: var(--grad-aqua); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.build__d { display: block; color: var(--text-2); font-size: .95rem; }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 26px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--aqua-20); background: var(--surface-2); }
.stat__n {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  background: var(--grad-aqua); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__l { margin-top: 10px; color: var(--text-2); font-size: 0.97rem; line-height: 1.45; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 660px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 28px 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--aqua-20); box-shadow: var(--shadow); }
.card h3, .card h4 { margin-bottom: 9px; }
.card p { color: var(--text-2); font-size: 1rem; margin: 0; }

.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--aqua-12); color: var(--aqua); margin-bottom: 16px; }
.ico svg { width: 22px; height: 22px; }

/* mouse spotlight */
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(85,210,199,.11), transparent 62%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }

/* included */
.inc { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 980px) { .inc { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 540px) { .inc { grid-template-columns: 1fr; } }
.inc__i {
  position: relative; padding: 24px 22px; border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.inc__i:hover { transform: translateY(-4px); border-color: var(--aqua-20); background: var(--surface-2); }
.inc__i .ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 13px; }
.inc__i .ico svg { width: 19px; height: 19px; }
.inc__i h4 { font-size: 1.03rem; margin-bottom: 4px; }
.inc__i p { color: var(--text-3); font-size: 0.93rem; line-height: 1.5; margin: 0; }

/* panel */
.panel {
  border-radius: var(--r-xl); position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); padding: clamp(30px, 4.2vw, 56px);
}
.panel::before {
  content: ""; position: absolute; top: -140px; right: -110px; width: 380px; height: 380px;
  background: radial-gradient(circle, var(--aqua-20) 0%, transparent 68%); filter: blur(30px); pointer-events: none;
}
.panel > * { position: relative; }
.panel--split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .panel--split { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(28px, 3.2vw, 38px); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.plan:hover { transform: translateY(-6px); }

.plan--hero {
  background:
    linear-gradient(155deg, rgba(85,210,199,.10) 0%, rgba(85,210,199,0) 55%),
    linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 100%);
  border-color: var(--aqua-35); box-shadow: var(--glow);
}
.plan--hero::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 62%, var(--aqua-lt) 76%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: rot 7s linear infinite;
}
@keyframes rot { to { --a: 360deg; } }

.plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 2;
  padding: 6px 18px; border-radius: 999px; background: var(--grad-aqua); color: var(--on-aqua);
  font-size: 0.79rem; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 24px -10px var(--aqua-35);
}
.plan__name { font-size: 1.04rem; font-weight: 700; color: var(--aqua); margin-bottom: 5px; }
.plan__tag { color: var(--text-3); font-size: 0.97rem; margin-bottom: 24px; }
.plan__price { display: flex; align-items: flex-start; gap: 4px; line-height: 1; }
.plan__price .cur { font-size: 1.5rem; font-weight: 700; color: var(--text-2); margin-top: 8px; }
.plan__price .amt { font-size: clamp(3.2rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.05em; }
.plan__once { color: var(--text-3); font-size: 0.94rem; margin-top: 9px; }
.plan__list { list-style: none; margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 12px; }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.99rem; color: var(--text-2); line-height: 1.48; }
.plan__list li b { color: var(--text); font-weight: 700; }
.plan__list .tick { width: 21px; height: 21px; border-radius: 50%; flex: none; margin-top: 2px; background: var(--aqua-12); color: var(--aqua); display: grid; place-items: center; }
.plan--hero .plan__list .tick { background: var(--aqua); color: var(--on-aqua); }
.plan__list .tick svg { width: 12px; height: 12px; }
.plan__foot { margin-top: auto; padding-top: 30px; }

/* ---------- changelog timeline ---------- */

.rel {
  position: relative; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line-soft);
  padding: clamp(24px, 3.2vw, 38px); margin-bottom: 18px;
  transition: border-color .3s, box-shadow .3s, padding .22s var(--ease);
}
.rel:not([open]) { padding: 15px clamp(20px, 2.6vw, 28px); margin-bottom: 9px; }
.rel:not([open]) .rel__hd { margin-bottom: 0; gap: 11px; }
.rel:not([open]) .rel__v { font-size: 1.42rem; }
.rel:not([open]) .rel__live { padding: 3px 10px; font-size: .7rem; }
.rel:not([open]) .rel__count { padding: 4px 11px; font-size: .78rem; }
.rel:not([open]) h3 { font-size: 1.02rem; margin-top: 3px; }
.rel:hover { border-color: var(--aqua-20); box-shadow: var(--shadow); }
.rel--top { border-color: var(--aqua-35); box-shadow: var(--glow); }

.rel__hd { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-bottom: 7px; }
.rel__v { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: var(--grad-aqua); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rel__date { color: var(--text-3); font-size: 0.94rem; }
.rel__live { padding: 5px 13px; border-radius: 999px; background: var(--aqua-12); color: var(--aqua); font-size: 0.77rem; font-weight: 800; }
.rel__count { margin-left: auto; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 0.84rem; font-weight: 700; white-space: nowrap; }
.rel h3 { margin-bottom: 0; }
.rel > summary { list-style: none; cursor: pointer; }
.rel > summary::-webkit-details-marker { display: none; }
.rel > summary:hover .rel__v { opacity: .85; }
.rel__chev {
  margin-left: 12px; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.rel[open] .rel__chev { transform: rotate(-135deg); }
.rel__b { padding-top: 20px; }
.rel__sum { color: var(--text-2); margin-bottom: 18px; max-width: 72ch; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.chg { list-style: none; margin: 0; padding: 0; display: grid; }
.chg li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 12px; align-items: start;
  padding: 7px 0; border-top: 1px solid var(--line-soft);
  color: var(--text-2); font-size: .96rem; line-height: 1.5;
  transition: color .2s;
}
.chg li:hover { color: var(--text); }

.chg__i { width: 20px; height: 20px; display: grid; place-items: center; margin-top: 2px; }
.chg__i svg { width: 14px; height: 14px; stroke-width: 2.1; }
.chg__i--huge  { color: #FF9B7A; }
.chg__i--feat  { color: var(--aqua); }
.chg__i--fix   { color: #93B4FF; }
.chg__i--rem   { color: var(--text-3); }

.chg code, .rel__sum code {
  font-family: var(--ff-mono); font-size: .855em;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(255,255,255,.065); color: var(--text);
  border: 1px solid var(--line-soft);
  word-break: break-word;
}
.chg b, .rel__sum b { color: var(--text); font-weight: 700; }

.chg__more { margin-top: 16px; }

/* ---------- process rail ---------- */

.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.rail::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px;
  background: linear-gradient(90deg, var(--aqua-35), var(--line));
}
.rail__i { text-align: center; position: relative; }
.rail__n {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--bg); border: 2px solid var(--aqua-35); color: var(--aqua);
  font-weight: 800; font-size: 1.05rem;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.rail__i:hover .rail__n { transform: translateY(-4px) scale(1.06); background: var(--aqua); color: var(--on-aqua); box-shadow: 0 12px 30px -10px var(--aqua-35); }
.rail__i h4 { margin-bottom: 7px; }
.rail__i p { color: var(--text-3); font-size: 0.94rem; margin: 0; }
@media (max-width: 900px) { .rail { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; } .rail::before { display: none; } }
@media (max-width: 520px) { .rail { grid-template-columns: 1fr; } }

/* ---------- search ---------- */

.searchbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.sfield { position: relative; flex: 1 1 300px; min-width: 240px; }
.sfield input {
  width: 100%; font: inherit; font-size: 1rem; padding: 15px 18px 15px 48px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.sfield input::placeholder { color: var(--text-3); }
.sfield input:focus { outline: none; border-color: var(--aqua-35); background: var(--surface-2); box-shadow: 0 0 0 4px var(--aqua-06); }
.sfield svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--text-3); pointer-events: none; }

.hits { display: grid; }
.hit {
  display: grid; grid-template-columns: minmax(0, 206px) minmax(0, 1fr); gap: 6px 22px;
  padding: 15px 4px; border-top: 1px solid var(--line-soft);
  transition: background .2s;
}
.hit:hover { background: rgba(255,255,255,.022); }

.docs { display: grid; gap: 12px; }
.doc { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); transition: border-color .25s; }
.doc[open] { border-color: var(--aqua-20); }
.doc > summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 58px 20px 24px; display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  font-size: 1.06rem; font-weight: 700; letter-spacing: -.018em;
}
.doc > summary::-webkit-details-marker { display: none; }
.doc > summary::after {
  content: ""; position: absolute; right: 24px; top: 25px; width: 9px; height: 9px;
  border-right: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.doc[open] > summary::after { transform: rotate(-135deg); }
.doc__src { margin-left: auto; font-family: var(--ff-mono); font-size: .74rem; color: var(--text-3); font-weight: 400; }
.doc__b { padding: 0 24px 14px; }
.hit__id { font-family: var(--ff-mono); font-size: 0.89rem; color: var(--aqua); word-break: break-all; }
.hit__f { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.hit__f span { font-family: var(--ff-mono); font-size: 0.74rem; color: var(--text-3); background: var(--bg-2); border: 1px solid var(--line-soft); padding: 3px 8px; border-radius: 7px; word-break: break-all; }
.hit__t { color: var(--text-2); font-size: 0.98rem; line-height: 1.58; }
.hit__t mark { background: var(--aqua-20); color: var(--text); border-radius: 4px; padding: 0 3px; }
@media (max-width: 720px) { .hit { grid-template-columns: 1fr; } }
.empty { padding: 56px 0; text-align: center; color: var(--text-3); }
.nomatch { margin-left: auto; color: var(--text-3); font-size: 0.91rem; font-weight: 600; white-space: nowrap; }

/* ---------- feature chips ---------- */

.fgroup { margin-bottom: 34px; }
.fgroup__hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.fgroup__hd h3 { margin: 0; }
.fgroup__hd span { color: var(--text-3); font-size: 0.88rem; font-weight: 600; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  font-family: var(--ff-mono); font-size: 0.79rem; padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--text-2);
  transition: all .2s var(--ease); cursor: default;
}
.fchip:hover { border-color: var(--aqua-20); color: var(--aqua); background: var(--surface-2); transform: translateY(-2px); }

/* ---------- faq ---------- */

.faq { display: grid; gap: 11px; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: var(--aqua-20); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 21px 58px 21px 25px; position: relative; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.018em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 23px; top: 25px; width: 20px; height: 20px; border-radius: 50%; background: var(--aqua-12); }
.faq summary::before { content: "+"; position: absolute; right: 28px; top: 21px; color: var(--aqua); font-weight: 700; z-index: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::before { transform: rotate(135deg); }
.faq__a { padding: 0 25px 22px; color: var(--text-2); max-width: 72ch; }

/* ---------- cta ---------- */

.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .lede { margin: 18px auto 0; }
.cta .btnrow { justify-content: center; margin-top: 32px; }

.chan { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.chan a {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 0.96rem;
  transition: all .22s var(--ease);
}
.chan a:hover { color: var(--text); border-color: var(--aqua-20); transform: translateY(-3px); }
.chan svg { width: 18px; height: 18px; color: var(--aqua); }

/* ---------- footer ---------- */

.ftr { background: var(--bg-deep); border-top: 1px solid var(--line-soft); padding-block: 52px 38px; }
.ftr__grid { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); gap: 34px; }
@media (max-width: 820px) { .ftr__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }
@media (max-width: 480px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr p { color: var(--text-3); font-size: 0.96rem; margin-top: 14px; max-width: 32ch; }
.ftr h5 { margin: 0 0 12px; font-size: 0.81rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.ftr__grid a:not(.logo) { display: block; padding: 5px 0; color: var(--text-2); font-size: 0.97rem; transition: color .18s, transform .18s; }
.ftr__grid a:not(.logo):hover { color: var(--aqua); transform: translateX(3px); }
.ftr__end { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-3); font-size: 0.91rem; }

/* ---------- reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal--l { transform: translateX(-30px); }
.js .reveal--r { transform: translateX(30px); }
.js .reveal--s { transform: scale(.955); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.js .reveal.in[style*="--d"] { transition-delay: var(--d); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* ---------- screenshots ---------- */

.shot {
  display: grid;
  grid-template-columns: minmax(0, 268px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.shot + .shot { margin-top: clamp(44px, 6vw, 76px); }
.shot--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 268px); }
.shot--flip .shot__fig { order: 2; }
@media (max-width: 760px) {
  .shot { grid-template-columns: 1fr; gap: 26px; }
  .shot--flip .shot__fig { order: 0; }
}

.shot__fig {
  margin: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--ff-mono); font-size: .76rem; color: var(--text-3);
  background: rgba(255,255,255,.02);
}
.shot__hd svg { width: 15px; height: 15px; color: var(--aqua); flex: none; }
.shot__body { padding: 22px; display: grid; place-items: center; background: #16171D; }

.figrow { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; }
.fig--wide { width: fit-content; max-width: 100%; margin-inline: auto; }
.fig--wide .shot__body { padding: 16px; background: #000; }
.shot__body img { border-radius: 5px; width: auto; max-width: 100%; }

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.notes--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 30px; }
.notes--row li { grid-template-columns: 1fr; gap: 9px; }
.notes--row > li > code { justify-self: start; }
.notes--row span { padding-top: 0; }
@media (max-width: 820px) { .notes--row { grid-template-columns: 1fr; gap: 18px; } }
.notes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.notes > li > code {
  font-family: var(--ff-mono); font-size: .78rem; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px;
  background: var(--aqua-12); color: var(--aqua); border: 1px solid var(--aqua-20);
}
.notes span b { color: var(--text); font-weight: 700; }
.notes span code {
  font-family: var(--ff-mono); font-size: .85em; white-space: nowrap;
  padding: 1px 6px; border-radius: 5px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
}
.notes span { color: var(--text-2); font-size: .99rem; line-height: 1.55; padding-top: 3px; }
@media (max-width: 520px) {
  .notes li { grid-template-columns: 1fr; gap: 6px; }
  .notes > li > code { justify-self: start; }
  .notes span { padding-top: 0; }
}

/* ---------- database tree ---------- */

.dbtree {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 244px) minmax(0, 600px);
  gap: clamp(26px, 6vw, 88px);
  align-items: center;
  justify-content: center;
}
@media (max-width: 980px) {
  .dbtree { grid-template-columns: minmax(0, 600px); justify-content: start; gap: 26px; }
}

.dbtree__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.dbtree__wires path { fill: none; stroke: var(--aqua); stroke-opacity: .5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dbtree__wires circle { fill: var(--aqua); }
@media (max-width: 980px) { .dbtree__wires { display: none; } }

.dbtree__src, .dbtree__out { position: relative; z-index: 1; }
.dbtree__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dbcol { display: grid; gap: 18px; align-content: start; }
@media (max-width: 620px) { .dbtree__out { grid-template-columns: 1fr; } }

.dbnode {
  margin: 0; border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .25s, transform .25s var(--ease);
}
.dbnode:hover { border-color: var(--aqua-20); transform: translateX(3px); }
.dbnode__hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--ff-mono); font-size: .79rem; color: var(--aqua);
}
.dbnode__hd em { font-style: normal; font-family: var(--ff); font-size: .8rem; font-weight: 600; color: var(--text-3); }
.dbnode__b { padding: 14px; background: #16171D; display: grid; place-items: center; }
.dbnode__b img { max-width: 100%; border-radius: 4px; }
.dbnode figcaption {
  padding: 12px 15px 14px; border-top: 1px solid var(--line-soft);
  color: var(--text-2); font-size: .91rem; line-height: 1.5;
}
.dbnode figcaption code {
  font-family: var(--ff-mono); font-size: .85em; white-space: nowrap;
  padding: 1px 6px; border-radius: 5px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
}

.dbsrc__cap { color: var(--text-2); font-size: .95rem; line-height: 1.6; margin-top: 16px; }
.dbsrc__cap + .dbsrc__cap { margin-top: 12px; color: var(--text-3); }
.dbsrc__cap b { color: var(--text); font-weight: 700; }

/* ---------- tool strip ---------- */

.tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tool {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-soft);
  font-weight: 600; font-size: .97rem; color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.tool:hover { transform: translateY(-3px); border-color: var(--aqua-20); background: var(--surface-2); }
.tool img { width: 25px; height: 25px; object-fit: contain; flex: none; }

.ilogos { display: flex; align-items: center; gap: 11px; height: 40px; margin-bottom: 18px; }
.ilogos img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.ilogos span { color: var(--text-3); font-weight: 700; font-size: 1.05rem; }

/* ---------- boards ---------- */

/* a short band: small type on the left, the marks on the right */
.panel.trust { padding: clamp(20px, 2.2vw, 28px) clamp(24px, 3vw, 38px); }
.trust {
  display: grid; grid-template-columns: minmax(0, 30ch) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 48px); align-items: center;
}
.trust__lab {
  display: block; font-family: var(--ff-mono);
  font-size: .71rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 8px;
}
.trust h2 {
  font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.25;
  letter-spacing: -.022em; margin: 0 0 9px;
}
.trust__say p { margin: 0; color: var(--text-2); font-size: .88rem; line-height: 1.55; }
.trust__say b { color: var(--text); font-weight: 700; }

/* square icons and wide wordmarks in one row: cap both axes and let each
   logo settle at whichever limit it hits first, so they match by eye */
.boards {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; gap: clamp(16px, 2.2vw, 30px);
}
.boards__i { display: flex; align-items: center; transition: transform .28s var(--ease), filter .28s; }
.boards__i img {
  display: block; width: auto; height: auto;
  max-height: clamp(46px, 4.6vw, 64px);
  max-width: clamp(112px, 11.5vw, 158px);
  border-radius: 14px;                 /* softens the icons, invisible on the wordmarks */
  filter: saturate(.85) brightness(.94);
  transition: filter .28s;
}
a.boards__i:hover { transform: translateY(-4px); }
a.boards__i:hover img { filter: none; }
a.boards__i:focus-visible { outline: 2px solid var(--aqua); outline-offset: 6px; border-radius: 10px; }

@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .trust__say p { margin-inline: auto; }
  .boards { justify-content: center; }
}

/* ---------- availability ---------- */

.avail {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  max-width: 68ch; margin: 26px auto 0; padding: 14px 20px;
  border-radius: var(--r); background: var(--live-14); border: 1px solid var(--live-40);
  color: var(--text-2); font-size: .95rem; line-height: 1.58;
}
.avail b { color: var(--text); font-weight: 700; }
.avail__dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 8px;
  background: var(--live); box-shadow: 0 0 0 0 var(--live-40);
  animation: pulselive 2.6s var(--ease) infinite;
}

.ftr__live {
  display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 14px;
  color: var(--text-3); font-size: .84rem; font-weight: 600; line-height: 1.5;
}
.ftr__live i {
  width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 6px;
  background: var(--live); box-shadow: 0 0 0 0 var(--live-40);
  animation: pulselive 2.6s var(--ease) infinite;
}
.ftr__live em {
  display: block; margin-top: 1px;
  font-style: normal; font-weight: 500; opacity: .72;
}

/* ---------- callout ---------- */

.callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 15px; align-items: start;
  margin-top: 26px; padding: 19px 23px; border-radius: var(--r);
  background: var(--aqua-06); border: 1px solid var(--aqua-20);
}
.callout > svg { width: 21px; height: 21px; color: var(--aqua); margin-top: 2px; flex: none; }
.callout > img { width: 24px; height: 24px; object-fit: contain; flex: none; }

.callout--mid {
  grid-template-columns: 1fr; justify-items: center; text-align: center;
  max-width: 68ch; margin-inline: auto; gap: 13px; padding: 24px 28px;
}
.callout p { margin: 0; color: var(--text-2); font-size: .99rem; line-height: 1.6; }
.callout b { color: var(--text); font-weight: 700; }

/* ---------- in-game shots ---------- */

.shots {
  display: grid; gap: 14px;
  /* comfortably past 1431px, the widest shot, so it lands at 1:1 */
  max-width: 1449px; margin-inline: auto;
}

.shots__stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  /* one fixed height for every shot: nothing moves under the cursor when you step
     through them, and no shot leaves a hole behind it */
  height: clamp(380px, 64vh, 640px);
  border-radius: var(--r-lg); background: var(--bg-deep);
  border: 1px solid var(--line-soft); overflow: hidden;
}
/* fills whatever a smaller shot leaves around it, instead of dead space */
.shots__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.18);
  filter: blur(48px) saturate(1.35) brightness(.42);
  opacity: .85; pointer-events: none;
}

/* one button holding the shot, so the whole picture is the click target */
.shots__open {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  max-width: 100%; max-height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
}
/* natural size: it only ever shrinks when the viewport is narrower than the shot */
.shots__stage img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  border-radius: 4px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .75);
  animation: shotin .34s var(--ease);
}
.shots__hint {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  background: rgba(25, 26, 32, .84); border: 1px solid var(--line);
  color: var(--text-2); font-size: .82rem; font-weight: 600;
  opacity: 0; transition: opacity .22s, color .2s, border-color .2s;
}
.shots__hint svg { width: 15px; height: 15px; }
.shots__stage:hover .shots__hint { opacity: 1; }
.shots__open:hover .shots__hint { color: var(--aqua); border-color: var(--aqua-35); }
.shots__open:focus-visible .shots__hint { opacity: 1; }
@keyframes shotin { from { opacity: 0; } to { opacity: 1; } }

.shots__nav {
  position: absolute; top: 50%; margin-top: -21px; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(25, 26, 32, .82); border: 1px solid var(--line);
  color: var(--text-2); opacity: 0;
  transition: opacity .22s, color .2s, border-color .2s, background .2s;
}
.shots__stage:hover .shots__nav, .shots__nav:focus-visible { opacity: 1; }
.shots__nav:hover { color: var(--aqua); border-color: var(--aqua-35); background: rgba(25, 26, 32, .95); }
.shots__nav svg { width: 18px; height: 18px; }
.shots__nav--p { left: 14px; }
.shots__nav--n { right: 14px; }

.shots__cap {
  margin: 0; text-align: center; color: var(--text-3);
  font-size: .93rem; min-height: 1.4em;
}

.shots__strip {
  display: flex; gap: 9px; justify-content: center; flex-wrap: wrap;
}
.shots__t {
  width: 98px; height: 62px; padding: 0; flex: none; cursor: pointer;
  border-radius: 9px; overflow: hidden; background: var(--bg-deep);
  border: 1px solid var(--line-soft); opacity: .55;
  transition: opacity .2s, border-color .2s, transform .2s var(--ease);
}
.shots__t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shots__t:hover { opacity: .9; transform: translateY(-2px); }
.shots__t[aria-current="true"] { opacity: 1; border-color: var(--aqua); box-shadow: 0 0 0 3px var(--aqua-12); }

@media (max-width: 760px) { .shots { padding-inline: 16px; } }
@media (max-width: 1100px) {
  .shots__strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .shots__strip::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .shots__t { width: 88px; height: 56px; }
  .shots__nav { opacity: 1; }
}

/* ---------- full size ---------- */

.lbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; overflow: auto;
  background: rgba(12, 13, 17, .95);
  opacity: 0; pointer-events: none; transition: opacity .22s;
  overscroll-behavior: contain;
}
.lbox[data-open="true"] { opacity: 1; pointer-events: auto; }
body[data-lbox="true"] { overflow: hidden; }

/* margin auto rather than align-items, or an oversized shot cannot be
   scrolled back to its own top-left corner */
.lbox__in {
  margin: auto; padding: 68px 24px 46px;
  display: grid; justify-items: center; gap: 14px;
}
.lbox__in img {
  display: block; width: auto; height: auto;   /* 1:1, its real pixels */
  max-width: none; max-height: none;
  border-radius: 8px; border: 1px solid var(--line-soft);
  cursor: default;
}
.lbox[data-fit="true"] .lbox__in img { max-width: 92vw; max-height: 80vh; }
.lbox__in figcaption {
  color: var(--text-3); font-size: .9rem; text-align: center;
  font-variant-numeric: tabular-nums;
}

/* the controls stay put while the shot scrolls under them */
.lbox__x, .lbox__nav, .lbox__fit {
  position: fixed; display: grid; place-items: center; cursor: pointer;
  background: rgba(32, 33, 40, .92); border: 1px solid var(--line);
  color: var(--text-2); transition: color .2s, border-color .2s, background .2s;
}
.lbox__x:hover, .lbox__nav:hover, .lbox__fit:hover { color: var(--aqua); border-color: var(--aqua-35); }
.lbox__x { top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; }
.lbox__x svg { width: 19px; height: 19px; }
.lbox__fit {
  top: 18px; left: 18px; height: 42px; padding: 0 16px; border-radius: 999px;
  gap: 8px; grid-auto-flow: column; font-size: .87rem; font-weight: 700;
  font-family: var(--ff-mono); letter-spacing: .02em;
}
.lbox__nav { top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; }
.lbox__nav svg { width: 20px; height: 20px; }
.lbox__nav--p { left: 18px; }
.lbox__nav--n { right: 18px; }
@media (max-width: 640px) {
  .lbox__nav { width: 40px; height: 40px; margin-top: -20px; }
  .lbox__nav--p { left: 8px; } .lbox__nav--n { right: 8px; }
  .lbox__in { padding: 70px 12px 52px; }
}

/* ---------- page sub-nav ---------- */

.subnav {
  position: sticky; top: 0; z-index: 80;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .8);
}
/* under the header on the way up to it, above it once it has stepped aside */
body[data-swap="true"] .subnav { z-index: 95; }
.subnav__in {
  display: flex; height: 46px; padding-top: 4px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.subnav__in::-webkit-scrollbar { display: none; }

/* no padding of its own, so JS offsets and CSS offsets share one origin */
.subnav__rail { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-inline: auto; }

/* the rail the dots sit on, and the stretch of it you have already walked */
.subnav__rail::before,
.subnav__rail::after {
  content: ""; position: absolute; bottom: 12.5px; height: 2px; border-radius: 2px;
  left: var(--tl, 0px); pointer-events: none;
}
.subnav__rail::before { width: var(--tw, 0px); background: var(--line); }
.subnav__rail::after  { width: var(--pw, 0px); background: var(--aqua); box-shadow: 0 0 10px var(--aqua-35); transition: width .35s var(--ease); }

.subnav a {
  position: relative; z-index: 1;
  padding: 4px 12px 17px; white-space: nowrap;
  font-size: .855rem; font-weight: 600; color: var(--text-3);
  transition: color .2s;
}
.subnav a::after {
  content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-3); border: 2px solid var(--bg);
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.subnav a:hover { color: var(--text); }
.subnav a[data-done="true"] { color: var(--text-2); }
.subnav a[data-done="true"]::after { background: var(--aqua); }
.subnav a[aria-current="true"] { color: var(--aqua); }
.subnav a[aria-current="true"]::after { background: var(--aqua); transform: translateX(-50%) scale(1.28); box-shadow: 0 0 0 4px var(--aqua-12); }

@media (max-width: 640px) { .subnav a { padding: 4px 10px 17px; font-size: .83rem; } .subnav__rail { gap: 10px; } }

/* ---------- back to top ---------- */

.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--line); box-shadow: var(--sh-md);
  cursor: pointer;
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .28s, transform .28s var(--ease), color .2s, border-color .2s, background .2s;
}
.totop[data-show="true"] { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { color: var(--aqua); border-color: var(--aqua-35); background: var(--surface-2); }
.totop svg { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.totop:hover svg { transform: translateY(-2px); }
@media (max-width: 640px) { .totop { right: 14px; bottom: 14px; width: 42px; height: 42px; } }

/* ---------- year markers ---------- */

.yearsep {
  font-family: var(--ff-mono); font-size: .82rem; font-weight: 700; letter-spacing: .09em;
  color: var(--aqua); margin: 34px 0 14px;
}
.yearsep:first-child { margin-top: 0; }

/* ---------- breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: .93rem; font-weight: 600; margin-bottom: 20px; }
.crumb a { color: var(--aqua); display: inline-flex; align-items: center; gap: 7px; }
.crumb a:hover { color: var(--aqua-lt); }
.crumb svg { width: 15px; height: 15px; }

/* ---------- feature accordion ---------- */
.fgrp__note { color: var(--text-3); font-size: .93rem; margin: 0 0 14px; max-width: 70ch; }

/* ---------- timeline year markers ---------- */

/* ---------- misc ---------- */

.skip { position: absolute; left: -9999px; background: var(--aqua); color: var(--on-aqua); padding: 12px 20px; border-radius: 0 0 12px 0; z-index: 200; font-weight: 700; }
.skip:focus { left: 0; top: 0; }
.anchor { scroll-margin-top: 96px; }
body[data-page="files"] .anchor { scroll-margin-top: 72px; }
