:root {
  --bg: #05060a;
  --bg-2: #0a0d14;
  --ink: #eef1f7;
  --ink-dim: #8b93a7;
  --ink-mute: #5b6377;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --line-3: rgba(255,255,255,0.22);
  --accent: #7cf9ff;
  --accent-2: #a78bfa;
  --accent-3: #ff7ac6;
  --card: rgba(255,255,255,0.03);
  --card-2: rgba(255,255,255,0.05);
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1200px;
  --wide: 1360px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
html, body {
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { min-height: 100svh; line-height: 1.5; cursor: none; background: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
img, svg { display: block; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #05060a; }

/* ===== Background effects ===== */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}
.bg-aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 30% at 20% 10%, rgba(124,249,255,0.18), transparent 60%),
    radial-gradient(35% 30% at 85% 20%, rgba(167,139,250,0.18), transparent 60%),
    radial-gradient(50% 40% at 50% 90%, rgba(255,122,198,0.10), transparent 60%);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.08); }
}
canvas.dots { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; }

/* ===== Custom cursor ===== */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  z-index: 9999; mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .2s ease;
}
.cursor.ready, .cursor-ring.ready { opacity: 1; }
.cursor {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 14px var(--accent), 0 0 30px rgba(124,249,255,0.6);
}
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(124,249,255,0.55); border-radius: 50%;
  transition: width .25s ease, height .25s ease, border-color .25s ease, opacity .2s ease;
}
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--accent-2); }
@media (pointer: coarse) {
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .cursor, .cursor-ring { display: none; }
}

/* ===== Layout ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
header.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(5,6,10,0.75), rgba(5,6,10,0.25));
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
header.nav .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.wordmark {
  height: 18px; width: auto;
  filter: drop-shadow(0 0 14px rgba(124,249,255,0.25));
}
@media (min-width: 640px) { .brand img.wordmark { height: 22px; } }

nav.menu { display: none; align-items: center; gap: 4px; }
@media (min-width: 900px) { nav.menu { display: flex; } }
nav.menu > a, nav.menu > .drop > button {
  font-size: 13px; color: var(--ink-dim);
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
nav.menu > a:hover, nav.menu > .drop > button:hover,
nav.menu > a.active { color: var(--ink); background: var(--card); }

.drop { position: relative; }
.drop > button { display: inline-flex; align-items: center; gap: 6px; }
.drop > button svg { width: 10px; height: 10px; transition: transform .2s ease; }
.drop:hover > button svg { transform: rotate(180deg); }
.drop .panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  width: 520px; max-width: 90vw;
  margin-top: 0;
  padding: 20px 10px 10px;
  background-clip: padding-box;
  border-radius: 18px;
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.drop .panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.drop:hover .panel, .drop:focus-within .panel, .drop.open .panel {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.drop.open > button svg { transform: rotate(180deg); }
.drop .panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drop .item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; transition: background .2s ease; }
.drop .item:hover { background: var(--card-2); }
.drop .item .ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(135deg, rgba(124,249,255,0.14), rgba(167,139,250,0.14)); }
.drop .item .ic svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop .item > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.35; }
.drop .item .t { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.drop .item .d { display: block; font-size: 12px; color: var(--ink-dim); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #05060a; font-weight: 500;
  box-shadow: 0 10px 30px -14px rgba(124,249,255,0.6);
  transition: transform .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .nav-cta { font-size: 12px; padding: 8px 12px; }
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -14px rgba(167,139,250,0.7); }

.burger { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); }
@media (min-width: 900px) { .burger { display: none; } }
.burger svg { width: 18px; height: 18px; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(5,6,10,0.96); backdrop-filter: blur(14px); padding: 80px 24px 40px; transform: translateY(-20px); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease; overflow-y: auto; }
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu .close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.mobile-menu .close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.mobile-menu h4 { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute); margin: 24px 0 10px; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-align: center;
}
.btn svg { flex: none; }
@media (max-width: 480px) {
  .btn { padding: 12px 18px; font-size: 13px; }
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #05060a;
  box-shadow: 0 10px 30px -10px rgba(124,249,255,0.6), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(167,139,250,0.7), 0 0 0 1px rgba(255,255,255,0.12) inset; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--card); border-color: var(--line-3); }
.btn svg { width: 16px; height: 16px; }

/* ===== Eyebrow, headings, section ===== */
.eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--line-2); }
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  margin: 14px 0 14px; max-width: 22ch;
}
.section-sub { color: var(--ink-dim); max-width: 58ch; font-size: clamp(14px, 1.4vw, 17px); }
.grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Status pill ===== */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card);
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: var(--ink-dim); letter-spacing: 0.04em;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(124,249,255,0.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124,249,255,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(124,249,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,249,255,0); }
}

