/* ============================================================
   GARDEN-ROMANCE-ROSE-1
   GARDEN ROMANCE — a rose garden at dusk
   Identity: dusty rose, blush, ivory paper, rosewood, arch-topped
   windows, climbing roses, drifting petals. Organic motion.

   The variable NAMES below are still --leaf / --sage from the green
   build. They are deliberately NOT renamed: 477 lines reference them,
   and renaming would be a large diff for no visual gain. Only the
   VALUES changed - green to rose.
   ============================================================ */

:root{
  --leaf:#8E4A5E;        /* the rose itself */
  --leaf-dp:#6B3247;
  --leaf-dk:#40182A;     /* the deepest shade, behind everything */
  --sage:#E2AEB7;        /* blush */
  --sage-lt:#F6DEE2;
  --ivory:#FDFAF8;
  --paper:#F8EEEF;
  --bark:#7A5248;        /* rosewood, not green-brown timber */
  --bloom:#C96B7E;
  --ink:#3A2029;
  --ink-soft:#71535B;
  --line:#EFD7DB;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Jost', system-ui, sans-serif;
  background:var(--ivory);
  color:var(--ink);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
h1,h2,.cd-num,.node-time,.hg-mono{font-family:'Gilda Display', Georgia, serif; font-weight:400;}
/* Allura is an accent only - the couple's names must stay legible, so the
   script face never carries them. padding-inline gives the display face
   room for its overhanging strokes, or the last letter is clipped. */
.names,.hg-mono{padding-inline:.3em; overflow:visible;}
.eyebrow,.cd-label,.dr-label,.scratch-hint,.hg-tap,.ed-label,.ed-hint{font-family:'Jost', sans-serif;}
.date-line,.sprig-rule i,.sprig{font-family:'Allura', cursive; font-size:1.35em; letter-spacing:.01em;}

/* ---------- HEDGE PARTING (the opening) ---------- */
.hedge-gate{
  position:fixed; inset:0; height:100vh; height:100dvh; z-index:999;
  cursor:pointer; overflow:hidden; background:var(--leaf-dk);
  touch-action:none; overscroll-behavior:none;
}
.hedge-gate.open{pointer-events:none; background:transparent;}
/* Banks of climbing roses: overlapping soft blooms at several scales,
   deliberately off-grid so it reads as a planted bank rather than a dot
   pattern. Same element names as the green build - only the paint and the
   motion changed, so script.js and the motion gate keep working. */
.hedge{
  position:absolute; top:-4%; bottom:-4%; width:52%;
  background:
    radial-gradient(circle 15px at 18% 12%, rgba(246,222,226,.72), rgba(226,174,183,.3) 55%, transparent 74%),
    radial-gradient(circle 20px at 71% 27%, rgba(201,107,126,.78), rgba(142,74,94,.35) 58%, transparent 74%),
    radial-gradient(circle 17px at 33% 46%, rgba(107,50,71,.85), transparent 68%),
    radial-gradient(circle 23px at 84% 63%, rgba(226,174,183,.6), rgba(142,74,94,.3) 58%, transparent 74%),
    radial-gradient(circle 13px at 9% 74%, rgba(246,222,226,.55), transparent 70%),
    radial-gradient(circle 26px at 54% 88%, rgba(64,24,42,.9), transparent 66%),
    linear-gradient(170deg, var(--leaf) 0%, var(--leaf-dp) 48%, var(--leaf-dk) 100%);
  background-size:112px 100px, 150px 132px, 128px 112px, 172px 146px, 98px 90px, 190px 162px, 100% 100%;
  transition:transform 1.7s cubic-bezier(.62,0,.2,1), opacity 1.7s ease;
  will-change:transform;
}
/* depth: darker at the outer edges, lighter towards the arch */
.hedge::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(64,24,42,.5) 0%, transparent 30%, transparent 66%, rgba(64,24,42,.55) 100%);
}
.hedge-left{left:0; transform-origin:left center; box-shadow:inset -24px 0 40px rgba(0,0,0,.35);}
.hedge-right{right:0; transform-origin:right center; box-shadow:inset 24px 0 40px rgba(0,0,0,.35);}
/* they sweep out AND scale up - the feeling of walking through the hedge */
.hedge-gate.open .hedge-left{transform:translateX(-88%) scale(1.5) rotate(-4deg); opacity:.12;}
.hedge-gate.open .hedge-right{transform:translateX(88%) scale(1.5) rotate(4deg); opacity:.12;}

