:root {
  color-scheme: dark;
  --ink: #f5efe4;
  --muted: #d5cbbc;
  --evergreen: #123c29;
  --evergreen-deep: #061a11;
  --black: #07100c;
  --gold: #c8a86b;
  --gold-bright: #ddc58f;
  --glass: rgba(5, 20, 13, 0.87);
  --line: rgba(200, 168, 107, 0.26);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--ink);
  overflow-x: hidden;
}

button, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--black);
}
.skip-link:focus { transform: translateY(0); }

.media-deck, .media-slide, .media-shade, .media-grain {
  position: fixed;
  inset: 0;
}

.media-deck { z-index: 0; background: #07160f; }

.media-slide {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.035);
  transition: opacity 1.2s ease, transform 9s ease;
}
.media-slide video, .media-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-slide.is-active { opacity: 1; transform: scale(1); }

.media-shade {
  background:
    linear-gradient(90deg, rgba(4, 24, 14, 0.82) 0%, rgba(12, 65, 38, 0.24) 46%, rgba(3, 10, 7, 0.66) 100%),
    linear-gradient(0deg, rgba(2, 15, 9, 0.68), transparent 62%),
    radial-gradient(circle at 22% 52%, rgba(20, 90, 50, .2), transparent 44%);
}

.media-grain {
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: clamp(18px, 3.2vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 500px);
  gap: clamp(28px, 5vw, 86px);
  align-items: stretch;
}

.brand-panel {
  min-height: calc(100vh - clamp(36px, 6.4vw, 104px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0;
}

.brand-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: #e9dfcf;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.brand-topline i { display: inline-block; width: 18px; height: 1px; margin: 0 7px 3px; background: var(--gold); }

.brand-copy { position: relative; isolation: isolate; max-width: 760px; }
.brand-logo {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: -7% 0 -4%;
  opacity: .94;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,.48));
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-bright);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(3.1rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .91;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0,0,0,.28);
}

.tagline {
  margin: 25px 0 0;
  max-width: 610px;
  color: var(--gold-bright);
  font-family: Baskerville, "Iowan Old Style", Georgia, serif;
  font-style: italic;
  letter-spacing: .025em;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.service-area {
  margin: 4px 0 0;
  color: #d8cec0;
  font-size: .9rem;
  letter-spacing: .025em;
}

.brand-phone {
  width: fit-content;
  margin: 13px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(200,168,107,.48);
  border-radius: 999px;
  background: rgba(5,38,23,.5);
  color: #f4f2e9;
  font-size: .85rem;
  font-weight: 750;
  letter-spacing: .035em;
  backdrop-filter: blur(8px);
}
.brand-phone::before { content: '☎'; margin-right: 8px; color: var(--gold); }
.brand-phone a { color: inherit; text-decoration: none; }
.brand-phone a:hover, .brand-phone a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.brand-phone.is-pending { color: rgba(255,255,255,.67); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.slide-title {
  margin: 46px 0 0;
  padding-left: 20px;
  max-width: 540px;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

.slide-meta {
  display: grid;
  grid-template-columns: auto minmax(80px, 220px) auto;
  gap: 14px;
  align-items: center;
  width: fit-content;
  color: rgba(255,255,255,.66);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.slide-rule { height: 1px; background: rgba(255,255,255,.24); overflow: hidden; }
.slide-rule span { display: block; width: 0; height: 100%; background: var(--gold); }
.slide-rule span.animate { animation: progress var(--slide-duration, 8.5s) linear forwards; }

.conversation-panel {
  align-self: center;
  min-height: min(760px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(18, 67, 42, .2), transparent 34%),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.1);
}
.conversation-panel::before {
  content: '';
  display: block;
  height: 3px;
  flex: none;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .76;
}

.conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.assistant-kicker {
  margin: 0 0 7px;
  color: var(--gold-bright);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 168, 107, .12);
}
h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; }

.icon-button {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover, .icon-button:focus-visible { background: rgba(255,255,255,.09); }

.assistant-note {
  margin: 14px 20px 0;
  padding: 13px 15px;
  border: 1px solid rgba(200,168,107,.34);
  border-radius: 12px;
  background: rgba(200,168,107,.08);
  color: #e9e4d9;
  font-size: .78rem;
  line-height: 1.5;
}
.assistant-note strong { display: block; color: var(--gold-bright); }

.messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 22px 10px;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}
.user-message { justify-content: flex-end; }
.message-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,107,.58);
  background: #0c3220;
  color: var(--gold-bright);
  font: 700 .72rem Georgia, serif;
}
.message-bubble {
  max-width: 84%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  background: rgba(255,248,236,.065);
  color: #f3ede4;
  font-size: .9rem;
  line-height: 1.52;
}
.message-bubble p { margin: 0; }
.user-message .message-bubble {
  border-color: rgba(200,168,107,.4);
  border-radius: 16px 4px 16px 16px;
  background: rgba(24,83,51,.45);
}
.error-message .message-bubble { border-color: rgba(236, 132, 112, .46); background: rgba(173, 60, 43, .16); }

