/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #FAF7F2;
  --cream:       #F5F0E8;
  --sage-light:  #ECEEE8;
  --sage-border: #C4CAB8;
  --terracotta:  #8B5E3C;
  --terra-light: #C4956A;
  --charcoal:    #2C2416;
  --sage:        #5C6B4E;
  --border:      #D4C9B5;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navigation ── */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--charcoal);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-avail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  opacity: 0.55;
}

.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); }

/* ── Footer ── */
#site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-top: 0.5px solid var(--border);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  opacity: 0.7;
}

.footer-wordmark { font-weight: 500; letter-spacing: 0.15em; }

/* ── Shared Utilities ── */
.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.label--sage { color: var(--sage); }
.label--white { color: rgba(255,255,255,0.6); }

.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 0.5px solid var(--terra-light);
  padding: 4px 10px;
  line-height: 1;
}

.tag--dark {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}

.tag--pop {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.82; }

.btn--dark {
  background: var(--charcoal);
  color: var(--cream);
}

.btn--terra {
  background: var(--terracotta);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border: 0.5px solid var(--charcoal);
}

section { padding: 64px 48px; }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* ── HOME PAGE ── */

/* Hero */
.hero {
  background: var(--cream);
  border-bottom: 0.5px solid var(--border);
  padding: 72px 48px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-inner {
  max-width: 780px;
}

.hero-logo {
  margin-bottom: 40px;
}

.hero-tag {
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.hero-headline em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-subhead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 540px;
  margin-bottom: 32px;
  opacity: 0.85;
}

/* What We Do */
.what-we-do {
  background: var(--sage-light);
  border-bottom: 0.5px solid var(--sage-border);
}

.wwd-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
}

.wwd-left {
  padding-top: 4px;
}

.wwd-bar {
  width: 1px;
  height: 44px;
  background: var(--sage);
  margin-bottom: 18px;
  opacity: 0.5;
}

.wwd-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.wwd-headline {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 28px;
  color: var(--charcoal);
}

.wwd-body {
  font-size: 17px;
  line-height: 1.72;
  color: var(--charcoal);
  opacity: 0.78;
  max-width: 620px;
}

/* Services Grid */
.services-grid-section { border-bottom: 0.5px solid var(--border); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 0.5px solid var(--border);
  margin-top: 36px;
}

.service-card {
  padding: 32px 28px;
  border-right: 0.5px solid var(--border);
}

.service-card:last-child { border-right: none; }

.service-number {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 20px;
  display: block;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.service-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--charcoal);
  opacity: 0.72;
}

/* Stats */
.stats-section {
  background: var(--cream);
  border-bottom: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.stats-section > * { position: relative; z-index: 1; }

.stats-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 28px;
}

.stat-item {
  padding: 16px 0 40px;
  border-top: 2px solid var(--sage);
  padding-right: 40px;
}

.stat-item:not(:first-child) { padding-left: 40px; border-left: 0.5px solid var(--border); }

.stat-number-huge {
  font-family: var(--font-serif);
  font-size: 108px;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--charcoal);
  opacity: 0.65;
  max-width: 220px;
}

.stats-note {
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: italic;
  color: var(--charcoal);
  opacity: 0.45;
}

/* How it works */
.how-it-works { border-bottom: 0.5px solid var(--border); }

.hiw-list {
  margin-top: 48px;
}

.hiw-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 36px 0;
  border-top: 0.5px solid var(--border);
}

.hiw-row:last-child { border-bottom: 0.5px solid var(--border); }

.hiw-num-sage {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  font-style: italic;
  color: var(--sage);
  line-height: 1;
  opacity: 0.7;
}

.hiw-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  padding-top: 8px;
}

.hiw-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  opacity: 0.7;
  padding-top: 8px;
}

/* Testimonials */
.testimonials-section {
  background: var(--sage-light);
  border-bottom: 0.5px solid var(--sage-border);
  border-top: 0.5px solid var(--sage-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.testimonial {
  position: relative;
}

.quote-glyph {
  font-family: var(--font-serif);
  font-size: 80px;
  line-height: 1;
  color: var(--sage);
  opacity: 0.35;
  display: block;
  margin-bottom: -16px;
  font-style: normal;
}

.testimonial-quote-large {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 28px;
}

.testimonial-context {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}

.testimonial-attr {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--charcoal);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* FAQ */
.faq-section { border-top: 0.5px solid var(--border); }

.faq-list {
  margin-top: 36px;
}

.faq-item {
  border-bottom: 0.5px solid var(--border);
  padding: 28px 0;
}

.faq-item:first-child { border-top: 0.5px solid var(--border); }

.faq-q {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.3;
}

.faq-a {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  opacity: 0.72;
  max-width: 680px;
}

/* Closing CTA */
.closing-cta {
  background: var(--charcoal);
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.closing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.closing-cta::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 480px;
  height: 480px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 38 Q20 4 36 38' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M9 38 Q20 12 31 38' fill='none' stroke='white' stroke-width='1.2' stroke-linecap='round' opacity='0.65'/%3E%3Cpath d='M14 38 Q20 22 26 38' fill='none' stroke='%235C6B4E' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.closing-cta > * { position: relative; z-index: 1; }

.cta-inner { max-width: 640px; }

.cta-headline {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-subhead {
  font-size: 16px;
  color: rgba(245, 240, 232, 0.65);
  margin-bottom: 44px;
  line-height: 1.6;
  max-width: 460px;
}

/* ── WORK PAGE ── */
.page-hero {
  padding: 52px 48px 44px;
  border-bottom: 0.5px solid var(--border);
}

.page-hero .section-inner,
.contact-hero .section-inner {
  max-width: none;
  margin: 0;
}

.page-headline {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.page-subhead {
  font-size: 16px;
  color: var(--charcoal);
  opacity: 0.65;
}

.case-study {
  padding: 56px 48px;
  border-bottom: 0.5px solid var(--border);
}

.case-inner { max-width: 860px; }

.case-tag { margin-bottom: 20px; }

.case-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 36px;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.case-col-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.case-col-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  opacity: 0.82;
}

.case-result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}

.case-takeaway {
  border-top: 0.5px solid var(--border);
  padding-top: 28px;
}

.case-takeaway-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.case-takeaway-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
  max-width: 640px;
}

/* ── SERVICES PAGE ── */
.service-full {
  padding: 52px 48px;
  border-bottom: 0.5px solid var(--border);
}

.service-full-inner { max-width: 960px; }

.service-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
}

.service-header-left { flex: 1; }

.service-full-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 12px 0 8px;
  line-height: 1.1;
}

