/* ============================================================
   NorthByte - premium dark interface
   ============================================================ */

:root {
  --bg: #000000;
  --panel: rgba(5, 7, 9, 0.86);
  --panel-solid: #06080a;
  --panel-2: #0b0d10;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f4f6f8;
  --text-dim: #a9b0b8;
  --text-faint: #69717c;
  --ice: #9bdcff;
  --ice-soft: rgba(155, 220, 255, 0.16);
  --green: #b8f8da;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, monospace;
  --radius: 8px;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}
p { margin: 0; }
svg { display: block; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid rgba(155, 220, 255, 0.75); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #1b2025; border: 2px solid #000; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2a3138; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- background ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, rgba(155, 220, 255, 0.15), rgba(255, 255, 255, 0.95));
  transition: width 0.1s linear;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.68) 44%, transparent 100%);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
    linear-gradient(90deg, rgba(155, 220, 255, 0.035), transparent 34%, transparent 66%, rgba(255, 255, 255, 0.025));
}

.spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--spot-x, 50%) var(--spot-y, -200px), rgba(155, 220, 255, 0.07), transparent 68%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.site-header, main, .site-footer {
  position: relative;
  z-index: 2;
}

/* ---------- cursor ---------- */
.cursor-ring,
.cursor-dot,
.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: opacity 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
}

.cursor-label {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0;
  line-height: 1;
  transform: translate(-50%, calc(-50% + 30px));
  transition: opacity 0.16s var(--ease);
}

body.cursor-on { cursor: none; }
body.cursor-on a,
body.cursor-on button,
body.cursor-on [data-cursor],
body.cursor-on .nav-toggle { cursor: none; }
body.cursor-on .cursor-ring,
body.cursor-on .cursor-dot { opacity: 1; }
body.cursor-hover .cursor-ring { background: rgba(255, 255, 255, 0.12); }
body.cursor-label-on .cursor-label { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}

.btn-sm {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 0.88rem;
}

.btn-primary {
  color: #050607;
  background: #fff;
  box-shadow: 0 18px 48px -28px rgba(255, 255, 255, 0.95);
}

.btn-primary:hover { box-shadow: 0 22px 55px -28px rgba(155, 220, 255, 0.9); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: auto; height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links > a:not(.btn) {
  position: relative;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--expo);
}

.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

/* ---------- shared ---------- */
.eyebrow,
.section-index {
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-faint);
  font-size: 0.76rem;
}

.eyebrow-pill {
  padding: 7px 13px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-dim);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 12px rgba(155, 220, 255, 0.75);
}

.section-index {
  display: inline-block;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
}

.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.split .w-in {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--expo);
}

.split.in .w-in { transform: none; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--expo) var(--d, 0ms), transform 0.75s var(--expo) var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 38px 0 0;
}

.net-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.86;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, transparent 66%, #000 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 76svh, 700px);
  padding-bottom: 46px;
}

.hero-main { max-width: 790px; }

.hero-title {
  margin-top: 24px;
  max-width: 820px;
  font-size: clamp(2.6rem, 5.6vw, 4.65rem);
  font-weight: 650;
}

.hero-sub {
  max-width: 570px;
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-locale {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--text-faint);
  font-size: 0.92rem;
}

.hero-locale .sep { opacity: 0.45; }
.hero-locale #clock { color: var(--text-dim); font-variant-numeric: tabular-nums; }

.live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(184, 248, 218, 0.85);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-el {
  opacity: 0;
  transform: translateY(24px);
}

.hero-ready .hero-el {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--expo), transform 0.8s var(--expo);
}

.hero-ready .eyebrow-pill { transition-delay: 0.05s; }
.hero-ready .hero-sub { transition-delay: 0.42s; }
.hero-ready .hero-actions { transition-delay: 0.52s; }
.hero-ready .hero-locale { transition-delay: 0.62s; }
.hero-ready .hero-map { transition-delay: 0.22s; }

/* ---------- hero map ---------- */
.hero-map {
  justify-self: end;
  width: min(100%, 440px);
  perspective: 1000px;
}

.map-shell {
  position: relative;
  min-height: 430px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 28%),
    rgba(5, 7, 9, 0.74);
  box-shadow: 0 40px 100px -70px rgba(155, 220, 255, 0.68);
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transform-style: preserve-3d;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.18s var(--ease);
}

