/* ==========================================================================
   The House — Cabinet of Curiosities mockup (page body only)
   Scoped under .lbv-th so nothing leaks site-wide.
   ========================================================================== */

html:has(.page-template-template-house),
.page-template-template-house,
.page-template-template-house .lbv-main {
  background: #F1E7DD;
}

.lbv-th {
  --th-parchment: #F1E7DD;
  --th-parchment-2: #F1E7DD;
  --th-ink: #1A1612;
  --th-ink-soft: #3C342C;
  --th-gold: #B08A3E;
  --th-gold-bright: #C4A05A;
  --th-rule: rgba(90, 68, 32, 0.2);
  --th-rule-soft: rgba(90, 68, 32, 0.12);
  --th-font-script: "Great Vibes", "Pinyon Script", cursive;
  --th-max: 1220px;
  --th-gutter: clamp(20px, 4vw, 56px);
  color: var(--th-ink);
  background: var(--th-parchment);
}

.lbv-th-wrap {
  width: 100%;
  max-width: var(--th-max);
  margin-inline: auto;
  padding-inline: var(--th-gutter);
}

/* ---------- Shared ornaments ---------- */

.lbv-th-ornament {
  display: block;
  width: 76px;
  height: 10px;
  position: relative;
  background:
    linear-gradient(var(--th-gold), var(--th-gold)) left center / calc(50% - 7px) 1px no-repeat,
    linear-gradient(var(--th-gold), var(--th-gold)) right center / calc(50% - 7px) 1px no-repeat;
}

.lbv-th-ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--th-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.lbv-th-kicker {
  margin: 0 0 10px;
  font-family: var(--font-text);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--th-gold);
}

.lbv-th-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--th-gold);
  text-decoration: none;
}

.lbv-th-cta:hover {
  color: var(--th-gold-bright);
}

.lbv-th-cta--static {
  cursor: default;
}

.lbv-th-rule-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--th-ink);
  white-space: nowrap;
}

.lbv-th-rule-title--full {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.lbv-th-rule-title--full::before,
.lbv-th-rule-title--full::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--th-rule);
}

.lbv-th-gold-icon {
  display: block;
  width: auto;
  height: 72px;
  object-fit: contain;
  object-position: center;
}

.lbv-th-gold-icon--util {
  height: 56px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.lbv-th-hero {
  /* padding: clamp(8px, 1.5vw, 20px) 0 clamp(24px, 4vw, 48px); */
}

.lbv-th-hero__stage {
  position: relative;
}

.lbv-th-hero__visual {
  margin: 0 calc(-1 * var(--th-gutter));
}

.lbv-th-hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  /*
   * Feather the crop into the page parchment. Intersecting masks keep the
   * house sharp; a blur would soften the painting itself.
   */
  --th-fade-x: 9%;
  --th-fade-y: 14%;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 var(--th-fade-x), #000 calc(100% - var(--th-fade-x)), transparent),
    linear-gradient(to bottom, transparent, #000 var(--th-fade-y), #000 calc(100% - var(--th-fade-y)), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 var(--th-fade-x), #000 calc(100% - var(--th-fade-x)), transparent),
    linear-gradient(to bottom, transparent, #000 var(--th-fade-y), #000 calc(100% - var(--th-fade-y)), transparent);
  mask-composite: intersect;
}

.lbv-th-hero__copy {
  position: absolute;
  left: var(--th-gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  max-width: min(28rem, 40%);
}

.lbv-th-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--th-ink);
}

.lbv-th-hero__title span {
  display: block;
}

.lbv-th-hero__tagline {
  margin: 18px 0 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--th-ink);
}

.lbv-th-hero__cta {
  margin: 28px 0 0;
}

/* ==========================================================================
   Vera Lee Battle
   ========================================================================== */

.lbv-th-vera {
  scroll-margin-top: 24px;
}

.lbv-th-vera__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.lbv-th-vera__photos {
  position: relative;
  min-height: clamp(340px, 42vw, 520px);
}

