/* JOD Solutions — site styles
   Fonts are self-hosted (OFL): Instrument Sans (display/body), Geist Mono (labels). */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/InstrumentSans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/InstrumentSans-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/GeistMono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-2: #0a0c10;
  --surface: #0e1015;
  --surface-2: #13161c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #eef0f4;
  --ink-2: #b7bdc8;
  --muted: #8b929f;
  --dim: #6d7584;
  --accent: #6c9cff;
  --accent-2: #9ee0ff;
  --accent-deep: #2f5fd8;
  --glow: rgba(108, 156, 255, 0.28);
  --ok: #5fe3a1;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --container: min(1360px, 92vw);
  --nav-h: 76px;
  --radius: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
::selection { background: rgba(108, 156, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: var(--container); margin-inline: auto; }
.mono { font-family: var(--mono); }

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Film grain: fixed overlay, purely decorative. */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* ---------- Labels & type ---------- */
.eyebrow, .index, .tag, .tags li, .facts dt, .hero-meta, .card-index, .footer-meta, .scroll-hint, .marquee {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.index { color: var(--muted); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.index::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }
.index span { color: var(--dim); }

.section-title {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 14ch;
  text-wrap: balance;
}
.section-title em, .contact-title em, .hero-title .em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(92deg, var(--accent-2) 0%, var(--accent) 55%, #b9a7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.section-lede { color: var(--ink-2); font-size: 1.125rem; max-width: 56ch; margin-top: 24px; text-wrap: pretty; }
.section-head { max-width: 900px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 500; font-size: 0.9375rem; letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  color: var(--ink);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.5s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn-arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:hover .btn-arrow.down { transform: translateY(4px); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 12px 40px -10px rgba(158, 224, 255, 0.45); }
.btn-ghost { background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.05); }
.btn-nav { min-height: 40px; padding: 0 16px; font-size: 0.875rem; background: rgba(255,255,255,0.03); }
.btn-nav:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; color: var(--ink);
  padding-bottom: 4px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1px;
  transition: background-size 0.45s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .btn-arrow { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 10, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; font-size: 1rem; white-space: nowrap; }
.brand .mark { width: 28px; height: 28px; }
.brand-llc { font-family: var(--mono); font-weight: 400; font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--dim); margin-left: 8px; vertical-align: 2px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 0.9375rem; color: var(--ink-2);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(255,255,255,0.05); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 120px;
  overflow: clip;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 0%, transparent 100%);
  opacity: 0.55;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 50%, rgba(108, 156, 255, 0.16), transparent 70%),
    radial-gradient(40% 40% at 20% 90%, rgba(158, 224, 255, 0.06), transparent 70%);
}
.hero-stage {
  position: absolute; z-index: -1;
  right: max(2vw, calc((100vw - var(--container)) / 2 - 3vw));
  top: 50%;
  width: min(78vh, 43vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
}
.hero-glow {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 156, 255, 0.22) 0%, rgba(108, 156, 255, 0.06) 40%, transparent 68%);
  filter: blur(24px);
  animation: breathe 7s ease-in-out infinite;
}
.hero-orbit {
  position: absolute; inset: -6%;
  width: 112%; height: 112%;
  color: rgba(255,255,255,0.09);
  animation: orbit 60s linear infinite;
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.stage-label { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stage-label::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); margin-right: 12px; box-shadow: 0 0 10px var(--accent-2); }
.stage-label:empty { display: none; }
.stage-label.swap { animation: labelswap 0.7s var(--ease); }

.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 880px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); margin-bottom: 36px; }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); flex: none; }
.status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); opacity: 0; animation: ping 2.4s ease-out infinite; }

.hero-title {
  font-size: clamp(2.75rem, 5.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.06em 0.12em 0.12em; margin: -0.06em -0.12em -0.12em; }
.hero-title .word { display: inline-block; transform: translateY(115%); opacity: 0; will-change: transform, opacity; }
.hero-lede { margin-top: 36px; max-width: 54ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding-bottom: 36px;
  color: var(--dim);
  text-transform: uppercase;
}
.hero-meta .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.scroll-hint { display: inline-flex; align-items: center; gap: 14px; }
.scroll-hint::after { content: ""; width: 1px; height: 48px; background: linear-gradient(var(--dim), transparent); animation: scrollline 2.2s var(--ease-io) infinite; transform-origin: top; }
.hero-meta-right { display: flex; align-items: center; gap: 28px; }
.hero-meta-right p { margin: 0; text-align: right; line-height: 1.7; }
.hero-meta-right p span { display: block; color: var(--muted); }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s;
}
.motion-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.motion-icon { width: 10px; text-align: center; }

