:root {
  --color-bone: #fcfcfd;
  --color-paper: #1a1a23;
  --color-border: #2e2e38;
  --color-stone: #908da5;
  --color-ink: #f4f3fb;
  --color-ink-soft: #c7c7d1;
  --color-clay: #9463ee;
  --color-clay-deep: #ff9584;
  --color-ochre: #eab308;
  --color-sage: #10b981;
  --color-rust: #ff9584;

  --bg: #111118;
  --bg-elevated: var(--color-paper);
  --text: var(--color-ink);
  --text-soft: var(--color-ink-soft);
  --text-muted: var(--color-stone);
  --border: var(--color-border);
  --accent: var(--color-clay);
  --accent-hover: var(--color-clay-deep);
  --headline-gradient: linear-gradient(86deg, #9463ee, #ff9584);

  --font-display: "Poppins", "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Poppins", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-hand: "Caveat", cursive;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.32);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image:
    radial-gradient(
      1200px 760px at 8% 30%,
      rgba(148, 99, 238, 0.09),
      transparent 60%
    ),
    radial-gradient(
      1000px 640px at 100% 38%,
      rgba(255, 149, 132, 0.06),
      transparent 55%
    );
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* ───────── primitives ───────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-rust);
}

.display {
  font-family: var(--font-display);
  font-weight: 550;
  color: var(--color-ink);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.display em,
.h2 em,
.h3 em,
.quote-text em,
.test-quote q em {
  background: var(--headline-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 550;
  background: var(--headline-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.012em;
  line-height: 1.18;
  padding-bottom: 0.08em;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.h3 {
  font-family: var(--font-display);
  font-weight: 550;
  color: var(--color-ink);
  font-variation-settings: "opsz" 36;
  margin: 0;
}

p {
  margin: 0 0 1.1em;
  max-width: 65ch;
}

.lead {
  font-size: 22px;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

/* ───────── layout ───────── */

.page {
  width: 100%;
  overflow-x: clip;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 900px) {
  .shell {
    padding: 0 64px;
  }
}

.section {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

/* ───────── nav ───────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px) saturate(1.1);
  background: rgba(17, 17, 24, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-out);
}
.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  font-variation-settings: "opsz" 96;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-logo .dot {
  color: var(--color-clay);
  font-size: 1.15em;
  margin-left: 0.02em;
}

.nav-menu {
  display: none;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-stone);
}
@media (min-width: 800px) {
  .nav-menu {
    display: flex;
  }
}
.nav-menu a {
  position: relative;
  padding: 6px 0;
  transition: color 180ms var(--ease-out);
}
.nav-menu a:hover {
  color: var(--color-ink);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-clay);
  transition: all 220ms var(--ease-out);
}
.nav-menu a:hover::after {
  width: 100%;
  left: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform 180ms var(--ease-out),
    background 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    color 180ms var(--ease-out);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-clay);
  color: var(--color-bone);
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
  background: #a97cff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-secondary {
  background: rgba(252, 252, 253, 0.04);
  border-color: var(--border);
  color: var(--color-ink);
}
.btn-secondary:hover {
  background: rgba(148, 99, 238, 0.12);
  border-color: var(--color-stone);
}

.btn-arrow {
  display: inline-block;
  transition: transform 180ms var(--ease-out);
}
.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* ───────── hero ───────── */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 24px;
  padding-bottom: clamp(72px, 10vw, 128px);
  align-items: start;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.08fr 1fr;
    gap: 64px;
  }
  .hero > div:first-child {
    margin-top: 100px;
  }
}

.hero-status {
  margin-bottom: 18px;
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--color-sage);
  color: var(--color-sage);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-sage);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 550;
  color: var(--color-ink);
  font-variation-settings: "opsz" 144;
  font-size: clamp(56px, 8.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  background: var(--headline-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 1px rgba(148, 99, 238, 0.45),
    0 0 18px rgba(148, 99, 238, 0.32),
    0 0 44px rgba(255, 149, 132, 0.22),
    0 0 84px rgba(148, 99, 238, 0.16);
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em {
    animation: heroEmGlow 5.5s var(--ease-out, ease-in-out) infinite;
  }
}
@keyframes heroEmGlow {
  0%,
  100% {
    text-shadow:
      0 0 1px rgba(148, 99, 238, 0.4),
      0 0 14px rgba(148, 99, 238, 0.28),
      0 0 36px rgba(255, 149, 132, 0.18),
      0 0 72px rgba(148, 99, 238, 0.14);
  }
  50% {
    text-shadow:
      0 0 1px rgba(148, 99, 238, 0.55),
      0 0 22px rgba(148, 99, 238, 0.38),
      0 0 54px rgba(255, 149, 132, 0.26),
      0 0 96px rgba(148, 99, 238, 0.22);
  }
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 4px;
  height: 18px;
  background: rgba(148, 99, 238, 0.22);
  z-index: -1;
  border-radius: 2px;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--color-ink-soft);
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero-sub + .hero-sub {
  margin-top: -22px;
}
.hero-sub .hl {
  color: var(--color-clay-deep);
  font-weight: 600;
  background-image: linear-gradient(
    to top,
    rgba(148, 99, 238, 0.22) 0%,
    rgba(148, 99, 238, 0.22) 28%,
    transparent 28%
  );
  padding: 0 2px;
  border-radius: 2px;
}

.text-accent-link,
.nda p a,
.nda strong,
.proj-row-desc a,
.projects-lead a {
  color: var(--color-clay-deep);
  font-weight: 600;
  background-image: linear-gradient(
    to top,
    rgba(148, 99, 238, 0.22) 0%,
    rgba(148, 99, 238, 0.22) 28%,
    transparent 28%
  );
  padding: 0 2px;
  border-radius: 2px;
}

.text-accent-link,
.nda p a,
.proj-row-desc a,
.projects-lead a {
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
}

.text-accent-link:hover,
.nda p a:hover,
.proj-row-desc a:hover,
.projects-lead a:hover {
  color: #ffa99b;
  background-image: linear-gradient(
    to top,
    rgba(148, 99, 238, 0.34) 0%,
    rgba(148, 99, 238, 0.34) 32%,
    transparent 32%
  );
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 40px;
}

.signature {
  font-family: var(--font-hand);
  font-size: 56px;
  color: var(--color-ink);
  line-height: 1;
  margin-top: 16px;
  display: inline-block;
}
.signature svg {
  display: block;
}
.signature path {
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.4s var(--ease-out) 0.5s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.signature-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-stone);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* hero portrait */
/* Portrait — real photo with brand-tinted decoration */
.portrait-wrap {
  position: relative;
  display: block;
}
.portrait {
  position: relative;
  z-index: 2;
  aspect-ratio: 5 / 6;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.portrait > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}
/* warm clay overlay so the photo sits in the brand palette */
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      120% 80% at 100% 0%,
      rgba(148, 99, 238, 0.18),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0.18) 100%
    );
}
/* Offset clay-coloured frame peeking from bottom-right */
.portrait-frame {
  position: absolute;
  z-index: 1;
  inset: 24px -24px -24px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-clay);
  opacity: 0.92;
}
/* Small accent dot top-left */
.portrait-dot {
  position: absolute;
  z-index: 3;
  top: -14px;
  left: -14px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-rust);
  box-shadow: 0 8px 24px rgba(255, 92, 122, 0.32);
}
/* Mono tag — film-strip vibe, matches the eyebrow type */
.portrait-tag {
  position: absolute;
  z-index: 4;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

/* deco dot for hero */
.hero-deco {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-ochre);
  opacity: 0.55;
  filter: blur(1px);
}

