/* ============================================================
   Blue Sky Farm — Harvest Party
   Flat + glassy · warm palette only (no blue, no green)
   ============================================================ */
:root {
  --cream:     #fdf6e8;
  --cream-2:   #f6ead0;
  --sand:      #e8d4ac;
  --gold:      #f1cb7a;   /* soft warm yellow */
  --amber:     #e9b85a;   /* honey */
  --terracotta:#cba87c;   /* warm tan (was orange) */
  --rust:      #b18f55;   /* deeper camel tan */
  --brown:     #4a503a;   /* dark sage panel */
  --brown-deep:#343a28;   /* deep sage */
  --ink:       #423521;
  --ink-soft:  #847154;
  --sage:      #93a378;
  --sage-deep: #6d7c54;

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-soft: 0 18px 50px -20px rgba(74, 46, 18, .38);
  --shadow-card: 0 12px 30px -16px rgba(74, 46, 18, .32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; line-height: 1.06; font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 11vw, 150px) 0; }
sup { font-size: .6em; }

/* ============================================================
   GLASS UTILITY (frosted, warm-tinted)
   ============================================================ */
.glass {
  background: rgba(255, 249, 238, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ============================================================
   DECORATIVE — wheat motif (grass-seed) + film grain
   ============================================================ */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wheat { display: block; aspect-ratio: 60 / 162; height: auto; color: inherit; }

/* subtle film grain to warm the flat gradient */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* faint wheat sprigs flanking the hero, gently swaying */
.hero-sprig {
  position: absolute; top: 50%; z-index: 1;
  width: clamp(62px, 7vw, 112px);
  color: var(--sage-deep); opacity: .16;
  transform-origin: 50% 100%;
}
.hero-sprig--l { left: 5%;  animation: sway-l 7s ease-in-out infinite alternate; }
.hero-sprig--r { right: 5%; animation: sway-r 8.5s ease-in-out infinite alternate; }
@keyframes sway-l { from { transform: translateY(-50%) rotate(-3deg); } to { transform: translateY(-50%) rotate(3deg); } }
@keyframes sway-r { from { transform: translateY(-50%) scaleX(-1) rotate(-3deg); } to { transform: translateY(-50%) scaleX(-1) rotate(3deg); } }

/* small wheat crown atop the title card */
.hero-crown { display: flex; justify-content: center; margin-bottom: 12px; }
.hero-crown .wheat { width: 22px; color: var(--sage); opacity: .9; }

/* slim section divider: line — sprig — line */
.flourish { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 18px; color: var(--sage-deep); }
.flourish-line { width: 46px; height: 1.5px; background: currentColor; opacity: .4; border-radius: 2px; }
.flourish-sprig { width: 16px; opacity: .95; }
.flourish--footer { color: var(--gold); margin-bottom: 22px; }

@media (max-width: 820px) { .hero-sprig { display: none; } }

/* ============================================================
   ENVELOPE INTRO
   ============================================================ */
body.intro-locked { overflow: hidden; height: 100svh; }

.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 700px at 50% 18%, rgba(255, 240, 198, .55), transparent 60%),
    radial-gradient(700px 500px at 12% 92%, rgba(147, 163, 120, .3), transparent 64%),
    linear-gradient(160deg, #e6c47e 0%, #d6b275 60%, #cbab78 100%);
  transition: opacity .8s var(--ease), visibility .8s, background .6s var(--ease);
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 34px; perspective: 1400px; }

.envelope {
  position: relative;
  width: min(78vw, 380px);
  height: min(52vw, 252px);
  cursor: pointer;
  perspective: 900px;          /* gives the flap depth without flattening z-index */
  animation: env-bob 3.4s ease-in-out infinite;
  transition: transform .5s var(--ease);
  outline: none;
}
.envelope:focus-visible { box-shadow: 0 0 0 4px rgba(255,255,255,.6); border-radius: 12px; }
.is-open.envelope { animation: none; }
@keyframes env-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.env-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -26px; height: 36px;
  background: radial-gradient(ellipse at center, rgba(60,25,5,.45), transparent 70%);
  filter: blur(6px); transition: opacity .6s var(--ease);
}