.map-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(155, 220, 255, 0.08), transparent);
  transform: translateX(calc(var(--mx, 50%) - 50%));
  opacity: 0.5;
}

.hero-map:hover .map-shell {
  border-color: rgba(155, 220, 255, 0.38);
  box-shadow: 0 46px 110px -70px rgba(155, 220, 255, 0.9);
}

.map-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.map-top strong {
  color: var(--ice);
  font: inherit;
  font-weight: 700;
}

.map-plane {
  --mx: 50%;
  --my: 50%;
  position: relative;
  z-index: 1;
  min-height: 292px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
}

.map-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(210px circle at var(--mx) var(--my), rgba(155, 220, 255, 0.18), transparent 62%);
  opacity: 0.85;
}

.map-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.map-lines line {
  stroke: rgba(155, 220, 255, 0.3);
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
}

.map-lines .soft-line {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-dasharray: 2 4;
}

.map-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 16px 38px -28px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

button.map-node { cursor: pointer; }

.map-node span { position: relative; z-index: 2; }

.map-node:hover,
.map-node:focus-visible,
.map-node.is-active {
  color: #fff;
  border-color: rgba(155, 220, 255, 0.65);
  background: rgba(8, 12, 15, 0.95);
  box-shadow: 0 22px 46px -24px rgba(155, 220, 255, 0.82);
}

.map-node:hover,
.map-node:focus-visible {
  transform: translate(-50%, -50%) scale(1.04);
}

.map-core {
  width: 74px;
  min-width: 74px;
  min-height: 74px;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    rgba(0, 0, 0, 0.86);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.map-readout {
  position: relative;
  z-index: 2;
  min-height: 76px;
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.map-readout span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1;
}

.map-readout p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- sections ---------- */
.section { padding: 76px 0; }

.section-head {
  max-width: 660px;
  margin-bottom: 30px;
}

.section-title {
  margin-top: 16px;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
}

.section-sub {
  max-width: 540px;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 1.06rem;
}

/* ---------- studio focus ---------- */
.studio-section {
  position: relative;
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  gap: 62px;
  align-items: start;
}

.studio-statement p {
  max-width: 620px;
  margin-top: 24px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.capability-list { border-top: 1px solid var(--line-2); }

.capability-line {
  --rx: 50%;
  --ry: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(130px, 0.75fr) 1fr;
  gap: 22px;
  align-items: center;
  min-height: 92px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: padding 0.28s var(--expo), background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.capability-line::before,
.work-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--rx, 50%) var(--ry, 50%), rgba(155, 220, 255, 0.15), rgba(255, 255, 255, 0.04) 35%, transparent 68%);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.capability-line:hover::before,
.work-row:hover::after { opacity: 1; }

.capability-line:hover {
  padding-left: 16px;
  border-bottom-color: rgba(155, 220, 255, 0.3);
  background: rgba(155, 220, 255, 0.04);
}

.capability-line span,
.capability-line strong,
.capability-line em {
  position: relative;
  z-index: 1;
}

.capability-line span {
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.capability-line strong {
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.3vw, 1.9rem);
  line-height: 1;
}

.capability-line em {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.45;
}

/* ---------- work ---------- */
.work-shell {
  margin-top: 30px;
}

.work-stage {
  --rx: 50%;
  --ry: 50%;
  position: sticky;
  top: 102px;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
    rgba(5, 7, 9, 0.78);
  box-shadow: 0 34px 80px -66px rgba(155, 220, 255, 0.72);
}

.work-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--rx) var(--ry), rgba(155, 220, 255, 0.18), transparent 62%);
  opacity: 0.9;
}

.stage-top,
.stage-copy,
.stage-visual {
  position: relative;
  z-index: 1;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.stage-top strong {
  color: var(--ice);
  font: inherit;
  font-weight: 700;
}

.stage-visual {
  height: 218px;
  margin: 10px 0 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 36px 36px;
}

.stage-beam {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 220, 255, 0.42), transparent);
  transform-origin: center;
}

.beam-a { transform: rotate(22deg); }
.beam-b { transform: rotate(-22deg); }

.stage-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
}

