/**
 * OFF MARKET — Reusable inner-page hero (rounded cinematic card)
 */

.om-inner-page {
  margin: 0;
  background: var(--om-black, #111111);
  color: #565449;
  font-family: var(--om-font-body, Inter, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

html:has(body.om-inner-page) {
  background: var(--om-black, #111111);
}

.om-inner-page main {
  display: block;
  background: #f5f4f2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only--focusable:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #fff;
  color: #565449;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

/* ── Inner hero shell ── */

.inner-hero {
  position: relative;
  padding: 108px 24px 24px;
  background: #f5f4f2;
}

.inner-hero__card {
  position: relative;
  min-height: clamp(560px, 72vh, 720px);
  border-radius: clamp(28px, 3vw, 42px);
  overflow: hidden;
  isolation: isolate;
  background: #111111;
  box-shadow: none;
}

.inner-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Match the card radius so the composited (will-change) image is clipped
     to rounded corners during scroll, not the media's square border box. */
  border-radius: inherit;
}

.inner-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.inner-hero__media img,
.inner-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.inner-hero.is-visible .inner-hero__media img,
.inner-hero.is-visible .inner-hero__image {
  transform: scale(1.02);
}

.inner-hero__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.64) 100%);
  pointer-events: none;
}

.inner-hero__content {
  position: relative;
  z-index: 2;
  min-height: clamp(560px, 72vh, 720px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(30px, 4vw, 56px);
  color: #fff;
}

.inner-hero__breadcrumb {
  margin-top: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
}

.inner-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 180ms ease;
}

.inner-hero__breadcrumb a:hover {
  color: #fff;
}

.inner-hero__breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.62);
}

.inner-hero__breadcrumb-sep {
  opacity: 0.55;
}

.inner-hero__main {
  display: flex;
  align-items: flex-start;
}

.inner-hero__title {
  margin: clamp(36px, 5vh, 58px) 0 0;
  max-width: 12ch;
  font-family: var(--om-font-heading, var(--font-main, Inter, system-ui, sans-serif));
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 500;
  color: #fff;
  text-wrap: balance;
}

.inner-hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: clamp(8px, 2vh, 18px);
}

.inner-hero__bottom-left {
  flex: 1 1 auto;
  min-width: 0;
}

.inner-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.inner-hero__subtitle {
  max-width: 720px;
  margin: 0;
  font-family: var(--om-font-heading, var(--font-main, Inter, system-ui, sans-serif));
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.05em;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: balance;
}

.inner-hero__secondary {
  max-width: 560px;
  margin: clamp(14px, 2vh, 20px) 0 0;
  font-family: var(--om-font-body, Inter, system-ui, sans-serif);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  text-wrap: pretty;
}

.inner-hero__scroll {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.inner-hero__scroll:hover {
  color: #fff;
  transform: translateY(2px);
}

/* ── Hero entrance animation ── */

.inner-hero [data-hero-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Never leave hero chrome invisible during Next.js client navigations */
html.js-no-reveal .inner-hero [data-hero-reveal],
html.is-preloader-disabled .inner-hero [data-hero-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.inner-hero.is-visible [data-hero-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.inner-hero.is-visible [data-hero-reveal="breadcrumb"] {
  transition-delay: 80ms;
}

.inner-hero.is-visible [data-hero-reveal="title"] {
  transition-delay: 180ms;
}

.inner-hero.is-visible [data-hero-reveal="subtitle"] {
  transition-delay: 320ms;
}

.inner-hero.is-visible [data-hero-reveal="secondary"] {
  transition-delay: 380ms;
}

.inner-hero.is-visible [data-hero-reveal="actions"] {
  transition-delay: 440ms;
}

.inner-hero.is-visible [data-hero-reveal="scroll"] {
  transition-delay: 500ms;
}

@media (prefers-reduced-motion: reduce) {
  .inner-hero__media img,
  .inner-hero__image {
    transform: scale(1.02);
    transition: none;
  }

  .inner-hero [data-hero-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Chrome over inner hero ── */

.om-inner-page .mv-chrome {
  position: relative;
  z-index: 1000;
}

.om-inner-page .mv-chrome--inner-hero .om-header__bar {
  background: rgba(245, 244, 242, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

/* ── About page content ── */

.om-about-content {
  background: #f5f4f2;
}

.om-about-section {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.om-about-section + .om-about-section {
  padding-top: 0;
}

.om-about-section__eyebrow {
  margin: 0 0 clamp(0.85rem, 1.5vw, 1.1rem);
  font-family: var(--font-main, "Inter", system-ui, sans-serif);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #565449;
}

.om-about-section__title {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 18ch;
  font-family: var(--om-font-heading, var(--font-main, Inter, system-ui, sans-serif));
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 500;
  color: #565449;
  text-wrap: balance;
}

.om-about-section__lead {
  margin: 0;
  max-width: 46rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  letter-spacing: -0.012em;
  color: rgba(86, 84, 73, 0.62);
}

.om-about-section__lead--secondary {
  margin-top: clamp(1rem, 2vw, 1.35rem);
}

.om-about-cards {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
}

.om-about-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.om-about-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(86, 84, 73, 0.06);
  box-shadow: 0 18px 50px rgba(86, 84, 73, 0.05);
}

.om-about-card__title {
  margin: 0 0 0.85rem;
  font-family: var(--om-font-heading, var(--font-main, Inter, system-ui, sans-serif));
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #565449;
}

.om-about-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(86, 84, 73, 0.58);
}

.om-about-cta {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 0 0 clamp(4rem, 9vw, 7rem);
}

.om-about-cta__inner {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: clamp(24px, 3vw, 36px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 244, 242, 0.42));
  border: 1px solid rgba(86, 84, 73, 0.06);
  box-shadow: 0 24px 70px rgba(86, 84, 73, 0.06);
}

.om-about-cta__title {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--om-font-heading, var(--font-main, Inter, system-ui, sans-serif));
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: #565449;
}

.om-about-cta__text {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.62;
  color: rgba(86, 84, 73, 0.6);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .om-about-cards__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .inner-hero {
    padding: 92px 12px 12px;
  }

  .inner-hero__card {
    min-height: 72vh;
    border-radius: 28px;
  }

  .inner-hero__content {
    min-height: 72vh;
    padding: 22px;
  }

  .inner-hero__breadcrumb {
    margin-top: 0;
    font-size: 13px;
  }

  .inner-hero__title {
    margin-top: clamp(28px, 6vh, 44px);
    font-size: clamp(44px, 13vw, 64px);
    line-height: 0.94;
    letter-spacing: -0.06em;
    max-width: none;
  }

  .inner-hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .inner-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 28px;
    gap: 12px;
  }

  .inner-hero__actions .mav-hero__button {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .inner-hero__subtitle {
    font-size: clamp(22px, 6.4vw, 32px);
    line-height: 1.16;
  }

  .inner-hero__secondary {
    max-width: none;
    font-size: 15px;
    line-height: 1.5;
  }

  .inner-hero__scroll {
    display: none;
  }
}

@media (max-width: 390px) {
  .inner-hero__scroll {
    font-size: 13px;
  }
}
