/* ============================================================
   Monochrome design system — pure black/white, reversed per mode.
   No accent hue. Emphasis is carried by contrast and inversion.
   Light is the default (:root); dark overrides via [data-theme="dark"],
   set on <html> before first paint by the inline theme bootstrap.
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-var.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
}

:root {
  color-scheme: light;

  /* ---------- Surfaces (warm near-white, never a hue) ---------- */
  --bg: #fafaf9;
  --surface: #f2f1ee;
  --surface-2: #e9e7e2;

  /* ---------- Text hierarchy (3 steps, all WCAG AA everywhere) ---------- */
  --text: #1a1814;
  --text-muted: #56524a;
  --text-faint: #66625a;

  /* ---------- Hairlines (low-opacity ink) ---------- */
  --line: rgba(26, 24, 20, 0.12);
  --line-strong: rgba(26, 24, 20, 0.2);
  --grid-dot: rgba(26, 24, 20, 0.06);

  /* ---------- Emphasis by inversion (no color) ---------- */
  --fill: var(--text);
  --fill-contrast: var(--bg);
  --ring: var(--text);
  --live: var(--text);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-brand: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.22s;
  --dur-slow: 0.32s;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a0a0b;
  --surface: #131315;
  --surface-2: #1b1b1e;

  --text: #f4f4f5;
  --text-muted: #a6a6ab;
  --text-faint: #86868c;

  --line: rgba(244, 244, 245, 0.11);
  --line-strong: rgba(244, 244, 245, 0.2);
  --grid-dot: rgba(244, 244, 245, 0.05);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code,
pre {
  font-family: var(--font-mono);
}

::selection {
  background: var(--fill);
  color: var(--fill-contrast);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--line-strong);
  border-radius: 999px;
  border: 3px solid var(--bg);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-faint);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

[id] {
  scroll-margin-top: 5.5rem;
}

.grid-backdrop {
  position: relative;
}

.grid-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.4px);
  background-size: 24px 24px;
  background-position: 50% 0;
  mask-image: radial-gradient(128% 82% at 50% 12%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(128% 82% at 50% 12%, #000 0%, transparent 70%);
}

.grid-backdrop > * {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  top: -200%;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.skip-link:focus-visible {
  top: 1rem;
}

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

/* ---------- Reusable tooltip ---------- */
.tip {
  position: relative;
}

.tip::after,
.tip::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.3rem);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.tip::after {
  content: attr(data-tip);
  padding: 0.34rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--fill);
  color: var(--fill-contrast);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.45);
}

.tip::before {
  content: "";
  bottom: calc(100% + 0.3rem);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--fill);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.tip:hover::after,
.tip:hover::before,
.tip:focus-visible::after,
.tip:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.container {
  width: min(1120px, calc(100% - 2.6rem));
  margin-inline: auto;
}

