/* ══════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════ */
:root {
  /* Dark foundation */
  --bg:      #16140F;
  --bg2:     #1C1A15;
  --bg3:     #24211A;

  /* Warm craft palette */
  --slate:   #4A4538;
  --field:   #7A7060;
  --barn:    #9A8E74;
  --sand:    #B5A88F;
  --cedar:   #C4A87A;
  --mortar:  #B8AFA4;
  --gravel:  #C8C1B6;
  --chalk:   #D5D0C8;
  --lime:    #F0E8D8;
  --kiln:    #F8F3E8;
  --amber:   #D4A04A;

  /* Digital accent — warm gold (matching logo) */
  --sage:      #8B9A6D;
  --sage-dim:  rgba(139, 154, 109, 0.15);
  --sage-glow: rgba(139, 154, 109, 0.08);
  --gold:      #D4A04A;
  --gold-dim:  rgba(212, 160, 74, 0.15);
  --gold-glow: rgba(212, 160, 74, 0.08);

  /* Warm glow */
  --glow:    rgba(196, 168, 122, 0.08);

  /* Typography */
  --serif:   'Playfair Display', Georgia, serif;
  --body:    'Source Serif 4', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --display: 'Bebas Neue', Impact, sans-serif;
  --mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-w:   1200px;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
}

/* ══════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--sand);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

html, body { overflow-x: hidden; position: relative; }

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* Hybrid wood + circuit texture background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    url('images/wood-texture-driftwood.webp') center/cover no-repeat fixed,
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(196, 168, 122, 0.02) 80px, rgba(196, 168, 122, 0.02) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(196, 168, 122, 0.02) 80px, rgba(196, 168, 122, 0.02) 81px);
  opacity: 0.08;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

::selection {
  background: var(--gold);
  color: var(--bg);
}

/* ══════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════ */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--lime);
  line-height: 1.15;
  font-weight: 800;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cedar));
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animate the label line when visible */
.visible .section-label::before {
  width: 44px;
}

/* Tech-focused labels */
.section-label.tech {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--sage);
}

.section-label.tech::before {
  background: linear-gradient(90deg, transparent, var(--sage));
}

/* ══════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(5rem, 12vh, 9rem) 0;
  position: relative;
}

/* ── Floating Circuitry Decorations ── */
.circuit-float {
  position: absolute;
  right: 0;
  top: 0;
  width: 280px;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

section.visible .circuit-float,
section:has(.visible) .circuit-float {
  opacity: 1;
}

.circuit-trace {
  position: absolute;
  stroke: var(--sage);
  stroke-width: 1;
  fill: none;
  opacity: 0.07;
  filter: drop-shadow(0 0 4px var(--sage-glow));
}

.circuit-trace.gold {
  stroke: var(--cedar);
  opacity: 0.05;
  filter: drop-shadow(0 0 4px rgba(196, 168, 122, 0.08));
}

.circuit-node {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.12;
  box-shadow: 0 0 6px var(--sage-glow);
}

.circuit-node.gold {
  background: var(--cedar);
  opacity: 0.08;
  box-shadow: 0 0 6px rgba(196, 168, 122, 0.1);
}

/* Subtle pulse animation on nodes */
@keyframes circuitPulse {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50% { opacity: 0.18; transform: scale(1.4); }
}

.circuit-node:nth-child(odd) {
  animation: circuitPulse 4s ease-in-out infinite;
}

.circuit-node:nth-child(even) {
  animation: circuitPulse 5.5s ease-in-out 1.2s infinite;
}

/* Hide circuitry on small screens */
@media (max-width: 900px) {
  .circuit-float { display: none; }
}

/* Dual-tone dividers — animate in on scroll */
.warm-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cedar) 30%, var(--sage) 70%, transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.warm-divider.visible {
  opacity: 0.3;
  transform: scaleX(1);
}

/* ══════════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════════ */
.rv {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv.visible {
  opacity: 1;
  transform: translateY(0);
}

.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }
.rv-d4 { transition-delay: 0.4s; }
.rv-d5 { transition-delay: 0.5s; }

/* Slide-in from left (craft side) */
.rv-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide-in from right (code side) */
.rv-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale-in reveal */
.rv-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Blur-in reveal */
.rv-blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Hero-specific entrance */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes warmPulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.22; }
}

@keyframes coolPulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.16; }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes circuitFlow {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

/* Typing cursor blink */
@keyframes cursorBlink {
  0%, 50% { border-color: var(--sage); }
  51%, 100% { border-color: transparent; }
}

/* Shimmer effect for borders */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Section divider draw-in */
@keyframes dividerDraw {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 0.3; }
}

/* Scale bounce for icons */
@keyframes iconBounce {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Counter count-up animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.95rem 2.2rem;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cedar), #B8944A);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(196, 168, 122, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--lime), var(--cedar));
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(196, 168, 122, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(196, 168, 122, 0.15);
  transition-duration: 0.1s;
}

.btn-ghost {
  border: 1px solid var(--slate);
  color: var(--mortar);
}

.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--sage-glow);
}

.btn-ghost:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cedar), var(--gold));
  z-index: 200;
  transition: width 0.05s linear;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(22, 20, 15, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(196, 168, 122, 0.1);
  padding: 0.9rem 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.3s, height 0.4s;
}

.nav.scrolled .nav-logo img {
  height: 36px;
}

.nav-logo:hover img {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sand);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cedar);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--lime);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--lime);
}

/* ── Services Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  cursor: default;
}

.nav-dropdown > .nav-link::after {
  content: '';
  position: static;
  display: inline-block;
  width: 6px;
  height: 6px;
  background: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  transition: transform 0.3s;
  vertical-align: middle;
}

.nav-dropdown:hover > .nav-link::after {
  transform: rotate(-135deg) translateY(0);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(22, 20, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(196, 168, 122, 0.12);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  transform: translateX(-50%) translateY(-8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--sand);
  padding: 0.5rem 1.25rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-dropdown__menu a:hover {
  color: var(--lime);
  background: rgba(196, 168, 122, 0.06);
}

.nav-dropdown__menu a.active {
  color: var(--cedar);
}

.nav-cta {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cedar), #B8944A);
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(196, 168, 122, 0.15);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--lime), var(--cedar));
  box-shadow: 0 4px 20px rgba(196, 168, 122, 0.25);
}

/* ── Hamburger button (mobile only) ─────────────── */
.ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.ham__line {
  display: block;
  height: 1.5px;
  background: var(--cedar);
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform   240ms ease,
    opacity     200ms ease,
    width       200ms ease;
}

.ham__line--top    { width: 22px; }
.ham__line--middle { width: 14px; margin-left: auto; }
.ham__line--bottom { width: 22px; }

/* X state */
.ham[aria-expanded="true"] .ham__line--top {
  transform: translateY(6.5px) rotate(45deg);
  width: 22px;
}
.ham[aria-expanded="true"] .ham__line--middle {
  opacity: 0;
  transform: scaleX(0);
}
.ham[aria-expanded="true"] .ham__line--bottom {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 22px;
}


/* ── Boot sequence mobile menu overlay ────────────── */
.boot-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.boot-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

/* CRT scanline overlay */
.boot-menu__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent        1px,
    transparent        3px
  );
  pointer-events: none;
  z-index: 1;
}

/* Inner wrapper — three-zone grid */
.boot-menu__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 480px;
}


/* ── Zone 1: Header ───────────────────────────── */
.boot-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(196, 168, 122, 0.35);
}

.boot-menu__brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.boot-menu__wordmark {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--cedar);
  letter-spacing: 0.06em;
}

.boot-menu__tagline {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(139, 154, 109, 0.40);
  letter-spacing: 0.04em;
}

.boot-menu__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--cedar);
  opacity: 0.7;
  transition: opacity 160ms ease;
}
.boot-menu__close:hover,
.boot-menu__close:focus-visible {
  opacity: 1;
}
.boot-menu__close:focus-visible {
  outline: 2px solid var(--cedar);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ── Zone 2: Boot log ─────────────────────────── */
.boot-menu__log {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  min-height: 0;
}


/* ── Boot lines — shared ──────────────────────── */
.boot-line {
  display: flex;
  align-items: center;
  opacity: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  transition: background 160ms ease;
}

.boot-line.is-visible {
  opacity: 1;
}

/* [SYS] lines */
.boot-line--sys {
  font-size: 10px;
  color: rgba(139, 154, 109, 0.40);
  padding: 0 2px;
}

.boot-ok   { color: var(--sage);  }
.boot-warn { color: var(--gold);  }

/* Divider lines */
.boot-line--divider {
  border-bottom: 1px solid rgba(196, 168, 122, 0.08);
  margin: 6px 0;
  height: 1px;
}

/* Nav link lines */
.boot-line--nav {
  color: var(--kiln);
  text-decoration: none;
  cursor: pointer;
  padding: 2px 6px;
  margin: 0 -6px;
  border-radius: 3px;
  gap: 8px;
  min-height: 44px;
}

.boot-line--nav:hover,
.boot-line--nav:focus-visible {
  background: rgba(196, 168, 122, 0.08);
}

.boot-line--nav:focus-visible {
  outline: 2px solid var(--cedar);
  outline-offset: 2px;
}

/* Gold CTA route */
.boot-line--cta {
  color: var(--gold);
}
.boot-line--cta .boot-prompt {
  color: rgba(212, 160, 74, 0.40);
}

.boot-prompt {
  color: var(--sage);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}

.boot-route {
  font-size: 13px;
  flex: 1;
}

.boot-route__desc {
  color: rgba(196, 168, 122, 0.35);
  font-size: 10px;
}

.boot-line--cta .boot-route__desc {
  color: rgba(212, 160, 74, 0.40);
}


/* ── Blinking cursor ──────────────────────────── */
@keyframes ax-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.boot-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--cedar);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: ax-blink 1.1s step-end infinite;
}

