/* home geometry is emitted inline on elements */

/* --- marquee hero (mqh-) — hero round winner, integrated 2026-07-15 ---------
   Kinetic Ariebella wordmark gliding behind the centered portrait; the front
   band layer is clipped to the portrait width so the type turns white where
   it crosses the photo. Section stays sticky (sticksec) like the old hero. */
/* Kabooth Miami: a window shorter than the hero's 720px floor would pin its
   bottom out of reach, so there the hero scrolls, as it does on phones. */
@media (min-width: 901px) and (max-height: 719px){ .sec-hero-images.sticksec{position:relative;} }
.mqh-bg{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)),
    url('../images/km-props-wash.jpg') center/cover no-repeat;
  background-attachment:fixed;
}
.mqh-band{position:absolute;left:0;top:50%;transform:translateY(-58%);width:100%;overflow:hidden;pointer-events:none;}
/* Fallback only: script.js sets the duration from the measured track width so the speed stays constant whatever the name. */
.mqh-track{display:flex;width:max-content;animation:mqh-slide 38s linear infinite;}
.mqh-track span{
  font-family:var(--f-title);font-size:238px;line-height:1;letter-spacing:.08em;
  text-transform:uppercase;white-space:nowrap;padding-right:.45em;
}
.mqh-back span{color:var(--ink);}
.mqh-front{clip-path:inset(0 calc(50% - 231px));}
.mqh-front span{color:var(--white);}
@keyframes mqh-slide{from{transform:translateX(0);}to{transform:translateX(-50%);}}

.mqh-portrait{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-52%);
  width:462px;height:640px;overflow:hidden;margin:0;
  animation:mqh-rise 1.2s .15s cubic-bezier(.2,.7,.2,1) both;
}
.mqh-portrait img,
.mqh-portrait video {width:100%;height:100%;object-fit:cover;display:block;transition:transform 6s ease;}
.sec-hero-images:hover .mqh-portrait img,
.sec-hero-images:hover .mqh-portrait video {transform:scale(1.045);}
@keyframes mqh-rise{from{opacity:0;transform:translate(-50%,-48%);}to{opacity:1;transform:translate(-50%,-52%);}}

.mqh-cta{
  position:absolute;left:50%;top:calc(50% + 238px);transform:translateX(-50%);z-index:3;
  font-family:var(--f-label);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  background:var(--white);color:var(--ink);padding:16px 34px;text-decoration:none;transition:.4s;
  animation:mqh-fade 1.4s .9s both;
}
.mqh-cta:hover{background:var(--ink);color:var(--cream);}
@keyframes mqh-fade{from{opacity:0;}to{opacity:1;}}

.mqh-corner{
  position:absolute;font-family:var(--f-label);font-size:12px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--ink);
}
.mqh-tl{top:34px;left:44px;}
.mqh-logo{position:absolute;top:26px;left:44px;width:120px;height:auto;z-index:3;
  animation:mqh-fade 1.4s .5s both;}
.mqh-tr{top:34px;right:112px;text-align:right;}
.mqh-bl{bottom:34px;left:44px;}
.mqh-br{bottom:34px;right:44px;text-align:right;}

/* --- curator showcase (scw-) — showcase round winner, integrated 2026-07-15 --
   One large spotlight frame with a thumbnail rail to its right; hovering or
   clicking a thumbnail crossfades the stage image and updates the caption and
   counter (swap JS in script.js). Entrances ride the shared .reveal observer
   with per-piece transition delays. Geometry lives here, not inline. */
.scw-copy{left:0;top:186px;width:300px;}
.scw-copy .scw-kicker{font-family:var(--f-label);font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:rgba(30,29,26,.55);margin:0 0 26px;}
.scw-copy .scw-title{font-family:var(--f-title);font-weight:400;font-size:58px;line-height:1.12;letter-spacing:.06em;text-transform:uppercase;margin:0 0 30px;}
.scw-copy .scw-para{font-size:15px;line-height:1.75;letter-spacing:.04em;color:rgba(30,29,26,.82);margin:0 0 36px;}

.scw-stage{left:372px;top:110px;width:540px;height:680px;background:var(--taupe);overflow:hidden;}
.scw-stage img,
.scw-stage video {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .9s ease;}
.scw-stage img.active,
.scw-stage video.active {opacity:1;}
.scw-stage::after{content:"";position:absolute;inset:14px;border:1px solid rgba(255,255,255,.45);pointer-events:none;}

