:root {
  color-scheme: light;
  --page: #f5f1ea;
  --surface: #fffaf3;
  --ink: #3d3028;
  --muted: #735f51;
  --soft: #ebe1d6;
  --primary: #9b765d;
  --accent: #b89b74;
  --line: rgba(61, 48, 40, 0.16);
  --shadow: 0 22px 55px rgba(61, 48, 40, 0.12);
}

html[data-theme="1b"] {
  --page: #f4f0e7;
  --surface: #fff9ef;
  --ink: #3f322a;
  --muted: #735f50;
  --soft: #eadcca;
  --primary: #8f6b4f;
  --accent: #c0a064;
  --line: rgba(63, 50, 42, 0.16);
  --shadow: 0 22px 55px rgba(63, 50, 42, 0.12);
}

html[data-theme="1c"] {
  --page: #f7f0e6;
  --surface: #fff8ee;
  --ink: #45352c;
  --muted: #765f52;
  --soft: #eadccb;
  --primary: #9b765d;
  --accent: #bd8b80;
  --line: rgba(69, 53, 44, 0.16);
  --shadow: 0 22px 55px rgba(69, 53, 44, 0.12);
}

html[data-theme="1e"] {
  --page: #f4eee5;
  --surface: #fff8ef;
  --ink: #49382f;
  --muted: #756357;
  --soft: #e9ddd2;
  --primary: #826f61;
  --accent: #c0a98a;
  --line: rgba(73, 56, 47, 0.16);
  --shadow: 0 22px 55px rgba(73, 56, 47, 0.12);
}

html[data-theme="1f"] {
  --page: #f5f0e8;
  --surface: #fff9f1;
  --ink: #3b312c;
  --muted: #6f625b;
  --soft: #e5dbd2;
  --primary: #5a4a43;
  --accent: #b59165;
  --line: rgba(59, 49, 44, 0.16);
  --shadow: 0 22px 55px rgba(59, 49, 44, 0.14);
}

html[data-theme="2"] {
  --page: #f8f1eb;
  --surface: #fff8f2;
  --ink: #49372f;
  --muted: #7c6258;
  --soft: #efdcd6;
  --primary: #a8797c;
  --accent: #c79a6c;
  --line: rgba(73, 55, 47, 0.16);
  --shadow: 0 22px 55px rgba(73, 55, 47, 0.12);
}

html[data-theme="3"] {
  --page: #f6f1e9;
  --surface: #fffaf1;
  --ink: #352d29;
  --muted: #745f58;
  --soft: #eaded1;
  --primary: #9a5f54;
  --accent: #bd7762;
  --line: rgba(53, 45, 41, 0.16);
  --shadow: 0 22px 55px rgba(53, 45, 41, 0.13);
}

html[data-theme="4"] {
  --page: #f7f3ed;
  --surface: #fffaf4;
  --ink: #3b332f;
  --muted: #6f5f61;
  --soft: #eadde1;
  --primary: #72586a;
  --accent: #b59165;
  --line: rgba(59, 51, 47, 0.16);
  --shadow: 0 22px 55px rgba(59, 51, 47, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
  color: var(--ink);
  font-family:
    Avenir,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface), transparent 8%), var(--page) 42%),
    var(--page);
}

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar .wrap {
  width: min(1560px, calc(100% - 32px));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface), transparent 8%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(220px, 305px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}

.mobile-menu {
  display: block;
  min-width: 0;
}

.mobile-menu > summary {
  display: none;
}

.brand {
  display: block;
  text-decoration: none;
}

.brand img {
  width: min(305px, 100%);
}

.nav-area {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
}

.main-nav > a,
.nav-dropdown > summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav > .home-link {
  min-width: 38px;
  justify-content: center;
  padding: 0 8px;
}

.home-symbol {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  line-height: 1;
}

.home-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.nav-dropdown[open] > summary::after {
  border-top: 0;
  border-bottom: 6px solid currentColor;
}

.main-nav > a:hover,
.main-nav > a:focus-visible,
.main-nav > a[aria-current="page"],
.nav-dropdown > summary:hover,
.nav-dropdown > summary:focus-visible,
.nav-dropdown[open] > summary {
  color: var(--ink);
  border-color: var(--line);
  outline: none;
}

