/* CCH homepage-only styles (preloader, film grain, hero cue, full-screen menu, newsletter reveal) — extracted from index.html */

  html.lenis {
    height: auto;
  }

  /* --- Premium preloader (hairline counter + curtain) --- */
  .preloader-wrapper { overflow: hidden; will-change: transform; }
  .preloader-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
  }
  .preload-heading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
  }
  .preloader-tagline {
    color: #ebebeb;
    opacity: 0.7;
    font-family: Lora, serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
  }
  .preloader-counter, .preloader-filmstrip { z-index: 2; }

  /* --- Film-strip loader (analog camera reel) --- */
  .preloader-filmstrip {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4rem;
    overflow: hidden;
    background: #0b0b0b;
    border-top: 1px solid rgba(235, 235, 235, 0.06);
    border-bottom: 1px solid rgba(235, 235, 235, 0.06);
  }
  /* perforation rails (sprocket holes) that scroll like a turning reel */
  .preloader-perf {
    position: absolute;
    left: 0;
    width: 300%;
    height: 0.55rem;
    background-image: repeating-linear-gradient(
      to right,
      rgba(235, 235, 235, 0.5) 0,
      rgba(235, 235, 235, 0.5) 0.45rem,
      transparent 0.45rem,
      transparent 1.05rem
    );
    will-change: transform;
    animation: preloaderReel 0.55s linear infinite;
  }
  .preloader-perf.is-top { top: 0.35rem; }
  .preloader-perf.is-bottom { bottom: 0.35rem; }
  @keyframes preloaderReel {
    to { transform: translateX(-1.05rem); }
  }
  /* exposed frames between the rails */
  .preloader-frames {
    position: absolute;
    left: 0;
    right: 0;
    top: 1.15rem;
    bottom: 1.15rem;
    display: flex;
    gap: 0.35rem;
    padding: 0 0.6rem;
  }
  .preloader-frame {
    flex: 1 1 0;
    position: relative;
    background: rgba(235, 235, 235, 0.04);
    border: 1px solid rgba(235, 235, 235, 0.06);
    overflow: hidden;
  }
  .preloader-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 244, 224, 0.92), rgba(214, 188, 150, 0.62));
    box-shadow: 0 0 10px rgba(255, 240, 214, 0.45);
    opacity: 0;
    transform: scaleY(0.35);
    transform-origin: bottom;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .preloader-frame.is-exposed::after {
    opacity: 1;
    transform: scaleY(1);
  }
  .preloader-counter {
    position: absolute;
    right: 2.75rem;
    bottom: 5rem;
    color: #ebebeb;
    opacity: 0.85;
    font-family: Lora, serif;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
  }
  /* The shared CSS leaves the preloader title at 8rem/line-height 6rem on phones,
     so "CC Harris" overran the viewport and wrapped with overlapping lines. Scale
     it down with a sane line-height so it sits comfortably on small screens. */
  @media screen and (max-width: 767px) {
    .preloader-heading { font-size: 5rem; line-height: 1.05; }
  }
  @media screen and (max-width: 479px) {
    .preloader-filmstrip { height: 3rem; }
    .preloader-perf.is-top { top: 0.25rem; }
    .preloader-perf.is-bottom { bottom: 0.25rem; }
    .preloader-frames { top: 0.9rem; bottom: 0.9rem; gap: 0.25rem; }
    .preloader-counter { right: 1.5rem; bottom: 3.75rem; font-size: 1.25rem; }
    .preloader-heading { font-size: 3.4rem; line-height: 1.05; letter-spacing: 1px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .preloader-perf { animation: none; }
    .preloader-frame::after { transition: none; }
  }

  /* --- Ambient film grain + vignette (analog texture) --- */
  .fx-overlay {
    position: fixed;
    inset: 0;
    z-index: 997;
    pointer-events: none;
    background: radial-gradient(125% 125% at 50% 42%, rgba(0,0,0,0) 56%, rgba(0,0,0,0.5) 100%);
  }
  .fx-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.10;
    mix-blend-mode: overlay;
    animation: fxGrain 1.1s steps(5) infinite;
  }
  /* Grain jitter moves the tiled texture (background-position), NOT the element
     box — the original translate() animation moved a 400vw pseudo-element every
     220ms and Lighthouse booked each jump as a layout shift (0.017 CLS each;
     mix-blend-mode kept it off the compositor, so translate3d didn't help).
     The noise tile repeats every 180px, so px offsets read identically random. */
  @keyframes fxGrain {
    0%   { background-position: 0 0; }
    20%  { background-position: -108px 72px; }
    40%  { background-position: 90px -90px; }
    60%  { background-position: -72px 108px; }
    80%  { background-position: 108px -54px; }
    100% { background-position: 0 0; }
  }

  /* --- Hero scroll cue --- */
  .hero-scroll-cue {
    position: fixed;
    left: 50%;
    bottom: 2.25rem;
    transform: translateX(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: #ebebeb;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .hero-scroll-cue.is-hidden { opacity: 0; transform: translateX(-50%) translateY(12px); }
  .hero-scroll-cue .cue-label {
    font-family: Lora, serif;
    font-size: 0.62rem;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .hero-scroll-cue .cue-line {
    position: relative;
    width: 1px;
    height: 42px;
    background: rgba(235, 235, 235, 0.25);
    overflow: hidden;
  }
  .hero-scroll-cue .cue-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -50%;
    width: 100%;
    height: 50%;
    background: #ebebeb;
    animation: cueTravel 1.9s cubic-bezier(.77, 0, .18, 1) infinite;
  }
  @keyframes cueTravel {
    0%        { top: -50%; }
    60%, 100% { top: 100%; }
  }

  /* --- Newsletter: scroll reveal --- */
  html.w-mod-js .section_newsletter .newsletter-content,
  html.w-mod-js .section_newsletter .newsletter-form {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.16, .84, .44, 1);
  }
  html.w-mod-js .section_newsletter .newsletter-form { transition-delay: 0.12s; }
  html.w-mod-js .section_newsletter.is-inview .newsletter-content,
  html.w-mod-js .section_newsletter.is-inview .newsletter-form {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .fx-overlay::before { animation: none; }
    .hero-scroll-cue .cue-line::after { animation: none; }
    html.w-mod-js .section_newsletter .newsletter-content,
    html.w-mod-js .section_newsletter .newsletter-form { opacity: 1; transform: none; transition: none; }
  }

  /* --- Full-screen menu: editorial numbered list --- */
  .nav-page { background-color: var(--black); }
  .nav-grid {
    display: flex;
    align-items: center;
    position: relative;
    grid-template-columns: none;
    width: 100%;
    height: 100vh;
    padding-left: 10vw;
    background-color: var(--black);
  }
  .nav-content-space { display: none; }
  .nav-content-menu-wrapper {
    counter-reset: navi;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--black);
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
  }
  .links.nav-link {
    counter-increment: navi;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.75rem;
    width: fit-content;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--link-gray);
    line-height: 1;
    font-size: clamp(2.5rem, 7vw, 11vh);
    transition: color .45s ease;
  }
  .links.nav-link::before {
    content: "0" counter(navi);
    font-family: Lora, serif;
    font-size: clamp(1rem, 1.2vw, 1.6rem);
    letter-spacing: 1px;
    color: #ffffff;
    opacity: 0.3;
    transition: opacity .45s ease;
    margin-top: 0.9rem;
  }
  .links.nav-link:hover { color: #ffffff; }
  .links.nav-link:hover::before { opacity: 0.85; }
  .links.nav-link.w--current { color: #ffffff; }
  .links.nav-link.w--current::before { opacity: 0.85; }

  /* In-menu footer fills the bottom (typographic, no images) */
  .nav-footer {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    padding: 0 10vw 3rem;
    z-index: 5;
  }
  .nav-footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
  .nav-footer-right { align-items: flex-end; text-align: right; }
  .nav-footer-kicker {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #ffffff;
    opacity: 0.45;
  }
  .nav-footer-link {
    color: var(--link-gray);
    font-family: Lora, serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color .3s ease;
  }
  .nav-footer-link:hover { color: #ffffff; }
  .nav-social { display: flex; gap: 1.5rem; }

  /* Tablet */
  @media screen and (max-width: 991px) {
    .nav-grid { padding-left: 9vw; }
    .nav-content-menu-wrapper { gap: 0.9rem; }
    .links.nav-link { font-size: clamp(2.75rem, 6.5vw, 5rem); }
    .nav-footer { padding: 0 9vw 2.5rem; }
  }
  /* Mobile */
  @media screen and (max-width: 767px) {
    .nav-grid { padding-left: 8vw; }
    .nav-content-menu-wrapper { gap: 0.75rem; }
    .links.nav-link { font-size: 2.6rem; padding-bottom: 0.4rem; }
    .nav-footer {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      padding: 0 8vw 2rem;
    }
    .nav-footer-right { align-items: flex-start; text-align: left; }
  }
  /* Small phones */
  @media screen and (max-width: 479px) {
    .nav-content-menu-wrapper { gap: 0.5rem; }
    .links.nav-link { font-size: 2.1rem; padding-bottom: 0.35rem; }
  }

/* ════════════════════════════════════════════════════════════════════════
   HERO fixes (2026-06-29)
   ════════════════════════════════════════════════════════════════════════ */

/* DESKTOP: the slider track is centred in 100vh, but the fixed ~140px navbar
   overlaps the top — so the visible empty space read top-heavy. Offset the hero
   content down by the navbar height so it centres in the area BELOW the navbar. */
@media screen and (min-width: 992px) {
  .section-hero {
    box-sizing: border-box;
    padding-top: 140px;
  }
}

/* Swiper's loop init reorders the slide DOM to centre the active slide — the
   page's single biggest layout shift (0.089 CLS on .gallery-img_wrapper).
   .section-hero is a fixed 100vh box, so holding the slider invisible until
   Swiper adds .swiper-initialized shifts nothing and costs no space. The 3s
   keyframe fallback reveals the static layout if Swiper ever fails to load;
   scoped to .cch-js (inline head script, present before first paint — the
   Webflow w-mod-js class arrives from the footer bundle, far too late) so
   no-JS visitors always see the slides. */
html.cch-js .swiper.is-gallery {
  opacity: 0;
  animation: cchGalleryReveal 0s linear 3s forwards;
}
html.cch-js .swiper.is-gallery.swiper-initialized {
  opacity: 1;
  animation: none;
  transition: opacity 0.45s ease;
}
@keyframes cchGalleryReveal {
  to { opacity: 1; }
}
/* Same navbar offset on tablet/mobile: the export had .section-hero padding-top:0,
   so the fixed navbar overlapped the top of the first hero-grid image. Clear it by
   the navbar height at each breakpoint (140 / 116 / 97) + a little breathing room.
   Ordered largest→smallest so the Webflow cascade picks the right one per width. */
@media screen and (max-width: 991px) {
  .section-hero { box-sizing: border-box; padding-top: 156px; }
}
@media screen and (max-width: 767px) {
  .section-hero { padding-top: 132px; }
}
@media screen and (max-width: 479px) {
  .section-hero { padding-top: 112px; }
}

/* MOBILE/TABLET hero grid blur:
   The export's Webflow IX2 left the wrappers with a stuck/partial blur (the first
   card stayed blurred and looked unusable). Kill that wrapper blur entirely, then
   drive a clean progressive unblur on the IMAGES via blocks/hero/view.js: the
   first image is always sharp + clickable; the rest start blurred and clear one
   by one as they scroll into view. */
.hero-image-mob-wrapper { filter: none !important; }
.mob-hero-grid .hero-mob-image {
  transition: filter 0.7s ease;
}
.mob-hero-grid .hero-mob-image.cch-mob-blur {
  filter: blur(9px);
}
@media (prefers-reduced-motion: reduce) {
  .mob-hero-grid .hero-mob-image.cch-mob-blur { filter: none; }
}