/* ───────── capability sections ───────── */

.cap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(64px, 9vw, 112px) 0;
}
@media (min-width: 900px) {
  .cap {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .cap.reverse .cap-text {
    order: 2;
  }
  .cap.reverse .cap-visual {
    order: 1;
  }
}

.cap-text {
  max-width: 52ch;
}
.cap-text .eyebrow {
  margin-bottom: 18px;
  display: inline-block;
}
.cap-text h2 {
  margin-bottom: 24px;
}
.cap-text p {
  color: var(--color-ink-soft);
}

.cap-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.placeholder {
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-stone);
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 24px,
    rgba(148, 99, 238, 0.05) 24px 25px
  );
  pointer-events: none;
}
.placeholder > span {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* desktop browser placeholder */
.browser-frame {
  aspect-ratio: 16 / 11;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-paper);
  border-bottom: 1px solid var(--border);
}
.browser-bar .dots {
  display: flex;
  gap: 6px;
}
.browser-bar .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}
.browser-bar .url {
  margin-left: 12px;
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-stone);
  max-width: 60%;
}
.browser-body {
  position: relative;
  height: calc(100% - 41px);
  background: linear-gradient(180deg, #fcfcfd 0%, #1a1a23 100%);
  padding: 24px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
}
.browser-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.browser-side i {
  height: 14px;
  border-radius: 4px;
  background: var(--color-border);
}
.browser-side i:first-child {
  background: var(--color-clay);
  width: 60%;
}
.browser-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bm-row {
  height: 12px;
  border-radius: 4px;
  background: var(--color-border);
}
.bm-row.short {
  width: 35%;
  background: var(--color-clay-deep);
  height: 18px;
}
.bm-row.med {
  width: 60%;
}
.bm-row.long {
  width: 92%;
}
.bm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.bm-card {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  padding: 8px;
}
.bm-card span {
  display: block;
  height: 6px;
  width: 50%;
  background: var(--color-stone);
  border-radius: 2px;
}
.bm-card:nth-child(1) {
  background: linear-gradient(160deg, #1a1a23, #201f29);
}
.bm-card:nth-child(2) {
  background: linear-gradient(160deg, #fcfcfd, #1a1a23);
}
.bm-card:nth-child(3) {
  background: linear-gradient(160deg, #201f29, #2e2e38);
}

/* phone placeholder */
.phone-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  min-height: 460px;
}
.phone {
  width: 240px;
  aspect-ratio: 9 / 19;
  background: var(--color-ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  padding: 28px 16px 16px;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background: var(--color-ink);
  border-radius: 999px;
}
.phone .ps-row {
  height: 10px;
  border-radius: 4px;
  background: var(--color-border);
  margin-bottom: 10px;
}
.phone .ps-title {
  background: var(--color-clay-deep);
  width: 60%;
  height: 14px;
}
.phone .ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.phone .ps-card {
  aspect-ratio: 1;
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.phone .ps-card:nth-child(1) {
  background: linear-gradient(160deg, #201f29, #9463ee);
}
.phone .ps-card:nth-child(4) {
  background: linear-gradient(160deg, #10b981, #007d5c);
}
.phone-back {
  position: absolute;
  width: 220px;
  aspect-ratio: 9 / 19;
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: 32px;
  transform: rotate(-8deg) translate(-72px, 24px);
  z-index: -1;
  opacity: 0.7;
}

/* AI placeholder */
.ai-canvas {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #f4f3fb 0%, #0d1f36 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  padding: 28px;
  color: var(--color-bone);
  font-family: var(--font-mono);
  font-size: 13px;
}
.ai-canvas::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(
      360px 220px at 30% 30%,
      rgba(242, 184, 75, 0.35),
      transparent 60%
    ),
    radial-gradient(
      280px 180px at 75% 70%,
      rgba(148, 99, 238, 0.4),
      transparent 55%
    );
  filter: blur(8px);
  animation: aiglow 9s ease-in-out infinite alternate;
}
@keyframes aiglow {
  to {
    transform: rotate(8deg) scale(1.05);
  }
}
.ai-prompt {
  position: relative;
  background: rgba(246, 251, 255, 0.06);
  border: 1px solid rgba(246, 251, 255, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ai-prompt .who {
  color: var(--color-ochre);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 70px;
  padding-top: 2px;
}
.ai-prompt .what {
  color: rgba(246, 251, 255, 0.92);
  line-height: 1.5;
}
.ai-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--color-clay);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* deployment */
.deploy-canvas {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(140% 90% at 100% 0%, rgba(16, 185, 129, 0.14), transparent 55%),
    radial-gradient(120% 80% at 0% 100%, rgba(148, 99, 238, 0.12), transparent 55%),
    linear-gradient(160deg, #1c1c27 0%, #14141c 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.deploy-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.pipe {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.pipe-step {
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-stone);
  letter-spacing: 0.06em;
  text-align: center;
  position: relative;
}
.pipe-step.done {
  border-color: var(--color-sage);
  color: var(--color-sage);
}
.pipe-step.running {
  border-color: var(--color-clay);
  color: var(--color-clay-deep);
  background: rgba(148, 99, 238, 0.08);
}
.pipe-step.running::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-clay);
  animation: pulse-border 1.6s ease-in-out infinite;
}
@keyframes pulse-border {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.deploy-log {
  margin-top: 18px;
  background: rgba(8, 8, 14, 0.72);
  color: var(--color-ink);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  position: relative;
  backdrop-filter: blur(6px);
}
.deploy-log .ok {
  color: var(--color-sage);
}
.deploy-log .warn {
  color: var(--color-ochre);
}
.deploy-log .url {
  color: var(--color-clay);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* sticky note */
.note {
  position: absolute;
  background: rgba(242, 184, 75, 0.32);
  border: 1px dashed rgba(0, 79, 196, 0.45);
  padding: 10px 14px;
  font-family: var(--font-hand);
  color: var(--color-clay-deep);
  font-size: 18px;
  line-height: 1.25;
  border-radius: 4px;
  max-width: 220px;
  transform: rotate(-2deg);
  z-index: 5;
  box-shadow: var(--shadow-sm);
}
.note::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--color-clay-deep);
  border-radius: 50%;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

/* ───────── quote ───────── */

.quote-block {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.6;
  color: var(--color-clay);
  margin-bottom: 16px;
}
.quote-text {
  font-family: var(--font-display);
  font-weight: 550;
  font-style: italic;
  font-variation-settings: "opsz" 96;
  color: var(--color-clay-deep);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
}
.quote-attr {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-clay);
}

/* ───────── portfolio ───────── */

.portfolio-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.portfolio-intro p {
  color: var(--color-stone);
  max-width: 420px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 800px) {
  .portfolio-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.proj {
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    border-color 260ms var(--ease-out);
  display: flex;
  flex-direction: column;
}
.proj:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-stone);
}
.proj-thumb {
  position: relative;
  overflow: hidden;
}
.proj-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 22px,
    rgba(255, 255, 255, 0.07) 22px 23px
  );
  pointer-events: none;
}
.proj-meta {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proj-meta .eyebrow {
  font-size: 11px;
}
.proj-meta h4 {
  font-family: var(--font-display);
  font-weight: 550;
  font-variation-settings: "opsz" 36;
  color: var(--color-clay-deep);
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
}
.proj-meta .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--color-stone);
  letter-spacing: 0.02em;
}
.chip.featured {
  background: rgba(242, 184, 75, 0.22);
  border-color: transparent;
  color: var(--color-clay-deep);
}
.chip.outcome {
  border-color: var(--color-sage);
  color: var(--color-sage);
  background: transparent;
}

.proj.web .proj-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #201f29, #c4a57f);
}
.proj.app .proj-thumb {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #f4f3fb, #0d1f36);
}

