/* =========================================================
   Kritt Real Estate — crisp layer (Luxury Presence direction)
   Loads after global.css. Same words, same tokens; changes only
   the visual character: cinematic hero, quiet header, no boxed
   cards, hairline rules, calmer gold, even section rhythm.
   ========================================================= */

/* --- Header: finer type, one line ------------------------------------ */
.kritt-header__nav a,
.kritt-header__nav .wp-block-navigation-item__content,
.kritt-header__nav .wp-block-pages-list__item__link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.kritt-header__nav .wp-block-navigation__container,
.kritt-header__nav ul.wp-block-page-list {
  gap: 34px !important;
}

/* Home: the header floats clear over the hero, then turns solid once
   the visitor scrolls (html.kritt-scrolled, set in functions.php). */
.home .wp-site-blocks > header.wp-block-template-part:has(.kritt-header) {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
}

.home .kritt-header {
  background: transparent !important;
  border-bottom-color: transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}

html.kritt-scrolled .home .kritt-header {
  background: rgba(10, 10, 10, 0.92) !important;
  border-bottom-color: var(--wp--preset--color--border-subtle);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (min-width: 721px) {
  html.kritt-scrolled .home .kritt-header {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}

/* --- Cinematic hero ---------------------------------------------------- */
.kritt-hero--cinematic {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 140px;
  padding-bottom: 96px;
  background-image: none;
}

.kritt-hero--cinematic::before,
.kritt-hero--cinematic::after {
  content: none;
  animation: none;
}

.kritt-hero__backdrop {
  position: absolute;
  inset: 0;
  /* The section's constrained layout narrows every child; not this one. */
  max-width: none !important;
  margin: 0 !important;
  z-index: -1;
  overflow: hidden;
  background: #0a0a0a url("../assets/video/hero-poster.webp") center / cover no-repeat;
}

.kritt-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark from the left where the words sit, open on the right, and fading
   into the page at the bottom so the hero meets the next band cleanly. */
.kritt-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.25) 28%, rgba(10, 10, 10, 0) 62%, #0a0a0a 100%),
    linear-gradient(to right, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.6) 45%, rgba(10, 10, 10, 0.12) 100%);
}

.kritt-hero--cinematic .kritt-hero__grid {
  display: block;
}

.kritt-hero--cinematic .kritt-hero__text {
  max-width: 620px;
  margin-left: 0 !important;
}

.kritt-hero--cinematic .kritt-hero__eyebrow {
  font-size: 0.8125rem !important;
  font-weight: 400;
  letter-spacing: 0.24em;
  margin-bottom: 28px !important;
}

.kritt-hero--cinematic .kritt-hero__eyebrow::before {
  width: 32px;
}

.kritt-hero--cinematic .kritt-hero__heading {
  font-size: clamp(2.75rem, 5.6vw, 5.25rem) !important;
  line-height: 1.03 !important;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.kritt-hero--cinematic .kritt-hero__heading em {
  font-weight: 400;
}

.kritt-hero--cinematic .kritt-hero__subtitle {
  color: var(--wp--preset--color--text-body) !important;
  max-width: 28em;
}

/* Scroll cue: a thin gold line that drips down, nothing else. */
.kritt-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(212, 168, 75, 0), var(--wp--preset--color--gold));
  transform-origin: top;
  animation: kritt-scroll-cue 2.4s ease-in-out infinite;
}

@keyframes kritt-scroll-cue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(24px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kritt-hero__bg { display: none; }
  .kritt-hero__scroll { animation: none; }
}

@media (max-width: 720px) {
  .kritt-hero--cinematic {
    padding-top: 112px;
    padding-bottom: 88px;
    align-items: flex-end;
  }
  .kritt-hero__scrim {
    background:
      linear-gradient(to bottom, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.2) 22%, rgba(10, 10, 10, 0.78) 62%, #0a0a0a 100%);
  }
  .kritt-hero--cinematic .kritt-hero__eyebrow {
    font-size: 0.6875rem !important;
    letter-spacing: 0.2em;
  }
  .kritt-hero__scroll { display: none; }
  /* Tall screens show the middle of each shot, where the montage keeps
     its subject. */
  .kritt-hero__bg {
    object-position: 50% 50%;
  }
}

/* --- Intro video band (Jeremy) ---------------------------------------- */
.kritt-intro {
  padding-top: 24px;
  padding-bottom: clamp(80px, 9vw, 128px);
}

.kritt-intro__video {
  max-width: 960px;
  margin: 0 auto !important;
}