.scw-rail{left:990px;top:110px;width:210px;display:flex;flex-direction:column;gap:22px;}
.scw-thumb{position:relative;width:132px;height:132px;margin-left:39px;cursor:pointer;border:0;padding:0;background:none;}
.scw-thumb img,
.scw-thumb video {width:100%;height:100%;object-fit:cover;filter:grayscale(35%);opacity:.65;transition:opacity .5s, filter .5s;}
.scw-thumb.active img,
.scw-thumb:hover img,
.scw-thumb.active video,
.scw-thumb:hover video {filter:none;opacity:1;}
.scw-thumb::before{content:"";position:absolute;inset:-7px;border:1px solid var(--line);opacity:0;transition:opacity .5s;}
.scw-thumb.active::before{opacity:1;}
.scw-rail-label{left:1176px;top:130px;font-family:var(--f-label);font-size:10px;letter-spacing:.3em;text-transform:uppercase;color:rgba(30,29,26,.45);writing-mode:vertical-rl;}

.scw-stage.reveal{transition-delay:.12s;}
.scw-rail.reveal{transition-delay:.36s;}

/* --- stat-band about (stb-) — about/photographer-bio round winner, 2026-07-15
   Two-column bio: copy, a three-cell metric row whose numbers count up when the
   row scrolls into view (count-up JS in script.js), the statement and CTA on the
   left; a tall portrait with an uppercase caption plate on the right. Flow
   layout inside the .sec, no .cv canvas. Entrances ride the shared .reveal
   observer with per-piece delays. */
.stb-wrap{
  width:1200px;margin:0 auto;min-height:760px;
  display:grid;grid-template-columns:1fr 430px;align-items:center;gap:72px;padding:64px 0;
}
.stb-left{max-width:640px;}
.stb-left p{margin:0;}
.stb-kicker{font-family:var(--f-label);font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--blue);margin-bottom:24px!important;}
.stb-title{font-family:var(--f-title);font-weight:400;font-size:66px;line-height:1;letter-spacing:.02em;margin-bottom:30px!important;}   /* was 14px; the story sat on the title (owner, 2026-09-22) */
.stb-copy{font-size:16px;line-height:1.85;letter-spacing:.04em;color:rgba(30,29,26,.82);max-width:520px;margin-bottom:44px!important;}

.stb-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.stb-stat{position:relative;padding:28px 8px 26px;}
.stb-stat + .stb-stat::before{content:"";position:absolute;left:0;top:22px;bottom:22px;width:1px;background:var(--line);}
.stb-num{display:block;font-family:var(--f-title);font-size:52px;line-height:1;letter-spacing:.01em;margin-bottom:10px;}
.stb-lab{font-family:var(--f-label);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:rgba(30,29,26,.6);line-height:1.5;}

/* The .stb-statement paragraph that used to sit here was deleted 2026-09-07.
   Its margin was the ONLY thing holding this button off the stats band's
   bottom border, so the 40px it contributed above itself moves onto the
   button; without it the button sits flush against the rule. */
.stb-cta{
  margin-top:40px;
  display:inline-flex;align-items:center;gap:13px;font-family:var(--f-label);font-size:11px;letter-spacing:.22em;
  text-transform:uppercase;color:var(--white);text-decoration:none;padding:16px 34px;background:var(--ink);transition:.4s;
}
.stb-cta::after{content:"\2192";}
.stb-cta:hover{background:var(--taupe);color:var(--ink);gap:19px;}

.stb-media{position:relative;height:600px;}
.stb-media img,
.stb-media video {width:100%;height:100%;object-fit:cover;}
.stb-cap{
  position:absolute;left:0;bottom:26px;background:var(--cream);padding:11px 20px;
  font-family:var(--f-label);font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--ink);
}

/* staggered entrance via the shared reveal observer */
.stb-title.reveal{transition-delay:.08s;}
.stb-copy.reveal{transition-delay:.16s;}
.stb-media.reveal{transition-delay:.2s;}
.stb-stats.reveal{transition-delay:.28s;}
.stb-cta.reveal{transition-delay:.4s;}

/* --- cinematic testimonials (cin-): moved to style.css 2026-07-21 (shared with
   occasion.html's reviews section). JS in script.js. */

