:root {
  --bg: #f6f1eb;
  --text: #2a211b;
  --muted: #4f4037;
  --line: rgba(42, 33, 27, 0.16);
  --card: #ffffff;
  --surface-1: #fffdfa;
  --surface-2: #fbf4ec;
  --surface-3: #f5eadf;
  --bg-glow-1: #f1e4d5;
  --bg-glow-2: #edd7c2;
  --accent: #8a4f2b;
  --accent-2: #d39056;
  --button-text: #ffffff;
  --shadow: 0 10px 26px rgba(20, 16, 11, 0.08);
  --radius: 18px;
}

html[data-theme="dark"] {
  --bg: #080b10;
  --text: #f4f8ff;
  --muted: #c3cfdf;
  --line: rgba(244, 248, 255, 0.2);
  --card: rgba(14, 19, 27, 0.96);
  --surface-1: rgba(16, 22, 31, 0.92);
  --surface-2: rgba(13, 19, 28, 0.9);
  --surface-3: rgba(10, 16, 24, 0.88);
  --bg-glow-1: #102131;
  --bg-glow-2: #11253a;
  --accent: #27a9c2;
  --accent-2: #e2b76f;
  --button-text: #05131d;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .concept-trust {
  --bg: #120d09;
  --text: #fff2e5;
  --muted: #ddc3af;
  --line: rgba(255, 242, 229, 0.2);
  --card: rgba(30, 21, 16, 0.96);
  --surface-1: rgba(32, 23, 17, 0.93);
  --surface-2: rgba(28, 20, 15, 0.91);
  --surface-3: rgba(24, 17, 13, 0.89);
  --bg-glow-1: #38261a;
  --bg-glow-2: #4a3122;
  --accent: #e2a074;
  --accent-2: #ffc58f;
  --button-text: #1c1008;
}

html[data-theme="dark"] .concept-modern {
  --bg: #120d09;
  --text: #fff2e5;
  --muted: #ddc3af;
  --line: rgba(255, 242, 229, 0.2);
  --card: rgba(30, 21, 16, 0.96);
  --surface-1: rgba(32, 23, 17, 0.93);
  --surface-2: rgba(28, 20, 15, 0.91);
  --surface-3: rgba(24, 17, 13, 0.89);
  --bg-glow-1: #38261a;
  --bg-glow-2: #4a3122;
  --accent: #e2a074;
  --accent-2: #ffc58f;
  --button-text: #1c1008;
}

html[data-theme="dark"] .concept-neighborhood {
  --bg: #120d09;
  --text: #fff2e5;
  --muted: #ddc3af;
  --line: rgba(255, 242, 229, 0.2);
  --card: rgba(30, 21, 16, 0.96);
  --surface-1: rgba(32, 23, 17, 0.93);
  --surface-2: rgba(28, 20, 15, 0.91);
  --surface-3: rgba(24, 17, 13, 0.89);
  --bg-glow-1: #38261a;
  --bg-glow-2: #4a3122;
  --accent: #e2a074;
  --accent-2: #ffc58f;
  --button-text: #1c1008;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, var(--bg-glow-1), transparent 40%),
              radial-gradient(circle at 90% 5%, var(--bg-glow-2), transparent 35%),
              var(--bg);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-2) 70%, white 30%);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -42px;
  z-index: 120;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  top: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}
