/* FINAL POLISH — restrained monogram / Hero CV / reveal gate / scroll stability */
.site-logo__image {
  display: block;
  width: clamp(44px, 4.1vw, 57px);
  height: clamp(44px, 4.1vw, 57px);
  object-fit: contain;
  border: 1px solid rgba(228,204,175,.25);
  background: #190606;
  box-shadow: 0 0 0 1px rgba(76,19,17,.25), 0 10px 28px rgba(0,0,0,.26);
  flex: none;
  transition: border-color .3s, filter .3s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.site-logo:hover .site-logo__image,
.site-logo:focus-visible .site-logo__image { border-color:#daaaa0; filter:brightness(1.08); transform:rotate(-4deg) scale(1.045); }
.site-logo__caption { white-space:nowrap; }
.rc__monogram { padding:0 !important; overflow:hidden; }
.rc__monogram img { width:100%; height:100%; object-fit:cover; display:block; }

/* Native anchors remain native on touch; Lenis handles desktop anchors. */
html.lenis, html.lenis body { scroll-behavior:auto !important; }
/* Avoid paint-heavy always-on filters and raster overhang. */
.portfolio-shell { isolation:isolate; }
.hero__action-group { display:flex; flex-wrap:nowrap; align-items:center; justify-content:center; gap:clamp(12px,2.2vw,28px); min-width:0; }
.hero__action-group .hero__cta { flex-shrink:0; }
.hero__cv-link { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:12px;
 text-decoration:none; color:#f1d9b7; border:1px solid rgba(228,204,175,.43); padding:11px 14px;
 white-space:nowrap; text-transform:uppercase; letter-spacing:.15em; font:700 10px/1.35 var(--ui,system-ui);
 transition:color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
.hero__cv-link > span:last-child { color:#d27b6d; font-size:17px; transform:translateY(-1px); }
.hero__cv-link:hover,.hero__cv-link:focus-visible { color:#100609; background:#e7ccaf; border-color:#e7ccaf; transform:translateY(-3px); }
.hero__cv-link:hover > span:last-child { color:#8d3429; }

/* HERO REPAIR / the former full-frame entry gate could conceal half the Hero.
   Disable it unconditionally, including for pages with cached old markup. */
.hero__entry-gate { display: none !important; }

@media(max-width:720px){
 .hero__bottom-strip { grid-template-columns: minmax(0,1fr) !important; min-height:72px; height:auto !important; padding-block:10px !important; }
 .hero__bottom-folio,.hero__bottom-scroll { display:none !important; }
 .hero__action-group { width:100%; justify-content:space-between; gap:8px; }
 .hero__cv-link {padding:10px 8px; font-size:9px; letter-spacing:.055em; gap:5px;}
 .hero__action-group .hero__cta {padding:10px 0; }
 .hero__action-group .hero__cta > span:first-child{max-width:104px;line-height:1.3;}
 .site-logo__image{width:42px;height:42px;}
}
@media(max-width:385px){.hero__cv-link{font-size:8px;padding-inline:7px;} .hero__action-group .hero__cta>span:first-child{max-width:84px;} }
@media(prefers-reduced-motion:reduce){
  .hero__entry-gate{display:none!important;}
  .site-logo__image,.hero__cv-link {transition:none!important;}
}