/* the timber arch that frames them */
.arch-frame{
  position:absolute; top:6%; left:50%; transform:translateX(-50%);
  width:min(430px,84vw); height:94%;
  border:11px solid var(--bark);
  border-radius:50% 50% 0 0 / 34% 34% 0 0;
  border-bottom:none; z-index:2; pointer-events:none;
  box-shadow:0 0 0 3px rgba(0,0,0,.18), inset 0 0 40px rgba(0,0,0,.28);
  transition:transform 1.4s cubic-bezier(.62,0,.2,1), opacity 1.2s ease;
}
.hedge-gate.open .arch-frame{transform:translateX(-50%) scale(1.7); opacity:0;}

.hg-plaque{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  z-index:3; text-align:center; pointer-events:none; padding:0 20px;
  transition:opacity .7s ease, transform 1.1s ease;
}
.hedge-gate.open .hg-plaque{opacity:0; transform:translate(-50%,-58%);}
.hg-leaf{font-size:26px; color:var(--sage); margin-bottom:14px; animation:sway 4.4s ease-in-out infinite;}
@keyframes sway{0%,100%{transform:rotate(-7deg);} 50%{transform:rotate(7deg);}}
.hg-mono{font-size:clamp(24px,5.4vw,34px); color:var(--ivory); letter-spacing:.03em;}
.hg-tap{
  margin-top:16px; font-size:11px; letter-spacing:.3em; text-transform:uppercase;
  color:var(--sage-lt); animation:pulseSoft 2.8s ease-in-out infinite;
}
@keyframes pulseSoft{0%,100%{opacity:.45;} 50%{opacity:1;}}

/* ---------- THE FLORAL REVEAL ----------
   No curtain here: majestic-love owns that, and this template's card
   promises a floral reveal. Roses bloom along the arch, the light warms,
   petals scatter. GSAP drives it because the value is in the STAGGER and
   the shared timeline - things CSS keyframes do badly. */
