/* ============================================================
   Cavallo Ranch — cavalloranch.com
   Brand book: "Cavallo Ranch Brand Guidelines and Website RD1"
   Palette (slide 16 — dark, rich earth tones, luxury/landscape):
     #454142  PMS 4287 C   Slate Gray   (charcoal)
     #696158  PMS 405 C    Warm Gray    (taupe)
     #B33D26  PMS 7599 C   Desert Orange
     #F8CFA9  PMS 2015 C   Polo Sand
   Typography (slide 17):
     Headlines/logo — Gravesend Sans (Medium/Bold) → Oswald (free stand-in,
       condensed grotesque; set uppercase as the brand does)
     Body/messaging — Avenir LT Pro 45 Book → Montserrat (free geometric sans)
   Clean, image-forward, generous whitespace.
   ============================================================ */

:root {
  --charcoal:  #454142;
  --taupe:     #696158;
  --orange:    #B33D26;
  --sand:      #F8CFA9;

  --paper:     #fdfbf8;
  --sand-tint: #faf1e6;   /* sand at low opacity, for section bands */
  --ink:       #2e2b2c;   /* charcoal, darkened for body text */
  --muted:     #696158;
  --line:      rgba(69,65,66,0.14);

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --head-h: 84px;

  --f-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Visually hidden but available to screen readers / SEO */
.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;
}

/* ---------- type ----------
   Oswald (→ Gravesend Sans): condensed grotesque, set uppercase and tracked,
   Medium weight for headlines per the brand book. */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 { font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 68ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}
.btn:hover { background: var(--orange); border-color: var(--orange); }
.btn--ghost { background: transparent; color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn--light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--charcoal); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,251,248,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); gap: 2rem; }
.brand img { height: 56px; width: auto; }
.brand .brand-fallback { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .04em; color: var(--charcoal); }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav > a {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 400; color: var(--charcoal); position: relative; white-space: nowrap;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--orange); transition: width .3s;
}
.nav > a:not(.btn):hover::after,
.nav > a[aria-current="page"]::after { width: 100%; }
.nav > a[aria-current="page"] { color: var(--orange); }
/* Keep the header CTA's white text — .nav > a (higher specificity) was
   otherwise forcing it to charcoal, rendering charcoal-on-charcoal. */
.nav > a.btn { color: #fff; }
.nav > a.btn:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--charcoal);
  transition: transform .3s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--head-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.75rem;
    transform: translateY(-130%); transition: transform .35s ease;
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav > a.btn { margin-top: 1.25rem; border: 1px solid var(--charcoal); text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: clamp(560px, 88vh, 900px); text-align: center; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; background: var(--charcoal); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
/* Poster sits beneath; video fades in only once it is actually playing.
   Safari (esp. iOS Low Power Mode) may refuse autoplay — the photo shows instead. */
.hero__poster { position: absolute; inset: 0; z-index: 1; }
.hero__video {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0; transition: opacity .6s ease;
}
.hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,43,44,.42) 0%, rgba(46,43,44,.28) 50%, rgba(46,43,44,.62) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
/* Bare video hero (home): no text overlay, so drop the darkening gradient
   and let the intro video play full-bleed. */
.hero--bare::after { display: none; }
.hero .eyebrow { color: var(--sand); }
.hero h1 { font-size: clamp(3.2rem, 9vw, 7rem); margin-bottom: 1.4rem; letter-spacing: 0.01em; }
.hero p { max-width: 56ch; margin: 0 auto 2.4rem; font-size: 1.12rem; opacity: .95; font-weight: 300; }

.pagehero { min-height: clamp(520px, 78vh, 820px); }
.pagehero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 0; }

/* ---------- sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--tint { background: var(--sand-tint); }
.section--dark { background: var(--charcoal); color: #fff; }
.section--dark .eyebrow { color: var(--sand); }
.section--dark p { opacity: .88; }

.section-head { max-width: 66ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 1.25rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: rgba(255,255,255,.85); }

/* ---------- amenities ---------- */
.amenities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.amenity { background: var(--paper); padding: 2.6rem 1.25rem; text-align: center; }
.amenity .num { display: block; font-family: var(--f-display); font-size: 2.6rem; color: var(--orange); line-height: 1; margin-bottom: .65rem; }
.amenity p { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .amenities { grid-template-columns: repeat(2, 1fr); } }

