/* Bento · Tiles (2026-11-15). Shared look in base.css. */
html body .hx-bento{--hx-gap:clamp(10px,1vw,14px);--hx-tr:clamp(20px,1.8vw,28px);padding:clamp(20px,2vw,32px) 0 clamp(40px,4vw,64px);background:var(--hk-wash)}
html body .hx-bento .hk-wrap{max-width:1400px;padding:0 clamp(12px,2.4vw,40px)}
html body .hx-bento .hx-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:auto;gap:var(--hx-gap)}
html body .hx-bento .hx-tile{position:relative;min-width:0;margin:0;border-radius:var(--hx-tr);overflow:hidden;background:var(--hk-paper);box-shadow:0 0 0 1px var(--hk-edge)}
html body .hx-bento .hx-t-copy{grid-column:span 7;display:flex;align-items:flex-end;min-height:clamp(400px,31vw,520px);padding:clamp(28px,3.4vw,56px);background:radial-gradient(80% 70% at 100% 0%,color-mix(in srgb,var(--hk-accent) 12%,transparent),transparent 70%),var(--hk-paper)}
html body .hx-bento .hx-t-copy .hk-copy{width:100%;container-type:inline-size}
html body .hx-bento .hx-t-copy h1{font-size:min(clamp(40px,4.8vw,78px),calc(100cqi / (var(--n,12) * .5)))}
html body .hx-bento .hx-t-copy .hk-lead{margin-bottom:0;max-width:48ch}
html body .hx-bento .hx-t-copy .rh-actions{margin-top:clamp(22px,2.2vw,30px)}
html body .hx-bento .hx-t-copy .hk-badge{background:var(--hk-wash)}
html body .hx-bento .hx-t-photo{grid-column:span 5;box-shadow:none}
html body .hx-bento .hx-t-photo .rh-media,html body .hx-bento .hx-t-photo2 .rh-media{position:absolute;inset:0;border-radius:0}
html body .hx-bento .hx-t-photo2{grid-column:span 3;box-shadow:none;min-height:clamp(200px,15.5vw,250px)}
html body .hx-bento .hx-t-photo2.is-repeat img{object-position:30% 70%;scale:1.4}
html body .hx-bento .hx-tile .rh-media img{transition:scale 1.2s cubic-bezier(.2,.7,.2,1)}
html body .hx-bento .hx-tile:hover .rh-media img{scale:1.05}
html body .hx-bento .hx-t-photo2.is-repeat:hover img{scale:1.45}
html body .hx-bento .hx-cap{position:absolute;left:12px;bottom:12px;right:12px;width:max-content;max-width:calc(100% - 24px);padding:7px 12px;border-radius:999px;background:color-mix(in srgb,var(--hk-paper) 86%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font:600 12.5px/1.25 var(--hk-bf);color:var(--hk-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Small tiles */
html body .hx-bento .hx-k{display:block;font:600 11.5px/1.2 var(--hk-bf);letter-spacing:.14em;text-transform:uppercase;color:var(--hk-muted)}
html body .hx-bento .hx-t-cta,html body .hx-bento .hx-t-facts,html body .hx-bento .hx-t-svc{grid-column:span 3;display:flex;flex-direction:column;gap:18px;padding:clamp(20px,1.8vw,28px);min-height:clamp(200px,15.5vw,250px)}
html body .hx-bento .hx-t-cta{background:var(--hk-accent);color:#fff;text-decoration:none;box-shadow:0 24px 40px -26px color-mix(in srgb,var(--hk-accent) 90%,transparent);justify-content:space-between;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
html body .hx-bento .hx-t-cta::before{content:"";position:absolute;right:-30%;top:-40%;width:90%;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.22),transparent);pointer-events:none}
html body .hx-bento .hx-t-cta .hx-k{color:rgba(255,255,255,.8)}
html body .hx-bento .hx-t-cta strong{position:relative;font:700 clamp(24px,2.1vw,34px)/1.05 var(--hk-hf);letter-spacing:-.03em;color:#fff;overflow-wrap:break-word}
html body .hx-bento .hx-go{position:relative;align-self:flex-end;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#fff;color:var(--hk-accent);rotate:-45deg;transition:rotate .4s cubic-bezier(.3,1.3,.4,1)}
html body .hx-bento .hx-go svg{width:22px;height:22px}
html body .hx-bento .hx-t-cta:hover{transform:translateY(-3px);color:#fff}
html body .hx-bento .hx-t-cta:hover .hx-go{rotate:0deg}
html body .hx-bento .hx-t-cta:focus-visible{outline:3px solid color-mix(in srgb,var(--hk-accent) 45%,transparent);outline-offset:3px}

html body .hx-bento .hx-t-facts{background:var(--hk-ink);box-shadow:none;justify-content:space-between}
html body .hx-bento .hx-t-facts .hx-k{color:rgba(255,255,255,.6)}
html body .hx-bento .hx-facts{flex-direction:column;flex-wrap:nowrap;gap:14px}
html body .hx-bento .hx-facts .hk-ico{width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.1)}
html body .hx-bento .hx-facts .hk-ico svg{width:17px;height:17px;color:#fff}
html body .hx-bento .hx-facts .hk-f--rate .hk-ico svg{color:var(--hk-gold)}
html body .hx-bento .hx-facts .hk-fv small{color:rgba(255,255,255,.6)}
html body .hx-bento .hx-facts .hk-fv strong{color:#fff;font-size:15px;overflow-wrap:anywhere}
html body .hx-bento .hx-facts a:hover strong{text-decoration:underline;text-underline-offset:3px}
html body .hx-bento .hx-local{margin:0;font:600 clamp(18px,1.5vw,22px)/1.3 var(--hk-hf);letter-spacing:-.01em;color:#fff}

html body .hx-bento .hx-t-svc{justify-content:space-between}
html body .hx-bento .hx-svc{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}
html body .hx-bento .hx-svc li{margin:0;padding:0;list-style:none}
html body .hx-bento .hx-svc li,html body .hx-bento .hx-svc a{display:flex;align-items:center;gap:11px;font:600 15px/1.3 var(--hk-bf);color:var(--hk-ink);text-decoration:none}
html body .hx-bento .hx-svc li{padding:7px 0;border-top:1px solid var(--hk-edge)}
html body .hx-bento .hx-svc li:first-child{border-top:0}
html body .hx-bento .hx-svc a{width:100%;padding:0;transition:color .2s,gap .25s}
html body .hx-bento .hx-svc a:hover{color:var(--hk-accent);gap:15px}
html body .hx-bento .hx-ic{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:color-mix(in srgb,var(--hk-accent) 13%,transparent);color:var(--hk-accent)}
html body .hx-bento .hx-ic svg{width:13px;height:13px}
html body .hx-bento .hx-num{font:700 12px/1 var(--hk-bf)}

/* No photos: copy runs full width, three small tiles below */
html body .hx-bento .is-nophoto .hx-t-copy{grid-column:1 / -1;min-height:0}
html body .hx-bento .is-nophoto .hx-t-cta,html body .hx-bento .is-nophoto .hx-t-facts,html body .hx-bento .is-nophoto .hx-t-svc{grid-column:span 4}

@media (max-width:1000px){
  html body .hx-bento .hx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body .hx-bento .hx-t-copy,html body .hx-bento .hx-t-photo,html body .hx-bento .is-nophoto .hx-t-copy{grid-column:1 / -1;min-height:0}
  html body .hx-bento .hx-t-photo{aspect-ratio:16/10}
  html body .hx-bento .hx-t-cta,html body .hx-bento .hx-t-photo2{grid-column:span 1}
  html body .hx-bento .hx-t-facts,html body .hx-bento .hx-t-svc{grid-column:span 1;min-height:0}
  html body .hx-bento .is-nophoto .hx-t-cta{grid-column:1 / -1;min-height:0}
  html body .hx-bento .is-nophoto .hx-t-facts,html body .hx-bento .is-nophoto .hx-t-svc{grid-column:span 1}
}
@media (max-width:640px){
  html body .hx-bento{padding:12px 0 28px}
  html body .hx-bento .hk-wrap{padding:0 12px}
  html body .hx-bento .hx-t-copy{padding:30px 22px 26px}
  html body .hx-bento .hx-t-copy h1{font-size:min(clamp(34px,9.6vw,46px),calc(100cqi / (var(--n,12) * .48)))}
  html body .hx-bento .hx-t-photo{aspect-ratio:4/3;order:3}
  html body .hx-bento .hx-t-cta{order:1}
  html body .hx-bento .hx-t-photo2{order:2}
  html body .hx-bento .hx-t-facts,html body .hx-bento .hx-t-svc{order:4}
  html body .hx-bento .hx-t-cta,html body .hx-bento .hx-t-photo2{min-height:200px}
  html body .hx-bento .hx-t-cta strong{font-size:22px}
  html body .hx-bento .hx-go{width:46px;height:46px}
  html body .hx-bento .hx-t-facts,html body .hx-bento .hx-t-svc,html body .hx-bento .is-nophoto .hx-t-facts,html body .hx-bento .is-nophoto .hx-t-svc{grid-column:1 / -1}
  html body .hx-bento .hx-t-facts .hx-facts{gap:12px}
}

/* Motion (r3) — big tile crossfade: photo 1 stays underneath; each extra photo fades in on top (6s each, slow
   zoom-out), then fades away under the next one. Dots fill in step. Static / reduced motion = photo 1, first dot. */
html body .hx-bento .hx-t-photo .hx-sl{position:absolute;inset:0;opacity:0}
html body .hx-bento .hx-dots{position:absolute;z-index:2;left:16px;bottom:16px;display:flex;gap:6px;padding:7px 9px;border-radius:999px;background:color-mix(in srgb,var(--hk-ink) 38%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html body .hx-bento .hx-dots i{position:relative;display:block;width:18px;height:4px;border-radius:4px;overflow:hidden;background:rgba(255,255,255,.38)}
html body .hx-bento .hx-dots i::after{content:"";position:absolute;inset:0;border-radius:inherit;background:#fff;transform:scaleX(0);transform-origin:0 50%}
html body .hx-bento .hx-dots i:first-child::after{transform:none}
@media (prefers-reduced-motion:no-preference){
  html body .hx-bento .is-show{--hx-t:6s;--hx-f:1.2s}
  html body .hx-bento .is-show .hx-sl{animation:hxbe-x3 calc(var(--hx-t) * 3) calc(var(--i) * var(--hx-t) - var(--hx-f)) linear infinite;will-change:opacity,transform}
  html body .hx-bento .is-n2 .hx-sl{animation-name:hxbe-x2;animation-duration:calc(var(--hx-t) * 2)}
  html body .hx-bento .is-n4 .hx-sl{animation-name:hxbe-x4;animation-duration:calc(var(--hx-t) * 4)}
  html body .hx-bento .is-show .hx-dots i::after{animation:hxbe-d3 calc(var(--hx-t) * 3) calc(var(--i) * var(--hx-t)) linear infinite}
  html body .hx-bento .is-n2 .hx-dots i::after{animation-name:hxbe-d2;animation-duration:calc(var(--hx-t) * 2)}
  html body .hx-bento .is-n4 .hx-dots i::after{animation-name:hxbe-d4;animation-duration:calc(var(--hx-t) * 4)}
  html body .hx-bento .is-show:hover .hx-sl,html body .hx-bento .is-show:hover .hx-dots i::after{animation-play-state:paused}
}
/* fade-in f, hold T, fade-out f (under the next photo); T = 6s, f = 1.2s */
@keyframes hxbe-x2{0%{opacity:0;transform:scale(1.07);animation-timing-function:ease-out}10%{opacity:1}60%{opacity:1;transform:scale(1);animation-timing-function:ease-in}70%,100%{opacity:0;transform:scale(1)}}
@keyframes hxbe-x3{0%{opacity:0;transform:scale(1.07);animation-timing-function:ease-out}6.67%{opacity:1}40%{opacity:1;transform:scale(1);animation-timing-function:ease-in}46.67%,100%{opacity:0;transform:scale(1)}}
@keyframes hxbe-x4{0%{opacity:0;transform:scale(1.07);animation-timing-function:ease-out}5%{opacity:1}30%{opacity:1;transform:scale(1);animation-timing-function:ease-in}35%,100%{opacity:0;transform:scale(1)}}
@keyframes hxbe-d2{0%{transform:scaleX(0);opacity:1}50%{transform:scaleX(1);opacity:1}55%,100%{transform:scaleX(1);opacity:0}}
@keyframes hxbe-d3{0%{transform:scaleX(0);opacity:1}33.33%{transform:scaleX(1);opacity:1}38%,100%{transform:scaleX(1);opacity:0}}
@keyframes hxbe-d4{0%{transform:scaleX(0);opacity:1}25%{transform:scaleX(1);opacity:1}29%,100%{transform:scaleX(1);opacity:0}}

/* Service hover: rows highlight, the small photo tile swaps to that row's photo (with its own caption) */
html body .hx-bento .hx-svc li{transition:opacity .3s}
html body .hx-bento .hx-ic{transition:background-color .3s,color .3s,scale .35s cubic-bezier(.3,1.3,.4,1)}
html body .hx-bento .hx-t-svc:hover .hx-svc li:not(:hover){opacity:.5}
html body .hx-bento .hx-svc li:hover .hx-ic,html body .hx-bento .hx-svc a:focus-visible .hx-ic{background:var(--hk-accent);color:#fff;scale:1.08}
html body .hx-bento .hx-svc a:focus-visible{outline:2px solid color-mix(in srgb,var(--hk-accent) 50%,transparent);outline-offset:3px;border-radius:8px}
html body .hx-bento .hx-t-photo2{transition:box-shadow .4s}
html body .hx-bento .hx-t-photo2 > .hx-cap{transition:opacity .35s}
html body .hx-bento .hx-alt{position:absolute;inset:0;z-index:1;opacity:0;transition:opacity .55s cubic-bezier(.2,.7,.2,1);pointer-events:none}
html body .hx-bento .hx-alt img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.08);transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
html body .hx-bento .hx-alt .hx-cap{transform:translateY(6px);opacity:0;transition:opacity .4s .1s,transform .5s .1s cubic-bezier(.2,.7,.2,1)}
html body .hx-bento .hx-grid:has(.hx-svc .has-alt:hover,.hx-svc .has-alt a:focus-visible) .hx-t-photo2{box-shadow:0 0 0 3px var(--hk-accent)}
html body .hx-bento .hx-grid:has(.hx-svc .has-alt:hover,.hx-svc .has-alt a:focus-visible) .hx-t-photo2 > .hx-cap{opacity:0}
html body .hx-bento .hx-grid:has(.hx-s1.has-alt:hover,.hx-s1.has-alt a:focus-visible) .hx-a1,
html body .hx-bento .hx-grid:has(.hx-s2.has-alt:hover,.hx-s2.has-alt a:focus-visible) .hx-a2,
html body .hx-bento .hx-grid:has(.hx-s3.has-alt:hover,.hx-s3.has-alt a:focus-visible) .hx-a3,
html body .hx-bento .hx-grid:has(.hx-s4.has-alt:hover,.hx-s4.has-alt a:focus-visible) .hx-a4{opacity:1}
html body .hx-bento .hx-grid:has(.hx-s1.has-alt:hover,.hx-s1.has-alt a:focus-visible) .hx-a1 :is(img,.hx-cap),
html body .hx-bento .hx-grid:has(.hx-s2.has-alt:hover,.hx-s2.has-alt a:focus-visible) .hx-a2 :is(img,.hx-cap),
html body .hx-bento .hx-grid:has(.hx-s3.has-alt:hover,.hx-s3.has-alt a:focus-visible) .hx-a3 :is(img,.hx-cap),
html body .hx-bento .hx-grid:has(.hx-s4.has-alt:hover,.hx-s4.has-alt a:focus-visible) .hx-a4 :is(img,.hx-cap){transform:none;opacity:1}
@media (hover:none){html body .hx-bento .hx-alt{display:none}}
@media (prefers-reduced-motion:reduce){
  html body .hx-bento .hx-alt,html body .hx-bento .hx-alt img,html body .hx-bento .hx-alt .hx-cap,html body .hx-bento .hx-svc li{transition:none}
}