/* ===== Hero ===== */
section.hero { padding: 72px 0 56px; position: relative; }
@media (min-width: 768px) { section.hero { padding: 112px 0 80px; } }
h1.hero-title {
  font-size: clamp(38px, 6.6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 22px 0 18px;
  max-width: 18ch;
}
p.hero-sub { max-width: 60ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-dim); margin-bottom: 28px; }

/* ===== Cards / grid ===== */
section.block { padding: 72px 0; position: relative; }
@media (min-width: 768px) { section.block { padding: 104px 0; } }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.card {
  position: relative; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(124,249,255,0.10), transparent 50%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover::after { opacity: 1; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,249,255,0.14), rgba(167,139,250,0.14));
  border: 1px solid var(--line-2); margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-dim); line-height: 1.6; }
.card .card-cta {
  margin-top: auto; padding-top: 18px; font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: var(--ink); display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  border-bottom: 1px dashed var(--line-2); padding-bottom: 2px;
}
.card .card-cta svg { width: 12px; height: 12px; transition: transform .2s ease; }
.card:hover .card-cta svg { transform: translateX(3px); }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.stat .n { font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.02em; }
.stat .n .grad { background-clip: text; -webkit-background-clip: text; }
.stat .l { font-size: 12px; color: var(--ink-dim); font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 0.14em; margin-top: 6px; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 56px; animation: scroll 40s linear infinite; width: max-content; }
.marquee-item { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--ink-dim); letter-spacing: 0.06em; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.marquee-item::after { content: "•"; color: var(--accent); margin-left: 56px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Pitch banner ===== */
.banner-inner {
  position: relative; overflow: hidden;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(124,249,255,0.18), transparent 60%),
    radial-gradient(500px 300px at 95% 100%, rgba(167,139,250,0.2), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.banner-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
}
.banner-grid { display: grid; gap: 24px; align-items: end; grid-template-columns: 1fr; position: relative; }
@media (min-width: 820px) { .banner-grid { grid-template-columns: 1.2fr auto; } }
.banner h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.banner h2 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner p { color: var(--ink-dim); margin-top: 12px; max-width: 52ch; font-size: 15px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Process (numbered steps) ===== */
.process { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); position: relative; }
.step .no { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.18em; }
.step h4 { font-size: 17px; font-weight: 600; margin: 10px 0 8px; }
.step p { font-size: 13px; color: var(--ink-dim); line-height: 1.6; }

/* ===== Logos row (client marks as text tiles) ===== */
.tile-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
@media (min-width: 640px) { .tile-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .tile-row { grid-template-columns: repeat(5, 1fr); } }
.tile {
  padding: 18px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--ink);
  text-align: center; letter-spacing: 0.02em; transition: border-color .2s ease, background .2s ease;
  min-height: 56px;
}
.tile:hover { border-color: var(--line-2); background: var(--card-2); }
.tile img.brand-ic {
  width: 18px; height: 18px; flex: none;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(124,249,255,0.35));
}

/* ===== Case study card (large) ===== */
.case {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(124,249,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  transition: transform .25s ease, border-color .25s ease;
}
.case:hover { transform: translateY(-4px); border-color: var(--line-3); }
.case .inner { padding: clamp(22px, 3vw, 32px); display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .case .inner { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.case h3 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.case p { color: var(--ink-dim); font-size: 15px; }
.case .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.case .chip { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-dim); letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.case .visual { position: relative; min-height: 200px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(124,249,255,0.08), rgba(167,139,250,0.06), rgba(255,122,198,0.05)); display: grid; place-items: center; font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--ink-dim); padding: 24px; text-align: center; }
.case .visual .monogram { font-size: clamp(48px, 6vw, 80px); font-weight: 600; letter-spacing: -0.04em; background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Form ===== */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; opacity: 0.85; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.06); color: var(--ink);
  border: 1px solid var(--line-3); border-radius: 12px;
  outline: none; transition: border-color .2s ease, background .2s ease;
  cursor: none; font-family: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(238,241,247,0.5); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: rgba(255,255,255,0.09); }
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%237cf9ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4.5l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 12px;
  color-scheme: dark;
}
.field select option {
  background-color: #0a0d14;
  color: var(--ink);
  font-family: inherit;
  padding: 10px;
}
.field select option:disabled { color: var(--ink-mute); }
.chiplist { display: flex; gap: 8px; flex-wrap: wrap; }
.chiplist input { display: none; }
.chiplist label {
  padding: 8px 14px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 13px; color: var(--ink); cursor: pointer;
  background: rgba(255,255,255,0.04);
  transition: all .2s ease; font-family: inherit; letter-spacing: 0; text-transform: none;
}
.chiplist label:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.chiplist input:checked + label { background: rgba(124,249,255,0.12); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ===== Timeline (used on case detail / about) ===== */
.timeline { position: relative; padding-left: 24px; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent); }
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 12px rgba(124,249,255,0.7); }
.tl-item .date { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-dim); letter-spacing: 0.14em; text-transform: uppercase; }
.tl-item h5 { font-size: 15px; font-weight: 600; margin: 4px 0 4px; }
.tl-item p { font-size: 14px; color: var(--ink-dim); }

