/* ==========================================================================
   NEWLY MADE — studio site
   Hand-edited. The page HTML is generated by scripts/build-site.py — never
   edit site/*.html directly, the next build overwrites it.

   Mobile-first, authored at 390px. Widen with min-width queries only.
   NO layout in inline styles anywhere — media queries can't override them.
   Tokens and the lime rule live in BRAND.md §3.
   ========================================================================== */

:root {
  --ink:        #0B0B0C;
  --ink-2:      #17171A;
  --paper:      #F4F1EA;
  --paper-2:    #E9E5DB;
  --lime:       #CCFF00;
  --muted:      #5C5A54;   /* on paper */
  --muted-ink:  #9A9A93;   /* on ink   */
  --wa:         #25D366;   /* WhatsApp CTAs ONLY */
  --wa-dark:    #128C4A;

  --line:       rgba(11,11,12,.13);
  --line-ink:   rgba(244,241,234,.16);

  --wrap:       1080px;
  --r:          14px;
  --r-sm:       9px;
  --bar-h:      34px;      /* draft ribbon; body padding reads this */

  /* Archivo Black / Inter / JetBrains Mono are not self-hosted yet — see
     README §Fonts. The stacks below are the shipping fallbacks; dropping the
     woff2 files in changes only the first name in each list. */
  --display: "Archivo Black", "Archivo", system-ui, -apple-system, "Segoe UI",
             Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
             "Cascadia Mono", "Roboto Mono", monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* figure/blockquote/dl default margins are 40px per side and WILL break a grid
   — this exact bug cost a debugging session on the Ekam gallery. */
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .95;
  text-transform: uppercase;
}
h1.display { font-size: clamp(2.6rem, 12vw, 5.5rem); }
h2.display { font-size: clamp(1.9rem, 7.5vw, 3rem); }
h3.display { font-size: clamp(1.2rem, 4.5vw, 1.6rem); }

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
code { font-family: var(--mono); font-size: .86em; background: rgba(11,11,12,.07);
       padding: 1px 5px; border-radius: 4px; }