.lbv-th-vera__photo {
  margin: 0;
  position: absolute;
  background: #f7f3ea;
  padding: 7px 7px 22px;
  box-shadow:
    0 2px 4px rgba(40, 24, 6, 0.08),
    0 14px 36px rgba(40, 24, 6, 0.16);
}

.lbv-th-vera__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.lbv-th-vera__photo--front {
  width: 48%;
  left: 2%;
  top: 0;
  transform: rotate(-3.2deg);
  z-index: 2;
}

.lbv-th-vera__photo--back {
  width: 50%;
  right: 2%;
  top: 14%;
  transform: rotate(2.4deg);
  z-index: 1;
}

.lbv-th-vera__seal {
  position: absolute;
  width: clamp(78px, 10vw, 112px);
  height: auto;
  right: 4%;
  bottom: 0;
  z-index: 3;
  filter: drop-shadow(0 6px 12px rgba(40, 24, 6, 0.28));
}

.lbv-th-vera__copy {
  max-width: 38ch;
}

.lbv-th-vera__name {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.4vw, 3.15rem);
  line-height: 1.05;
  color: var(--th-ink);
}

.lbv-th-vera__body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--th-ink-soft);
}

.lbv-th-vera__quote {
  margin: 28px 0 0;
  font-family: var(--th-font-script);
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--th-gold);
}

/* ==========================================================================
   Philosophy
   ========================================================================== */

.lbv-th-philosophy {
  padding: clamp(20px, 4vw, 40px) 0 0 0;
  scroll-margin-top: 24px;
}

.lbv-th-philosophy__grid {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.lbv-th-philosophy__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lbv-th-callout__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-ink);
}

.lbv-th-callout__body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--th-ink-soft);
}

.lbv-th-philosophy__panel {
  position: relative;
  border: 1px solid var(--th-rule);
  padding: 36px 18px 22px;
}

.lbv-th-philosophy__panel .lbv-th-rule-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 16px;
  background: var(--th-parchment);
}

.lbv-th-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.lbv-th-pillar {
  padding: 8px 8px 4px;
  text-align: center;
  border-right: 1px solid var(--th-rule-soft);
}

.lbv-th-pillar:last-child {
  border-right: 0;
}

.lbv-th-pillar .lbv-th-gold-icon {
  margin: 0 auto 12px;
}

.lbv-th-pillar__label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--th-gold);
}

.lbv-th-pillar__copy {
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--th-ink-soft);
}

/* ==========================================================================
   Cabinet
   ========================================================================== */

.lbv-th-cabinet {
  padding: clamp(28px, 5vw, 56px) 0;
}

.lbv-th-cabinet__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.lbv-th-cabinet__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--th-gold);
}

.lbv-th-cabinet__poem {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--th-ink-soft);
}

.lbv-th-cabinet__cta {
  margin: 22px 0 0;
}

.lbv-th-cabinet__visual {
  margin: 0;
}

.lbv-th-cabinet__visual img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 28px rgba(40, 24, 6, 0.12);
}

/* ==========================================================================
   Across the House
   ========================================================================== */

.lbv-th-across {
  padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
}

.lbv-th-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lbv-th-tile {
  padding: 0 18px 8px;
  border-right: 1px solid var(--th-rule-soft);
}

.lbv-th-tile:first-child {
  padding-left: 0;
}

.lbv-th-tile:last-child {
  padding-right: 0;
  border-right: 0;
}

.lbv-th-tile__link,
.lbv-th-tile__link--static {
  display: block;
  color: inherit;
  text-decoration: none;
}

.lbv-th-tile__link:hover .lbv-th-tile__label {
  color: var(--th-gold);
}

.lbv-th-tile__media {
  margin: 0 0 16px;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e0d2;
}

.lbv-th-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.lbv-th-tile--extension .lbv-th-tile__media img {
  object-fit: cover;
  object-position: center;
}

.lbv-th-tile--cloth .lbv-th-tile__media img {
  object-fit: cover;
  object-position: center;
}

.lbv-th-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.92);
  background: rgba(20, 16, 12, 0.18);
  pointer-events: none;
}

.lbv-th-tile__label {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-ink);
}