/* ---------- feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center; margin-block: clamp(3.5rem, 7vw, 7rem);
}
.feature:first-of-type { margin-top: 0; }
.feature:last-of-type { margin-bottom: 0; }
.feature--flip .feature__media { order: 2; }
.feature__media { aspect-ratio: 4/3; overflow: hidden; background: var(--sand-tint); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.feature__media:hover img { transform: scale(1.045); }
.feature h3 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1.1rem; }
.feature p { color: var(--muted); margin-bottom: 1.8rem; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature--flip .feature__media { order: 0; }
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure { overflow: hidden; background: var(--sand-tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.gallery figure:hover img { transform: scale(1.05); }
.g-6 { grid-column: span 6; aspect-ratio: 3/2; }
.g-4 { grid-column: span 4; aspect-ratio: 1; }
.g-8 { grid-column: span 8; aspect-ratio: 16/9; }
@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-6, .g-4, .g-8 { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.card { border: 1px solid var(--line); padding: 2.5rem 2rem; background: var(--paper); transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--orange); transform: translateY(-4px); }
.card h3 { font-size: 1.75rem; margin-bottom: .65rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- rooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.room__media { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 1.2rem; background: var(--sand-tint); }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.room:hover .room__media img { transform: scale(1.05); }
.room h3 { font-size: 1.55rem; margin-bottom: .3rem; }
.room p { font-size: .88rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- attractions ---------- */
.attractions { border-top: 1px solid var(--line); }
.attraction {
  display: grid; grid-template-columns: 3rem 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 2rem 0; border-bottom: 1px solid var(--line); transition: background .3s;
}
.attraction:hover { background: var(--sand-tint); }
.attraction .idx { font-family: var(--f-display); font-size: 1.4rem; color: var(--orange); }
.attraction h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.attraction p { color: var(--muted); font-size: .95rem; }
.attraction .dist { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 660px) {
  .attraction { grid-template-columns: 2rem 1fr; row-gap: .5rem; }
  .attraction .dist { grid-column: 2; }
}

/* ---------- map embed ---------- */
.map-embed {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand-tint);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 660px) { .map-embed { aspect-ratio: 4 / 3; } }

/* Stay virtual tour (Matterport): large, centered, no collapse */
#virtual-tour .map-embed { aspect-ratio: auto; width: 100%; height: clamp(440px, 64vh, 700px); max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Location: text left, smaller map right */
.location-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.location-grid .section-head { margin-bottom: 0; }
.location-grid .map-embed { margin-top: 0; }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- CTA band ---------- */
.cta { background: var(--charcoal); color: #fff; text-align: center; padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.cta .eyebrow { color: var(--sand); }
.cta h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 1.3rem; }
.cta p { max-width: 50ch; margin: 0 auto 2.4rem; opacity: .86; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1.05rem; border: 1px solid var(--line);
  background: #fff; font-family: var(--f-body); font-size: 1rem; font-weight: 300; color: var(--ink);
}
.field textarea { resize: vertical; }
.contact-photo { margin: 0 0 2rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-tint); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.detail:first-child { border-top: 1px solid var(--line); }
.detail dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.detail dd { font-size: 1.05rem; }
.detail dd a:hover { color: var(--orange); }
.consent { font-size: .78rem; color: var(--muted); line-height: 1.55; margin: 1.25rem 0 1.5rem; }
.form-note { margin-top: 1.1rem; color: var(--orange); font-weight: 400; display: none; }

/* ---------- footer ---------- */
.site-foot { background: var(--charcoal); color: rgba(255,255,255,.82); padding-block: clamp(1.9rem, 3.5vw, 2.9rem); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.25rem; margin-bottom: 1.6rem; }
.foot-brand img { height: 48px; width: auto; margin-bottom: .8rem; }
.foot-brand p { max-width: 34ch; font-size: .9rem; opacity: .8; }
.foot-col h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: .8rem; font-family: var(--f-body); font-weight: 400; }
.foot-col a { display: block; padding: .28rem 0; font-size: .9rem; transition: color .25s; }
.foot-col a:hover { color: var(--sand); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .8rem; opacity: .7;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ---------- footer legal links ---------- */
.foot-legal a { transition: color .25s; }
.foot-legal a:hover { color: var(--sand); }

/* ---------- legal / policy pages ---------- */
.legal-body { max-width: 74ch; }
.legal-body h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: .8rem; }
.legal-body h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: .5rem; }
.legal-body p { color: var(--muted); margin-bottom: 1rem; }
.legal-body ul { color: var(--muted); margin: 0 0 1rem 1.25rem; }
.legal-body li { margin-bottom: .4rem; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: .92rem; }
.legal-body th, .legal-body td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body thead th { font-family: var(--f-body); font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--line); }