/* big web tiles span 4, app tiles span 2 */
@media (min-width: 800px) {
  .proj.web {
    grid-column: span 3;
  }
  .proj.app {
    grid-column: span 2;
  }
  .proj.video {
    grid-column: span 6;
  }
}

.proj-thumb-mock {
  position: absolute;
  inset: 18px;
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-thumb-mock i {
  height: 8px;
  border-radius: 3px;
  background: var(--color-border);
}
.proj-thumb-mock i.t {
  background: var(--color-clay);
  width: 50%;
  height: 12px;
}
.proj-thumb-mock .row {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.proj-thumb-mock .row span {
  aspect-ratio: 1;
  background: var(--color-paper);
  border-radius: 4px;
}

.proj.app .proj-thumb-mock {
  inset: 22px 32px;
  background: var(--color-paper);
  display: flex;
}
.proj.app .proj-thumb-mock::before {
  content: "";
  width: 38px;
  height: 6px;
  background: var(--color-ink);
  border-radius: 999px;
  align-self: center;
  margin: 0 auto 8px;
}
.proj.app .ps-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.proj.app .ps-icon-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg);
}

/* video card */
.proj.video {
  aspect-ratio: 21 / 7;
  background: linear-gradient(160deg, #111118 0%, #201f29 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
}
.proj.video::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 22px,
    rgba(255, 255, 255, 0.04) 22px 23px
  );
}
.video-meta {
  position: absolute;
  left: 32px;
  bottom: 28px;
  color: var(--color-bone);
}
.video-meta .eyebrow {
  color: var(--color-ochre);
  margin-bottom: 8px;
  display: block;
}
.video-meta h4 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-weight: 550;
  font-size: 32px;
  margin: 0;
  color: var(--color-bone);
  max-width: 22ch;
}
.play-btn {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-clay);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: transform 220ms var(--ease-out);
  box-shadow: 0 12px 40px rgba(148, 99, 238, 0.4);
}
.play-btn:hover {
  transform: translateY(-50%) scale(1.06);
}
.play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 22px solid var(--color-bone);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

/* tech stack card */
.stack-card {
  grid-column: span 2;
  background: var(--color-ink);
  color: var(--color-bone);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 280px;
}
@media (max-width: 799px) {
  .stack-card {
    grid-column: span 1;
    min-height: 220px;
  }
}
.stack-card .eyebrow {
  color: var(--color-ochre);
}
.stack-card h4 {
  font-family: var(--font-display);
  font-weight: 550;
  font-variation-settings: "opsz" 72;
  font-size: 30px;
  line-height: 1.15;
  color: var(--color-bone);
  margin: 0;
}
.stack-card .stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack-card .stack-chips .chip {
  background: rgba(246, 251, 255, 0.06);
  border-color: rgba(246, 251, 255, 0.18);
  color: rgba(246, 251, 255, 0.85);
}
.stack-card .stack-chips .chip.featured {
  background: var(--color-ochre);
  border-color: transparent;
  color: var(--color-ink);
}

/* ───────── NDA / Upwork strip ───────── */

.nda {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.nda p {
  color: var(--color-stone);
  margin: 0 auto 28px;
}
.nda strong {
  font-weight: 600;
}

/* ───────── Big testimonial ───────── */

.testimonial {
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .testimonial {
    grid-template-columns: 360px 1fr;
    gap: 56px;
  }
}

.test-thumb {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #f4f3fb 0%, #908da5 100%);
  border-radius: var(--radius-md);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 240ms var(--ease-out);
}
.test-thumb:hover {
  transform: scale(1.02);
}
.test-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 24px,
    rgba(255, 255, 255, 0.04) 24px 25px
  );
}
.test-thumb .play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
}

.test-quote q {
  display: block;
  font-family: var(--font-display);
  font-weight: 550;
  font-style: italic;
  font-variation-settings: "opsz" 96;
  color: var(--color-clay-deep);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  margin: 0 0 28px;
  quotes: '"\\201C"' '"\\201D"';
}
.test-quote q::before,
.test-quote q::after {
  content: "";
}
.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(160deg, #9463ee, #ff9584);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--color-bone);
  font-weight: 550;
  font-size: 18px;
}
.test-author .name {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 16px;
}
.test-author .role {
  color: var(--color-stone);
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ───────── giant logo footer ───────── */

.foot-wrap {
  position: relative;
  padding-top: 72px;
}
.foot-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.foot-row .links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--color-stone);
}
.foot-row .links a:hover {
  color: var(--color-ink);
}
.foot-row .links .eyebrow {
  color: var(--color-rust);
  margin-bottom: 8px;
}

.foot-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(120px, 16vw, 220px);
  line-height: 0.85;
  color: var(--color-ink);
  letter-spacing: -0.04em;
  user-select: none;
}
.foot-logo .dot {
  width: 0.18em;
  height: 0.18em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--color-clay);
  align-self: baseline;
  box-shadow: 0 0 0 0 rgba(148, 99, 238, 0.55);
  animation: foot-dot-pulse 2.4s var(--ease-out) infinite;
}
@keyframes foot-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(148, 99, 238, 0.5); }
  50% { box-shadow: 0 0 0 0.12em rgba(148, 99, 238, 0); }
}