/* --- feature-split EVENT TYPES (bfx-, #event-types; one occasion featured + two rows, links into the occasion/service/packages pages; was the blog-favorites round winner,
   integrated 2026-07-15. One large lead post with its title set over the photo,
   beside a slim column: the "Reader Favorites" head, two text-forward thumbnail
   rows, and the journal button. Flow layout inside the .sec, no .cv canvas.
   Entrances ride the shared .reveal observer with per-piece delays. */
.bfx-wrap{
  width:1200px;margin:0 auto;padding:88px 0 100px;
  display:grid;grid-template-columns:718px 1fr;gap:64px;align-items:stretch;
}
.bfx-wrap p{margin:0;}

.bfx-feature{position:relative;height:660px;overflow:hidden;background:var(--taupe);display:block;text-decoration:none;}
.bfx-feature img,
.bfx-feature video {width:100%;height:100%;object-fit:cover;display:block;transition:transform .9s ease;}
.bfx-feature:hover img,
.bfx-feature:hover video {transform:scale(1.04);}
.bfx-scrim{position:absolute;inset:0;background:linear-gradient(to top,rgba(30,29,26,.66) 0%,rgba(30,29,26,.12) 46%,rgba(30,29,26,0) 70%);}
.bfx-fbody{position:absolute;left:0;right:0;bottom:0;padding:44px 46px;color:#fff;}
.bfx-fcat{font-family:var(--f-label);font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:rgba(255,255,255,.85);}
.bfx-ftitle{font-family:var(--f-title);font-size:44px;line-height:1.1;margin:14px 0 12px!important;max-width:560px;}
.bfx-fmeta{font-family:var(--f-label);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.72);}

.bfx-side{display:flex;flex-direction:column;}
.bfx-head{margin-bottom:30px;}
.bfx-kicker{font-family:var(--f-label);font-size:12px;letter-spacing:.26em;text-transform:uppercase;color:var(--blue);}
.bfx-h1{font-family:var(--f-title);font-size:46px;line-height:1.04;margin-top:12px!important;}

.bfx-row{display:grid;grid-template-columns:124px 1fr;gap:22px;align-items:center;
  padding:26px 0;border-top:1px solid var(--line);text-decoration:none;color:inherit;transition:opacity .3s;}
.bfx-row:hover{opacity:.68;}
.bfx-row figure{width:124px;height:124px;overflow:hidden;background:var(--taupe);margin:0;}
.bfx-row img,
.bfx-row video {width:100%;height:100%;object-fit:cover;display:block;}
.bfx-scat{font-family:var(--f-label);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--blue);}
.bfx-stitle{font-family:var(--f-title);font-size:22px;line-height:1.18;margin:7px 0 8px!important;}
.bfx-smeta{font-family:var(--f-label);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:rgba(30,29,26,.5);}
/* the "Inquire ->" mark on every card (owner, 2026-09-22): the whole card is the
   link, this only says so. The arrow nudges on hover; still under reduced motion. */