.boot-cursor--gold {
  background: var(--gold);
}


/* ── Zone 3: Pinned CTA footer ────────────────── */
.boot-menu__foot {
  margin: 0 20px 20px;
  border: 1px solid rgba(212, 160, 74, 0.40);
  border-radius: 6px;
  padding: 14px 16px;
  background: rgba(212, 160, 74, 0.08);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity   300ms ease,
    transform 300ms ease;
}

.boot-menu__foot.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.boot-foot__sys {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--sage);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.boot-foot__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
}

.boot-foot__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.boot-foot__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  line-height: 1.2;
}

.boot-foot__sub {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(212, 160, 74, 0.40);
}

.boot-foot__arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 160, 74, 0.40);
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease;
}

.boot-foot__cta:hover .boot-foot__arrow,
.boot-foot__cta:focus-visible .boot-foot__arrow {
  border-color: var(--gold);
  color: var(--gold);
}

.boot-foot__cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}


/* ── Reduced motion — skip boot animations ──────── */
@media (prefers-reduced-motion: reduce) {
  .boot-line,
  .boot-menu__foot,
  .boot-menu {
    transition: none !important;
    animation: none !important;
  }
  .boot-menu.is-open .boot-line,
  .boot-menu.is-open .boot-menu__foot {
    opacity: 1;
    transform: none;
  }
}

/* ── Body scroll lock when menu open ──────────── */
body.menu-open {
  overflow: hidden;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  overflow: hidden;
}

/* Hero background image - dual-lit workspace */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.7);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--bg) 0%, rgba(22, 20, 15, 0.5) 50%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

/* Dual ambient glows - warm left, cool right */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: warmPulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 25%;
  right: 8%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: coolPulse 9s ease-in-out infinite;
}

/* Bottom fade */
.hero-bottom-fade {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-label .warm {
  color: var(--cedar);
  text-shadow: 0 0 30px rgba(196, 168, 122, 0.3);
}

.hero-label .amp { color: var(--sand); }

.hero-label .cool {
  color: var(--sage);
  text-shadow: 0 0 30px var(--sage-glow);
}

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

/* Craft side of headline — warm serif */
.hero h1 .craft-text {
  font-family: var(--serif);
  color: var(--lime);
}

/* Code side of headline — cool monospace */
.hero h1 .code-text {
  font-family: var(--mono);
  font-weight: 600;
  font-style: normal;
  color: var(--sage);
  text-shadow: 0 0 80px var(--sage-glow);
  letter-spacing: -0.02em;
  font-size: 0.88em;
}

/* Legacy support */
.hero h1 em {
  font-style: italic;
  color: var(--sage);
  text-shadow: 0 0 80px var(--sage-glow);
}

.hero-sub {
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--sand);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.hero-logo-mark {
  width: 320px;
  height: auto;
  opacity: 0;
  animation: heroLogoReveal 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
  position: relative;
  z-index: 2;
}

@keyframes heroLogoReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-4deg);
    filter: blur(8px);
  }
  60% {
    opacity: 0.35;
    transform: scale(1.03) rotate(0.5deg);
    filter: blur(0px);
  }
  100% {
    opacity: 0.3;
    transform: scale(1) rotate(0deg);
    filter: blur(0px);
  }
}

/* Continuous subtle float on the logo */
.hero-logo-mark.animated {
  animation: heroLogoReveal 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards,
             logoFloat 6s ease-in-out 3.1s infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.8deg); }
}

/* Dual glow on logo — warm left (craft), cool right (code) */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.15) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  animation: warmPulse 8s ease-in-out infinite;
}

.hero-visual::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.12) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  animation: coolPulse 9s ease-in-out infinite;
}

/* Orbiting circuit ring around the logo */
.hero-visual .circuit-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: ringFadeIn 2s ease 1.5s forwards;
}

@keyframes ringFadeIn {
  to { opacity: 1; }
}

.circuit-ring svg {
  width: 100%;
  height: 100%;
  animation: ringRotate 30s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

/* Circuit trace SVG pattern */
.circuit-pattern {
  position: absolute;
  right: -10%;
  top: 15%;
  width: 400px;
  height: 400px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

.circuit-pattern svg {
  width: 100%;
  height: 100%;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: driftUp 1s ease 1.2s forwards;
  z-index: 2;
}

.scroll-hint span {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--barn);
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--cedar), var(--sage), transparent);
}

/* ══════════════════════════════════════════
   ABOUT — Dual Narrative (Craft + Code)
   ══════════════════════════════════════════ */
#about {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(24, 21, 16, 1) 100%);
}

/* Warm glow on the left (craft side) */
#about::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about-left {
  position: relative;
}

.about-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 2rem;
}

.about-image {
  margin-top: 2.5rem;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(196, 168, 122, 0.05);
}

.about-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 0.6s, transform 0.6s;
}

.about-image:hover img {
  filter: saturate(1);
  transform: scale(1.02);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196, 168, 122, 0.1);
  border-radius: 4px;
  pointer-events: none;
}

/* Photo placeholder styling */
.about-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: linear-gradient(145deg, rgba(36, 33, 26, 0.6), rgba(28, 26, 21, 0.8));
  border: 1px dashed rgba(196, 168, 122, 0.2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.about-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(196, 168, 122, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(196, 168, 122, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.photo-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--field);
  z-index: 1;
}

.photo-placeholder-inner svg {
  opacity: 0.3;
}

.photo-placeholder-text {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* Lead-in sentence — the bold opener */
.about-lede {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gravel);
  margin-bottom: 1.5rem !important;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(196, 168, 122, 0.12);
}

.about-text p {
  margin-bottom: 1.25rem;
  font-weight: 400;
  font-size: 1.05rem;
}

.about-text p:first-child::first-line {
  color: var(--mortar);
  font-weight: 400;
}

/* Inline code terms — the digital side bleeding through the narrative */
.about-text code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--sage);
  background: rgba(196, 168, 122, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  border: 1px solid rgba(196, 168, 122, 0.1);
  white-space: nowrap;
}

/* Code-styled comment above scripture — with typing cursor */
.code-comment {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--sage);
  opacity: 0.6;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  display: inline-block;
  border-right: 2px solid var(--sage);
  animation: cursorBlink 1s step-end infinite;
  padding-right: 0.3em;
}

.scripture {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-left: 2px solid var(--cedar);
  background: linear-gradient(135deg, var(--glow) 0%, transparent 80%);
  border-radius: 0 4px 4px 0;
  position: relative;
  transition: border-color 0.6s, box-shadow 0.6s;
}

.scripture:hover {
  border-left-color: var(--sage);
  box-shadow: -4px 0 20px rgba(196, 168, 122, 0.05);
}

.scripture blockquote {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gravel);
  line-height: 1.6;
}

.scripture cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--barn);
}

/* ══════════════════════════════════════════
   SERVICES — Dual-tone Cards
   ══════════════════════════════════════════ */
#services {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(196, 168, 122, 0.06);
  border-bottom: 1px solid rgba(196, 168, 122, 0.06);
}

/* Circuit grid background instead of leather */
#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(196, 168, 122, 0.015) 60px, rgba(196, 168, 122, 0.015) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(196, 168, 122, 0.015) 60px, rgba(196, 168, 122, 0.015) 61px);
  opacity: 1;
  pointer-events: none;
}

.services-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: linear-gradient(145deg, rgba(36, 33, 26, 0.9), rgba(28, 26, 21, 0.95));
  border: 1px solid rgba(74, 69, 56, 0.3);
  border-top: 2px solid transparent;
  padding: 2.5rem 2rem;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

/* Gradient border on hover - gold to amber */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--cedar), var(--gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

/* Warm corner glow on cards */
.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}

.service-card:hover::before {
  opacity: 0.5;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  border-top-color: var(--cedar);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--gold-glow),
    inset 0 1px 0 rgba(196, 168, 122, 0.1);
}

.service-num {
  font-family: var(--display);
  font-size: 3.5rem;
  color: var(--slate);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.4s;
  opacity: 0;
  transform: translateY(15px);
}