.foot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-stone);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
}

.giant-logo {
  font-family: var(--font-display);
  font-weight: 550;
  color: var(--color-clay-deep);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.04em;
  line-height: 0.7;
  font-size: clamp(180px, 32vw, 460px);
  margin: 56px 0 -52px;
  overflow: hidden;
  text-align: center;
  user-select: none;
}
.giant-logo .dot {
  color: var(--color-clay);
}

/* ───────── workflow morph (zigzag pinned scroll) ───────── */
/* Single pinned section. As user scrolls, ONE device travels zigzag across
   the screen — right (web) → left (mobile) → right (ai) → left (deploy) —
   morphing into the next form as it crosses. Scroll back reverses. */

.workflow-section {
  background: var(--bg);
  position: relative;
}
.wf-row {
  padding: 80px 0;
}
.wf-row-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.wf-row.visual-left .wf-text {
  order: 2;
  justify-self: end;
}
.wf-row.visual-left .wf-anchor {
  order: 1;
}
.wf-text {
  max-width: 480px;
  justify-self: start;
}
.wf-text .h2 {
  line-height: 1.08;
}
.wf-text p {
  color: var(--color-ink-soft);
  margin-bottom: 14px;
}
.wf-anchor {
  width: 100%;
  min-height: 520px;
  position: relative;
}
.wf-anchor-visual {
  display: none;
  width: 100%;
  height: 100%;
}
.wf-floating {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform, width, height;
  z-index: 2;
}
.wf-float-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity;
}
.phase-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.phase-visual.mobile::before,
.phase-visual.ai::before,
.phase-visual.web::before,
.phase-visual.deploy::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 32px;
  background:
    radial-gradient(50% 60% at 30% 30%, rgba(148, 99, 238, 0.18), transparent 65%),
    radial-gradient(50% 60% at 75% 75%, rgba(255, 149, 132, 0.14), transparent 65%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}
.phase-visual > * { position: relative; z-index: 1; }

/* ── web visual: full browser window ── */
.vbrowser {
  width: 100%;
  max-width: 620px;
  height: 100%;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(148, 99, 238, 0.14), transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(255, 149, 132, 0.10), transparent 55%),
    linear-gradient(160deg, #1c1c27 0%, #14141c 100%);
  border: 1px solid rgba(148, 99, 238, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.vbrowser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.vbrowser-bar .dots {
  display: flex;
  gap: 6px;
}
.vbrowser-bar .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-stone);
  opacity: 0.3;
}
.vbrowser-bar .dots span:nth-child(1) {
  background: var(--color-clay);
  opacity: 0.55;
}
.vbrowser-bar .dots span:nth-child(2) {
  background: var(--color-ochre);
  opacity: 0.55;
}
.vbrowser-bar .dots span:nth-child(3) {
  background: var(--color-sage);
  opacity: 0.55;
}
.vbrowser-bar .url {
  flex: 1;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ink-soft);
  display: flex;
  align-items: center;
}
.url-caret {
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-left: 3px;
  background: var(--color-clay);
  animation: ai-blink 900ms steps(2) infinite;
}
.vbrowser-body {
  flex: 1;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 20px;
  align-items: stretch;
}
.vside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 4px;
  position: relative;
}
.vside-logo {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  padding: 4px 10px;
  position: absolute;
  top: 0;
  left: 0;
}
.vside-logo-dot {
  color: var(--color-clay);
}
.vside-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: menu-in 0.5s ease-out;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.vside-item {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--color-stone);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}
.vside-item.act {
  background: rgba(148, 99, 238, 0.12);
  color: var(--color-clay-deep);
  animation: side-pulse 3.2s ease-in-out infinite;
}
@keyframes side-pulse {
  0%,
  100% {
    background: rgba(148, 99, 238, 0.12);
  }
  50% {
    background: rgba(148, 99, 238, 0.22);
  }
}
.vmain {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vmain-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vmain-title {
  font-family: var(--font-display, serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.vmain-title-dot {
  color: var(--color-clay);
}
.vmain-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.08);
}
.vmain-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-stone);
  letter-spacing: 0.02em;
}
.vcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.m-card {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  animation: card-breathe 5s ease-in-out infinite;
}
.vc-label {
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  opacity: 0.65;
}
.vc-num {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-family: var(--font-display, serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
}
.vchart {
  height: 60px;
  margin-top: 4px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.vchart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.vchart-fill {
  fill: url(#vchart-grad);
}
.vchart-line {
  fill: none;
  stroke: var(--color-clay);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: chart-draw 4s ease-in-out infinite;
}
@keyframes chart-draw {
  0% {
    stroke-dashoffset: 600;
  }
  60%,
  100% {
    stroke-dashoffset: 0;
  }
}
.url-lock {
  margin-right: 6px;
  color: var(--color-sage);
  font-size: 10px;
}
.vbrowser-tabs {
  display: flex;
  gap: 4px;
}
.vt {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}
.vt.active {
  background: var(--color-clay);
}
.vstat.val {
  font-size: 11px;
  color: var(--color-sage);
  justify-content: center;
  gap: 4px;
}
.vstat-up {
  font-size: 8px;
}
.m-card.a {
  background: linear-gradient(160deg, var(--color-paper), var(--color-clay));
}
.m-card.b {
  background: linear-gradient(160deg, var(--bg), var(--color-ochre));
  animation-delay: 0.6s;
}
.m-card.c {
  background: linear-gradient(160deg, var(--color-paper), var(--color-sage));
  animation-delay: 1.2s;
}
.m-card.d {
  background: linear-gradient(160deg, var(--bg), var(--color-rust));
  animation-delay: 1.8s;
}
.m-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
@keyframes card-breathe {
  0%,
  100% {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }
  50% {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  }
}
.vbrowser-foot {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.vstat {
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-stone);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vstat.sparkline {
  padding: 4px 8px;
}
.vstat.sparkline svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-sage);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: sparkline-draw 3.5s ease-in-out infinite;
}
@keyframes sparkline-draw {
  0% {
    stroke-dashoffset: 220;
  }
  60%,
  100% {
    stroke-dashoffset: 0;
  }
}
.vstat.dot {
  gap: 6px;
  color: var(--color-ink-soft);
}
.vstat.dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-clay);
  box-shadow: 0 0 0 0 rgba(148, 99, 238, 0.6);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(148, 99, 238, 0.55);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(148, 99, 238, 0);
  }
}
.vstat.bar {
  padding: 0;
  overflow: hidden;
}
.vstat.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-ochre), var(--color-clay));
  animation: bar-fill 4s ease-in-out infinite;
}
@keyframes bar-fill {
  0% {
    width: 0;
  }
  60% {
    width: 80%;
  }
  100% {
    width: 0;
  }
}

