/* ============================================
   KITCHEN REDUX — HANSON CABINET REMODELING
   Premium single-page stylesheet
   ============================================ */

:root {
  /* Warm cabinetry palette */
  --espresso: #1A0F0A;
  --walnut: #3E2723;
  --walnut-2: #5D4037;
  --amber: #D4935A;
  --amber-deep: #B8733A;
  --brass: #B8935A;
  --cream: #F5E6D3;
  --ivory: #FAF3E7;
  --smoke: #2B211D;
  --ink: #120806;
  --slate: #4A3B35;
  --highlight: #FFD89B;

  --grad-warm: linear-gradient(135deg, #3E2723 0%, #5D4037 50%, #8D6E63 100%);
  --grad-amber: linear-gradient(135deg, #B8733A 0%, #D4935A 50%, #FFD89B 100%);
  --grad-night: linear-gradient(180deg, #120806 0%, #1A0F0A 40%, #2B211D 100%);
  --grad-glow: radial-gradient(circle at 30% 20%, rgba(212, 147, 90, 0.25) 0%, transparent 50%),
               radial-gradient(circle at 70% 80%, rgba(184, 147, 90, 0.18) 0%, transparent 55%);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-soft: 0 10px 40px rgba(18, 8, 6, 0.25);
  --shadow-deep: 0 30px 80px rgba(18, 8, 6, 0.4);
  --shadow-glow: 0 0 40px rgba(212, 147, 90, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--grad-night);
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: var(--amber); }

a { color: inherit; text-decoration: none; transition: color .3s var(--ease-out); }
a:hover { color: var(--amber); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }

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

ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */
#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* ============================================
   READING PROGRESS
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-amber);
  z-index: 1000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(212, 147, 90, 0.6);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(18, 8, 6, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(212, 147, 90, 0.08);
  transition: all .4s var(--ease-out);
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(18, 8, 6, 0.85);
  border-bottom-color: rgba(212, 147, 90, 0.2);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 18px;
  color: var(--ivory);
}

.logo-mark { width: 34px; height: 34px; }
.logo-text { font-family: 'Fraunces', serif; letter-spacing: -0.01em; }
.logo-text em { font-weight: 300; font-size: 1em; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: rgba(245, 230, 211, 0.75);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width .4s var(--ease-out);
}

.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 20px !important;
  background: var(--grad-amber);
  color: var(--ink) !important;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--ink) !important;
}

.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.menu-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: transform .3s var(--ease-out), top .3s var(--ease-out), opacity .3s;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  z-index: 0;
  pointer-events: none;
}

.hero-stage {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content { max-width: 820px; position: relative; z-index: 3; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(212, 147, 90, 0.08);
  border: 1px solid rgba(212, 147, 90, 0.2);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
  animation: fadeInUp 1s var(--ease-out) 0.1s both;
}

.hero-kicker .pin {
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--amber);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 300;
  margin-bottom: 32px;
}

.hero-title span {
  display: block;
  overflow: hidden;
}

.hero-title .t1, .hero-title .t2, .hero-title .t3 {
  transform: translateY(110%);
  animation: slideUp 1.1s var(--ease-out) forwards;
}

.hero-title .t1 { animation-delay: 0.3s; }
.hero-title .t2 { animation-delay: 0.45s; font-weight: 400; }
.hero-title .t2 em { font-weight: 300; }
.hero-title .t3 { animation-delay: 0.6s; font-weight: 500; color: var(--amber); font-style: normal; }

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 680px;
  color: rgba(245, 230, 211, 0.75);
  line-height: 1.6;
  margin-bottom: 40px;
  animation: fadeInUp 1s var(--ease-out) 0.9s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 1s var(--ease-out) 1.1s both;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 620px;
  animation: fadeInUp 1s var(--ease-out) 1.3s both;
}

.meta-item { display: flex; flex-direction: column; gap: 4px; }

.meta-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
}

.meta-num::after { content: '+'; font-size: 0.7em; color: var(--brass); margin-left: 2px; }
.meta-item:last-child .meta-num::after { content: '%'; }