/* Animate service numbers when card reveals */
.service-card.visible .service-num {
  animation: countUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.service-card:hover .service-num {
  color: rgba(196, 168, 122, 0.15);
}

.service-icon {
  margin-bottom: 1rem;
  display: block;
  transition: all 0.4s;
  line-height: 0;
  transform: scale(0);
  opacity: 0;
}

/* Animate icons when card becomes visible */
.service-card.visible .service-icon {
  animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.service-card:nth-child(2).visible .service-icon {
  animation-delay: 0.1s;
}

.service-card:nth-child(3).visible .service-icon {
  animation-delay: 0.2s;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

/* Icon hover animation */
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
}

/* ── Card 1: Church — warmest (craft side) ── */
.service-card:nth-child(1) {
  border-top: 2px solid rgba(196, 168, 122, 0.25);
}
.service-card:nth-child(1) .service-icon {
  color: var(--cedar);
  filter: drop-shadow(0 0 8px rgba(196, 168, 122, 0.25));
}
.service-card:nth-child(1) .service-num {
  color: rgba(196, 168, 122, 0.12);
}
.service-card:nth-child(1):hover {
  border-top-color: var(--cedar);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(196, 168, 122, 0.06),
    inset 0 1px 0 rgba(196, 168, 122, 0.1);
}
.service-card:nth-child(1)::before {
  background: linear-gradient(135deg, var(--cedar), var(--amber));
}

/* ── Card 2: Healthcare — bridge (warm-to-cool transition) ── */
.service-card:nth-child(2) {
  border-top: 2px solid rgba(180, 160, 120, 0.15);
}
.service-card:nth-child(2) .service-icon {
  color: var(--sage);
  filter: drop-shadow(0 0 8px var(--sage-glow));
}
.service-card:nth-child(2) .service-num {
  color: rgba(170, 160, 140, 0.1);
}
.service-card:nth-child(2):hover {
  border-top-color: var(--sand);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(160, 170, 150, 0.05),
    inset 0 1px 0 rgba(196, 168, 122, 0.08);
}
.service-card:nth-child(2)::before {
  background: linear-gradient(135deg, var(--cedar), var(--sage));
}

/* ── Card 3: Small Business — coolest (code side) ── */
.service-card:nth-child(3) {
  border-top: 2px solid rgba(196, 168, 122, 0.15);
}
.service-card:nth-child(3) .service-icon {
  color: var(--sage);
  filter: drop-shadow(0 0 10px rgba(196, 168, 122, 0.15));
}
.service-card:nth-child(3) .service-num {
  font-family: var(--mono);
  font-size: 2.8rem;
  color: rgba(196, 168, 122, 0.1);
  letter-spacing: -0.02em;
}
.service-card:nth-child(3):hover {
  border-top-color: var(--sage);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px var(--sage-glow),
    inset 0 1px 0 rgba(196, 168, 122, 0.1);
}
.service-card:nth-child(3)::before {
  background: linear-gradient(135deg, var(--sage), rgba(196, 168, 122, 0.6));
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  color: var(--sand);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(74, 69, 56, 0.4);
  color: var(--barn);
  border-radius: 1px;
  transition: all 0.3s;
  background: rgba(196, 168, 122, 0.02);
  backdrop-filter: blur(4px);
}

.service-card:hover .service-tag {
  border-color: rgba(196, 168, 122, 0.2);
  color: var(--sand);
  background: rgba(196, 168, 122, 0.04);
}

/* Card 1 tags — warm, craft-side feel */
.service-card:nth-child(1) .service-tag {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  border-color: rgba(196, 168, 122, 0.2);
  color: var(--sand);
}

/* Card 3 tags — terminal-style, code-side */
.service-card:nth-child(3) .service-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  border-color: rgba(196, 168, 122, 0.15);
  color: var(--sage);
  background: rgba(196, 168, 122, 0.04);
}

.service-card:nth-child(3) .service-tag::before {
  content: '>_ ';
  opacity: 0.5;
}

/* ══════════════════════════════════════════
   IMAGE BREAK — Craft to Code
   ══════════════════════════════════════════ */
.image-break {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.image-break img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: saturate(0.7);
  transition: transform 0.1s linear;
  will-change: transform;
}

.image-break::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), transparent 30%, transparent 70%, var(--bg));
  z-index: 1;
  pointer-events: none;
}

/* Dual-tint: warm sepia on left → cool teal on right (the transformation) */
.image-break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(140, 100, 50, 0.25) 0%,
    rgba(22, 20, 15, 0.3) 40%,
    rgba(22, 20, 15, 0.3) 60%,
    rgba(60, 120, 100, 0.2) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Overlay text — with cursor blink */
.image-break-label {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--sage);
  opacity: 0.5;
  z-index: 2;
  letter-spacing: 0.05em;
  border-right: 1.5px solid var(--sage);
  padding-right: 0.25em;
  animation: cursorBlink 1s step-end infinite;
}

/* ══════════════════════════════════════════
   PORTFOLIO — Dual-tone Tabs
   ══════════════════════════════════════════ */
/* Work section — cooler temperature as we progress down the page */
#work {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(18, 19, 17, 1) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle cool glow on the right (code side) */
#work::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 2rem;
}

.portfolio-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--slate);
  color: var(--barn);
  border-radius: 2px;
  transition: all 0.3s;
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--lime);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--cedar));
  border-color: var(--gold);
  color: var(--bg);
  box-shadow: 0 4px 16px var(--gold-glow);
  transform: translateY(-1px);
}

.tab-btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.project {
  display: none;
}

.project.active {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  animation: projectFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Browser mockup */
.browser-frame {
  background: var(--bg2);
  border: 1px solid rgba(74, 69, 56, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(196, 168, 122, 0.05);
  transition: box-shadow 0.4s, transform 0.4s;
}

.browser-frame:hover {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 60px var(--sage-glow);
  transform: translateY(-4px);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid rgba(74, 69, 56, 0.3);
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.browser-dot:nth-child(1) { background: #E25D5D; }
.browser-dot:nth-child(2) { background: #E8B33E; }
.browser-dot:nth-child(3) { background: #58A55C; }

.browser-url {
  flex: 1;
  margin-left: 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--field);
  background: var(--bg);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
}

.browser-body {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.browser-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(196, 168, 122, 0.03) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(74, 69, 56, 0.06) 30px, rgba(74, 69, 56, 0.06) 31px),
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(74, 69, 56, 0.06) 30px, rgba(74, 69, 56, 0.06) 31px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

/* Screenshot images inside browser */
.browser-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 8s ease;
}

/* Slow scroll on hover — reveals more of the screenshot */
.browser-frame:hover .browser-body img {
  transform: translateY(-15%);
}

.browser-placeholder {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--field);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
  /* Hide text when image is present */
}

.browser-body img + .browser-placeholder {
  display: none;
}

.project-info h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.project-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-meta span {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--barn);
}

.project-meta span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cedar);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.project-desc {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--sand);
}

.deliverables-label {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--field);
  margin-bottom: 0.75rem;
}

.deliverables {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.deliverable {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--mortar);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.deliverable::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--cedar);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PROCESS & SERVICES — The Artifex Way
   ══════════════════════════════════════════ */
#process {
  background: linear-gradient(180deg, rgba(18, 19, 17, 1) 0%, var(--bg2) 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

#process::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(196, 168, 122, 0.012) 80px, rgba(196, 168, 122, 0.012) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(196, 168, 122, 0.012) 80px, rgba(196, 168, 122, 0.012) 81px);
  pointer-events: none;
}

.process-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.process-subtitle {
  font-family: var(--body);
  font-size: 1.12rem;
  color: var(--sand);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 4rem;
}

/* ── The Process Timeline ── */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 5rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--cedar), var(--sage));
  opacity: 0.25;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 22px auto 1.2rem;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.step-dot.warm {
  background: var(--cedar);
  box-shadow: 0 0 12px rgba(196, 168, 122, 0.25);
}

.step-dot.mid {
  background: linear-gradient(135deg, var(--cedar), var(--sage));
  box-shadow: 0 0 12px rgba(170, 178, 140, 0.2);
}

.step-dot.cool {
  background: var(--sage);
  box-shadow: 0 0 12px rgba(196, 168, 122, 0.25);
}

.process-step:hover .step-dot {
  transform: scale(1.5);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--field);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.process-step:nth-child(-n+2) .step-title { color: var(--cedar); }
.process-step:nth-child(3) .step-title { color: var(--chalk); }
.process-step:nth-child(n+4) .step-title { color: var(--sage); }

.step-desc {
  font-family: var(--body);
  font-size: 0.86rem;
  color: var(--barn);
  line-height: 1.5;
}

/* ── Services Split: Build + Grow ── */
.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.service-pillar {
  border: 1px solid rgba(74, 69, 56, 0.25);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(36, 33, 26, 0.6), rgba(28, 26, 21, 0.8));
  transition: border-color 0.4s;
}