.node-main {
  left: 50%;
  top: 50%;
  min-width: 86px;
  min-height: 86px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  transform: translate(-50%, -50%);
  border-color: rgba(155, 220, 255, 0.54);
  box-shadow: 0 0 42px -16px rgba(155, 220, 255, 0.92);
}

.node-a { left: 12%; top: 20%; }
.node-b { right: 11%; top: 24%; }
.node-c { right: 16%; bottom: 18%; }

.stage-copy {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--line);
}

.stage-copy h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
}

.stage-copy p {
  max-width: 420px;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.55;
}

.work-rows {
  border-top: 1px solid var(--line);
}

.work-row {
  --rx: 50%;
  --ry: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr minmax(150px, auto) 36px;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: 32px 12px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.38s var(--expo), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 40%, transparent 72%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.work-row:hover,
.work-row.is-active {
  border-bottom-color: rgba(155, 220, 255, 0.28);
  background: rgba(155, 220, 255, 0.026);
}

.work-row:hover { padding-left: 22px; }
.work-row:hover::before,
.work-row.is-active::before { opacity: 1; }

.work-row > * {
  position: relative;
  z-index: 1;
}

.work-no {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease);
}

.work-row:hover .work-no,
.work-row.is-active .work-no { color: var(--ice); }

.work-name {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 600;
  transition: transform 0.38s var(--expo);
}

.work-desc {
  max-width: 540px;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.55;
  transition: transform 0.38s var(--expo);
}

.work-row:hover .work-name,
.work-row:hover .work-desc { transform: translateX(7px); }

.work-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  text-align: right;
}

.work-cat {
  color: var(--text-faint);
  font-size: 0.86rem;
  transition: color 0.25s var(--ease);
}

.work-row:hover .work-cat { color: var(--text-dim); }

.wstatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.wstatus i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--text-faint);
}

.is-dev i {
  background: var(--ice);
  box-shadow: 0 0 8px rgba(155, 220, 255, 0.85);
  animation: pulse 2s var(--ease) infinite;
}

.is-soon i {
  background: #dfe7ed;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.42);
}

.is-planned i {
  background: var(--green);
  box-shadow: 0 0 8px rgba(184, 248, 218, 0.7);
}

.work-action {
  margin-top: 4px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.work-row:hover .work-action {
  border-color: rgba(155, 220, 255, 0.4);
  background: rgba(155, 220, 255, 0.1);
}

.work-arrow {
  color: var(--text-faint);
  transition: transform 0.38s var(--expo), color 0.25s var(--ease);
}

.work-arrow svg {
  width: 22px;
  height: 22px;
}

.work-row:hover .work-arrow {
  color: var(--text);
  transform: translate(5px, -5px);
}

/* ---------- about ---------- */
.section-about { padding: 78px 0; }

.big-statement {
  max-width: 990px;
  margin: 28px 0 62px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.18;
}

.big-statement .word {
  color: rgba(255, 255, 255, 0.16);
  transition: color 0.2s linear;
}

.principles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle {
  min-height: 138px;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line);
}

.principle:last-child { border-right: none; }