/* paper layers */
.env-back, .env-front, .env-flap {
  position: absolute; left: 0; right: 0;
  border-radius: 10px;
}
.env-back {
  top: 0; bottom: 0; z-index: 1;
  background: linear-gradient(160deg, #e6c184, #d7a85f);
  box-shadow: 0 26px 60px -24px rgba(60,25,5,.6);
}
.env-front {
  top: 0; bottom: 0; z-index: 4;        /* full front fully hides the letter when closed */
  background: linear-gradient(160deg, #e3ba76, #cf9c52);
  border-radius: 10px;
  box-shadow: inset 0 -12px 26px -16px rgba(60,25,5,.4);
  overflow: hidden;
}
/* bottom pocket flap (slightly different shade) for an envelope look */
.env-front::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, #dcb06a, #c79348);
  clip-path: polygon(0 100%, 50% 42%, 100% 100%);
}

.env-flap {
  top: 0; height: 56%; z-index: 5;
  background: linear-gradient(160deg, #e9c486, #d9ac63);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .55s var(--ease), z-index 0s linear .3s;
  box-shadow: 0 2px 8px rgba(60,25,5,.15);
  backface-visibility: hidden;
}
.is-open .env-flap { transform: rotateX(-178deg); z-index: 1; }

/* wax seal */
.env-seal {
  position: absolute; left: 50%; top: calc(56% - 26px); z-index: 6;
  width: 52px; height: 52px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #c2a36b, #8c7042 70%);
  box-shadow: 0 4px 10px -2px rgba(60,25,5,.5), inset 0 2px 4px rgba(255,255,255,.25);
  display: grid; place-items: center;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.env-seal svg { width: 26px; height: 26px; fill: none; stroke: #ffe9cf; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.is-open .env-seal { opacity: 0; transform: translateX(-50%) scale(.4); transition-duration: .3s; }

/* the letter that rises out — fully hidden inside the envelope when closed */
.env-letter {
  position: absolute; left: 7%; right: 7%; top: 15%; z-index: 2;
  height: 72%;
  background: linear-gradient(180deg, #fffdf8, #fbf3e4);
  border-radius: 8px;
  box-shadow: 0 10px 22px -16px rgba(60,25,5,.4);
  padding: 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: transform .75s var(--ease) .65s, box-shadow .75s var(--ease) .65s;
}
.is-open .env-letter { transform: translateY(-92%); z-index: 7; box-shadow: 0 40px 70px -28px rgba(60,25,5,.6); }

/* opening: once risen, the letter blooms up to fill the screen (deterministic
   keyframe, starting from the risen position) while the whole envelope scene
   crossfades into the invitation page behind it */
.envelope.is-zoom .env-letter {
  animation: letterBloom 1s var(--ease) forwards;
  z-index: 8;
}
@keyframes letterBloom {
  0%   { transform: translateY(-92%) scale(1);   opacity: 1; }
  55%  { opacity: 1; }
  100% { transform: translateY(-52%) scale(2.7); opacity: 0; }
}

/* the letter mirrors the title card, scaled down — so it reads as the page itself */
.env-crown { display: flex; justify-content: center; margin-bottom: 2px; }
.env-crown .wheat { width: 12px; color: var(--sage); opacity: .9; }
.env-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .56rem; font-weight: 600; color: var(--sage-deep); }
.env-title { font-family: "Fraunces", serif; font-style: normal; font-weight: 600; font-size: clamp(1.5rem, 5.5vw, 2rem); letter-spacing: -.01em; color: var(--ink); line-height: .98; }
.env-sub { font-size: .66rem; color: var(--ink-soft); line-height: 1.4; max-width: 26ch; }

.intro-hint {
  color: #fff8ee; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .82rem;
  opacity: .92; animation: hint-pulse 2s ease-in-out infinite;
  transition: opacity .4s var(--ease);
}
.is-open ~ .intro-hint, .intro-hint.gone { opacity: 0; }
@keyframes hint-pulse { 0%,100% { opacity: .5; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .envelope { animation: none; }
  .env-flap, .env-letter, .intro { transition-duration: .2s; }
}

/* ============================================================
   HERO — flat warm gradient, glassy elements
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff8ee;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1100px 700px at 80% 10%, rgba(255, 240, 198, .6), transparent 60%),
    radial-gradient(820px 560px at 10% 92%, rgba(147, 163, 120, .35), transparent 62%),
    linear-gradient(158deg, #f1d690 0%, #e6c47e 48%, #d3b478 100%);
}

.hero-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
}
.nav-lockup { display: flex; flex-direction: column; line-height: 1; }
.nav-mark {
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 1.15rem; color: #fff8ee; letter-spacing: .01em;
  text-shadow: 0 2px 14px rgba(80,30,0,.3);
}
.nav-year {
  font-family: "Inter", sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: #fff8ee;
  opacity: .8; margin-top: 6px; padding-left: 2px;
  text-shadow: 0 1px 10px rgba(80,30,0,.3);
}
.nav-cta {
  color: #fff8ee; text-decoration: none; font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 22px; border-radius: 100px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: all .35s var(--ease);
}
.nav-cta:hover { background: #fff8ee; color: var(--rust); border-color: #fff8ee; transform: translateY(-1px); }

.hero-inner { position: relative; z-index: 2; padding: 0 24px; max-width: 900px; }

/* frosted-glass plaque holding the headline — keeps the glassy look while the
   title itself reads classic, flat and well-defined */
/* cream paper card — matches the letter that lifts out of the envelope, floating */
.hero-card {
  margin: 0 auto; max-width: 660px;
  padding: clamp(34px, 5vw, 58px) clamp(28px, 5vw, 56px);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8, #fbf3e4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 54px 95px -34px rgba(74, 46, 18, .52),
    0 18px 40px -22px rgba(74, 46, 18, .38),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .3em; font-size: 1rem; font-weight: 600;
  color: var(--sage-deep); margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(3rem, 9.5vw, 6.2rem);
  font-weight: 600; letter-spacing: -.015em; line-height: .98;
  color: var(--ink);
  display: flex; flex-wrap: wrap; gap: 0 .26em; justify-content: center;
}
.hero-title span { font-style: normal; }
.hero-sub {
  font-size: clamp(1.02rem, 2.2vw, 1.34rem);
  margin: 16px auto 0; max-width: 32ch; font-weight: 400;
  color: var(--ink-soft);
}
.hero-meta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 20px; border-radius: 100px; font-size: .92rem; font-weight: 500;
  color: #fff8ee;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 8px 24px -14px rgba(90,36,4,.5), inset 0 1px 0 rgba(255,255,255,.4);
}
.chip .ic { width: 18px; height: 18px; fill: none; stroke: #fff8ee; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; }
.scroll-cue span { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,248,238,.6); border-radius: 16px; position: relative; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px;
  background: #fff8ee; transform: translateX(-50%); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 1rem;
  border: none; border-radius: 100px; cursor: pointer; text-decoration: none;
  padding: 16px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn--hero {
  background: #fff8ee; color: var(--ink); margin-top: 36px;
  box-shadow: 0 16px 40px -14px rgba(80, 30, 0, .5);
}
.btn--hero:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -14px rgba(80, 30, 0, .55); }

.btn--ghost {
  background: transparent; color: var(--terracotta); border: 1.5px solid var(--terracotta);
  margin-top: 26px; padding: 13px 26px;
}
.btn--ghost:hover { background: var(--terracotta); color: #fff8ee; transform: translateY(-2px); }

.btn--submit {
  background: linear-gradient(135deg, var(--rust), var(--amber));
  color: #fff8ee; width: 100%; justify-content: center; padding: 18px; font-size: 1.08rem; margin-top: 6px;
  box-shadow: var(--shadow-card);
}
.btn--submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(140,112,66,.5); }
.btn--submit:disabled { opacity: .6; cursor: progress; transform: none; }

/* ============================================================
   STORY
   ============================================================ */
.story { background: var(--cream); text-align: center; }
.kicker {
  font-family: "Fraunces", serif; font-style: italic; color: var(--terracotta);
  font-size: 1rem; letter-spacing: .02em; margin-bottom: 16px;
}
.story h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); color: var(--ink); max-width: 16ch; margin: 0 auto; }
.story h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--amber); margin: 26px auto 0; }
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; margin: 28px auto 0; }

