/* Home hero: three photos that cross-fade (home page only).
   The slides sit in .hero-slides (not .hero-bg) so site.js's single-photo
   parallax leaves them alone; hero.js moves the whole stack instead. */
.hero-slides{position:absolute;inset:-12% 0;will-change:translate}
.hero-slides img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transform:scale(1.11);
  transition:opacity 1.5s ease,transform 9s cubic-bezier(.19,.6,.32,1);
  will-change:opacity,transform;
}
.hero-slides img.on{opacity:1;transform:scale(1.02)}

/* the three bars: which photo is showing, how long it has left, tap to jump */
.hero-dots{
  position:absolute;z-index:3;right:max(32px,env(safe-area-inset-right));bottom:22px;
  display:flex;gap:10px;align-items:center;
}
.hero-dots button{
  position:relative;width:54px;height:44px;padding:0;border:0;background:none;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.hero-dots button::before,.hero-dots button i{
  content:"";position:absolute;left:0;top:50%;height:2px;margin-top:-1px;border-radius:2px;
}
.hero-dots button::before{width:100%;background:rgba(255,255,255,.3);transition:background .25s ease}
.hero-dots button:hover::before{background:rgba(255,255,255,.5)}
.hero-dots button i{width:100%;background:#fff;transform:scaleX(0);transform-origin:left}
.hero-dots button.on i{animation:heroBar var(--hero-ms,6500ms) linear forwards}
.hero-dots.still button.on i{animation:none;transform:scaleX(1)}
.hero-dots button:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:4px}
@keyframes heroBar{from{transform:scaleX(0)}to{transform:scaleX(1)}}

@media(max-width:760px){
  .hero-dots{right:auto;left:50%;transform:translateX(-50%);bottom:8px}
  .hero-dots button{width:44px}
}
@media(prefers-reduced-motion:reduce){
  .hero-slides img,.hero-slides img.on{transform:none}
  .hero-dots button.on i{animation:none;transform:scaleX(1)}
}

/* The floor is what we sell, so the words stay out of its way.
   Desktop (Keith's pick, 11/23: "b looks great on a desktop"): a smaller
   headline at the top left over a soft corner shade; the rest of the photo,
   and the whole floor, is clear. */
.hero h1,.hero p{text-shadow:0 2px 22px rgba(8,14,19,.6)}
@media(min-width:761px){
  .hero{align-items:flex-start}
  .hero .hero-content{max-width:1280px;width:100%;padding-block:54px 0}
  .hero .hero-content .rv-stagger{max-width:600px}
  .hero .hero-scrim{background:radial-gradient(84% 94% at 0% 0%,rgba(13,22,29,.92) 0%,rgba(13,22,29,.76) 34%,rgba(13,22,29,.32) 58%,rgba(13,22,29,0) 76%)}
  .hero h1{font-size:clamp(1.8rem,3vw,2.7rem);line-height:1.15}
  .hero p{margin:16px 0 26px;font-size:1rem;line-height:1.7;max-width:500px}
  .hero-ctas{gap:12px}
  .hero-ctas .btn{padding:14px 24px;font-size:.7rem;letter-spacing:.18em}
}
/* the second button holds its own over a bright photo, on every screen: on a
   short phone it sits below where the shade ends */
.hero-ctas .btn-outline{background:rgba(13,22,29,.42);border-color:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hero-ctas .btn-outline:hover{background:rgba(13,22,29,.6)}
@media(max-width:760px){
  /* phones: the words sit at the top, the bottom third of the photo is clear floor */
  .hero{align-items:flex-start}
  /* room under the buttons for the three bars, so they never sit on a button
     when a short screen makes the hero only as tall as its words */
  .hero .hero-content{padding-block:34px 66px}
  .hero .hero-scrim{background:linear-gradient(180deg,rgba(13,22,29,.8) 0%,rgba(13,22,29,.78) 46%,rgba(13,22,29,.4) 60%,rgba(13,22,29,0) 72%)}
}
/* narrow phones: the headline steps down so it does not run to six lines */
@media(max-width:380px){
  .hero h1{font-size:clamp(1.6rem,8.2vw,1.95rem)}
  .hero p{margin:18px 0 26px;font-size:.96rem;line-height:1.65}
}

/* upright tablets (and an opened fold held upright) get the tall photo too:
   show it whole, cropping from where each photo says */
@media(orientation:portrait) and (min-width:761px) and (max-width:1100px){
  .hero-slides{inset:-3% 0}
  .hero-slides img{object-position:var(--phone-pos,50% 50%)}
}

/* The two hero buttons (Keith's pick 11/23, "Buttons C · Atelier"): square
   corners, finer lettering, and a second fine line just outside each button,
   like a framed label. No glare sweep and no lift on hover. */
.hero-ctas{gap:14px}
.hero-ctas .btn{border-radius:0;padding:15px 30px;font-size:.66rem;font-weight:600;letter-spacing:.28em}
.hero-ctas .btn::before{display:none}
.hero-ctas .btn:hover{transform:none}
.hero-ctas .btn-light{background:#fff;color:var(--ink);outline:1px solid rgba(255,255,255,.75);outline-offset:4px;transition:background .25s ease,outline-color .25s ease}
.hero-ctas .btn-light:hover{background:#F1F5F8;outline-color:#fff;box-shadow:none}
.hero-ctas .btn-light .arr{font-weight:400}
.hero-ctas .btn-outline{
  background:rgba(13,22,29,.35);border:1px solid rgba(255,255,255,.85);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  outline:1px solid rgba(255,255,255,.35);outline-offset:4px;
  transition:background .25s ease,outline-color .25s ease;
}
.hero-ctas .btn-outline:hover{background:rgba(13,22,29,.55);outline-color:rgba(255,255,255,.7)}
/* keyboard focus keeps a clear ring of its own */
.hero-ctas .btn:focus-visible{outline:2px solid #fff;outline-offset:5px}
@media(min-width:761px){.hero-ctas{gap:24px}}
@media(max-width:760px){
  /* room for the outer line: 4 px each side, 20 px between the stacked buttons */
  /* always one stacked column of equal-width buttons (an opened fold held upright is
     669 wide: without this the two wrapped into rows of different widths) */
  .hero-ctas{flex-direction:column;align-items:stretch;gap:20px;max-width:320px;padding:4px}
  .hero-ctas .btn{justify-content:center}
  .hero-ctas .btn{padding:15px 18px}
}
@media(max-width:380px){
  .hero-ctas .btn{letter-spacing:.22em}
}

/* small laptops and an opened fold held sideways (761 to 1310 wide): the shade keeps
   a fixed size, so the 600 px text column is covered the same as on a wide desktop */
@media(min-width:761px) and (max-width:1310px){
  .hero .hero-scrim{background:radial-gradient(1100px 620px at 0% 0%,rgba(13,22,29,.92) 0%,rgba(13,22,29,.76) 34%,rgba(13,22,29,.32) 58%,rgba(13,22,29,0) 76%)}
}
