/* ================= Pronocoders agency site styles ================= */

:root {
  --ink: #0c0c0d;
  --ink-2: #141416;
  --ink-3: #1c1c20;
  --bone: #efece4;
  --bone-2: #d8d4c7;
  --muted: #7a7870;
  --line: rgba(239, 236, 228, 0.12);
  --line-strong: rgba(239, 236, 228, 0.24);
  --accent: oklch(0.88 0.20 125);
  --accent-2: oklch(0.75 0.18 125);
  --radius: 20px;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  cursor: none;
}
@media (pointer: coarse) {
  body { cursor: auto; }
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }

/* ===== Layout ===== */
.wrap {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding-left: clamp(12px, 4vw, 48px);
  padding-right: clamp(12px, 4vw, 48px);
  box-sizing: border-box;
}
section { position: relative; }

/* ===== Grain overlay ===== */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 999;
}

/* ===== Cursor ===== */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  margin: -3px 0 0 -3px;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1px solid var(--bone);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  margin: -19px 0 0 -19px;
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}
.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
  opacity: 0.35;
}

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), background 0.3s, backdrop-filter 0.3s;
}
.header-scrolled {
  background: rgba(12, 12, 13, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-hidden { transform: translateY(-120%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 28px);
  flex-wrap: wrap;
}

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

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-burger:hover { border-color: var(--bone); background: rgba(255,255,255,0.04); }

.nav-burger-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--bone);
  border-radius: 1px;
  transition: transform 0.25s, background 0.2s;
}
.nav-burger-lines::before,
.nav-burger-lines::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--bone);
  border-radius: 1px;
  transition: transform 0.25s, top 0.25s;
}
.nav-burger-lines::before { top: -6px; }
.nav-burger-lines::after { top: 6px; }

.nav-toggle-input:checked ~ .nav-burger {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.nav-toggle-input:checked ~ .nav-burger .nav-burger-lines {
  background: transparent;
}
.nav-toggle-input:checked ~ .nav-burger .nav-burger-lines::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle-input:checked ~ .nav-burger .nav-burger-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: clamp(11px, 2.9vw, 14px);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-text { min-width: 0; }
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav {
  display: flex; gap: clamp(16px, 3vw, 36px);
  font-family: var(--mono);
  font-size: clamp(12px, 2.4vw, 13px);
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.nav a {
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--bone);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: clamp(10px, 2.8vw, 12px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

@media (max-width: 880px) {
  .header { padding-block: clamp(12px, 3vw, 18px); }
  .nav-burger { display: inline-flex; }

  .header-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }

  .logo { order: 1; flex: 1; min-width: 0; }
  .nav-burger { order: 2; }
  .header-cta { order: 3; }

  .nav {
    order: 4;
    flex: none;
    flex-basis: 100%;
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    margin: 0;
    border-top: 1px solid transparent;
    transition:
      max-height 0.45s cubic-bezier(.2, .8, .2, 1),
      opacity 0.3s ease,
      padding 0.35s ease,
      border-color 0.3s ease;
  }

  .nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    opacity: 1;
    white-space: normal;
    line-height: 1.35;
  }

  .nav a:last-child { border-bottom-width: 0; }

  .nav-toggle-input:checked ~ .nav {
    max-height: min(75vh, 440px);
    opacity: 1;
    visibility: visible;
    padding: 14px 0 8px;
    margin-top: 6px;
    border-top-color: var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav { transition-duration: 0.01ms; }
}

body.nav-open {
  overflow: hidden;
}

@media (pointer: coarse) {
  .nav-burger { cursor: pointer; }
}

@media (max-width: 360px) {
  .header-cta { padding-inline: 12px; gap: 6px; }
  .header-cta-text {
    display: none;
  }
  .header-cta::after {
    content: 'Work';
    font: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(112px, 24vw, 140px) 0 clamp(48px, 12vw, 80px);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 40px;
}
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.88 0.20 125 / 0.6); }
  70% { box-shadow: 0 0 0 14px oklch(0.88 0.20 125 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.88 0.20 125 / 0); }
}