.area-nav > summary {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent), transparent 84%);
  border-color: transparent;
  border-radius: 999px;
  padding-right: 14px;
  padding-left: 14px;
  font-weight: 800;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--primary), transparent 88%);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.area-nav > summary:hover,
.area-nav > summary:focus-visible,
.area-nav[open] > summary {
  color: var(--surface);
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--primary), transparent 76%);
}

.area-nav > .flyout {
  border-color: color-mix(in srgb, var(--accent), transparent 54%);
  border-radius: 18px;
  overflow: hidden;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.flyout {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 220px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.nav-dropdown[open] > .flyout,
.nav-dropdown:focus-within > .flyout {
  display: grid;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover > .flyout {
    display: grid;
  }
}

.flyout a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px;
}

.flyout a:hover,
.flyout a:focus-visible,
.flyout a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent), transparent 78%);
  outline: none;
}

.design-switch {
  position: relative;
}

.design-switch summary {
  list-style: none;
}

.design-switch summary::-webkit-details-marker {
  display: none;
}

.design-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--surface);
  background: var(--primary);
  border: 1px solid var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.design-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.design-switch[open] .design-trigger::after {
  border-top: 0;
  border-bottom: 6px solid currentColor;
}

.theme-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 236px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.theme-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: rotate(45deg);
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(38px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.theme-button {
  min-width: 38px;
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.theme-button:nth-child(4n + 1) {
  border-left: 0;
}

.theme-button:nth-child(-n + 4) {
  border-top: 0;
}

.theme-button[aria-pressed="true"] {
  color: var(--surface);
  background: var(--primary);
}

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

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/istockphoto-2170179646-1024x1024.jpg") center center / cover no-repeat;
  filter: saturate(0.82) contrast(0.94);
  opacity: 0.46;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--page), transparent 18%) 0%, color-mix(in srgb, var(--page), transparent 42%) 44%, color-mix(in srgb, var(--page), transparent 54%) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface), transparent 32%), transparent 34%, color-mix(in srgb, var(--page), transparent 24%) 72%, color-mix(in srgb, var(--page), transparent 8%) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 86px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 9.8em;
  font-size: 5.25rem;
  line-height: 0.94;
}

.hero-text {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.24rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--surface);
  background: var(--primary);
  border: 1px solid var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface), transparent 16%);
  border-color: var(--line);
}

.section {
  padding: 74px 0;
}

.section.alt {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--soft), transparent 24%), color-mix(in srgb, var(--page), transparent 0%));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 700px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: 3rem;
  line-height: 1.02;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.feature-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.blog-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(61, 48, 40, 0.08);
}

.feature-card strong {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.feature-card h3,
.blog-card h3 {
  font-size: 1.55rem;
  line-height: 1.12;
}

.feature-card p,
.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.coaching-page .feature-card,
.service-page .feature-card,
.coaching-page .contact-card,
.service-page .contact-card,
.coaching-page .contact-band {
  border-radius: 18px;
}

.service-page .contact-band {
  border-radius: 18px;
}

.coaching-page .feature-card,
.service-page .feature-card {
  min-height: 310px;
}

.package-label {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.text-link {
  align-self: end;
  color: var(--ink);
  font-weight: 900;
  text-decoration-color: color-mix(in srgb, var(--primary), transparent 35%);
  text-underline-offset: 4px;
}

.legal-note {
  max-width: 70ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.women-page .hero {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--accent), transparent 76%) 0 13%, transparent 14%),
    radial-gradient(circle at 88% 72%, color-mix(in srgb, var(--primary), transparent 86%) 0 20%, transparent 21%),
    var(--page);
}

.women-page .hero::before {
  opacity: 0.18;
  filter: saturate(0.7);
}

.women-page .hero-inner {
  max-width: 860px;
  padding-right: 7vw;
}

.women-page .quote-panel {
  min-height: 380px;
  border-radius: 64px 18px 64px 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent), var(--surface) 30%), color-mix(in srgb, var(--primary), var(--ink) 18%));
}

.women-page .step {
  border-radius: 20px 6px 20px 6px;
  background: color-mix(in srgb, var(--accent), var(--surface) 86%);
}

.women-page .step span,
.women-page .contact-card span {
  border-radius: 50%;
}