.meta-label {
  font-size: 12px;
  color: rgba(245, 230, 211, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero floating cabinets */
.floating-cabinets {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  z-index: 1;
  pointer-events: none;
}

.cab {
  position: absolute;
  width: 140px; height: 180px;
  border-radius: var(--radius-md);
  transform-style: preserve-3d;
  animation: cabFloat 14s ease-in-out infinite;
}

.cab-face {
  position: absolute;
  inset: 0;
  background: var(--grad-warm);
  border-radius: inherit;
  border: 1px solid rgba(212, 147, 90, 0.3);
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.5),
    inset 0 2px 0 rgba(212, 147, 90, 0.3),
    0 30px 60px rgba(18, 8, 6, 0.6);
  overflow: hidden;
}

.cab-face::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 147, 90, 0.2);
  border-radius: calc(var(--radius-md) - 4px);
}

.cab-knob {
  position: absolute;
  right: 14px; top: 50%;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--amber);
}

.cab.c1 { left: 60%; top: 10%; animation-delay: 0s; animation-duration: 11s; }
.cab.c2 { left: 75%; top: 30%; animation-delay: -3s; animation-duration: 13s; }
.cab.c3 { left: 85%; top: 55%; animation-delay: -5s; animation-duration: 12s; }
.cab.c4 { left: 55%; top: 65%; animation-delay: -2s; animation-duration: 15s; }
.cab.c5 { left: 70%; top: 75%; animation-delay: -7s; animation-duration: 14s; }

.hero-light {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(212, 147, 90, 0.15) 0%, transparent 60%);
  z-index: 0;
  animation: lightSweep 18s ease-in-out infinite;
}

@keyframes cabFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  25% { transform: translate3d(-10px, -20px, 30px) rotate(-1deg); }
  50% { transform: translate3d(10px, -10px, 60px) rotate(1deg); }
  75% { transform: translate3d(-5px, 10px, 20px) rotate(-1deg); }
}

@keyframes lightSweep {
  0%, 100% { transform: rotate(0deg); opacity: 0.6; }
  50% { transform: rotate(30deg); opacity: 1; }
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .4s var(--ease-out);
  border: 0;
  letter-spacing: 0;
}

.btn-lg { padding: 20px 34px; font-size: 16px; }

.btn-primary {
  background: var(--grad-amber);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(212, 147, 90, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(212, 147, 90, 0.45);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 230, 211, 0.25);
}

.btn-ghost:hover {
  background: rgba(212, 147, 90, 0.1);
  border-color: var(--amber);
  color: var(--amber);
}

.btn-icon { width: 18px; height: 18px; }

.arrow {
  display: inline-block;
  transition: transform .4s var(--ease-out);
}

.btn:hover .arrow { transform: translateY(4px); }

/* ============================================
   SECTIONS - BASE
   ============================================ */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
}

.section-header {
  max-width: 760px;
  margin-bottom: 60px;
}

.chapter {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  padding: 6px 12px;
  border-left: 2px solid var(--amber);
  padding-left: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  margin-bottom: 24px;
}

.section-header h2 em { font-weight: 400; }

.section-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(245, 230, 211, 0.72);
  line-height: 1.65;
}

.section-foot {
  margin-top: 40px;
  font-size: 1.05rem;
  color: rgba(245, 230, 211, 0.72);
  line-height: 1.7;
  max-width: 760px;
  padding-left: 24px;
  border-left: 2px solid rgba(212, 147, 90, 0.25);
}

.section-foot a { color: var(--amber); border-bottom: 1px solid transparent; }
.section-foot a:hover { border-bottom-color: var(--amber); color: var(--highlight); }

/* ============================================
   INTRO — text reveal with moving bg
   ============================================ */
.intro {
  position: relative;
}

.intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grain-layer {
  position: absolute;
  inset: -20%;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 2px, rgba(212, 147, 90, 0.04) 2px, rgba(212, 147, 90, 0.04) 3px),
    repeating-linear-gradient(-45deg, transparent 0, transparent 3px, rgba(184, 147, 90, 0.03) 3px, rgba(184, 147, 90, 0.03) 4px);
  animation: grainShift 30s linear infinite;
}

