/* Signature 3.0: stable header slot, visual compression within it, and bounded image drift. */
body:has(.cinematic) #header .contact-link:hover {
  background: #f6f4ef;
  color: #222426;
  border-color: #f6f4ef;
}
body:has(.cinematic) #header.is-scrolled .contact-link:hover {
  background: #222426;
  color: #f6f4ef;
  border-color: #222426;
}
html {
  scrollbar-gutter: stable;
}
body:has(#lightbox[open]) {
  overflow: hidden;
}
.hero.cinematic::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--nav-height) + var(--notice-height) + 30px);
  background: linear-gradient(
    to bottom,
    #0c1217b8 0,
    #0c1217b8 calc(100% - 30px),
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}
body {
  --nav-height: 102px;
  --notice-height: 0px;
  transition: background-color 650ms ease;
}
body:has(.top-note) {
  --notice-height: 24px;
}
body.catalog-in-view {
  background-color: #f1efe9;
}
body:has(.cinematic) #header {
  height: calc(var(--nav-height) + var(--notice-height));
  margin-bottom: calc(-1 * (var(--nav-height) + var(--notice-height)));
  background: transparent;
  color: #f6f4ef;
  border: 0;
  box-shadow: none;
  isolation: isolate;
}
body:has(.cinematic) #header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f6f4ef;
  opacity: 0;
  transform-origin: top;
  transform: scaleY(1);
  transition:
    opacity 280ms,
    transform 360ms cubic-bezier(0.22, 0.61, 0.24, 1);
  border-bottom: 1px solid #d7d5cf;
}
body:has(.cinematic) #header .nav {
  height: var(--nav-height);
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.24, 1);
}
body:has(.cinematic) #header .brand img {
  filter: brightness(0) invert(1);
  transition:
    filter 220ms,
    transform 360ms;
}
body:has(.cinematic) #header .top-note {
  height: var(--notice-height);
  background: #11171ccc;
  color: #d5d9db;
  display: flex;
  justify-content: center;
  align-items: center;
}
body:has(.cinematic) #header .nav-links > a::after {
  background: currentColor;
}
body:has(.cinematic) #header .contact-link {
  border-color: #c3c7caaa;
  color: inherit;
}
body:has(.cinematic) #header.is-scrolled {
  color: #222426;
}
body:has(.cinematic) #header.is-scrolled::before {
  opacity: 1;
  transform: scaleY(0.91);
}
body:has(.cinematic) #header.is-scrolled .nav {
  height: var(--nav-height);
  transform: translateY(-6px);
}
body:has(.cinematic) #header.is-scrolled .brand img {
  filter: none;
  transform: scale(0.96);
  transform-origin: left;
}
body:has(.cinematic) #header.is-scrolled .top-note {
  background: #e9e7e1;
  color: #595c5f;
}
.hero.cinematic {
  height: clamp(780px, 56vw, 1600px);
}
.cinematic .hero-content {
  padding-top: calc(var(--nav-height) + var(--notice-height) + 30px);
  padding-bottom: 65px;
}
.cinematic h1 {
  font-size: clamp(76px, 6.7vw, 176px);
}
.cinematic .hero-visual img {
  translate: var(--hero-drift-x, 0px) var(--hero-drift-y, 0px);
  transition: translate 600ms cubic-bezier(0.22, 0.61, 0.24, 1);
}
.motion-hero .hero-visual img {
  animation-name: hero-settle, exposure-settle;
  animation-duration: 1150ms, 780ms;
  animation-timing-function: var(--ease-cinema);
  animation-fill-mode: both;
}
@keyframes exposure-settle {
  from {
    filter: brightness(0.88);
  }
  to {
    filter: brightness(1);
  }
}
.gallery-thumbs {
  display: flex;
  position: absolute;
  bottom: 48px;
  left: 65px;
  right: 65px;
  gap: 7px;
  overflow-x: auto;
  padding: 6px 0;
  scrollbar-width: thin;
  z-index: 2;
  overscroll-behavior: contain;
}
#lightbox .gallery-thumbs button {
  position: relative;
  flex: 0 0 65px;
  width: 65px;
  height: 43px;
  min-height: 43px;
  padding: 0;
  border: 1px solid transparent;
  opacity: 0.5;
  background: #262b30;
}
#lightbox .gallery-thumbs button[aria-current="true"] {
  opacity: 1;
  border-color: #e3e5e7;
}
#lightbox .gallery-thumbs button:focus-visible {
  opacity: 1;
}
#lightbox .gallery-thumbs img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  cursor: pointer;
  transform: none;
  transition: none;
}
#lightbox {
  padding-bottom: 120px;
}
#lightbox > img {
  max-height: calc(100dvh - 190px);
}
#lightbox.zoomed > img {
  transform: scale(1.8);
}
input,
textarea,
select {
  transition:
    border-color 170ms,
    background-color 170ms;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #666d73;
  background: #faf9f6;
}
@media (min-width: 1920px) {
  body {
    --nav-height: 115px;
  }
}
@media (max-width: 1200px) {
  body {
    --nav-height: 92px;
  }
  .hero.cinematic {
    height: 760px;
  }
}
@media (max-width: 900px) {
  body {
    --nav-height: 82px;
  }
  body:has(.top-note) {
    --notice-height: 36px;
  }
  .hero.cinematic {
    height: auto;
  }
  .cinematic .hero-content {
    display: contents;
    padding: 0;
  }
  .cinematic .hero-copy {
    padding-top: calc(var(--nav-height) + var(--notice-height) + 27px);
  }
  body:has(.cinematic) #header .nav-links {
    color: #222426;
  }
  .cinematic h1 {
    font-size: clamp(57px, 14.4vw, 76px);
  }
  .gallery-thumbs {
    left: 15px;
    right: 15px;
    bottom: 58px;
  }
  #lightbox .gallery-thumbs button {
    flex-basis: 52px;
    width: 52px;
    height: 38px;
    min-height: 38px;
  }
  #lightbox > img {
    max-height: calc(100dvh - 200px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body,
  #header::before,
  .cinematic .hero-visual img {
    transition: none !important;
  }
  .motion-hero .hero-visual img {
    animation: none !important;
    translate: 0 0 !important;
  }
}

@media (max-width: 900px) {
  .motion-hero .hero-visual img {
    animation-name: hero-settle;
    filter: none;
  }
}
