:root {
  color-scheme: light;
  --night: #181c24;
  --night-deep: #11151c;
  --paper: #f6f4ef;
  --white: #fffdfa;
  --ink: #202632;
  --muted: #505a65;
  --gold: #dbc39a;
  --gold-ink: #704e25;
  --rule: #d6d1c7;
  --brand-art: url('/assets/brand-source.webp');
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(1rem, 4.2vw, 4.5rem);
  --shell: 82rem;
  --header-height: 4.125rem;
  --ease-out: cubic-bezier(.2, .72, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
body:has(.site-menu[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #9b6e32; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: .5rem auto auto .5rem; padding: .65rem 1rem; transform: translateY(-150%); background: var(--gold); color: var(--night-deep); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 3; background: var(--night-deep); color: var(--white); border-bottom: 1px solid #ffffff20; }
body:has(main[data-page='home']) .site-header {
  margin-bottom: calc(-1 * var(--header-height) - 1px);
  background: transparent; border-bottom-color: transparent;
  transition: background-color .24s ease, border-color .24s ease;
}
body:has(main[data-page='home']) .site-header.is-scrolled {
  background-color: var(--night-deep); border-bottom-color: #ffffff20;
}
.site-header:has(.site-menu[open]),
body:has(main[data-page='home']) .site-header:has(.site-menu[open]) {
  background: #eee8dd; color: var(--ink); border-bottom-color: #1f24312b;
}
.site-header:has(.site-menu[open]) .brand img { filter: brightness(0); }
.site-header:has(.site-menu[open]) :focus-visible { outline-color: var(--gold-ink); }
.header-layout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: .63rem; width: fit-content; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; width: 1.95rem; height: 1.95rem; object-fit: contain; }
.brand span { font: 1.65rem/1 var(--serif); letter-spacing: -.035em; }
.site-header [aria-current], .site-header nav a:hover, .site-header summary:hover { color: var(--gold); }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.site-header summary { list-style: none; white-space: nowrap; }
.site-header summary::-webkit-details-marker { display: none; }
.site-menu > summary { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .3rem .15rem .3rem .45rem; font-size: .9rem; font-weight: 650; }
.menu-icon { position: relative; width: 20px; height: 20px; color: var(--gold); }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; top: 50%; background: currentColor; transition: transform .26s var(--ease-out); }
.menu-icon::before { transform: translateY(-3px); }
.menu-icon::after { transform: translateY(3px); }
.site-menu[open] .menu-icon::before { transform: rotate(45deg); }
.site-menu[open] .menu-icon::after { transform: rotate(-45deg); }
.site-menu[open] .menu-icon, .site-menu[open] > summary:hover { color: var(--gold-ink); }
.menu-panel {
  position: absolute; isolation: isolate; top: 100%; inset-inline: 0; height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height)); padding: 1.3rem 0 2rem; overflow: auto; overscroll-behavior: contain;
  background: #eee8dd; color: var(--ink); border-top: 1px solid #1f243120;
}
.menu-layout { display: grid; gap: 1.85rem; }
.menu-primary > a:not(.button) {
  display: flex; align-items: center; min-height: 55px; border-bottom: 1px solid #1f243126;
  font: 1.65rem/1.15 var(--serif); letter-spacing: -.025em; text-decoration: none;
}
.menu-label { display: inline-block; margin-bottom: .45rem; padding-block: .45rem; color: var(--gold-ink); font-weight: 700; font-size: .95rem; }
.menu-panel a[aria-current], .site-header .menu-panel a:not(.button):hover { color: var(--gold-ink); }
.menu-practices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.menu-practices a {
  display: flex; align-items: center; min-height: 48px; text-decoration: none;
  padding-inline-end: .5rem; font-size: .97rem; line-height: 1.25;
}
.menu-primary .menu-cta { margin-top: 1.25rem; }
.site-menu[open] > .menu-panel { animation: menu-in .4s var(--ease-out) both; }
.site-menu[open] .menu-layout { animation: copy-in .48s var(--ease-out) both; }