a.button,
.button,
a.button:visited,
a.button:hover,
a.button:active {
  color: var(--button-text);
}
.button.alt {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
a.button.alt,
a.button.alt:visited,
a.button.alt:hover,
a.button.alt:active {
  color: var(--text);
}
.button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.button:active { transform: translateY(0); }

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

.site-shell {
  width: min(1150px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-left: auto;
}
.topbar a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.42rem 0.58rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
}
.topbar a.button {
  color: var(--button-text);
}
.topbar a.button.alt {
  color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .topbar nav a:not(.button):hover,
  .topbar nav a:not(.button):focus-visible {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    outline: none;
  }
}
.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-wrap {
  display: grid;
  gap: 0.08rem;
}
.brand-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.build-version {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-1);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: clamp(1.2rem, 2vw, 2rem);
}
.hero-copy h1 {
  margin: 0.3rem 0 0.8rem;
  line-height: 1.08;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.hero-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 55ch;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: #ffffff;
  color: #5b331d;
  font-size: 0.79rem;
  font-weight: 700;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-side {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.hero-side .card {
  background: var(--surface-1);
}
.hero-side .card p,
.hero-side .card li {
  color: var(--text);
}
.resource-links {
  margin-top: 0.75rem;
}
.resource-links .button {
  font-size: 0.85rem;
}
.profile-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
}
.profile-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.profile-shot figcaption {
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.whoami-row {
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
}
.whoami-row > .whoami-photo {
  grid-column: 1;
}
.whoami-row > .whoami-copy {
  grid-column: 2;
}
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }
.section {
  padding: 1.1rem;
}
.section h2, .section h3 {
  margin-top: 0;
}
.cards {
  display: grid;
  gap: 0.7rem;
}
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: var(--surface-2);
}
.card h3 { margin-bottom: 0.3rem; }
.card p, .card li { color: var(--muted); }
.card li { color: var(--text); }

.book-call-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 1rem;
  align-items: stretch;
}
.calendar-embed {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: var(--surface-2);
  min-height: 420px;
}
.booking-form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}
.booking-row {
  display: grid;
  gap: 0.35rem;
}
.booking-row label {
  font-weight: 700;
  color: var(--text);
}
.booking-row input,
.booking-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text);
  padding: 0.65rem 0.7rem;
  font: inherit;
}
.booking-row input:focus-visible,
.booking-row select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.book-call-note {
  margin-top: 0.7rem;
}
.quote {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0;
}

.theme-toggle {
  position: static;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.52rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle .toggle-label {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1;
  min-width: 1.9rem;
  text-align: center;
}

.theme-toggle .toggle-track {
  width: 2.65rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-3);
  position: relative;
  transition: background 180ms ease;
}

.theme-toggle .toggle-thumb {
  position: absolute;
  top: 0.1rem;
  left: 0.13rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle[aria-pressed="true"] .toggle-track {
  background: color-mix(in srgb, var(--accent) 70%, var(--surface-2) 30%);
}

.theme-toggle[aria-pressed="true"] .toggle-thumb {
  transform: translateX(1.15rem);
  background: color-mix(in srgb, var(--button-text) 25%, #ffffff 75%);
}

.theme-toggle[aria-pressed="true"] .toggle-label-dark,
.theme-toggle[aria-pressed="false"] .toggle-label-light {
  color: var(--text);
}

.draft-banner {
  width: min(1150px, calc(100% - 1.5rem));
  margin: 0.9rem auto 0.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-1) 84%);
  box-shadow: var(--shadow);
}

.draft-banner strong {
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
}

.draft-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.concept-neighborhood {
  --bg: #f6f1eb;
  --text: #2a211b;
  --muted: #4f4037;
  --line: rgba(42, 33, 27, 0.16);
  --card: #ffffff;
  --surface-1: #fffdfa;
  --surface-2: #fbf4ec;
  --surface-3: #f5eadf;
  --accent: #8a4f2b;
  --accent-2: #d39056;
  --button-text: #ffffff;
}

@media (max-width: 950px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .section-grid > * {
    grid-column: span 12 !important;
  }
  .whoami-row {
    grid-template-columns: 1fr;
  }
  .section-grid.whoami-row > .whoami-photo,
  .section-grid.whoami-row > .whoami-copy {
    grid-column: 1 !important;
  }
  .cards.cols-3,
  .book-call-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar nav {
    margin-left: 0;
  }
  .build-version {
    margin-left: 0;
    margin-top: 0.35rem;
  }
}