.blueprint-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 147, 90, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 147, 90, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  animation: blueprintPan 40s linear infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(60px, 60px) rotate(1deg); }
}

@keyframes blueprintPan {
  0% { background-position: 0 0; }
  100% { background-position: 600px 600px; }
}

.intro-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 140px 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.intro-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 20px;
}

.intro .reveal-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
}

.intro-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(245, 230, 211, 0.82);
  margin-bottom: 20px;
}

.intro-body p:last-child { margin-bottom: 0; }

.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal-text.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PROBLEM — morph transformation
   ============================================ */
.problem { background: linear-gradient(180deg, var(--espresso) 0%, var(--ink) 100%); }

.morph-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: stretch;
  margin-top: 40px;
}

.morph-panel {
  padding: 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(245, 230, 211, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all .6s var(--ease-out);
  opacity: 0;
  transform: translateX(30px);
}

.morph-panel[data-state="before"] { transform: translateX(-30px); }

.morph-panel.in-view {
  opacity: 1;
  transform: translateX(0);
}

.morph-panel h3 {
  font-size: 1.4rem;
  margin: 24px 0 16px;
  font-weight: 500;
}

.morph-door {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 240px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .8s var(--ease-out);
}

.morph-panel:hover .morph-door { transform: rotateY(-8deg) scale(1.02); }

.morph-door.old {
  background: linear-gradient(135deg, #3E2723 0%, #5D4037 100%);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
}

.morph-door.new {
  background: linear-gradient(135deg, #D4935A 0%, #B8935A 100%);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2), 0 20px 40px rgba(212, 147, 90, 0.3);
}

.md-grain {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 6px);
}

.md-scratch {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.md-scratch.s1 { top: 20%; left: 30%; width: 40%; height: 2px; transform: rotate(12deg); }
.md-scratch.s2 { top: 60%; left: 20%; width: 30%; height: 2px; transform: rotate(-8deg); }

.md-knob {
  position: absolute;
  right: 16px; top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #8D6E63;
  transform: translateY(-50%);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.4);
}

.md-knob.new-knob {
  background: var(--amber);
  box-shadow: 0 0 12px rgba(212, 147, 90, 0.8), inset 0 -2px 4px rgba(0,0,0,0.2);
}

.md-panel {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: calc(var(--radius-md) - 4px);
}

.symptom-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.symptom-list li {
  display: flex;
  align-items: start;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(245, 230, 211, 0.8);
  padding-left: 24px;
  position: relative;
}

.symptom-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(245, 230, 211, 0.4);
}

.symptom-list.check li::before {
  content: '✓';
  color: var(--amber);
  font-weight: 700;
}

.morph-arrow {
  align-self: center;
  color: var(--amber);
  width: 120px;
  animation: arrowPulse 2.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.8; }
  50% { transform: translateX(8px); opacity: 1; }
}

/* ============================================
   SERVICES — 3D cards
   ============================================ */
.services { background: linear-gradient(180deg, var(--ink) 0%, var(--espresso) 100%); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.svc-card {
  position: relative;
  padding: 40px 32px;
  background: linear-gradient(145deg, rgba(62, 39, 35, 0.6) 0%, rgba(26, 15, 10, 0.8) 100%);
  border: 1px solid rgba(212, 147, 90, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s;
  transform-style: preserve-3d;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
}

.svc-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 147, 90, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.svc-card:hover {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212, 147, 90, 0.15);
  border-color: rgba(212, 147, 90, 0.4);
}

.svc-card:hover::before { opacity: 1; }

.svc-icon {
  width: 56px; height: 56px;
  color: var(--amber);
  padding: 12px;
  background: rgba(212, 147, 90, 0.08);
  border: 1px solid rgba(212, 147, 90, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  transition: all .4s var(--ease-out);
}

.svc-card:hover .svc-icon {
  transform: rotate(-5deg) scale(1.05);
  background: rgba(212, 147, 90, 0.15);
  color: var(--highlight);
}

.svc-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  font-weight: 500;
}

.svc-card p {
  font-size: 0.95rem;
  color: rgba(245, 230, 211, 0.72);
  line-height: 1.65;
  margin-bottom: 24px;
}

.svc-details {
  padding-top: 20px;
  border-top: 1px solid rgba(212, 147, 90, 0.15);
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--amber);
  letter-spacing: 0.03em;
}

