/* Homepage day/night: full-size desktop story with a natural mobile layout. */
.night-day-hero {
  --night-clip: 100%;
  --hero-progress: 0;
  position: relative;
  background: #33352b;
  color: #efe9de;
  isolation: isolate;
}
.night-day-hero__pin {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 4.5vw, 72px);
  min-height: 100svh;
  padding: calc(var(--nav-h, 72px) + 56px) clamp(24px, 4.7vw, 80px) 64px;
  box-sizing: border-box;
}
.night-day-hero__content {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  max-width: 490px;
  min-width: 0;
}
.night-day-hero__brand {
  margin: 0 0 24px;
  color: #efe9de;
  font: 500 14px/1.5 Inter, Arial, sans-serif;
  letter-spacing: .01em;
}
html body section.night-day-hero h1 {
  max-width: 16ch;
  margin: 0;
  color: #efe9de !important;
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif) !important;
  font-size: clamp(44px, 4.15vw, 64px) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
  letter-spacing: -.015em !important;
  text-shadow: none;
  text-wrap: balance;
}
html body section.night-day-hero h1 em {
  color: #d5a69a;
  font-style: normal;
}
.night-day-hero__lede {
  max-width: 43ch;
  margin: 28px 0 0;
  color: #efe9de;
  font: 400 16px/1.7 Inter, Arial, sans-serif;
  text-wrap: pretty;
}
.night-day-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
html body .night-day-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #858c79;
  color: #211d18;
  font: 600 14px/1.5 Inter, Arial, sans-serif;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
}
html body .night-day-hero__actions a:focus-visible {
  outline: 2px solid #efe9de;
  outline-offset: 5px;
}
.night-day-hero__visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 2560 / 1429;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #33352b;
}
.night-day-hero__media,
.night-day-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.night-day-hero__image {
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.night-day-hero__media--base { z-index: 0; }
.night-day-hero__media--reveal {
  z-index: 1;
  clip-path: inset(var(--night-clip) 0 0 0);
}
/* ScrollTrigger owns this hero; native scrolling drives one reversible timeline. */
html:has(.night-day-hero) { scroll-behavior: auto !important; }
.night-day-hero__media--reveal { clip-path: none; opacity: 0; }
@media (min-width:901px) and (min-height:651px) {
  .night-day-hero__pin { height:100svh; min-height:100svh; }
  .night-day-hero.has-transition .night-day-hero__pin { display:block; overflow:hidden; }
  .night-day-hero.has-transition .night-day-hero__content {
    position:absolute;
    z-index:2;
    left:clamp(24px,4.7vw,80px);
    bottom:clamp(40px,5.2vh,64px);
    width:min(51%,590px);
    max-width:none;
    pointer-events:auto;
  }
  .night-day-hero.has-transition .night-day-hero__content::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:-28px -72px -24px -72px;
    pointer-events:none;
    background:radial-gradient(ellipse at 38% 52%,rgba(18,20,17,.89) 0%,rgba(18,20,17,.76) 46%,rgba(18,20,17,.18) 78%,transparent 100%);
    -webkit-mask-image:radial-gradient(ellipse 65% 50% at 42% 50%,#000 28%,transparent 100%);
    mask-image:radial-gradient(ellipse 65% 50% at 42% 50%,#000 28%,transparent 100%);
  }
  .night-day-hero.has-transition .night-day-hero__visual {
    position:absolute; top:var(--nav-h,72px); left:0; right:0; bottom:0;
    width:100%; height:calc(100% - var(--nav-h,72px)); max-width:none;
    aspect-ratio:auto;
  }
  .night-day-hero.has-transition .night-day-hero__media--reveal { opacity:0; }
  .night-day-hero.has-transition :is(.night-day-hero__brand,.night-day-hero__lede),
  html body section.night-day-hero.has-transition h1 {
    text-shadow:0 2px 12px rgba(0,0,0,.55);
  }
  .night-day-hero.has-transition :is(
    .night-day-hero__media--reveal,
    .night-day-hero__brand,
    h1,
    .night-day-hero__lede,
    .night-day-hero__actions
  ) { will-change:transform,opacity; }
}
@media (max-width: 900px) {
  .night-day-hero__pin {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(64px, calc(34vw - 69px), 144px);
    align-content: start;
    min-height: 0;
    padding: calc(var(--nav-h, 72px) + 32px) 24px 40px;
  }
  .night-day-hero__content {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 540px;
    min-width: 0;
  }
  .night-day-hero__visual {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: 100%;
    max-width: 480px;
    min-width: 0;
  }
  html body section.night-day-hero h1 { font-size: clamp(38px, 7vw, 52px) !important; }
  .night-day-hero__brand { margin-bottom: 20px; }
  .night-day-hero__lede { margin-top: 24px; }
  .night-day-hero__actions { margin-top: 28px; }
}
@media (max-width: 760px) {
  .night-day-hero__actions { display: none !important; }
}
@media (max-width: 480px) {
  .night-day-hero__pin { padding-inline: 20px; }
  .night-day-hero__lede {
    max-width: none;
    font-size: 15px;
    line-height: 1.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  .night-day-hero__media--reveal { display: none; }
}

/* Review proof sits at the lower right of the full-size night frame. */
html body .night-day-hero__rating {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4.7vw, 80px);
  bottom: clamp(40px, 5.2vh, 64px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.3vw, 18px);
  max-width: min(42vw, 440px);
  color: #efe9de;
  isolation: isolate;
}
html body .night-day-hero__rating::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -32px -48px -32px -68px;
  background: radial-gradient(ellipse at 65% 56%,rgba(18,20,17,.85),rgba(18,20,17,.55) 48%,transparent 78%);
  pointer-events: none;
}
html body .night-day-hero__score {
  flex: none;
  color: #e7cbb9;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(46px, 4.1vw, 62px) !important;
  font-weight: 500 !important;
  line-height: .82 !important;
  letter-spacing: -.055em;
  font-variant-numeric: lining-nums;
}
html body .night-day-hero__rating-copy p {
  margin: 0;
  color: #efe9de;
  font: 400 clamp(13px, .95vw, 15px)/1.45 Inter, Arial, sans-serif;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
html body .night-day-hero__rating-copy p + p { margin-top: 7px; color: #b9c0ad; }
@media (max-width: 900px) {
  html body .night-day-hero__pin { padding-bottom: 136px; }
  html body .night-day-hero__rating { right: 24px; bottom: 24px; max-width: calc(100% - 48px); gap: 14px; }
  html body .night-day-hero__rating::before { display: none; }
  html body .night-day-hero__score { font-size: clamp(44px, 6vw, 56px) !important; }
  html body .night-day-hero__rating-copy p { font-size: clamp(13px, 2.5vw, 16px); }
}
@media (max-width: 480px) {
  html body .night-day-hero__pin { padding-bottom: 106px; }
  html body .night-day-hero__rating { right: 20px; bottom: 24px; max-width: calc(100% - 40px); }
  html body .night-day-hero__score { font-size: clamp(42px, 11vw, 48px) !important; }
  html body .night-day-hero__rating-copy p { font-size: clamp(12px, 3.5vw, 15px); }
}

/* The global .btn margin must not cancel the gap between these actions. */
html body .night-day-hero__actions > a { margin: 0 !important; }