/* Load-in choreography. */
.eyebrow, .hero-lede, .hero-actions, .hero-meta { opacity: 0; transform: translateY(14px); }
.hero-stage, .hero-canvas { opacity: 0; }
.loaded .eyebrow, .loaded .hero-lede, .loaded .hero-actions, .loaded .hero-meta { animation: fadeup 1s var(--ease) forwards; }
.loaded .hero-stage, .loaded .hero-canvas { animation: fadein 1.6s var(--ease) 0.15s forwards; }
.loaded .eyebrow { animation-delay: 0.1s; }
.loaded .hero-lede { animation-delay: 0.55s; }
.loaded .hero-actions { animation-delay: 0.7s; }
.loaded .hero-meta { animation-delay: 1s; }
.loaded .hero-title .word { animation: rise 1.1s var(--ease) forwards; }
.loaded .hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.18s; }
.loaded .hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.26s; }
.loaded .hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.34s; }
.loaded .hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.42s; }
.loaded .hero-title .line:nth-child(2) .word:nth-child(3) { animation-delay: 0.5s; }
/* Without JS the hero renders immediately. */
html:not(.js) .hero-title .word, html:not(.js) .eyebrow, html:not(.js) .hero-lede, html:not(.js) .hero-actions, html:not(.js) .hero-meta, html:not(.js) .hero-stage, html:not(.js) .hero-canvas { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden;
  color: var(--muted);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 48s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); opacity: 0.8; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 11vw, 160px) 0; border-top: 1px solid var(--line); }