/* ===== Prose (used for privacy/terms) ===== */
.prose { max-width: 72ch; margin: 0 auto; color: var(--ink-dim); font-size: 15px; line-height: 1.8; }
.prose h2 { font-size: clamp(20px, 2.4vw, 24px); color: var(--ink); margin: 32px 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.prose h3 { font-size: 16px; color: var(--ink); margin: 22px 0 8px; font-weight: 600; }
.prose p { margin: 10px 0; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); border-bottom: 1px dashed rgba(124,249,255,0.4); }

/* ===== Footer ===== */
footer.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 80px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot .col h5 { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; }
.foot .col a { display: block; font-size: 14px; color: var(--ink-dim); padding: 5px 0; transition: color .2s ease; }
.foot .col a:hover { color: var(--ink); }
.foot .tag { color: var(--ink-dim); font-size: 14px; max-width: 36ch; margin-top: 14px; }
.foot .bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-mute); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* Page header (small hero for non-home pages) */
.page-hero { padding: 64px 0 20px; }
@media (min-width: 768px) { .page-hero { padding: 96px 0 32px; } }
.page-hero h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; margin: 18px 0 18px; max-width: 18ch; }
.page-hero p { color: var(--ink-dim); max-width: 60ch; font-size: clamp(15px, 1.4vw, 17px); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ========================================================
   Hero viz — animated SVG constellation (right side)
   ======================================================== */
.page-hero { position: relative; overflow: hidden; }
.hero-viz {
  position: absolute;
  top: 50%;
  right: 2%;
  width: clamp(280px, 34vw, 460px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  display: none;
  opacity: 0.95;
  z-index: 0;
}
@media (min-width: 980px) { .hero-viz { display: block; } }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1, .page-hero p { max-width: 30ch; }
.page-hero p { max-width: 46ch; }
.hero-viz svg { width: 100%; height: 100%; display: block; overflow: visible; }

.hv-orbit { fill: none; stroke-width: 1; transform-origin: center; transform-box: fill-box; animation: hv-rotate linear infinite; }
.hv-orbit-1 { stroke: rgba(124,249,255,0.22); animation-duration: 26s; }
.hv-orbit-2 { stroke: rgba(167,139,250,0.20); animation-duration: 40s; animation-direction: reverse; }
.hv-orbit-3 { stroke: rgba(255,122,198,0.14); animation-duration: 58s; }
@keyframes hv-rotate { to { transform: rotate(360deg); } }

.hv-edge {
  fill: none;
  stroke: rgba(124,249,255,0.35);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 180 180;
  stroke-dashoffset: 180;
  animation: hv-draw 6s ease-in-out infinite;
}
.hv-edge:nth-of-type(1) { animation-delay: 0s; }
.hv-edge:nth-of-type(2) { animation-delay: 0.4s; stroke: rgba(167,139,250,0.35); }
.hv-edge:nth-of-type(3) { animation-delay: 0.9s; }
.hv-edge:nth-of-type(4) { animation-delay: 1.4s; stroke: rgba(255,122,198,0.30); }
.hv-edge:nth-of-type(5) { animation-delay: 1.8s; }
.hv-edge:nth-of-type(6) { animation-delay: 2.3s; stroke: rgba(167,139,250,0.30); }
.hv-edge:nth-of-type(7) { animation-delay: 2.8s; }
.hv-edge:nth-of-type(8) { animation-delay: 3.3s; stroke: rgba(255,122,198,0.28); }
@keyframes hv-draw {
  0% { stroke-dashoffset: 180; opacity: 0; }
  20% { opacity: 1; }
  50% { stroke-dashoffset: 0; opacity: 0.9; }
  80% { opacity: 0.5; }
  100% { stroke-dashoffset: -180; opacity: 0; }
}

.hv-node {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(124,249,255,0.8));
  transform-origin: center;
  transform-box: fill-box;
  animation: hv-pulse 3.6s ease-in-out infinite;
}
.hv-node:nth-of-type(1) { animation-delay: 0s; }
.hv-node:nth-of-type(2) { animation-delay: 0.3s; fill: var(--accent-2); filter: drop-shadow(0 0 8px rgba(167,139,250,0.8)); }
.hv-node:nth-of-type(3) { animation-delay: 0.7s; }
.hv-node:nth-of-type(4) { animation-delay: 1.1s; fill: var(--accent-3); filter: drop-shadow(0 0 8px rgba(255,122,198,0.8)); }
.hv-node:nth-of-type(5) { animation-delay: 1.5s; }
.hv-node:nth-of-type(6) { animation-delay: 1.9s; fill: var(--accent-2); filter: drop-shadow(0 0 8px rgba(167,139,250,0.7)); }
.hv-node:nth-of-type(7) { animation-delay: 2.3s; }
.hv-node:nth-of-type(8) { animation-delay: 2.7s; fill: var(--accent-3); filter: drop-shadow(0 0 8px rgba(255,122,198,0.7)); }
@keyframes hv-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 1; }
}