.kritt-intro .kritt-hero__video-frame {
  border-color: rgba(255, 255, 255, 0.08);
}

/* --- Even rhythm: every band breathes the same -------------------------- */
:is(.kritt-problem, .kritt-stakes, .kritt-guide, .kritt-plan, .kritt-cta,
  .kritt-testimonials, .kritt-reviews, .kritt-home-success, .kritt-buy-success,
  .kritt-buy-testimonials, .kritt-final-cta) {
  padding-top: clamp(80px, 9vw, 128px) !important;
  padding-bottom: clamp(80px, 9vw, 128px) !important;
}

/* --- Calmer section labels and headings ------------------------------- */
.kritt-eyebrow {
  font-size: 0.8125rem !important; /* beats .has-eyebrow-font-size */
  font-weight: 400;
  letter-spacing: 0.24em;
}

.kritt-eyebrow--stack::before,
.kritt-eyebrow--inline::before {
  width: 28px;
  opacity: 0.7;
}

.kritt-section-heading {
  font-size: clamp(2.125rem, 4.5vw, 3.75rem) !important;
  letter-spacing: -0.015em !important;
}

.kritt-section-heading em,
.kritt-hero__heading em {
  font-weight: 400;
}

.kritt-section-intro {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.7;
}

.kritt-section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* --- No boxes: cards become open columns with a hairline above -------- */
.kritt-problem__card,
.kritt-stakes__card {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px 0 0;
  box-shadow: none;
}

.kritt-problem__card::before,
.kritt-stakes__card--success::before,
.kritt-stakes__card--success::after {
  content: none;
}

.kritt-problem__card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: var(--wp--preset--color--gold);
  transform: none;
}

.kritt-stakes__card--success {
  border-top-color: var(--wp--preset--color--gold);
}

.kritt-problem__grid {
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: 56px;
}

.kritt-stakes__grid {
  column-gap: clamp(40px, 6vw, 96px);
}


/* Video frames: no gold box, no corner brackets. */
.kritt-testimonial__frame {
  border-color: rgba(255, 255, 255, 0.08);
}

.kritt-guide__image .kritt-bracket {
  display: none;
}

/* Guide: room under the heading (the shared heading rule zeroes it), and
   a quiet frame on the photo. */
.kritt-guide .kritt-section-heading {
  margin-bottom: 32px !important;
}