.women-page .feature-card {
  min-height: 295px;
  border-radius: 30px 30px 10px 10px;
  border-top: 6px solid var(--accent);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--primary), transparent 84%);
}

.women-page .feature-card:nth-child(2) {
  border-radius: 10px 30px 10px 30px;
  border-top-color: var(--primary);
}

.women-page .feature-card:nth-child(3) {
  border-radius: 30px 10px 30px 10px;
  border-top-color: var(--accent);
}

.women-page .contact-card {
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface), var(--accent) 9%);
  border-bottom: 5px solid color-mix(in srgb, var(--accent), transparent 18%);
}

.women-page .contact-band {
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  border-left: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 50%, color-mix(in srgb, var(--accent), transparent 78%) 0 18%, transparent 19%),
    color-mix(in srgb, var(--surface), var(--accent) 7%);
}

.about-page .hero {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--soft), transparent 20%), transparent 65%),
    var(--page);
}

.about-page .hero-inner {
  max-width: 860px;
}

.about-intro {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: stretch;
}

.about-note {
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: 32px;
  color: var(--surface);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary), var(--ink) 15%), var(--ink));
  border-radius: 22px 72px 22px 72px;
  box-shadow: var(--shadow);
}

.about-note p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1.12;
}

.about-values {
  display: grid;
  gap: 12px;
}

.about-value {
  padding: 22px;
  background: color-mix(in srgb, var(--surface), var(--soft) 32%);
  border: 1px solid var(--line);
  border-radius: 8px 24px 8px 24px;
}

.about-value h3 {
  margin: 0;
  font-size: 1.35rem;
}

.about-value p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.qualification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.qualification-card {
  min-height: 280px;
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px 48px 18px 48px;
  box-shadow: 0 14px 35px color-mix(in srgb, var(--primary), transparent 90%);
}

.qualification-card:nth-child(2) {
  border-radius: 48px 18px 48px 18px;
}

.qualification-card .eyebrow {
  min-height: 38px;
  margin-bottom: 18px;
}

.qualification-list,
.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qualification-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.48;
}

.qualification-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-detail {
  padding: 28px;
  background: color-mix(in srgb, var(--surface), var(--soft) 24%);
  border: 1px solid var(--line);
  border-radius: 48px 18px 48px 18px;
}

.about-detail:nth-child(2) {
  border-radius: 18px 48px 18px 48px;
}

.about-detail h2 {
  margin-bottom: 16px;
  font-size: 2.25rem;
  line-height: 1.05;
}

.about-detail > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.detail-list {
  gap: 0;
}

.detail-list li {
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.detail-list li:first-child {
  padding-top: 0;
}

.language-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
}

.language-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.language-list dt {
  font-weight: 800;
}

.language-list dd {
  margin: 0;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 36px;
  max-width: 1080px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  z-index: 0;
  top: 36px;
  left: 50%;
  width: 74px;
  height: calc(100% - 72px);
  color: color-mix(in srgb, var(--primary), transparent 16%);
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.timeline-year {
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 1;
  padding-top: 4px;
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
}

.timeline-marker {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: 28px auto 0;
  background: var(--accent);
  border: 4px solid var(--page);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--primary);
}

.timeline-card {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary), transparent 88%);
}

.timeline-card::after {
  display: none;
}

.timeline-entry:nth-of-type(even) .timeline-card {
  grid-column: 3;
}

.timeline-entry:nth-of-type(even) .timeline-year {
  grid-column: 1;
  text-align: right;
}

.timeline-entry:nth-of-type(even) .timeline-card::after {
  display: none;
}

.timeline-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.timeline-type {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.about-page .contact-band {
  border-radius: 22px 60px 22px 60px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}

.quote-panel {
  min-height: 410px;
  display: grid;
  align-content: end;
  padding: 32px;
  color: var(--surface);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary), var(--ink) 16%), var(--ink));
  box-shadow: var(--shadow);
}

.quote-panel p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1.14;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  background: color-mix(in srgb, var(--surface), transparent 8%);
  border: 1px solid var(--line);
}

.step span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--accent);
  font-weight: 900;
}

.step h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.blog-card {
  min-height: 260px;
}