.hero-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 9vw + 8px, 148px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  padding-right: 0;
  word-spacing: 0.02em;
}
.hero-line {
  display: block;
}
.hero-h1 em {
  font-style: italic;
  color: var(--accent);
  padding-right: 0.05em;
}
.hero-h1 .word-wrap {
  display: inline-block;
  overflow: hidden;
  padding: 0.06em 0.15em 0.06em 0.02em;
  vertical-align: baseline;
  clip-path: inset(0 -0.3em 0 -0.05em);
}
.hero-h1 .word {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-line:nth-child(1) .word-wrap:nth-child(1) .word { animation-delay: 0.10s; }
.hero-line:nth-child(1) .word-wrap:nth-child(2) .word { animation-delay: 0.18s; }
.hero-line:nth-child(1) .word-wrap:nth-child(3) .word { animation-delay: 0.26s; }
.hero-line:nth-child(1) .word-wrap:nth-child(4) .word { animation-delay: 0.34s; }
.hero-line:nth-child(2) .word-wrap:nth-child(1) .word { animation-delay: 0.42s; }
.hero-line:nth-child(2) .word-wrap:nth-child(2) .word { animation-delay: 0.50s; }
.hero-line:nth-child(2) .word-wrap:nth-child(3) .word { animation-delay: 0.58s; }
.hero-line:nth-child(2) .word-wrap:nth-child(4) .word { animation-delay: 0.66s; }
@keyframes word-up { to { transform: translateY(0); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
  margin-top: 40px;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-sub {
  font-size: clamp(16px, 3.8vw + 6px, 20px);
  line-height: 1.45;
  color: var(--bone-2);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: clamp(14px, 3vw + 8px, 18px) clamp(20px, 4vw + 12px, 28px);
  background: var(--bone);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: clamp(11px, 2vw + 8px, 13px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  will-change: transform;
}
.btn-primary:hover { background: var(--accent); }
.btn-primary .arr {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  display: grid; place-items: center;
  transition: transform 0.3s;
}
.btn-primary:hover .arr { transform: rotate(-45deg); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: clamp(14px, 3vw + 8px, 18px) clamp(18px, 4vw + 8px, 24px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: clamp(11px, 2vw + 8px, 13px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--bone); }

.hero-meta {
  display: flex; flex-wrap: wrap;
  gap: clamp(14px, 4vw, 32px);
  font-family: var(--mono);
  font-size: clamp(10px, 2.4vw + 4px, 12px);
  color: var(--muted);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-meta strong { color: var(--bone); font-weight: 500; }

/* Hero live build canvas */
.hero-build {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
}
.build-chrome {
  height: auto;
  min-height: 38px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(9px, 2vw + 4px, 11px);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.build-chrome > span:last-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.build-chrome-dots { display: flex; gap: 6px; margin-right: 10px; }
.build-chrome-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.build-chrome-dots span:nth-child(1) { background: #ff5f57; }
.build-chrome-dots span:nth-child(2) { background: #febc2e; }
.build-chrome-dots span:nth-child(3) { background: #28c840; }

.build-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  flex: 1;
  min-height: 0;
}
.build-left {
  padding: clamp(14px, 4vw, 20px);
  display: flex; flex-direction: column; gap: 12px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.build-label {
  font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.build-block {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.02);
  transition: all 0.5s cubic-bezier(.2,.8,.2,1);
}
.build-block::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
  transition: background 0.3s;
}
.build-block.lit {
  border-color: var(--accent);
  color: var(--bone);
  background: oklch(0.88 0.20 125 / 0.08);
  transform: translateX(4px);
}
.build-block.lit::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.build-right {
  padding: clamp(14px, 4vw, 20px);
  display: grid; place-items: center;
  position: relative;
  min-width: 0;
  background:
    radial-gradient(circle at 30% 20%, oklch(0.88 0.20 125 / 0.06), transparent 50%),
    var(--ink-2);
}
.build-phone {
  width: 62%;
  aspect-ratio: 9/19;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.phone-notch {
  width: 40%; height: 12px;
  border-radius: 0 0 8px 8px;
  background: var(--ink-3);
  margin: -16px auto 8px;
}
.phone-line {
  height: 10px; border-radius: 4px;
  background: var(--ink-3);
  opacity: 0.4;
  transition: opacity 0.5s, background 0.5s, transform 0.5s;
  transform: translateX(-8px);
}
.phone-line.lit { opacity: 1; transform: translateX(0); background: var(--bone-2); }
.phone-line:nth-child(3) { width: 85%; }
.phone-line:nth-child(4) { width: 60%; }
.phone-line:nth-child(5) { height: 70px; border-radius: 10px; margin-top: 6px; }
.phone-line:nth-child(5).lit { background: var(--accent); }
.phone-line:nth-child(6) { width: 100%; height: 22px; border-radius: 6px; margin-top: auto; }
.phone-line:nth-child(6).lit { background: var(--bone); }

.ship-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 10px;
  background: var(--accent); color: var(--ink);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.5s cubic-bezier(.2,1.6,.3,1);
}
.ship-badge.show { opacity: 1; transform: scale(1); }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--ink);
}
.marquee-inner {
  display: flex; gap: clamp(28px, 10vw, 64px);
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-size: clamp(28px, 9vw + 8px, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.marquee-inner > span {
  display: inline-flex; align-items: center; gap: clamp(20px, 8vw, 64px);
  color: var(--bone);
}
.marquee-inner > span::after {
  content: '✦';
  font-size: clamp(14px, 4vw + 6px, 24px);
  color: var(--accent);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-reverse .marquee-inner { animation-direction: reverse; }

/* Narrow viewports (~3 marquee phrases readable across width, faster drift) */
@media (max-width: 720px) {
  .marquee-inner {
    font-size: clamp(15px, 3.9vw + 6px, 24px);
    gap: clamp(18px, 5vw, 36px);
    animation-duration: 26s;
  }
  .marquee-inner > span {
    gap: clamp(14px, 4.5vw, 32px);
  }
  .marquee-inner > span::after {
    font-size: clamp(11px, 2.4vw + 5px, 18px);
  }
}

@media (max-width: 480px) {
  .marquee-inner {
    font-size: clamp(13px, 3.6vw + 4px, 18px);
    gap: clamp(12px, 4vw, 22px);
    animation-duration: 19s;
  }
  .marquee-inner > span {
    gap: clamp(10px, 3.8vw, 20px);
  }
  .marquee-inner > span::after {
    font-size: clamp(10px, 2.2vw + 4px, 14px);
  }
}

/* ===== Section header ===== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 6.5vw + 6px, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 16px;
  max-width: 18ch;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-desc {
  max-width: 420px;
  font-size: clamp(14px, 2.8vw + 10px, 16px);
  color: var(--bone-2);
  line-height: 1.5;
}

/* Reveal utility */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }

/* ===== Services ===== */
.services { padding-bottom: 120px; }
.service-row {
  display: grid;
  grid-template-columns: 80px 0.9fr 1.6fr 0.6fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s, background 0.3s;
  cursor: none;
}
.service-row:hover {
  padding-left: 20px; padding-right: 20px;
  background: rgba(255,255,255,0.02);
}
.service-row:hover .service-arr { transform: translateX(0); opacity: 1; }
.service-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.service-name {
  font-family: var(--serif);
  font-size: clamp(22px, 5vw + 8px, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: color 0.3s, transform 0.3s;
}
.service-row:hover .service-name { color: var(--accent); }
.service-desc {
  font-size: 15px;
  color: var(--bone-2);
  line-height: 1.5;
}
.service-arr {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  justify-self: end;
  opacity: 0.4;
  transform: translateX(-12px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s, color 0.3s;
}
.service-row:hover .service-arr { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.service-stack {
  grid-column: 2 / 5;
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: -8px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
}

/* ===== Process ===== */
.process { padding-bottom: 180px; }
.process-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.process-sticky {
  position: sticky; top: 140px;
  height: 60vh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 40px;
}
.process-track {
  --p: 0;
  height: 1px;
  background: var(--line);
  position: relative;
}
.process-track::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--p) * 100%);
  background: var(--accent);
}
.process-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--bone);
  position: absolute; top: -7px; left: calc(var(--p) * 100%);
  transform: translateX(-50%);
  background: var(--ink);
}
.process-dot::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--accent); border-radius: 50%;
}
.process-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
}
.pv-big {
  font-family: var(--serif);
  font-size: clamp(72px, 38vw + 12px, 180px);
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.pv-label {
  position: absolute; bottom: clamp(14px, 4vw, 24px); left: clamp(14px, 4vw, 24px); right: clamp(14px, 4vw, 24px);
  display: flex; justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono); font-size: clamp(9px, 2vw + 5px, 11px);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.process-steps { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; }
[data-process-step] {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.5s, border-color 0.5s;
}
[data-process-step].active {
  opacity: 1;
  border-top-color: var(--accent);
}
.step-meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: clamp(10px, 2vw + 6px, 12px);
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.step-meta strong { color: var(--accent); }
.step-title {
  font-family: var(--serif);
  font-size: clamp(30px, 8vw + 8px, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.step-body { color: var(--bone-2); max-width: 440px; line-height: 1.5; }

/* ===== Portfolio ===== */
.portfolio { padding-bottom: 120px; }
.portfolio-list {
  border-top: 1px solid var(--line);
}
.project {
  display: grid;
  grid-template-columns: 0.4fr 1.2fr 0.8fr 0.4fr 0.2fr;
  gap: 24px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.3s, background 0.3s;
}
.project:hover { background: rgba(255,255,255,0.02); padding-left: 20px; padding-right: 20px; }
.project:hover .project-preview { opacity: 1; }
.project-year { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.project-name {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw + 12px, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: color 0.3s, transform 0.3s;
}
.project:hover .project-name { color: var(--accent); }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-stat {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  color: var(--bone-2);
}
.project-stat strong { color: var(--accent); font-family: var(--serif); font-size: clamp(18px, 4vw + 10px, 22px); display: block; }
.project-arr {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  justify-self: end;
}
.project-preview {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 240px;
  pointer-events: none;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 50;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.project-preview-inner {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.project-preview-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 18px);
}

/* ===== Case studies (below portfolio list) ===== */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 28px);
  margin-top: clamp(40px, 8vw, 60px);
}
.case-study-title {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw + 10px, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  line-height: 1.08;
}
.case-study-copy {
  font-size: clamp(14px, 2.8vw + 8px, 15px);
  line-height: 1.55;
  color: var(--bone-2);
  margin-bottom: 18px;
}
.case-study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 12px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ===== Founder testimonial ===== */
.founder-head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 18px);
  margin-bottom: 6px;
}
.founder-avatar {
  flex-shrink: 0;
  width: clamp(48px, 14vw, 56px);
  height: clamp(48px, 14vw, 56px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(18px, 5vw, 22px);
  background: linear-gradient(135deg, var(--accent), var(--ink-3));
  color: var(--ink);
}
.founder-name {
  font-family: var(--serif);
  font-size: clamp(20px, 4vw + 8px, 26px);
  letter-spacing: -0.02em;
}
.founder-role {
  font-family: var(--mono);
  font-size: clamp(10px, 2.2vw + 6px, 11px);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.t-quote-lead {
  font-size: clamp(17px, 3.8vw + 8px, 22px);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 10px; }
  .project-stat { text-align: left; }
  .service-row { grid-template-columns: 50px 1fr; gap: 18px; }
  .service-desc, .service-arr { display: none; }
  .process-stage { grid-template-columns: 1fr; }
  .process-sticky { position: static; height: auto; }
  .case-study-grid { grid-template-columns: 1fr; }
}

/* ===== Stats ===== */
.stats {
  padding: 140px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, oklch(0.88 0.20 125 / 0.05), transparent 60%),
    var(--ink);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 0 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(44px, 14vw + 12px, 144px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.stat-num sup {
  font-size: 0.35em;
  color: var(--accent);
  vertical-align: super;
  font-style: italic;
}
.stat-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 16px;
  line-height: 1.4;
}

/* ===== Testimonials ===== */
.testimonials { padding-bottom: 120px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.t-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  min-height: 340px;
  transition: border-color 0.3s, transform 0.3s;
  transform-style: preserve-3d;
}
.t-card:hover { border-color: var(--line-strong); }
.t-quote-mark {
  font-family: var(--serif);
  font-size: clamp(52px, 14vw + 22px, 80px);
  line-height: 0.6;
  color: var(--accent);
  font-style: italic;
}
.t-quote {
  font-family: var(--serif);
  font-size: clamp(18px, 3.5vw + 8px, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}
.t-meta {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--ink-3));
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; color: var(--ink);
}
.t-name { font-size: 14px; }
.t-role { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== Pricing ===== */
.pricing { padding-bottom: 120px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.plan {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
  transition: background 0.3s;
  position: relative;
}
.plan:last-child { border-right: none; }
.plan:hover { background: rgba(255,255,255,0.02); }
.plan.featured {
  background: oklch(0.88 0.20 125 / 0.04);
}
.plan-badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 10px;
  background: var(--accent); color: var(--ink);
  border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.plan-tier {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.plan-price {
  font-family: var(--serif);
  font-size: clamp(40px, 12vw + 8px, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.plan-price small {
  font-size: 18px;
  color: var(--muted);
  font-family: var(--sans);
}
.plan-sub {
  font-size: 14px;
  color: var(--bone-2);
  line-height: 1.5;
  min-height: 42px;
}
.plan-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  margin: 12px 0 20px;
  flex: 1;
}
.plan-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  color: var(--bone-2);
}
.plan-list li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--mono);
  flex-shrink: 0;
}
.plan-cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.plan-cta:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.plan.featured .plan-cta { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.plan.featured .plan-cta:hover { background: var(--bone); border-color: var(--bone); }

/* ===== FAQ ===== */
.faq { padding-bottom: 120px; }
.faq-list { border-top: 1px solid var(--line); }
[data-faq] {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
[data-faq-trigger] {
  width: 100%;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(18px, 3.5vw + 8px, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding: 0;
  transition: color 0.2s;
}
[data-faq-trigger] > span:first-child {
  flex: 1;
  min-width: 0;
}
[data-faq-trigger]:hover { color: var(--accent); }
.faq-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), background 0.3s, color 0.3s;
}
[data-faq].open .faq-icon { transform: rotate(45deg); background: var(--accent); color: var(--ink); border-color: var(--accent); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.4s;
  opacity: 0;
}
[data-faq].open .faq-body { max-height: min(65vh, 560px); opacity: 1; padding-top: 20px; }
.faq-body p {
  color: var(--bone-2);
  font-size: clamp(14px, 2.5vw + 10px, 16px);
  line-height: 1.6;
  max-width: 680px;
}

/* ===== Big CTA ===== */
.big-cta {
  padding: clamp(72px, 14vw, 180px) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}
.big-cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, oklch(0.88 0.20 125 / 0.15), transparent 60%);
  animation: pulse-bg 6s ease-in-out infinite;
}
@keyframes pulse-bg {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.big-cta-text {
  font-family: var(--serif);
  font-size: clamp(40px, 10vw + 12px, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 400;
  position: relative;
}
.big-cta-text em { font-style: italic; color: var(--accent); }
.big-cta-sub {
  margin: clamp(24px, 6vw, 40px) auto clamp(28px, 6vw, 40px);
  max-width: 600px;
  color: var(--bone-2);
  font-size: clamp(15px, 3vw + 8px, 20px);
  position: relative;
}
.big-cta .btn-primary { position: relative; font-size: clamp(12px, 2vw + 8px, 14px); padding: clamp(16px, 3vw + 8px, 22px) clamp(22px, 6vw + 8px, 36px); }

/* Contact form (inside big-cta) */
.contact-form {
  max-width: 620px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 14px;
  text-align: left;
  position: relative;
}
.contact-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 700px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--bone);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.contact-form select option {
  background: var(--ink-2);
  color: var(--bone);
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--sans);
}

/* ===== Footer ===== */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; color: var(--bone-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-big {
  font-family: var(--serif);
  font-size: clamp(28px, 8vw + 8px, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 420px;
}
.footer-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: clamp(11px, 2.5vw + 6px, 14px);
  padding: 10px clamp(12px, 4vw + 8px, 16px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  max-width: 100%;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.footer-email:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-wordmark {
  font-family: var(--serif);
  /* One line on all viewports: vw tracks available width; capped so it stays smaller than the old hero-scale mark */
  font-size: clamp(18px, 6vw + 5px, 120px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--bone);
  padding: clamp(26px, 7vw, 48px) clamp(8px, 2vw, 16px) 0;
  margin-inline: auto;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.footer-wordmark em { font-style: italic; color: var(--accent); }

/* ===== Tweaks panel ===== */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 500;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px;
  width: 260px;
  font-family: var(--mono);
  font-size: 12px;
  display: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.tweaks-panel.active { display: block; }
.tweaks-panel h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  font-weight: 500;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row label {
  display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.tweak-swatches { display: flex; gap: 8px; }
.tweak-sw {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: none;
  transition: transform 0.2s, border-color 0.2s;
}
.tweak-sw.active { border-color: var(--bone); }
.tweak-sw:hover { transform: scale(1.08); }
.tweak-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opt {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 11px;
  color: var(--bone-2);
  background: transparent;
  cursor: none;
  transition: background 0.2s, color 0.2s;
}
.tweak-opt.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ----- Touch / coarse pointers ----- */
@media (pointer: coarse) {
  button,
  .contact-form input,
  .contact-form select,
  .contact-form textarea { cursor: pointer; }
  .project-preview { display: none !important; }
}

/* ----- Narrow phones (down to 320px) ----- */
@media (max-width: 640px) {
  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: clamp(64px, 15vw, 120px) 0 40px;
    margin-bottom: 40px;
  }
  .marquee { padding: 20px 0; }
  .stats {
    padding: clamp(64px, 14vw, 140px) 0;
  }
  .hero-eyebrow {
    flex-wrap: wrap;
    row-gap: 8px;
    font-size: clamp(9px, 2.2vw + 4px, 12px);
    margin-bottom: clamp(24px, 6vw, 40px);
  }
  .hero-eyebrow-rule { display: none; }
  .hero-grid { gap: clamp(28px, 8vw, 40px); margin-top: 28px; }
  .services { padding-bottom: clamp(72px, 16vw, 120px); }
  .process { padding-bottom: clamp(100px, 22vw, 180px); }
  .footer { padding: clamp(48px, 12vw, 80px) 0 32px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: clamp(28px, 8vw, 40px);
  }
}

@media (max-width: 520px) {
  .build-body {
    grid-template-columns: 1fr;
  }
  .build-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .build-block {
    font-size: clamp(9px, 2.2vw + 5px, 11px);
    padding: 8px 10px;
  }
  .hero-build {
    aspect-ratio: unset;
    max-height: none;
    min-height: 280px;
  }
  .ship-badge {
    top: 12px;
    right: 12px;
    font-size: 9px;
    padding: 5px 8px;
  }
  .project:hover,
  .service-row:hover {
    padding-left: clamp(4px, 2vw, 12px);
    padding-right: clamp(4px, 2vw, 12px);
  }
  .t-card {
    padding: clamp(20px, 5vw, 32px);
    min-height: unset;
    gap: 18px;
  }
  .plan {
    padding: clamp(26px, 6vw, 40px) clamp(18px, 5vw, 32px);
  }
  .faq-icon {
    width: 36px;
    height: 36px;
  }
  .stat {
    padding-inline: clamp(12px, 4vw, 20px);
  }
  .stat-label {
    font-size: clamp(10px, 2.5vw + 4px, 12px);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: clamp(18px, 5vw, 24px);
  }
  .stats-grid .stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: clamp(28px, 8vw, 40px);
  }
}

@media (max-width: 400px) {
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 340px) {
  .tweaks-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
  .logo-mark {
    width: 26px;
    height: 26px;
    font-size: 18px;
  }
}