/* ── mobile visual: single phone (iPhone proportions ~ 9:19.5) ── */
.vphone {
  width: 220px;
  height: 450px;
  background: var(--color-ink);
  border-radius: 38px;
  padding: 6px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 6px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-6px) rotate(0.6deg);
  }
}
.vphone::before,
.vphone::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 2px;
  background: #15151e;
  border-radius: 2px 0 0 2px;
}
.vphone::before {
  top: 70px;
  height: 26px;
}
.vphone::after {
  top: 110px;
  height: 50px;
}
.vphone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg), var(--color-paper));
  border-radius: 32px;
  position: relative;
  padding: 14px 12px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vp-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  background: var(--color-ink);
  border-radius: 12px;
  z-index: 3;
}
.vp-notch::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #201f29;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vp-status {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-ink);
  letter-spacing: 0.04em;
  z-index: 2;
}
.vp-status .vp-signal {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
}
.vp-status .vp-signal i {
  display: block;
  width: 2px;
  background: var(--color-ink);
  border-radius: 1px;
}
.vp-status .vp-signal i:nth-child(1) {
  height: 3px;
}
.vp-status .vp-signal i:nth-child(2) {
  height: 5px;
}
.vp-status .vp-signal i:nth-child(3) {
  height: 7px;
}
.vp-status .vp-signal i:nth-child(4) {
  height: 9px;
  opacity: 0.4;
}
.vp-status .vp-batt {
  width: 18px;
  height: 8px;
  border: 1px solid var(--color-ink);
  border-radius: 2px;
  position: relative;
  padding: 1px;
}
.vp-status .vp-batt::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 4px;
  background: var(--color-ink);
  border-radius: 0 1px 1px 0;
}
.vp-status .vp-batt span {
  display: block;
  height: 100%;
  width: 70%;
  background: var(--color-clay);
  border-radius: 1px;
  animation: vp-batt 8s ease-in-out infinite;
}
@keyframes vp-batt {
  0%,
  100% {
    width: 70%;
    background: var(--color-clay);
  }
  50% {
    width: 95%;
    background: var(--color-sage);
  }
}
.vp-content {
  padding-top: 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vp-name-dot {
  color: var(--color-clay);
}
.vp-detail {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vp-detail-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.vp-detail-bar {
  display: block;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.vp-detail-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-clay), var(--color-ochre));
  border-radius: 2px;
  transition: width 0.6s ease;
}
.vp-greeting {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.vp-name {
  font-family: var(--font-display, serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.vp-tag {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
  opacity: 0.7;
}
.vp-num {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--font-display, serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
}
.vp-home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-ink);
  opacity: 0.85;
}
.vp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  flex: 1;
}
.vp-grid .m-card {
  position: relative;
  aspect-ratio: auto;
  min-height: 0;
}
.vp-grid .m-card {
  cursor: pointer;
  animation: none;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1.2),
    box-shadow 0.45s ease,
    filter 0.45s ease;
  filter: saturate(0.9);
}
.vp-grid .m-card.is-active {
  transform: scale(1.06) translateY(-2px);
  filter: saturate(1.25);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.vp-grid .m-card.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--color-clay);
  border-radius: inherit;
  pointer-events: none;
}

/* ── ai visual: chat thread ── */
.vai {
  width: 100%;
  max-width: 520px;
  background: transparent;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vai-prompt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: linear-gradient(
    135deg,
    rgba(242, 184, 75, 0.16),
    rgba(148, 99, 238, 0.1)
  );
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 99, 238, 0.3);
  position: relative;
  box-shadow: 0 4px 14px rgba(148, 99, 238, 0.08);
}
.vai-prompt .who {
  color: var(--color-clay-deep);
}
.vai-prompt .what {
  color: var(--color-ink);
}
.vai-prompt.response {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(16, 185, 129, 0.18), transparent 55%),
    linear-gradient(160deg, #1c1c27 0%, #14141c 100%);
  color: var(--color-ink);
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow:
    0 14px 38px rgba(16, 185, 129, 0.22),
    0 4px 14px rgba(0, 0, 0, 0.25);
  padding-left: 44px;
}
.ai-orb {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--color-clay),
    var(--color-ochre),
    var(--color-sage),
    var(--color-clay)
  );
  box-shadow:
    0 0 0 2px var(--color-ink),
    0 0 14px rgba(242, 184, 75, 0.5);
  animation: orb-spin 6s linear infinite;
}
@keyframes orb-spin {
  to {
    transform: rotate(360deg);
  }
}
.vai-prompt .who {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.vai-prompt.response .who {
  color: var(--color-ochre);
}
.vai-prompt .what {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink-soft);
}
.vai-prompt.response .what {
  color: var(--color-ink);
  min-height: 3em;
}
.ai-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--color-clay);
  vertical-align: -2px;
  margin-left: 2px;
  animation: ai-blink 900ms steps(2) infinite;
}
@keyframes ai-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

/* ── deploy visual: pipeline + log ── */
.vdeploy {
  width: 100%;
  max-width: 560px;
  background:
    radial-gradient(140% 90% at 100% 0%, rgba(16, 185, 129, 0.14), transparent 55%),
    radial-gradient(120% 80% at 0% 100%, rgba(148, 99, 238, 0.12), transparent 55%),
    linear-gradient(160deg, #1c1c27 0%, #14141c 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.vdeploy-pipe {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vstep {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-ink-soft);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.vstep.done {
  color: var(--color-sage);
  border-color: var(--color-sage);
  background: rgba(16, 185, 129, 0.1);
}
.vstep.running {
  color: var(--color-clay);
  border-color: var(--color-clay);
  background: rgba(148, 99, 238, 0.12);
  animation: pulse-step 1.4s ease-in-out infinite;
}
@keyframes pulse-step {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}
.vdeploy-log {
  background: rgba(8, 8, 14, 0.72);
  color: var(--color-ink);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}
.vdeploy-log > div {
  opacity: 0;
  animation: log-in 9s ease-out infinite;
}
.vdeploy-log > div:nth-child(1) {
  animation-delay: 0.1s;
}
.vdeploy-log > div:nth-child(2) {
  animation-delay: 0.6s;
}
.vdeploy-log > div:nth-child(3) {
  animation-delay: 1.1s;
}
.vdeploy-log > div:nth-child(4) {
  animation-delay: 1.6s;
}
.vdeploy-log > div:nth-child(5) {
  animation-delay: 2.1s;
}
.vdeploy-log > div:nth-child(6) {
  animation-delay: 2.6s;
}
.vdeploy-log > div:nth-child(7) {
  animation-delay: 3.1s;
}
.vdeploy-log > div.log-final {
  animation-delay: 3.7s;
  color: var(--color-sage);
}
@keyframes log-in {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  4%,
  88% {
    opacity: 1;
    transform: translateY(0);
  }
  95%,
  100% {
    opacity: 0;
    transform: translateY(-2px);
  }
}
.vdeploy-log .ok {
  color: var(--color-sage);
  margin-right: 6px;
}
.vdeploy-log .warn {
  color: var(--color-ochre);
  margin-right: 6px;
}
.vdeploy-log .dim {
  color: var(--color-stone);
  margin-right: 6px;
  opacity: 0.7;
}
.vdeploy-log .url {
  color: var(--color-clay);
}

@media (max-width: 1000px) {
  .wf-row {
    padding: 40px 0;
  }
  .wf-row-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .wf-row.visual-left .wf-text,
  .wf-row.visual-left .wf-anchor {
    order: initial;
  }
  .wf-text {
    justify-self: start !important;
    max-width: 100%;
    min-width: 0;
  }
  .wf-anchor {
    min-height: 460px;
    position: relative;
    min-width: 0;
  }
  .wf-floating {
    display: none;
  }
  .wf-anchor-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
  }
}
@media (max-width: 599px) {
  .wf-anchor,
  .wf-anchor-visual {
    min-height: 340px;
  }
  .phase-visual {
    padding: 12px;
  }
}
.phase-visual,
.wf-anchor,
.wf-anchor-visual {
  overflow: hidden;
}

