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

:root {
  --white: #fff;
  --black: #111;
  --text: #444;
  --muted: #999;
  --border: #e8e8e8;
  --cream: #f8f7f3;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--black); color: var(--white); }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.logo {
  font-family: var(--serif); font-weight: 900; font-style: italic;
  font-size: 24px; letter-spacing: -1px; color: var(--black); text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-right a {
  font-size: 13px; font-weight: 400; color: var(--muted);
  text-decoration: none; letter-spacing: 0.5px; transition: color 0.3s;
}
.nav-right a:hover { color: var(--black); }
.nav-cta {
  font-size: 13px !important; font-weight: 500 !important; color: var(--black) !important;
  padding: 10px 24px; border: 1px solid var(--border); border-radius: 100px; transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--black) !important; color: var(--white) !important; border-color: var(--black) !important;
}

section { position: relative; z-index: 2; }

/* BREADCRUMB */
.breadcrumb {
  position: static; z-index: auto; background: none;
  padding: 100px 48px 0; max-width: 1200px;
  font-size: 12px; letter-spacing: 0.5px; color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb span { margin: 0 8px; }

/* HERO */
.hero {
  min-height: 85vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 48px 100px; max-width: 1200px;
}
.hero-label {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 400; margin-bottom: 40px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(48px, 8vw, 110px);
  font-weight: 400; line-height: 0.95; letter-spacing: -2px; color: var(--black);
}
.hero h1 em { font-style: italic; }
.hero-body {
  margin-top: 48px; max-width: 500px; font-size: 16px;
  line-height: 1.7; color: var(--text); font-weight: 300;
}
.hero-bottom { margin-top: 64px; display: flex; align-items: center; gap: 32px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--black); color: var(--white);
  font-size: 13px; font-weight: 900; font-style: italic; letter-spacing: 0.5px;
  text-decoration: none; border-radius: 100px; transition: all 0.3s;
  border: 1px solid var(--black);
}
.hero-btn:hover { background: transparent; color: var(--black); }
.hero-btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
.hero-btn:hover svg { transform: translateX(3px); }

.divider { width: 100%; height: 1px; background: var(--border); }

