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

:root {
  --bg:      #0F0E0C;
  --surface: #191612;
  --surface2: #231F18;
  --ink:     #F0EBD8;
  --accent:  #C07A3A;
  --accent-dim: rgba(192,122,58,0.12);
  --sage:    #8A9A82;
  --sage-dim: rgba(138,154,130,0.14);
  --muted:   #6A6155;
  --rule:    #272219;
  --font:    'Onest', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
}

html {
  scroll-behavior: auto;
  background: var(--bg);
}
body {
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }

/* WebGL backdrop — sits behind everything; html bg is the fallback color */
.webgl-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease-out 0.3s;
}
.webgl-bg.ready { opacity: 1; }

/* ─── GLOBAL GRAIN ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── CUSTOM CURSOR ─── */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  transition: width 0.18s ease, height 0.18s ease, opacity 0.2s;
}
.cursor-ring {
  width: 30px; height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.2s, background 0.2s;
}
body.cursor-hover-portfolio .cursor-ring {
  width: 72px; height: 72px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
}
body.cursor-hover-portfolio .cursor-dot { opacity: 0; }
.cursor-label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  color: #0F0E0C;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}
body.cursor-hover-portfolio .cursor-label { opacity: 1; }
@media (max-width: 900px) {
  .cursor-dot, .cursor-ring, .cursor-label { display: none; }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 68px;
  background: rgba(15,14,12,0);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(15,14,12,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--rule);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #0F0E0C;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-2px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--muted); transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 52px;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero > .container {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(192,122,58,0.10) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 35%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 35%, transparent 70%);
  will-change: transform;
}
.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-aurora::before, .hero-aurora::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  will-change: transform;
}
.hero-aurora::before {
  background: radial-gradient(circle, rgba(192,122,58,0.5), transparent 65%);
  left: -100px; top: 30%;
  animation: drift1 22s ease-in-out infinite alternate;
}
.hero-aurora::after {
  background: radial-gradient(circle, rgba(138,154,130,0.35), transparent 65%);
  right: -150px; bottom: -100px;
  animation: drift2 28s ease-in-out infinite alternate;
}
@keyframes drift1 { 0% { transform: translate(0, 0); } 100% { transform: translate(120px, -60px); } }
@keyframes drift2 { 0% { transform: translate(0, 0); } 100% { transform: translate(-100px, -80px); } }

.hero-left { position: relative; z-index: 2; }
.hero-right { position: relative; z-index: 2; }