.kritt-guide__image,
.kritt-guide__image img {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- Google reviews: open columns, no boxes --------------------------- */
.kritt-greviews__grid {
  column-gap: clamp(32px, 4vw, 56px);
  row-gap: 48px;
}

.kritt-greviews__card {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px 0 0;
}

.kritt-greviews__card:hover {
  border-top-color: var(--wp--preset--color--gold);
  transform: none;
}

/* --- Video thumbnails: one thin play ring in the middle, so the cue
   never sits on the names burned into the client videos. ------------- */
.kritt-video-facade__overlay {
  inset: 0;
  height: auto;
  background: rgba(10, 10, 10, 0.28);
}

.kritt-video-facade__cue {
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  justify-content: center;
  border: 1px solid rgba(250, 250, 250, 0.85);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: rgba(10, 10, 10, 0.18);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.kritt-video-facade__cue-icon,
.kritt-video-facade__cue-icon svg {
  width: 22px;
  height: 22px;
  color: var(--wp--preset--color--text-light);
  margin-left: 3px;
}

.kritt-video-facade__cue-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.kritt-video-facade__btn:hover .kritt-video-facade__cue,
.kritt-video-facade__btn:focus-visible .kritt-video-facade__cue {
  gap: 0;
  border-color: var(--wp--preset--color--gold);
  background: rgba(212, 168, 75, 0.18);
  transform: translate(-50%, -50%) scale(1.06);
}

.kritt-testimonials .kritt-video-facade__cue {
  width: 60px;
  height: 60px;
}

/* --- Closing band: full-width Forest Creek aerial behind the last call - */
.kritt-final-cta {
  background:
    linear-gradient(to bottom, #0a0a0a 0%, rgba(10, 10, 10, 0.72) 28%, rgba(10, 10, 10, 0.72) 72%, #0a0a0a 100%),
    url("../assets/images/cta-forest-creek.webp") center / cover no-repeat !important;
}

.kritt-final-cta::before {
  content: none;
}

.kritt-final-cta__copy {
  color: var(--wp--preset--color--text-body) !important;
}


/* =========================================================
   Every page: the same quiet treatment as the homepage
   ========================================================= */

/* Page heads: no gold haze behind the title. */
.kritt-about-hero::before,
.kritt-case-hero::before,
.kritt-contact::before,
.kritt-reviews-hero::before,
.kritt-hero:not(.kritt-hero--cinematic)::before,
.kritt-hero:not(.kritt-hero--cinematic)::after {
  content: none;
  animation: none;
}

/* Portraits: a hairline frame, no gold box, no corner brackets. */
.kritt-about-hero__portrait img,
.kritt-guide__image img,
.kritt-hero__photo img {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.kritt-bracket {
  display: none;
}

/* Case studies: open sections divided by hairlines instead of gold boxes. */
.kritt-case {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.kritt-case:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.kritt-case__header,
.kritt-case__takeaway,
.kritt-case-stat {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.kritt-case__header {
  padding-left: 0;
  padding-right: 0;
}

.kritt-case__takeaway {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.kritt-case__num {
  background: transparent;
  border-color: rgba(212, 168, 75, 0.45);
}

.kritt-case__quote footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.kritt-case--reserved {
  border-top-color: var(--wp--preset--color--gold);
}

/* Living in Austin: the video stills carry the cards; no box around them. */
.kritt-living-card {
  background: transparent;
  border: 0;
}

.kritt-living-card:hover,
.kritt-living-card:focus-visible {
  box-shadow: none;
}

.kritt-living-card__media img {
  transition: transform 0.6s ease;
}

.kritt-living-card:hover .kritt-living-card__media img {
  transform: scale(1.03);
}

/* Contact: the call option is a quiet panel, not a gold box. */
.kritt-contact__call {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

.kritt-contact__call:hover,
.kritt-contact__call:focus-visible {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--wp--preset--color--gold);
  box-shadow: none;
}

/* Smaller, calmer labels everywhere, matching the homepage. */
.kritt-hero__eyebrow {
  font-size: 0.8125rem !important;
  font-weight: 400;
  letter-spacing: 0.24em;
}

/* Page heads open on a darkened aerial of one of Jeremy's areas, the way
   Luxury Presence interior pages open on a full-width photo. Own footage. */
:is(.kritt-living-hub, .kritt-case-hero, .kritt-reviews-hero) {
  background-size: cover !important;
  background-position: center 62% !important;
  padding-top: clamp(96px, 12vw, 168px) !important;
  padding-bottom: clamp(80px, 9vw, 128px) !important;
}

.kritt-living-hub {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.66) 55%, #0a0a0a 100%), url("../assets/images/banner-rattan.webp") !important;
}

.kritt-case-hero {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.66) 55%, #0a0a0a 100%), url("../assets/images/banner-acreage.webp") !important;
}

.kritt-reviews-hero {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.66) 55%, #0a0a0a 100%), url("../assets/images/banner-nwhills.webp") !important;
}

/* --- Scroll motion ------------------------------------------------------
   Section headings rise into view line by line (functions.php wraps each
   word; the words reveal in a quick stagger). Big images drift slightly
   slower than the page. Off for reduced-motion visitors. */
.kritt-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.kritt-word > span {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  html.kritt-reveal-ready .kritt-split .kritt-word > span {
    transform: translateY(105%);
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
    transition-delay: calc(var(--i, 0) * 45ms);
  }
  html.kritt-reveal-ready .kritt-split.is-in .kritt-word > span {
    transform: none;
  }
  .kritt-parallax {
    will-change: transform;
  }
}


/* Legibility over moving video and photos (accessibility review, PR 10):
   a soft shadow behind small gold text and the transparent header's links
   and menu icon, so they hold contrast on the brightest frames. */
.kritt-hero--cinematic :is(.kritt-hero__eyebrow, .kritt-hero__heading em),
:is(.kritt-living-hub, .kritt-case-hero, .kritt-reviews-hero) .kritt-eyebrow {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.6);
}

html:not(.kritt-scrolled) .home .kritt-header :is(a, .wp-block-navigation-item__content) {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

html:not(.kritt-scrolled) .home .kritt-header .wp-block-navigation__responsive-container-open svg {
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.85));
}

@media print {
  .kritt-word > span { transform: none !important; }
}


/* --- Meet Jeremy: the portrait becomes a round video montage ----------- */
.kritt-about-hero__portrait {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(212, 168, 75, 0.45), 0 0 0 10px rgba(10, 10, 10, 1), 0 0 0 11px rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

.kritt-about-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .kritt-about-hero__portrait {
    width: min(280px, 80vw);
    margin: 0 auto !important;
  }
}