.blog-meta {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card .text-link {
  align-self: end;
}

.blog-page .hero {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--accent), transparent 76%) 0 13%, transparent 14%),
    radial-gradient(circle at 88% 72%, color-mix(in srgb, var(--primary), transparent 86%) 0 20%, transparent 21%),
    var(--page);
}

.blog-page .hero::before {
  opacity: 0.16;
  filter: saturate(0.7);
}

.blog-page .hero-inner {
  max-width: 900px;
}

.blog-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-index-card {
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 22px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface), var(--soft) 22%);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.blog-index-card:hover,
.blog-index-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary), transparent 86%);
  outline: none;
  transform: translateY(-3px);
}

.blog-index-card h3 {
  font-size: 1.45rem;
  line-height: 1.12;
}

.blog-index-card span:last-child {
  align-self: end;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
}

.blog-article-list {
  display: grid;
  gap: 24px;
}

.blog-article {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--primary), transparent 90%);
  scroll-margin-top: 100px;
}

.blog-article:nth-child(even) {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--soft), transparent 35%), transparent 60%),
    var(--surface);
}

.blog-article-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-article-header .blog-meta {
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.blog-article-header h2 {
  max-width: 10em;
  font-size: 2.7rem;
  line-height: 1.02;
}

.blog-article-date {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-article-body {
  max-width: 70ch;
}

.blog-article-lead {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.35;
}

.blog-article-body p:not(.blog-article-lead),
.blog-article-body li {
  color: var(--muted);
  line-height: 1.68;
}

.blog-article-body p:not(.blog-article-lead) {
  margin: 0 0 18px;
}

.blog-article-body h3 {
  margin: 30px 0 10px;
  font-size: 1.55rem;
  line-height: 1.12;
}

.blog-article-body ul {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding-left: 22px;
}

.blog-practice {
  margin: 26px 0 0;
  padding: 20px 22px;
  background: color-mix(in srgb, var(--accent), var(--surface) 84%);
  border-left: 5px solid var(--accent);
}

.blog-practice strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.blog-practice p {
  margin: 0 !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(61, 48, 40, 0.08);
}

.contact-card span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.contact-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.12;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.contact-card a {
  align-self: end;
  color: var(--ink);
  font-weight: 900;
  text-decoration-color: color-mix(in srgb, var(--primary), transparent 35%);
  text-underline-offset: 4px;
}

.contact-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--soft), transparent 32%), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 8px solid var(--primary);
  box-shadow: 0 16px 36px rgba(61, 48, 40, 0.08);
}

.contact-band::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent), transparent 82%));
  pointer-events: none;
}

.contact-band h2 {
  position: relative;
  font-size: 2.55rem;
  line-height: 1.02;
}

.contact-band p {
  position: relative;
  max-width: 58ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-band .button {
  position: relative;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--primary), transparent 78%);
}

.site-footer {
  margin-top: 24px;
  padding: 38px 0;
  color: var(--muted);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--soft), transparent 34%), color-mix(in srgb, var(--surface), transparent 10%)),
    var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface), transparent 12%);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-links a {
  font-weight: 800;
  text-decoration: none;
}

.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  vertical-align: middle;
}