/* ───────── principle statement (replaces italic quote) ───────── */

.principle-block {
  text-align: center;
  max-width: none;
  margin: 0;
  padding: clamp(64px, 9vw, 112px) 0;
}
.principle-block .eyebrow {
  display: inline-block;
  margin-bottom: 28px;
}
.principle-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "opsz" 96;
  color: var(--color-ink);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: none;
}

/* ───────── social icons ───────── */

.soc-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.soc-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--color-stone);
  background: var(--bg);
  transition:
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    background 180ms var(--ease-out);
}
.soc-icon:hover {
  color: var(--color-clay);
  border-color: var(--color-clay);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

/* ───────── hero social inline ───────── */

.hero-soc {
  margin-left: 8px;
  display: inline-flex;
}

/* ───────── tweak hide states ───────── */

body.hide-notes .note {
  display: none;
}
body.hide-signature .signature {
  display: none;
}
body.hide-signature .signature {
  display: none;
}

/* ───────── reveal animation ───────── */

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.in {
  animation: reveal-in 720ms var(--ease-out) forwards;
}

/* ───────── reduced motion ───────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .signature path {
    stroke-dashoffset: 0;
  }
}

/* ───────── Projects section (zigzag two-column rows) ───────── */

.projects-section {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

.projects-intro {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
}
.projects-intro .h2 {
  margin-left: auto;
  margin-right: auto;
}
.projects-intro .eyebrow {
  display: inline-block;
}
.projects-lead {
  margin: 22px auto 0;
  color: var(--color-ink-soft);
  font-size: 18px;
  line-height: 1.6;
  max-width: 60ch;
}

.projects-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.proj-row {
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.6vw, 56px);
  box-shadow: var(--shadow-xs);
}
.proj-row-header {
  margin: 0 0 28px;
}
.proj-row-header .proj-row-title {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
  max-width: none;
}

.proj-row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .proj-row-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* Mobile: enforce a uniform order regardless of the desktop zigzag layout.
   Order — image, description, video, tech stack, CTA. */
@media (max-width: 899px) {
  .proj-row-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .proj-row-grid > .proj-col {
    display: contents;
  }
  .proj-row-grid .proj-demo { order: 1; }
  .proj-row-grid .proj-col-text { order: 2; }
  .proj-row-grid .proj-video-thumb { order: 3; }
  .proj-row-grid .proj-stack-block { order: 4; }
  .proj-row-grid .proj-live-btn { order: 5; align-self: stretch; justify-content: center; }

  /* Mobile app rows: shots first, copy + stack + store buttons after, even when flipped. */
  .proj-row-mobile-grid,
  .proj-row-mobile-grid.is-flipped {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .proj-row-mobile-grid .proj-mobile-shots { order: 1; }
  .proj-row-mobile-grid .proj-mobile-aside { order: 2; }
}

.proj-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* ── description column ── */
.proj-col-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 56ch;
}
.proj-row-title {
  font-family: var(--font-display);
  font-weight: 550;
  color: var(--color-clay-deep);
  font-variation-settings: "opsz" 48;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}
.proj-row-desc {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 17px;
  line-height: 1.65;
}
.proj-row-desc + .proj-row-desc {
  margin-top: 4px;
}

/* ── demo frame (web/mobile/fintech mock) ── */
.proj-demo {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.proj-demo-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-stone);
  background: rgba(246, 251, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

/* web frames (dashboard + fintech share base) */
.proj-demo-web {
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.proj-demo-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--color-paper);
  border-bottom: 1px solid var(--border);
}
.proj-demo-bar .dots {
  display: flex;
  gap: 6px;
}
.proj-demo-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border);
}
.proj-demo-bar .dots i:nth-child(1) {
  background: var(--color-clay);
  opacity: 0.7;
}
.proj-demo-bar .dots i:nth-child(2) {
  background: var(--color-ochre);
  opacity: 0.7;
}
.proj-demo-bar .dots i:nth-child(3) {
  background: var(--color-sage);
  opacity: 0.7;
}
.proj-demo-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-stone);
  letter-spacing: 0.02em;
}

.proj-demo-body {
  flex: 1;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 20px;
  min-height: 0;
}
.proj-demo-body.dashboard {
  grid-template-columns: 110px 1fr;
}

.pdw-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdw-side i {
  height: 12px;
  border-radius: 4px;
  background: var(--color-border);
}
.pdw-side i.t,
.pdw-side i:first-child {
  background: var(--color-clay);
  width: 70%;
  height: 14px;
}
.pdw-side.wide i:nth-child(2) {
  width: 88%;
}
.pdw-side.wide i:nth-child(3) {
  width: 70%;
  background: var(--color-ochre);
  opacity: 0.55;
}
.pdw-side.wide i:nth-child(4) {
  width: 80%;
}
.pdw-side.wide i:nth-child(5) {
  width: 60%;
}

.pdw-side .pdw-step {
  height: 14px;
  width: 80%;
  border-radius: 4px;
  background: var(--color-border);
}
.pdw-side .pdw-step.done {
  background: var(--color-sage);
  opacity: 0.65;
}
.pdw-side .pdw-step.active {
  background: var(--color-clay);
}

.pdw-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.pdw-line {
  height: 12px;
  border-radius: 4px;
  background: var(--color-border);
}
.pdw-line.t {
  height: 18px;
  width: 45%;
  background: var(--color-clay-deep);
}