.rose-arch{
  position:absolute; top:6%; left:50%; transform:translateX(-50%);
  width:min(430px,84vw); height:94%; z-index:2; pointer-events:none;
}
.ra-rose{
  position:absolute; left:50%; top:50%;
  width:var(--sz,26px); height:var(--sz,26px); border-radius:50%;
  /* a rose read at small size: a pale heart, a mid ring, a dark edge */
  background:
    radial-gradient(circle at 42% 38%, rgba(255,255,255,.85), transparent 34%),
    radial-gradient(circle at 50% 50%, var(--c1,#E2AEB7) 0 38%, var(--c2,#C96B7E) 38% 72%, var(--c3,#8E4A5E) 72% 100%);
  box-shadow:0 2px 8px rgba(64,24,42,.35);
  transform:translate(-50%,-50%) rotate(var(--a,0deg)) translateY(var(--r,0px)) scale(0);
  opacity:0;
}
/* warm light spilling through as the roses open */
.ra-glow{
  position:absolute; inset:0; pointer-events:none; z-index:1;
  background:radial-gradient(58% 44% at 50% 40%, rgba(255,226,205,.55), transparent 70%);
  opacity:0;
}
/* petals thrown at the moment of opening - GSAP positions and moves these */
#petalLayer{position:fixed; inset:0; pointer-events:none; z-index:4; overflow:hidden;}
.petal{
  position:absolute; width:13px; height:9px;
  border-radius:60% 40% 55% 45% / 60% 55% 45% 40%;
  will-change:transform,opacity; opacity:0;
}

/* Someone who has asked for less motion gets the finished picture, not the
   performance. The JS also bails out, so nothing is left half-played. */
@media (prefers-reduced-motion:reduce){
  .ra-rose{transform:translate(-50%,-50%) rotate(var(--a,0deg)) translateY(var(--r,0px)) scale(1); opacity:1;}
  .ra-glow{opacity:1;}
  #petalLayer{display:none;}
}

/* ---------- DRIFTING LEAVES ---------- */
#leafContainer{position:fixed; inset:0; pointer-events:none; z-index:3; overflow:hidden;}
.leaf-bit{position:absolute; top:-30px; will-change:transform,opacity; opacity:0;}
@keyframes leafFall{
  0%{transform:translate3d(0,-30px,0) rotate(0deg); opacity:0;}
  10%{opacity:.9;}
  100%{transform:translate3d(var(--dx),108vh,0) rotate(var(--spin)); opacity:0;}
}
.butterfly{position:fixed; z-index:4; pointer-events:none; font-size:18px; opacity:.85;}
@keyframes flit{
  0%{transform:translate(0,0) rotate(-6deg);}
  25%{transform:translate(22vw,-9vh) rotate(8deg);}
  50%{transform:translate(46vw,4vh) rotate(-8deg);}
  75%{transform:translate(72vw,-7vh) rotate(6deg);}
  100%{transform:translate(104vw,2vh) rotate(-4deg);}
}
#confettiCanvas{position:fixed; inset:0; pointer-events:none; z-index:500;}

/* ---------- HERO ---------- */
.hero{
  position:relative; min-height:100vh; min-height:100dvh;
  display:flex; align-items:center; justify-content:center;
  padding:96px 24px 80px; overflow:hidden;
  background:linear-gradient(180deg, var(--sage-lt) 0%, var(--ivory) 48%, var(--paper) 100%);
}
.hero-video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.3;}
.hero-overlay{position:absolute; inset:0; background:linear-gradient(180deg, rgba(216,229,211,.72), rgba(251,250,244,.86));}
/* a hanging vine border across the top of the hero */
.vine-top{
  position:absolute; top:0; left:0; right:0; height:56px; pointer-events:none;
  background:
    radial-gradient(circle at 10% 0, var(--leaf) 0 11px, transparent 12px),
    radial-gradient(circle at 26% 0, var(--sage) 0 9px, transparent 10px),
    radial-gradient(circle at 42% 0, var(--leaf-dp) 0 13px, transparent 14px),
    radial-gradient(circle at 58% 0, var(--sage) 0 8px, transparent 9px),
    radial-gradient(circle at 74% 0, var(--leaf) 0 12px, transparent 13px),
    radial-gradient(circle at 90% 0, var(--leaf-dp) 0 10px, transparent 11px);
  opacity:.6;
}
.hero-inner{position:relative; z-index:1; width:100%; max-width:640px; text-align:center;}
.eyebrow{font-size:11px; letter-spacing:.3em; text-transform:uppercase; color:var(--leaf); margin-bottom:18px; font-weight:600;}
.names{font-size:clamp(38px,8vw,68px); line-height:1.12; color:var(--leaf-dp);}
.names .amp{display:block; font-size:.4em; color:var(--bloom); margin:8px 0;}
.sprig-rule{margin:22px 0 16px;}
.sprig-rule i{
  font-style:normal; color:var(--leaf); font-size:19px; display:inline-block;
  animation:sway 5s ease-in-out infinite;
}
.date-line{font-size:16px; color:var(--ink-soft); font-style:italic;}

/* ---------- SCRATCH (leaf litter) ---------- */
.scratch-wrap{position:relative; width:300px; height:118px; margin:32px auto 0;}
.scratch-under{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:var(--ivory); border:1px solid var(--line);
  border-radius:52% 52% 10px 10px / 26% 26% 10px 10px;
}
.scratch-under .d{font-family:'Gilda Display',serif; font-size:24px; color:var(--leaf-dp);}
#scratchCanvas{
  position:relative; z-index:2; display:block; touch-action:none; cursor:grab;
  border-radius:52% 52% 10px 10px / 26% 26% 10px 10px;
}
.scratch-hint{margin-top:12px; font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--leaf);}

/* ---------- COUNTDOWN (seed pods) ---------- */
.countdown{display:flex; gap:12px; justify-content:center; margin-top:34px; flex-wrap:wrap;}
.cd-seed{
  min-width:76px; padding:16px 10px;
  background:var(--ivory); border:1px solid var(--line);
  border-radius:46% 46% 22% 22% / 34% 34% 18% 18%;
  box-shadow:0 6px 16px rgba(47,70,48,.08);
}
.cd-num{font-size:27px; color:var(--leaf-dp); line-height:1;}
.cd-label{font-size:9px; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft); margin-top:7px;}