.social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-link:hover,
.social-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary), transparent 28%);
  outline-offset: 3px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (min-width: 961px) and (max-width: 1300px) {
  .topbar-inner {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 10px;
  }

  .brand img {
    width: 220px;
  }

  .nav-area {
    gap: 6px;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav > a,
  .nav-dropdown > summary {
    padding: 0 5px;
    font-size: 0.86rem;
  }

  .nav-dropdown > summary::after {
    margin-left: 5px;
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 5px;
  }

  .nav-dropdown[open] > summary::after {
    border-top-width: 0;
    border-bottom-width: 5px;
  }

  .design-trigger {
    padding: 0 9px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  .topbar-inner,
  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .qualification-grid,
  .about-details {
    grid-template-columns: 1fr;
  }

  .timeline-entry {
    grid-template-columns: 36px 1fr;
  }

  .timeline-line {
    top: 20px;
    left: 0;
    width: 36px;
    height: calc(100% - 40px);
    transform: none;
  }

  .timeline-year {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
    text-align: left;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1;
    margin-top: 12px;
  }

  .timeline-card {
    grid-column: 2;
    grid-row: 2;
  }

  .timeline-entry:nth-of-type(even) .timeline-card,
  .timeline-entry:nth-of-type(even) .timeline-year {
    grid-column: 2;
  }

  .timeline-entry:nth-of-type(even) .timeline-year {
    text-align: left;
  }

  .topbar-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .nav-area {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .mobile-menu {
    width: auto;
    justify-self: end;
  }

  .mobile-menu > summary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: var(--surface);
    background: var(--primary);
    border: 1px solid var(--primary);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu > summary::before {
    content: "☰";
    font-size: 1.15rem;
    line-height: 1;
  }

  .mobile-menu[open] > summary::before {
    content: "×";
    font-size: 1.5rem;
  }

  .mobile-menu > .nav-area {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 12px 16px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .mobile-menu:not([open]) > .nav-area {
    display: none;
  }

  .mobile-menu .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    width: 100%;
  }

  .mobile-menu .main-nav > a,
  .mobile-menu .nav-dropdown,
  .mobile-menu .nav-dropdown > summary {
    width: 100%;
  }

  .mobile-menu .main-nav > a,
  .mobile-menu .nav-dropdown > summary {
    justify-content: space-between;
    padding: 0 12px;
  }

  .mobile-menu .main-nav > .home-link {
    justify-content: flex-start;
  }

  .flyout {
    position: static;
    width: 100%;
    min-width: 100%;
    margin: 4px 0 8px;
    box-shadow: none;
  }

  .flyout a {
    min-height: 42px;
    white-space: normal;
    line-height: 1.3;
  }

  .nav-dropdown::after {
    display: none;
  }

  .design-switch {
    align-self: stretch;
    width: 100%;
  }

  .design-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-menu .theme-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    margin-top: 10px;
  }

  .feature-grid,
  .blog-grid,
  .blog-index,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .blog-article {
    grid-template-columns: 1fr;
  }

  .blog-article-header h2 {
    max-width: none;
  }

  h1 {
    font-size: 4rem;
  }

  .section-head h2 {
    font-size: 2.45rem;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .topbar-inner {
    gap: 10px;
  }

  .brand img {
    width: 170px;
  }

  .theme-panel {
    right: auto;
    left: 0;
  }

  .theme-panel::before {
    right: auto;
    left: 22px;
  }

  .theme-options {
    width: 100%;
  }

  .theme-button {
    min-width: 0;
  }

  .main-nav > a,
  .nav-dropdown > summary {
    padding: 0 8px;
  }

  .flyout {
    min-width: 100%;
  }

  .hero {
    min-height: 0;
  }

  .hero::before {
    background-position: center top;
    background-size: cover;
    opacity: 0.4;
  }

  .hero-inner {
    padding: 74px 0 82px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-head h2,
  .contact-band h2 {
    font-size: 2.05rem;
  }

  .quote-panel {
    min-height: 330px;
    padding: 24px;
  }

  .quote-panel p {
    font-size: 1.7rem;
  }

  .contact-band {
    padding: 24px;
  }

  .blog-article {
    gap: 22px;
    padding: 24px;
  }

  .blog-article-header h2 {
    font-size: 2.2rem;
  }

  .blog-article-lead {
    font-size: 1.2rem;
  }
}

.legal-page .topbar {
  position: static;
  backdrop-filter: none;
}

.legal-page .page-main {
  padding: 88px 0 96px;
}

.legal-page .content {
  max-width: 760px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-page h1 {
  max-width: none;
  font-size: 4.35rem;
  line-height: 0.98;
}

.legal-page h2 {
  margin-top: 36px;
  font-size: 1.8rem;
  line-height: 1.12;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page address {
  margin-top: 28px;
  color: var(--ink);
  font-style: normal;
  line-height: 1.75;
}

.legal-page .contact-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.legal-page .contact-list a {
  color: var(--ink);
  font-weight: 800;
  text-decoration-color: color-mix(in srgb, var(--primary), transparent 35%);
  text-underline-offset: 4px;
}

@media (max-width: 620px) {
  .legal-page .page-main {
    padding: 56px 0 64px;
  }

  .legal-page .content {
    padding: 24px;
  }

  .legal-page h1 {
    font-size: 2.8rem;
  }
}