.main-shell {
  position: relative;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(116%) blur(10px);
  -webkit-backdrop-filter: saturate(116%) blur(10px);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.site-header-scrolled,
.site-header-menu-open {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom-color: var(--line);
}

.header-shell {
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.header-lead {
  grid-column: 1;
  min-width: 0;
  justify-self: start;
}

.header-trail {
  grid-column: 3;
  min-width: 0;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Mood cycler (decorative, colour exception) ---------- */
.mood-cycler {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
}

.mood-cycler::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--mood, #888) 42%, transparent) 0%,
    transparent 70%
  );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--mood, #888) 34%, transparent),
    0 0 14px -2px color-mix(in srgb, var(--mood, #888) 55%, transparent);
  transition:
    background var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease);
  animation: mood-glow 2.6s ease-in-out infinite;
}

.mood-emoji {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.mood-emoji-active {
  opacity: 1;
  pointer-events: auto;
}

.mood-emoji-svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.mood-anim-bounce {
  animation: mood-bounce 0.72s var(--ease);
}

.mood-anim-pulse {
  animation: mood-pulse 0.85s var(--ease);
}

.mood-anim-heartbeat {
  animation: mood-heartbeat 0.9s var(--ease);
}

@keyframes mood-bounce {
  0% {
    transform: translateY(-45%) scale(0.6);
    opacity: 0;
  }
  55% {
    transform: translateY(12%) scale(1.06);
    opacity: 1;
  }
  75% {
    transform: translateY(-6%) scale(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes mood-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.12);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes mood-heartbeat {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  25% {
    transform: scale(1.16);
    opacity: 1;
  }
  45% {
    transform: scale(0.92);
  }
  65% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes mood-glow {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

.logo-mark {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
}

.logo-text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.05;
}

.logo-name {
  font-family: var(--font-brand);
  font-size: 1.32rem;
  font-weight: 500;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.003em;
  line-height: 1;
  color: var(--text);
}

.logo-subtitle {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--dur) var(--ease);
}

.logo-mark:hover .logo-subtitle,
.logo-mark:focus-visible .logo-subtitle {
  color: var(--text-muted);
}

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.9rem;
}

.site-nav-link {
  position: relative;
  padding: 0.2rem 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.site-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width var(--dur-slow) var(--ease);
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--text);
}

.site-nav-link:hover::before,
.site-nav-link:focus-visible::before {
  width: 100%;
}

.mobile-menu-toggle {
  position: relative;
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  border-color: var(--text-faint);
}

.mobile-menu-toggle-icon-close {
  display: none;
}

.mobile-menu-toggle-open .mobile-menu-toggle-icon-open {
  display: none;
}

.mobile-menu-toggle-open .mobile-menu-toggle-icon-close {
  display: inline-flex;
}

.mobile-nav-panel {
  display: none;
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.button-primary {
  background: var(--fill);
  border-color: var(--fill);
  color: var(--fill-contrast);
  font-weight: 600;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: color-mix(in srgb, var(--fill) 86%, var(--bg));
  border-color: color-mix(in srgb, var(--fill) 86%, var(--bg));
  transform: translateY(-1px);
}

/* ---------- Theme toggle (icon-only, three-way) ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.theme-toggle-btn:not(.theme-toggle-btn-active):hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.theme-toggle-btn:active {
  transform: scale(0.9);
}

.theme-toggle-btn-active {
  background: var(--fill);
  color: var(--fill-contrast);
}

.theme-toggle-btn svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Sections & headings ---------- */
.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-tight {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
  text-wrap: balance;
}

.section-heading {
  margin-bottom: 2.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
}

.section-heading-index {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.section-heading-index b {
  color: var(--text);
  font-weight: 600;
}

.section-heading-index::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--text-faint);
}

.section-title {
  margin: 0;
  max-width: 20ch;
  font-size: var(--text-4xl);
}

.section-subtitle {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  max-width: 60ch;
  font-size: 1.0625rem;
}

.section-heading-sub {
  margin-bottom: 1.8rem;
}

.section-heading-sub .section-title {
  font-size: var(--text-3xl);
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  padding-top: clamp(5rem, 10vw, 8.5rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.hero-eyebrow .live-dot {
  width: 0.5rem;
  height: 0.5rem;
}

.hero-title {
  margin: 0;
  max-width: 20ch;
  font-size: var(--text-6xl);
  line-height: 1.04;
}

.hero-accent {
  padding: 0 0.16em;
  border-radius: 0.12em;
  background: var(--fill);
  color: var(--fill-contrast);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lede {
  margin: 1.9rem auto 0;
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 1.2rem;
  line-height: 1.62;
}

.hero-context {
  margin: 1.15rem auto 0;
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-badges {
  margin-top: clamp(2.4rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.95rem;
  border: var(--badge-border-width, 1px) solid var(--badge-border, var(--line-strong));
  border-radius: 14px;
  background: var(--badge-bg, var(--surface));
  box-shadow:
    0 12px 32px -14px rgba(15, 23, 42, 0.3),
    0 2px 6px -2px rgba(15, 23, 42, 0.12);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.hero-badge:hover,
.hero-badge:focus-visible {
  transform: translateY(-2px);
  border-color: var(--badge-border-hover, var(--text-faint));
  box-shadow:
    0 18px 42px -14px rgba(15, 23, 42, 0.38),
    0 4px 10px -3px rgba(15, 23, 42, 0.16);
}

.hero-badge:active {
  transform: translateY(0);
}

.hero-badge-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--badge-mark-bg, var(--fill));
  color: var(--badge-mark-fg, var(--fill-contrast));
}

.hero-badge-icon {
  flex: none;
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  line-height: 1;
  text-align: left;
}

.hero-badge-eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--badge-eyebrow, var(--text-muted));
}

.hero-badge-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--badge-name, var(--text));
}

.hero-badge-accent {
  flex: none;
  margin-left: 0.15rem;
  color: var(--badge-accent, var(--text-faint));
}

.hero-badge--producthunt {
  --ph-orange: #c84d2a;
  --badge-border-width: 3px;
  --badge-border: var(--ph-orange);
  --badge-border-hover: color-mix(in srgb, var(--ph-orange) 84%, #000);
  --badge-bg: #ffffff;
  --badge-mark-bg: var(--ph-orange);
  --badge-mark-fg: #fff;
  --badge-eyebrow: #4b5563;
  --badge-name: #1d2433;
  --badge-accent: var(--ph-orange);
}

.hero-badge--github {
  --badge-border-width: 1px;
  --badge-border: var(--line-strong);
  --badge-border-hover: var(--text-faint);
  --badge-bg: var(--surface);
  --badge-mark-bg: var(--fill);
  --badge-mark-fg: var(--fill-contrast);
  --badge-eyebrow: var(--text-muted);
  --badge-name: var(--text);
  --badge-accent: var(--text-faint);
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent);
  animation: live-pulse 2.4s ease-out infinite;
}

.hero-eyebrow .live-dot-open {
  --live: #16a34a;
}

[data-theme="dark"] .hero-eyebrow .live-dot-open {
  --live: #34d399;
}

.hero-section .hero-reveal-sentinel {
  position: absolute;
  top: 2.25rem;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ---------- Console (about) ---------- */
.console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.console-bar {
  min-height: 2.3rem;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.console-bar p {
  margin: 0 0 0 0.4rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.terminal-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.console-screen {
  padding: 1.15rem 1.1rem 1.3rem;
}

.console-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
}

.console-prompt {
  color: var(--text-faint);
}

.console-output {
  color: var(--text);
}

.console-list-item {
  color: var(--text-muted);
}

/* ---------- Alternating section band ---------- */
.section-band {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- Current work ---------- */
.ventures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.ventures-past {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.venture-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem 1.7rem;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  transition: border-color var(--dur) var(--ease);
}

.venture-card:hover {
  border-color: var(--line-strong);
}

.venture-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.venture-kind {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.venture-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.venture-name {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.06;
}

.venture-role {
  margin: 0.45rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-faint);
}

.venture-role b {
  color: var(--text-muted);
  font-weight: 600;
}

.venture-summary {
  margin: 1.1rem 0 0;
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.venture-highlights {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.6rem;
}

.venture-highlights li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.venture-highlights li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.6rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 1px;
  background: var(--text-faint);
  transform: rotate(45deg);
}

.venture-footer {
  margin-top: auto;
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.venture-domain {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}

.venture-domain-icon {
  color: var(--text-faint);
  transition:
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.venture-card:hover .venture-domain-icon {
  transform: translate(2px, -2px);
  color: var(--text);
}

/* ---------- Generic flat panel ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  height: 100%;
}

.card h2,
.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
}

/* ---------- Experience ---------- */
.exp-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.exp-item {
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}

.exp-item:first-child {
  border-top: 0;
}

.exp-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.exp-name {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
}

.exp-name strong {
  font-weight: 600;
  color: var(--text);
}

.exp-role {
  margin-left: 0.65rem;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--text-faint);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.exp-location {
  margin: 0.5rem 0 0;
  color: var(--text-faint);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---------- Past projects ---------- */
.past-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.past-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}

.past-item:first-child {
  border-top: 0;
}

.past-index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  padding-top: 0.35rem;
}

.past-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.past-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.past-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.past-scope {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.past-summary {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 74ch;
  line-height: 1.65;
}

/* ---------- Tags ---------- */
.tag-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--surface);
}

/* ---------- Inline link ---------- */
.project-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.28em;
  transition: text-decoration-color var(--dur) var(--ease);
}

.project-link:hover,
.project-link:focus-visible {
  text-decoration-color: var(--text);
}

/* ---------- About ---------- */
.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.2rem;
  align-items: start;
}

.about-story-card {
  border: 0;
  background: none;
  padding: 0;
}

.about-story-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0;
}

.about-story-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.about-file-label {
  margin: 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.about-story-card p + p {
  margin-top: 0.85rem;
}

.about-craft-note {
  margin-top: 1.3rem;
  padding-left: 1rem;
  border-left: 2px solid var(--text);
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.6;
}

.about-focus-strip {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-focus-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--surface);
}

.about-panels {
  margin-top: clamp(2.6rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.2rem;
  align-items: start;
}

.about-panel-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  font-weight: 500;
}

.about-stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.about-stack-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.78rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--surface);
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.about-stack-chip:hover {
  border-color: var(--text-faint);
  color: var(--text);
}

.about-collab-flow {
  border-top: 1px solid var(--line);
}

.about-collab-item {
  margin: 0;
  padding: 1.05rem 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.about-collab-item span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding-top: 0.16rem;
}

.about-collab-item strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-lede {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-eyebrow b {
  color: var(--text);
  font-weight: 600;
}

.contact-title {
  margin: 0;
  font-size: var(--text-5xl);
}

.contact-subtitle {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- Email pill ---------- */
.email-pill {
  margin-top: clamp(2.4rem, 5vw, 3.2rem);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.email-pill:hover {
  border-color: var(--text-faint);
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  transform: translateY(-1px);
}

.email-pill:active {
  transform: translateY(0);
}

.email-pill-copied,
.email-pill-copied:hover {
  border-color: var(--text);
}

.email-pill-address {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0.045em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-pill-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
  color: var(--text-faint);
  opacity: 1;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.email-pill:hover .email-pill-icon,
.email-pill:focus-visible .email-pill-icon {
  color: var(--text);
  border-left-color: var(--line-strong);
}

.email-pill-copied .email-pill-icon,
.email-pill-copied:hover .email-pill-icon {
  color: var(--text);
}

.email-pill-icon-check {
  display: none;
}

.email-pill-copied .email-pill-icon-copy {
  display: none;
}

.email-pill-copied .email-pill-icon-check {
  display: inline-flex;
  animation: copy-pop 0.34s var(--ease);
}

@keyframes copy-pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.contact-socials {
  margin: clamp(1.8rem, 3.5vw, 2.4rem) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.contact-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.contact-social:hover,
.contact-social:focus-visible {
  color: var(--fill-contrast);
  background: var(--fill);
  border-color: var(--fill);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.footer-logo {
  justify-content: center;
}

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

.footer-nav-link {
  position: relative;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.footer-nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width var(--dur-slow) var(--ease);
}

.footer-nav-link:hover,
.footer-nav-link:focus-visible {
  color: var(--text);
}

.footer-nav-link:hover::before,
.footer-nav-link:focus-visible::before {
  width: 100%;
}

.footer-copyright {
  margin: 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ---------- Empty / 404 ---------- */
.empty-state {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 0.9rem auto 1.6rem;
  max-width: 44ch;
  color: var(--text-muted);
}

.not-found-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ---------- Checkout ---------- */
.checkout-page {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  max-width: 30rem;
  text-align: center;
}

.checkout-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.checkout-title {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.checkout-subtitle {
  margin: 0.9rem auto 0;
  max-width: 40ch;
  color: var(--text-muted);
}

.checkout-currency {
  margin: 2.25rem 0;
}

.checkout-stripe {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.currency-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.currency-toggle-btn {
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.currency-toggle-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.currency-toggle-btn:not(.currency-toggle-btn-active):hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.currency-toggle-btn:active {
  transform: scale(0.96);
}

.currency-toggle-btn-active {
  background: var(--fill);
  color: var(--fill-contrast);
}

.checkout-trust {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 auto;
  padding: 0;
  max-width: 26rem;
  list-style: none;
  text-align: left;
}

.checkout-trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.checkout-trust svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--text);
}

.checkout-support {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.checkout-support p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.checkout-support-line {
  margin-top: 0.4rem !important;
}

.checkout-support-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.checkout-support-links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur) var(--ease);
}

.checkout-support-links a:hover,
.checkout-support-links a:focus-visible {
  text-decoration-color: var(--text);
}

/* ---------- Motion (reveal on load, subtle + staggered) ---------- */
.reveal {
  animation: riseIn 0.6s var(--ease) both;
}

.exp-item.reveal:nth-child(2),
.past-item.reveal:nth-child(2) {
  animation-delay: 0.06s;
}

.exp-item.reveal:nth-child(3),
.past-item.reveal:nth-child(3) {
  animation-delay: 0.12s;
}

.exp-item.reveal:nth-child(4),
.past-item.reveal:nth-child(4) {
  animation-delay: 0.18s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 0.42rem color-mix(in srgb, var(--live) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 0%, transparent);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .about-story-grid,
  .about-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-title {
    font-size: var(--text-5xl);
  }

  .exp-line,
  .past-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .past-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .past-index {
    padding-top: 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 740px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .venture-highlights {
    grid-template-columns: 1fr;
  }

  .header-shell {
    min-height: 4.2rem;
  }

  .site-nav {
    display: none;
  }

  .mood-cycler {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-nav-panel {
    display: grid;
    grid-template-rows: 0fr;
    border-top: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transition:
      grid-template-rows var(--dur) var(--ease),
      opacity 0.18s var(--ease);
  }

  .mobile-nav-panel-open {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-panel-inner {
    overflow: hidden;
  }

  .mobile-nav {
    display: grid;
    gap: 0.5rem;
    padding: 0.8rem 0 1rem;
  }

  .mobile-nav-link {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.72rem 0.82rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface);
    transition:
      border-color var(--dur) var(--ease),
      color var(--dur) var(--ease);
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus-visible {
    border-color: var(--line-strong);
    color: var(--text);
  }

  .console-screen {
    padding: 0.9rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

  .contact-title {
    font-size: var(--text-4xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .section-heading-sub .section-title {
    font-size: var(--text-2xl);
  }

  .venture-name {
    font-size: var(--text-2xl);
  }

  .empty-state h1,
  .empty-state h2 {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 480px) {
  .venture-top {
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
  }

  .venture-status {
    white-space: normal;
  }

  .display,
  .venture-name,
  .past-title {
    letter-spacing: -0.01em;
  }

  .venture-footer {
    gap: 0.6rem 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
