:root {
  color-scheme: dark;
  --ink: #f8f3e9;
  --muted: #aaa79f;
  --muted-strong: #cbc4b7;
  --black: #090d0c;
  --black-soft: #101614;
  --panel: rgba(22, 27, 24, 0.86);
  --gold: #cda75f;
  --gold-bright: #f0d494;
  --gold-deep: #8e6b32;
  --line: rgba(220, 190, 129, 0.24);
  --line-strong: rgba(232, 202, 139, 0.48);
  --danger: #e3a39d;
  --radius: 22px;
  --serif: Georgia, "Songti SC", STSong, "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 20%, rgba(48, 91, 72, 0.22), transparent 34rem),
    linear-gradient(145deg, #080b0a, #101512 56%, #080a09);
}
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.brand-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #070807; animation: intro-reveal 1.5s ease both; }
.brand-intro[hidden] { display: none; }
.brand-intro > img { width: 100%; height: 100%; object-fit: contain; animation: intro-approach 1.5s ease both; }
.intro-skip { position: absolute; top: 28px; right: 32px; min-width: 64px; min-height: 40px; border: 1px solid #bd945957; border-radius: 2px; color: #d8bd88; background: #080a08bb; font-size: 13px; cursor: pointer; }
@keyframes intro-reveal { 0% { opacity: 0; } 18%, 65% { opacity: 1; } 100% { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes intro-approach { from { transform: scale(.98); filter: brightness(.8); } 60% { filter: brightness(1.06); } to { transform: scale(1.015); filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .brand-intro { display: none !important; } }

.preview-banner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 18px;
  color: #cabf09;
  background: #3c310f;
  font-size: 12px;
  letter-spacing: .04em;
}
.preview-banner span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cfb151;
  box-shadow: 0 0 0 4px rgba(207, 177, 81, .12);
}

.site-header {
  min-height: 84px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4.5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-bright);
  font: 600 17px/1 Georgia, serif;
  box-shadow: inset 0 0 0 4px rgba(205, 167, 95, .035);
}
.brand-copy strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .14em; }
.brand-copy small { display: block; margin-top: 4px; color: var(--muted); font: 9px/1.2 Georgia, serif; letter-spacing: .13em; }
.brand-tagline { margin-left: 18px; padding-left: 26px; border-left: 1px solid var(--line); color: var(--gold); font-size: 14px; letter-spacing: .06em; }
.quiet-link {
  padding: 7px 1px;
  border: 0;
  border-bottom: 1px solid var(--gold-deep);
  color: var(--gold-bright);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.home-shell {
  width: min(1360px, 100%);
  min-height: calc(100dvh - 206px);
  position: relative;
  isolation: isolate;
  margin: 0 auto;
  padding: clamp(64px, 9vh, 100px) clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(48px, 7.5vw, 110px);
  overflow: hidden;
}
.architectural-art {
  width: min(980px, 72vw);
  height: min(760px, 80vh);
  position: absolute;
  z-index: -1;
  top: 0;
  right: -22%;
  object-fit: cover;
  object-position: left center;
  opacity: .2;
  filter: saturate(.72) sepia(.18);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 76%, transparent 100%);
}
.welcome { align-self: center; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font: 12px/1.5 Georgia, serif;
  letter-spacing: .27em;
  text-transform: uppercase;
}
.welcome h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 6.3vw, 88px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .01em;
}
.welcome h1 span { color: var(--gold-bright); }
.welcome-copy { max-width: 440px; margin: 34px 0 0; color: var(--muted-strong); font-size: 18px; line-height: 1.8; }
.welcome-copy > span { display: inline-block; }
.welcome-note { margin: 24px 0 0; color: var(--gold-bright); font-size: 18px; letter-spacing: .07em; }