.hv-core {
  fill: var(--accent-2);
  filter: drop-shadow(0 0 20px rgba(167,139,250,0.9)) drop-shadow(0 0 40px rgba(124,249,255,0.5));
  transform-origin: center;
  transform-box: fill-box;
  animation: hv-core-pulse 4.5s ease-in-out infinite;
}
@keyframes hv-core-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.hv-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: hv-ping 4s cubic-bezier(.2,.8,.4,1) infinite;
}
.hv-ring:nth-of-type(2) { animation-delay: 1.3s; stroke: var(--accent-2); }
.hv-ring:nth-of-type(3) { animation-delay: 2.6s; stroke: var(--accent-3); }
@keyframes hv-ping {
  0% { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Hide viz in reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-viz { display: none !important; }
}

/* ========================================================
   Portfolio download button in header
   ======================================================== */
.nav-portfolio {
  display: none;
  align-items: center; gap: 8px;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
@media (min-width: 780px) { .nav-portfolio { display: inline-flex; } }
.nav-portfolio:hover { border-color: var(--accent); background: rgba(124,249,255,0.06); color: var(--accent); }
.nav-portfolio svg { width: 14px; height: 14px; }

/* ========================================================
   Floating WhatsApp FAB
   ======================================================== */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(5,6,10,0.7);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  z-index: 80;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 0 rgba(124,249,255,0.45),
    0 0 22px rgba(124,249,255,0.35),
    inset 0 0 12px rgba(124,249,255,0.15);
  transition: transform .2s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
  animation: wa-halo 2.6s ease-in-out infinite;
}
.wa-fab:hover {
  transform: translateY(-2px) scale(1.06);
  color: #7cf9ff;
  border-color: #a9fcff;
  box-shadow:
    0 0 0 6px rgba(124,249,255,0.12),
    0 0 36px rgba(124,249,255,0.6),
    inset 0 0 18px rgba(124,249,255,0.25);
}
.wa-fab svg { width: 26px; height: 26px; fill: currentColor; }
@keyframes wa-halo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,249,255,0.45), 0 0 20px rgba(124,249,255,0.3), inset 0 0 12px rgba(124,249,255,0.15); }
  50%      { box-shadow: 0 0 0 10px rgba(124,249,255,0), 0 0 30px rgba(124,249,255,0.55), inset 0 0 18px rgba(124,249,255,0.25); }
}
.wa-fab .wa-ping { position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: wa-ping 2.8s ease-out infinite; pointer-events: none; }
@keyframes wa-ping {
  0% { transform: scale(0.9); opacity: 0.7; }
  80% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

/* ========================================================
   Bottom floating dock (secondary nav)
   ======================================================== */
.dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(140%);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10,13,20,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 40px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,249,255,0.06);
  transition: transform .45s cubic-bezier(.2,.8,.3,1), opacity .3s ease;
  opacity: 0;
  pointer-events: none;
}
.dock.shown { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.dock a, .dock button {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--ink-dim);
  transition: color .2s ease, background .2s ease, transform .15s ease;
  position: relative;
  padding: 0;
  flex: none;
}
.dock a:hover, .dock button:hover { color: var(--ink); background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.dock a.active { color: var(--accent); background: rgba(124,249,255,0.10); }
.dock a svg, .dock button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dock .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.dock-tip {
  position: absolute;
  bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink); background: rgba(10,13,20,0.95);
  border: 1px solid var(--line-2);
  padding: 5px 10px; border-radius: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.dock a:hover .dock-tip, .dock button:hover .dock-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .dock {
    bottom: 14px;
    padding: 4px;
    gap: 0;
    max-width: calc(100vw - 24px);
  }
  .dock a, .dock button { min-width: 38px; height: 38px; }
  .dock a svg, .dock button svg { width: 16px; height: 16px; }
  .dock .sep { margin: 0 2px; height: 18px; }
  .dock-brand { width: 38px !important; height: 38px !important; padding: 6px !important; }
  .dock a.active { padding: 0 12px 0 8px; }
  .dock a.active .dock-label { max-width: 90px; font-size: 11px; margin-left: 4px; }
  /* Hide low-value items on narrow screens so the remaining icons actually fit */
  .dock a[aria-label="Home"],
  .dock a[aria-label="About"],
  .dock a[aria-label="Download portfolio PDF"],
  .dock button[data-action="top"] { display: none; }
  .dock .sep { display: none; }
  .wa-fab { right: 14px; bottom: 72px; width: 48px; height: 48px; }
  .wa-fab svg { width: 22px; height: 22px; }
}