.service-pillar:hover {
  border-color: rgba(196, 168, 122, 0.2);
}

.service-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.service-pillar.build::before {
  background: linear-gradient(90deg, var(--cedar), var(--amber));
}

.service-pillar.grow::before {
  background: linear-gradient(90deg, var(--sage), var(--gold));
}

.pillar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

.build .pillar-icon {
  background: rgba(196, 168, 122, 0.1);
  color: var(--cedar);
}

.grow .pillar-icon {
  background: rgba(196, 168, 122, 0.1);
  color: var(--sage);
}

.pillar-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.build .pillar-label { color: var(--cedar); }
.grow .pillar-label { color: var(--sage); }

.pillar-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 0.8rem;
}

.pillar-desc {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--sand);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pillar-features {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pillar-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--chalk);
  line-height: 1.5;
}

.pillar-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.build .pillar-feature svg { color: var(--cedar); }
.grow .pillar-feature svg { color: var(--sage); }

/* ── Highlight Badges ── */
.process-highlights {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.highlight-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(74, 69, 56, 0.2);
  background: rgba(36, 33, 26, 0.4);
  transition: border-color 0.3s, transform 0.3s;
}

.highlight-badge:hover {
  border-color: rgba(196, 168, 122, 0.25);
  transform: translateY(-2px);
}

.badge-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-icon.seo {
  background: rgba(196, 168, 122, 0.12);
  color: var(--sage);
}

.badge-icon.custom {
  background: rgba(196, 168, 122, 0.12);
  color: var(--cedar);
}

.badge-icon.client {
  background: rgba(212, 160, 74, 0.12);
  color: var(--amber);
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.02em;
}

.badge-desc {
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--barn);
  line-height: 1.4;
}

/* ── Process CTA ── */
.process-cta {
  text-align: center;
  padding-top: 1rem;
}

.process-cta p {
  font-family: var(--body);
  font-size: 1.02rem;
  color: var(--sand);
  margin-bottom: 1.5rem;
}

.process-cta .code-comment {
  margin-bottom: 0.8rem;
}

/* ── Free Analysis Promo Banner ── */
.promo-banner {
  position: relative;
  padding: 1.8rem 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(196, 168, 122, 0.06) 0%, rgba(196, 168, 122, 0.06) 100%);
  border: 1px solid rgba(196, 168, 122, 0.15);
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sage), var(--cedar));
}

.promo-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.promo-headline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 0.3rem;
}

.promo-headline em {
  font-style: italic;
  color: var(--sage);
}

.promo-value {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cedar);
  letter-spacing: 0.05em;
}

.promo-scan {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--field);
  margin-top: 1rem;
  letter-spacing: 0.03em;
}

.promo-scan em {
  font-style: italic;
  color: var(--sand);
}

.promo-scan__link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.promo-scan__link:hover {
  color: var(--lime);
}

/* ── Add-Ons Grid ── */
.addons-section {
  margin-bottom: 4rem;
}

.addons-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--field);
  text-align: center;
  margin-bottom: 0.5rem;
}

.addons-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--lime);
  text-align: center;
  margin-bottom: 0.6rem;
}

.addons-desc {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--sand);
  text-align: center;
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.addon-card {
  padding: 1.5rem 1.2rem;
  text-align: center;
  border: 1px solid rgba(74, 69, 56, 0.2);
  background: rgba(36, 33, 26, 0.35);
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.addon-card:hover {
  border-color: rgba(196, 168, 122, 0.2);
  transform: translateY(-3px);
}

.addon-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  border-radius: 6px;
  background: rgba(196, 168, 122, 0.08);
  color: var(--sage);
}

.addon-card:nth-child(odd) .addon-icon {
  background: rgba(196, 168, 122, 0.08);
  color: var(--cedar);
}

.addon-name {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 0.3rem;
}

.addon-blurb {
  font-family: var(--body);
  font-size: 0.8rem;
  color: var(--barn);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .addons-grid {
    grid-template-columns: 1fr;
  }
  .promo-banner {
    padding: 1.4rem 1.2rem;
  }
}

/* ── Process Responsive ── */
@media (max-width: 900px) {
  .services-split {
    grid-template-columns: 1fr;
  }
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .process-timeline::before {
    top: 6px;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process-step {
    text-align: left;
    padding-left: 2.5rem;
  }
  .step-dot {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
  .step-num {
    margin-bottom: 0.15rem;
  }
}

@media (max-width: 768px) {
  .process-highlights {
    flex-direction: column;
    align-items: stretch;
  }
  .highlight-badge {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .service-pillar {
    padding: 1.8rem 1.2rem;
  }
}

/* ══════════════════════════════════════════
   TESTIMONIALS — Dual-tone Borders
   ══════════════════════════════════════════ */
#testimonials {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(196, 168, 122, 0.06);
}

#testimonials::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage-glow) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 3.5rem;
}

.testimonials-grid {
  position: relative;
  overflow: hidden;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(196, 168, 122, 0.35);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--cedar);
  border-color: var(--cedar);
  transform: scale(1.3);
}

.carousel-dot:hover:not(.active) {
  border-color: var(--sage);
  background: rgba(196, 168, 122, 0.2);
}

.testimonial-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(74, 69, 56, 0.3);
  background: linear-gradient(145deg, rgba(36, 33, 26, 0.8), rgba(28, 26, 21, 0.9));
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  pointer-events: none;
  max-width: 680px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.testimonial-card.carousel-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Big quote mark entrance */
.testimonial-card.visible::before {
  animation: heroFade 0.8s ease 0.3s both;
}

.testimonial-card:hover {
  border-left-color: var(--cedar);
  border-right-color: var(--sage);
  border-top-color: rgba(196, 168, 122, 0.2);
  border-bottom-color: rgba(196, 168, 122, 0.2);
  transform: translateY(-6px) rotate(-0.3deg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 0 40px rgba(196, 168, 122, 0.03);
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 4rem;
  color: rgba(196, 168, 122, 0.12);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.testimonial-card blockquote {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
  color: var(--gravel);
  margin-bottom: 1.75rem;
}

.testimonial-card blockquote strong {
  font-weight: 600;
  font-style: italic;
  color: var(--lime);
}

.testimonial-author {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cedar);
}

.testimonial-role {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--barn);
  margin-top: 0.15rem;
}

/* ══════════════════════════════════════════
   CONTACT — Gold Focus States
   ══════════════════════════════════════════ */
#contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(17, 18, 16, 1) 100%);
}

/* Warm glow left (craft — the invitation), cool glow right (code — the form) */
#contact::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

#contact::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  color: var(--lime);
}

.contact-heading em {
  font-style: italic;
  color: var(--cedar);
}

.contact-desc {
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 400px;
  color: var(--sand);
}

.contact-image {
  margin-top: 2rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.contact-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: saturate(0.8);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-detail-label {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--field);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-detail-label svg {
  opacity: 0.6;
}

.contact-detail-value {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--lime);
}

.contact-detail-link {
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.contact-detail-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cedar), var(--sage));
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-detail-link:hover {
  color: var(--sage);
}

.contact-detail-link:hover::after {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: linear-gradient(145deg, rgba(30, 30, 26, 0.6), rgba(22, 24, 22, 0.6));
  border: 1px solid rgba(196, 168, 122, 0.08);
  border-radius: 6px;
  padding: 2.5rem;
  position: relative;
}

/* Subtle gold glow on the form — this is the code instrument */
.contact-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(196, 168, 122, 0.08) 0%, rgba(74, 69, 56, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.6s;
}

.contact-form:hover::before {
  background: linear-gradient(180deg, rgba(196, 168, 122, 0.15) 0%, rgba(196, 168, 122, 0.08) 100%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.6;
}

.form-field input,
.form-field textarea {
  font-family: var(--body);
  font-size: 1.02rem;
  color: var(--lime);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--slate);
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--field);
  font-weight: 300;
  transition: opacity 0.3s;
}

.form-field input:focus::placeholder,
.form-field textarea:focus::placeholder {
  opacity: 0.4;
}

/* Label float effect */
.form-field label {
  transition: color 0.3s, transform 0.3s;
}

.form-field input:focus ~ label,
.form-field textarea:focus ~ label {
  color: var(--sage);
  opacity: 1;
}

/* Alternate gold focus for some fields */
.form-field:nth-child(2) input:focus,
.form-field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 1px 0 0 var(--sage), 0 4px 20px var(--sage-glow);
}

.form-field:nth-child(1) input:focus,
.form-field:nth-child(3) input:focus {
  border-color: var(--cedar);
  box-shadow: 0 1px 0 0 var(--cedar), 0 4px 20px rgba(196, 168, 122, 0.05);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--body);
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════
   FOOTER — Circuit Trace Lines
   ══════════════════════════════════════════ */
footer {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(16, 14, 10, 1) 100%);
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/wood-texture-driftwood.webp') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--barn);
  transition: color 0.3s;
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--lime);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-contact-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--field);
}