.section::before, .section::after {
  content: "+" / ""; position: absolute; top: -0.55em;
  font-family: var(--mono); font-size: 15px; line-height: 1; color: var(--dim);
}
.section::before { left: calc((100vw - var(--container)) / 2 - 0.3em); }
.section::after { right: calc((100vw - var(--container)) / 2 - 0.3em); }
.marquee + .section { border-top: 0; }
.marquee + .section::before, .marquee + .section::after { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 380px;
  padding: 28px 28px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.4s var(--ease);
}
.card::before {
  /* Spotlight that follows the cursor. */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(108, 156, 255, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.card::after {
  /* Glowing border segment near the cursor. */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(158, 224, 255, 0.9), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card-visual {
  height: 148px; margin: -6px -6px 22px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent);
}
.card-visual svg { width: 100%; height: 100%; max-width: 260px; }
.card-index { color: var(--dim); margin-bottom: 14px; }
.card h3 { font-size: 1.5rem; letter-spacing: -0.025em; font-weight: 500; line-height: 1.15; }
.card-text { margin-top: 14px; color: var(--ink-2); font-size: 1rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags li { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 0.6875rem; }
.card-link { margin-top: 26px; }

/* Card visual animations */
.v-grid rect { fill: currentColor; opacity: 0.16; animation: cellpulse 3.6s ease-in-out infinite; }
.v-grid rect:nth-child(4n + 1) { animation-delay: 0.3s; }
.v-grid rect:nth-child(4n + 2) { animation-delay: 1.1s; }
.v-grid rect:nth-child(4n + 3) { animation-delay: 1.9s; }
.v-grid rect:nth-child(5n) { animation-delay: 2.6s; }
.v-grid rect:nth-child(7n) { animation-delay: 0.8s; }
.v-net line { stroke: currentColor; stroke-width: 1; opacity: 0.3; }
.v-net .pulse { stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 18 220; stroke-dashoffset: 238; opacity: 0.95; animation: dash 3.2s linear infinite; }
.v-net .pulse:nth-of-type(2) { animation-delay: 0.7s; }
.v-net .pulse:nth-of-type(3) { animation-delay: 1.5s; }
.v-net circle { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.v-net rect { fill: rgba(255,255,255,0.03); stroke: currentColor; stroke-width: 1.2; }
.v-chain .pulse { stroke-dasharray: 14 240; stroke-dashoffset: 254; animation-duration: 2.6s; }
.v-net circle.core { fill: currentColor; animation: nodepulse 3.2s ease-in-out infinite; }
.v-stack rect { fill: rgba(255,255,255,0.03); stroke: currentColor; stroke-width: 1; }
.v-stack .layer { animation: floaty 5s ease-in-out infinite; }
.v-stack .layer:nth-child(2) { animation-delay: -1.6s; }
.v-stack .layer:nth-child(3) { animation-delay: -3.2s; }
.v-stack .glow { fill: var(--accent); stroke: none; opacity: 0.9; animation: blink 2.4s ease-in-out infinite; }

/* ---------- Work ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.project { display: flex; flex-direction: column; min-width: 0; }
.project-media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.4s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transform: scale(1.01); transition: transform 1s var(--ease), filter 0.6s var(--ease); filter: saturate(0.92); }
.project-media::after {
  content: "↗"; position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(7, 8, 10, 0.72); color: var(--ink); font-size: 1rem;
  border: 1px solid var(--line-2); opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.project:hover .project-media { border-color: rgba(255,255,255,0.18); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(108,156,255,0.08); }
.project:hover .project-media img { transform: scale(1.05); filter: saturate(1); }
.project:hover .project-media::after { opacity: 1; transform: none; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 6px 0; }
.project-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; }
.project-meta .role { padding: 5px 9px; border-radius: 6px; border: 1px solid rgba(108, 156, 255, 0.45); color: var(--accent-2); }
.project-meta .role.partner { border-color: rgba(185, 167, 255, 0.45); color: #c9bcff; }
.project-meta .status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.project-meta .status.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.project h3 { font-size: 1.5rem; letter-spacing: -0.025em; font-weight: 500; line-height: 1.15; }
.project-text { margin-top: 12px; color: var(--ink-2); font-size: 1rem; flex: 1; text-wrap: pretty; }
.project .tags { margin-top: 20px; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; }
.project-links .link-arrow { font-size: 0.9375rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: start; }
.about-copy p { color: var(--ink-2); font-size: 1.125rem; margin-top: 24px; max-width: 58ch; text-wrap: pretty; }
.about-copy p strong { color: var(--ink); font-weight: 500; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--dim); padding-top: 4px; }
.facts dd { margin: 0; color: var(--ink); font-size: 1.0625rem; }
.facts dd a { border-bottom: 1px solid var(--line-2); transition: border-color 0.25s; overflow-wrap: anywhere; }
.facts dd a:hover { border-color: var(--accent); }

/* ---------- Contact ---------- */
.section-contact { overflow: clip; }
.section-contact::before, .section-contact::after { z-index: 2; }
.contact-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgba(108, 156, 255, 0.14), transparent 70%);
}
.contact-inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.contact-inner .index { justify-content: center; }
.contact-title { font-size: clamp(3rem, 9vw, 8.5rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 500; text-wrap: balance; }
.contact-inner .section-lede { text-align: center; margin-top: 28px; }
.contact-row { display: inline-flex; align-items: center; gap: 12px; margin-top: 48px; padding: 8px 8px 8px 26px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.02); max-width: 100%; }
.contact-email { font-family: var(--mono); font-size: clamp(0.875rem, 1.6vw, 1.125rem); letter-spacing: 0; color: var(--ink); overflow-wrap: anywhere; }
.contact-email:hover { color: var(--accent-2); }
.copy {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
  transition: background 0.25s, color 0.25s;
}
.copy:hover { background: rgba(255,255,255,0.12); color: var(--ink); }
.copy.done { background: rgba(95, 227, 161, 0.16); color: var(--ok); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 40px; color: var(--muted); font-size: 0.875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.footer-brand .mark { width: 22px; height: 22px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 28px; color: var(--dim); }
.footer-meta a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 0 80px; }
.error-page .index { justify-content: center; }
.error-page .hero-actions { justify-content: center; }
.error-page .section-title, .error-page .section-lede { margin-inline: auto; }
.error-code { font-family: var(--mono); font-size: clamp(5rem, 20vw, 14rem); line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

/* ---------- Keyframes ---------- */
@keyframes rise { to { transform: none; opacity: 1; } }
@keyframes fadeup { to { transform: none; opacity: 1; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes scrollline { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cellpulse { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.85; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes nodepulse { 0%, 100% { r: 5; opacity: 0.8; } 50% { r: 7; opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes labelswap { 0% { opacity: 0; transform: translateY(6px); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project:nth-child(3) { grid-column: span 2; }
  .card { min-height: 340px; }
  .hero-stage { width: min(70vh, 50vw); }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .hero { display: block; padding-top: calc(var(--nav-h) + 12px); padding-bottom: 96px; min-height: auto; }
  .hero-stage { position: relative; right: auto; top: auto; transform: none; width: min(80vw, 420px); margin: 0 auto -7%; }
  .hero-bg::after { background: radial-gradient(60% 40% at 50% 25%, rgba(108, 156, 255, 0.16), transparent 70%); }
  .hero-title { font-size: clamp(2.75rem, 12.5vw, 5rem); }
  .hero-lede { margin-top: 26px; }
  .hero-actions { margin-top: 32px; }
  .hero-meta { padding-bottom: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .projects { grid-template-columns: 1fr; gap: 40px; margin-top: 44px; }
  .project:nth-child(3) { grid-column: auto; }
  .cards { grid-template-columns: 1fr; margin-top: 44px; }
  .card { min-height: auto; }
  .section-title { max-width: none; }
  .facts div { grid-template-columns: 100px 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .brand-llc { display: none; }
  .btn-nav { padding: 0 14px; }
  .contact-row { flex-direction: column; padding: 18px; border-radius: 20px; gap: 14px; }
  .contact-links .btn { width: auto; }
  .marquee-track span { gap: 18px; padding-right: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-title .word, .eyebrow, .hero-lede, .hero-actions, .hero-meta, .hero-stage, .hero-canvas, .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .scroll-hint::after { animation: none; transform: none; }
  .status-dot::after { display: none; }
}

/* ---------- Expertise ---------- */
.expertise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin-top: 56px; border-top: 1px solid var(--line); }
.expertise-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 34px 0 38px; border-bottom: 1px solid var(--line); }
.expertise-item .num { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--accent); padding-top: 7px; }
.expertise-item h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.expertise-item p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; max-width: 48ch; text-wrap: pretty; }
@media (max-width: 860px) {
  .expertise { grid-template-columns: 1fr; margin-top: 40px; }
  .expertise-item { padding: 26px 0 30px; }
}
