/* ==========================================================
   DESIGN TOKENS
   Reference system: Linear, Vercel, Raycast, Resend, Clerk, Framer.
   Near-black surface, hairline borders, one restrained accent,
   monospace metadata, one deliberate spacing scale.
   ========================================================== */
:root {
  /* Color */
  --color-bg: #08090d;
  --color-bg-elevated: #0e1016;
  --color-bg-elevated-2: #13151d;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-strong: rgba(255, 255, 255, 0.13);
  --color-text: #f4f5f8;
  --color-text-muted: #9199ac;
  --color-text-faint: #5b6274;
  --color-accent: #3b6bff;
  --color-accent-bright: #6d92ff;
  --color-accent-dim: rgba(59, 107, 255, 0.12);
  --color-accent-border: rgba(59, 107, 255, 0.28);
  --color-accent-glow: rgba(59, 107, 255, 0.4);
  --color-muted-end: #6b7280;

  /* Type */
  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing scale — one system, used everywhere. Nothing outside it. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 96px;

  /* Layout */
  --container-w: 1180px;
  --container-w-wide: 1280px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --section-pad: clamp(72px, 11vw, 136px);
  --section-pad-sm: clamp(56px, 8vw, 96px);

  /* Motion (unchanged system, tokenized) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s var(--ease);
  --transition-slow: 0.7s var(--ease);

  /* Shadows — consolidated, reused rather than re-authored per element */
  --shadow-glow-sm: 0 4px 12px -4px var(--color-accent-glow);
  --shadow-glow-md: 0 8px 24px -10px var(--color-accent-glow);
  --shadow-glow-lg: 0 10px 28px -8px var(--color-accent-glow);
  --shadow-card: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.25);

  /* Shared gradient — avatars / monogram circles (testimonial + about card) */
  --accent-gradient: linear-gradient(155deg, var(--color-accent-bright), #1c3ea8);
}

/* ==========================================================
   RESET
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
}
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--wide { max-width: var(--container-w-wide); }

/* ==========================================================
   AMBIENT TEXTURE LAYERS (decorative, aria-hidden)
   ========================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(650px circle at var(--spot-x, 50%) var(--spot-y, 0px), rgba(109, 146, 255, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.spotlight.is-active { opacity: 1; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 60%);
  opacity: 0.5;
}

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

.text-accent {
  color: var(--color-accent-bright);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-bright);
  box-shadow: 0 0 12px 2px var(--color-accent-glow);
  flex-shrink: 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}
.section-head--center { justify-content: center; }
.section-head__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent-bright);
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  padding: 2px 7px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.16;
  margin: 0 0 var(--space-5);
  max-width: 720px;
  color: var(--color-text);
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow 0.25s ease;
  white-space: nowrap;
  isolation: isolate;
}
.btn span { position: relative; z-index: 1; }
.btn--lg { padding: 15px var(--space-7); font-size: 15px; }

.btn--primary {
  background: linear-gradient(180deg, var(--color-accent-bright), var(--color-accent));
  color: #fff;
  box-shadow: var(--shadow-inset-top), 0 1px 0 rgba(0, 0, 0, 0.2), var(--shadow-glow-md);
  overflow: hidden;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 40%, transparent 60%);
  transform: translateX(-120%);
  transition: transform var(--transition-slow);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-inset-top), 0 1px 0 rgba(0, 0, 0, 0.2), var(--shadow-glow-lg);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text);
  border-color: var(--color-border-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--color-accent-bright);
  color: var(--color-accent-bright);
  transform: translateY(-1px);
  background: var(--color-accent-dim);
}
.btn--small { padding: 9px var(--space-4); font-size: 13.5px; }
.btn--wide { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent-bright);
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), gap var(--transition-fast);
}
.link-arrow:hover { border-color: var(--color-accent-bright); gap: var(--space-3); }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.nav__logo-accent { color: var(--color-accent-bright); }

.nav__links {
  display: flex;
  gap: var(--space-2);
  margin: 0 auto;
}
.nav__links a {
  font-size: 13.5px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
  padding: var(--space-2) var(--space-3);
  border-radius: 6px;
}
.nav__links a:hover { color: var(--color-text); background: rgba(255, 255, 255, 0.04); }

.nav__actions { display: flex; align-items: center; gap: var(--space-4); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 104px) 0 clamp(72px, 10vw, 96px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 40%, transparent 100%);
}
.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.hero__aurora--1 {
  width: 640px; height: 420px;
  top: -220px; left: 50%;
  transform: translateX(-64%);
  background: radial-gradient(closest-side, var(--color-accent-glow), transparent 75%);
}
.hero__aurora--2 {
  width: 480px; height: 360px;
  top: -160px; left: 50%;
  transform: translateX(20%);
  background: radial-gradient(closest-side, rgba(160, 130, 255, 0.28), transparent 75%);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__headline {
  font-size: clamp(42px, 7.2vw, 80px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: var(--space-6) 0;
  font-weight: 800;
}
.hero__sub {
  max-width: 540px;
  margin: 0 auto var(--space-9);
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--color-text-muted);
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

/* ==========================================================
   FLOW DIAGRAM (hero) — connected nodes with a through-line
   ========================================================== */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  backdrop-filter: blur(8px);
}
.flow-diagram__node {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding: var(--space-2) var(--space-1);
}
.flow-diagram__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-text-faint);
  flex-shrink: 0;
}
.flow-diagram__node--accent { color: var(--color-text); }
.flow-diagram__node--accent .flow-diagram__dot {
  background: var(--color-accent-bright);
  box-shadow: 0 0 10px 2px var(--color-accent-glow);
}
.flow-diagram__line {
  width: 28px;
  height: 1px;
  background: var(--color-border-strong);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Restrained movement through the hero/behind process line — a soft
   travelling highlight, not a spinner. Off entirely under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .flow-diagram__line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--color-accent-bright), transparent);
    opacity: 0;
    animation: flow-line-travel 3.6s ease-in-out infinite;
  }
  .flow-diagram__node--accent .flow-diagram__dot {
    animation: flow-dot-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes flow-line-travel {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.9; }
}