.svc-details strong { color: rgba(245, 230, 211, 0.55); font-weight: 500; }

/* ============================================
   PROCESS — step flow
   ============================================ */
.process-flow {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 80px;
}

.process-line {
  position: absolute;
  left: 30px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--amber) 0%, transparent 100%);
  opacity: 0.3;
}

.process-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 4px;
  height: 0%;
  background: var(--amber);
  box-shadow: 0 0 20px var(--amber);
  transition: height 2s var(--ease-out);
}

.process-flow.in-view .process-line::before { height: 100%; }

.process-step {
  position: relative;
  padding: 0 0 48px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.process-step.in-view { opacity: 1; transform: translateX(0); }

.process-step:last-child { padding-bottom: 0; }

.step-number {
  position: absolute;
  left: -80px;
  top: -6px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--espresso);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--amber);
  box-shadow: 0 0 0 8px rgba(18, 8, 6, 1), 0 0 30px rgba(212, 147, 90, 0.4);
  z-index: 2;
}

.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.process-step p {
  color: rgba(245, 230, 211, 0.75);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ============================================
   BENEFITS — floating cards
   ============================================ */
.benefits { background: linear-gradient(180deg, var(--espresso) 0%, var(--ink) 100%); }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.benefit-card {
  position: relative;
  padding: 36px 28px;
  background: linear-gradient(145deg, rgba(93, 64, 55, 0.15) 0%, rgba(26, 15, 10, 0.4) 100%);
  border: 1px solid rgba(212, 147, 90, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(40px);
  transition: all .8s var(--ease-out), transform .6s var(--ease-out);
  overflow: hidden;
}

.benefit-card.in-view { opacity: 1; transform: translateY(0); }

.benefit-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(212, 147, 90, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}

.benefit-card:hover::before { opacity: 1; }

.benefit-card[data-float] { animation: floatMotion 8s ease-in-out infinite; }
.benefit-card[data-float="1"] { animation-delay: 0s; }
.benefit-card[data-float="2"] { animation-delay: -1.5s; }
.benefit-card[data-float="3"] { animation-delay: -3s; }
.benefit-card[data-float="4"] { animation-delay: -4.5s; }
.benefit-card[data-float="5"] { animation-delay: -6s; }
.benefit-card[data-float="6"] { animation-delay: -7.5s; }

@keyframes floatMotion {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.benefit-card.in-view { animation-play-state: running; }

.benefit-value {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.benefit-label {
  font-size: 0.95rem;
  color: rgba(245, 230, 211, 0.78);
  line-height: 1.55;
}

/* ============================================
   EXPERTISE TIMELINE
   ============================================ */
.expertise {
  position: relative;
  background: linear-gradient(180deg, var(--ink) 0%, var(--espresso) 100%);
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 40px;
  border-left: 1px solid rgba(212, 147, 90, 0.25);
}

.tl-item {
  position: relative;
  padding: 0 0 56px 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all .8s var(--ease-out);
}

.tl-item.in-view { opacity: 1; transform: translateX(0); }
.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -50px;
  top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px var(--ink), 0 0 20px var(--amber);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.tl-item h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.tl-item p {
  color: rgba(245, 230, 211, 0.75);
  line-height: 1.7;
  max-width: 640px;
}

/* ============================================
   INSIGHT SECTION
   ============================================ */
.insight-body {
  max-width: 780px;
}

.insight-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(245, 230, 211, 0.82);
  margin-bottom: 24px;
}

.insight-body a {
  color: var(--amber);
  border-bottom: 1px solid rgba(212, 147, 90, 0.4);
  transition: all .3s;
}

.insight-body a:hover {
  color: var(--highlight);
  border-bottom-color: var(--highlight);
}

/* ============================================
   FAQ — accordion
   ============================================ */
.faq { background: linear-gradient(180deg, var(--espresso) 0%, var(--ink) 100%); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(62, 39, 35, 0.3);
  border: 1px solid rgba(212, 147, 90, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .4s, background .4s;
}

.faq-item[open] {
  border-color: rgba(212, 147, 90, 0.4);
  background: rgba(62, 39, 35, 0.5);
}

.faq-item summary {
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ivory);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color .3s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--amber); }

.faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(212, 147, 90, 0.3);
  position: relative;
  transition: all .4s var(--ease-out);
}

.faq-toggle::before, .faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--amber);
  transition: transform .4s var(--ease-out);
}