.lbv-th-tile__copy {
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--th-ink-soft);
}

.lbv-th-tile--porcelain .lbv-th-tile__copy {
  font-style: italic;
}

.lbv-th-tile__arrow {
  color: var(--th-gold);
}

/* ==========================================================================
   Utility row
   ========================================================================== */

.lbv-th-utility {
  padding: clamp(20px, 3vw, 36px) 0 clamp(48px, 6vw, 80px);
}

.lbv-th-utils {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--th-rule);
  border-bottom: 1px solid var(--th-rule);
}

.lbv-th-util {
  padding: 22px 22px 26px;
  border-right: 1px solid var(--th-rule-soft);
}

.lbv-th-util:last-child {
  border-right: 0;
}

.lbv-th-util .lbv-th-gold-icon {
  margin-bottom: 14px;
}

.lbv-th-util__label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--th-ink);
}

.lbv-th-util__copy {
  margin: 0 0 14px;
  font-family: var(--font-text);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--th-ink-soft);
  max-width: 28ch;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 1100px) {
  .lbv-th-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lbv-th-pillar:nth-child(3) {
    border-right: 0;
  }

  .lbv-th-pillar:nth-child(n + 4) {
    margin-top: 18px;
  }
}

@media (max-width: 900px) {
  .lbv-th-vera__grid,
  .lbv-th-philosophy__grid,
  .lbv-th-cabinet__grid {
    grid-template-columns: 1fr;
  }

  .lbv-th-hero__copy {
    max-width: min(22rem, 48%);
  }

  .lbv-th-vera__photos {
    min-height: 380px;
  }

  .lbv-th-vera__copy {
    max-width: none;
  }

  .lbv-th-philosophy__aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .lbv-th-philosophy__aside .lbv-th-callout {
    flex: 1 1 70px;
  }

  .lbv-th-philosophy__aside .lbv-th-ornament {
    display: none;
  }

  .lbv-th-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lbv-th-pillar {
    border-right: 1px solid var(--th-rule-soft);
  }

  .lbv-th-pillar:nth-child(2n) {
    border-right: 0;
  }

  .lbv-th-pillar:nth-child(n + 3) {
    margin-top: 18px;
  }

  .lbv-th-pillar:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    max-width: 280px;
    margin-inline: auto;
  }

  .lbv-th-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 0;
  }

  .lbv-th-tile {
    padding: 0 16px 8px;
  }

  .lbv-th-tile:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .lbv-th-tile:nth-child(2n + 1) {
    padding-left: 0;
  }

  .lbv-th-utils {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lbv-th-util:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .lbv-th-hero__copy {
    position: static;
    transform: none;
    max-width: none;
    left: auto;
    top: auto;
    padding: clamp(28px, 6vw, 40px) 0 12px;
  }

  .lbv-th-hero__title {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
  }

  .lbv-th-hero__tagline {
    max-width: none;
  }

  .lbv-th-vera__photos {
    min-height: 300px;
  }

  .lbv-th-philosophy__aside {
    flex-direction: column;
  }

  .lbv-th-pillars {
    grid-template-columns: 1fr;
  }

  .lbv-th-pillar,
  .lbv-th-pillar:nth-child(n + 3),
  .lbv-th-pillar:last-child {
    border-right: 0;
    margin-top: 0;
    max-width: none;
    padding: 16px 0;
    border-bottom: 1px solid var(--th-rule-soft);
  }

  .lbv-th-pillar:last-child {
    border-bottom: 0;
  }

  .lbv-th-tiles {
    grid-template-columns: 1fr;
  }

  .lbv-th-tile,
  .lbv-th-tile:nth-child(2n),
  .lbv-th-tile:nth-child(2n + 1) {
    border-right: 0;
    padding: 0 0 28px;
  }

  .lbv-th-utils {
    grid-template-columns: 1fr;
  }

  .lbv-th-util,
  .lbv-th-util:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--th-rule-soft);
  }

  .lbv-th-util:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lbv-th-cta,
  .lbv-th-tile__link {
    transition: none;
  }
}
