:root {
  --cream: #f6f1e8;
  --cream-2: #efe8db;
  --ink: #23271f;
  --ink-soft: #4b5147;
  --terracotta: #c1673f;
  --terracotta-deep: #a2502e;
  --sage: #7c9082;
  --line: #ddd5c4;
  --white: #fffdf9;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.concept-tag {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 999;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: .03em;
  padding: 7px 12px;
  border-radius: 100px;
  opacity: .85;
  font-family: var(--sans);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,241,232,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo .mark svg { width: 16px; height: 16px; }
.nav { display: flex; gap: 34px; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--ink-soft); transition: color .2s; position: relative; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--terracotta); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-size: 14px; font-weight: 600; color: var(--ink-soft); display: none; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: none; background: transparent;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 100px; font-size: 14.5px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: var(--sans);
}
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }

/* ---- Hero / network canvas ---- */
.hero { position: relative; overflow: hidden; }
.hero-pin {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
html.has-network-hero .hero { height: 240vh; overflow: visible; }
html.has-network-hero .hero-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.network-nodes-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, var(--cream) 0%, var(--cream) 30%, rgba(246,241,232,.55) 46%, rgba(246,241,232,0) 62%);
}

.hero-copy {
  position: absolute; z-index: 2;
  top: 15%; left: 6%;
  max-width: 480px;
  pointer-events: none;
}
.hero-copy .hero-actions { pointer-events: auto; }

.hero-caption-big {
  position: absolute; z-index: 2;
  left: 50%; bottom: 9%; transform: translateX(-50%);
  width: 90%; max-width: 780px;
  text-align: center;
  pointer-events: none;
}
.cap-line {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 3.6vw, 46px);
  letter-spacing: -.01em; line-height: 1.15; color: var(--ink);
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.cap-line.is-visible { opacity: 1; transform: translateY(0); }

.network-node {
  position: absolute; top: 0; left: 0;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  pointer-events: none; z-index: 2; will-change: transform;
}
.node-dot {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--terracotta);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(35,39,31,.22);
  transition: box-shadow .4s ease;
}
.network-node.sage .node-dot { border-color: var(--sage); }
.network-node.is-locked .node-dot { box-shadow: 0 0 0 7px rgba(193,103,63,.12), 0 10px 24px -8px rgba(35,39,31,.22); }
.network-node.sage.is-locked .node-dot { box-shadow: 0 0 0 7px rgba(124,144,130,.14), 0 10px 24px -8px rgba(35,39,31,.22); }
.node-dot svg { width: 26px; height: 26px; }
.node-label {
  font-size: 12px; font-weight: 600; background: var(--white);
  padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--ink-soft); white-space: nowrap; opacity: 0; transition: opacity .3s ease;
}
.node-label.is-visible { opacity: 1; }
.hero-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--terracotta-deep); margin-bottom: 18px;
}
.hero-copy h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.06; letter-spacing: -.01em; margin-bottom: 20px;
}
.hero-copy p { font-size: 17px; color: var(--ink-soft); max-width: 460px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; pointer-events: auto; }
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.scroll-hint .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---- generic sections ---- */
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--terracotta-deep); margin-bottom: 14px;
}
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.01em; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 16.5px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* specialty grid */
.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specialty-card { background: var(--white); padding: 34px 28px; }
.specialty-icon { width: 42px; height: 42px; margin-bottom: 20px; color: var(--terracotta); }
.specialty-icon svg { width: 100%; height: 100%; }
.specialty-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.specialty-card p { color: var(--ink-soft); font-size: 14.5px; }

/* trust stats band */
.stats-band { background: var(--ink); color: var(--cream); padding: 60px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 500; color: var(--terracotta); }
.stat span { font-size: 13px; color: #cfc9ba; letter-spacing: .02em; }

/* team grid */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.team-photo { aspect-ratio: 4/5; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 20px 22px 24px; }
.team-info h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--terracotta-deep); font-weight: 600; margin-bottom: 10px; }
.team-info p { font-size: 14px; color: var(--ink-soft); }

/* two column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-text .kicker { margin-bottom: 14px; }
.split-text h2 { font-family: var(--serif); font-size: clamp(26px,3vw,36px); font-weight: 500; margin-bottom: 16px; letter-spacing: -.01em; }
.split-text p { color: var(--ink-soft); margin-bottom: 16px; }
.check-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.check-list li::before { content: "✓"; color: var(--sage); font-weight: 700; }

/* fee table */
.fee-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.fee-table th, .fee-table td { text-align: left; padding: 16px 22px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.fee-table th { background: var(--cream-2); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: 12px; }
.fee-table tr:last-child td { border-bottom: none; }
.fee-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }

/* location cards */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.location-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.location-card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; }
.location-line { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 6px; }

/* CTA band */
.cta-band {
  background: var(--terracotta); color: var(--white);
  border-radius: 22px; padding: 60px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(24px,3vw,32px); font-weight: 500; max-width: 480px; }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--terracotta-deep); }

/* contact page */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line);
  font-family: var(--sans); font-size: 14.5px; background: var(--white); color: var(--ink);
}
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 13.5px; color: var(--sage); font-weight: 600; }
.contact-side h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 14px; }
.contact-side .location-card { margin-bottom: 18px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); max-width: 260px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; color: var(--ink-soft); }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; margin-bottom: 10px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 10px; }

/* page header (inner pages) */
.page-header { padding: 150px 0 60px; }
.page-header .kicker { margin-bottom: 16px; }
.page-header h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px,4.4vw,52px); letter-spacing: -.01em; margin-bottom: 18px; max-width: 700px; }
.page-header p { color: var(--ink-soft); font-size: 16.5px; max-width: 560px; }

/* specialists detail list */
.specialist-rows { display: flex; flex-direction: column; }
.specialist-row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); align-items: center; }
.specialist-row:last-child { border-bottom: 1px solid var(--line); }
.specialist-num { font-family: var(--serif); font-size: 28px; color: var(--line); font-weight: 500; }
.specialist-row h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 10px; }
.specialist-row p { color: var(--ink-soft); font-size: 14.5px; }
.specialist-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.specialist-tags span { font-size: 12px; padding: 6px 12px; border-radius: 100px; background: var(--cream-2); color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero-copy { top: 10%; left: 6%; right: 6%; max-width: none; }
  .hero-scrim { background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 40%, rgba(246,241,232,.6) 58%, rgba(246,241,232,0) 74%); }
  .hero-caption-big { bottom: 6%; width: 92%; }
  .cap-line { font-size: clamp(20px, 5vw, 30px); }
  .node-dot { width: 44px; height: 44px; }
  .node-dot svg { width: 20px; height: 20px; }
  .node-label { font-size: 10.5px; padding: 4px 9px; }
  html.has-network-hero .hero { height: 175vh; }
  .nav {
    display: none; position: fixed; top: 73px; left: 0; right: 0; bottom: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 10px 32px 40px; z-index: 99; overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.is-active span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.is-active span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .specialty-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 30px; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .specialist-row { grid-template-columns: 50px 1fr; }
  .specialist-row .split-photo { display: none; }
}
@media (max-width: 620px) {
  .specialty-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .cap-line { font-size: clamp(18px, 5.6vw, 24px); }
}