.summary-card {
  margin-top: 11px;
  padding: 13px;
  border: 1px solid rgba(200, 168, 107, .3);
  border-radius: 12px;
  background: rgba(2, 10, 7, .36);
}
.summary-card h3 { margin: 0 0 8px; font-size: .78rem; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .1em; }
.summary-card dl { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5px 12px; margin: 0; font-size: .78rem; }
.summary-card dt { color: #aab0a7; }
.summary-card dd { margin: 0; overflow-wrap: anywhere; }
.summary-warning { margin: 11px 0 0; color: var(--gold-bright); font-size: .72rem; font-weight: 700; }

.quick-prompts {
  display: flex;
  gap: 7px;
  padding: 8px 22px 10px;
  overflow-x: auto;
}
.quick-prompts button {
  flex: none;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  font-size: .72rem;
  cursor: pointer;
}
.quick-prompts button:hover, .quick-prompts button:focus-visible { border-color: var(--gold); background: rgba(200,168,107,.12); }

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin: 0 20px;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(4,13,8,.58);
}
.chat-form:focus-within { border-color: rgba(200,168,107,.76); box-shadow: 0 0 0 3px rgba(200,168,107,.1); }
textarea {
  min-height: 30px;
  max-height: 110px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  line-height: 1.45;
}
textarea::placeholder { color: #949d94; }
.send-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: #211207;
  cursor: pointer;
}
.send-button:disabled { opacity: .45; cursor: wait; }
.send-button svg { width: 19px; fill: currentColor; }

.privacy-note { margin: 8px 24px 13px; color: #8f9990; font-size: .64rem; }

.privacy-note a,
.message-contact-links a,
.privacy-card a {
  color: var(--gold-bright);
  text-underline-offset: .18em;
}

.message-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-top: .75rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(200,168,107,.32);
}

.message-contact-links a { font-weight: 700; }

.privacy-page {
  min-height: 100vh;
  padding: clamp(1.25rem, 4vw, 4rem);
  color: var(--ink);
  background: radial-gradient(circle at top right, rgba(31,89,60,.55), transparent 42%), #06140e;
}

.privacy-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(200,168,107,.36);
  border-radius: 1.25rem;
  background: rgba(5,22,15,.9);
  box-shadow: 0 1.5rem 5rem rgba(0,0,0,.35);
}

.privacy-card h1,
.privacy-card h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.privacy-card h1 { margin: .5rem 0 1.5rem; font-size: clamp(2.25rem, 8vw, 4.5rem); line-height: .98; }
.privacy-card h2 { margin: 2rem 0 .5rem; color: var(--gold-bright); font-size: 1.35rem; }
.privacy-card p { color: #c8cec7; line-height: 1.7; }
.privacy-card .privacy-back { margin-top: 2.5rem; }
.privacy-card .privacy-updated { margin-bottom: 0; color: #8f9990; font-size: .82rem; }

.noscript-note { position: fixed; z-index: 30; inset: auto 15px 15px; padding: 12px; background: #5a291f; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 940px) {
  .site-shell { grid-template-columns: 1fr; align-items: end; padding: 18px; }
  .brand-panel { min-height: 42vh; padding: 8px; }
  h1 { max-width: 570px; font-size: clamp(3.3rem, 11vw, 6.5rem); }
  .tagline { margin-top: 16px; }
  .slide-title { display: none; }
  .conversation-panel { min-height: 58vh; max-height: 78vh; }
}

@media (max-width: 600px) {
  .site-shell { min-height: 100svh; padding: 10px; gap: 12px; }
  .brand-panel { min-height: 31svh; padding: 9px 8px 0; }
  .brand-topline { font-size: .62rem; }
  .eyebrow { margin-bottom: 9px; font-size: .64rem; }
  .brand-logo { width: min(100%, 430px); margin: -9% 0 -2%; }
  .brand-phone { margin-top: 9px; padding: 6px 10px; font-size: .76rem; }
  .brand-phone.is-pending { font-size: .62rem; }
  .slide-meta { display: none; }
  .conversation-panel { min-height: 63svh; max-height: 68svh; border-radius: 9px; }
  .conversation-header { padding: 16px 17px 13px; }
  .assistant-kicker { margin-bottom: 4px; }
  h2 { font-size: 1.03rem; }
  .messages { padding: 16px 14px 6px; }
  .message-bubble { max-width: 88%; font-size: .84rem; }
  .quick-prompts { padding-inline: 14px; }
  .chat-form { margin-inline: 12px; }
  .privacy-note { margin-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .media-slide { transform: none !important; }
  .slide-rule span { width: 100%; }
}