/* ---------- SECTIONS (asymmetric, left aligned) ---------- */
.section{max-width:700px; margin:0 auto; padding:82px 24px; text-align:left;}
.sec-head{display:flex; align-items:center; gap:14px;}
.sprig{font-style:normal; font-size:22px; color:var(--sage); flex:none;}
.sec-head h2{font-size:clamp(26px,5vw,40px); color:var(--leaf-dp);}
.leaf-rule{
  height:14px; margin:14px 0 26px;
  background:
    radial-gradient(circle at 6px 7px, var(--sage) 0 5px, transparent 6px),
    radial-gradient(circle at 24px 7px, var(--leaf) 0 4px, transparent 5px),
    radial-gradient(circle at 40px 7px, var(--sage) 0 5px, transparent 6px),
    linear-gradient(90deg, var(--line) 0 100%);
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat;
  background-size:auto,auto,auto,100% 1px;
  background-position:0 0,0 0,0 0,0 7px;
}
.lead{font-size:17px; line-height:1.95; color:var(--ink-soft);}

/* ---------- VINE TIMELINE ---------- */
.vine{position:relative; padding-left:44px;}
.vine::before{
  content:''; position:absolute; left:15px; top:6px; bottom:6px; width:3px;
  background:linear-gradient(180deg, var(--sage), var(--leaf) 30%, var(--leaf-dp));
  border-radius:3px;
}
.vine-node{position:relative; padding:0 0 30px 0;}
.node-leaf{
  position:absolute; left:-38px; top:4px; width:22px; height:16px;
  background:linear-gradient(140deg,var(--sage),var(--leaf));
  border-radius:0 100% 0 100%;
  transform:rotate(-24deg) scale(.4); opacity:0; transform-origin:left center;
  transition:transform .8s cubic-bezier(.34,1.4,.5,1), opacity .6s ease;
}
.reveal.in .node-leaf{transform:rotate(-24deg) scale(1); opacity:1;}
.vine-node:nth-child(2) .node-leaf{transition-delay:.1s;}
.vine-node:nth-child(3) .node-leaf{transition-delay:.2s;}
.vine-node:nth-child(4) .node-leaf{transition-delay:.3s;}
.vine-node:nth-child(5) .node-leaf{transition-delay:.4s;}
.node-time{font-size:17px; color:var(--leaf);}
.node-title{font-size:17px; color:var(--ink); margin-top:2px;}

