/* ===========================================================================
   Magic Villa Ubud
   =========================================================================== */

:root{
  color-scheme: light;

  --brand:      #383D15;
  --ink:        #2B2F11;
  --ink-soft:   #5A603A;
  --sage:       #878D65;
  --paper:      #FBF9F3;
  --paper-2:    #F2EDE1;
  --paper-3:    #E8E2D2;
  --cream:      #F6F2E8;
  --line:       rgba(56,61,21,.16);
  --line-soft:  rgba(56,61,21,.09);

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(68px, 9vw, 132px);
  --maxw: 1280px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, .55vw + 13.4px, 17px);
  line-height: 1.75;
  letter-spacing: .004em;
  overflow-x: hidden;
}

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

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 400;
  color: var(--brand);
  letter-spacing: -.005em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p{ margin: 0 0 1.15em; }
p:last-child{ margin-bottom: 0; }

a{ color: inherit; }

/* --- shared bits ---------------------------------------------------------- */

.wrap{ width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow{ max-width: 900px; }

.section{ padding-block: var(--section); }
.section--tint{ background: var(--paper-2); }

.eyebrow{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.4em;
  display: block;
}

.h-xl{ font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
.h-lg{ font-size: clamp(2rem, 4.4vw, 3.25rem); }
.h-md{ font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
.h-sm{ font-size: clamp(1.25rem, 1.7vw, 1.5rem); }

.lede{
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 34ch;
}

.prose{ max-width: var(--measure); }
.prose p + p{ margin-top: 0; }

.rule{ height:1px; background: var(--line-soft); border:0; margin:0; }

.btn{
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 1.15em 2.2em;
  border: 1px solid var(--brand);
  background: var(--brand); color: var(--cream);
  text-decoration: none; cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.btn:hover{ background: transparent; color: var(--brand); }

.btn--ghost{ background: transparent; color: var(--brand); }
.btn--ghost:hover{ background: var(--brand); color: var(--cream); }

.btn--light{ background: transparent; color: var(--cream); border-color: rgba(246,242,232,.6); }
.btn--light:hover{ background: var(--cream); color: var(--brand); border-color: var(--cream); }

/* --- header --------------------------------------------------------------- */

.site-head{
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: clamp(14px,2.4vw,26px) var(--gutter);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.site-head.is-solid{
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: clamp(10px,1.6vw,16px);
}

.site-head__logo{ display:block; line-height:0; }
.site-head__logo img{ height: clamp(26px, 3.2vw, 34px); width:auto; transition: opacity .35s ease; }
.logo--cream{ position:absolute; top:0; left:0; }
.site-head__logo{ position:relative; }
.site-head .logo--dark{ opacity: 0; }
.site-head.is-solid .logo--dark{ opacity: 1; }
.site-head.is-solid .logo--cream{ opacity: 0; }

.nav{ display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a{
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--cream); opacity: .92;
  transition: color .35s ease, opacity .2s ease;
  position: relative; padding-block: 4px;
}
.site-head.is-solid .nav a{ color: var(--ink-soft); }
.nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.nav a:hover::after{ transform: scaleX(1); }
.nav .nav__cta{
  border: 1px solid currentColor; padding: .75em 1.5em; opacity: 1;
}
.nav .nav__cta::after{ display:none; }
.nav .nav__cta:hover{ background: var(--cream); color: var(--brand); border-color: var(--cream); }
.site-head.is-solid .nav__cta:hover{ background: var(--brand); color: var(--cream); border-color: var(--brand); }

.nav-toggle{
  display:none; background:none; border:0; padding:8px; cursor:pointer;
  width: 42px; height: 38px;
}
.nav-toggle span{ display:block; height:1px; background: var(--cream); margin: 6px 0; transition: background .35s ease, transform .3s ease, opacity .3s ease; }
.site-head.is-solid .nav-toggle span{ background: var(--ink); }
.site-head.is-open .nav-toggle span{ background: var(--ink); }
.site-head.is-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.site-head.is-open .nav-toggle span:nth-child(2){ opacity: 0; }
.site-head.is-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-toggle{ display:block; }
  .nav{
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; justify-content: center; gap: 8px;
    transform: translateY(-100%); visibility: hidden; pointer-events: none;
    transition: transform .5s cubic-bezier(.6,.05,.2,1), visibility 0s linear .5s;
    z-index: -1;
  }
  .site-head.is-open .nav{
    transform: translateY(0); visibility: visible; pointer-events: auto;
    transition: transform .5s cubic-bezier(.6,.05,.2,1), visibility 0s;
  }
  .nav a, .site-head.is-solid .nav a{ color: var(--brand); font-family: var(--display); font-size: 1.8rem; letter-spacing: .02em; text-transform: none; padding-block: 10px; }
  .nav .nav__cta{ margin-top: 18px; font-family: var(--sans); font-size: 12px; letter-spacing:.2em; text-transform: uppercase; }
  .site-head.is-open{ background: var(--paper); }
  .site-head.is-open .logo--dark{ opacity:1; }
  .site-head.is-open .logo--cream{ opacity:0; }
}

/* --- hero ----------------------------------------------------------------- */

.hero{
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px var(--gutter) clamp(56px,8vw,90px);
  isolation: isolate; overflow: hidden;
}
.hero__img{
  position:absolute; inset:0; width:100%; height:100%; object-fit: cover; z-index:-2;
  animation: heroIn 2.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes heroIn{ from{ transform: scale(1.07); } to{ transform: scale(1); } }
@media (prefers-reduced-motion: reduce){ .hero__img{ animation:none; } }

.hero::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(to bottom, rgba(20,24,8,.52) 0%, rgba(20,24,8,.16) 34%, rgba(20,24,8,.20) 62%, rgba(20,24,8,.66) 100%);
}

.hero__inner{ text-align:center; color: var(--cream); max-width: 780px; }
.hero__lockup{ width: clamp(210px, 32vw, 340px); margin: 0 auto clamp(20px,3vw,32px); }
.hero__tag{
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  line-height: 1.4; margin: 0 0 .35em; color: var(--cream);
}
.hero__meta{
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(246,242,232,.82); margin: 0 0 clamp(26px,4vw,38px);
}
.hero__scroll{
  position:absolute; bottom: clamp(20px,3vw,32px); left:50%; transform: translateX(-50%);
  color: rgba(246,242,232,.7); font-size: 10px; letter-spacing:.26em; text-transform: uppercase;
  text-decoration:none; display:flex; flex-direction:column; align-items:center; gap:10px;
}
.hero__scroll i{ display:block; width:1px; height:38px; background: linear-gradient(to bottom, rgba(246,242,232,.7), rgba(246,242,232,0)); }

/* --- facts ---------------------------------------------------------------- */

.facts{ background: var(--brand); color: var(--cream); }
.facts__grid{
  display: grid; grid-template-columns: repeat(5, 1fr);
  text-align:center;
}
.facts__item{ padding: clamp(22px,3.2vw,34px) 10px; border-left: 1px solid rgba(246,242,232,.16); }
.facts__item:first-child{ border-left: 0; }
.facts__label{ display:block; font-size: 10px; letter-spacing:.24em; text-transform:uppercase; color: rgba(246,242,232,.6); margin-bottom: .8em; }
.facts__value{ display:block; font-family: var(--display); font-size: clamp(1.1rem,2vw,1.5rem); color: var(--cream); }
@media (max-width: 720px){
  .facts__grid{ grid-template-columns: repeat(2,1fr); }
  .facts__item{ border-left:1px solid rgba(246,242,232,.16); border-top:1px solid rgba(246,242,232,.16); }
  .facts__item:nth-child(odd){ border-left:0; }
  .facts__item:nth-child(-n+2){ border-top:0; }
  .facts__item:last-child{ grid-column: 1 / -1; border-left:0; }
}

/* --- intro ---------------------------------------------------------------- */

.intro__grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 900px){ .intro__grid{ grid-template-columns: 1fr; gap: 34px; } }

.intro__aside{ position: sticky; top: 110px; }
@media (max-width: 900px){ .intro__aside{ position: static; } }

.provenance{
  margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--sage); line-height: 1.7; max-width: 46ch;
}

/* --- gallery -------------------------------------------------------------- */

/* horizontal strip — keeps the gallery to one band of the page */
.strip__track{
  display: flex; gap: clamp(10px, 1.1vw, 16px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* line the first card up with the section heading, which sits inside .wrap */
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  padding-block: 2px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.strip__track::-webkit-scrollbar{ display: none; }
.strip__track:focus-visible{ outline: 2px solid var(--brand); outline-offset: 4px; }

.gallery__item{
  flex: 0 0 auto; scroll-snap-align: center;
  height: clamp(240px, 52vh, 480px);
  aspect-ratio: 3 / 2; width: auto; max-width: 88vw;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  position: relative; overflow: hidden; display: block;
}
.gallery__item:first-child{ aspect-ratio: 4 / 3; }

.gallery__item img{ width:100%; height:100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.gallery__item:hover img{ transform: scale(1.04); }
.gallery__item::after{
  content:""; position:absolute; inset:0; opacity:0; transition: opacity .5s ease;
  background: linear-gradient(to top, rgba(23,26,10,.62), rgba(23,26,10,0) 46%);
}
.gallery__item:hover::after, .gallery__item:focus-visible::after{ opacity:1; }
.gallery__item:focus-visible{ outline: 2px solid var(--brand); outline-offset: 3px; }

.gallery__cap{
  position:absolute; left:0; right:0; bottom:0; z-index:1;
  padding: 14px 18px; text-align:left;
  color: var(--cream); font-family: var(--sans); font-size: 12.5px; font-weight:300;
  letter-spacing:.03em; line-height:1.4;
  opacity:0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease;
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap{ opacity:1; transform:none; }
@media (hover: none){ .gallery__cap{ display:none; } }

.strip__foot{
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
  margin-top: clamp(18px, 2.4vw, 28px);
}
.strip__bar{ flex:1; height:1px; background: var(--line); position:relative; }
.strip__bar i{
  position:absolute; left:0; top:-1px; height:3px; width: 12%;
  background: var(--brand); transition: left .18s linear, width .18s linear;
}
.strip__nav{ display:flex; gap: 8px; }
.strip__btn{
  width: 46px; height: 46px; border: 1px solid var(--line);
  background: transparent; color: var(--brand); cursor: pointer;
  font-size: 22px; line-height: 1; font-family: var(--sans); font-weight: 300;
  transition: background .3s ease, color .3s ease, border-color .3s ease, opacity .3s ease;
}
.strip__btn:hover{ background: var(--brand); color: var(--cream); border-color: var(--brand); }
.strip__btn[disabled]{ opacity: .3; cursor: default; }
.strip__btn[disabled]:hover{ background: transparent; color: var(--brand); border-color: var(--line); }
@media (max-width: 620px){ .strip__nav{ display:none; } }

.gallery__head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
  margin-bottom: clamp(26px,3.4vw,44px); flex-wrap: wrap;
}
.gallery__count{ font-size: 11px; letter-spacing:.24em; text-transform:uppercase; color: var(--sage); }

/* lightbox */
.lb{
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(23,26,10,.96);
  align-items:center; justify-content:center;
}
.lb.is-open{ display:flex; }
.lb__img{ max-width: min(94vw, 1300px); max-height: 82vh; object-fit: contain; }
.lb__cap{
  position:absolute; bottom: 26px; left:0; right:0; text-align:center;
  color: rgba(246,242,232,.78); font-size: 12.5px; letter-spacing:.06em;
  padding-inline: 70px;
}
.lb__btn{
  position:absolute; background:none; border:0; color: var(--cream); cursor:pointer;
  font-size: 30px; line-height:1; padding: 14px 18px; opacity:.7; transition: opacity .25s ease;
  font-family: var(--sans); font-weight: 300;
}
.lb__btn:hover{ opacity:1; }
.lb__close{ top: 14px; right: 14px; font-size: 26px; }
.lb__prev{ left: 4px; top: 50%; transform: translateY(-50%); }
.lb__next{ right: 4px; top: 50%; transform: translateY(-50%); }

/* --- spaces --------------------------------------------------------------- */

.space{
  display:grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 76px);
  align-items:center;
}
.space + .space{ margin-top: clamp(46px, 7vw, 104px); }
.space:nth-child(even) .space__media{ order: 2; }
@media (max-width: 860px){
  .space{ grid-template-columns: 1fr; gap: 22px; }
  .space:nth-child(even) .space__media{ order: 0; }
}
.space__media img{ width:100%; aspect-ratio: 4/3; object-fit: cover; max-width:100%; }
.space__title{ margin-bottom: .6em; }
.space__body{ color: var(--ink-soft); max-width: 46ch; }

/* --- two-column lists ----------------------------------------------------- */

.cols{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
@media (max-width: 860px){ .cols{ grid-template-columns: 1fr; gap: 42px; } }

.ticks{ list-style:none; margin: 0; padding: 0; }
.ticks li{
  padding: .85em 0 .85em 30px; border-bottom: 1px solid var(--line-soft);
  position: relative; color: var(--ink-soft);
}
.ticks li::before{
  content:""; position:absolute; left: 2px; top: 1.5em;
  width: 12px; height: 1px; background: var(--sage);
}
.ticks li:first-child{ padding-top:0; }
.ticks li:first-child::before{ top: .68em; }
.ticks li:last-child{ border-bottom: 0; }

.aside-note{ font-size: 14px; color: var(--sage); margin-top: 1.4em; }

/* --- location ------------------------------------------------------------- */

.loc__media{ margin-bottom: clamp(34px,5vw,64px); }
.loc__media img{ width:100%; aspect-ratio: 21/9; object-fit: cover; max-width:100%; }
@media (max-width: 700px){ .loc__media img{ aspect-ratio: 4/3; } }

.nearby{ list-style:none; margin:0; padding:0; }
.nearby li{
  display:flex; justify-content:space-between; gap: 24px; align-items: baseline;
  padding: .95em 0; border-bottom: 1px solid var(--line-soft);
}
.nearby li:last-child{ border-bottom:0; }
.nearby__place{ color: var(--ink); }
.nearby__dist{ font-size: 12.5px; letter-spacing: .08em; color: var(--sage); text-align: right; white-space: nowrap; }
@media (max-width: 520px){
  .nearby li{ flex-direction: column; gap: 2px; }
  .nearby__dist{ text-align: left; }
}

/* --- rates ---------------------------------------------------------------- */

.rates__card{
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 62px);
  text-align:center;
}
.rates__lines{ display:grid; grid-template-columns: repeat(3, 1fr); margin: clamp(24px,4vw,42px) 0; }
@media (max-width: 640px){ .rates__lines{ grid-template-columns:1fr; } }
.rates__line{ padding: clamp(14px,2vw,20px) 14px; border-left: 1px solid var(--line-soft); }
.rates__line:first-child{ border-left:0; }
@media (max-width: 640px){
  .rates__line{ border-left:0; border-top:1px solid var(--line-soft); }
  .rates__line:first-child{ border-top:0; }
}
.rates__label{ display:block; font-size:10.5px; letter-spacing:.24em; text-transform:uppercase; color: var(--sage); margin-bottom:.9em; }
.rates__value{ display:block; font-family: var(--display); font-size: clamp(1.9rem,3.4vw,2.7rem); color: var(--brand); line-height:1.1; }
.rates__sub{ display:block; font-size:12.5px; color: var(--sage); margin-top:.6em; letter-spacing:.04em; }

.rates__policy{
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-soft);
  text-align: left;
  max-width: 58ch; margin-inline: auto;
}
.rates__policy .eyebrow{ margin-bottom: 1.1em; text-align: center; }
.policy{ list-style: none; margin: 0; padding: 0; }
.policy li{
  position: relative; padding: .7em 0 .7em 26px;
  color: var(--ink-soft); font-size: 14.5px; line-height: 1.65;
  border-bottom: 1px solid var(--line-soft);
}
.policy li::before{
  content:""; position:absolute; left: 2px; top: 1.32em;
  width: 12px; height: 1px; background: var(--sage);
}
.policy li:first-child{ padding-top: 0; }
.policy li:first-child::before{ top: .62em; }
.policy li:last-child{ border-bottom: 0; }
.policy__note{ margin-top: 1.2em; font-size: 12.5px; color: var(--sage); text-align:center; }

.rates__meta{ display:flex; flex-wrap:wrap; justify-content:center; gap: 8px 28px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 1.4em; }
.rates__fx{ font-size: 12.5px; color: var(--sage); max-width: 52ch; margin-inline:auto; }

/* --- reviews -------------------------------------------------------------- */

.reviews-track{ align-items: stretch; gap: clamp(14px, 1.6vw, 22px); }

.review{
  flex: 0 0 auto; scroll-snap-align: start;
  width: clamp(266px, 74vw, 380px); max-width: 92vw;
  background: var(--paper); border: 1px solid var(--line-soft);
  padding: clamp(24px,3vw,34px);
  display: flex; flex-direction: column; margin: 0;
}
.review figcaption{ margin-top: auto; padding-top: 1.4em; }
.review__stars{ color: var(--sage); font-size: 12px; letter-spacing: .3em; margin-bottom: 1.2em; }
.review__text{
  font-family: var(--display); font-size: clamp(1.05rem,1.5vw,1.22rem); line-height: 1.62;
  color: var(--ink); margin: 0 0 1.5em;
}
.review__by{ font-size: 11px; letter-spacing:.2em; text-transform:uppercase; color: var(--brand); }
.review__meta{ font-size: 12px; color: var(--sage); letter-spacing:.04em; margin-top:.35em; }

/* --- notes ---------------------------------------------------------------- */

.notes{ display:grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px,3.4vw,44px) clamp(32px,6vw,80px); }
@media (max-width: 780px){ .notes{ grid-template-columns:1fr; } }
.note__title{ font-family: var(--display); font-size: 1.3rem; color: var(--brand); margin-bottom:.45em; }
.note__body{ color: var(--ink-soft); font-size: 15px; }

/* --- enquiry -------------------------------------------------------------- */

.enq{ background: var(--brand); color: var(--cream); }
.enq h2, .enq .h-lg{ color: var(--cream); }
.enq .eyebrow{ color: rgba(246,242,232,.55); }
.enq__grid{ display:grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px,6vw,84px); align-items:start; }
@media (max-width: 900px){ .enq__grid{ grid-template-columns:1fr; gap: 34px; } }
.enq__body{ color: rgba(246,242,232,.82); max-width: 40ch; }
.enq__mark{ width: 92px; margin-bottom: 28px; opacity:.85; }
.enq__direct{ margin-top: 2em; font-size: 13.5px; color: rgba(246,242,232,.72); }
.enq__direct a{ color: var(--cream); }

.form__row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .form__row{ grid-template-columns:1fr; } }
.field{ margin-bottom: 18px; }
.field label{
  display:block; font-size: 10.5px; letter-spacing:.22em; text-transform:uppercase;
  color: rgba(246,242,232,.62); margin-bottom: .7em;
}
.field input, .field textarea, .field select{
  width:100%; background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid rgba(246,242,232,.32);
  padding: .7em 0; font-family: var(--sans); font-size: 15px; font-weight:300;
  border-radius: 0; transition: border-color .3s ease;
}
.field textarea{ resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-bottom-color: var(--cream); }
.field input::placeholder, .field textarea::placeholder{ color: rgba(246,242,232,.4); }
.field select option{ color: var(--ink); background: var(--paper); }
.field input[type="date"]{ color-scheme: dark; }