.pdw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.pdw-stats > div {
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pdw-stats .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.pdw-stats .num {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 18px;
  color: var(--color-ink);
}
.pdw-chart {
  margin-top: auto;
  height: 70px;
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--color-clay);
}
.pdw-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* fintech checkout variant */
.proj-demo-web.fintech .pdw-card {
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proj-demo-web.fintech .pdw-card span {
  height: 8px;
  border-radius: 3px;
  background: var(--color-border);
  display: block;
  width: 70%;
}
.proj-demo-web.fintech .pdw-card.alt span:first-child {
  background: var(--color-ochre);
  opacity: 0.55;
  width: 50%;
}
.proj-demo-web.fintech .pdw-pay {
  margin-top: auto;
  padding: 12px 14px;
  background: var(--color-clay);
  color: var(--color-bone);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* mobile demo */
.proj-demo-mobile {
  background: linear-gradient(160deg, #111118 0%, #201f29 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-demo-mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 22px,
    rgba(255, 255, 255, 0.04) 22px 23px
  );
  pointer-events: none;
}
.proj-demo-mobile-inner {
  position: relative;
  z-index: 1;
}
.pdm-phone {
  width: 200px;
  aspect-ratio: 9 / 18;
  background: var(--color-ink);
  border-radius: 32px;
  padding: 6px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.pdm-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg), var(--color-paper));
  border-radius: 26px;
  position: relative;
  padding: 26px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.pdm-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  background: var(--color-ink);
  border-radius: 999px;
}
.pdm-row {
  height: 8px;
  border-radius: 3px;
  background: var(--color-border);
}
.pdm-row.pdm-title {
  background: var(--color-clay-deep);
  width: 60%;
  height: 12px;
  margin-top: 8px;
}
.pdm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0;
}
.pdm-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--color-paper);
  border: 1px solid var(--border);
}
.pdm-grid span:nth-child(1) {
  background: linear-gradient(160deg, var(--color-paper), var(--color-clay));
  border-color: transparent;
}
.pdm-grid span:nth-child(2) {
  background: linear-gradient(160deg, var(--bg), var(--color-ochre));
  border-color: transparent;
}
.pdm-grid span:nth-child(3) {
  background: linear-gradient(160deg, var(--color-paper), var(--color-sage));
  border-color: transparent;
}
.pdm-grid span:nth-child(4) {
  background: linear-gradient(160deg, var(--bg), var(--color-rust));
  border-color: transparent;
}

/* ── video thumb (clickable) ── */
.proj-video-thumb {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #f4f3fb 0%, #0d1f36 100%);
  color: var(--color-bone);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-md);
  transition:
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
  display: block;
}
.proj-video-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}
.proj-video-thumb:hover .pvt-play {
  transform: translate(-50%, -50%) scale(1.06);
}
.pvt-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      420px 240px at 30% 30%,
      rgba(242, 184, 75, 0.28),
      transparent 60%
    ),
    radial-gradient(
      360px 220px at 75% 70%,
      rgba(148, 99, 238, 0.3),
      transparent 60%
    );
}
.pvt-grain {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 22px,
    rgba(255, 255, 255, 0.05) 22px 23px
  );
  pointer-events: none;
}
.pvt-portrait {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(
    160deg,
    var(--color-clay),
    var(--color-clay-deep)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 20px;
  color: var(--color-bone);
  border: 2px solid rgba(246, 251, 255, 0.18);
  letter-spacing: 0.02em;
}
.pvt-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}
.pvt-meta .eyebrow {
  color: var(--color-ochre);
  margin-bottom: 6px;
}
.pvt-name {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 20px;
  color: var(--color-bone);
  letter-spacing: -0.005em;
}
.pvt-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(246, 251, 255, 0.7);
  letter-spacing: 0.04em;
}
.pvt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-clay);
  box-shadow: 0 12px 36px rgba(148, 99, 238, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 240ms var(--ease-out);
  z-index: 3;
}
.pvt-play-tri {
  width: 0;
  height: 0;
  border-left: 18px solid var(--color-bone);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

/* image-backed demo + thumb */
.proj-demo-image {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-demo-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Tall variant — used when the screenshot captures a long page section
   so it can fill the vertical space the right column claims. */
.proj-demo-image.is-tall {
  aspect-ratio: 528 / 830;
}
@media (max-width: 899px) {
  .proj-demo-image.is-tall {
    aspect-ratio: 528 / 830;
  }
}
.proj-video-thumb.has-image {
  background: var(--color-ink);
}
.pvt-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj-video-thumb.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 28%,
      rgba(0, 0, 0, 0.96) 88%
    ),
    radial-gradient(
      70% 55% at 22% 88%,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0) 75%
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 58%);
  pointer-events: none;
}
.proj-video-thumb.has-image .pvt-grain {
  opacity: 0.5;
}
.proj-video-thumb.has-image .pvt-name,
.proj-video-thumb.has-image .pvt-role {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.proj-video-thumb.has-image .pvt-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
}
.proj-video-thumb.has-image .pvt-role {
  color: rgba(255, 255, 255, 0.95);
}
.proj-video-thumb.is-playing {
  cursor: default;
  padding: 0;
  background: #000;
}
.proj-video-thumb.is-playing .pvt-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* stack block + full-width live button */
.proj-stack-block {
  background: rgba(242, 184, 75, 0.14);
  border: 1px solid rgba(242, 184, 75, 0.32);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proj-stack-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-rust);
  margin: 0;
}
.proj-live-btn.btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 16px;
}

/* ── stack + CTA footer for the aside ── */
.proj-row-foot {
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.proj-row-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proj-row-foot .btn {
  align-self: flex-start;
}

@media (max-width: 899px) {
  .proj-demo {
    aspect-ratio: 16 / 10;
  }
  .proj-video-thumb {
    aspect-ratio: 16 / 10;
  }
  .pvt-meta {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }
  .pvt-play {
    width: 60px;
    height: 60px;
  }
  .pvt-play-tri {
    border-left-width: 14px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
}

/* ── mobile-app project row (60/40 with 3x2 phone shots) ── */
.proj-row-mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .proj-row-mobile-grid {
    grid-template-columns: 3fr 2fr;
    gap: 56px;
  }
  .proj-row-mobile-grid.is-flipped {
    grid-template-columns: 2fr 3fr;
  }
}
.proj-mobile-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  min-width: 0;
}
@media (max-width: 599px) {
  .proj-mobile-shots {
    grid-template-columns: 1fr;
  }
}
.proj-mobile-shot {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.proj-mobile-shot > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.proj-mobile-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.proj-store-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 599px) {
  .proj-store-row {
    grid-template-columns: 1fr;
  }
}
.proj-store-row .store-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 15px;
}
.store-btn .btn-arrow {
  margin-left: auto;
  opacity: 0.85;
}
.store-btn-icon {
  flex-shrink: 0;
}

/* ── Client feedback section ── */
.feedback-section {
  padding-top: 0 !important;
  padding-bottom: 1.5rem !important;
}
.projects-section {
  padding-bottom: 1.5rem !important;
}
.feedback-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feedback-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.feedback-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
@media (max-width: 999px) {
  .feedback-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .feedback-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 999px) {
  .feedback-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .feedback-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}