/* ---------- GALLERY: arch-topped garden windows ---------- */
.windows{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.windows > div{
  position:relative; aspect-ratio:3/4; overflow:hidden;
  border-radius:50% 50% 10px 10px / 30% 30% 10px 10px;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; letter-spacing:.1em; color:var(--leaf-dp);
  background:linear-gradient(170deg,var(--sage-lt),var(--paper));
  border:2px solid var(--bark);
  transition:transform .7s cubic-bezier(.34,1.2,.5,1), box-shadow .7s ease;
}
.windows > div:hover{transform:translateY(-6px) rotate(-1deg); box-shadow:0 16px 32px rgba(47,70,48,.2);}
.windows img{width:100%; height:100%; object-fit:cover; display:block;}
.photo-remove{
  position:absolute; top:10px; right:10px; width:24px; height:24px; border-radius:50%;
  background:rgba(251,250,244,.92); color:var(--leaf-dp); border:1px solid var(--line);
  font-size:12px; line-height:1; cursor:pointer;
}

/* ---------- MAP ---------- */
.map-frame{
  width:100%; height:290px; margin-top:24px; overflow:hidden;
  border:3px solid var(--bark); border-radius:26px 26px 10px 10px;
  box-shadow:0 12px 30px rgba(47,70,48,.12);
}
.map-frame iframe{width:100%; height:100%; border:0; filter:saturate(1.05);}

/* ---------- EDITORS ---------- */
.editor{background:var(--paper); border:1px solid var(--line); border-left:4px solid var(--sage); border-radius:6px 20px 20px 6px; padding:22px 20px; margin-top:22px;}
.ed-label{font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--leaf-dp); margin-bottom:12px; font-weight:600;}
.ed-row{display:flex; gap:10px; flex-wrap:wrap;}
.editor input{
  flex:1; min-width:180px; padding:12px 15px; border:1px solid var(--line); border-radius:14px 4px 14px 4px;
  background:var(--ivory); color:var(--ink); font-family:'Jost',sans-serif; font-size:15px;
}
.editor input:focus{outline:none; border-color:var(--sage); box-shadow:0 0 0 3px rgba(167,191,163,.32);}
.editor button{
  padding:12px 22px; border:none; border-radius:16px 4px 16px 4px;
  background:var(--leaf); color:var(--ivory); font-family:'Jost',sans-serif;
  font-weight:600; font-size:14px; cursor:pointer;
  transition:background .4s ease, transform .4s ease;
}
.editor button:hover{background:var(--leaf-dp); transform:translateY(-2px);}
.ed-hint{font-size:13px; color:var(--ink-soft); margin-top:10px;}
.ed-error{font-size:13px; color:#B4554F; margin-top:8px; display:none;}
.ed-success{font-size:13px; color:var(--leaf); margin-top:8px; display:none;}

/* ---------- RSVP ---------- */
.rsvp{
  background:var(--paper); border:1px solid var(--line);
  border-radius:34px 34px 10px 10px / 20px 20px 10px 10px;
  padding:38px 26px; box-shadow:0 16px 40px rgba(47,70,48,.1);
}
.rsvp label{display:block; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--leaf-dp); margin-top:18px; font-weight:600;}
.rsvp label:first-child{margin-top:0;}
.rsvp input,.rsvp select,.rsvp textarea{
  width:100%; padding:13px 15px; margin-top:9px; border:1px solid var(--line);
  border-radius:14px 4px 14px 4px; background:var(--ivory); color:var(--ink);
  font-family:'Jost',sans-serif; font-size:16px;
}
.rsvp input:focus,.rsvp select:focus,.rsvp textarea:focus{outline:none; border-color:var(--sage); box-shadow:0 0 0 3px rgba(167,191,163,.32);}
.rsvp button{
  width:100%; margin-top:26px; padding:16px; border:none; border-radius:20px 6px 20px 6px;
  background:linear-gradient(135deg,var(--leaf),var(--leaf-dp)); color:var(--ivory);
  font-family:'Jost',sans-serif; font-weight:600; font-size:15px; letter-spacing:.06em; cursor:pointer;
  transition:transform .4s ease, box-shadow .4s ease;
}
.rsvp button:hover{transform:translateY(-2px); box-shadow:0 14px 28px rgba(47,70,48,.25);}
.rsvp-success{display:none; margin-top:16px; color:var(--leaf-dp);}

/* ---------- MUSIC BUTTON ---------- */
.music-toggle{
  position:fixed; bottom:22px; right:22px; width:54px; height:54px; z-index:60;
  border:none; border-radius:50% 50% 46% 46%;
  background:linear-gradient(150deg,var(--sage),var(--leaf-dp)); color:var(--ivory);
  font-size:19px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(47,70,48,.3);
}
.music-toggle.playing{animation:leafTurn 7s linear infinite;}
@keyframes leafTurn{to{transform:rotate(360deg);}}

footer{
  padding:46px 24px; text-align:center; font-size:11px; letter-spacing:.26em;
  text-transform:uppercase; color:var(--leaf); border-top:1px solid var(--line);
}

/* ---------- SCROLL REVEAL (organic, slight rotate) ---------- */
.reveal{opacity:0; transform:translateY(26px) rotate(-.6deg); transition:opacity .9s ease, transform .9s cubic-bezier(.34,1.2,.5,1);}
.reveal.in{opacity:1; transform:none;}

/* ---------- RESPONSIVE ---------- */
@media (max-width:640px){
  .section{padding:62px 18px;}
  .hero{padding:80px 16px 64px;}
  .windows{grid-template-columns:repeat(2,1fr); gap:12px;}
  .cd-seed{min-width:68px; padding:13px 8px;}
  .cd-num{font-size:23px;}
  .scratch-wrap{width:268px; height:110px;}
  .arch-frame{width:88vw; border-width:8px;}
  .vine{padding-left:38px;}
  .vine::before{left:12px;}
  .node-leaf{left:-32px;}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.15s !important;}
}

/* ==========================================================
   SCRATCH-TO-REVEAL  (this block only - nothing above changed)
   ========================================================== */