.hero-sage-rule {
  width: 48px;
  height: 1.5px;
  background: var(--accent);
  margin-bottom: 28px;
  transform-origin: left;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(3rem, 5.5vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
.hero-headline .ln { display: block; overflow: hidden; }
.hero-headline .ln-inner { display: block; }
.hero-body {
  font-size: 15px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.78;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats-inline {
  display: flex;
  gap: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.hero-stat-inline .num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.hero-stat-inline .lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-browser {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  aspect-ratio: 1440 / 900;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.4),
    0 8px 24px rgba(0,0,0,0.5),
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(192,122,58,0.06);
  transform: perspective(1800px) rotateY(-6deg) rotateX(3deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-browser-chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32px;
  background: var(--surface2);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  z-index: 2;
}
.hero-browser-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rule);
}
.hero-browser-dot.r { background: #5c4438; }
.hero-browser-dot.y { background: #5c513a; }
.hero-browser-dot.g { background: #475943; }
.hero-browser-url {
  flex: 1;
  margin-left: 14px;
  height: 18px;
  background: var(--bg);
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap;
}
.hero-browser-url::before {
  content: '◌';
  color: var(--sage);
  margin-right: 6px;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-browser-frame {
  position: absolute;
  inset: 32px 0 0 0;
  overflow: hidden;
}
.hero-browser-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}
.hero-browser-tag {
  position: absolute;
  bottom: -14px;
  left: -28px;
  background: var(--sage);
  color: #0F0E0C;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  z-index: 5;
}
.hero-browser-tag::before {
  content: '●';
  color: #0F0E0C;
  margin-right: 6px;
  font-size: 8px;
  vertical-align: 1px;
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0F0E0C;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary-dark:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-ghost-ink {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost-ink:hover { color: var(--ink); border-color: var(--sage); }

/* ─── SHARED ─── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 52px; }
.section-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.rv { transition: none; }

.section-divider {
  position: relative;
  height: 1px;
  overflow: visible;
}
.section-divider svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  overflow: visible;
}
.section-divider line {
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
}

/* ─── COMPARE ─── */
.compare-section {
  padding: 140px 0;
}
.compare-header { margin-bottom: 64px; text-align: center; }
.compare-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.compare-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.compare-side {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rule);
}
.compare-figma {
  background: #2B2620;
  position: relative;
}
.compare-figma-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: #1C1813;
  border-bottom: 1px solid #38302a;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  z-index: 2;
}
.compare-figma-bar .fdot { width: 8px; height: 8px; border-radius: 50%; background: #463c33; }
.compare-figma-bar .ftitle {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: #8a7d6e;
  letter-spacing: 0.02em;
}
.compare-figma-canvas {
  position: absolute;
  inset: 28px 0 0 0;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px) 0 0/40px 40px,
    radial-gradient(circle at 30% 50%, rgba(192,122,58,0.05), transparent 50%),
    #221E18;
  overflow: hidden;
}
.fake-frame {
  position: absolute;
  background: #3a322a;
  border: 1px solid #4a3f34;
  border-radius: 2px;
}
.fake-frame.f1 { top: 14%; left: 8%; width: 28%; height: 38%; }
.fake-frame.f1::before {
  content: 'Hero_v3';
  position: absolute;
  top: -16px; left: 0;
  font-family: var(--mono);
  font-size: 9px;
  color: #7a6e5e;
}
.fake-frame.f1::after {
  content: '';
  position: absolute;
  inset: 8px;
  background:
    linear-gradient(#5a4d3f 0 0) 0 0/40% 8px no-repeat,
    linear-gradient(#4a4036 0 0) 0 16px/70% 4px no-repeat,
    linear-gradient(#4a4036 0 0) 0 24px/55% 4px no-repeat,
    linear-gradient(#C07A3A 0 0) 0 38px/30% 10px no-repeat;
}
.fake-frame.f2 { top: 18%; left: 44%; width: 24%; height: 30%; opacity: 0.7; }
.fake-frame.f2::before {
  content: 'Hero_v5_FINAL';
  position: absolute;
  top: -16px; left: 0;
  font-family: var(--mono);
  font-size: 9px;
  color: #7a6e5e;
}
.fake-frame.f3 { top: 56%; left: 12%; width: 22%; height: 28%; opacity: 0.55; }
.fake-frame.f3::before {
  content: 'Hero_v7_FINAL_REVISED';
  position: absolute;
  top: -16px; left: 0;
  font-family: var(--mono);
  font-size: 9px;
  color: #7a6e5e;
}
.fake-frame.f4 {
  top: 62%; left: 50%; width: 30%; height: 26%;
  opacity: 0.4;
  border-style: dashed;
  background: transparent;
}
.fake-frame.f4::before {
  content: 'Hero_v8?';
  position: absolute;
  top: -16px; left: 0;
  font-family: var(--mono);
  font-size: 9px;
  color: #7a6e5e;
}
.figma-comment {
  position: absolute;
  background: #C07A3A;
  color: #0F0E0C;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px 8px 8px 2px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 3;
}
.figma-comment::before {
  content: '';
  position: absolute;
  left: -6px; top: 8px;
  width: 8px; height: 8px;
  background: #C07A3A;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
.figma-comment.c1 { top: 24%; left: 36%; }
.figma-comment.c2 { top: 66%; left: 42%; }
.figma-comment.c3 { top: 36%; left: 72%; }
.figma-cursor {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  z-index: 3;
}
.figma-cursor .arrow {
  width: 0; height: 0;
  border-left: 7px solid #8A9A82;
  border-top: 4px solid transparent;
  border-bottom: 7px solid transparent;
  transform: rotate(-30deg);
}
.figma-cursor .name {
  background: #8A9A82;
  color: #0F0E0C;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 2px;
  margin-top: 4px;
}
.figma-cursor.c1 { top: 22%; left: 30%; }
.figma-cursor.c2 { top: 60%; left: 64%; }
.figma-cursor.c2 .arrow { border-left-color: #C07A3A; }
.figma-cursor.c2 .name { background: #C07A3A; }

.compare-ours {
  background: var(--surface);
  position: relative;
}
.compare-ours-chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: var(--surface2);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  z-index: 2;
}
.compare-ours-chrome .cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.compare-ours-chrome .cdot.r { background: #5c4438; }
.compare-ours-chrome .cdot.y { background: #5c513a; }
.compare-ours-chrome .cdot.g { background: #475943; }
.compare-ours-chrome .curl {
  flex: 1;
  margin-left: 14px;
  height: 16px;
  background: var(--bg);
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
.compare-ours-chrome .curl::before {
  content: '◌';
  color: var(--sage);
  margin-right: 6px;
}
.compare-ours-frame {
  position: absolute;
  inset: 28px 0 0 0;
  overflow: hidden;
}
.compare-ours-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}
.compare-side-label {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  z-index: 4;
}
.compare-side-label.bad {
  background: rgba(220, 90, 70, 0.18);
  color: #d8806e;
}
.compare-side-label.good {
  background: var(--sage-dim);
  color: var(--sage);
  top: 42px;
}

.compare-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.compare-col-head {
  padding: 24px 36px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}
.compare-col:first-child .compare-col-head {
  background: var(--surface);
  color: var(--muted);
}
.compare-col:last-child .compare-col-head {
  background: var(--surface2);
  color: var(--accent);
  border-left: 2px solid var(--accent);
}
.compare-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 36px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.compare-row:last-child { border-bottom: none; }
.compare-col:first-child .compare-row { background: var(--surface); }
.compare-col:last-child .compare-row {
  background: var(--bg);
  color: var(--ink);
}
.compare-icon {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.compare-col:first-child .compare-icon { color: var(--muted); opacity: 0.5; }
.compare-col:last-child .compare-icon { color: var(--accent); }

/* ─── PROCESS ─── */
.process-section {
  padding: 140px 0;
  position: relative;
}
.process-header { margin-bottom: 80px; }
.process-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.steps-line {
  position: absolute;
  top: 60px;
  left: 8%;
  right: 8%;
  height: 1px;
  pointer-events: none;
  overflow: visible;
}
.steps-line svg {
  width: 100%;
  height: 1px;
  overflow: visible;
}
.steps-line path {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.step {
  padding: 0 32px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}
.step:not(:first-child) { padding-left: 32px; border-left: 1px solid var(--rule); }
.step-illust {
  width: 120px;
  height: 120px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.step-illust svg { width: 56px; height: 56px; }
.step-num-circle {
  position: absolute;
  top: -12px; right: -12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #0F0E0C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.step-content { flex: 1; }
.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.step-body { font-size: 14px; color: var(--muted); line-height: 1.78; }

/* ─── WORK ─── */
.work-section {
  padding: 140px 0;
}
.work-header { margin-bottom: 56px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.work-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.work-intro { font-size: 15px; color: var(--muted); max-width: 440px; line-height: 1.7; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 200px;
}
.portfolio-loading {
  color: var(--muted);
  font-size: 14px;
  padding: 60px 0;
  grid-column: 1 / -1;
  text-align: center;
}
.port-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), border-color 0.35s, box-shadow 0.35s, opacity 0.5s;
  cursor: none;
}
.port-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
}
@media (max-width: 900px) { .port-card { cursor: pointer; } }
.port-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.port-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}
.port-card:hover .port-thumb img { transform: scale(1.03); }
.port-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0) 60%, rgba(15,14,12,0.65) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.port-card:hover .port-thumb-overlay { opacity: 1; }
.port-card-body { padding: 22px 24px 26px; }
.port-card-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 10px;
}
.port-card-name {
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  line-height: 1.25; margin-bottom: 4px; letter-spacing: -0.01em;
}
.port-card-loc { font-size: 13px; color: var(--muted); }
.port-card-foot {
  padding: 0 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.port-card-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 4px 9px; border-radius: 2px;
}
.port-card-badge.live { color: var(--sage); background: var(--sage-dim); }
.port-card-cta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.port-card:hover .port-card-cta { gap: 8px; }
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
.port-card-in { animation: fadeUp 0.5s ease both; }

/* ─── PRICING ─── */
.pricing-section {
  /* 92% opaque so the terrain shader peeks through and the page reads as one continuous world */
  background: rgba(25, 22, 18, 0.92);
  padding: 140px 0;
}
.pricing-header {
  margin-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
}
.pricing-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.pricing-intro { font-size: 15px; color: var(--muted); max-width: 460px; line-height: 1.75; }

.price-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 5px;
  position: relative;
}
.price-toggle button {
  background: none;
  border: none;
  cursor: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 26px;
  border-radius: 100px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}
.price-toggle button.active { color: #0F0E0C; }
.price-toggle-pill {
  position: absolute;
  top: 5px; bottom: 5px;
  width: calc(50% - 5px);
  background: var(--accent);
  border-radius: 100px;
  transition: transform 0.35s cubic-bezier(.65,0,.35,1);
  z-index: 1;
}
.price-toggle.lease .price-toggle-pill { transform: translateX(100%); }
@media (max-width: 900px) {
  .price-toggle button { cursor: pointer; }
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.p-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 44px 34px 36px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.p-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 4px 16px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.2);
}
.p-card.featured {
  background: var(--surface2);
  border-color: var(--accent);
  border-top: 2px solid var(--accent);
}
.p-tier { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.p-name { font-size: 1.8rem; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 20px; letter-spacing: -0.02em; }

.p-price-wrap { position: relative; height: 76px; margin-bottom: 18px; }
.p-price-mode {
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.p-price-mode.hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.p-price-main {
  font-size: 2.8rem; font-weight: 700; color: var(--ink); line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.p-price-period {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.p-price-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 6px;
}
.p-timeline { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.p-div { height: 1px; background: var(--rule); margin-bottom: 24px; }
.p-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.p-features li { font-size: 14px; color: var(--muted); display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.p-features li::before { content: '–'; color: var(--accent); flex-shrink: 0; font-size: 13px; }
.p-features li.lease-only {
  display: none;
  color: var(--sage);
}
.p-features li.lease-only::before { color: var(--sage); }
body.lease .p-features li.lease-only { display: flex; }
.p-btn {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 2px;
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.p-btn:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.p-card.featured .p-btn { background: var(--accent); color: #0F0E0C; border-color: transparent; }
.p-card.featured .p-btn:hover { opacity: 0.85; }

/* ─── CTA ─── */
.cta-section {
  background: var(--accent);
  padding: 180px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.cta-ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: clamp(160px, 22vw, 320px);
  font-weight: 700;
  color: #0F0E0C;
  opacity: 0.08;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.04em;
  user-select: none;
  line-height: 1;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cta-inner { position: relative; z-index: 2; }
.cta-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15,14,12,0.55);
  margin-bottom: 28px;
}
.cta-headline {
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 700;
  color: #0F0E0C;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 36px;
}
.cta-body { font-size: 16px; color: rgba(15,14,12,0.62); max-width: 480px; line-height: 1.78; margin-bottom: 44px; }
.btn-amber {
  display: inline-flex;
  align-items: center;
  background: #0F0E0C;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-amber:hover { transform: translateY(-2px); opacity: 0.85; }

/* ─── FOOTER ─── */
footer {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-left { display: flex; flex-direction: column; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-nav { display: flex; gap: 28px; list-style: none; }
.footer-nav a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s; }
.footer-nav a:hover { color: rgba(255,255,255,0.7); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .hero > .container { grid-template-columns: 1fr; gap: 60px; }
  .hero-browser { transform: none; max-width: 100%; }
  .compare-visual { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: 1fr; }
  .p-card:hover { transform: none; }
}
@media (max-width: 900px) {
  nav { padding: 0 28px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .hero { padding: 80px 0 60px; }
  .container { padding: 0 28px; }
  .steps-row { grid-template-columns: 1fr; }
  .step { border-left: none !important; padding-left: 0 !important; padding-bottom: 48px; }
  .steps-line { display: none; }
  .hero-stats-inline { gap: 28px; flex-wrap: wrap; }
  footer { padding: 36px 28px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-aurora::before, .hero-aurora::after { animation: none; }
}