.feedback-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  border: 1px solid rgba(58, 47, 38, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.feedback-mark {
  color: var(--color-clay);
  opacity: 0.55;
  display: block;
  margin-bottom: 12px;
}
.feedback-quote {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 24;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-ink);
  letter-spacing: -0.005em;
}
.feedback-meta {
  padding-top: 16px;
  border-top: 1px dashed rgba(58, 47, 38, 0.22);
}

/* Video cards inside the feedback masonry — match brand .proj-video-thumb hover */
.feedback-card.feedback-video {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--color-ink);
  text-decoration: none;
  color: var(--color-bone);
  cursor: pointer;
  width: 100%;
  box-shadow: var(--shadow-md);
  transition:
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}
.feedback-video.is-vertical {
  aspect-ratio: 9 / 16;
}
.feedback-video.is-horizontal {
  aspect-ratio: 16 / 9;
}
.feedback-row-mid .feedback-video.is-horizontal {
  grid-column: span 2;
}
@media (max-width: 999px) {
  .feedback-row-mid .feedback-video.is-horizontal {
    grid-column: span 2;
  }
}
@media (max-width: 599px) {
  .feedback-row-mid .feedback-video.is-horizontal {
    grid-column: span 1;
  }
}
.feedback-card.feedback-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}
.feedback-card.feedback-video:hover .pvt-play {
  transform: translate(-50%, -50%) scale(1.06);
}
/* span rules now defined alongside the text-card size classes above */
.feedback-card.feedback-video .pvt-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feedback-card.feedback-video .pvt-grain {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}
.feedback-card.feedback-video .pvt-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}
.feedback-card.feedback-video .pvt-name {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 17px;
  line-height: 1.2;
  color: var(--color-bone);
}
.feedback-card.feedback-video .pvt-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 251, 255, 0.78);
}
.feedback-card.feedback-video .pvt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 50%;
  background: rgba(148, 99, 238, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 240ms var(--ease-out);
}
.feedback-card.feedback-video .pvt-play-tri {
  width: 0;
  height: 0;
  border-left: 16px solid var(--color-bone);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.feedback-project {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-rust);
}

/* Custom vertical-video popup — bypasses Plyr so Vimeo can render true 9:16 */
.vplayer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vplayer-fade 200ms var(--ease-out, ease-out);
}
@keyframes vplayer-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.vplayer-frame {
  position: relative;
  width: min(440px, 92vw);
  aspect-ratio: 9 / 16;
  max-height: 92vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.vplayer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vplayer-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.vplayer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
body.vplayer-open {
  overflow: hidden;
}

/* GLightbox — force a 9:16 wrapper when the active slide is a vertical video */
.glightbox-container.gl-is-vertical .gslide-video,
.glightbox-container.gl-is-vertical .gvideo-wrapper {
  width: min(440px, 92vw) !important;
  max-width: min(440px, 92vw) !important;
}
.glightbox-container.gl-is-vertical .gvideo-wrapper {
  position: relative;
  aspect-ratio: 9 / 16 !important;
  height: auto !important;
  padding-bottom: 0 !important;
}
.glightbox-container.gl-is-vertical .gvideo-wrapper iframe,
.glightbox-container.gl-is-vertical .gvideo-wrapper .gvideo-container,
.glightbox-container.gl-is-vertical .gvideo-wrapper video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}
/* Plyr internals — Plyr forces a 16:9 aspect-ratio on its embed wrapper and
   sets an inline padding-bottom for the iframe container; override both. */
.glightbox-container.gl-is-vertical .plyr,
.glightbox-container.gl-is-vertical .plyr__video-embed,
.glightbox-container.gl-is-vertical .plyr__video-wrapper {
  aspect-ratio: 9 / 16 !important;
  height: 100% !important;
  width: 100% !important;
  padding-bottom: 0 !important;
}
.glightbox-container.gl-is-vertical .plyr__video-embed__container {
  padding-bottom: 0 !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
}

/* GLightbox tweaks — single-video gallery, no nav arrows, fluid on mobile */
.glightbox-container .gnext,
.glightbox-container .gprev {
  display: none !important;
}
.glightbox-container .gslide-video,
.glightbox-container .gvideo-wrapper {
  width: min(1080px, 92vw) !important;
  max-width: 100%;
}
.glightbox-container .gvideo-wrapper {
  aspect-ratio: 16 / 9;
}
.glightbox-container .gvideo-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 720px) {
  .glightbox-container .gslide-video,
  .glightbox-container .gvideo-wrapper {
    width: 94vw !important;
  }
  .glightbox-clean .gclose {
    top: 12px !important;
    right: 12px !important;
  }
}

/* ───────── Upwork stats strip ───────── */
.upwork-stats {
  padding: clamp(40px, 6vw, 72px) 16px clamp(24px, 4vw, 48px);
}
@media (min-width: 900px) {
  .upwork-stats {
    padding-left: 64px;
    padding-right: 64px;
  }
}
.stats-head {
  margin-bottom: 28px;
}
.stats-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: var(--weight-display, 550);
  letter-spacing: -0.01em;
  margin: 10px 0 0;
  color: var(--color-ink, #1a1a1a);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}
.stat-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  border-radius: 14px;
  transition:
    transform 320ms var(--ease-out),
    border-color 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out);
}
.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--color-clay);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.18);
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(148, 99, 238, 0.1);
  color: var(--color-clay-deep);
  flex-shrink: 0;
}
.stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stat-num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-clay);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.stat-suffix {
  color: var(--color-clay);
  font-weight: 600;
}
.stat-label {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ink, #1a1a1a);
}
.stat-sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--color-muted, #6b6457);
}

/* ───────── Mobile nav (hamburger + drawer) ───────── */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 12px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink, #1a1a1a);
  border-radius: 2px;
  transition:
    transform 220ms var(--ease-out),
    opacity 180ms var(--ease-out);
}
.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 14, 0.62);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  z-index: 20;
}
.nav.is-open .nav-backdrop {
  display: block;
  animation: nav-fade-in 220ms var(--ease-out);
}
@keyframes nav-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  background: var(--bg-elevated, var(--color-paper));
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  z-index: 25;
}
.nav-drawer a:not(.btn) {
  font-size: 18px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink);
}
.nav-drawer a:not(.btn):last-of-type {
  border-bottom: none;
}
.nav-drawer .btn {
  margin-top: 12px;
  align-self: stretch;
  width: 100%;
  justify-content: center;
  color: var(--color-bone);
}
.nav-drawer .btn-primary {
  color: var(--color-bone);
}
.nav.is-open .nav-drawer {
  display: flex;
}
body.nav-open {
  overflow: hidden;
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }
  .nav-drawer {
    display: none !important;
  }
}
@media (max-width: 799px) {
  .nav-cta {
    display: none;
  }
  .nav-inner {
    gap: 8px;
  }
}