@keyframes flow-dot-pulse {
  0%, 100% { box-shadow: 0 0 10px 2px var(--color-accent-glow); }
  50% { box-shadow: 0 0 14px 4px var(--color-accent-glow); }
}

/* ==========================================================
   TIMELINE (problem section + demo cards) — vertical connected line
   ========================================================== */
.timeline { display: flex; flex-direction: column; }
.timeline__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  padding-left: var(--space-1);
}
.timeline__row:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  bottom: -9px;
  width: 1px;
  background: var(--color-border-strong);
}
.timeline__dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-bg-elevated-2);
  border: 1.5px solid var(--color-text-faint);
  flex-shrink: 0;
}
.timeline__text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}
.timeline__row--end .timeline__text--end { color: var(--color-muted-end); font-style: italic; }
.timeline__dot--end { border-style: dashed; border-color: var(--color-muted-end); }
.timeline__row--accent .timeline__text--accent { color: var(--color-text); font-weight: 500; }
.timeline__dot--accent {
  background: var(--color-accent-bright);
  border-color: var(--color-accent-bright);
  box-shadow: 0 0 10px 2px var(--color-accent-glow);
}
.timeline--demo .timeline__text { font-size: 13px; }

/* Automated-response cards read like a log: timestamps flush right */
.timeline--log .timeline__row { justify-content: space-between; }
.timeline__time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-faint);
  flex-shrink: 0;
}

/* Follow-up sequence: day markers replace the plain dot */
.timeline--days .timeline__row:not(:last-child)::before { left: 11px; }
.timeline__day {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--color-bg-elevated-2);
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--color-text-faint);
  flex-shrink: 0;
}
.timeline__day--accent {
  background: var(--color-accent-dim);
  border-color: var(--color-accent-border);
  color: var(--color-accent-bright);
}

/* Qualification-flow routing outcome: a small branch indicator */
.routing {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-left: 24px;
}
.routing__line {
  position: absolute;
  left: 7px;
  top: -13px;
  height: 13px;
  width: 1px;
  background: var(--color-border-strong);
}
.routing__pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-text-faint);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 3px 10px;
}
.routing__pill--solid {
  color: var(--color-accent-bright);
  border-color: var(--color-accent-border);
  background: var(--color-accent-dim);
}

/* ==========================================================
   PROBLEM SECTION
   ========================================================== */