.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 100svh; color: var(--white); background: var(--night); }
.hero::before, .site-footer::before, .menu-panel::before, .page-masthead::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  background: var(--brand-art) center / contain no-repeat;
  mask-image: radial-gradient(circle closest-side, transparent 62%, #000 72%, #000 86%, transparent);
  filter: grayscale(1) brightness(1.85) contrast(2.9); mix-blend-mode: screen;
}
.hero::before { width: 42rem; left: 50%; top: 14.5rem; transform: translateX(-50%); opacity: .37; }
.menu-panel::before {
  position: fixed; width: min(54rem, 130vw); top: 9%; right: -7rem; opacity: .68;
  filter: grayscale(1) brightness(1.85) contrast(2.9) invert(1); mix-blend-mode: multiply;
}
.hero-stage { display: grid; touch-action: pan-y pinch-zoom; }
.hero-slide { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.hero-slide[hidden], .hero-steps[hidden] { display: none; }
.hero-photo {
  position: relative; display: block; height: clamp(11.5rem, 39svh, 23rem); overflow: hidden;
  background: #292f3a; clip-path: polygon(0 0, 100% 0, 100% 88%, 57% 100%, 0 93%);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #0b0e16dc 0%, #171b266e 23%, transparent 53%, #181c2440 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 55%; animation: image-in 1.12s var(--ease-out) both; }
[data-scene='practice-library'] img { object-position: 48% 55%; }
[data-scene='kafd'] img { object-position: 54% 38%; }
.hero-inner { display: grid; justify-items: center; align-content: center; align-self: stretch; padding: 1.3rem var(--gutter) 2.6rem; min-width: 0; text-align: center; }
.hero-inner > * { animation: copy-in .65s .13s var(--ease-out) both; }
.hero-footer { z-index: 1; display: grid; justify-items: center; gap: .5rem; padding: 0 var(--gutter) clamp(1.15rem, 4.6svh, 2.8rem); }
.hero-footer .actions { justify-content: center; }
.hero-steps { display: flex; align-items: center; }
.hero-steps button { position: relative; display: grid; place-items: center; padding: 0; min-width: 44px; min-height: 44px; border: 0; color: var(--gold); background: transparent; }
.scene-direction::after { content: ''; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(135deg); }
.scene-direction[data-step='1']::after { transform: rotate(-45deg); }
.scene-direction:hover { color: var(--white); }
.scene-dot::after { content: ''; display: block; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; transition: background-color .2s ease, transform .2s ease; }
.scene-dot[aria-current='true']::after { background-color: currentColor; transform: scale(1.45); }
.scene-dot:hover::after { background-color: currentColor; }
.eyebrow { display: inline-block; color: var(--gold-ink); text-transform: uppercase; letter-spacing: .115em; font-size: .875rem; font-weight: 700; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { content: ''; display: inline-block; vertical-align: .26em; width: 1.7rem; margin-right: .55rem; border-top: 1px solid currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.6rem, 9.3vw, 5rem); line-height: 1.02; letter-spacing: -.056em; }
.hero-heading { max-width: 20ch; margin: .65rem 0 0; font-size: clamp(2.15rem, 8.4vw, 4.2rem); line-height: 1.06; letter-spacing: -.05em; text-wrap: balance; }
.hero-heading a { text-decoration: none; }
.hero-heading a:hover, .hero-heading a:focus-visible { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem .75rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 48px; max-width: 100%;
  padding: .64rem 1.05rem; background: var(--gold); color: var(--night-deep); border: 1px solid var(--gold);
  text-align: center; text-decoration: none; font-size: .9rem; font-weight: 700; line-height: 1.3;
  transition: background .22s ease, border-color .22s ease, color .22s ease;
}
.button:hover { background: #eddbbb; border-color: #eddbbb; }
.button:disabled { opacity: .67; cursor: wait; }
.button.outline { background: #151a2338; color: var(--white); border-color: #ffffff75; }
.button.outline:hover { background: #ffffff1c; border-color: var(--white); }
.button.light-outline { background: transparent; color: var(--ink); border-color: #aca392; }
.button.light-outline:hover { background: #ede8dc; border-color: #8c7554; }
.site-header .button:hover { color: var(--night-deep); }

.practice-section { padding-block: 3.35rem 3.7rem; }
.section-intro { display: grid; gap: 1rem; margin-bottom: 1.9rem; }
h2 { font-size: clamp(2.35rem, 6.8vw, 4.05rem); line-height: 1.03; letter-spacing: -.05em; }
.section-intro p { color: var(--muted); margin: .1rem 0 0; max-width: 43rem; }
.section-intro p + p { margin-top: .8rem; }
.practice-grid { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--rule); }
.practice-grid li { border-bottom: 1px solid var(--rule); }
.practice-grid a { position: relative; display: grid; align-items: center; gap: .4rem; padding: 1.12rem .85rem 1.12rem 0; text-decoration: none; transition: background-color .24s ease, padding .26s var(--ease-out); }
.practice-grid a::before { content: ''; position: absolute; left: 0; inset-block: 0; border-left: 2px solid #a57a46; transform: scaleY(0); transition: transform .28s var(--ease-out); }
.practice-grid a:hover, .practice-grid a:focus-visible { background: #ece7dd; padding-left: 1rem; }
.practice-grid a:hover::before, .practice-grid a:focus-visible::before { transform: scaleY(1); }
.practice-grid a:focus-visible { outline-offset: -3px; }
.practice-grid h3 { font-size: clamp(1.5rem, 5vw, 2.55rem); line-height: 1.13; letter-spacing: -.038em; }
.practice-grid p { color: var(--muted); margin: 0; }

.presence { position: relative; isolation: isolate; background: var(--night); color: var(--white); }
.presence-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 42%; }
.presence::after {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #11151c0d 0%, #11151c3b 22%, #11151cd5 54%, #11151cf2 100%);
}
.presence-inner { display: flex; align-items: end; min-height: 29rem; padding-block: 8rem 2.75rem; }
.presence-copy { max-width: 35rem; }
.presence p { margin: .95rem 0 1.35rem; color: #f0efec; }
.presence :focus-visible { outline-color: var(--gold); }
.interior, .contact-layout { display: grid; gap: 1.8rem; align-items: start; padding-block: clamp(2.7rem, 6vw, 6rem); }
.page-masthead {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  background: linear-gradient(112deg, #19202a, var(--night-deep));
}
.page-masthead::before { width: clamp(35rem, 62vw, 65rem); top: 50%; right: -13rem; transform: translateY(-50%); opacity: .55; }
.masthead-layout { display: grid; align-items: center; gap: 1.15rem; padding-block: clamp(2.5rem, 6vw, 6rem); }
.masthead-layout h1 { font-size: clamp(2.75rem, 7vw, 5.55rem); text-wrap: balance; overflow-wrap: anywhere; }
.masthead-layout .eyebrow, .masthead-layout .return-link { display: inline-block; margin-bottom: .65rem; color: var(--gold); }
.masthead-layout p { max-width: 39rem; margin: 0; color: #ededf1; }
.interior p { color: var(--muted); margin: 0 0 1.1rem; max-width: 41rem; }
.interior .actions { margin: 1.5rem 0 1.05rem; }
.interior .actions:first-child { margin-top: 0; }
.interior p:last-child { margin-bottom: 0; }
.return-link, .text-link { color: #694c26; font-weight: 650; }
.return-link { font-size: .9rem; }
.interior-photo { width: 100%; height: auto; aspect-ratio: 1.4; object-fit: cover; box-shadow: 6px 6px 0 #e0dacd; }

address { display: grid; gap: .35rem; font-style: normal; border-top: 1px solid var(--rule); padding-top: 1.15rem; }
address a { color: #694c26; width: fit-content; overflow-wrap: anywhere; }
.form-panel { background: var(--white); border: 1px solid var(--rule); padding: clamp(1.15rem, 3vw, 2.35rem); }
.form-panel h2 { font-size: clamp(1.95rem, 4.8vw, 2.85rem); margin-bottom: 1.3rem; }
.form-panel form, .field-row { display: grid; gap: 1rem; }
.form-panel label { min-width: 0; display: block; font-size: .9rem; font-weight: 650; line-height: 1.4; }
.form-panel input, .form-panel select, .form-panel textarea { display: block; width: 100%; min-height: 48px; margin-top: .36rem; padding: .56rem .7rem; border: 1px solid #9c9ea3; border-radius: 0; color: var(--ink); background: #fff; font-size: 1rem; font-weight: 400; }
.form-panel select { appearance: none; padding-right: 2.3rem; background: #fff url('/assets/chevron.svg') right .7rem center / .85rem no-repeat; }
.form-panel textarea { resize: vertical; }
.form-note, .form-status { margin: 0; font-size: .9rem; }
.form-note { color: var(--muted); margin-top: -.5rem; }
.optional { color: var(--muted); font-weight: 400; }
.form-status:empty { display: none; }
.form-status { padding: .65rem .75rem; background: #e9f0e9; color: #1a4a30; }
.form-status[data-state='error'] { background: #faebe7; color: #7e2e24; }

.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--night-deep); color: #f0efeb; padding-block: 2.45rem 2rem; }
.site-footer::before { width: 39rem; top: 50%; right: -12rem; transform: translateY(-50%); opacity: .52; }
.footer-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; }
.footer-layout > :first-child { grid-column: 1 / -1; }
.footer-layout p { margin: .65rem 0 0; color: #c0c6cd; font-size: .9rem; }
.footer-layout nav, .footer-contact { display: grid; justify-items: start; align-content: start; }
.footer-layout nav a, .footer-contact a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .93rem; line-height: 1.35; overflow-wrap: anywhere; }
.footer-layout nav a:hover, .footer-contact a:hover { text-decoration: underline; }

@media (max-width: 439px) {
  .hero-footer .actions .button { padding-inline: .65rem; }
}
@keyframes menu-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
@keyframes copy-in {
  from { opacity: .25; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes image-in {
  from { opacity: .45; transform: scale(1.075) translateX(-1%); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

@media (min-width: 760px) {
  :root { --header-height: 4.8rem; --hero-mass: 46%; --hero-inset: clamp(2rem, 4.6vw, 5rem); }
  body:has(main[data-page='home']) .header-layout {
    width: auto; margin-inline: calc(var(--hero-mass) + var(--hero-inset)) var(--gutter);
  }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .brand span { font-size: 1.95rem; }
  .menu-panel { padding-block: clamp(3.5rem, 8vh, 7rem); }
  .menu-layout { grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 9vw, 9rem); }
  .menu-primary > a:not(.button) { min-height: 76px; font-size: clamp(2rem, 3.7vw, 4rem); }
  .menu-label { margin-bottom: 1.2rem; }
  .menu-practices { grid-template-columns: 1fr; }
  .menu-practices a { min-height: 56px; border-top: 1px solid #1f243126; font-size: clamp(1rem, 1.6vw, 1.35rem); }
  .hero { grid-template-columns: var(--hero-mass) minmax(0, 1fr); }
  .hero-stage { grid-column: 1 / -1; grid-row: 1 / -1; min-height: 100svh; }
  .hero-slide { grid-template-columns: var(--hero-mass) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .hero::before {
    width: clamp(39rem, 60vw, 62rem); left: calc(50% + var(--hero-mass) / 2); top: 50%;
    transform: translate(-50%, -50%); opacity: .52;
  }
  .hero-photo {
    grid-column: 1; grid-row: 1; height: auto; align-self: stretch;
    clip-path: polygon(0 0, 94% 0, 100% 42%, 89% 100%, 0 100%);
  }
  .hero-photo::after { background: linear-gradient(90deg, transparent 75%, #181c2445); }
  .hero-photo img { position: absolute; inset: 0; object-position: 73% 54%; }
  .hero-inner {
    grid-column: 2; grid-row: 1;
    padding: 8rem clamp(1.25rem, 4vw, 4rem);
  }
  .hero-heading { max-width: 16ch; margin: 0; font-size: clamp(2.75rem, 4.25vw, 4.65rem); }
  .hero-inner .eyebrow + .hero-heading { margin-top: .65rem; }
  .hero-footer { grid-column: 2; grid-row: 2; justify-items: start; align-self: end; padding-inline-start: var(--hero-inset); }
  .hero-footer .actions { justify-content: start; }
  .hero-steps { margin-inline-start: -.5rem; }
  [data-scene='kafd'] img { object-position: 53% 42%; }
  .practice-section { padding-block: clamp(4rem, 7vw, 6.4rem); }
  .section-intro { grid-template-columns: .86fr 1.14fr; align-items: start; gap: 2rem; margin-bottom: 2.75rem; }
  .practice-grid a { grid-template-columns: .86fr 1.14fr; gap: 2rem; padding-block: 1.3rem; min-height: 84px; }
  .presence-photo { object-position: center 39%; }
  .presence::after { background: linear-gradient(90deg, #11151c12 0%, #11151c35 36%, #11151cb3 57%, #11151cf2 100%); }
  .presence-inner { justify-content: end; align-items: center; min-height: clamp(27rem, 42vw, 40rem); padding-block: clamp(4rem, 6vw, 5.8rem); }
  .interior { grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 6vw, 6rem); }
  .masthead-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 7vw, 7rem); }
  .interior-photo { aspect-ratio: 1.04; box-shadow: 10px 10px 0 #e0dacd; }
  .contact-layout { grid-template-columns: .84fr 1.16fr; gap: clamp(2rem, 6vw, 6rem); }
  .site-footer::before { width: 51rem; right: -8rem; }
  .footer-layout { grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem 2rem; }
  .footer-layout > :first-child { grid-column: auto; }
  .footer-contact { justify-content: end; }
}
@media (min-width: 1024px) {
  .site-menu > summary { font-size: 1rem; }
  .menu-icon { width: 24px; }
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