.footer-contact-value {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--sand);
}

.footer-contact-value a {
  color: var(--sand);
  transition: color 0.3s;
}

.footer-contact-value a:hover {
  color: var(--cedar);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--barn);
  margin-top: 0.5rem;
}

.footer-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58A55C;
  box-shadow: 0 0 8px rgba(88, 165, 92, 0.4);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(74, 69, 56, 0.2);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-nav {
    align-items: center;
  }
  .footer-contact {
    align-items: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-logo-wrap {
    justify-content: center;
  }
  .footer-status {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.4s;
}

.footer-logo-wrap:hover .footer-logo {
  opacity: 0.9;
}

.footer-verse {
  max-width: 380px;
}

.footer-verse blockquote {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 700;
  color: var(--barn);
  line-height: 1.6;
}

.footer-verse cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--slate);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
/* ─── Tablet: 901–1024px ─── */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }

  .hero-logo-mark {
    width: 260px;
  }

  .circuit-ring {
    width: 320px;
    height: 320px;
  }
}

/* ─── Tablet small: max 900px ─── */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project.active {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo-placeholder {
    min-height: 280px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .circuit-pattern {
    display: none;
  }
}

/* ─── Mobile: max 768px ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .ham { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual { display: none; }

  .hero-label {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero h1 .code-text {
    font-size: 0.85em;
  }

  section {
    padding: clamp(3.5rem, 8vh, 6rem) 0;
  }

  /* About section mobile */
  .about-heading {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .about-text p {
    font-size: 0.98rem;
  }

  .about-lede {
    font-size: 1.15rem;
  }

  .about-photo-placeholder {
    min-height: 240px;
  }

  /* Services mobile */
  .services-heading,
  .portfolio-heading,
  .testimonials-heading,
  .contact-heading {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .service-num {
    font-size: 2.8rem;
  }

  /* Prevent reveal animations from causing horizontal overflow */
  .rv-right {
    transform: translateX(20px);
  }
  .rv-left {
    transform: translateX(-20px);
  }

  /* Portfolio mobile */
  .portfolio-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    max-width: 100%;
  }

  .portfolio-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .browser-frame {
    border-radius: 6px;
  }

  /* Testimonials mobile */
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  /* Contact mobile */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-desc {
    max-width: 100%;
  }

  .contact-details {
    flex-direction: column;
    gap: 1.25rem;
  }

  .contact-detail-value {
    font-size: 1rem;
  }

  /* Footer mobile */
  .footer-logo {
    height: 60px;
  }

  .footer-verse blockquote {
    font-size: 0.9rem;
  }
}

/* ─── Small mobile: max 480px ─── */
@media (max-width: 480px) {
  :root {
    --gutter: 1rem;
  }

  .hero {
    min-height: 90vh;
    padding-top: 5rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .hero-btns .btn {
    text-align: center;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .nav-logo img {
    height: 40px;
  }

  .nav {
    padding: 0.8rem 0;
  }

  .nav.scrolled .nav-logo img {
    height: 32px;
  }

  .nav.scrolled {
    padding: 0.5rem 0;
  }

  .about-heading {
    font-size: 1.5rem;
  }

  .about-photo-placeholder {
    min-height: 200px;
  }

  .scripture {
    padding: 1.25rem;
  }

  .scripture blockquote {
    font-size: 0.95rem;
  }

  .service-card {
    padding: 1.75rem 1.25rem;
  }

  .service-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .project-info h3 {
    font-size: 1.3rem;
  }

  .testimonial-card {
    padding: 1.75rem 1.25rem;
  }

  .testimonial-card blockquote {
    font-size: 0.95rem;
  }

  .contact-heading {
    font-size: 1.5rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .btn {
    font-size: 0.82rem;
    padding: 0.85rem 1.8rem;
  }

  /* Ensure touch targets are at least 44px */
  .nav-cta,
  .tab-btn,
  .btn {
    min-height: 44px;
  }

  /* old mobile-menu a override removed — handled by .mobile-menu__link */

  .scroll-hint {
    display: none;
  }

  .scroll-progress {
    height: 3px;
  }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: var(--bg2);
  border: 1px solid var(--slate);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--sage);
  color: var(--lime);
  background: var(--bg3);
  box-shadow: 0 4px 20px var(--sage-glow);
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
  }
}

/* ══════════════════════════════════════════
   SUBPAGE STYLES (shared across all inner pages)
   ══════════════════════════════════════════ */

/* ── Page Hero (simpler than homepage hero) ── */
.page-hero {
  padding: clamp(8rem, 18vh, 12rem) 0 clamp(3rem, 6vh, 5rem);
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(24, 21, 16, 1) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.page-hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--barn);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero .section-label {
  justify-content: center;
}

/* ── Answer-First Block ── */
.answer-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(36, 33, 26, 0.6), rgba(28, 26, 21, 0.5));
  border: 1px solid rgba(196, 168, 122, 0.1);
  border-left: 3px solid var(--cedar);
  border-radius: 4px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gravel);
}

.answer-block p {
  margin-bottom: 0.5rem;
}

.answer-block p:last-child {
  margin-bottom: 0;
}

/* ── FAQ Section ── */
.faq-section {
  padding: clamp(4rem, 10vh, 7rem) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(24, 21, 16, 1) 100%);
  border-top: 1px solid rgba(196, 168, 122, 0.06);
}

.faq-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 2.5rem;
}

/* ── Glossary Term Styling ── */
.glossary-term { scroll-margin-top: 100px; }

.glossary-simple {
  border-left: 3px solid var(--cedar);
  background: rgba(196, 168, 122, 0.04);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0 4px 4px 0;
}

.glossary-simple__label,
.glossary-full__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 0.5rem;
}

.glossary-simple p {
  font-size: 1rem;
  color: var(--lime);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

.glossary-full {
  margin-bottom: 1.25rem;
}

.glossary-full p {
  font-size: 0.92rem;
  color: var(--sand);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.glossary-full p:last-child { margin-bottom: 0; }

.glossary-why {
  font-size: 0.88rem;
  color: var(--barn);
  font-style: italic;
  line-height: 1.7;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(196, 168, 122, 0.06);
}

.glossary-why strong {
  color: var(--cedar);
  font-style: normal;
  font-weight: 600;
}

/* Inline glossary cross-link */
.glossary-link {
  color: var(--cedar);
  text-decoration: none;
  border-bottom: 1px dotted rgba(196, 168, 122, 0.3);
  transition: color 0.3s, border-color 0.3s;
}

.glossary-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.glossary-article-link {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(196, 168, 122, 0.08);
}

.glossary-article-link a {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

.glossary-article-link a:hover {
  color: var(--lime);
}

.faq-item {
  border-bottom: 1px solid rgba(196, 168, 122, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lime);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--cedar);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--cedar);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--cedar);
  outline-offset: 2px;
  border-radius: 2px;
}

.faq-item__answer {
  padding: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--barn);
  line-height: 1.75;
  max-width: 680px;
}

/* ── Page CTA Section ── */
.page-cta {
  text-align: center;
  padding: clamp(4rem, 10vh, 7rem) 0;
  border-top: 1px solid rgba(196, 168, 122, 0.06);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.page-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.page-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.page-cta p {
  color: var(--barn);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

/* ── Feature Grid (service pages) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(36, 33, 26, 0.5), rgba(28, 26, 21, 0.4));
  border: 1px solid rgba(74, 69, 56, 0.2);
  border-radius: 4px;
  transition: border-color 0.3s;
}

.feature-item:hover {
  border-color: rgba(196, 168, 122, 0.2);
}

.feature-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--sage);
}

.feature-item__text {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--chalk);
  font-weight: 500;
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Content Section (about, inner pages) ── */
.content-section {
  padding: clamp(4rem, 10vh, 7rem) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

/* Alternate content sections get reversed gradient */
.content-section:nth-of-type(even) {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(24, 21, 16, 1) 100%);
}

/* Subtle warm glow on content sections */
.content-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 122, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--sand);
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* ── Portfolio Card (work page — stacked layout) ── */
.portfolio-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 6vh, 5rem) 0;
}

.portfolio-card:nth-child(even) {
  direction: rtl;
}

.portfolio-card:nth-child(even) > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .portfolio-card,
  .portfolio-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ── Read More Link ── */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  font-weight: 600;
  color: var(--cedar);
  transition: color 0.3s, gap 0.3s;
  margin-top: 1rem;
}

.read-more:hover {
  color: var(--lime);
  gap: 0.75rem;
}

.read-more::after {
  content: '\2192';
  transition: transform 0.3s;
}

.read-more:hover::after {
  transform: translateX(3px);
}

/* ══════════════════════════════════════════
   CASE STUDY — Full-Width Portfolio Cards
   ══════════════════════════════════════════ */

