:root {
  --page-bg: #e8dfdf;
  --surface: #fbfaf8;
  --surface-soft: #f2edf8;
  --surface-warm: #f8eee9;
  --ink: #151313;
  --ink-soft: #2d2929;
  --ink-muted: #67605f;
  --line: #e7dfdc;
  --lavender: #8f78c8;
  --lavender-light: #ddd3f1;
  --peach: #f1a77f;
  --sage: #879d87;
  --blue-mist: #c8e6f1;
  --charcoal: #111111;
  --white: #ffffff;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 22px 60px rgba(25, 22, 20, 0.12);
  --shadow-card: 0 14px 34px rgba(25, 22, 20, 0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad: clamp(24px, 5vw, 72px);
  --content-max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 78px;
  padding: 0 max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
  border-bottom: 1px solid rgba(20, 20, 20, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link,
.nav-cta,
.btn-secondary,
.btn-primary,
.chip,
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-link {
  min-height: 32px;
  padding: 0 15px;
  border: 1px solid rgba(20, 20, 20, 0.06);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-cta,
.btn-primary {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.btn-secondary {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary:hover,
.btn-secondary:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(25, 22, 20, 0.08);
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out), top 180ms var(--ease-out);
}

.menu-toggle::before {
  top: 15px;
}

.menu-toggle span {
  top: 21px;
}

.menu-toggle::after {
  top: 27px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(25, 22, 20, 0.14);
  outline: none;
}

.menu-toggle[aria-expanded="true"]::before {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::after {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.section {
  padding: var(--space-8) max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
}

.section-tight {
  padding: var(--space-6) max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: var(--space-6);
  min-height: calc(100vh - 78px);
  margin: 0;
  padding: clamp(40px, 6vw, 86px) max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
  overflow: hidden;
  border-radius: 0;
  background: var(--surface-soft);
}

.hero.warm {
  background: var(--surface-warm);
}

.hero.blue {
  background: #e8f3f6;
}

.hero.compact {
  min-height: min(680px, calc(100vh - 78px));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: var(--space-4);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: var(--space-3);
  font-size: 24px;
  line-height: 1.1;
}

p {
  color: var(--ink-muted);
  line-height: 1.6;
}

.lead {
  max-width: 660px;
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 370px;
}

.hero-image {
  width: 100%;
  height: 430px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-ribbon {
  display: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.metric {
  padding: var(--space-4);
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
}

.metric span {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: flex-end;
  margin-bottom: var(--space-6);
}

.section-heading p {
  max-width: 470px;
  margin-bottom: 0;
}

.feature-grid,
.service-grid,
.article-grid,
.step-grid,
.value-grid {
  display: grid;
  gap: var(--space-4);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 24px;
  background: #ddd;
  color: var(--white);
  transition: transform 220ms var(--ease-out);
}

.feature-card:hover,
.portrait-card:hover,
.event-card:hover,
.service-card:hover,
.article-card:hover {
  transform: translateY(-3px);
}

.feature-card img,
.event-card img,
.portrait-card img,
.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after,
.event-card::after,
.portrait-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent);
}

.card-pill {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.card-arrow {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.card-title {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  margin: 0;
  color: var(--white);
  font-size: 24px;
  line-height: 1.06;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: start;
}

.panel {
  border-radius: 24px;
  background: var(--surface-warm);
  padding: var(--space-6);
}

.panel.lavender {
  background: var(--surface-soft);
}

.panel.sage {
  background: #edf2ea;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-grid,
.split .step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.article-card,
.step-card,
.value-card,
.notice-card {
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(25, 22, 20, 0.05);
}

.service-card,
.step-card,
.value-card,
.notice-card {
  padding: var(--space-5);
}

.service-card h3,
.article-card h3,
.step-card h3,
.value-card h3 {
  font-size: 22px;
}

.service-card ul,
.legal-copy ul,
.checklist {
  margin: var(--space-4) 0 0;
  padding-left: 18px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.chip {
  min-height: 28px;
  padding: 0 10px;
  background: var(--surface-soft);
  color: var(--lavender);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dark-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-6);
  align-items: center;
  margin: 0;
  padding: var(--space-8) max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
  border-radius: 0;
  background: var(--charcoal);
  color: var(--white);
}

.dark-band p {
  color: rgba(255, 255, 255, 0.72);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.event-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 22px;
}

.event-card .card-title {
  font-size: 22px;
}

.portrait-strip {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(150px, 0.8fr));
  gap: var(--space-3);
}

.mentor-card {
  min-height: 210px;
  padding: var(--space-5);
  border-radius: 20px;
  background: #a98d75;
  color: var(--white);
}

.mentor-card p {
  color: rgba(255, 255, 255, 0.72);
}

.portrait-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 20px;
  background: #ddd;
  color: var(--white);
  transition: transform 220ms var(--ease-out);
}

.portrait-label {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-4);
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms var(--ease-out);
}

.faq-answer p {
  max-width: 720px;
  padding-bottom: 20px;
}

.faq-item.open .faq-answer {
  max-height: 240px;
}

.faq-item.open .faq-icon {
  background: var(--ink);
  color: var(--white);
}

.testimonial {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
}

.testimonial-center {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  margin: 0 auto;
  padding-top: var(--space-8);
  text-align: center;
}

.orbit {
  position: absolute;
  inset: 38px;
  border: 18px solid var(--peach);
  border-radius: 50%;
  opacity: 0.78;
  transform: rotate(-18deg);
}

.avatar {
  position: absolute;
  z-index: 2;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 5px solid var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.one { left: 9%; top: 28%; }
.avatar.two { left: 22%; bottom: 16%; }
.avatar.three { right: 18%; top: 18%; }
.avatar.four { right: 8%; bottom: 25%; }

.quote-card {
  position: absolute;
  z-index: 3;
  right: 10%;
  bottom: 52px;
  width: min(330px, 72%);
  padding: var(--space-5);
  border-radius: 18px;
  background: #222a33;
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.quote-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.quote-card strong {
  display: block;
  margin-top: var(--space-3);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: var(--space-8) max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
  border-radius: 0;
  background: var(--surface-soft);
  text-align: center;
}

.cta-panel p {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  overflow: hidden;
}

.article-card img {
  height: 190px;
}

.article-body {
  padding: var(--space-5);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: var(--ink-muted);
  line-height: 1.5;
}

.guide-tool {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: 24px;
  background: var(--surface-warm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-field,
.form-field.full {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(143, 120, 200, 0.16);
}

.check-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
}

.check-field input {
  min-height: 20px;
  margin-top: 2px;
}

.check-field.full {
  grid-column: 1 / -1;
}

.form-message {
  display: none;
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: 16px;
  background: #edf2ea;
  color: #334633;
  font-weight: 800;
}

.form-message.show {
  display: block;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(130px, 0.5fr));
  gap: var(--space-6);
  padding: var(--space-7) max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
  border-top: 1px solid var(--line);
}

.site-footer h3 {
  font-size: 14px;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  color: var(--ink-muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: var(--space-2);
}

.fine-print {
  grid-column: 1 / -1;
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow,
.chip,
.card-pill {
  display: none !important;
}

@media (max-width: 960px) {
  .site-shell {
    width: 100%;
    margin: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0 var(--space-4);
    background: rgba(251, 250, 248, 0.94);
    backdrop-filter: blur(14px);
  }

  .menu-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: fixed;
    z-index: 25;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link,
  .nav-cta {
    min-height: 44px;
  }

  .hero,
  .hero.compact,
  .dark-band,
  .split,
  .guide-tool {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: var(--space-6);
  }

  .hero-image {
    height: 340px;
  }

  .feature-grid,
  .service-grid,
  .article-grid,
  .step-grid,
  .value-grid,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portrait-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }

  .mentor-card,
  .portrait-card {
    min-width: 220px;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    font-size: 12px;
  }

  .section,
  .section-tight {
    padding: var(--space-6) var(--space-4);
  }

  .hero,
  .dark-band,
  .cta-panel {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .hero {
    padding: var(--space-5);
  }

  h1 {
    font-size: clamp(38px, 12vw, 44px);
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-image {
    height: 280px;
  }

  .text-ribbon {
    right: -68px;
    bottom: 6px;
    width: 280px;
    height: 64px;
    font-size: 12px;
  }

  .metrics,
  .feature-grid,
  .service-grid,
  .article-grid,
  .step-grid,
  .value-grid,
  .event-grid,
  .form-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .event-card {
    min-height: 260px;
  }

  .testimonial {
    min-height: auto;
    padding-bottom: var(--space-6);
  }

  .orbit {
    display: none;
  }

  .avatar {
    position: static;
    display: inline-block;
    margin: var(--space-2);
  }

  .testimonial-center {
    padding: var(--space-6) var(--space-4) var(--space-4);
  }

  .quote-card {
    position: static;
    width: auto;
    margin: var(--space-4);
  }
}
