@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f9f8f4;
  --ink: #253041;
  --muted: #526072;
  --blue: #2e4680;
  --blue-deep: #21355f;
  --wash: #e8edf6;
  --sand: #f0e9de;
  --line: #d6dce4;
  --heading: "Playfair Display", Georgia, serif;
  --body: system-ui, -apple-system, sans-serif;
  --gutter: clamp(18px, 5vw, 78px);
  --measure: 1200px;
  --header-height: 78px;
  --section-space: clamp(52px, 7.3vw, 104px);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.72 var(--body);
}

img, video { display: block; max-width: 100%; }
figure, dl, dd, p, h1, h2, address { margin: 0; }
p + p, p + address, address + p { margin-top: 1.05em; }
address { font-style: normal; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible, video:focus-visible, .video-play:focus-visible {
  outline: 3px solid #b57032;
  outline-offset: 5px;
}

h1, h2 {
  color: var(--blue-deep);
  font-family: var(--heading);
  font-weight: 400;
  letter-spacing: -0.027em;
  text-wrap: balance;
}

h1 {
  max-width: 17ch;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: clamp(19px, 3vw, 33px);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.13;
}

.container {
  width: min(var(--measure), calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}

.section { padding-block: var(--section-space); }
.section-rule { border-top: 1px solid var(--line); }
.prose { max-width: 68ch; overflow-wrap: anywhere; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  transform: translateY(-150%);
  background: white;
  padding: 10px 15px;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--blue-deep);
  font: 400 clamp(0.88rem, 2vw, 1.48rem)/1.15 var(--heading);
  text-decoration: none;
}

.wordmark small {
  color: var(--muted);
  font: 520 0.72rem/1.25 var(--body);
}

.site-header nav, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(13px, 2.7vw, 38px);
}

.site-header nav a, .site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.86rem;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current],
.site-footer nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.site-header .nav-contact {
  padding-inline: 16px;
  border: 1px solid #a8b4cd;
  border-radius: 6px;
  color: var(--blue);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--header-height));
  background: var(--blue-deep);
}

.hero-main, .hero::before { position: absolute; inset: 0; }
.hero-main { z-index: -2; overflow: hidden; }

.hero::before {
  z-index: -1;
  content: "";
  background:
    linear-gradient(to top, rgb(9 19 36 / 86%), rgb(9 19 36 / 51%) 25%, transparent 63%),
    radial-gradient(ellipse at left bottom, rgb(9 19 36 / 46%), transparent 64%);
}

.hero-intro {
  padding-block: clamp(26px, 4.4vw, 62px);
  color: white;
}

.location {
  margin-bottom: 12px;
  color: #edf2ff;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  color: white;
  font-size: clamp(2.5rem, 5.15vw, 4.75rem);
}

.text-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: clamp(14px, 2vw, 23px);
  color: white;
  font-size: 0.9rem;
  font-weight: 620;
}

.hero-main img, .approach-photo img, .about-section img, .practice-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-main img {
  height: 100%;
  object-position: center 40%;
}

.approach, .sessions, .about-inner, .contact-inner, .legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(24px, 8vw, 115px);
  align-items: start;
}

.approach h2 { margin: 0; }
.approach-photo { margin-top: clamp(18px, 3vw, 30px); max-width: 440px; }
.approach .prose a, .sessions .prose a { font-weight: 550; }

.video-section { background: var(--wash); }

.video-inner { max-width: 850px; margin-inline: auto; }

.video-section h2 {
  margin-bottom: clamp(19px, 3vw, 33px);
  font-size: clamp(1.8rem, 3.5vw, 2.85rem);
  text-align: center;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #181b20;
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.video-player video:focus-visible { outline-offset: -5px; }

.video-play:not([hidden]) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: clamp(52px, 6vw, 75px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 94%);
  color: var(--blue);
  cursor: pointer;
}

.video-play::after {
  content: "";
  margin-left: 4px;
  border-block: 8px solid transparent;
  border-left: 14px solid currentColor;
}

.video-play:hover { background: white; }

.sessions {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  align-items: center;
}

.fees {
  padding: clamp(20px, 3.4vw, 40px);
  border: 1px solid #cbd5e5;
  border-top: 3px solid var(--blue);
  background: white;
}

.fees dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 15px;
}

.fees dl > div:first-child { padding-top: 0; }
.fees dl > div + div { border-top: 1px solid #c2cce0; }
.fees dt { color: var(--blue-deep); font-weight: 640; }

.fees dt span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.fees dd {
  color: var(--blue-deep);
  font: 400 clamp(1.7rem, 3.5vw, 2.6rem)/1.12 var(--heading);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-size: 0.88rem;
  font-weight: 610;
  text-decoration: none;
}

.button:hover { background: var(--blue-deep); }

.about-section { background: var(--blue-deep); color: white; }
.about-section h2 { color: white; }
.about-inner, .contact-inner { align-items: center; }
.about-section img { aspect-ratio: 0.91; object-position: center 36%; }
.contact-section { background: var(--sand); }
.contact-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr); }
.practice-photo img { aspect-ratio: 1.16; object-position: center 57%; }
.contact-name { margin-top: 1.5em; font-weight: 630; }
.contact-name + address { margin-top: 0.35em; }

.legal { font-size: 0.88rem; color: var(--muted); }
.legal h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }

.site-footer { background: var(--blue-deep); color: white; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 22px;
  padding-block: 16px;
  font-size: 0.84rem;
}

.site-footer nav a, .site-footer nav a:hover { color: white; }

@media (max-width: 760px) {
  :root { --header-height: 102px; }
  html { scroll-padding-top: 20px; }
  .site-header { position: static; }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-block: 12px 3px;
  }
  .site-header nav { column-gap: 13px; }
  .site-header nav a { font-size: 0.8rem; }
  .site-header .nav-contact { padding-inline: 0; border: 0; }
  .approach, .sessions, .about-inner, .contact-inner, .legal {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero { min-height: min(calc(100svh - var(--header-height)), 141vw); }
  .hero-main img { object-position: 48% center; }
  .hero h1 { font-size: clamp(2.2rem, 7.5vw, 3.65rem); }
  .about-section figure { grid-row: 2; }
  .about-section img { max-width: 520px; aspect-ratio: 1.05; }
  .practice-photo img { max-width: 520px; }
  .fees { max-width: 480px; }
}

@media (max-width: 490px) {
  .site-header nav { column-gap: clamp(8px, 2.4vw, 12px); }
  .site-header nav a { font-size: 0.77rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-main img { transform: translateY(var(--hero-shift, 0px)); }
  .hero-intro {
    animation: rise-in 480ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
  }
  [data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(24px);
  }
  [data-reveal].is-visible {
    animation: section-in 680ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
  }
  [data-reveal="after"].is-visible { animation-delay: 90ms; }
  [data-reveal]:focus-within { opacity: 1; transform: none; animation: none; }
  .button, .video-play { transition: background-color 180ms ease; }
}

@keyframes rise-in {
  from { opacity: 0.65; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
