/* ===================================================================
   Living Legacies — Landing Page
   Warm, cinematic theme
   =================================================================== */

:root {
  --bg:          #14100c;
  --bg-soft:     #1c1712;
  --bg-card:     #221b14;
  --ink:         #f4ece0;
  --ink-soft:    #c9bdab;
  --ink-mute:    #968a78;
  --gold:        #d8a657;
  --gold-bright: #f0c87e;
  --line:        rgba(216, 166, 87, 0.18);
  --shadow:      0 30px 70px -25px rgba(0, 0, 0, 0.75);
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw:        1140px;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(216, 166, 87, 0.3);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: 92px; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px rgba(216, 166, 87, 0.65);
  z-index: 100;
  transition: width 0.12s linear;
}

/* ---------- Cinematic film-grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: 120px 0; position: relative; }

@media (max-width: 720px) {
  .section { padding: 80px 0; }
}

/* ---------- Typography ---------- */
.eyebrow,
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* Centered contexts get a matching line on both sides */
.eyebrow::after,
.center .section-label::after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title,
.cta-title,
.why-title,
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-top: 16px;
  color: var(--ink);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
  text-wrap: balance;
}

.body-text {
  font-size: 1.08rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease,
              background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #2a1d09;
  box-shadow: 0 14px 34px -12px rgba(216, 166, 87, 0.7);
}

/* Light sweep on hover */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent,
              rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-22deg);
  transition: left 0.7s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -12px rgba(216, 166, 87, 0.85);
}

.btn-primary:hover::before { left: 145%; }

.btn-lg { padding: 18px 40px; font-size: 1.02rem; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 22px;
  font-size: 0.86rem;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(216, 166, 87, 0.06);
}

.btn-text {
  color: var(--ink-soft);
  padding: 15px 8px;
}

.btn-text:hover { color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease,
              border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(20, 16, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  color: var(--gold);
  font-size: 1rem;
  transition: transform 0.45s var(--ease), text-shadow 0.45s ease;
}

.brand:hover .brand-mark {
  transform: rotate(90deg) scale(1.15);
  text-shadow: 0 0 14px rgba(240, 200, 126, 0.7);
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav { display: flex; gap: 30px; }

.nav a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.nav-toggle:hover { border-color: var(--gold); }

.nav-toggle span {
  display: block;
  width: 19px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .menu {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: min(280px, 78vw);
    padding: 14px;
    background: rgba(28, 23, 18, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.28s var(--ease),
                transform 0.28s var(--ease),
                visibility 0.28s;
  }

  .menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav {
    flex-direction: column;
    gap: 2px;
  }

  .nav a {
    padding: 12px 12px;
    border-radius: 9px;
    color: var(--ink);
  }

  .nav a:hover { background: rgba(216, 166, 87, 0.08); }
  .nav a::after { display: none; }

  .header-cta {
    width: 100%;
    margin-top: 6px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 110px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #2a2016 0%, transparent 70%),
    var(--bg);
}

.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(216,166,87,0.16) 0%, transparent 60%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.8;  transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.09); }
}

/* Floating embers */
.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.embers span {
  position: absolute;
  bottom: -12px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 9px 1px rgba(240, 200, 126, 0.55);
  opacity: 0;
  animation: rise linear infinite;
}

@keyframes rise {
  0%   { transform: translateY(0) scale(1);      opacity: 0; }
  12%  { opacity: 0.7; }
  80%  { opacity: 0.45; }
  100% { transform: translateY(-720px) scale(0.35); opacity: 0; }
}

.embers span:nth-child(1) { left: 7%;  width: 3px; height: 3px; animation-duration: 16s; animation-delay: 0s; }
.embers span:nth-child(2) { left: 19%; animation-duration: 21s; animation-delay: 5s; }
.embers span:nth-child(3) { left: 31%; width: 2.5px; height: 2.5px; animation-duration: 18s; animation-delay: 9s; }
.embers span:nth-child(4) { left: 44%; animation-duration: 24s; animation-delay: 2s; }
.embers span:nth-child(5) { left: 56%; width: 3px; height: 3px; animation-duration: 19s; animation-delay: 12s; }
.embers span:nth-child(6) { left: 68%; animation-duration: 22s; animation-delay: 7s; }
.embers span:nth-child(7) { left: 80%; width: 2.5px; height: 2.5px; animation-duration: 17s; animation-delay: 3s; }
.embers span:nth-child(8) { left: 89%; animation-duration: 23s; animation-delay: 14s; }
.embers span:nth-child(9) { left: 50%; width: 3.5px; height: 3.5px; animation-duration: 26s; animation-delay: 10s; }

.hero-inner { position: relative; z-index: 2; }

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  margin: 22px auto 0;
  max-width: 16ch;
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink-soft);
  margin: 22px auto 0;
  max-width: 34ch;
  text-wrap: balance;
}

/* Video */
.video-frame { margin: 52px auto 0; max-width: 880px; }

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
  transition: border-color 0.4s ease, box-shadow 0.4s ease,
              transform 0.4s var(--ease);
}