/* ── Sticky Project Nav ── */
.project-nav {
  position: sticky;
  top: 60px; /* sits just below the main nav */
  z-index: 80;
  background: rgba(22, 20, 15, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(196, 168, 122, 0.06);
  border-bottom: 1px solid rgba(196, 168, 122, 0.08);
  margin-top: -1px;
}

.project-nav .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem var(--gutter);
}

.project-nav__link {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--field);
  letter-spacing: 0.05em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.project-nav__link:hover {
  color: var(--cedar);
}

.project-nav__link.active {
  color: var(--cedar);
  border-bottom-color: var(--cedar);
}

/* ── Case Study Section ── */
.case-study {
  padding: clamp(3rem, 6vh, 5rem) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(24, 21, 16, 1) 100%);
}

.case-study:nth-of-type(even) {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.case-study__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.case-study__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.case-study__location {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--barn);
}

.case-study__url {
  color: var(--cedar);
  transition: color 0.3s;
}

.case-study__url:hover {
  color: var(--gold);
}

.case-study__url svg {
  vertical-align: -1px;
  margin-left: 2px;
}

/* ── Main Image Gallery ── */
.case-study__gallery {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.case-study__main-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid rgba(74, 69, 56, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(196, 168, 122, 0.05);
  height: clamp(280px, 35vw, 420px);
}

.case-study__main-image img {
  width: calc(100% + 20px); /* crop scrollbar baked into screenshots */
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: opacity 0.2s ease;
}

.case-study__page-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cedar);
  background: rgba(22, 20, 15, 0.85);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* ── Thumbnail Strip ── */
.case-study__thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 168, 122, 0.2) transparent;
  padding-bottom: 0.25rem;
}

.case-study__thumb {
  flex-shrink: 0;
  width: 120px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s, opacity 0.3s, transform 0.2s;
  padding: 0;
  background: var(--bg2);
  opacity: 0.5;
  min-height: auto;
}