.bfx-go{display:inline-flex;align-items:center;gap:9px;margin-top:16px!important;font-family:var(--f-label);font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--blue);}
.bfx-fbody .bfx-go{color:#fff;margin-top:18px!important;}
.bfx-go i{font-style:normal;transition:transform .35s ease;}
.bfx-feature:hover .bfx-go i,.bfx-row:hover .bfx-go i{transform:translateX(5px);}
@media (prefers-reduced-motion: reduce){.bfx-go i{transition:none;}}

.bfx-cta{align-self:flex-start;margin-top:auto;}

/* staggered entrance via the shared reveal observer */
.bfx-head.reveal{transition-delay:.05s;}
.bfx-feature.reveal{transition-delay:.12s;}
.bfx-row.reveal{transition-delay:.22s;}
.bfx-row + .bfx-row.reveal{transition-delay:.34s;}
.bfx-cta.reveal{transition-delay:.44s;}

/* --- cta: framed invitation card over a fixed, B&W photo with a blue wash ---
   Three stacked layers under the card:
     .cta-bg    the couple's photo pinned to the viewport (attachment:fixed,
                same technique as the testimonials block).
     .cta-desat a flat gray plate in mix-blend-mode:saturation, which strips the
                photo's colour to black and white. We do this with a blend layer
                rather than filter:grayscale, because putting a filter on the
                fixed-bg element would turn attachment:fixed back into scroll.
     .cta-tint  the house dusty blue (--blue #afbec5) as a translucent wash,
                laid over the now-monochrome photo.
   isolation:isolate keeps the saturation blend from reaching the page behind. */
.sec-cta{overflow:hidden;isolation:isolate;}
.sec-cta .cta-bg{
  position:absolute;inset:0;z-index:0;
  background:url('../images/km-school-tent.jpg') center/cover no-repeat fixed;
}
.sec-cta .cta-desat{position:absolute;inset:0;z-index:1;background:#808080;mix-blend-mode:saturation;}
.sec-cta .cta-tint{position:absolute;inset:0;z-index:2;background:rgba(255,255,255,.72);}
.cta-invite{
  position:absolute;inset:0;z-index:3;
  display:flex;align-items:center;justify-content:center;padding:48px 24px;
}
.sec-cta .inv{
  position:relative;width:640px;max-width:100%;background:var(--blue-lt);
  padding:14px;box-shadow:0 40px 90px rgba(30,29,26,.28);
}
.sec-cta .inv-frame{border:1px solid rgba(255,255,255,.75);padding:56px 66px 60px;text-align:center;position:relative;}
.sec-cta .inv-frame::before{content:"";position:absolute;inset:8px;border:1px solid rgba(255,255,255,.3);pointer-events:none;}
.sec-cta .inv-crest{font-family:var(--f-script);font-size:70px;line-height:1;color:var(--cream);}
.sec-cta .inv-over{font-family:var(--f-label);font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:rgba(255,255,255,.7);margin-top:14px;}
.sec-cta .inv-title{font-family:var(--f-title);font-weight:400;font-size:58px;line-height:1.08;margin:14px 0 0;color:var(--cream);}
.sec-cta .inv-orn{display:flex;align-items:center;justify-content:center;gap:14px;margin:22px 0;color:var(--cream);}
.sec-cta .inv-orn::before,.sec-cta .inv-orn::after{content:"";width:70px;height:1px;background:rgba(255,255,255,.3);}
.sec-cta .inv-para{font-size:15.5px;line-height:1.85;letter-spacing:.04em;color:rgba(255,255,255,.85);max-width:420px;margin:0 auto;}
.sec-cta .inv-btn{display:inline-block;margin-top:32px;padding:15px 42px;background:var(--cream);color:var(--ink);
  font-family:var(--f-label);font-size:11px;letter-spacing:.26em;text-transform:uppercase;text-decoration:none;transition:.45s;
}
.sec-cta .inv-btn:hover{background:var(--white);color:var(--ink);}
.sec-cta .inv-foot{margin-top:24px;font-family:var(--f-label);font-size:10.5px;letter-spacing:.28em;
  text-transform:uppercase;color:rgba(255,255,255,.6);
}

/* ===========================================================================
   MOBILE LAYER (additive; desktop above 900px untouched). Home sections.
   =========================================================================== */
@media (max-width: 900px){

  /* --- marquee hero (mqh) --------------------------------------------------- */
  .sec-hero-images{height:100svh; min-height:540px; max-height:820px;}
  /* pin the photo to the viewport on mobile (background-attachment:fixed is a
     no-op on phones); clip-path keeps the fixed layer inside the section */
  .sec-hero-images{clip-path:inset(0);}
  .mqh-bg{position:fixed;background-attachment:scroll;}
  .mqh-bg{background:#f1f1f0 !important;}
  .mqh-track span{font-size:min(23vw, 110px);}
  .mqh-portrait{width:min(72vw, 300px); height:min(99.7vw, 415px);}
  .mqh-front{clip-path:inset(0 calc(50% - min(36vw, 150px)));}
  .mqh-cta{top:auto; bottom:34px; white-space:nowrap; padding:14px 26px;}
  .mqh-corner{font-size:9px; letter-spacing:.14em;}
  .mqh-tl{top:18px; left:16px; max-width:180px;}
  .mqh-logo{top:14px; left:16px; width:164px;}
  .mqh-tr, .mqh-bl, .mqh-br{display:none;}

  /* paper divider keeps its band height (blanket zeroes --h sections) */
  .sec-paper-texture{height:62px;}

  /* --- intro statement (canvas) --------------------------------------------- */
  .sec-intro-statement .cv{text-align:center; padding:56px 22px; gap:18px;}
  .sec-intro-statement .cv > img,
  .sec-intro-statement .cv > video {order:1; width:130px !important; align-self:center;}
  .sec-intro-statement .cv > .t-subheading{order:2;}
  .sec-intro-statement .cv > .t-title{order:3;}
  .sec-intro-statement .cv > .t-paragraph{order:4;}
  .sec-intro-statement .cv > .btn{order:5; margin-top:8px;}
  /* the canvas nudges are desktop-coordinate tweaks (inline translate from the
     visual editor); on the flattened mobile stack they drag copy into the
     heading above it, so neutralise them here. */
  .sec-intro-statement .cv > *{transform:none !important;}

  /* --- curator showcase (scw) ------------------------------------------------ */
  .sec-showcase .cv{padding:56px 20px; gap:0;}
  .sec-showcase .scw-copy{order:1;}
  .scw-copy .scw-title{font-size:clamp(32px, 9vw, 42px);}
  .scw-copy .scw-para{margin:0 0 26px;}
  .scw-copy .btn{margin-bottom:30px;}
  .sec-showcase .scw-stage{
    order:2; position:relative !important;
    width:100% !important; height:auto !important; aspect-ratio:54/68;
  }
  .sec-showcase .scw-rail{
    order:4; flex-direction:row; justify-content:center;
    width:100% !important; gap:14px; margin-top:24px;
  }
  .scw-thumb{width:60px; height:60px; margin-left:0;}
  .sec-showcase .scw-rail-label{display:none !important;}

  /* --- stat-band about (stb) --------------------------------------------------- */
  .stb-wrap{width:auto; grid-template-columns:1fr; gap:44px; padding:56px 20px; min-height:0;}
  .stb-title{font-size:clamp(34px, 10vw, 46px);}
  .stb-copy{max-width:none;}
  /* Three stats in one 350px row gave each label about 107px, so a two-line
     label wrapped again around its own <br> ("square feet is / all / the space
     we / need"; owner, 2026-09-22). On phones the stats are ROWS: the number
     beside its label, rules between rows instead of the column dividers. */
  .stb-stats{grid-template-columns:1fr;}
  .stb-stat{display:flex; align-items:baseline; gap:18px; padding:14px 4px;}
  .stb-stat + .stb-stat{border-top:1px solid var(--line);}
  .stb-stat + .stb-stat::before{display:none;}
  .stb-num{font-size:32px; margin-bottom:0; min-width:64px;}
  .stb-lab{font-size:9.5px; letter-spacing:.16em;}
  .stb-media{height:auto; aspect-ratio:43/60;}

  /* cinematic testimonials (cin): mobile rules moved to style.css with the block */
  .cin-rail{bottom:30px;}
  .cin-lines button{width:54px;}

  /* --- blog favorites (bfx) ------------------------------------------------------ */
  .bfx-wrap{width:auto; grid-template-columns:1fr; gap:40px; padding:56px 20px 64px;}
  .bfx-feature{height:440px;}
  .bfx-fbody{padding:26px 22px;}
  .bfx-ftitle{font-size:27px;}
  .bfx-h1{font-size:34px;}
  .bfx-row{grid-template-columns:96px 1fr; gap:16px;}
  .bfx-row figure{width:96px; height:96px;}
  .bfx-cta{align-self:stretch; text-align:center; margin-top:12px;}

  /* --- invitation cta ------------------------------------------------------------ */
  .sec-cta{clip-path:inset(0);}
  .sec-cta .cta-bg{position:fixed;background-attachment:scroll;}
  .cta-invite{position:relative; inset:auto; padding:64px 16px;}
  .sec-cta .inv-frame{padding:38px 20px 42px;}
  .sec-cta .inv-title{font-size:clamp(30px, 9vw, 42px);}
  .sec-cta .inv-para{font-size:14px;}
  .sec-cta .inv-crest{font-size:52px;}
}

/* Narrowest phones (Radiant Memories, 2026-09-28): six 54px review lines with
   12px gaps are exactly 384px, so under 384px narrower lines and gap fit. */
@media (max-width: 383px){
  .cin-lines{gap:6px;}
  .cin-lines button{width:44px;}
}