.faq-toggle::before {
  width: 12px; height: 2px;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  width: 2px; height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-toggle {
  background: var(--amber);
  transform: rotate(180deg);
}

.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after {
  background: var(--ink);
}

.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-answer {
  padding: 0 28px 28px;
  color: rgba(245, 230, 211, 0.78);
  line-height: 1.7;
  font-size: 0.98rem;
  animation: fadeDown .4s var(--ease-out);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative;
  padding: clamp(100px, 15vw, 180px) 0;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212, 147, 90, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(184, 147, 90, 0.15) 0%, transparent 50%);
  animation: ctaGlow 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

.cta-inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px);
  background: linear-gradient(145deg, rgba(62, 39, 35, 0.6) 0%, rgba(26, 15, 10, 0.85) 100%);
  border: 1px solid rgba(212, 147, 90, 0.25);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  text-align: center;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(212, 147, 90, 0.08) 90deg, transparent 180deg, rgba(184, 147, 90, 0.08) 270deg, transparent 360deg);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

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

.cta-text {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto 40px;
}

.cta-text h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 16px 0 20px;
  font-weight: 400;
}

.cta-text p {
  color: rgba(245, 230, 211, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  padding: 80px 0 40px;
  background: var(--ink);
  border-top: 1px solid rgba(212, 147, 90, 0.15);
  overflow: hidden;
}

.footer-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(212, 147, 90, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: ambientShift 15s ease-in-out infinite;
}

@keyframes ambientShift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: rgba(245, 230, 211, 0.6);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 0.92rem;
  color: rgba(245, 230, 211, 0.65);
  transition: color .3s, transform .3s;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--amber);
  transform: translateX(3px);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  padding-top: 32px;
  border-top: 1px solid rgba(212, 147, 90, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(245, 230, 211, 0.5);
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(245, 230, 211, 0.5); }
.footer-legal a:hover { color: var(--amber); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-amber);
  color: var(--ink);
  border: 0;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all .4s var(--ease-out);
  box-shadow: 0 10px 30px rgba(212, 147, 90, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top svg { width: 22px; height: 22px; }

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(212, 147, 90, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro-label { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .floating-cabinets { width: 40%; opacity: 0.7; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(18, 8, 6, 0.97);
    backdrop-filter: blur(24px);
    padding: 30px;
    gap: 20px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all .4s var(--ease-out);
    border-bottom: 1px solid rgba(212, 147, 90, 0.15);
    align-items: flex-start;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { padding: 8px 0; font-size: 16px; }
  .nav-cta { margin-top: 10px; }

  .hero { padding-top: 120px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-meta .meta-item:last-child { grid-column: span 2; }
  .floating-cabinets { display: none; }
  .hero-light { width: 120%; height: 120%; }

  .morph-stage { grid-template-columns: 1fr; }
  .morph-arrow { display: none; }

  .process-flow { padding-left: 50px; }
  .step-number { left: -50px; width: 48px; height: 48px; font-size: 1rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .cta-inner { padding: 40px 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .faq-item summary { padding: 20px; font-size: 1.05rem; }
  .faq-answer { padding: 0 20px 20px; }
}

/* ============================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-text, .svc-card, .morph-panel, .benefit-card, .tl-item, .process-step {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-title span { transform: none; }
}

/* Print */
@media print {
  .nav, .back-to-top, #ambientCanvas, .reading-progress, .cta-glow, .floating-cabinets, .hero-light { display: none; }
  body { background: white; color: black; }
  h1, h2, h3 { color: black; }
  em { color: #B8733A; }
}