.section-label {
  text-transform: uppercase; letter-spacing: .26em; font-size: .82rem; font-weight: 700;
  font-family: "Inter", sans-serif; color: var(--sage-deep); text-align: center; margin-bottom: 44px;
}

/* ============================================================
   DETAILS — warm dark panel, glassy map
   ============================================================ */
.details { background: var(--brown); color: #fdf3e3; position: relative; overflow: hidden; }
.details::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 360px at 85% -10%, rgba(243, 200, 115, .28), transparent 60%);
  pointer-events: none;
}
.details-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; position: relative; }
.details .section-label { color: var(--gold); text-align: left; margin-bottom: 28px; }
.detail-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.detail-list li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.16); }
.detail-key { font-family: "Fraunces", serif; font-style: italic; color: var(--gold); font-size: 1.2rem; }
.detail-val { font-size: 1.08rem; line-height: 1.5; }
.detail-val .placeholder { color: #ecd6a8; font-style: italic; opacity: .9; }
.details-map {
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 8px;
}
.details-map iframe { width: 100%; height: 420px; border: 0; display: block; border-radius: 16px; }
.map-link { display: block; text-align: center; padding: 10px 0 2px; color: var(--gold); font-size: .82rem; font-weight: 600; text-decoration: none; }
.map-link:hover { color: #fff8ee; }

/* ============================================================
   RSVP — glass card
   ============================================================ */
.rsvp {
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(231,154,51,.18), transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--sand));
}
.rsvp-wrap {
  max-width: 640px; margin: 0 auto;
  background: rgba(255, 251, 243, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 28px; padding: clamp(32px, 5vw, 60px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.6);
}
.rsvp .section-label { color: var(--sage-deep); }
.rsvp-head { font-size: clamp(1.9rem, 4vw, 2.8rem); text-align: center; color: var(--ink); }
.rsvp-note { text-align: center; color: var(--ink-soft); margin: 10px 0 32px; font-family: "Fraunces", serif; font-style: italic; }

.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label, .label-as { font-weight: 600; font-size: .95rem; color: var(--ink); }
.hint { font-weight: 400; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=number], textarea {
  font-family: "Inter", sans-serif; font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.55); border: 1.5px solid rgba(177,143,85,.32); border-radius: 14px;
  padding: 14px 16px; transition: border-color .25s, box-shadow .25s, background .25s;
}
input::placeholder, textarea::placeholder { color: #b59873; }
input:focus, textarea:focus {
  outline: none; border-color: var(--amber); background: #fff;
  box-shadow: 0 0 0 4px rgba(231,154,51,.2);
}
textarea { resize: vertical; }

/* segmented attending control */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: rgba(255,255,255,.5); padding: 6px; border-radius: 16px; border: 1.5px solid rgba(147,163,120,.3); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  text-align: center; padding: 12px 8px; border-radius: 11px; cursor: pointer; font-weight: 500; font-size: .92rem;
  color: var(--ink-soft); transition: all .25s var(--ease);
}
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: linear-gradient(135deg, var(--sage-deep), var(--sage)); color: #fff8ee; box-shadow: 0 6px 16px -8px rgba(109,124,84,.85); font-weight: 600; }
.seg input:focus-visible + label { box-shadow: 0 0 0 3px rgba(147,163,120,.5); }