.entrance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.entrance-card {
  min-height: 198px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, .022), transparent);
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.entrance-card::after {
  content: none;
  width: 220px;
  height: 220px;
  position: absolute;
  right: -116px;
  bottom: -142px;
  border: 1px solid rgba(219, 183, 108, .19);
  border-radius: 50%;
}
.entrance-card:hover,
.entrance-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(205, 167, 95, .08);
  outline: none;
}
.entrance-number { position: absolute; top: 24px; left: 27px; color: #766e61; font: 13px/1 Georgia, serif; }
.entrance-kicker { margin-bottom: 9px; color: var(--gold); font: 11px/1 Georgia, serif; letter-spacing: .2em; }
.entrance-card strong { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.entrance-description { max-width: 210px; margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.entrance-card i { position: absolute; right: 27px; bottom: 27px; color: var(--gold-bright); font-size: 23px; font-style: normal; }

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px clamp(20px, 4.5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #8d8b85;
  font-size: 12px;
}
.site-footer > div { display: grid; gap: 7px; }
.site-footer strong { color: var(--muted-strong); font-weight: 500; }
.site-footer nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold-bright); outline: none; }
.police-filing { display: inline-flex; align-items: center; gap: 7px; }
.police-filing img { width: 18px; height: 18px; object-fit: contain; }

.flow-dialog {
  width: min(980px, calc(100vw - 32px));
  height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  color: var(--ink);
  background: #111714;
  box-shadow: 0 30px 110px rgba(0, 0, 0, .72);
}
.flow-dialog::backdrop { background: rgba(3, 5, 4, .82); backdrop-filter: blur(10px); }
.flow-shell { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.flow-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 22px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.flow-back, .flow-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted-strong);
  background: transparent;
  cursor: pointer;
}
.flow-close { font-size: 24px; }
.flow-back:disabled { opacity: .28; cursor: default; }
.flow-progress { height: 2px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.flow-progress span { width: 12%; height: 100%; display: block; background: var(--gold-bright); transition: width .25s ease; }
.flow-body { overflow-y: auto; padding: clamp(38px, 7vh, 74px) clamp(24px, 8vw, 86px); }
.flow-body-inner { max-width: 760px; margin: 0 auto; }
.flow-eyebrow { margin: 0 0 14px; color: var(--gold); font: 11px/1.4 Georgia, serif; letter-spacing: .18em; }
.flow-body h2 { margin: 0; font-family: var(--serif); font-size: clamp(33px, 5vw, 50px); font-weight: 500; line-height: 1.2; }
.flow-intro { margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.option-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option-button {
  min-height: 62px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, .025);
  text-align: left;
  cursor: pointer;
}
.option-button:hover, .option-button:focus-visible { border-color: var(--gold-deep); outline: none; }
.option-button[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); background: rgba(205, 167, 95, .12); }
.option-button span { display: block; }
.question-content { margin-top: 30px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-grid.single-field { grid-template-columns: 1fr; }
.extra-fields { margin-top: 18px; }
.form-field { display: grid; gap: 9px; }
.form-field > span { color: var(--muted-strong); font-size: 14px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: var(--ink);
  background: #0b100e;
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(205, 167, 95, .1); }
.form-field input:disabled { opacity: .45; }
.form-field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.form-field input[type="number"]::-webkit-inner-spin-button,
.form-field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.textarea-field textarea { min-height: 154px; resize: vertical; line-height: 1.65; }
.textarea-field small { justify-self: end; color: #787b74; font-size: 12px; }
.contact-stack { display: grid; gap: 22px; }
.segmented { width: fit-content; display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #0b100e; }
.segmented button { min-width: 112px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; }
.segmented button[aria-pressed="true"] { color: #18130b; background: var(--gold-bright); font-weight: 700; }
.contact-note { margin: 0; color: #8c8d87; font-size: 13px; line-height: 1.7; }
.consent-list { display: grid; gap: 14px; }
.consent-row { display: flex; align-items: flex-start; gap: 13px; padding: 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 15px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.consent-row input { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--gold); }
.consent-row a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.consent-row strong { color: var(--gold); font-size: 12px; }
.required-consent { color: var(--muted-strong); }
.field-error { min-height: 22px; margin: 18px 0 0; color: var(--danger); font-size: 13px; }
.summary-list { margin: 34px 0 0; border-top: 1px solid var(--line); }
.summary-list div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: #888a84; font-size: 13px; }
.summary-list dd { margin: 0; color: var(--muted-strong); line-height: 1.6; }
.internal-preview { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(205, 167, 95, .06); }
.internal-preview span, .internal-preview strong, .internal-preview small { display: block; }
.internal-preview span { color: var(--gold); font-size: 11px; letter-spacing: .1em; }
.internal-preview strong { margin-top: 10px; color: var(--gold-bright); font-size: 17px; }
.internal-preview small { margin-top: 8px; color: #898b85; line-height: 1.6; }
.flow-actions {
  min-height: 92px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 16px clamp(22px, 5vw, 48px);
  border-top: 1px solid var(--line);
}
.primary-button, .secondary-button {
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  cursor: pointer;
}
.primary-button { border: 1px solid var(--gold-bright); color: #18130b; background: var(--gold-bright); font-weight: 700; }
.primary-button:disabled { opacity: .35; cursor: not-allowed; }
.secondary-button { border: 1px solid var(--line); color: var(--muted-strong); background: transparent; }

@media (max-width: 900px) {
  .home-shell { grid-template-columns: 1fr; gap: 48px; }
  .welcome { text-align: center; }
  .welcome h1 { font-size: clamp(62px, 14vw, 92px); }
  .architectural-art { width: 120vw; right: -50%; opacity: .14; }
}

@media (max-width: 620px) {
  .preview-banner { font-size: 11px; }
  .site-header { min-height: 72px; padding: 13px 16px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { display: none; }
  .brand { gap: 10px; flex-wrap: wrap; }
  .brand-tagline { padding-left: 10px; margin-left: 0; font-size: 12px; letter-spacing: 0; }
  .quiet-link { font-size: 13px; }
  .home-shell { min-height: auto; padding: 56px 20px; gap: 48px; }
  .welcome h1 { font-size: clamp(54px, 17vw, 76px); }
  .welcome-copy { margin-top: 24px; font-size: 16px; }
  .welcome-note { margin-top: 22px; font-size: 11px; line-height: 1.8; }
  .entrance-grid { gap: 16px; }
  .entrance-card { min-height: 146px; padding: 24px 12px; border-radius: 6px; }
  .entrance-number { top: 18px; left: 17px; font-size: 11px; }
  .entrance-kicker { font-size: 9px; }
  .entrance-card strong { font-size: 21px; }
  .entrance-description { max-width: 118px; margin-top: 8px; font-size: 12px; line-height: 1.5; }
  .entrance-card i { right: 16px; bottom: 17px; font-size: 19px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 24px 18px 30px; }
  .site-footer nav { justify-content: flex-start; gap: 12px; }
  .flow-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; border-radius: 0; }
  .flow-header { min-height: 68px; padding: 12px 14px; }
  .flow-body { padding: 38px 18px; }
  .flow-body h2 { font-size: 34px; }
  .option-grid { grid-template-columns: 1fr; margin-top: 26px; }
  .compact-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: 1fr; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; min-width: 0; }
  .summary-list div { grid-template-columns: 86px 1fr; }
  .flow-actions { min-height: 82px; padding: 14px 16px; }
  .primary-button, .secondary-button { flex: 1; padding-inline: 16px; }
}

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

.advisor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flow-body[data-step-type="advisors"] { padding: 26px 38px; }
.flow-body[data-step-type="advisors"] h2 { font-size: 32px; text-wrap: balance; }
.flow-body[data-step-type="advisors"] .flow-intro { margin-top: 12px; }
.flow-body[data-step-type="advisors"] .question-content { margin-top: 20px; }
.advisor-card { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #17201b; text-align: left; cursor: pointer; }
.advisor-card[aria-pressed="true"] { border: 2px solid var(--gold-bright); background: #282a1c; }
.advisor-card > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.advisor-card-copy { display: grid; gap: 8px; padding: 17px; line-height: 1.6; }
.advisor-card-copy strong { font: 24px var(--serif); }
.advisor-card-copy small { color: var(--gold); }
.advisor-card-copy b { color: var(--muted); font-size: 12px; font-weight: 400; }
.advisor-card-copy > span { font-size: 14px; }
.advisor-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; }
.advisor-pagination button, [data-voice-remove] { border: 1px solid var(--line); border-radius: 9px; background: transparent; min-height: 40px; padding: 8px 14px; cursor: pointer; }
.advisor-pagination button:disabled { opacity: .35; }
.voice-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.voice-section p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.voice-hold { width: 100%; min-height: 60px; border: 1px solid var(--gold); border-radius: 14px; background: #272a1c; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.voice-hold.recording { background: #713b31; border-color: #e3a39d; }
.voice-hold:disabled { opacity: .45; }
audio { display: block; max-width: 100%; margin: 12px 0; }
.resume-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.resume-picker { display: grid; gap: 12px; font-size: 16px; }
.resume-picker input { width: 100%; min-height: 44px; color: var(--muted); }
.resume-picker input::file-selector-button { min-height: 42px; padding: 0 20px; margin-right: 16px; border: 1px solid var(--gold); border-radius: 12px; color: var(--gold-bright); background: #22281b; cursor: pointer; }
.attachment-hint { color: var(--muted); font-size: 13px; line-height: 1.7; }
.resume-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.resume-file small { display: block; color: var(--muted); margin-top: 5px; }
.resume-file button { padding: 8px 12px; border: 1px solid var(--line); color: var(--ink); background: transparent; border-radius: 8px; cursor: pointer; }
@media (max-width: 620px) { .advisor-grid { grid-template-columns: 1fr; } .welcome-copy { margin-inline: auto; } .welcome-note { font-size: 16px; } .advisor-card > img { aspect-ratio: 2 / 1; } .flow-body[data-step-type="advisors"] { padding: 26px 18px; } .flow-body[data-step-type="advisors"] h2 { font-size: 28px; } }