.video-frame:hover .video-embed {
  border-color: rgba(216, 166, 87, 0.45);
  box-shadow: var(--shadow), 0 0 60px -10px rgba(216, 166, 87, 0.4);
  transform: translateY(-4px);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-caption {
  margin-top: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro .lead { margin-bottom: 26px; }

/* ---------- What It Is ---------- */
.what-it-is { background: var(--bg-soft); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.split-text .body-text { margin-top: 18px; }

.quote-card {
  position: relative;
  background: linear-gradient(160deg, var(--bg-card), #2c2317);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 54px 44px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}

.quote-card:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  border-color: rgba(216, 166, 87, 0.4);
}

.quote-mark {
  position: absolute;
  top: 6px; left: 24px;
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
}

.quote-card p {
  position: relative;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- How It Works ---------- */
.section-head { margin-bottom: 56px; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* Accent line that draws in on hover */
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.step:hover {
  transform: translateY(-8px);
  border-color: rgba(216, 166, 87, 0.4);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.8);
}

.step:hover::before { transform: scaleX(1); }

.step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 18px 0 10px;
  color: var(--ink);
}

.step-text {
  font-size: 1rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
}

.how-cta {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.how-cta-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Why Now ---------- */
.why {
  background: var(--bg-soft);
  overflow: hidden;
}

.why-glow {
  position: absolute;
  bottom: -40%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(216,166,87,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.why .container { position: relative; z-index: 2; }

.why-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  margin-top: 20px;
  font-style: italic;
}

/* ---------- Investment & Experience Options ---------- */
.options {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, #241b12 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}

.options .section-head { margin-bottom: 26px; }

.options-intro {
  max-width: 60ch;
  margin: 0 auto 56px;
}

.options-intro .body-text + .body-text { margin-top: 14px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 50px 40px 44px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.plan::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.plan:hover {
  transform: translateY(-10px);
  border-color: rgba(216, 166, 87, 0.55);
  box-shadow: 0 32px 58px -28px rgba(0, 0, 0, 0.85),
              0 0 44px -26px rgba(216, 166, 87, 0.4);
}

.plan:hover::before { transform: scaleX(1); }

/* Featured plan */
.plan-featured {
  border-color: rgba(216, 166, 87, 0.5);
  background: linear-gradient(165deg, #2a2014, var(--bg-card));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85),
              0 0 50px -22px rgba(216, 166, 87, 0.45);
}

.plan-featured::before { transform: scaleX(1); }

@media (min-width: 821px) {
  .plan-featured { transform: translateY(-14px); }
  .plan-featured:hover { transform: translateY(-20px); }
}

.plan-name {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.plan-price {
  font-family: var(--serif);
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin: 18px 0 6px;
}

.plan-desc {
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-wrap: pretty;
  margin-top: 12px;
}

.plan-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%,
              var(--line) 82%, transparent);
  margin: 30px 0 24px;
}

.plan-includes-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 14px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.plan-features li::before {
  content: "✦";
  position: absolute;
  left: 0; top: 1px;
  font-size: 0.78rem;
  color: var(--gold);
}

.plan-features li.feature-carryover {
  color: var(--ink);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.plan-features li.feature-carryover::before { content: "↳"; }

.plan-ideal {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-wrap: pretty;
  margin-bottom: 26px;
}

.plan-ideal strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 6px;
}

.plan-cta {
  margin-top: auto;
  width: 100%;
}

.options-note {
  margin: 48px auto 0;
  max-width: 48ch;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; gap: 30px; max-width: 480px; margin: 0 auto; }
  .plan { padding: 44px 32px 40px; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-10px); }
}

/* ---------- Final CTA ---------- */
.cta {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, #2a2016 0%, transparent 70%),
    var(--bg);
}

.cta-title {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  margin-bottom: 18px;
}

.cta .body-text { margin: 0 auto 34px; max-width: 40ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Contact Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  background: linear-gradient(168deg, #241c12, var(--bg-card));
  border: 1px solid rgba(216, 166, 87, 0.32);
  border-radius: 20px;
  padding: 44px 44px 38px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9),
              0 0 70px -30px rgba(216, 166, 87, 0.4);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease,
              background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(216, 166, 87, 0.08);
  transform: rotate(90deg);
}

.modal-mark {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.modal-eyebrow { margin-bottom: 10px; }

.modal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.15;
  color: var(--ink);
}

.modal-intro {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 10px;
  text-wrap: pretty;
}

/* ---- Form ---- */
.contact-form { margin-top: 26px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 7px;
  font-weight: 500;
}

.field .optional {
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: rgba(10, 8, 6, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              background 0.2s ease;
}

.field textarea { resize: vertical; min-height: 70px; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23d8a657' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(10, 8, 6, 0.8);
  box-shadow: 0 0 0 3px rgba(216, 166, 87, 0.14);
}

.field.has-error input,
.field.has-error select {
  border-color: #d98b6a;
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: #e6a182;
  margin-top: 6px;
}

.field.has-error .field-error { display: block; }

/* Honeypot — visually hidden, kept in the layout flow for bots */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  font-size: 0.88rem;
  color: #e8a98c;
  background: rgba(217, 139, 106, 0.1);
  border: 1px solid rgba(217, 139, 106, 0.35);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.modal-submit {
  width: 100%;
  margin-top: 6px;
}

.modal-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.modal-fineprint {
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 14px;
}

/* ---- Success state ---- */
.modal-success {
  text-align: center;
  padding: 26px 10px 14px;
}

.success-mark {
  display: inline-block;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  margin-bottom: 14px;
  animation: successPop 0.6s var(--ease) both;
}

@keyframes successPop {
  0%   { transform: scale(0) rotate(-40deg); opacity: 0; }
  60%  { transform: scale(1.18) rotate(8deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.modal-success .modal-intro {
  max-width: 36ch;
  margin: 10px auto 24px;
}

@media (max-width: 560px) {
  .modal { padding: 16px; }
  .modal-dialog { padding: 38px 24px 30px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .embers { display: none; }
  .hero-glow { animation: none; }
  .btn-primary::before { display: none; }
  .scroll-progress { transition: none; }
  .modal, .modal-dialog { transition: opacity 0.2s ease; }
  .modal-dialog { transform: none; }
  .success-mark { animation: none; }
  .modal-close:hover { transform: none; }
  * { scroll-behavior: auto !important; }
}