/* guests stepper */
.stepper { display: inline-flex; align-items: center; width: max-content; border: 1.5px solid rgba(177,143,85,.32); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.55); }
.stepper input { border: none; border-radius: 0; width: 72px; text-align: center; background: transparent; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { width: 48px; height: 50px; border: none; background: transparent; font-size: 1.5rem; color: var(--sage-deep); cursor: pointer; transition: background .2s; }
.step-btn:hover { background: rgba(231,154,51,.18); }

.form-error { color: #8a5a36; font-weight: 600; font-size: .92rem; text-align: center; }

#guests-field { transition: opacity .35s, max-height .45s, margin .35s; overflow: hidden; }
#guests-field.hidden-field { opacity: 0; max-height: 0; margin: -11px 0 0; pointer-events: none; }

/* success */
.rsvp-success { text-align: center; padding: 20px 0; animation: pop .6s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.rsvp-success h2 { font-size: 2.4rem; color: var(--sage-deep); margin: 18px 0 8px; }
.rsvp-success p { color: var(--ink-soft); font-size: 1.1rem; }
.check { width: 84px; height: 84px; margin: 0 auto; }
.check svg { width: 100%; height: 100%; fill: none; stroke: var(--sage-deep); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s var(--ease) .1s forwards; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   FOOTER — single flat mono wordmark
   ============================================================ */
.footer { background: var(--brown-deep); color: #fdf3e3; text-align: center; padding: 64px 24px 54px; }
.footer-mark {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.8rem; letter-spacing: .01em;
  color: var(--gold); margin-bottom: 16px;
}
.footer-tag { font-family: "Fraunces", serif; font-style: italic; color: var(--sand); font-size: 1.05rem; }
.footer-sub { color: rgba(255,255,255,.55); font-size: .92rem; margin-top: 8px; }
.footer-top { display: inline-block; margin-top: 24px; color: var(--gold); text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: .06em; }
.footer-top:hover { color: #fff8ee; }

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
.reveal, .reveal-up { opacity: 0; will-change: opacity, transform; }
.reveal { transform: translateY(18px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal-up { transform: translateY(34px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.is-in.reveal, .is-in.reveal-up { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; animation: heroUp .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .details-grid { grid-template-columns: 1fr; gap: 36px; }
  .details-map iframe { height: 320px; }
}
@media (max-width: 520px) {
  .hero-meta { flex-direction: column; align-items: center; }
  .detail-list li { grid-template-columns: 96px 1fr; }
  .nav-cta { padding: 8px 16px; font-size: .76rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal, .reveal-up { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
