:root {
  color-scheme: dark;
  --void: #07090c;
  --void-2: #0c1016;
  --ice: #f3f6f5;
  --ice-dim: #c5d0d6;
  --glacier: #7cfff0;
  --glacier-ink: #042821;
  --amber: #f3c16b;
  --line: rgb(238 246 244 / 10%);
  --line-strong: rgb(238 246 244 / 18%);
  --panel: rgb(12 16 22 / 62%);
  --font-display: Outfit, "IBM Plex Sans", ui-sans-serif, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--void);
  color: var(--ice);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline: none;
}

.skip-link,
.north a:focus-visible,
.jl-site-nav a:focus-visible {
  outline: 2px solid var(--glacier);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--glacier);
  color: var(--glacier-ink);
  font: 600 0.8rem/1 var(--font-body);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared edition bar — keep structure, restyle to North */

.jl-site-nav {
  position: relative;
  z-index: 40;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.5rem max(1.1rem, calc((100% - 92rem) / 2));
  border-bottom: 1px solid var(--line);
  background: #05070a;
  color: var(--ice);
  font: 500 0.66rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jl-site-nav a {
  color: inherit;
  text-decoration: none;
}

.jl-site-nav__brand span {
  margin-left: 0.45rem;
  color: var(--ice-dim);
  font-weight: 400;
}

.jl-site-nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
}

.jl-site-nav__links a {
  padding: 0.42rem 0.6rem;
  border: 1px solid transparent;
}

.jl-site-nav__links a:hover,
.jl-site-nav__links a:focus-visible,
.jl-site-nav__links a[aria-current="page"] {
  border-color: rgb(124 255 240 / 35%);
  color: var(--glacier);
}

.north {
  position: relative;
}

.north.has-cursor,
.north.has-cursor a,
.north.has-cursor button {
  cursor: none;
}

.north-canvas,
.north-vignette,
.north-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.north-canvas {
  z-index: 0;
}

.north-vignette {
  z-index: 1;
  background:
    radial-gradient(70% 55% at 16% 42%, rgb(7 9 12 / 78%) 0%, transparent 72%),
    linear-gradient(180deg, rgb(7 9 12 / 28%) 0%, transparent 18%, transparent 78%, rgb(7 9 12 / 55%) 100%);
}

.north-grain {
  z-index: 2;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.north-cursor {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  pointer-events: none;
  translate: -50% -50%;
}

.north-cursor__ring {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgb(124 255 240 / 55%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.north-cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--glacier);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.north-cursor__readout {
  position: absolute;
  top: 1.5rem;
  left: 0.7rem;
  color: var(--glacier);
  font: 400 0.62rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.north-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.2rem;
  padding: 0.7rem max(1.25rem, calc((100% - 88rem) / 2));
  background: linear-gradient(to bottom, rgb(7 9 12 / 88%), rgb(7 9 12 / 28%));
  backdrop-filter: blur(10px);
}

.north-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.north-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--glacier);
  box-shadow: 0 0 12px rgb(124 255 240 / 55%);
}

.north-mark {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  text-decoration: none;
}

.north-mark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.north-mark small {
  color: var(--glacier);
  font: 400 0.62rem/1 var(--font-mono);
  letter-spacing: 0.16em;
}

.north-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
}

.north-nav a {
  color: var(--ice-dim);
  font: 400 0.68rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.north-nav a:hover,
.north-nav a[aria-current="true"] {
  color: var(--glacier);
}

.north-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  color: var(--ice-dim);
  font: 400 0.62rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
}

.north-scene {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 5rem max(1.25rem, calc((100% - 88rem) / 2)) 6rem;
}

.north-scene[hidden] {
  display: none;
}

.north-scene__inner {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.north-kicker {
  margin: 0 0 1.1rem;
  color: var(--glacier);
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.22em;
}

.north-scene h2 {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.north-copy {
  max-width: 38rem;
  margin: 0 0 1rem;
  color: var(--ice-dim);
  font-size: 1.125rem;
  font-weight: 400;
}

.north-copy--narrow {
  max-width: 28rem;
}

/* 01 Signal */

.north-name {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10.4vw, 8.4rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.north-name span {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: north-reveal 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.north-name span:last-child {
  animation-delay: 0.12s;
  background: linear-gradient(100deg, var(--ice) 20%, var(--glacier) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes north-reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.north-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 1.8rem 0 1.4rem;
  color: var(--ice-dim);
  font: 400 0.74rem/1 var(--font-mono);
  letter-spacing: 0.16em;
}

.north-lede,
.north-copy {
  overflow-wrap: break-word;
}

.north-ticker span + span::before {
  content: "·";
  margin-right: 1.1rem;
  color: var(--glacier);
}

.north-lede {
  max-width: 36rem;
  margin: 0 0 2.2rem;
  color: var(--ice);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.55;
}

.north-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--glacier);
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.north-enter span {
  transition: transform 240ms ease;
}

.north-enter:hover span {
  transform: translateY(4px);
}

/* 02 Tenure */

.north-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 3.5rem 4rem;
  align-items: end;
}

.north-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-strong);
}

.north-rail li {
  position: relative;
  padding: 0 0 1.8rem 1.4rem;
}

.north-rail li:last-child {
  padding-bottom: 0;
}

.north-rail li::before {
  position: absolute;
  top: 0.25rem;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ice-dim);
  border-radius: 50%;
  background: var(--void);
  content: "";
}