.problem { padding: var(--section-pad) 0; }
.problem__intro {
  max-width: 600px;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-9);
}
.problem__flows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.problem-flow {
  background: linear-gradient(180deg, var(--color-bg-elevated), var(--color-bg-elevated) 60%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  height: 100%;
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.problem-flow:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.problem-flow__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}

/* ==========================================================
   BENTO GRID (What I Build + System Demonstrations)
   ========================================================== */
.build__intro {
  max-width: 600px;
  color: var(--color-text-muted);
  /* Deliberately more room here than a typical intro paragraph — the
     four-card grid needs space to read as its own beat, not a
     continuation of the paragraph above it. */
  margin: 0 0 var(--space-10);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base), background var(--transition-base);
}
.bento-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  background: var(--color-bg-elevated-2);
}
.bento-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-border);
  color: var(--color-accent-bright);
  margin-bottom: var(--space-4);
}
.bento-card__icon svg { width: 20px; height: 20px; }
.bento-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}
.bento-card__title { font-size: 17px; margin: 0 0 var(--space-2); }
.bento-card__desc { color: var(--color-text-muted); font-size: 14.5px; line-height: 1.55; }
.bento-card__outcome {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-5);
  font-size: 12.5px;
  color: var(--color-text-faint);
}
.bento-card__outcome-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-bright);
  box-shadow: 0 0 8px 1px var(--color-accent-glow);
  flex-shrink: 0;
}

.bento--build { grid-template-columns: repeat(4, 1fr); }
.bento--demos { grid-template-columns: repeat(2, 1fr); }

/* ==========================================================
   WORK / FEATURED PROJECT
   ========================================================== */
.work { padding: var(--section-pad) 0; }

.project {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-8);
}

.project__media { position: relative; }
.project__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, var(--color-accent-glow), transparent 70%);
  opacity: 0.25;
  filter: blur(40px);
  z-index: 0;
}

.project__content { padding-top: var(--space-2); }
.project__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  margin: 0 0 var(--space-4);
}

/* Shared refined tag/pill component — used for factual project meta
   and About's capability tags. Deliberately quiet, not a colourful
   SaaS badge: hairline border, muted text, no fill. */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.tag:hover { border-color: var(--color-accent-border); color: var(--color-text); }

.project__meta { margin: 0 0 var(--space-6); }

.project__block { margin-bottom: var(--space-5); }
.project__block:last-of-type { margin-bottom: var(--space-6); }
.project__label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  margin: 0 0 var(--space-2);
  font-weight: 500;
}
.project__desc { color: var(--color-text-muted); margin: 0; max-width: 440px; }

/* ---- Browser mockup shell ---- */
.mockup {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-card);
  width: 100%;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated-2);
  border-bottom: 1px solid var(--color-border);
}
.mockup__bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-border-strong);
}
.mockup__url {
  margin-left: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
  background: var(--color-bg);
  padding: 4px var(--space-3);
  border-radius: 20px;
  flex: 1;
}
.mockup__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #171c28, #0d1017);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform var(--transition-slow);
}
.mockup:hover .mockup__screen img { transform: scale(1.025); }
.mockup__screen--empty { display: flex; align-items: center; justify-content: center; }
.mockup__placeholder-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-faint);
}
.mockup__screen--empty .mockup__placeholder-label { display: flex; }

/* ==========================================================
   TESTIMONIAL (card inside Work section)
   ========================================================== */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-6) var(--space-9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}
.testimonial__mark { width: 26px; height: 20px; fill: var(--color-accent-bright); margin: 0 auto var(--space-4); opacity: 0.85; }
.testimonial__quote {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  margin: 0 0 var(--space-5);
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.testimonial__byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.testimonial__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.testimonial__author { font-size: 14px; color: var(--color-text); text-align: left; }
.testimonial__author span { display: block; color: var(--color-text-faint); font-size: 12.5px; margin-top: 1px; }

/* ==========================================================
   SYSTEM DEMONSTRATIONS
   ========================================================== */
.demos { padding: var(--section-pad) 0; }
.demos__intro {
  max-width: 600px;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}
.demos__note {
  max-width: 600px;
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0 0 var(--space-9);
}
.demo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.demo-card:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.demo-card__label {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-border);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: var(--space-4);
}
.demo-card__title { font-size: 16px; margin: 0 0 var(--space-5); font-weight: 600; }
.demo-card__caption {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 12.5px;
  color: var(--color-text-faint);
  font-style: italic;
}
.demo-card .routing { margin-top: auto; }

