:root {
  --oxblood: #6E1D24;
  --oxblood-deep: #5C1620;
  --clay: #B0563C;
  --clay-text: #9C4630;
  --bone: #EADFD6;
  --white: #FFFFFF;
  --ink: #241615;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- reveal-on-load animation ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fadeInUp .9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- mini header lockup ---------- */
.mini-lockup {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  mix-blend-mode: normal;
}
.mini-crest { width: 34px; height: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.mini-wordmark {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .01em;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
@media (max-width: 900px) {
  .mini-lockup { display: none; }
}

/* ---------- split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

.image-panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 320px;
}
.image-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.image-panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35,15,14,.15) 0%, rgba(35,15,14,0) 30%, rgba(35,15,14,.55) 100%);
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .image-panel img { animation: none; }
}

.content-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 8vw;
  background: var(--white);
}
.content-inner { max-width: 460px; width: 100%; }

.hero-crest {
  width: 76px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 6px 14px rgba(110,29,36,.18));
}
.crest-chevron {
  transform-origin: 60px 100px;
  animation: chevronPulse 3.6s ease-in-out infinite;
}
@keyframes chevronPulse {
  0%, 100% { opacity: .82; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .crest-chevron { animation: none; }
}

.eyebrow {
  margin: 0 0 14px;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay-text);
}

.headline {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1.12;
  font-weight: 400;
  color: var(--oxblood-deep);
}

.subtext {
  margin: 0 0 32px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4a3a38;
  font-family: Georgia, 'Times New Roman', serif;
}

/* ---------- CTA button ---------- */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: none;
  border-radius: 3px;
  background: var(--oxblood);
  color: var(--white);
  font-family: 'Source Serif 4', serif;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
  box-shadow: 0 1px 2px rgba(110,29,36,.25);
}
.cta::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease);
}
.cta:hover {
  background: var(--oxblood-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(110,29,36,.3);
}
.cta:hover::before { left: 130%; }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.cta--block { width: 100%; }
.cta--ghost {
  background: transparent;
  color: var(--oxblood);
  border: 1px solid var(--oxblood);
  box-shadow: none;
}
.cta--ghost:hover { background: var(--bone); color: var(--oxblood-deep); }

/* ---------- footer ---------- */
.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #ece3dd;
}
.foot p {
  margin: 0 0 14px;
  font-size: .82rem;
  color: #8a7a77;
  font-family: Georgia, serif;
}
.socials { display: flex; gap: 16px; }
.socials a {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--oxblood);
  background: var(--bone);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.socials svg { width: 15px; height: 15px; fill: currentColor; }
.socials a:hover { background: var(--oxblood); color: var(--white); transform: translateY(-3px); }

/* ---------- responsive split ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .image-panel { min-height: 44vh; }
  .content-panel { padding: 48px 7vw 64px; }
}

/* ================= modal ================= */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(36, 22, 21, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease);
}

.dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 40px 36px;
  box-shadow: 0 30px 70px rgba(20,8,8,.35);
  transform: translateY(18px) scale(.97);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.overlay.is-open .dialog { transform: translateY(0) scale(1); opacity: 1; }

.dialog-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: #9a8d8a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.dialog-close:hover { background: var(--bone); color: var(--oxblood); }

.dialog-crest { width: 44px; height: auto; margin-bottom: 16px; }

.dialog h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--oxblood-deep);
}
.dialog-sub {
  margin: 0 0 24px;
  font-size: .92rem;
  color: #7d6d6a;
  font-family: Georgia, serif;
}

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

label {
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  color: #6b5c59;
}
label .optional { text-transform: none; font-weight: 400; letter-spacing: 0; color: #ab9d9a; }

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  font-family: Georgia, serif;
  font-size: .95rem;
  color: var(--ink);
  background: #fbf8f6;
  border: 1px solid #e4d9d4;
  border-radius: 4px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--clay);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(176,86,60,.15);
}
input:invalid:not(:placeholder-shown), select:invalid { border-color: #d99; }

.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fbeceb;
  color: #a13a2f;
  font-size: .85rem;
}

.btn-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta.is-loading .btn-label { opacity: .6; }
.cta.is-loading .btn-spinner { display: inline-block; }
.cta.is-loading { pointer-events: none; }

/* success state */
.dialog-success { text-align: center; }
.dialog-success h2 { margin-top: 4px; }
.success-check { width: 64px; height: 64px; margin: 4px auto 18px; display: block; }
.success-check__circle {
  stroke: var(--clay);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: drawCircle .5s var(--ease) forwards;
}
.success-check__tick {
  stroke: var(--oxblood);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawTick .35s var(--ease) .45s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }
.dialog-success .cta--ghost { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .success-check__circle, .success-check__tick { animation-duration: .01s; }
}