.pnum {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.ptext {
  margin-top: 18px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
}

/* ---------- contact ---------- */
.section-contact {
  padding: 78px 0 88px;
  border-top: 1px solid var(--line);
}

.contact-block { max-width: 920px; }

.contact-big {
  max-width: 12ch;
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.contact-sub {
  max-width: 480px;
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.contact-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.contact-prompts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.contact-mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 44px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6vw, 4.2rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

.contact-mail svg {
  width: 0.62em;
  height: 0.62em;
  flex: 0 0 auto;
  transition: transform 0.38s var(--expo);
}

.contact-mail-text { position: relative; }

.contact-mail-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.02em;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.48s var(--expo);
}

.contact-mail:hover .contact-mail-text::after { transform: scaleX(1); }
.contact-mail:hover svg { transform: translate(0.12em, -0.12em); }

/* ---------- footer ---------- */
.site-footer {
  padding: 48px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 56px;
  padding-bottom: 48px;
}

.footer-brand { max-width: 360px; }
.footer-logo { width: auto; height: 30px; opacity: 0.95; }

.footer-tag {
  margin-top: 20px;
  color: var(--text-faint);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-loc {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 72px;
}

.fcol {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.fcol-h {
  margin-bottom: 6px;
  color: var(--text-faint);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fcol a {
  position: relative;
  width: fit-content;
  color: var(--text-dim);
  font-size: 0.96rem;
  transition: color 0.2s var(--ease);
}

.fcol a:hover { color: var(--text); }

.fcol-static {
  color: var(--text-faint);
  font-size: 0.96rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.88rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}

.to-top svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.to-top:hover { color: var(--text); }
.to-top:hover svg { transform: translateY(-3px); }

.footer-legal { color: var(--text-dim); transition: color 0.2s var(--ease); }
.footer-legal:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding-bottom: 34px;
  }

  .hero-map {
    justify-self: stretch;
    width: 100%;
  }

  .map-shell { min-height: 320px; }
  .map-plane { min-height: 188px; }

  .studio-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .studio-statement p { max-width: 760px; }

  .work-shell {
    grid-template-columns: 1fr;
  }

  .work-stage {
    position: relative;
    top: auto;
    min-height: 310px;
  }
}

@media (max-width: 760px) {
  .container { padding: 0 22px; }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(6, 8, 10, 0.97);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.95);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.99);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links > a:not(.btn) {
    padding: 11px 12px;
    border-radius: var(--radius);
    color: var(--text);
  }

  .nav-links > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 4px 0 0; }
  .nav-toggle { display: flex; }

  .hero {
    padding-top: 20px;
  }

  .hero-title {
    font-size: clamp(2.05rem, 9vw, 2.65rem);
  }

  .hero-sub {
    margin-top: 20px;
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .hero-actions { margin-top: 28px; }

  .hero-locale {
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 24px;
  }

  .map-shell { min-height: 282px; padding: 13px; }

  .map-plane { min-height: 150px; margin-top: 12px; }

  .map-readout {
    min-height: 58px;
    margin-top: 10px;
    padding-top: 11px;
  }

  .map-readout span { font-size: 1.1rem; }
  .map-readout p { font-size: 0.86rem; line-height: 1.42; }

  .map-node {
    min-width: 66px;
    min-height: 31px;
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .map-core {
    width: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .section,
  .studio-section,
  .section-about {
    padding: 54px 0;
  }

  .section-contact { padding: 54px 0 62px; }

  .section-head { margin-bottom: 22px; }

  .studio-statement p {
    margin-top: 18px;
    font-size: clamp(1.7rem, 7.8vw, 2.35rem);
  }

  .capability-line {
    grid-template-columns: 36px 1fr;
    gap: 10px 14px;
    min-height: 112px;
    padding: 18px 0;
  }

  .capability-line:hover { padding-left: 0; }
  .capability-line em { grid-column: 2; }

  .work-row {
    grid-template-columns: 34px 1fr;
    gap: 10px 16px;
    padding: 26px 0;
  }

  .work-row:hover { padding-left: 0; }
  .work-main { grid-column: 2; }

  .work-side {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
    margin-top: 14px;
    text-align: left;
  }

  .work-arrow { display: none; }

  .work-stage { min-height: 270px; }
  .stage-top { padding: 14px 16px 0; }
  .stage-visual { height: 145px; margin-top: 6px; }
  .node-main {
    min-width: 70px;
    min-height: 70px;
    font-size: 0.9rem;
  }
  .stage-copy { padding: 16px 18px 18px; }
  .stage-copy h3 { font-size: 1.55rem; }
  .stage-copy p { margin-top: 8px; font-size: 0.92rem; line-height: 1.45; }

  .principles-row { grid-template-columns: 1fr; }

  .principle {
    min-height: 0;
    padding: 24px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child { border-bottom: none; }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav { gap: 48px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 460px) {
  .container { padding: 0 18px; }

  .brand-logo { height: 24px; }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-locale .sep { display: none; }

  .map-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .map-node { min-width: 58px; font-size: 0.68rem; }

  .map-core {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
  }

  .stage-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .node-a { left: 8%; }
  .node-b { right: 8%; }
  .node-c { right: 10%; }

  .footer-nav { gap: 32px; }
}

/* ---------- motion / pointer ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal,
  .hero-el {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .split .w-in { transform: none; }
  .big-statement .word { color: var(--text); }
  .map-shell { transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
}

@media (pointer: coarse) {
  .cursor-ring,
  .cursor-dot,
  .cursor-label,
  .trail-canvas { display: none; }
}