/* blog index cards */
a.card { display: block; }
a.card h3 { transition: color .25s; }
a.card:hover h3 { color: var(--orange); }
.card-date { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.card-more { display: inline-block; margin-top: 1rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.notice {
  border: 1px solid var(--orange);
  background: var(--sand-tint);
  color: var(--ink);
  padding: 1rem 1.25rem;
  margin-bottom: 2.25rem;
  font-size: .95rem;
  line-height: 1.55;
}

/* ---------- room gallery + lightbox ---------- */
.room--clickable { cursor: pointer; }
.room--clickable .room__media { position: relative; }
.room__more {
  position: absolute; right: .6rem; bottom: .6rem;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(69,65,66,.72); padding: .4rem .7rem;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.room--clickable:hover .room__more,
.room--clickable:focus-visible .room__more { opacity: 1; transform: none; }

/* Horizontal scrolling photo strip */
.photo-strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem var(--gutter) 1.25rem; -webkit-overflow-scrolling: touch;
}
.ps-item {
  flex: 0 0 auto; width: clamp(240px, 42vw, 420px); aspect-ratio: 3 / 2;
  padding: 0; border: 0; background: var(--sand-tint); cursor: pointer;
  overflow: hidden; scroll-snap-align: start;
}
.ps-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.ps-item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(20,18,18,.94); padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }
.lb-stage { margin: 0; max-width: min(1100px, 92vw); display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lb-stage img { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lb-cap { color: #fff; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .25s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1.1rem; right: 1.1rem; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.2rem; line-height: 1; }
.lb-prev { left: 1.1rem; } .lb-next { right: 1.1rem; }
.lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .8rem; letter-spacing: .1em; }
@media (max-width: 600px) {
  .lb-nav { width: 42px; height: 42px; font-size: 1.8rem; }
  .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
}

/* ---------- inline feature video (Experience: Maker) ---------- */
.maker-video { max-width: 1000px; margin: 0 auto; }
.maker-video video { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: var(--charcoal); }

/* ---------- video gallery ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }
.video-item { margin: 0; }
.video-frame { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-tint); border: 1px solid var(--line); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-item figcaption { margin-top: .75rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- floating Inquire button ---------- */
.inquire-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; left: auto; z-index: 900;
  display: inline-block; background: var(--sand); color: var(--charcoal);
  font-family: var(--f-body); font-weight: 600; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .9rem 1.5rem; box-shadow: 0 8px 22px rgba(0,0,0,.28);
  animation: fabFloat 2.6s ease-in-out infinite;
  transition: background .25s, color .25s, transform .25s;
}
.inquire-fab:hover { background: var(--charcoal); color: #fff; transform: translateY(-3px); animation: none; }
@keyframes fabFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 600px) { .inquire-fab { right: .8rem; bottom: .8rem; padding: .78rem 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .inquire-fab { animation: none; } }

/* ---------- email signup popup ---------- */
.signup { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; background: rgba(20,18,18,.6); padding: 1.25rem; }
.signup.open { display: flex; }
.signup__card { position: relative; background: var(--paper); max-width: 420px; width: 100%; padding: clamp(1.75rem, 4vw, 2.75rem); border-top: 3px solid var(--orange); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.signup__card h3 { font-size: 1.8rem; margin: .35rem 0 .6rem; }
.signup__card p { color: var(--muted); font-size: .98rem; }
.signup__close { position: absolute; top: .5rem; right: .8rem; background: none; border: 0; font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; }
.signup__form { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.signup__form input { padding: .9rem 1rem; border: 1px solid var(--line); background: #fff; font-family: var(--f-body); font-size: 1rem; color: var(--ink); }
.signup__form .btn { margin-top: .25rem; }
.signup__note { font-size: .72rem; color: var(--muted); line-height: 1.5; }
.signup__note a { text-decoration: underline; }
.signup__msg { font-size: .85rem; color: var(--orange); font-weight: 500; margin-top: .25rem; }
.signup__msg:empty { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