.case-study__thumb img {
  width: calc(100% + 4px);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.case-study__thumb:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.case-study__thumb.active {
  border-color: var(--cedar);
  opacity: 1;
}

@media (min-width: 768px) {
  .case-study__thumb {
    width: 160px;
    height: 96px;
  }
}

@media (max-width: 480px) {
  .case-study__main-image {
    height: clamp(350px, 65vh, 450px);
  }

  .case-study__main-image img {
    width: 100%;
    max-width: 100%;
    object-position: top center;
  }

  .project-nav .container {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* ── Impact Metrics Strip ── */
.case-study__impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(196, 168, 122, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.impact-stat {
  background: var(--bg2);
  padding: 1.25rem 1rem;
  text-align: center;
}

/* All projects use 4 metrics — grid fills evenly */

.impact-stat__value {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.impact-stat__label {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--field);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Case Study Details ── */
.case-study__details {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.case-study__desc {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--sand);
  margin-bottom: 1.5rem;
}

.case-study__deliverables {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.deliverable-pill {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cedar);
  background: rgba(196, 168, 122, 0.08);
  border: 1px solid rgba(196, 168, 122, 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: background 0.3s, border-color 0.3s;
}

.deliverable-pill:hover {
  background: rgba(196, 168, 122, 0.15);
  border-color: rgba(196, 168, 122, 0.3);
}

/* ── Visibility Tool Styles ── */

/* Old preview-card kept for backwards compat on service pages */
.preview-card { max-width: 520px; margin: 0 auto 3rem; background: var(--bg2); border: 1px solid rgba(196, 168, 122, 0.12); border-radius: 12px; padding: 2rem; text-align: left; }
.preview-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(196, 168, 122, 0.08); padding-bottom: 1rem; }
.preview-card__title { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--chalk); text-transform: uppercase; letter-spacing: 0.1em; }
.preview-card__score { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: #FFC107; }

/* ── Animated Score Ring Preview ── */
.score-preview {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 640px;
  margin: 2.5rem auto 0;
  background: var(--bg2);
  border: 1px solid rgba(196, 168, 122, 0.12);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.score-preview__ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  height: 160px;
}

.score-preview__ring {
  display: block;
}

.score-preview__number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.score-preview__value {
  font-family: var(--mono);
  font-size: 3.2rem;
  font-weight: 700;
  color: #FFC107;
  line-height: 1;
}

.score-preview__of {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--field);
  margin-top: 0.15rem;
}

.score-preview__bars {
  flex: 1;
  min-width: 0;
}

/* ── Score Bars ── */
.score-bar {
  margin-bottom: 0.75rem;
}

.score-bar__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.score-bar__icon {
  flex-shrink: 0;
  color: var(--field);
}

.score-bar__label {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--barn);
}

.score-bar__pct {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--chalk);
}

.score-bar__track {
  height: 4px;
  border-radius: 2px;
  background: rgba(196, 168, 122, 0.08);
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-bar__fill--green { background: #4CAF50; }
.score-bar__fill--yellow { background: #FFC107; }
.score-bar__fill--red { background: #F44336; }

.score-preview__findings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(196, 168, 122, 0.06);
}

.finding-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

.finding-tag--red {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

.finding-tag--yellow {
  background: rgba(255, 193, 7, 0.1);
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

@media (max-width: 560px) {
  .score-preview {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .score-preview__ring-wrap {
    width: 120px;
    height: 120px;
  }
  .score-preview__ring { width: 120px; height: 120px; }
  .score-preview__value { font-size: 2rem; }
  .score-preview__findings { justify-content: center; }
  .score-bar__header { justify-content: center; }
}

/* ── Trust Strip ── */
.trust-strip {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(196, 168, 122, 0.06);
}

.trust-strip .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trust-strip__item {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--field);
}

.trust-strip__item strong {
  color: var(--cedar);
  font-weight: 700;
}

.trust-strip__sep {
  color: rgba(196, 168, 122, 0.3);
}

/* ── Steps V2 (with icons + connectors) ── */
.steps-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.step-v2 {
  text-align: center;
  padding: 1.5rem;
  flex: 1;
}

.step-v2__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(212, 160, 74, 0.08);
  border: 1px solid rgba(212, 160, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-v2__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.step-v2__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--lime);
  margin-bottom: 0.5rem;
}

.step-v2__desc {
  font-size: 0.88rem;
  color: var(--barn);
  line-height: 1.6;
}

.step-v2__connector {
  display: flex;
  align-items: center;
  padding-top: 2.75rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .steps-v2 { flex-direction: column; gap: 0; }
  .step-v2__connector { padding-top: 0; transform: rotate(90deg); margin: -0.5rem auto; }
}

/* ── Featured Tier Card ── */
.tier-card--featured {
  border-color: var(--gold);
  position: relative;
  box-shadow: 0 0 40px rgba(212, 160, 74, 0.08);
  transform: scale(1.04);
}

.tier-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.25rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.tier-card .tier-card__cta--primary {
  background: var(--gold);
  color: #16140F;
  border-color: var(--gold);
  font-weight: 700;
}

.tier-card .tier-card__cta--primary:hover {
  background: var(--cedar);
  color: #16140F;
  border-color: var(--cedar);
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: clamp(3rem, 6vh, 5rem) 0;
  border-top: 1px solid rgba(196, 168, 122, 0.06);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1rem;
  color: var(--barn);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--gold);
  color: var(--bg);
  border-radius: 6px;
  transition: background 0.3s, transform 0.2s;
  min-height: 44px;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--cedar);
  transform: translateY(-1px);
}

/* Scan form */
.scan-section { text-align: center; padding: 3rem 0 5rem; position: relative; background: linear-gradient(180deg, var(--bg) 0%, rgba(24, 21, 16, 1) 100%); }
.scan-form { display: flex; max-width: 560px; margin: 0 auto 1rem; gap: 0.75rem; }
.scan-input { flex: 1; padding: 0.9rem 1.25rem; font-family: var(--sans); font-size: 1rem; background: var(--bg2); border: 1px solid rgba(196, 168, 122, 0.15); border-radius: 6px; color: var(--lime); outline: none; transition: border-color 0.3s; }
.scan-input:focus { border-color: var(--cedar); }
.scan-input::placeholder { color: var(--field); }
.scan-btn { padding: 0.9rem 2rem; font-family: var(--sans); font-weight: 700; font-size: 0.95rem; background: var(--gold); color: var(--bg); border-radius: 6px; transition: background 0.3s, transform 0.2s; white-space: nowrap; min-height: 44px; }
.scan-btn:hover { background: var(--cedar); transform: translateY(-1px); }
.scan-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.scan-meta { font-family: var(--sans); font-size: 0.82rem; color: var(--field); }
@media (max-width: 560px) { .scan-form { flex-direction: column; } .scan-btn { width: 100%; } }

/* Scan category cards — 2x2 desktop, stacked mobile */
.scan-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.scan-category-card {
  background: linear-gradient(145deg, rgba(36, 33, 26, 0.6), rgba(28, 26, 21, 0.5));
  border: 1px solid rgba(196, 168, 122, 0.1);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.scan-category-card:hover {
  border-color: rgba(196, 168, 122, 0.2);
  transform: translateY(-2px);
}

.scan-category-card__icon {
  margin-bottom: 1rem;
}

.scan-category-card__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.scan-category-card__title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 0.75rem;
}

.scan-category-card__desc {
  font-size: 0.9rem;
  color: var(--barn);
  line-height: 1.7;
}

@media (max-width: 640px) { .scan-categories { grid-template-columns: 1fr; } }

/* Progress indicator */
.progress { display: none; max-width: 560px; margin: 2rem auto; text-align: left; }
.progress.active { display: block; }
.progress__step { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; font-family: var(--sans); font-size: 0.85rem; color: var(--field); transition: color 0.3s; }
.progress__step.running { color: var(--cedar); }
.progress__step.done { color: var(--sage); }
.progress__step.error { color: #F44336; }
.progress__icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(196, 168, 122, 0.2); border-top-color: var(--cedar); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.results { display: none; padding: 3rem 0 5rem; position: relative; background: linear-gradient(180deg, var(--bg) 0%, rgba(24, 21, 16, 1) 100%); }
.results.active { display: block; }
.results__score { text-align: center; margin-bottom: 3rem; }
.results__score-number { font-family: var(--mono); font-size: 4rem; font-weight: 700; line-height: 1; }
.results__score-number.green { color: #4CAF50; }
.results__score-number.yellow { color: #FFC107; }
.results__score-number.red { color: #F44336; }
.results__score-label { font-family: var(--sans); font-size: 1rem; color: var(--barn); margin-top: 0.5rem; }
.results__context { font-family: var(--sans); font-size: 0.88rem; color: var(--field); margin-top: 1rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.category-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto 3rem; }
@media (max-width: 700px) { .category-cards { grid-template-columns: 1fr; } }

.category-card { background: var(--bg2); border: 1px solid rgba(196, 168, 122, 0.1); border-radius: 10px; padding: 1.5rem; cursor: pointer; transition: border-color 0.3s; }
.category-card:hover { border-color: rgba(196, 168, 122, 0.25); }
.category-card.aeo { border-color: rgba(139, 154, 109, 0.25); }
.category-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.category-card__name { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; color: var(--lime); }
.category-card__badge { font-family: var(--mono); font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 3px; font-weight: 600; }
.category-card__badge.green { background: rgba(76, 175, 80, 0.15); color: #4CAF50; }
.category-card__badge.yellow { background: rgba(255, 193, 7, 0.15); color: #FFC107; }
.category-card__badge.red { background: rgba(244, 67, 54, 0.15); color: #F44336; }
.category-card__bar { height: 4px; border-radius: 2px; background: rgba(196, 168, 122, 0.08); margin-bottom: 0.75rem; overflow: hidden; }
.category-card__fill { height: 100%; border-radius: 2px; transition: width 1s ease; }
.category-card__fill.green { background: #4CAF50; }
.category-card__fill.yellow { background: #FFC107; }
.category-card__fill.red { background: #F44336; }
.category-card__summary { font-family: var(--sans); font-size: 0.82rem; color: var(--field); }
.category-card__details { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(196, 168, 122, 0.06); }
.category-card.expanded .category-card__details { display: block; }

.check-item { margin-bottom: 1rem; }
.check-item__header { display: flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--chalk); margin-bottom: 0.25rem; }
.check-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.check-dot.green { background: #4CAF50; }
.check-dot.yellow { background: #FFC107; }
.check-dot.red { background: #F44336; }
.check-dot.unknown { background: var(--field); }
.check-item__detail { font-family: var(--mono); font-size: 0.75rem; color: var(--field); margin-left: 1rem; margin-bottom: 0.15rem; }
.check-item__plain { font-family: var(--sans); font-size: 0.82rem; color: var(--barn); margin-left: 1rem; }

/* Tier cards */
.tiers { padding: 3rem 0; position: relative; background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); }
.tiers.hidden { display: none; }
.tiers h2 { text-align: center; font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 2rem; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.tier-card { background: var(--bg2); border: 1px solid rgba(196, 168, 122, 0.1); border-radius: 10px; padding: 2rem 1.5rem; text-align: center; }
.tier-card__name { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--lime); margin-bottom: 0.5rem; }
.tier-card__price { font-family: var(--mono); font-size: 1.5rem; color: var(--gold); margin-bottom: 1rem; }
.tier-card__desc { font-size: 0.85rem; color: var(--barn); margin-bottom: 1.25rem; line-height: 1.6; }
.tier-card__cta { display: inline-flex; align-items: center; padding: 0.6rem 1.5rem; border: 1px solid var(--cedar); color: var(--cedar); border-radius: 4px; font-family: var(--sans); font-weight: 600; font-size: 0.85rem; transition: all 0.3s; min-height: 44px; }
.tier-card__cta:hover { background: var(--cedar); color: var(--bg); }
@media (max-width: 700px) { .tier-grid { grid-template-columns: 1fr; } }

/* Error message */
.error-msg { display: none; max-width: 560px; margin: 1.5rem auto; padding: 1rem 1.25rem; background: rgba(244, 67, 54, 0.08); border: 1px solid rgba(244, 67, 54, 0.2); border-radius: 6px; font-family: var(--sans); font-size: 0.88rem; color: #ef9a9a; text-align: center; }
.error-msg.active { display: block; }

/* How it works */
.how-it-works { padding: 5rem 0; border-top: 1px solid rgba(196, 168, 122, 0.06); position: relative; background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); }
.how-it-works h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 3rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 900px; margin: 0 auto; }
.step { text-align: center; padding: 1.5rem; }
.step__number { font-family: var(--mono); font-size: 2.5rem; font-weight: 700; color: var(--gold); margin-bottom: 0.75rem; }
.step__title { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--lime); margin-bottom: 0.5rem; }
.step__desc { font-size: 0.9rem; color: var(--barn); }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; gap: 1rem; } }

/* ── Portfolio Slideshow ── */
.browser-body.slideshow {
  display: block;
  align-items: stretch;
  justify-content: flex-start;
}

.slideshow {
  position: relative;
  overflow: hidden;
}

.slideshow__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slideshow__slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.slideshow__nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(196, 168, 122, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
  min-height: auto;
}

.slideshow__dot.active {
  background: var(--cedar);
  border-color: var(--cedar);
  transform: scale(1.3);
}

.slideshow__dot:hover {
  border-color: var(--cedar);
}

.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(22, 20, 15, 0.7);
  border: 1px solid rgba(196, 168, 122, 0.2);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s, border-color 0.3s;
  padding: 0;
  min-height: auto;
}

.slideshow__arrow:hover {
  background: rgba(22, 20, 15, 0.9);
  border-color: var(--cedar);
}

.slideshow__arrow--prev { left: 0.75rem; }
.slideshow__arrow--next { right: 0.75rem; }

.slideshow__label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cedar);
  background: rgba(22, 20, 15, 0.8);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  z-index: 5;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .slideshow__arrow { width: 32px; height: 32px; }
}

/* ══════════════════════════════════════════
   BLOG — Terminal-Style Feed
   ══════════════════════════════════════════ */

/* ── Blog Listing Hero ── */
.blog-hero {
  padding: clamp(6rem, 12vw, 10rem) 0 3rem;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(24, 21, 16, 1) 100%);
}

.blog-hero__title {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--cedar);
  margin-bottom: 0.75rem;
}

.blog-hero__sub {
  font-family: var(--sans);
  font-size: 1.1rem;
  color: rgba(248, 243, 232, 0.5);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Article Cards (Listing Page) ── */
.blog-feed {
  padding: 2rem 0 6rem;
  position: relative;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.blog-card {
  display: block;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(196, 168, 122, 0.1);
  transition: border-color 0.3s;
}

.blog-card:first-child {
  border-top: 1px solid rgba(196, 168, 122, 0.1);
}

.blog-card:hover {
  border-bottom-color: rgba(196, 168, 122, 0.3);
}

.blog-card__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--field);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.blog-card__date::before {
  content: '>';
  margin-right: 0.5rem;
  color: var(--cedar);
}

.blog-card__title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--kiln);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.blog-card:hover .blog-card__title {
  color: var(--cedar);
}

.blog-card__excerpt {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--barn);
  line-height: 1.6;
  max-width: 640px;
}

/* ── Article Page ── */
.article-header {
  padding: clamp(6rem, 12vw, 10rem) 0 2rem;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.article-back {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--field);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  transition: color 0.3s;
}

.article-back:hover {
  color: var(--cedar);
}

.article-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--field);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.article-subtitle {
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--barn);
  line-height: 1.6;
}

.article-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--cedar), transparent);
  margin-top: 2rem;
}