.service-price {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  opacity: 0.6;
}

.service-full-desc {
  font-size: 16px;
  line-height: 1.72;
  color: var(--charcoal);
  opacity: 0.82;
  max-width: 660px;
  margin-bottom: 32px;
}

.service-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}

.service-list-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  font-size: 14px;
  color: var(--charcoal);
  opacity: 0.78;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--terra-light);
  font-size: 12px;
}

.service-footer-note {
  font-size: 13px;
  color: var(--charcoal);
  opacity: 0.5;
  font-style: italic;
  padding-top: 20px;
  border-top: 0.5px solid var(--border);
}

/* ── ABOUT PAGE ── */
.about-main {
  padding: 56px 48px;
  border-bottom: 0.5px solid var(--border);
}

.about-inner {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}

.about-headline {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 24px;
  line-height: 1.15;
}

.about-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal);
  opacity: 0.82;
}

.about-detail {
  font-size: 14px;
  line-height: 1.65;
  color: var(--charcoal);
  opacity: 0.72;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 0.5px solid var(--border);
}

.about-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.founder-section {
  padding: 56px 48px;
}

.founder-inner {
  max-width: 860px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: start;
}

.founder-headshot {
  width: 200px;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}

.founder-headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.founder-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.founder-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.founder-bio {
  font-size: 15px;
  line-height: 1.72;
  color: var(--charcoal);
  opacity: 0.8;
}

/* ── CONTACT PAGE ── */
.contact-hero {
  padding: 52px 48px 44px;
  border-bottom: 0.5px solid var(--border);
}

.contact-headline {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.contact-subhead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  opacity: 0.65;
  max-width: 520px;
}

.contact-main {
  padding: 56px 48px;
}

.contact-inner {
  max-width: 580px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full { margin-bottom: 20px; }

.form-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.6;
}

.form-field input,
.form-field textarea {
  background: var(--cream);
  border: 0.5px solid var(--border);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s;
  resize: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--terra-light);
}

.form-field textarea { min-height: 140px; }

.form-submit { margin-top: 32px; }

.contact-info {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border);
}

.contact-info-line {
  font-size: 14px;
  color: var(--charcoal);
  opacity: 0.6;
  margin-bottom: 8px;
}

.contact-info-line a { opacity: 1; color: var(--terracotta); }

/* ── Responsive ── */
@media (max-width: 860px) {
  #site-nav { padding: 0 24px; }
  section, .hero, .page-hero, .case-study, .service-full,
  .about-main, .founder-section, .contact-hero, .contact-main,
  .closing-cta { padding-left: 24px; padding-right: 24px; }
  #site-footer { padding: 24px; flex-direction: column; gap: 8px; text-align: center; }

  .hero-headline { font-size: 38px; }
  .services-grid, .stats-grid { grid-template-columns: 1fr; }
  .service-card, .stat-item { border-right: none; border-bottom: 0.5px solid var(--border); }
  .service-card:last-child, .stat-item:last-child { border-bottom: none; }
  .case-body, .case-result-row, .service-details, .about-inner, .testimonials-grid { grid-template-columns: 1fr; gap: 28px; }
  .hiw-grid { grid-template-columns: 1fr; }
  .hiw-step { border-right: none; border-bottom: 0.5px solid var(--border); }
  .hiw-step:last-child { border-bottom: none; }
  .testimonial { border-right: none; border-bottom: 0.5px solid var(--border); }
  .testimonial:last-child { border-bottom: none; }
  .nav-avail { display: none; }
  .service-header { flex-direction: column; }
  .founder-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Page transitions ── */
#app { min-height: calc(100vh - 60px - 73px); }

.page-enter {
  animation: fadeIn 0.2s ease;
}

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

/* ── Scroll fade-ins ── */
.fade-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-target.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children inside grids */
.services-grid .service-card.fade-target:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card.fade-target:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .stat-item.fade-target:nth-child(2)       { transition-delay: 0.1s; }
.stats-grid .stat-item.fade-target:nth-child(3)       { transition-delay: 0.2s; }
.hiw-grid .hiw-step.fade-target:nth-child(2)          { transition-delay: 0.1s; }
.hiw-grid .hiw-step.fade-target:nth-child(3)          { transition-delay: 0.2s; }
.testimonials-grid .testimonial.fade-target:nth-child(2) { transition-delay: 0.12s; }

/* ── Form success state ── */
.form-success {
  padding: 32px;
  background: var(--cream);
  border: 0.5px solid var(--border);
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--charcoal);
  line-height: 1.5;
}
