/* ─── Otherworld.dev — base styles ─────────────────────────────────────── */

:root {
  --bg: #050505;
  --bg-1: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #16171a;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --fg: #f4f4f5;
  --fg-1: #d4d4d8;
  --fg-2: #a1a1aa;
  --fg-3: #71717a;
  --fg-4: #52525b;
  --accent: #22d3c4;
  --accent-glow: rgba(34, 211, 196, 0.45);
  --accent-soft: rgba(34, 211, 196, 0.12);
  --accent-ink: #042320;
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1240px;
  --pad: 32px;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Manrope", var(--font-sans);
  --motion: 1; /* 0=off, 0.5=subtle, 1=lively */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--fg-1);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ─── Type scale ─── */
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.t-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 1px;
  box-shadow: 0 0 12px var(--accent-glow);
}
.t-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin: 0;
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0;
}
.t-h3 {
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--fg);
  margin: 0;
}
.t-body { color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.t-body-lg { color: var(--fg-1); font-size: 18px; line-height: 1.55; letter-spacing: -0.008em; }
.t-mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.01em; }

/* ─── Layout ─── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--pad); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arr {
  transition: transform 0.2s ease;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.7;
}
.btn:hover .arr { transform: translateX(3px); opacity: 1; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn-primary:hover { background: #94ff67; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: rgba(255,255,255,0.22); }
.btn-link {
  height: auto;
  padding: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.btn-link:hover { color: var(--fg); }

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5,5,5,0.62);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.nav-brand .mark {
  width: 26px; height: 26px;
  background-image: url("assets/otherworld-icon.png");
  background-size: 142%;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  filter: hue-rotate(var(--logo-hue-rotate, 0deg));
}
.logo-wordmark {
  filter: hue-rotate(var(--logo-hue-rotate, 0deg));
}
.nav-brand .slash { color: var(--fg-3); font-weight: 300; margin: 0 2px; }
.nav-brand .role { color: var(--fg-3); font-weight: 400; font-family: var(--font-mono); font-size: 12px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--fg-2);
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-2); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::before {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--accent);
}
.nav-cta { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav-mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-1);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-panel a .arr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
}
.nav-mobile-panel a:hover { background: var(--bg-2); }
.nav-mobile-panel a.active {
  color: var(--accent);
}
.nav-mobile-panel a.active .arr { color: var(--accent); }
.nav-mobile-panel a.nav-mobile-hire {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-bottom: none;
}
.nav-mobile-panel a.nav-mobile-hire .arr { color: var(--accent-ink); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta-hire { display: none; }
  .nav-toggle { display: flex; }
  .nav-open .nav-mobile-panel { display: block; }
  .nav-inner { padding: 12px 20px; }
}

/* About — route timeline + publications: collapse to single column */
@media (max-width: 640px) {
  .route-timeline {
    grid-template-columns: 1fr !important;
    row-gap: 0 !important;
  }
  .route-timeline > div {
    padding: 6px 0 !important;
    border-bottom: none !important;
  }
  .route-timeline > div:nth-child(3n+1) {
    padding-top: 14px !important;
  }
  .route-timeline > div:nth-child(3n+3) {
    padding-bottom: 14px !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .pub-row {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 8px;
  }
  .pub-row > div:nth-child(1) { width: auto !important; }
  .pub-row > div:nth-child(3) {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding-top: 0 !important;
  }

  .skills { grid-template-columns: 1fr !important; }
  .twk-panel { width: calc(100vw - 24px) !important; max-width: 280px; }
}

/* ─── Sections / scaffolding ─── */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-sm { padding: 56px 0; }
.section-tag {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
}
.section-tag .right { color: var(--fg-3); font-family: var(--font-mono); font-size: 11px; }

/* ─── Hero ─── */
.hero { padding: 100px 0 88px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  margin-bottom: 28px;
  background: rgba(255,255,255,0.02);
}
.hero-eyebrow .pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: pulse calc(2.4s / max(var(--motion), 0.01)) ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .muted { color: var(--fg-3); }
.hero-sub {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 560px;
}
.hero-actions { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.hero-meta .lbl { display: block; color: var(--fg-4); margin-bottom: 4px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; }
.hero-meta .val { color: var(--fg-1); font-family: var(--font-sans); font-size: 14px; }

/* hero visual — terminal/status panel */
.hero-vis {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    var(--bg-1);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px -30px rgba(0,0,0,0.7);
}
.hero-vis-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}
.hero-vis-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-3); }
.hero-vis-bar .dot.live { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.hero-vis-body { padding: 20px 22px 24px; }
.hero-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.85;
  white-space: pre;
}
.hero-line .k { color: var(--fg-3); }
.hero-line .v { color: var(--fg); }
.hero-line .g { color: var(--accent); }
.hero-line .c { color: var(--fg-3); font-style: italic; }
.hero-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink calc(1.05s / max(var(--motion), 0.01)) steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── Markaloud feature ─── */
.feature {
  position: relative;
  padding: 88px 0 104px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.feature-spotlight {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 56px;
  background:
    radial-gradient(900px 380px at 20% 0%, rgba(34,211,196,0.10), transparent 70%),
    radial-gradient(700px 400px at 100% 100%, rgba(34,211,196,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
}
.feature-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(closest-side at 30% 40%, #000 30%, transparent 80%);
}
.feature-spotlight > * { position: relative; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--fg);
  margin: 0 0 22px;
}
.feature-title .accent { color: var(--accent); }
.feature-sub { color: var(--fg-2); font-size: 17px; line-height: 1.55; max-width: 520px; }
.feature-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.feature-stats .stat .n { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.feature-stats .stat .l { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.feature-cta { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Markaloud product mock (audio waveform card) */
.mark-mock {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: linear-gradient(180deg, #0d0e10, #07080a);
  padding: 24px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.mark-mock-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.mark-mock-head .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
}
.mark-mock-head .meta { flex: 1; min-width: 0; }
.mark-mock-head .meta .t { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.mark-mock-head .meta .s { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.mark-mock-head .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 64px;
  padding: 0 2px;
}
.wave .bar {
  flex: 1;
  background: var(--fg-4);
  border-radius: 2px;
  min-height: 4px;
  transition: background 0.2s;
}
.wave .bar.live { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.wave .bar.played { background: var(--fg-2); }
.mark-timeline {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  margin-top: 6px;
}
.mark-comments {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mark-comment {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
}
.mark-comment .ts {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  flex: 0 0 auto;
  width: 44px;
}
.mark-comment .body { color: var(--fg-1); font-size: 13px; line-height: 1.45; }
.mark-comment .body .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  color: var(--fg-2);
  margin-right: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mark-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11px;
}
.mark-controls .play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 11px;
}

/* ─── Manifesto treatment ─── */
.feature-manifesto {
  text-align: left;
  max-width: 1040px;
  margin: 0 auto;
}
.manifesto-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.manifesto-quote .accent { color: var(--accent); }
.manifesto-quote .muted { color: var(--fg-3); }
.manifesto-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
@media (max-width: 720px) {
  .manifesto-meta { grid-template-columns: repeat(2, 1fr); }
}
.manifesto-meta .col .lbl { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.manifesto-meta .col .val { color: var(--fg-1); font-size: 15px; }

/* ─── Split treatment ─── */
.feature-split {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-1);
  min-height: 540px;
}
@media (max-width: 900px) {
  .feature-split { grid-template-columns: 1fr; }
}
.feature-split .left {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(600px 300px at 0 100%, rgba(124,252,77,0.08), transparent 70%),
    var(--bg-1);
  border-right: 1px solid var(--line);
}
.feature-split .right {
  padding: 48px;
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.feature-split .right::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* ─── Work grid ─── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  background: var(--bg-1);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: background 0.2s;
  cursor: default;
  position: relative;
}
.work-card:hover { background: var(--bg-2); }
.work-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.08em;
}
.work-card .vis {
  height: 120px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.work-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.work-card .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.work-card .ttl { font-weight: 600; font-size: 16px; color: var(--fg); letter-spacing: -0.012em; }
.work-card .desc { font-size: 13.5px; color: var(--fg-2); line-height: 1.5; }

/* ─── Clients strip ─── */
.clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .clients { grid-template-columns: repeat(3, 1fr); } }
.client-cell {
  padding: 32px 24px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
}
.client-cell:last-child { border-right: 0; }
.client-cell:hover { color: var(--fg); background: var(--bg-1); }

/* ─── Contact / footer ─── */
.contact-cta {
  padding: 96px 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% 100%, rgba(34,211,196,0.10), transparent 70%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
  position: relative;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-cta h2 .accent { color: var(--accent); }
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.contact-row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.contact-row .v { color: var(--fg-1); }

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer .links { display: flex; gap: 18px; }
.footer .links a:hover { color: var(--fg); }

/* ─── Page-specific (Markaloud, Work, About, Contact) ─── */
.page-head {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-head .kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-head .sub { color: var(--fg-2); font-size: 18px; margin-top: 22px; max-width: 640px; }

/* Markaloud product page sections */
.howit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .howit-grid { grid-template-columns: 1fr; } }
.howit-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: var(--bg-1);
}
.howit-card .step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.howit-card h3 { margin: 0 0 10px; }
.howit-card p { color: var(--fg-2); font-size: 14px; margin: 0; }

.featlist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 720px) { .featlist { grid-template-columns: 1fr; } }
.featlist .item { padding: 24px 26px; background: var(--bg-1); }
.featlist .item h4 { margin: 0 0 6px; font-size: 15px; color: var(--fg); font-weight: 600; }
.featlist .item p { margin: 0; color: var(--fg-2); font-size: 13.5px; }
.featlist .item .icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-grid .left { position: sticky; top: 96px; align-self: start; }
.about-grid .left .avatar {
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg, var(--bg-2) 0 10px, var(--bg-1) 10px 20px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--fg-4);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 24px;
}
.about-grid h2 { margin-top: 0; }
.about-grid p { color: var(--fg-1); font-size: 17px; line-height: 1.65; }
.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
}
.skill { padding: 16px 18px; background: var(--bg-1); }
.skill .l { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.skill .v { color: var(--fg-1); font-size: 14px; }

/* Contact form */
.form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--fg);
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
  font-size: 14px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-status { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* ─── Motion ─── */
.fade-in {
  opacity: 0;
  transform: translateY(calc(18px * var(--motion)));
  animation: fadeUp calc(0.7s / max(var(--motion), 0.01)) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.fade-in[data-delay="1"] { animation-delay: calc(80ms * var(--motion)); }
.fade-in[data-delay="2"] { animation-delay: calc(160ms * var(--motion)); }
.fade-in[data-delay="3"] { animation-delay: calc(240ms * var(--motion)); }
.fade-in[data-delay="4"] { animation-delay: calc(320ms * var(--motion)); }
.fade-in[data-delay="5"] { animation-delay: calc(400ms * var(--motion)); }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.bg-grain::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Background ambient gradient — varies with motion */
.bg-ambient::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  background:
    radial-gradient(60vmax 50vmax at 20% -10%, rgba(34,211,196,0.05), transparent 60%),
    radial-gradient(50vmax 50vmax at 90% 110%, rgba(34,211,196,0.04), transparent 60%);
  z-index: 0;
  pointer-events: none;
  filter: blur(20px);
}
main { position: relative; z-index: 2; }
.nav { z-index: 50; }

/* Reduced motion when --motion is 0 */
[data-motion="off"] * { animation-duration: 0.01s !important; animation-delay: 0s !important; transition-duration: 0.01s !important; }
[data-motion="off"] .fade-in { opacity: 1; transform: none; }
[data-motion="off"] .hero-eyebrow .pulse::after { display: none; }
[data-motion="off"] .hero-cursor { animation: none; }

/* ─── Print / Save-as-PDF (CV mode) ───────────────────────────────────── */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  html, body {
    background: white !important;
    color: #111 !important;
    font-size: 11pt;
  }
  /* Hide site chrome */
  .nav, .footer, .hero, .feature, .contact-cta, .clients,
  .twk-panel, .bg-grain::after, .bg-ambient::before {
    display: none !important;
  }
  /* Hide work page CTA, contact page entirely when printing about */
  main > .section .work-grid { break-inside: avoid; }
  /* Strip dark backgrounds + glows */
  *, *::before, *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }
  .section, .page-head, .about-grid, .about-grid .left, .about-grid > div {
    padding: 0 !important;
    border: 0 !important;
  }
  .page-head { padding: 0 0 12pt 0 !important; border-bottom: 0.5pt solid #ccc !important; margin-bottom: 16pt; }
  .page-head .kicker { color: #0a8175 !important; }
  .page-head h1 { font-size: 22pt !important; color: #111 !important; }
  .page-head .sub { color: #444 !important; font-size: 11pt !important; }

  .about-grid {
    display: grid !important;
    grid-template-columns: 1fr 2.2fr !important;
    gap: 18pt !important;
  }
  .about-grid .left { position: static !important; }
  .about-grid .left .avatar {
    border: 0.5pt solid #ddd !important;
    aspect-ratio: 1 / 1 !important;
  }
  .about-grid p { color: #222 !important; font-size: 10.5pt !important; line-height: 1.45 !important; margin: 0 0 8pt 0 !important; }
  .about-grid p strong { color: #111 !important; }
  .about-grid a { color: #0a8175 !important; text-decoration: none !important; }

  /* Skills grid → compact rows */
  .skills {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4pt !important;
    background: white !important;
    border: 0 !important;
    margin-top: 8pt !important;
  }
  .skill { padding: 4pt 0 !important; background: white !important; border-bottom: 0.5pt dotted #ccc !important; }
  .skill .l { color: #0a8175 !important; font-size: 7.5pt !important; }
  .skill .v { color: #222 !important; font-size: 9.5pt !important; }

  /* Route timeline */
  .t-eyebrow { color: #555 !important; }
  .t-eyebrow .dot { background: #0a8175 !important; }

  /* Publications — keep visible, tighten */
  h4, h3 { color: #111 !important; }

  /* Print hint button is hidden in print */
  .print-cv-btn { display: none !important; }

  /* Page break helpers */
  .pub-item, .work-card { break-inside: avoid; }

  /* Force every page in app to break — only print About content */
  main:not(.cv-mode) { display: none !important; }
}