/* ── Article Body ── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
  position: relative;
}

.article-body h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--cedar);
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lime);
  margin: 2rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  color: var(--sand);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--sand);
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body a {
  color: var(--cedar);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.article-body a:hover {
  color: var(--gold);
}

.article-body strong {
  color: var(--lime);
  font-weight: 600;
}

.article-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg2);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--cedar);
}

/* ── Callout Blocks ── */
.callout {
  border-left: 3px solid var(--cedar);
  background: rgba(196, 168, 122, 0.04);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.callout__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cedar);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ── Glossary callout — "// from the glossary" box in blog posts ── */
.glossary-callout {
  border: 1px solid rgba(196, 168, 122, 0.15);
  background: rgba(22, 20, 15, 0.6);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  border-radius: 4px;
  position: relative;
}

.glossary-callout__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--sage);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  display: block;
}

.glossary-callout__label a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.glossary-callout__label a:hover {
  color: var(--lime);
}

.glossary-callout p {
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--cedar);
  margin-bottom: 0;
}

/* ── Pull Quote — key takeaway callout ── */
.pull-quote {
  position: relative;
  padding: 2rem 2rem 2rem 2.5rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(196, 168, 122, 0.04), transparent);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

.pull-quote__text {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--lime);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.pull-quote__source {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cedar);
  letter-spacing: 0.05em;
}

/* ── Stat Callout — single-stat highlight box ── */
.stat-callout {
  text-align: center;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg2);
  border: 1px solid rgba(196, 168, 122, 0.1);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.stat-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.stat-callout__number {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-callout__label {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--sand);
  max-width: 320px;
  margin: 0 auto 0.5rem;
}

.stat-callout__source {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--field);
  letter-spacing: 0.05em;
}

/* ── Blog Screenshot — browser frame for client work ── */
.blog-screenshot {
  margin: 2rem 0;
}

.blog-screenshot__frame {
  background: var(--bg2);
  border: 1px solid rgba(74, 69, 56, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(196, 168, 122, 0.05);
}

.blog-screenshot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid rgba(74, 69, 56, 0.3);
}

.blog-screenshot__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.blog-screenshot__dot:nth-child(1) { background: #E25D5D; }
.blog-screenshot__dot:nth-child(2) { background: #E8B33E; }
.blog-screenshot__dot:nth-child(3) { background: #58A55C; }

.blog-screenshot__url {
  flex: 1;
  margin-left: 0.75rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--field);
  background: var(--bg);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
}

.blog-screenshot__body {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
}

.blog-screenshot__body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.blog-screenshot__caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--field);
  margin-top: 0.75rem;
  padding-left: 0.25rem;
  letter-spacing: 0.03em;
}

.blog-screenshot__caption a {
  color: var(--cedar);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.blog-screenshot__caption a:hover {
  color: var(--gold);
}

/* Mobile: break the screenshot card out of the article-body padding
   so the browser-chrome and image get max width on 375px viewports. */
@media (max-width: 720px) {
  .blog-screenshot {
    margin-left: -17px;
    margin-right: -17px;
  }
  .blog-screenshot__frame {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .blog-screenshot__body {
    /* Shorter aspect ratio + contain instead of cover so the whole
       screenshot is visible without cropping at narrow widths. */
    aspect-ratio: 16 / 11;
  }
  .blog-screenshot__body img {
    object-fit: cover;
    object-position: top center;
  }
  .blog-screenshot__caption {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ── Blog Photo — editorial photography with caption ── */
.blog-photo {
  margin: 2rem 0;
}

.blog-photo__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(196, 168, 122, 0.08);
}

.blog-photo__caption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--barn);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

.blog-photo__credit {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--field);
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

/* ── Blog Infographic — framed NotebookLM artifact on dark bg ── */
.blog-infographic {
  margin: 2.5rem 0;
  padding: 1.25rem;
  background: var(--bg2);
  border: 1px solid rgba(196, 168, 122, 0.18);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(196, 168, 122, 0.04) inset,
              0 24px 60px -30px rgba(0, 0, 0, 0.6);
}

.blog-infographic__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  /* Tames pure-white panels generated by NotebookLM so they sit
     on the dark page without blowing out. */
  filter: brightness(0.93) contrast(1.03) saturate(0.95);
}

.blog-infographic__caption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--barn);
  margin-top: 0.85rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

/* Mobile: break the infographic out of the article body padding so the
   dense NotebookLM panel has room to breathe and stay readable. */
@media (max-width: 720px) {
  .blog-infographic {
    margin-left: -17px;
    margin-right: -17px;
    padding: 0.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .blog-infographic__caption {
    font-size: 0.85rem;
    padding: 0 0.75rem;
  }
}

/* ── Blog Audio Brief — NotebookLM "listen instead" player ── */
.blog-audio-brief {
  margin: 1.75rem 0 2.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg2);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
}

.blog-audio-brief__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cedar);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
}

.blog-audio-brief audio {
  width: 100%;
  display: block;
}

@media (max-width: 720px) {
  .blog-audio-brief {
    margin-left: -17px;
    margin-right: -17px;
    border-radius: 0;
    padding: 0.9rem 1rem;
  }
  .blog-audio-brief__label {
    font-size: 0.72rem;
  }
}

/* ── Before/After — side-by-side comparison ── */
.compare-side {
  margin: 2rem 0;
}

.compare-side__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-side__panel {
  position: relative;
}

.compare-side__tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
}

.compare-side__tag--before {
  background: rgba(226, 93, 93, 0.15);
  color: #E25D5D;
}

.compare-side__tag--after {
  background: rgba(88, 165, 92, 0.15);
  color: #58A55C;
}

.compare-side__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.compare-side__image--before {
  border: 1px solid rgba(226, 93, 93, 0.1);
}

.compare-side__image--after {
  border: 1px solid rgba(88, 165, 92, 0.1);
}

.compare-side__caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--field);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

/* ── Before/After — interactive slider comparison ── */
.compare-slider {
  margin: 2rem 0;
}

.compare-slider__container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(196, 168, 122, 0.1);
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.compare-slider__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-slider__layer--before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.compare-slider__layer--after {
  z-index: 0;
}

.compare-slider__handle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-slider__handle::after {
  content: '\2194';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.compare-slider__tags {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}

.compare-slider__tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(22, 20, 15, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.compare-slider__tag--before { color: #E25D5D; }
.compare-slider__tag--after { color: #58A55C; }

.compare-slider__caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--field);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

/* ── Annotated Diagram — concept explainer with caption ── */
.blog-diagram {
  margin: 2rem 0;
  background: var(--bg2);
  border: 1px solid rgba(196, 168, 122, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.blog-diagram__header {
  padding: 0.6rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid rgba(74, 69, 56, 0.2);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--sage);
  letter-spacing: 0.08em;
}

.blog-diagram__body {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.blog-diagram__body img {
  max-width: 100%;
  height: auto;
}

.blog-diagram__caption {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(74, 69, 56, 0.15);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--barn);
  font-style: italic;
  line-height: 1.5;
}

/* ── Further Reading — E-E-A-T reference links ── */
.further-reading {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196, 168, 122, 0.08);
}

.further-reading h2 {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--cedar);
  margin-bottom: 1rem;
}

.further-reading ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.further-reading li {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--sand);
}

.further-reading a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.further-reading a:hover {
  color: var(--lime);
}

/* ── Related glossary terms ── */
.related-terms {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(196, 168, 122, 0.04);
  border-radius: 4px;
}

.related-terms__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--sage);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.related-terms a {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cedar);
  text-decoration: none;
  transition: color 0.3s;
}

.related-terms a:hover {
  color: var(--gold);
}

.related-terms a + a::before {
  content: ' · ';
  color: var(--field);
}

/* ── Article CTA ── */
.article-cta {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 2.5rem;
  background: var(--bg2);
  border: 1px solid rgba(196, 168, 122, 0.1);
  border-radius: 8px;
  text-align: center;
}

.article-cta h2 {
  font-size: 1.4rem;
  color: var(--lime);
  margin-bottom: 0.75rem;
}

.article-cta p {
  font-family: var(--sans);
  color: var(--barn);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta .btn {
  display: inline-block;
}

.article-cta__secondary {
  display: block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--field);
  transition: color 0.3s;
}

.article-cta__secondary:hover {
  color: var(--cedar);
}

/* ── Article Nav (prev/next) ── */
.article-nav {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.article-nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--field);
  transition: color 0.3s;
}

.article-nav a:hover {
  color: var(--cedar);
}

.article-nav__next {
  margin-left: auto;
  text-align: right;
}

/* ── Blog Responsive ── */
@media (max-width: 768px) {
  .blog-card {
    padding: 1.5rem 0;
  }

  .article-header {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .article-cta {
    margin-left: var(--gutter);
    margin-right: var(--gutter);
    padding: 2rem 1.5rem;
  }

  .article-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .article-nav__next {
    text-align: left;
  }

  .pull-quote {
    padding: 1.5rem 1.25rem 1.5rem 1.75rem;
  }

  .pull-quote__text {
    font-size: 1.05rem;
  }

  .compare-side__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-slider__container {
    cursor: default;
  }
}