.demo-card--terminal { padding: 0; overflow: hidden; }
.demo-card--terminal .demo-card__label,
.demo-card--terminal .demo-card__title { margin-left: var(--space-6); }
.demo-card--terminal .demo-card__label { margin-top: var(--space-6); }
.demo-card--terminal .demo-card__caption { margin-left: var(--space-6); margin-bottom: var(--space-6); }

.demo-table { font-size: 13px; }
.demo-table__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated-2);
  border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-5);
}
.demo-table__chrome span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-border-strong);
}
.demo-table__url {
  margin-left: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-faint);
  background: var(--color-bg);
  padding: 3px var(--space-3);
  border-radius: 20px;
}
.demo-table__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 12.5px;
  align-items: center;
}
.demo-table__row:last-child { border-bottom: none; }
.demo-table__row--head {
  color: var(--color-text-faint);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.demo-table__pill {
  display: inline-block;
  color: var(--color-text-faint);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  width: fit-content;
}
.demo-table__pill--solid {
  color: var(--color-accent-bright);
  border-color: var(--color-accent-border);
  background: var(--color-accent-dim);
}

/* ==========================================================
   BEHIND THE SYSTEM — centered, reuses .flow-diagram as-is
   ========================================================== */
.behind { padding: var(--section-pad-sm) 0; }
.behind__inner { text-align: center; }
.behind .section-head { margin: 0 0 var(--space-4); }
.behind .section-title { margin-left: auto; margin-right: auto; }
.behind__intro {
  max-width: 560px;
  margin: 0 auto var(--space-8);
  color: var(--color-text-muted);
}
.behind__note {
  max-width: 560px;
  margin: 0 auto;
  color: var(--color-text-faint);
  font-size: 13.5px;
}

/* System flow — a genuine vertical pipeline rather than a horizontal
   status bar. Each stage is its own step (same card language as the
   rest of the site); a connector with a directional arrow ties them
   together so the sequence reads top-to-bottom, like a real system. */
.system-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 360px;
  margin: 0 auto var(--space-8);
}
.system-flow__step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
  text-align: left;
  transition: border-color var(--transition-base), transform var(--transition-base), background var(--transition-base);
}
.system-flow__step:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  background: var(--color-bg-elevated-2);
}
.system-flow__step--accent {
  border-color: var(--color-accent-border);
  background: linear-gradient(180deg, var(--color-accent-dim), var(--color-bg-elevated) 75%);
}
.system-flow__step--accent .system-flow__label { color: var(--color-text); }
.system-flow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-border);
  color: var(--color-accent-bright);
  flex-shrink: 0;
}
.system-flow__icon svg { width: 18px; height: 18px; }
.system-flow__label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: -0.005em;
}
.system-flow__step--accent .system-flow__icon {
  color: var(--color-accent-bright);
  box-shadow: 0 0 10px 2px var(--color-accent-glow);
}
.system-flow__connector {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
}
.system-flow__connector::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 50%;
  width: 1px;
  background: var(--color-border-strong);
  transform: translateX(-50%);
}
.system-flow__connector svg {
  position: relative;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--color-bg);
}

/* ==========================================================
   PROCESS / HOW IT WORKS — connected timeline
   ========================================================== */
.process { padding: var(--section-pad) 0; }
.process__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  margin-top: var(--space-9);
}
.process__list::before {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong) 15%, var(--color-border-strong) 85%, transparent);
  z-index: 0;
}
.process__item { position: relative; }
.process__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-elevated-2);
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-5);
}
.process__item h3 { font-size: 18px; margin: 0 0 var(--space-3); font-weight: 600; }
.process__item p { color: var(--color-text-muted); font-size: 14.5px; max-width: 320px; }

/* ==========================================================
   ABOUT — deliberately smaller and narrower: a brief, quiet beat
   ========================================================== */