.form__actions{ margin-top: 26px; display:flex; align-items:center; gap: 20px; flex-wrap:wrap; }
.form__note{ font-size: 12px; color: rgba(246,242,232,.55); }

.form__done{
  display:none; border: 1px solid rgba(246,242,232,.34);
  padding: clamp(24px,3vw,34px); text-align:center;
}
.form__done.is-on{ display:block; }
.form__done p{ color: rgba(246,242,232,.86); }
.form__done .h-sm{ color: var(--cream); margin-bottom:.6em; }
.hp{ position:absolute; left:-9999px; }

/* --- footer --------------------------------------------------------------- */

.site-foot{ background: var(--paper-2); padding-block: clamp(44px,6vw,72px); text-align:center; }
.site-foot__lockup{ width: clamp(150px, 20vw, 210px); margin: 0 auto clamp(18px,2.4vw,26px); }
.site-foot__meta{ font-size: 12px; letter-spacing:.18em; text-transform:uppercase; color: var(--sage); }
.site-foot__mail{ display:inline-block; margin-top: 1.6em; font-size: 13.5px; color: var(--ink-soft); }

/* --- reveal on scroll ----------------------------------------------------- */

.js .rv{ opacity:0; transform: translateY(22px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.js .rv.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .js .rv{ opacity:1; transform:none; transition:none; } }

/* --- hero: clearance between the CTA and the scroll cue (desktop only) -----
   The hero's bottom padding used to be almost exactly the height of the
   scroll cue, so on shorter desktop viewports the two collided. Mobile is
   untouched. */
@media (min-width: 721px){
  .hero{ padding-bottom: clamp(165px, 18vh, 210px); }
}