/* ========================================================
   Work page — filterable grid
   ======================================================== */
.work-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
  padding-bottom: 8px;
}
.work-filter {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13px; color: var(--ink-dim);
  background: transparent; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
  font-family: inherit;
}
.work-filter:hover { color: var(--ink); border-color: var(--line-3); background: var(--card); }
.work-filter.active {
  background: rgba(124,249,255,0.10);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(124,249,255,0.25);
}
.work-filter .n {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--ink-dim);
}
.work-filter.active .n { background: rgba(124,249,255,0.15); color: var(--accent); }

.work-grid {
  display: grid; gap: 20px; margin-top: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-tile {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  transition: transform .28s ease, border-color .25s ease, opacity .3s ease;
  animation: work-in .5s ease both;
}
.work-tile:hover { transform: translateY(-4px); border-color: var(--line-3); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); }
.work-tile.hidden { display: none; }
@keyframes work-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.work-tile .visual {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,249,255,0.08), rgba(167,139,250,0.06), rgba(255,122,198,0.05));
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.work-tile .visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.5;
}
.work-tile .monogram {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 600; letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; z-index: 1;
}
.work-tile .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.work-tile .body .eyebrow { font-size: 10px; margin-bottom: 10px; }
.work-tile h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.work-tile p { color: var(--ink-dim); font-size: 13px; line-height: 1.55; flex: 1; }
.work-tile .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.work-tile .chips .chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-dim); text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card);
}
.work-tile .link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
}
.work-tile .link svg { width: 12px; height: 12px; }

.work-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px;
  color: var(--ink-dim); font-size: 14px;
}

/* ========================================================
   Work tile live screenshots
   ======================================================== */
.work-tile .visual { position: relative; }
.work-tile .shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 2;
}
.work-tile .shot.loaded { opacity: 1; }
.work-tile .visual .monogram { position: relative; z-index: 1; }
.work-tile:hover .shot.loaded { opacity: 0.85; }
.work-tile .shot-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,6,10,0.55) 100%);
  z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.work-tile .shot.loaded ~ .shot-overlay { opacity: 1; }

/* ========================================================
   Dock — active label + brand logo
   ======================================================== */
.dock-brand {
  display: grid !important; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  padding: 8px;
  background: rgba(124,249,255,0.08);
  border: 1px solid rgba(124,249,255,0.35);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.dock-brand:hover { background: rgba(124,249,255,0.15); border-color: rgba(124,249,255,0.55); transform: translateY(-1px); }
.dock-brand img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(124,249,255,0.5)); }

.dock a .dock-label {
  display: inline-block;
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 12px; font-weight: 500; font-family: inherit;
  color: var(--accent);
  transition: max-width .35s cubic-bezier(.2,.8,.2,1), margin .25s ease, opacity .25s ease .05s;
  opacity: 0;
  margin-left: 0;
}
.dock a.active { width: auto; padding: 0 14px 0 10px; background: rgba(124,249,255,0.12); }
.dock a.active .dock-label { max-width: 140px; margin-left: 6px; opacity: 1; }
.dock a.active .dock-tip { display: none; }
.dock a.active svg { stroke: var(--accent); }

@media (max-width: 520px) {
  .dock-brand { width: 40px; height: 40px; padding: 6px; }
  .dock a.active .dock-label { max-width: 100px; }
}

/* ========================================================
   Footer socials row
   ======================================================== */
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.socials a {
  position: relative;
  width: 38px; height: 38px;
  flex: none;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--accent);
  background: rgba(255,255,255,0.02);
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}
.socials a:hover { border-color: var(--accent); background: rgba(124,249,255,0.08); transform: translateY(-2px); }
.socials a img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(124,249,255,0.35));
}