.about {
  padding: var(--section-pad) 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.about__inner { max-width: 480px; }
.about__text {
  color: var(--color-text-muted);
  font-size: 15.5px;
  margin: 0 0 var(--space-4);
  line-height: 1.65;
}
.about__tags { margin: var(--space-2) 0 var(--space-5); }
.about__location {
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* Builder profile card — deliberately not a fake photograph: a quiet
   monogram treatment that reuses the same card/glow language as the
   rest of the site. */
.about__card {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) var(--space-7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-bg-elevated-2), rgba(19, 21, 29, 0.4));
  text-align: center;
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.about__card:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.about__card-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(closest-side, var(--color-accent-glow), transparent 70%);
  opacity: 0.32;
  filter: blur(34px);
  pointer-events: none;
}

/* Builder profile photo — a real, understated portrait rather than a
   placeholder. Rounded to match the site's card radius, hairline
   border, subtle bottom fade so it settles into the card. */
.about__portrait {
  position: relative;
  z-index: 1;
  width: 220px;
  aspect-ratio: 4 / 5;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-card);
  background: var(--color-bg-elevated-2);
}
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.about__card:hover .about__portrait img { transform: scale(1.04); }
.about__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(8, 9, 13, 0.45));
  pointer-events: none;
}
.about__card-name {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
}
.about__card-role {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-text-faint);
}

/* ==========================================================
   CONTACT / FINAL CTA
   ========================================================== */
.contact {
  position: relative;
  padding: var(--section-pad) 0;
  text-align: center;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(closest-side, var(--color-accent-glow), transparent 72%);
  opacity: 0.28;
  filter: blur(80px);
  pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; }
.contact .section-title { margin-left: auto; margin-right: auto; }
.contact__sub {
  max-width: 460px;
  margin: 0 auto var(--space-6);
  color: var(--color-text-muted);
}
.contact__reassurance {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin: 0 0 var(--space-9);
}
.contact__reassurance li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-text-muted);
  position: relative;
  padding-left: var(--space-4);
}
.contact__reassurance li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-bright);
  box-shadow: 0 0 8px 1px var(--color-accent-glow);
}
.contact__card {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-bg-elevated), rgba(14, 16, 22, 0.4));
  text-align: left;
  position: relative;
}
.contact__card::before {
  content: "";
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-bright), transparent);
  opacity: 0.6;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.hidden-field { position: absolute; left: -9999px; }
.form-row { display: flex; flex-direction: column; gap: var(--space-2); }
.form-row label { font-size: 13px; color: var(--color-text-muted); font-weight: 500; }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 11px var(--space-4);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent-bright);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}
.form-row textarea { resize: vertical; }
.contact__form-note {
  margin-top: calc(-1 * var(--space-2));
  font-size: 12.5px;
  color: var(--color-text-faint);
  text-align: center;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  position: relative;
  padding: var(--space-9) 0;
  border-top: 1px solid var(--color-border);
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong) 50%, transparent);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.footer__nav {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--color-text-muted);
}
.footer__nav a:hover { color: var(--color-text); }
.footer__links, .footer__socials {
  display: flex;
  gap: var(--space-4);
  font-size: 13.5px;
  color: var(--color-text-muted);
}
.footer__links a:hover, .footer__socials a:hover { color: var(--color-text); }
.footer__copy {
  width: 100%;
  font-size: 12.5px;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

/* ==========================================================
   SCROLL REVEAL — staggered blur/fade, Framer/Linear signature
   (unchanged motion system, tokens only)
   ========================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity var(--transition-slow), transform var(--transition-slow), filter var(--transition-slow);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; gap: var(--space-7); }
  .process__list { grid-template-columns: 1fr; gap: var(--space-9); }
  .process__list::before { display: none; }
  .bento--build { grid-template-columns: repeat(2, 1fr); }
  .bento--demos { grid-template-columns: 1fr; }
  .problem__flows { grid-template-columns: 1fr; gap: var(--space-5); }
  .testimonial { padding: var(--space-6) var(--space-7); }
  .about__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .about__inner { max-width: none; }
  .about__card { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--space-6) var(--space-5);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--small { display: none; }
  .bento--build { grid-template-columns: 1fr; }
  .flow-diagram { padding: var(--space-4); }
  .flow-diagram__node { font-size: 11px; }
  .flow-diagram__line { width: 16px; }
  .contact__reassurance { gap: var(--space-4); }
  .contact__card { padding: var(--space-6); }
  .demo-table__row { grid-template-columns: 1.3fr 1fr 1fr; }
  .demo-table__row span:last-child { display: none; }
  .system-flow { max-width: none; }
}