/* CONTENT SECTIONS */
.content-section { padding: 140px 48px; max-width: 1200px; margin: 0 auto; }
.content-section-dark { background: var(--black); color: var(--white); padding: 140px 48px; }
.content-section-dark .content-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 400; margin-bottom: 48px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.content-section-dark .section-label { color: #555; border-bottom-color: #2a2a2a; }

.content-section h2, .content-section-dark h2 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 64px);
  font-weight: 400; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 40px;
}
.content-section h2 { color: var(--black); }
.content-section-dark h2 { color: var(--white); }
.content-section h2 em, .content-section-dark h2 em { font-style: italic; }
.content-section-dark h2 em { color: #888; }

.content-body { font-size: 17px; line-height: 1.8; color: var(--text); font-weight: 300; max-width: 640px; }
.content-body p { margin-bottom: 24px; }
.content-body p:last-child { margin-bottom: 0; }
.content-section-dark .content-body { color: #999; }

.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* PRINCIPLES */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 64px; }
.principle-card { background: #f8f8f8; padding: 48px 36px; transition: all 0.3s; }
.principle-card:hover { background: #f2f2f2; }
.principle-card h3 {
  font-family: var(--serif); font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400; letter-spacing: -0.5px; margin-bottom: 16px;
}
.principle-card p { font-size: 15px; line-height: 1.7; color: var(--text); font-weight: 300; }
.principle-number {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 400; margin-bottom: 20px; display: block;
}

/* INSIGHTS */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 64px; }
.insight-card { padding: 48px 32px; background: #161616; border-radius: 0; }
.insight-card:first-child { border-radius: 16px 0 0 16px; }
.insight-card:last-child { border-radius: 0 16px 16px 0; }
.insight-card h3 { font-size: 15px; font-weight: 900; font-style: italic; color: var(--white); margin-bottom: 12px; }
.insight-card p { font-size: 14px; line-height: 1.7; color: #666; font-weight: 300; }
.insight-number { font-family: var(--serif); font-size: 36px; font-weight: 400; color: var(--white); margin-bottom: 20px; }

/* LINKS */
.content-body a, .faq-answer a {
  color: var(--black); text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.3s;
}
.content-body a:hover, .faq-answer a:hover { color: var(--muted); }
.content-section-dark .content-body a { color: #ccc; }
.content-section-dark .content-body a:hover { color: #666; }

/* FAQ */
.faq-section { padding: 140px 48px; max-width: 900px; margin: 0 auto; }
.faq-section h2 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 64px);
  font-weight: 400; line-height: 1.08; letter-spacing: -1.5px;
  color: var(--black); margin-bottom: 64px;
}
.faq-section h2 em { font-style: italic; }
details { border-bottom: 1px solid var(--border); padding: 28px 0; }
summary {
  font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); font-weight: 400;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 24px; font-weight: 300; color: var(--muted);
  transition: transform 0.3s; flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding-top: 20px; font-size: 16px; line-height: 1.8; color: var(--text); font-weight: 300; max-width: 640px; }

/* CTA */
.cta-section { padding: 200px 48px; text-align: center; }
.cta-section h2 {
  font-family: var(--serif); font-size: clamp(44px, 8vw, 110px);
  font-weight: 400; line-height: 0.95; letter-spacing: -2px;
  color: var(--black); max-width: 900px; margin: 0 auto;
}
.cta-section h2 em { font-style: italic; }
.cta-section p {
  margin-top: 32px; font-size: 17px; color: var(--text); font-weight: 300;
  line-height: 1.7; max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-section .hero-btn { margin-top: 48px; }

/* FOOTER */
footer { padding: 64px 48px 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-family: var(--serif); font-weight: 900; font-style: italic; font-size: 24px; letter-spacing: -1px; margin-bottom: 12px; }
.footer-brand-sub { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 900; font-style: italic; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 13px; color: var(--text); text-decoration: none;
  font-weight: 300; line-height: 2; transition: color 0.3s;
}
.footer-col a:hover { color: var(--black); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 16px;
}
.footer-left { font-size: 13px; color: var(--muted); font-weight: 300; }
.footer-right a { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 300; transition: color 0.3s; }
.footer-right a:hover { color: var(--black); }

/* ANIMATIONS */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* INTERACTIVE MODULES */
.interactive-section {
  max-width: 1200px; margin: 0 auto; padding: 120px 48px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.interactive-label {
  display: inline-block; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 24px; font-weight: 400;
}
.interactive-title {
  font-family: 'Instrument Serif', serif; font-size: clamp(32px, 4vw, 48px);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px;
}
.interactive-title em { font-style: italic; }
.interactive-sub {
  font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 48px; max-width: 640px;
}

/* COST CALCULATOR */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch;
  background: var(--cream); border: 1px solid var(--border); border-radius: 20px; padding: 48px;
}
.calc-controls label {
  display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.calc-field { margin-bottom: 32px; }
.calc-field input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 4px;
  background: var(--border); border-radius: 2px; outline: none;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  background: var(--black); border-radius: 50%; cursor: pointer;
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; background: var(--black); border-radius: 50%;
  cursor: pointer; border: none;
}
.calc-value {
  font-family: 'Instrument Serif', serif; font-size: 36px; font-weight: 400;
  margin-top: 8px; color: var(--black);
}
.calc-value em { font-style: italic; color: var(--muted); font-size: 14px; font-family: 'Inter', sans-serif; margin-left: 8px; }
.calc-output {
  background: var(--black); color: var(--cream); border-radius: 16px; padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.calc-output-row { margin-bottom: 24px; }
.calc-output-row:last-child { margin-bottom: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); }
.calc-output-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 8px;
}
.calc-output-value {
  font-family: 'Instrument Serif', serif; font-size: 48px; font-weight: 400;
  line-height: 1; letter-spacing: -0.02em;
}
.calc-output-value.saving { color: #a8f0a8; }
.calc-output-note { font-size: 12px; opacity: 0.6; margin-top: 8px; }

/* IMAGE GALLERY */
.gallery-wrap { max-width: 1400px; margin: 0 auto; padding: 80px 48px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
  position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 12px;
  cursor: pointer; background: var(--cream);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white;
  font-size: 12px; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* VIDEO BLOCK */
.video-block {
  max-width: 1200px; margin: 0 auto; padding: 80px 48px;
}
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: 20px;
  overflow: hidden; background: var(--black);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-caption {
  text-align: center; font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 24px;
}

/* BEFORE/AFTER SLIDER */
.ba-wrap { max-width: 1000px; margin: 0 auto; padding: 80px 48px; }
.ba-slider {
  position: relative; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden;
  user-select: none; background: var(--cream);
  border: 1px solid var(--border);
}
.ba-side {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 6vw, 80px); line-height: 1; text-align: center; padding: 40px;
}
.ba-before, .ba-after { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 24px; }
.ba-before { background-color: var(--cream); color: var(--muted); }
.ba-before em { display: block; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'Inter', sans-serif; margin-top: 16px; font-style: normal; }
.ba-after { background-color: var(--black); color: var(--cream); clip-path: inset(0 0 0 50%); }
.ba-after em { display: block; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'Inter', sans-serif; margin-top: 16px; font-style: normal; color: #a8f0a8; }
.ba-tag { display: inline-block; padding: 8px 14px; background: rgba(0,0,0,0.7); color: white; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-family: 'Inter', sans-serif; border-radius: 4px; }
.ba-after .ba-tag { background: rgba(168,240,168,0.95); color: #0a3a0a; }
.ba-caption { text-align: center; margin-top: 24px; color: var(--muted); font-size: 15px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: white; cursor: ew-resize; z-index: 2;
}
.ba-handle::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  background: white; border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.ba-handle::after {
  content: '‹›'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); font-size: 18px; color: var(--black);
  letter-spacing: -2px; font-weight: 600;
}

/* TIMELINE */
.timeline-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 0; }
.timeline-track {
  position: relative; padding: 40px 0; margin: 32px 0;
}
.timeline-track::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 2px; background: var(--border);
}
.timeline-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  position: relative; z-index: 2;
}
.timeline-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.timeline-dot {
  width: 40px; height: 40px; background: white; border: 2px solid var(--black);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif; font-size: 16px; margin: 0 auto 16px;
  transition: all 0.3s; cursor: pointer; padding: 0; color: var(--black);
}
.timeline-dot:hover { transform: scale(1.1); }
.timeline-step.active .timeline-dot,
.timeline-dot.active { background: var(--black); color: white; }
.timeline-detail h3 {
  font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; margin: 12px 0;
}
.timeline-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.timeline-time { font-family: 'Instrument Serif', serif; font-size: 20px; font-weight: 400; }
.timeline-detail {
  margin-top: 40px; padding: 40px; background: var(--cream); border-radius: 16px;
  min-height: 120px;
}
.timeline-detail h4 {
  font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; margin-bottom: 12px;
}
.timeline-detail p { font-size: 15px; line-height: 1.7; color: var(--text); }

/* CHECKLIST TOOL */
.checklist {
  max-width: 800px; margin: 0 auto; background: var(--cream);
  border: 1px solid var(--border); border-radius: 20px; padding: 48px;
}
.checklist-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-box {
  flex-shrink: 0; width: 24px; height: 24px; border: 2px solid var(--black);
  border-radius: 6px; margin-top: 2px; display: flex; align-items: center;
  justify-content: center; transition: all 0.2s; background: white;
}
.checklist-item.checked .checklist-box {
  background: var(--black); color: white;
}
.checklist-item.checked .checklist-box::after { content: '✓'; font-size: 14px; }
.checklist-text h4 {
  font-family: 'Instrument Serif', serif; font-size: 20px; font-weight: 400; margin-bottom: 4px;
}
.checklist-text p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.checklist-score {
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.checklist-score-label { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.checklist-score-value { font-family: 'Instrument Serif', serif; font-size: 48px; }

/* FUNNEL VISUALIZER */
.funnel-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 0; }
.funnel-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 32px;
}
.funnel-stage {
  padding: 24px 16px; border: 1px solid var(--border); border-radius: 12px;
  text-align: center; cursor: pointer; transition: all 0.3s; background: white;
  font-family: inherit; color: inherit;
}
.funnel-stage:hover { transform: translateY(-2px); }
.funnel-stage.active { background: var(--black); color: white; border-color: var(--black); }
.funnel-stage-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.funnel-stage.active .funnel-stage-label { color: rgba(255,255,255,0.6); }
.funnel-stage-count { font-family: 'Instrument Serif', serif; font-size: 32px; line-height: 1; }
.funnel-detail {
  padding: 40px; background: var(--cream); border-radius: 16px; min-height: 160px;
}
.funnel-detail h4 { font-family: 'Instrument Serif', serif; font-size: 24px; margin-bottom: 12px; font-weight: 400; }
.funnel-detail p { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.funnel-detail .asset-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.funnel-detail .asset-tag { font-size: 12px; padding: 6px 12px; background: white; border: 1px solid var(--border); border-radius: 100px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-right a:not(.nav-cta) { display: none; }
  .breadcrumb { padding: 90px 24px 0; }
  .hero { padding: 80px 24px 80px; min-height: auto; }
  .content-section, .content-section-dark { padding: 80px 24px; }
  .content-split { grid-template-columns: 1fr; gap: 40px; }
  .principles-grid, .insights-grid { grid-template-columns: 1fr; }
  .insight-card { border-radius: 0 !important; }
  .insight-card:first-child { border-radius: 16px 16px 0 0 !important; }
  .insight-card:last-child { border-radius: 0 0 16px 16px !important; }
  .faq-section { padding: 80px 24px; }
  .cta-section { padding: 120px 24px; }
  footer { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .interactive-section { padding: 80px 24px; }
  .calc-wrap { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .calc-output { padding: 32px; }
  .calc-output-value { font-size: 36px; }
  .gallery-wrap { padding: 40px 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .video-block { padding: 40px 16px; }
  .ba-wrap { padding: 40px 16px; }
  .timeline-steps { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .timeline-label { font-size: 9px; }
  .timeline-time { font-size: 14px; }
  .timeline-dot { width: 32px; height: 32px; font-size: 13px; }
  .timeline-detail { padding: 24px; }
  .checklist { padding: 32px 24px; }
  .checklist-text h4 { font-size: 17px; }
  .funnel-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .funnel-stage { padding: 16px 8px; }
  .funnel-stage-count { font-size: 22px; }
  .funnel-stage-label { font-size: 9px; }
  .funnel-detail { padding: 24px; }
}