/* ---------- petal bed ---------- */
/* the whole bed breathes very slightly, as petals resting on a card would */
#scratchCanvas{animation:petalBedSway 9s ease-in-out infinite; transform-origin:50% 60%;}
@keyframes petalBedSway{0%,100%{transform:rotate(-.35deg) translateY(0);} 50%{transform:rotate(.35deg) translateY(-1.5px);}}
.scratch-wrap.is-scratching #scratchCanvas{animation:none;}
@media (prefers-reduced-motion:reduce){ #scratchCanvas{animation:none;} }

/* ---------- scratch material flecks (shared, body-level) ---------- */
.aira-fleck{
  position:fixed; z-index:1200; pointer-events:none; opacity:1;
  animation:airaFleck .95s cubic-bezier(.3,.7,.4,1) forwards;
}
@keyframes airaFleck{
  0%{opacity:.95; transform:translate(0,0) rotate(0deg) scale(1);}
  100%{opacity:0; transform:translate(var(--fx),var(--fy)) rotate(var(--fr)) scale(.5);}
}
@media (prefers-reduced-motion:reduce){ .aira-fleck{display:none;} }

/* ---------- staged date reveal: day, month, year, label, glow, continue ---------- */
/* the reveal panel stacks: date line, then the label, then Continue */
.scratch-under{flex-direction:column;}
.scratch-under .dr-day,.scratch-under .dr-month,.scratch-under .dr-year{
  display:inline-block; opacity:0; transform:translateY(10px) scale(.94);
  transition:opacity .62s ease, transform .62s cubic-bezier(.22,1,.36,1);
}
.scratch-under .dr-month{margin:0 .34em;}
.scratch-under.s1 .dr-day{opacity:1; transform:none;}
.scratch-under.s2 .dr-month{opacity:1; transform:none;}
.scratch-under.s3 .dr-year{opacity:1; transform:none;}
.scratch-under .dr-label{
  display:block; margin-top:7px; font-size:8px; letter-spacing:.3em;
  text-transform:uppercase; color:var(--leaf);
  opacity:0; transform:translateY(8px);
  transition:opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.scratch-under.s4 .dr-label{opacity:1; transform:none;}
.scratch-under .dr-cta{
  margin-top:9px; padding:6px 14px; font:inherit; font-size:9px; line-height:1;
  letter-spacing:.22em; text-transform:uppercase; cursor:pointer; border-radius:0;
  color:var(--leaf-dp); background:transparent; border:1px solid var(--sage);
  opacity:0; transform:translateY(8px);
  transition:opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1),
             background .35s ease, color .35s ease;
}
.scratch-under.s5 .dr-cta{opacity:1; transform:none;}
.scratch-under .dr-cta:hover{background:var(--sage); color:#FBFAF4;}
.scratch-under.s5{animation:drGlow9959 1.6s ease-out;}
@keyframes drGlow9959{
  0%{box-shadow:0 0 0 0 rgba(227,155,163,.45);}
  40%{box-shadow:0 0 34px 6px rgba(227,155,163,.45);}
  100%{box-shadow:0 0 0 0 rgba(0,0,0,0);}
}

/* the prompt steps back once the guest starts working the surface */
.is-scratching + .scratch-hint,.is-scratching ~ .scratch-hint{opacity:.35;}

/* ==========================================================================
   AIRA MOTION SYSTEM
   Appended block. Changes how things move, never what the template looks
   like - no colour, font family, layout or decoration is altered here.
   ========================================================================== */

:root{
  /* Authored easing. The default `ease` is symmetrical, which is why stock
     web motion reads as cheap: real objects accelerate hard and land soft. */
  --e-drape :cubic-bezier(.62,.02,.14,1);   /* heavy physical panels        */
  --e-silk  :cubic-bezier(.16,.86,.22,1);   /* long decelerate, big surfaces */
  --e-lift  :cubic-bezier(.19,1,.22,1);     /* type and cards arriving       */
  --e-settle:cubic-bezier(.40,.90,.30,1);   /* micro corrections             */
  /* Duration scale tied to how far a thing travels. */
  --t-1:260ms; --t-2:520ms; --t-3:820ms; --t-4:1250ms; --t-5:1900ms;
}

/* ---------- typographic rendering (quality only, no faces changed) ---------- */
html{-webkit-text-size-adjust:100%;}
body{
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-kerning:normal;
  font-variant-ligatures:common-ligatures contextual;
  font-synthesis-weight:none;
}
h1,h2,h3{text-wrap:balance;}
p,.lead{text-wrap:pretty;}

/* ---------- masked word reveal for display type ---------- */
.aira-w{
  display:inline-block; overflow:hidden; vertical-align:top;
  padding-bottom:.18em; margin-bottom:-.18em;   /* room for descenders */
}
.aira-w.aira-w-block{display:block;}
.aira-w > i{
  display:inline-block; font-style:inherit; color:inherit;
  transform:translate3d(0,112%,0) rotate(1.6deg); opacity:0; filter:blur(9px);
  transition:transform var(--t-4) var(--e-lift),
             opacity 900ms var(--e-lift),
             filter 900ms var(--e-lift);
  transition-delay:calc(var(--wi,0) * 105ms + 170ms);
}
.aira-w > i.aira-w-block{display:block;}
.aira-w.on > i{transform:none; opacity:1; filter:blur(0);}

/* ---------- hero beats ---------- */
.aira-beat{
  opacity:0; transform:translate3d(0,var(--beat-rise,22px),0);
  filter:blur(var(--beat-blur,5px));
  transition:opacity var(--t-3) var(--e-lift),
             transform var(--t-3) var(--e-lift),
             filter var(--t-3) var(--e-lift);
  transition-delay:calc(var(--bi,0) * 135ms);
}
.aira-beat.aira-on{opacity:1; transform:none; filter:blur(0);}

/* ---------- scroll storytelling ---------- */
.aira-rise{
  opacity:0; transform:translate3d(0,34px,0);
  transition:opacity var(--t-3) var(--e-lift), transform var(--t-3) var(--e-lift);
}
.aira-rise.aira-in{opacity:1; transform:none;}
.aira-stagger{
  opacity:0; transform:translate3d(0,18px,0);
  transition:opacity var(--t-3) var(--e-lift), transform var(--t-3) var(--e-lift);
  transition-delay:calc(var(--i,0) * 85ms + 110ms);
}
.aira-in > .aira-stagger,
.in > .aira-stagger,
.visible > .aira-stagger{opacity:1; transform:none;}

/* ---------- the opening: weight, then release ---------- */
.aira-gate.aira-press{transform:scale(.9955); transition:transform 200ms var(--e-settle);}
.aira-seam{
  position:absolute; top:0; bottom:0; left:50%; width:2px; margin-left:-1px;
  z-index:6; pointer-events:none; opacity:0; filter:blur(1px);
  background:linear-gradient(180deg,transparent,rgba(255,255,255,.92),transparent);
}
.aira-seam.aira-seam-h{
  top:50%; bottom:auto; left:0; right:0; width:auto; height:2px; margin:-1px 0 0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.92),transparent);
}
.aira-gate.aira-opening .aira-seam{animation:airaSeamV 950ms var(--e-silk) forwards;}
.aira-gate.aira-opening .aira-seam.aira-seam-h{animation:airaSeamH 950ms var(--e-silk) forwards;}
@keyframes airaSeamV{0%{opacity:0;transform:scaleY(.15);}20%{opacity:1;}100%{opacity:0;transform:scaleY(1.2);}}
@keyframes airaSeamH{0%{opacity:0;transform:scaleX(.15);}20%{opacity:1;}100%{opacity:0;transform:scaleX(1.2);}}

@media (prefers-reduced-motion:reduce){
  .aira-w > i,.aira-beat,.aira-rise,.aira-stagger{
    transition:none !important; transform:none !important;
    opacity:1 !important; filter:none !important;
  }
  .aira-seam{display:none;}
}

/* ---------- Garden Romance: the hedges part unevenly, as hedges do ---------- */
.hedge{transition:transform var(--t-5) var(--e-drape), opacity var(--t-5) var(--e-silk) !important;}
.hedge-gate.open .hedge-right{transition-delay:130ms;}
.arch-frame{transition:transform 1.55s var(--e-drape), opacity 1.2s var(--e-silk) !important;}
.names{letter-spacing:-.008em; line-height:1.06;}