.north-rail .is-live::before {
  border-color: var(--glacier);
  background: var(--glacier);
  box-shadow: 0 0 0 6px rgb(124 255 240 / 12%);
}

.north-rail time {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--glacier);
  font: 400 0.68rem/1 var(--font-mono);
  letter-spacing: 0.14em;
}

.north-rail strong {
  display: block;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.north-rail span {
  color: var(--ice-dim);
  font-size: 0.92rem;
}

/* 03 Topology */

.north-topology__head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.north-readout {
  max-width: 24rem;
  margin: 0;
  color: var(--glacier);
  font: 400 0.86rem/1.5 var(--font-mono);
}

.north-nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.north-nodes li {
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.north-nodes li.is-hot,
.north-nodes li:hover,
.north-nodes li:focus-visible {
  border-color: rgb(124 255 240 / 55%);
  background: rgb(124 255 240 / 7%);
  transform: translateY(-2px);
}

.north-nodes span,
.north-nodes em {
  color: var(--ice-dim);
  font: 400 0.68rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  font-style: normal;
  text-transform: uppercase;
}

.north-nodes strong {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* 04 Queue */

.north-board {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.north-board th,
.north-board td {
  padding: 1.05rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.north-board th {
  color: var(--ice-dim);
  font: 400 0.68rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.north-board td:first-child {
  color: var(--glacier);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.north-board tbody tr {
  transition: background 160ms ease;
}

.north-board tbody tr:hover {
  background: rgb(124 255 240 / 5%);
}

.north-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgb(243 193 107 / 40%);
  color: var(--amber);
  font: 500 0.66rem/1 var(--font-mono);
  letter-spacing: 0.12em;
}

/* 05 Link */

.north-dock {
  margin: 2.4rem 0 4rem;
}

.north-mail {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-decoration: none;
  background-image: linear-gradient(var(--glacier), var(--glacier));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 280ms ease;
}

.north-mail:hover,
.north-mail:focus-visible {
  background-size: 100% 2px;
  color: var(--glacier);
}

.north-dock ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.north-dock ul a {
  color: var(--ice-dim);
  font: 400 0.82rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-decoration: none;
}

.north-dock ul a:hover {
  color: var(--glacier);
}

.north-foot {
  margin: 0;
  color: rgb(139 154 163 / 70%);
  font: 400 0.68rem/1.5 var(--font-mono);
  letter-spacing: 0.06em;
}

@media (max-width: 900px) {
  .north-split,
  .north-topology__head,
  .north-nodes {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .north-topology__head,
  .north-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .north-name {
    font-size: clamp(2.1rem, 9.4vw, 4.2rem);
    letter-spacing: -0.03em;
  }

  .north-chrome {
    grid-template-columns: 1fr auto;
  }

  .north-nav {
    display: none;
  }
}

@media (max-width: 700px) {
  .jl-site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 1.1rem;
    letter-spacing: 0.1em;
  }

  .jl-site-nav__links {
    justify-content: flex-start;
  }

  .jl-site-nav__links a {
    padding: 0.36rem 0.42rem;
  }

  .north-name {
    font-size: clamp(1.65rem, 7.4vw, 2.05rem);
    letter-spacing: -0.03em;
  }

  .north-lede {
    max-width: 100%;
  }

  .north-ticker {
    gap: 0.45rem 0.75rem;
    letter-spacing: 0.1em;
  }

  .north-ticker span + span::before {
    margin-right: 0.75rem;
  }

  .north-nodes {
    grid-template-columns: 1fr;
  }

  .north-scene {
    padding-top: 4.2rem;
    padding-bottom: 4.2rem;
    min-height: auto;
  }

  .north-signal {
    min-height: calc(100svh - 7rem);
  }

  .north-board th:nth-child(3),
  .north-board td:nth-child(3) {
    display: none;
  }

  .north-meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .north-name span {
    clip-path: none;
    animation: none;
  }

  .north-nodes li,
  .north-enter span,
  .north-mail,
  .north-progress i {
    transition: none;
  }
}