.ink code { background: rgba(244,241,234,.12); }
.lede { font-size: 1.06rem; color: var(--muted); max-width: 46ch; }
.ink  .lede, .ink .muted { color: var(--muted-ink); }
.muted { color: var(--muted); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
section { padding-block: 56px; }
.ink { background: var(--ink); color: var(--paper); }
.sec-head { margin-bottom: 28px; }
.sec-head .mono { color: var(--muted); display: block; margin-bottom: 10px; }
.ink .sec-head .mono { color: var(--lime); }

/* ---------- sticker — the label half of the identity (BRAND.md §4) ---------- */
.sticker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .64rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
}
.sticker--lime { background: var(--lime); color: var(--ink); }
.sticker--ghost { background: none; color: var(--muted); border: 1px solid var(--line); }
.ink .sticker--ghost { color: var(--muted-ink); border-color: var(--line-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 650; font-size: .95rem; letter-spacing: -.01em;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.ink .btn--primary { background: var(--lime); color: var(--ink); }
.btn--wa { background: var(--wa); color: #06251A; }
.btn--ghost { border: 1.5px solid var(--line); }
.ink .btn--ghost { border-color: var(--line-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.hdr__right { display: flex; align-items: center; gap: 14px; }
.readout { display: none; }
@media (min-width: 560px) { .readout { display: inline-block; } }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand__txt {
  font-family: var(--display); font-weight: 900; font-size: 1.02rem;
  letter-spacing: -.045em; text-transform: uppercase; white-space: nowrap;
}
.nav { display: none; }
.nav a { font-size: .92rem; font-weight: 550; padding: 8px 2px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.burger { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -8px; }
.burger span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after  { top: 0; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); z-index: 60;
  background: var(--ink); color: var(--paper);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
  padding: 84px 26px 26px; display: flex; flex-direction: column; gap: 4px;
}
.nav-open .drawer { transform: translateX(0); }
.drawer a { font-family: var(--display); font-size: 1.5rem; padding: 11px 0; letter-spacing: -.03em; text-transform: uppercase; }
.drawer a[aria-current="page"] { color: var(--lime); }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(11,11,12,.5); opacity: 0; pointer-events: none; transition: opacity .26s; }
.nav-open .scrim { opacity: 1; pointer-events: auto; }
.nav-open body { overflow: hidden; }

/* ---------- scroll progress — "built to be scrolled", made literal ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--lime); z-index: 70; }

/* ---------- hero ---------- */
.hero { padding-block: 48px 52px; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.12rem; }
.hero__mark { width: 62px; height: 62px; color: var(--ink); margin-bottom: 22px; }
.hero__mark polyline { stroke-dasharray: 260; stroke-dashoffset: 0; }
.js-draw .hero__mark polyline { animation: draw .75s cubic-bezier(.65,0,.35,1) .15s both; }
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

/* ---------- price strip ---------- */
.prices { display: grid; gap: 12px; }
.price {
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px;
  background: var(--paper-2); display: flex; flex-direction: column; gap: 9px;
}
.ink .price { background: var(--ink-2); border-color: var(--line-ink); }
.price__n { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; color: var(--muted); }
.ink .price__n { color: var(--lime); }
.price__fig { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price__was { font-family: var(--mono); font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.ink .price__was { color: var(--muted-ink); }
.price__now { font-family: var(--display); font-size: 1.85rem; letter-spacing: -.04em; }
.price__quote { font-family: var(--display); font-size: 1.35rem; letter-spacing: -.03em; }
/* two tiers inside one card — website only vs website + domain */
.tiers { display: grid; gap: 8px; width: 100%; }
.price__fig > .tiers { flex: 1 1 100%; }
.tier {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-radius: var(--r-sm);
  background: rgba(244,241,234,.05); border: 1px solid var(--line-ink);
}
.tier__label { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
               text-transform: uppercase; color: var(--muted-ink); }
.tier__fig { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.tier__was { font-family: var(--mono); font-size: .76rem; color: var(--muted-ink);
             text-decoration: line-through; }
.tier__now { font-family: var(--display); font-size: 1.32rem; letter-spacing: -.04em; }
.tier--hero .tier__now { color: var(--lime); }

.price ul { display: grid; gap: 5px; font-size: .9rem; color: var(--muted); }
.ink .price ul { color: var(--muted-ink); }
.price li::before { content: "— "; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 14px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--paper-2); display: flex; flex-direction: column;
}
.ink .card { background: var(--ink-2); border-color: var(--line-ink); }
.card__body { padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.card__link { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; margin-top: auto; padding-top: 6px; }
.card__link span { box-shadow: inset 0 -2px 0 var(--lime); }
.card__note { font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.ink .card__note { color: var(--muted-ink); border-color: var(--line-ink); }

/* Live preview: the real page in an iframe, scaled to fit and slowly creeping
   down so the card shows the actual design moving rather than a black box.
   width:300% + scale(1/3) makes the frame render at a desktop width whatever
   the card measures, so it stays responsive with no JS. */
.thumb--live .thumb__screen { position: absolute; inset: 22px 0 0; overflow: hidden; background: var(--paper); }
.thumb--live iframe {
  width: 300%; height: 900%; border: 0; display: block;
  transform-origin: 0 0; transform: scale(.33333) translateY(0);
  pointer-events: none;
  animation: creep 26s ease-in-out infinite alternate;
}
@keyframes creep {
  0%, 6%    { transform: scale(.33333) translateY(0); }
  94%, 100% { transform: scale(.33333) translateY(-62%); }
}
.thumb__url {
  flex: 1; font-family: var(--mono); font-size: .52rem; letter-spacing: .04em;
  color: rgba(244,241,234,.38); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-align: center;
}
.card--live { position: relative; }
.card--live .thumb { border-bottom: 1px solid var(--line-ink); }

/* thumb: a browser chrome frame, drawn in CSS — no images to ship */
.thumb { aspect-ratio: 16/10; background: var(--ink); position: relative; overflow: hidden; }
.thumb__bar { height: 22px; background: var(--ink-2); display: flex; align-items: center; gap: 5px; padding-inline: 10px; }
.thumb__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(244,241,234,.22); }
.thumb__body { position: absolute; inset: 22px 0 0; display: grid; place-items: center; padding: 14px; }
.thumb__body .display { font-size: 1.5rem; text-align: center; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ink .steps { border-color: var(--line-ink); }
.step { background: var(--paper-2); padding: 18px; display: flex; gap: 14px; }
.ink .step { background: var(--ink-2); }
.step__n { font-family: var(--mono); font-size: .72rem; color: var(--muted); flex: none; padding-top: 3px; }
.ink .step__n { color: var(--lime); }

/* ---------- form ---------- */
.form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 16px;            /* 16px minimum or iOS zooms the page on focus */
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); width: 100%;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 1px;
}

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--paper); padding-block: 44px 34px; }
.ftr__top { display: grid; gap: 26px; }
.ftr__brand svg { width: 34px; height: 34px; color: var(--lime); }
.ftr a:hover { color: var(--lime); }
.ftr__cols { display: grid; gap: 24px; }
.ftr__col h4 { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); margin-bottom: 9px; font-weight: 400; }
.ftr__col li { padding: 4px 0; font-size: .93rem; }
.ftr__end { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-ink); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: .78rem; color: var(--muted-ink); }

/* ---------- draft ribbon — delete with CONTEXT.md §6 ---------- */
.draft {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; height: var(--bar-h);
  background: var(--lime); color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase;
}

/* ---------- mascot ----------------------------------------------------- */
/* A character built out of the brand: the favicon's rounded square for a body,
   the NM mark for a grin. Eyes follow the scroll direction, because the whole
   promise of the place is "built to be scrolled". */
.mascot { width: 128px; height: 128px; display: block; overflow: visible; }
.mascot__body { animation: bob 3.4s ease-in-out infinite; transform-origin: 60px 60px; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
.mascot__eye { transform-origin: center; animation: blink 6s infinite; }
.mascot__eye--r { animation-delay: .08s; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(.08); }
}
.mascot__pupils { transition: transform .35s cubic-bezier(.22,1,.36,1); }
.mascot__grin polyline { stroke-dasharray: 90; stroke-dashoffset: 90; }
.js-draw .mascot__grin polyline { animation: draw-grin .7s cubic-bezier(.65,0,.35,1) .35s both; }
@keyframes draw-grin { to { stroke-dashoffset: 0; } }
.mascot__shadow { animation: shrink 3.4s ease-in-out infinite; transform-origin: 60px 116px; }
@keyframes shrink { 0%,100% { transform: scaleX(1); opacity: .16 } 50% { transform: scaleX(.8); opacity: .1 } }

.hero__top { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
/* ---------- live scroll readout — the tagline, performed ---------------- */
.readout {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---------- marquee ----------------------------------------------------- */
.marquee { background: var(--lime); color: var(--ink); overflow: hidden; padding: 11px 0; }
.marquee__track {
  display: inline-block; white-space: nowrap;
  font-family: var(--display); font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: -.02em; animation: slide 30s linear infinite;
}
.marquee__track span { padding-inline: 18px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- scroll reveal ----------------------------------------------- */
/* Scoped to .js-reveal, which app.js adds to <html> immediately before it sets
   up the observer. If the script is missing, stale-cached, blocked or throws,
   the class is never added and everything stays visible. Content must never
   depend on JS to be readable. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal.is-in { opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); width: auto; height: auto; clip: auto; }

/* ---------- wider ---------- */
@media (min-width: 700px) {
  section { padding-block: 76px; }
  .hero { padding-block: 66px 76px; }
  .nav { display: flex; gap: 26px; align-items: center; }
  .burger { display: none; }
  .prices { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .ftr__cols { grid-template-columns: repeat(3, 1fr); }
  .ftr__top { grid-template-columns: 260px 1fr; gap: 40px; }
}
@media (min-width: 1000px) {
  .hero__mark { width: 76px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js-draw .hero__mark polyline { animation: none; stroke-dashoffset: 0; }
  .js-draw .mascot__grin polyline { animation: none; stroke-dashoffset: 0; }
  .mascot__body, .mascot__eye, .mascot__shadow, .marquee__track { animation: none !important; }
  .thumb--live iframe { animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Reel section — three 9:16 frames, each a recognisable app.
   Every screen is CSS + inline SVG: no screenshots, no device photos, no
   trademarked logo files. The point is that a villa owner recognises the
   surface instantly, so fidelity of layout matters more than decoration.
   Each phone loops 3 scenes on a 12s cycle, offset 4s apart.
   ========================================================================== */
.reel { display: grid; gap: 26px; }
.reel__item { display: flex; flex-direction: column; gap: 14px; }

.phone {
  aspect-ratio: 9 / 16; width: 100%; max-width: 300px; margin-inline: auto;
  position: relative; border-radius: 30px; overflow: hidden;
  background: #000; border: 6px solid #202024;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.phone__notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 16px; border-radius: 99px; background: #000; z-index: 9; }
.scene { position: absolute; inset: 0; opacity: 0; animation: scenes 12s infinite;
         display: flex; flex-direction: column; font-size: 7px; line-height: 1.35; }
.scene--2 { animation-delay: 4s; } .scene--3 { animation-delay: 8s; }
@keyframes scenes { 0%,1%{opacity:0} 4%,29%{opacity:1} 33%,100%{opacity:0} }

.statusbar { display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px 3px; font-size: 7px; font-weight: 700; flex: none; }
.statusbar i { display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; margin-left: 2px; vertical-align: middle; }

/* ---------------- Instagram ---------------- */
.ig { background: #fff; color: #000; }
.ig__top { display: flex; align-items: center; justify-content: space-between;
  padding: 4px 11px 7px; font-size: 9px; font-weight: 700; flex: none; }
.ig__row { display: flex; align-items: center; gap: 13px; padding: 2px 11px 7px; flex: none; }
.ig__ring { width: 46px; height: 46px; border-radius: 50%; flex: none; padding: 2px;
  background: conic-gradient(from 20deg,#F58529,#DD2A7B,#8134AF,#515BD4,#F58529); }
.ig__ring span { display: block; width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(150deg,#2E5B3E,#16321F); border: 2px solid #fff; }
.ig__stats { display: flex; gap: 16px; flex: 1; justify-content: space-around; text-align: center; }
.ig__stats b { display: block; font-size: 10px; }
.ig__stats span { font-size: 7px; color: #444; }
.ig__bio { padding: 0 11px 6px; flex: none; }
.ig__bio b { font-size: 8px; }
.ig__bio p { color: #333; font-size: 7.5px; }
.ig__link { color: #00376B; font-weight: 600; font-size: 7.5px; }
.ig__link--off { color: #9A9A9A; font-weight: 400; font-style: italic; }
.ig__btns { display: flex; gap: 4px; padding: 0 11px 8px; flex: none; }
.ig__btn { flex: 1; text-align: center; padding: 4px 0; border-radius: 7px;
  font-size: 7.5px; font-weight: 700; background: #EFEFEF; }
.ig__btn--f { background: #0095F6; color: #fff; }
.ig__hl { display: flex; gap: 10px; padding: 0 11px 8px; flex: none; }
.ig__hl div { text-align: center; }
.ig__hl i { display: block; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #DBDBDB; margin-bottom: 2px; }
.ig__hl span { font-size: 6.5px; }
.ig__tabs { display: flex; border-top: 1px solid #DBDBDB; flex: none; }
.ig__tabs i { flex: 1; height: 18px; display: grid; place-items: center; }
.ig__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5px; flex: 1; min-height: 0; }
.ig__grid i { background: linear-gradient(150deg,#3B6B4C,#16321F); }
.ig__grid i:nth-child(2n) { background: linear-gradient(150deg,#2E5B3E,#0F2616); }
.ig__grid i:nth-child(3n) { background: linear-gradient(150deg,#47795A,#1B3B26); }
.ig__nav { display: flex; justify-content: space-around; align-items: center;
  padding: 6px 0 8px; border-top: 1px solid #DBDBDB; flex: none; }

/* ---------------- WhatsApp ---------------- */
.wa { background: #0B141A; color: #E9EDEF; }
.wa__top { display: flex; align-items: center; gap: 7px; padding: 5px 10px 7px;
  background: #1F2C33; flex: none; }
/* Clipped in CSS rather than with an SVG clipPath — the markup repeats once
   per scene, and a duplicated element id is invalid. */
.wa__av { width: 24px; height: 24px; flex: none; display: block;
  border-radius: 50%; clip-path: circle(50%); }
.wa__name { font-size: 8.5px; font-weight: 600; }
.wa__on { font-size: 6.5px; color: #8696A0; }
.wa__body { flex: 1; min-height: 0; padding: 8px 8px 4px; display: flex;
  flex-direction: column; gap: 5px; justify-content: flex-end; overflow: hidden;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.028) 1.5px, transparent 2px),
                    radial-gradient(circle at 70% 60%, rgba(255,255,255,.028) 1.5px, transparent 2px),
                    radial-gradient(circle at 45% 85%, rgba(255,255,255,.028) 1.5px, transparent 2px);
  background-size: 54px 54px; }
.wa__b { max-width: 78%; padding: 5px 7px 4px; border-radius: 7px; font-size: 7.5px;
  position: relative; }
.wa__b--in  { background: #202C33; align-self: flex-start; border-top-left-radius: 1px; }
.wa__b--out { background: #005C4B; align-self: flex-end; border-top-right-radius: 1px; }
.wa__t { display: block; text-align: right; font-size: 6px; color: #8696A0; margin-top: 1px; }
.wa__b--out .wa__t { color: #9FD8C2; }
.wa__tick { color: #53BDEB; letter-spacing: -2px; margin-left: 2px; }
.wa__link { color: #53BDEB; text-decoration: underline; word-break: break-all; }
.wa__prev { background: rgba(0,0,0,.22); border-radius: 5px; padding: 4px 5px; margin-bottom: 3px; }
.wa__prev b { display: block; font-size: 7px; }
.wa__prev span { font-size: 6px; color: #A8C4B8; }
.wa__in { display: flex; align-items: center; gap: 5px; padding: 6px 8px 8px; flex: none; }
.wa__field { flex: 1; background: #1F2C33; border-radius: 99px; padding: 5px 9px;
  font-size: 7px; color: #8696A0; }
.wa__send { width: 22px; height: 22px; border-radius: 50%; background: #00A884;
  display: grid; place-items: center; flex: none; }

/* ---------------- Google Maps ---------------- */
.gm { background: #E8EAED; color: #202124; }
.gm__map { position: absolute; inset: 0; }
.gm__search { position: relative; z-index: 3; margin: 26px 9px 0; background: #fff;
  border-radius: 99px; padding: 6px 9px; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.28); font-size: 7.5px; color: #3C4043; flex: none; }
.gm__pin { position: absolute; z-index: 3; width: 14px; height: 14px; }
.gm__sheet { position: relative; z-index: 3; margin-top: auto; background: #fff;
  border-radius: 12px 12px 0 0; padding: 7px 11px 10px; flex: none;
  box-shadow: 0 -2px 10px rgba(0,0,0,.18); }
.gm__grab { width: 26px; height: 3px; border-radius: 99px; background: #DADCE0;
  margin: 0 auto 6px; }
.gm__name { font-size: 10px; font-weight: 600; }
.gm__meta { font-size: 7px; color: #5F6368; margin-top: 1px; display: block; line-height: 1.5; }
.gm__stars { color: #FBBC04; letter-spacing: -.5px; }
.gm__btns { display: flex; gap: 6px; margin-top: 7px; }
.gm__btn { flex: 1; text-align: center; padding: 5px 0; border-radius: 99px;
  font-size: 7.5px; font-weight: 600; border: 1px solid #DADCE0; color: #1A73E8; }
.gm__btn--p { background: #1A73E8; color: #fff; border-color: #1A73E8; }
.gm__list { position: relative; z-index: 3; margin: 7px 9px 0; display: grid; gap: 5px; flex: none; }
.gm__card { background: #fff; border-radius: 8px; padding: 6px 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.gm__card b { font-size: 8px; }
.gm__card span { font-size: 6.5px; color: #5F6368; display: block; }
.gm__card--dim { opacity: .55; }
.gm__ad { font-size: 6px; color: #188038; font-weight: 700; }

/* ---------------- the villa site, as it opens ---------------- */
.site { background: #14331F; color: #F7F2E7; }
.site__bar { background: #0C2013; padding: 5px 9px; font-size: 6.5px; color: #9DB3A2;
  display: flex; align-items: center; gap: 5px; flex: none; }
.site__hero { height: 38%; background: linear-gradient(160deg,#2E5B3E,#0C2013); flex: none; }
.site__in { padding: 9px 11px; display: grid; gap: 5px; }
.site__in h4 { font-family: var(--display); font-size: 11px; letter-spacing: -.02em; }
.site__in p { font-size: 7px; color: #C2D2C6; }
.site__price { font-size: 10px; color: #E08A2C; font-weight: 700; }
.site__cta { background: #25D366; color: #06251A; border-radius: 99px; padding: 5px 0;
  text-align: center; font-size: 8px; font-weight: 700; }

/* tap ripple at the moment of the click */
.tap { position: absolute; width: 26px; height: 26px; border-radius: 50%; z-index: 8;
  border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.25); opacity: 0;
  animation: tap 12s infinite; }
@keyframes tap { 0%,12%{opacity:0;transform:scale(.4)} 15%{opacity:1;transform:scale(1)}
                 22%,100%{opacity:0;transform:scale(1.8)} }
/* Scene N is visible from delay+0.48s and swaps at delay+3.96s. The ripple
   peaks 1.8s after its own delay, so 5.4s lands it at ~7.2s — right at the end
   of scene 2, just before the link opens. It was firing after the swap. */
.tap--on2 { animation-delay: 5.4s; }
.tap--2 { animation-delay: 4s; } .tap--3 { animation-delay: 8s; }

.reel__caption { text-align: center; display: grid; gap: 5px; }
.reel__caption .mono { color: var(--lime); }
.reel__caption b { font-family: var(--display); font-size: 1.02rem; letter-spacing: -.03em;
  text-transform: uppercase; display: block; }
.reel__caption p { font-size: .88rem; color: var(--muted-ink); max-width: 30ch; margin-inline: auto; }

@media (min-width: 760px) { .reel { grid-template-columns: repeat(3,1fr); gap: 26px; } }
@media (prefers-reduced-motion: reduce) {
  .scene { animation: none; opacity: 0; }
  .scene--3 { opacity: 1; }
  .tap { animation: none; opacity: 0; }
}

/* ---- reel v2: real photos, a real site, and a zoom-into-the-link ---------- */

/* Instagram grid + avatar now carry the actual villa photographs
   (Unsplash Licence, @spxclicks — see scripts/build-reel-images.py). */
.ig__ring span { background: #16321F center/cover no-repeat url("img/ig-avatar.webp"); }
.ig__grid i { background-size: cover; background-position: center; }
.ig__grid i:nth-child(1){background-image:url("img/ig-01.webp")}
.ig__grid i:nth-child(2){background-image:url("img/ig-02.webp")}
.ig__grid i:nth-child(3){background-image:url("img/ig-03.webp")}
.ig__grid i:nth-child(4){background-image:url("img/ig-04.webp")}
.ig__grid i:nth-child(5){background-image:url("img/ig-05.webp")}
.ig__grid i:nth-child(6){background-image:url("img/ig-06.webp")}
.ig__grid i:nth-child(7){background-image:url("img/ig-07.webp")}
.ig__grid i:nth-child(8){background-image:url("img/ig-08.webp")}
.ig__grid i:nth-child(9){background-image:url("img/ig-09.webp")}
.ig__hl i { background: center/cover no-repeat; }
.ig__hl div:nth-child(1) i{background-image:url("img/ig-01.webp")}
.ig__hl div:nth-child(2) i{background-image:url("img/ig-04.webp")}
.ig__hl div:nth-child(3) i{background-image:url("img/ig-05.webp")}
.ig__hl div:nth-child(4) i{background-image:url("img/ig-07.webp")}

/* The site frame is the real page in an iframe, not a drawing of it.
   width:135% + scale(1/1.35) renders it at a ~390px phone viewport whatever
   the frame measures, so the villa site lays out in its mobile form. */
.site__frame { flex: 1; position: relative; overflow: hidden; background: #F7F2E7; }
.site__frame iframe {
  width: 135%; height: 300%; border: 0; display: block;
  transform-origin: 0 0; transform: scale(.74074) translateY(0);
  pointer-events: none; animation: sitecreep 16s ease-in-out infinite alternate;
}
@keyframes sitecreep {
  0%, 10%   { transform: scale(.74074) translateY(0); }
  90%, 100% { transform: scale(.74074) translateY(-46%); }
}

/* Opening a link should feel like going through it. The outgoing app frame
   pushes in toward the link, the site arrives scaled up and settles. Origin is
   set per phone with --ox/--oy so the zoom starts exactly where the link is. */
.scene--push { animation-name: scene-push; transform-origin: var(--ox,50%) var(--oy,50%); }
@keyframes scene-push {
  0%, 1%    { opacity: 0; transform: scale(1); }
  4%, 23%   { opacity: 1; transform: scale(1); }
  30%       { opacity: 0; transform: scale(1.7); }
  33%, 100% { opacity: 0; transform: scale(1.7); }
}
.scene--zoom { animation-name: scene-zoom; transform-origin: var(--ox,50%) var(--oy,50%); }
@keyframes scene-zoom {
  0%, 1%    { opacity: 0; transform: scale(1.8); }
  5%        { opacity: 1; transform: scale(1.5); }
  12%       { opacity: 1; transform: scale(1); }
  29%       { opacity: 1; transform: scale(1); }
  33%, 100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .site__frame iframe { animation: none !important; }
  .scene--push, .scene--zoom { animation: none !important; transform: none !important; }
  .scene--zoom { opacity: 1; }
}
