/* The homepage uses a warmer editorial language for families; inner pages keep their own system. */
.home-page {
  color-scheme: light;
  --bg: #f8f6f1;
  --bg-deep: #f1eee7;
  --surface: #fffdfa;
  --surface-strong: #e7eef1;
  --surface-soft: #f1f3f1;
  --text: #192a35;
  --text-soft: #344b58;
  --muted: #536875;
  --quiet: #677b86;
  --accent: #245b7d;
  --accent-strong: #194d71;
  --accent-ink: #fff;
  --line: rgba(30, 61, 74, .15);
  --line-strong: rgba(30, 61, 74, .3);
  --radius: 4px;
  --radius-media: 4px;
  background: var(--bg);
  color: var(--text);
}

.home-page .site-nav {
  background: rgba(248, 246, 241, .93);
  border-color: var(--line);
}

.home-page .wordmark { min-width: 225px; }
.home-page .wordmark__monogram,
.home-page .theme-toggle { display: none; }
.home-page .wordmark__text { flex-direction: row; align-items: baseline; gap: 12px; }
.home-page .wordmark__text b {
  font-family: Georgia, "Times New Roman", var(--font-serif);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.035em;
}
.home-page .wordmark__text small {
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: .03em;
}
.home-page .site-nav__links { justify-content: flex-end; gap: clamp(13px, 1.7vw, 28px); }
.home-page .site-nav__links a { color: var(--text-soft); }
.home-page .nav-contact {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.home-page .home-hero {
  display: block;
  min-height: min(760px, calc(100dvh - var(--nav-height)));
  overflow: hidden;
  background: #faf9f5;
  color: var(--text);
}
.home-page .home-hero::after { display: none; }
.home-page .home-hero__media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  width: auto;
  height: auto;
  background: #e9e9e1;
}
.home-page .home-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: 49% center;
  filter: none;
  transform: none;
}
.home-page .home-hero__media::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 17%;
  background: linear-gradient(90deg, #faf9f5, transparent);
  content: "";
  pointer-events: none;
}
.home-page .home-hero__media figcaption {
  position: absolute;
  right: 22px;
  bottom: 19px;
  z-index: 2;
  padding: 5px 8px;
  background: rgba(255, 253, 250, .78);
  color: #415563;
  font-size: 10px;
  letter-spacing: .08em;
}
.home-page .home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
  align-items: center;
  min-height: min(760px, calc(100dvh - var(--nav-height)));
  padding-block: 54px;
}
.home-page .home-hero__copy { grid-column: 1; width: min(100%, 610px); max-width: none; }
.home-page .home-hero__identity {
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.home-page .home-hero h1 {
  max-width: 640px;
  margin: 0;
  color: #172e3c;
  font-family: var(--font-serif);
  font-size: clamp(45px, 4.7vw, 77px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.21;
}
.home-page .home-hero h1 span,
.home-page .home-hero h1 span:last-child { color: inherit; white-space: nowrap; }
.home-page .home-hero__support {
  max-width: 560px;
  margin-top: 25px;
  color: var(--text-soft);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
}
.home-page .home-hero__method {
  margin: 29px 0 0;
  color: var(--accent);
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 700;
  letter-spacing: .055em;
  white-space: nowrap;
}
.home-page .home-hero__method span { padding-inline: .42em; color: #b09876; }
.home-page .home-hero__background {
  margin: 13px 0 0;
  color: var(--quiet);
  font-size: 12px;
}
.home-page .home-hero__actions { margin-top: 32px; gap: 12px; }
.home-page .home-hero__actions .button {
  min-height: 48px;
  padding-inline: 19px;
  border-radius: 2px;
  font-size: 13px;
}
.home-page .home-hero .button--primary { background: var(--accent); color: white; }
.home-page .home-hero .button--secondary {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.home-page .home-path {
  padding: 22px 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.home-page .home-path__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.home-page .home-path__item {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 43%;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.home-page .home-path__item:first-child { padding-left: 0; }
.home-page .home-path__item:last-child { padding-right: 0; border-right: 0; }
.home-page .home-path__text { min-width: 0; }
.home-page .home-path__text span { color: var(--accent); font-family: Georgia, serif; font-size: 22px; }
.home-page .home-path__text h2 {
  margin: 9px 0;
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}
.home-page .home-path__text p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.home-page .home-path__item img { display: block; width: 100%; height: auto; aspect-ratio: 1.28; object-fit: cover; }
.home-page .home-path__disclosure { margin: 13px auto 0; color: var(--quiet); font-size: 10px; text-align: right; }

.home-page .home-section { border-color: var(--line); }
.home-page .section-intro h2,
.home-page .stance__copy h2,
.home-page .contact-home h2 { font-family: var(--font-serif); font-weight: 650; letter-spacing: -.035em; }
.home-page .situations { background: #f6f5f1; }
.home-page .stance { background: #fffdfa; }
.home-page .method { background: #f2f4f3; }
.home-page .services-home { background: #fffdfa; }
.home-page .cases-home { background: #f6f5f1; }
.home-page .evidence-home { background: #fffdfa; }
.home-page .contact-home { background: #eaf0ef; }
.home-page .stance__portrait,
.home-page .method__media { border-radius: 2px; }
.home-page .stance__portrait {
  width: min(100%, 620px);
  max-width: 620px;
  max-height: none;
  aspect-ratio: 3 / 4;
  justify-self: center;
}
.home-page .home-case { border-radius: 2px; }

/* Keep the full portrait legible when the editorial columns collapse. */
@media (max-width: 980px) {
  .home-page .stance__portrait {
    width: min(100%, 520px);
    max-width: 520px;
    max-height: none;
    aspect-ratio: 3 / 4;
    justify-self: center;
  }
}

@media (max-width: 1220px) {
  .home-page .wordmark { min-width: 170px; }
  .home-page .wordmark__text { display: block; }
  .home-page .wordmark__text b { display: block; font-size: 18px; }
  .home-page .wordmark__text small { display: block; margin-top: 3px; padding: 0; border: 0; }
  .home-page .home-hero h1 { font-size: clamp(39px, 4.55vw, 56px); }
  .home-page .home-path__item { grid-template-columns: 1fr; align-items: start; }
  .home-page .home-path__item img { grid-row: 1; aspect-ratio: 1.75; }
}

@media (max-width: 900px) {
  .home-page .home-hero { display: flex; flex-direction: column; min-height: 0; }
  .home-page .home-hero__inner { order: 1; display: block; min-height: 0; padding-block: 48px 38px; }
  .home-page .home-hero__copy { width: min(100%, 680px); }
  .home-page .home-hero__media {
    position: relative;
    order: 2;
    z-index: 0;
    inset: auto;
    width: 100%;
    height: min(60vw, 520px);
    min-height: 320px;
  }
  .home-page .home-hero__media::before { display: none; }
  .home-page .home-hero__media img { object-position: center 42%; }
  .home-page .home-hero h1 { font-size: clamp(46px, 7vw, 65px); }
  .home-page .home-path__grid { width: min(100% - 48px, 680px); gap: 16px; }
  .home-page .home-path__item { padding: 0 13px; }
}

@media (max-width: 700px) {
  .home-page .site-nav__inner { gap: 12px; }
  .home-page .wordmark { min-width: 0; }
  .home-page .wordmark__text b { font-size: 17px; }
  .home-page .wordmark__text small { font-size: 9px; }
  .home-page .nav-contact { display: none; }
  .home-page .home-hero__inner { padding-block: 39px 30px; }
  .home-page .home-hero__identity { margin-bottom: 17px; font-size: 11px; }
  .home-page .home-hero h1,
  .home-page .home-hero h1 span { max-width: 100%; font-size: clamp(37px, 10.1vw, 51px); line-height: 1.2; }
  .home-page .home-hero__support { margin-top: 17px; font-size: 14px; }
  .home-page .home-hero__method { margin-top: 19px; font-size: 13px; white-space: normal; }
  .home-page .home-hero__background { font-size: 11px; }
  .home-page .home-hero__actions { margin-top: 22px; }
  .home-page .home-hero__actions .button { padding-inline: 14px; font-size: 12px; }
  .home-page .home-hero__media { min-height: 0; height: 72vw; }
  .home-page .home-path { padding-block: 18px; }
  .home-page .home-path__grid { width: var(--shell); display: block; }
  .home-page .home-path__item,
  .home-page .home-path__item:first-child,
  .home-page .home-path__item:last-child {
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: center;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .home-page .home-path__item:last-child { border-bottom: 0; }
  .home-page .home-path__item img { grid-column: 2; grid-row: 1; aspect-ratio: 1.25; }
  .home-page .home-path__text h2 { margin-block: 3px; font-size: 19px; }
  .home-page .home-path__text p { font-size: 11px; }
  .home-page .home-path__disclosure { margin-top: 5px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero__media img { animation: none; transition: none; transform: none; }
}
