/* =========================================================
   THE A&M HOUSE - A Living Showroom
   Editorial landing page. Design DNA: Alice & Malyn.
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Neue Haas Grotesk Disp";
  src: url("../fonts/neuehaasgrotdisp-45light-trial.otf") format("opentype");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Benton";
  src: url("../fonts/Benton-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Benton";
  src: url("../fonts/Benton-SemiBold-Italic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper:    #F2EBD8;
  --paper-2:  #F2EBD8;   /* alt ground (matches --paper) */
  --ink:      #1A130B;
  --brown:    #745E4F;
  --hair:     rgba(26, 19, 11, 0.16);
  --hair-strong: rgba(26, 19, 11, 0.32);
  --paper-hair: rgba(242, 235, 216, 0.24);

  --font-body: "Neue Haas Grotesk Disp", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-disp: "Benton", "Times New Roman", Georgia, serif;

  --gutter: clamp(20px, 5.2vw, 96px);
  --maxw: 1640px;

  --sp-section: clamp(78px, 9.5vw, 148px);
  --sp-lg: clamp(44px, 7vw, 104px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --disp-tracking: -0.018em;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-disp);
  font-weight: 600;
  letter-spacing: var(--disp-tracking);
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
}
.d-hero   { font-size: 34px; line-height: 0.9; }
.d-xl     { font-size: 28px; }
.d-lg     { font-size: 28px; }
.d-md     { font-size: 28px; line-height: 1.06; }

/* All display headlines are uppercase; this just tightens the setting */
.display--caps {
  letter-spacing: 0.002em;
  line-height: 0.92;
}

.eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0;
}

.lead {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.003em;
  max-width: 34ch;
}

.meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
}

/* ---------- Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sp-section); position: relative; }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* group links · wordmark · section links */
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(16px, 2.4vw, 30px) var(--gutter);
  color: var(--paper);
  transition: color 0.45s var(--ease), padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
/* Header + docked logo flip colour to whatever sits under them.
   No opaque bar - the header stays transparent the whole way.
   data-nav on <html>: "dark" = light text, "light" = ink text.  */
.site-header.is-solid { background: transparent; border-bottom-color: transparent; }
html[data-nav="light"] .site-header,
html[data-nav="light"] .nav-toggle { color: var(--ink); }
html[data-nav="dark"] .site-header,
html[data-nav="dark"] .nav-toggle { color: var(--paper); }
html.js-herolockup[data-nav="light"] .hero-lockup { color: var(--ink); }
html.js-herolockup[data-nav="dark"] .hero-lockup { color: var(--paper); }
/* hovering an Under-One-Roof card darkens that section - keep the header legible */
html:has(.ecosystem__grid.has-hover) .site-header,
html:has(.ecosystem__grid.has-hover) .nav-toggle,
html.js-herolockup:has(.ecosystem__grid.has-hover) .hero-lockup { color: var(--paper); }
.site-header__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(0.98rem, 1.3vw, 1.18rem);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.site-header__nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  align-items: center;
}
.site-header__nav--ext { gap: clamp(14px, 1.8vw, 30px); }
.site-header__nav a {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding-block: 4px;
}
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.site-header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* thin two-bar hamburger, right-aligned; crosses out when the menu is open */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  z-index: 130;
}
.nav-toggle .bars { display: block; width: 24px; height: 1px; position: relative; background: currentColor; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.site-header.menu-open { z-index: 130; }   /* keep the close (X) above the overlay */
.site-header.menu-open .nav-toggle { color: var(--ink); }
.site-header.menu-open .nav-toggle .bars { background: transparent; }
.site-header.menu-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .nav-toggle .bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* full-screen overlay menu (mobile / narrow) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  background: var(--paper);
  color: var(--ink);
  padding-inline: var(--gutter);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.72s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__nav {
  margin-block: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vw, 22px);
  padding-block: clamp(96px, 17vh, 150px) 56px;
}
.mobile-menu__nav a {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(2.4rem, 12vw, 4.4rem);
  line-height: 1;
  letter-spacing: var(--disp-tracking);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.mobile-menu__nav a.mm-ext {
  font-size: clamp(1.05rem, 5vw, 1.6rem);
  color: var(--brown);
}
.mobile-menu__rule {
  height: 1px;
  background: var(--hair);
  margin-block: clamp(10px, 2.4vw, 20px);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}
.mobile-menu.is-open .mobile-menu__nav > * { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__nav > :nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__nav > :nth-child(2) { transition-delay: 0.17s; }
.mobile-menu.is-open .mobile-menu__nav > :nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__nav > :nth-child(4) { transition-delay: 0.27s; }
.mobile-menu.is-open .mobile-menu__nav > :nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-menu__nav > :nth-child(6) { transition-delay: 0.37s; }
.mobile-menu.is-open .mobile-menu__nav > :nth-child(7) { transition-delay: 0.42s; }
.mobile-menu.is-open .mobile-menu__nav > :nth-child(8) { transition-delay: 0.47s; }
html.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
  .site-header { justify-content: flex-end; }
  .site-header__nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  isolation: isolate;
}
.hero__type {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(90px, 14vh, 160px) var(--gutter);
  color: var(--paper);
}

.hero__sub {
  margin: 0;
  font-size: clamp(0.7rem, 0.7vw + 0.55rem, 0.875rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 235, 216, 0.9);
}

.hero__figure {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
}
.hero__figure img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center bottom;
  will-change: translate;
  translate: 0 var(--py, 0px);
}
.hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 19, 11, 0.38) 0%,
    rgba(26, 19, 11, 0.10) 34%,
    rgba(26, 19, 11, 0.58) 100%
  );
}

/* =========================================================
   CO-BRAND HERO LOCKUP
   1. Entrance (~1.4s): A&M enters straight from the left,
      the rule draws top→bottom, The Agency enters straight
      from the right - all converge into the co-brand lockup.
   2. Resolve (~1s): rule + The Agency reverse out and fade;
      the A&M mark slides to true centre, keeping its size.
   3. Scroll: the A&M mark shifts up + scales into the header
      centre. Header stays transparent - no fade, no recolour.
   JS-driven; inert without JS (static header wordmark shows).
   ========================================================= */
.hero-lockup { display: none; }

html.js-herolockup .hero-lockup {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 101;
  overflow: hidden;
  pointer-events: none;
  color: var(--paper);                     /* default (over the hero) - data-nav overrides */
  transition: color 0.45s var(--ease);

  /* --hl-h is the FINAL standalone size of the A&M mark (what stays).
     The converge (A&M + rule + The Agency together) renders at --hl-cs of
     that, then the A&M mark grows back to full size on resolve.
     --hl-grow must stay = 1 / --hl-cs. */
  --hl-h: min(50vh, 24vw);
  --hl-cs: 0.7;
  --hl-grow: 1.42857;
  --hl-ch: calc(var(--hl-h) * var(--hl-cs));
  --hl-gap: clamp(12px, 2.6vw, 42px);
  --hl-ease: cubic-bezier(0.42, 0, 0.12, 1);
  --hl-amW: calc(var(--hl-ch) * 1.34936);
  --hl-agW: calc(var(--hl-ch) * 2.02605);
  --hl-slot: calc(-1 * (var(--hl-agW) / 2 + var(--hl-gap) + 0.5px));
  --hl-ruleX: calc((var(--hl-amW) - var(--hl-agW)) / 2);
  --hl-agX: calc(var(--hl-amW) / 2 + var(--hl-gap) + 0.5px);
}
/* the animated mark replaces the static header wordmark */
html.js-herolockup .site-header__mark { opacity: 0; pointer-events: none; }

.hl-amhouse,
.hl-rule,
.hl-agency {
  position: absolute;
  left: 50%;
  top: 50%;
}
.hl-amhouse { transform: translate(-50%, -50%); }              /* JS owns this once live */
.hl-rule    { transform: translate(-50%, -50%) translateX(var(--hl-ruleX)); }
.hl-agency  { transform: translate(-50%, -50%) translateX(var(--hl-agX)); }

.hl-am-grow,
.hl-am-slot,
.hl-am-enter,
.hl-a-enter { display: inline-flex; }

/* grow waits for the shift to finish, then eases up on its own */
.hl-am-grow  { transform: scale(1); transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1) 1s; }
.hl-am-slot  { transform: translateX(var(--hl-slot)); transition: transform 0.9s var(--hl-ease); }
.hl-am-enter { transform: translateX(-17vw); opacity: 0; transition: transform 1.6s var(--hl-ease), opacity 1.1s linear; }
.hl-a-enter  { transform: translateX(17vw);  opacity: 0; transition: transform 1.6s var(--hl-ease), opacity 1.1s linear; }

.hl-amhouse svg { display: block; width: auto; height: var(--hl-ch); }
.hl-agency  svg { display: block; width: auto; height: calc(var(--hl-ch) * 0.95); }
.hl-amhouse svg path,
.hl-agency  svg path { fill: currentColor; }

.hl-r-draw {
  display: block;
  width: 1px;
  height: calc(var(--hl-ch) * 0.82);
  background: currentColor;
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1.6s var(--hl-ease);
}

/* 1 - entrance: everything converges (at --hl-cs size) */
.hero-lockup.hl-in .hl-am-enter,
.hero-lockup.hl-in .hl-a-enter { transform: none; opacity: 1; }
.hero-lockup.hl-in .hl-r-draw  { transform: scaleY(1); }

/* 2 - resolve: rule + agency reverse out; A&M mark recentres and grows to full size */
.hero-lockup.hl-resolved .hl-am-grow { transform: scale(var(--hl-grow)); }
.hero-lockup.hl-resolved .hl-am-slot { transform: translateX(0); }
.hero-lockup.hl-resolved .hl-a-enter { transform: translateX(17vw); opacity: 0; transition: transform 0.9s var(--hl-ease), opacity 0.6s linear; }
.hero-lockup.hl-resolved .hl-r-draw  { transform: scaleY(0); transition-duration: 0.9s; }

/* page opened already scrolled → no entrance, snap straight to state */
.hero-lockup.hl-noanim .hl-am-grow,
.hero-lockup.hl-noanim .hl-am-slot,
.hero-lockup.hl-noanim .hl-am-enter,
.hero-lockup.hl-noanim .hl-a-enter,
.hero-lockup.hl-noanim .hl-r-draw { transition: none; }

/* SOLO MODE - hides the A&M | Agency convergence intro (agency mark + rule,
   and the A&M mark's slide-in/slot-shift), leaving just the A&M mark: it
   fades in already centred, grows to its resolved size, then docks into
   the header on scroll exactly as before. Remove the hl-solo class from
   #heroLockup (index.html) to bring the full intro back. */
.hero-lockup.hl-solo .hl-agency,
.hero-lockup.hl-solo .hl-rule { display: none; }
.hero-lockup.hl-solo .hl-am-slot { transform: none !important; }
.hero-lockup.hl-solo .hl-am-enter { transform: none; }
.hero-lockup.hl-solo .hl-am-grow { transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; }

/* while the lockup is live, drop the hero tagline below it */
html.js-herolockup .hero__type {
  justify-content: flex-end;
  padding-bottom: clamp(64px, 15vh, 150px);
}

/* header stays transparent the whole way - colour is handled by :root[data-nav] */
html.js-herolockup .site-header.is-solid {
  background: transparent;
  border-bottom-color: transparent;
  padding-block: clamp(16px, 2.4vw, 30px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-lockup { display: none !important; }
  html.js-herolockup .site-header__mark { opacity: 1; }
}

/* =========================================================
   ECOSYSTEM - under one roof
   Light ground, no dividers. Hovering a card widens its
   focused image; the other two collapse to narrow crops and
   their text fades. The whole section background also fades
   to that brand's environment shot.
   ========================================================= */
.ecosystem {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  padding-block: var(--sp-section);
}
.ecosystem > .shell { position: relative; z-index: 1; }

.ecosystem__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ecosystem__bg::after {           /* 60% dark overlay - only present while a backdrop is showing */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  z-index: 1;
}
.ecosystem__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.ecosystem,
.ecosystem__head h2,
.ecosystem__head p,
.house-card__name,
.house-card__label { transition: color 0.55s var(--ease); }

.ecosystem__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 5vw, 72px);
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 78px);
}
.ecosystem__head h2 { color: var(--ink); }
.ecosystem__head p {
  max-width: 44ch;
  color: var(--brown);
  margin: 0 0 0.35em;
  font-size: 14px;
}

.ecosystem__grid {
  --eco-gap: clamp(14px, 1.8vw, 30px);
  --eco-ease: cubic-bezier(0.5, 0, 0.15, 1);
  display: flex;
  gap: var(--eco-gap);
  align-items: stretch;
}

/* Smooth resize: the card's WIDTH animates (rock-solid in every engine), and
   the image is a FIXED-width element clipped by overflow - so widening a card
   only changes the clip rectangle, the photo itself never re-rasterises. */
.house-card {
  flex: 0 0 auto;
  width: calc((100% - var(--eco-gap) * 2) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  color: inherit;
}
/* .ecosystem-scoped so it beats the [data-rv] reveal transitions (equal
   specificity + later in the file) that would otherwise clobber `width`. */
.ecosystem .house-card {
  transition: width 0.66s var(--eco-ease),
              opacity 0.9s var(--ease),
              transform 0.9s var(--ease);
}
.house-card__media {
  position: relative;
  overflow: hidden;
  height: clamp(320px, 40vw, 520px);
  background: var(--paper-2);
  container-type: inline-size;
}
.house-card__media .house-card__main {
  --iw: max(560px, 100cqw);      /* never narrower than the card; small enough to show the
                                    full subject at rest, wide enough to pan when collapsed */
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--iw);
  max-width: none;
  object-fit: cover;
  transform: translateX(calc(50cqw - var(--iw) / 2));    /* centred; GPU-cheap pan */
}
.ecosystem .house-card__media .house-card__main {
  transition: transform 0.66s var(--eco-ease), clip-path 1.2s var(--ease);
}
/* centred at rest so both subjects sit in frame; the pan only kicks in
   when a *sibling* is hovered (the collapsed cards anchor to their side) */
.house-card--aandm .house-card__media .house-card__main,
.house-card--hwa   .house-card__media .house-card__main,
.house-card--andee .house-card__media .house-card__main { object-position: center; }

/* per-brand logo badge, bottom-right of the card image at rest;
   fades out for every card once a card is being hovered */
.house-card__logo {
  position: absolute;
  right: clamp(14px, 1.7vw, 22px);
  bottom: clamp(14px, 1.7vw, 22px);
  z-index: 2;
  width: clamp(72px, 8vw, 98px);
  height: clamp(34px, 4vw, 46px);
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  filter: drop-shadow(0 1px 7px rgba(0, 0, 0, 0.32));
  transition: opacity 0.4s var(--ease);
}
.house-card__logo--invert {
  filter: brightness(0) invert(1) drop-shadow(0 1px 7px rgba(0, 0, 0, 0.32));
}
/* the Andee mark is a fine script - give it a little more room to read */
.house-card--andee .house-card__logo {
  width: clamp(104px, 12vw, 150px);
  height: clamp(40px, 5vw, 58px);
}
/* the hovered card keeps its logo as the image expands;
   the two unfocused cards fade theirs out softly */
.ecosystem__grid.has-hover .house-card:not(.is-hovering) .house-card__logo { opacity: 0; }

.house-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transform: translateZ(0);
  transition: opacity 0.4s var(--ease);
}
.house-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.house-card__name,
.house-card__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.house-card__name {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: var(--disp-tracking);
  line-height: 1.05;
  text-transform: uppercase;
  min-width: 0;
}
.house-card__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
}
/* CTA: hidden until the card image is hovered, then it eases in at the
   right of the name row. Dark brown, hover → the standard hover brown. */
.house-card__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: #3B2E24;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.4s var(--ease);
}
.house-card__cta:hover { background: #614F42; }
@media (hover: hover) {
  .ecosystem__grid .house-card.is-hovering .house-card__cta {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ---- hover choreography - class-driven (JS sets .is-hovering / .has-hover)
   so the active card never flips off itself as it resizes under the cursor. */
@media (hover: hover) {
  .ecosystem__grid.has-hover .house-card { width: calc((100% - var(--eco-gap) * 2) * 0.17); }
  .ecosystem__grid.has-hover .house-card.is-hovering { width: calc((100% - var(--eco-gap) * 2) * 0.66); }

  .ecosystem__grid.has-hover .house-card:not(.is-hovering) .house-card__text { opacity: 0; }
  .ecosystem__grid.has-hover .house-card--aandm:not(.is-hovering) .house-card__media .house-card__main { transform: translateX(0); }
  .ecosystem__grid.has-hover .house-card--andee:not(.is-hovering) .house-card__media .house-card__main { transform: translateX(min(0px, calc(100cqw - var(--iw)))); }

  .ecosystem:has(.house-card--aandm.is-hovering) .ecosystem__bg-img[data-brand="aandm"],
  .ecosystem:has(.house-card--hwa.is-hovering)   .ecosystem__bg-img[data-brand="hwa"],
  .ecosystem:has(.house-card--andee.is-hovering) .ecosystem__bg-img[data-brand="andee"] { opacity: 1; }
  .ecosystem:has(.house-card.is-hovering) .ecosystem__bg::after { opacity: 1; }

  .ecosystem:has(.house-card.is-hovering) { color: var(--paper); }
  .ecosystem:has(.house-card.is-hovering) .ecosystem__head h2,
  .ecosystem:has(.house-card.is-hovering) .house-card__name { color: var(--paper); }
  .ecosystem:has(.house-card.is-hovering) .ecosystem__head p,
  .ecosystem:has(.house-card.is-hovering) .house-card__label { color: rgba(242, 235, 216, 0.74); }
}

/* ---- shared chevron icon (from the supplied SVGs) - masked so it inherits
   currentColor and flips with the nav / hover states ---- */
.icon-arrow {
  display: inline-block;
  width: 21px;
  height: 10px;
  flex: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.icon-arrow--l {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2221%22%20height%3D%2210%22%20viewBox%3D%220%200%2021%2010%22%3E%3Cpath%20d%3D%22M5.78%200.720072C5.63938%200.579622%205.44875%200.500732%205.25%200.500732C5.05125%200.500732%204.86062%200.579622%204.72%200.720072L0.969999%204.47007C0.82955%204.6107%200.75066%204.80132%200.75066%205.00007C0.75066%205.19882%200.82955%205.38945%200.969999%205.53007L4.72%209.28007C4.78866%209.35376%204.87146%209.41286%204.96346%209.45385C5.05546%209.49485%205.15477%209.51689%205.25548%209.51866C5.35618%209.52044%205.45621%209.50192%205.5496%209.4642C5.64299%209.42647%205.72782%209.37033%205.79904%209.29911C5.87026%209.22789%205.9264%209.14306%205.96412%209.04967C6.00184%208.95628%206.02037%208.85625%206.01859%208.75555C6.01681%208.65485%205.99477%208.55553%205.95378%208.46353C5.91279%208.37153%205.85369%208.28873%205.78%208.22007L3.31%205.75007H19.5C19.6989%205.75007%2019.8897%205.67105%2020.0303%205.5304C20.171%205.38975%2020.25%205.19898%2020.25%205.00007C20.25%204.80116%2020.171%204.61039%2020.0303%204.46974C19.8897%204.32909%2019.6989%204.25007%2019.5%204.25007H3.31L5.78%201.78007C5.92045%201.63945%205.99934%201.44882%205.99934%201.25007C5.99934%201.05132%205.92045%200.860698%205.78%200.720072Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2221%22%20height%3D%2210%22%20viewBox%3D%220%200%2021%2010%22%3E%3Cpath%20d%3D%22M5.78%200.720072C5.63938%200.579622%205.44875%200.500732%205.25%200.500732C5.05125%200.500732%204.86062%200.579622%204.72%200.720072L0.969999%204.47007C0.82955%204.6107%200.75066%204.80132%200.75066%205.00007C0.75066%205.19882%200.82955%205.38945%200.969999%205.53007L4.72%209.28007C4.78866%209.35376%204.87146%209.41286%204.96346%209.45385C5.05546%209.49485%205.15477%209.51689%205.25548%209.51866C5.35618%209.52044%205.45621%209.50192%205.5496%209.4642C5.64299%209.42647%205.72782%209.37033%205.79904%209.29911C5.87026%209.22789%205.9264%209.14306%205.96412%209.04967C6.00184%208.95628%206.02037%208.85625%206.01859%208.75555C6.01681%208.65485%205.99477%208.55553%205.95378%208.46353C5.91279%208.37153%205.85369%208.28873%205.78%208.22007L3.31%205.75007H19.5C19.6989%205.75007%2019.8897%205.67105%2020.0303%205.5304C20.171%205.38975%2020.25%205.19898%2020.25%205.00007C20.25%204.80116%2020.171%204.61039%2020.0303%204.46974C19.8897%204.32909%2019.6989%204.25007%2019.5%204.25007H3.31L5.78%201.78007C5.92045%201.63945%205.99934%201.44882%205.99934%201.25007C5.99934%201.05132%205.92045%200.860698%205.78%200.720072Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
}
.icon-arrow--r {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2221%22%20height%3D%2210%22%20viewBox%3D%220%200%2021%2010%22%3E%3Cpath%20d%3D%22M15.22%200.720072C15.3606%200.579622%2015.5512%200.500732%2015.75%200.500732C15.9488%200.500732%2016.1394%200.579622%2016.28%200.720072L20.03%204.47007C20.1705%204.6107%2020.2493%204.80132%2020.2493%205.00007C20.2493%205.19882%2020.1705%205.38945%2020.03%205.53007L16.28%209.28007C16.2113%209.35376%2016.1285%209.41286%2016.0365%209.45385C15.9445%209.49485%2015.8452%209.51689%2015.7445%209.51866C15.6438%209.52044%2015.5438%209.50192%2015.4504%209.4642C15.357%209.42647%2015.2722%209.37033%2015.201%209.29911C15.1297%209.22789%2015.0736%209.14306%2015.0359%209.04967C14.9982%208.95628%2014.9796%208.85625%2014.9814%208.75555C14.9832%208.65485%2015.0052%208.55553%2015.0462%208.46353C15.0872%208.37153%2015.1463%208.28873%2015.22%208.22007L17.69%205.75007H1.5C1.30109%205.75007%201.11032%205.67105%200.96967%205.5304C0.829018%205.38975%200.75%205.19898%200.75%205.00007C0.75%204.80116%200.829018%204.61039%200.96967%204.46974C1.11032%204.32909%201.30109%204.25007%201.5%204.25007H17.69L15.22%201.78007C15.0795%201.63945%2015.0007%201.44882%2015.0007%201.25007C15.0007%201.05132%2015.0795%200.860698%2015.22%200.720072Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2221%22%20height%3D%2210%22%20viewBox%3D%220%200%2021%2010%22%3E%3Cpath%20d%3D%22M15.22%200.720072C15.3606%200.579622%2015.5512%200.500732%2015.75%200.500732C15.9488%200.500732%2016.1394%200.579622%2016.28%200.720072L20.03%204.47007C20.1705%204.6107%2020.2493%204.80132%2020.2493%205.00007C20.2493%205.19882%2020.1705%205.38945%2020.03%205.53007L16.28%209.28007C16.2113%209.35376%2016.1285%209.41286%2016.0365%209.45385C15.9445%209.49485%2015.8452%209.51689%2015.7445%209.51866C15.6438%209.52044%2015.5438%209.50192%2015.4504%209.4642C15.357%209.42647%2015.2722%209.37033%2015.201%209.29911C15.1297%209.22789%2015.0736%209.14306%2015.0359%209.04967C14.9982%208.95628%2014.9796%208.85625%2014.9814%208.75555C14.9832%208.65485%2015.0052%208.55553%2015.0462%208.46353C15.0872%208.37153%2015.1463%208.28873%2015.22%208.22007L17.69%205.75007H1.5C1.30109%205.75007%201.11032%205.67105%200.96967%205.5304C0.829018%205.38975%200.75%205.19898%200.75%205.00007C0.75%204.80116%200.829018%204.61039%200.96967%204.46974C1.11032%204.32909%201.30109%204.25007%201.5%204.25007H17.69L15.22%201.78007C15.0795%201.63945%2015.0007%201.44882%2015.0007%201.25007C15.0007%201.05132%2015.0795%200.860698%2015.22%200.720072Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
}

/* =========================================================
   INTRO - More than an office
   ========================================================= */
.intro { padding-block: var(--sp-section); }
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 4vw, 64px) clamp(20px, 3vw, 48px);
  align-items: start;
}
.intro__figure {
  grid-column: 1 / 7;
  position: relative;
  align-self: start;
}
.intro__figure .frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.intro__figure .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.intro__detail {
  position: absolute;
  right: clamp(-40px, -6vw, -20px);
  bottom: clamp(-48px, -8vw, -28px);
  width: clamp(140px, 26%, 240px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 6px solid var(--paper);
}
.intro__detail img { width: 100%; height: 100%; object-fit: cover; }

.intro__body {
  grid-column: 8 / 13;
  padding-top: clamp(30px, 9vw, 130px);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 38px);
}
.intro__body .eyebrow { margin-bottom: 4px; }
.intro__body p {
  margin: 0;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.55;
}
.intro__body .kicker-num {
  font-family: var(--font-disp);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--brown);
  line-height: 1;
  opacity: 0.5;
}

/* =========================================================
   SHOWROOM - A space to experience
   ========================================================= */
.showroom { padding-block: var(--sp-section); background: var(--paper-2); }
.showroom__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 84px);
}
.showroom__head h2 { grid-column: 1 / 9; }
.showroom__head .eyebrow { grid-column: 1 / 6; margin-bottom: 20px; }
.showroom__head p { grid-column: 9 / 13; margin: 0; align-self: end; color: var(--brown); }

.showroom__wide {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.showroom__wide img { width: 100%; height: 100%; object-fit: cover; }
.showroom__cap { margin-top: clamp(16px, 2vw, 28px); }

.showroom__stagger {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(30px, 5vw, 80px) clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 7vw, 96px);
}
.exp {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.exp figure { margin: 0; overflow: hidden; }
.exp figure img { width: 100%; height: 100%; object-fit: cover; }
.exp h3 {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: var(--disp-tracking);
  margin: 0;
  text-transform: uppercase;
}
.exp p { margin: 0; max-width: 30ch; color: var(--brown); font-size: 14px; }
.exp__view {
  display: none;   /* Furnishings / Cabinetry / Materials VIEW links hidden for now */
  align-self: flex-start;
  margin-top: 2px;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.exp__view:hover { color: #614F42; }
.exp__view .icon-arrow { transition: transform 0.4s var(--ease); }
.exp__view:hover .icon-arrow { transform: translateX(4px); }

.exp--a { grid-column: 1 / 6; }
.exp--a figure { aspect-ratio: 3 / 4; }
.exp--b { grid-column: 7 / 13; margin-top: clamp(40px, 9vw, 140px); }
.exp--b figure { aspect-ratio: 4 / 5; }
.exp--c { grid-column: 3 / 10; margin-top: clamp(20px, 4vw, 60px); }
.exp--c figure { aspect-ratio: 16 / 10; }

/* =========================================================
   COMMUNITY EVENTS - full-width month calendar + looping slider
   (front-end only; wired to Sanity later)
   ========================================================= */
.events {
  --ev-alt: #EDE4CD;
  --ev-b1: var(--brown);          /* #745E4F */
  --ev-b2: #614F42;
  --ev-b3: #3B2E24;
  --ev-line: rgba(26, 19, 11, 0.16);
  --ev-ease: cubic-bezier(0.5, 0, 0.15, 1);
  padding-block: var(--sp-section);
}
.events__head { margin-bottom: clamp(30px, 4.5vw, 56px); }
.events__head .eyebrow { margin-bottom: 12px; }
.events__head h2 { color: var(--ink); }
.events__head--center { text-align: center; }

/* ---- calendar ---- */
.cal {
  border: 1px solid var(--ev-line);
  background: var(--paper);
}
.cal__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(16px, 2vw, 26px);
  border-bottom: 1px solid var(--ev-line);
}
.cal__title {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  min-width: 12ch;
  text-align: center;
}
.cal__nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ev-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.cal__nav:hover { background: var(--ev-b2); color: var(--paper); border-color: var(--ev-b2); }
.cal__nav .icon-arrow { width: 18px; }

.cal__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--ev-line);
}
.cal__dow span {
  padding: 12px 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ev-b1);
  text-align: left;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--ev-line);
}
.cal__cell {
  background: var(--paper);
  min-height: clamp(78px, 11vw, 128px);
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal__cell--out { background: var(--ev-alt); }
.cal__cell--out .cal__num { opacity: 0.34; }
.cal__num {
  font-family: var(--font-disp);
  font-size: 12px;
  color: var(--ink);
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start;
}
.cal__cell--today .cal__num {
  background: var(--ev-b2);
  color: var(--paper);
  border-radius: 50%;
}
.cal__event {
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--paper);
  background: var(--ev-b2);
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: background-color 0.35s var(--ease);
}
.cal__event:hover { background: var(--ev-b3); }
.cal__more {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ev-b1);
  text-align: left;
}

/* ---- slider ---- */
.ev-slider { margin-top: clamp(28px, 4vw, 52px); }
.ev-slider__nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(18px, 2.4vw, 26px);
}
.ev-slider__nav .cal__nav {
  width: auto;
  height: auto;
  padding: 6px 2px;
  border: 0;                    /* no container stroke on the slider arrows */
}
.ev-slider__nav .cal__nav:hover {
  background: transparent;
  border-color: transparent;
  color: #614F42;
}
.ev-slider__viewport { overflow: hidden; }
.ev-slider__track {
  display: flex;
  gap: clamp(16px, 2.2vw, 30px);
  transition: transform 0.6s var(--ev-ease);
  will-change: transform;
}
.ev-slide {
  flex: 0 0 auto;
  width: calc((100% - clamp(16px, 2.2vw, 30px)) / 2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  color: inherit;
}
.ev-slide__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ev-alt);
}
.ev-slide__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ev-slide__date {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ev-b1);
}
.ev-slide__title {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  letter-spacing: var(--disp-tracking);
  text-transform: uppercase;
  line-height: 1.1;
}

/* ---- event modal ---- */
.ev-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.ev-modal.is-open { opacity: 1; }
.ev-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 19, 11, 0.58);
}
.ev-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow: auto;
  background: var(--paper);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.42s var(--ease), opacity 0.42s var(--ease);
}
.ev-modal.is-open .ev-modal__panel { transform: none; opacity: 1; }
.ev-modal__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.35s var(--ease);
  z-index: 2;
}
.ev-modal__close:hover { color: #614F42; }         /* fades to dark brown, not black */
.ev-modal__x {
  position: relative;
  width: 16px;
  height: 16px;
}
.ev-modal__x::before,
.ev-modal__x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 1.5px;
  background: currentColor;
}
.ev-modal__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.ev-modal__x::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.ev-modal__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ev-alt); }
.ev-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.ev-modal__body { padding: clamp(24px, 3.4vw, 40px); }
.ev-modal__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--ev-line);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.ev-modal__link span:first-child { line-height: 1; }
.ev-modal__link:hover { background: #614F42; color: var(--paper); border-color: #614F42; }
.ev-modal__date {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ev-b1);
  margin: 0 0 10px;
}
.ev-modal__title {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: var(--disp-tracking);
  text-transform: uppercase;
  line-height: 1.04;
  margin: 0 0 14px;
}
.ev-modal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ev-modal__link--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); cursor: pointer; font-family: inherit; }
.ev-modal__link--solid:hover { background: #614F42; border-color: #614F42; }
.ev-modal__back {
  background: none; border: 0; padding: 11px 6px; cursor: pointer; font-family: inherit;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brown);
  transition: color 0.4s var(--ease);
}
.ev-modal__back:hover { color: var(--ink); }
.ev-step { opacity: 0; transition: opacity 0.26s var(--ease); }
.ev-step.is-in { opacity: 1; }
/* RSVP + thank-you steps: drop the photo, centre everything */
.ev-modal__panel.is-form .ev-modal__media { display: none; }
.ev-modal__panel.is-form .ev-modal__body { text-align: center; padding-top: clamp(56px, 7vw, 76px); }
.ev-modal__panel.is-form .ev-modal__actions { justify-content: center; }
.ev-modal__panel.is-form .req-form { align-items: stretch; }
.ev-modal__panel.is-form .req-form .btn-line { align-self: auto; }
.ev-modal__panel.is-form .field__input { text-align: left; }
.ev-modal__panel { overscroll-behavior: contain; }
.ev-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ev-modal__desc {
  margin: 0 0 22px;
  color: var(--brown);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .cal__dow span { font-size: 9px; letter-spacing: 0.04em; padding: 9px 2px; text-align: center; }
  .cal__cell { min-height: 62px; padding: 5px 4px 6px; gap: 3px; }
  .cal__num { font-size: 11px; width: 18px; height: 18px; }
  .cal__event { font-size: 0; padding: 0; height: 5px; border-radius: 3px; }
  .cal__more { font-size: 8px; }
  .ev-slide { width: 100%; }
}

/* =========================================================
   VISIT
   ========================================================= */
.visit { padding-top: var(--sp-section); }
.visit__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 60px);
  margin-bottom: var(--sp-lg);
}
.visit__intro { grid-column: 1 / 7; display: flex; flex-direction: column; gap: clamp(20px, 3vw, 34px); }
.visit__intro h2 .amp { font-style: italic; }
.visit__intro p { margin: 0; max-width: 32ch; color: var(--brown); }

.visit__details {
  grid-column: 8 / 13;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3vw, 40px) 24px;
}
.visit__block h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 400;
}
.visit__block p { margin: 0; line-height: 1.5; }
.visit__block--full { grid-column: 1 / -1; }

.btn-line {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px 16px;      /* 2px extra up top so the all-caps label reads optically centred */
  border: 1px solid var(--ink);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn-line:hover { background: #614F42; color: var(--paper); border-color: #614F42; }
.btn-line__short { display: none; }

.visit__map {
  grid-column: 1 / -1;
  margin-top: clamp(10px, 2vw, 24px);
  border: 1px solid var(--hair);
  aspect-ratio: 24 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--hair) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--hair) 39px 40px),
    var(--paper-2);
  color: var(--brown);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.visit__close {
  overflow: hidden;
  height: clamp(60vh, 88vh, 1000px);
}
.visit__close img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* =========================================================
   FOOTER - centred lockup on dark brown. The striped photo is
   a full-bleed backdrop; the brown panel covers it exactly at
   rest, and the panel PARALLAXES vertically as the footer
   scrolls through: pushed down on entry (a glimpse of stripes
   at the top), flush at mid (stripes hidden), lifted at the
   end (stripes revealed at the bottom).
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #3B2E24;
  color: var(--paper);
}
.site-footer__stripes {
  position: absolute;
  left: 0;
  right: 0;
  top: -34%;
  height: 168%;                       /* extends well past the footer both ways */
  z-index: 0;
  /* crisp vector stripes (replaces the low-res stripes.jpg): warm brown + cream,
     equal ~70px bands to match the source pattern */
  background: repeating-linear-gradient(
    90deg,
    #efe6dd 0,
    #efe6dd 70px,
    #8a7059 70px,
    #8a7059 140px
  );
}
.site-footer__inner {
  position: relative;
  z-index: 1;
  background: #3B2E24;                 /* opaque - at rest it fully covers the stripes */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* top & bottom padding must exceed the parallax travel so nothing clips */
  padding: clamp(110px, 15vw, 190px) var(--gutter) clamp(104px, 13vw, 160px);
  will-change: transform;
}

.footer-logo {
  --fw: clamp(200px, 30vw, 360px);     /* = the mark's width */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo img { display: block; }
.footer-logo__mark  { width: var(--fw); }
.footer-logo__label { width: calc(var(--fw) * 0.7254); margin-bottom: calc(var(--fw) * 0.1453); }
.footer-logo__sub   { width: calc(var(--fw) * 0.3596); margin-top: calc(var(--fw) * 0.1675); }
/* JS lowers --footer-fade toward 0 as the stripes emerge → just the mark remains */
.footer-logo__label,
.footer-logo__sub {
  opacity: var(--footer-fade, 1);
  transition: opacity 0.35s linear;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 54px);
  margin-top: clamp(28px, 4vw, 48px);
}
.footer-links a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding-block: 4px;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-logo__accent {
  display: block;
  width: clamp(46px, 5.5vw, 64px);
  height: auto;
  margin: clamp(40px, 6vw, 64px) 0 0;
  opacity: 0.9;
}

.site-footer__copy {
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 235, 216, 0.5);
}

/* =========================================================
   REQUEST-AN-EVENT - stroke container between calendar + slider
   ========================================================= */
.ev-request {
  margin-top: clamp(28px, 4vw, 52px);
  padding: clamp(22px, 3.2vw, 40px) clamp(20px, 3vw, 44px);
  border: 1px solid var(--ev-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap;
}
.ev-request__title {
  margin: 0;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  letter-spacing: var(--disp-tracking);
  line-height: 1.05;
  text-transform: uppercase;
}
.ev-request .btn-line { align-self: center; margin: 0; }

/* =========================================================
   FORMS - shared underline field + status line
   ========================================================= */
.field { position: relative; }
.field__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hair-strong);
  background: transparent;
  padding: 10px 0 9px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.01em;
  border-radius: 0;
  transition: border-color 0.4s var(--ease);
}
.field__input:focus { outline: none; border-bottom-color: var(--ink); }
.field__input::placeholder { color: transparent; }
textarea.field__input { resize: vertical; min-height: 46px; }
.field__label {
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 14px;
  color: var(--brown);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.32s var(--ease), font-size 0.32s var(--ease),
              letter-spacing 0.32s var(--ease);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-19px);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.form-status {
  margin: 2px 0 0;
  min-height: 1.1em;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
}
.form-status:empty { display: none; }   /* no phantom gap under the button before a message shows */
.form-status.is-ok  { color: var(--ink); }
.form-status.is-err { color: #8A3A2A; }
.btn-line[disabled] { opacity: 0.5; pointer-events: none; }

/* =========================================================
   CONTACT - centred, clean, underline inputs only
   ========================================================= */
.contact {
  padding-block: 0 var(--sp-section);
  background: var(--paper);
}
.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact__head {
  max-width: 44ch;
  margin-bottom: clamp(34px, 5vw, 58px);
}
.contact__head .eyebrow { margin-bottom: 12px; }
.contact__head h2 { color: var(--ink); }
.contact__lead {
  margin: 18px 0 0;
  color: var(--brown);
  font-size: 14px;
}
.contact-form {
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.4vw, 34px);
  text-align: left;
}
.contact-form .btn-line { align-self: center; margin-top: 8px; }
.contact-form .form-status { align-self: center; text-align: center; }

/* =========================================================
   MODAL - generic centred dialog (request-an-event form)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;            /* centre within the visible viewport, not behind the mobile toolbar */
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.modal.is-open { opacity: 1; }
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 19, 11, 0.58);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.42s var(--ease), opacity 0.42s var(--ease);
}
/* Auto-margin spacers centre the form in the panel when there's room,
   and collapse to 0 (content pinned to top, fully scrollable) when there isn't.
   Works in every browser, unlike `justify-content: safe center`. */
.modal__panel::before,
.modal__panel::after { content: ""; margin-block: auto; flex: 0 0 0; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
.modal__close:hover { color: #614F42; }
.modal__x { position: relative; width: 16px; height: 16px; }
.modal__x::before,
.modal__x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 1.5px;
  background: currentColor;
}
.modal__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal__x::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.modal__eyebrow { margin-bottom: 10px; }
.modal__title {
  margin: 0 0 8px;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: var(--disp-tracking);
  line-height: 1.05;
  text-transform: uppercase;
}
.modal__intro {
  margin: 0 0 24px;
  color: var(--brown);
  font-size: 14px;
}

/* request form inside the modal */
.req-form { display: flex; flex-direction: column; gap: 22px; }
.req-form__fields { display: flex; flex-direction: column; gap: 26px; }
.req-form .btn-line { align-self: flex-start; margin: 2px 0 0; }
.check-list {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.check-list legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
  cursor: pointer;
}
.check:first-of-type { border-top: 1px solid var(--hair); }
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--hair-strong);
  background: transparent;
  display: inline-grid;
  place-content: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.check input::before {
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -1px;                          /* optical centre after the rotation */
  border: solid var(--paper);
  border-width: 0 1.5px 1.5px 0;             /* corner → tick once rotated */
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.18s var(--ease);
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::before { transform: rotate(45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* =========================================================
   MOTION - reveals
   ========================================================= */
[data-rv] { --d: 0ms; }
[data-rv="line"] .line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  transition-delay: var(--d);
}
[data-rv="line"].is-in .line-inner { transform: translateY(0); }
[data-rv="line"] .line-mask { display: block; overflow: hidden; }

[data-rv="up"] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d);
}
[data-rv="up"].is-in { opacity: 1; transform: none; }

[data-rv="img"] { overflow: hidden; }
[data-rv="img"] > img,
[data-rv="img"] > .frame,
[data-rv="img"] > figure {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.08);
  transition: clip-path 1.2s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--d);
}
[data-rv="img"].is-in > img,
[data-rv="img"].is-in > .frame,
[data-rv="img"].is-in > figure { clip-path: inset(0 0 0 0); transform: scale(1); }

/* Parallax uses the `translate` longhand (instant, not transitioned) so a
   hover zoom on the same image can live on `scale` and ease BOTH ways. */
[data-parallax] { translate: 0 var(--py, 0px); }

img[data-parallax] {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  /* parallax = `translate` (JS-driven, instant); zoom = `scale` (eased).
     Separate properties so they never fight. `transform` is left free for
     the reveal animation. */
  will-change: translate, scale;
  translate: 0 var(--py, 0px);
  scale: 1;
  transition: scale 1s var(--ease), clip-path 1.2s var(--ease);
}
.exp figure,
.showroom__wide,
.intro__figure .frame,
.ev-slide__media { position: relative; }
.exp:hover figure img[data-parallax],
.ev-slide:hover .ev-slide__media img[data-parallax] { scale: 1.05; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  [data-rv="line"] .line-inner { transform: none !important; }
  [data-rv="img"] > * { clip-path: none !important; transform: none !important; }
  [data-parallax] { translate: none !important; }
  .hero__figure img { inset: 0; width: 100%; height: 100%; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero__figure img { inset: -8% 0; height: 116%; }

  .intro__figure { grid-column: 1 / 8; }
  .intro__body { grid-column: 1 / 12; padding-top: clamp(56px, 10vw, 90px); }
  .intro__detail { right: 6%; }

  .showroom__head h2 { grid-column: 1 / 12; }
  .showroom__head p { grid-column: 1 / 10; margin-top: 24px; }
  .exp--a { grid-column: 1 / 8; }
  .exp--b { grid-column: 6 / 13; }
  .exp--c { grid-column: 2 / 12; }

  .visit__intro { grid-column: 1 / 8; }
  .visit__details { grid-column: 1 / 13; align-self: start; }
}

@media (max-width: 720px) {
  :root { --disp-tracking: -0.014em; }

  /* the A&M mark that stays in the hero ends ~25% larger on small screens */
  html.js-herolockup .hero-lockup { --hl-h: min(50vh, 30vw); }

  .ecosystem__grid { flex-direction: column; gap: clamp(28px, 8vw, 44px); }
  .ecosystem__grid .house-card,
  .ecosystem__grid.has-hover .house-card,
  .ecosystem__grid.has-hover .house-card.is-hovering { width: 100%; }
  .house-card__media { height: clamp(300px, 74vw, 460px); }
  /* no card expansion on touch - drop the oversized-pan image for a plain,
     dead-centre cover crop */
  .house-card__media .house-card__main {
    --iw: 100cqw;
    width: 100%;
    transform: none;
    object-position: center center;
  }

  .intro__grid { grid-template-columns: 1fr; }
  .intro__figure { grid-column: 1; }
  .intro__body { grid-column: 1; padding-top: clamp(64px, 16vw, 96px); }
  .intro__detail { width: 34%; right: 4%; bottom: -32px; }

  .showroom__stagger { grid-template-columns: 1fr; gap: clamp(36px, 12vw, 60px); }
  .exp--a, .exp--b, .exp--c { grid-column: 1; margin-top: 0; }

  .footer-logo { --fw: clamp(180px, 62vw, 300px); }
  .footer-links { flex-direction: column; align-items: center; gap: 18px; }

  .ev-request { flex-direction: column; align-items: center; text-align: center; }
  .ev-request .btn-line { align-self: stretch; justify-content: center; }

  /* every button / CTA label reads at 11px on mobile, and tighter
     spacing + padding so labels stay on one line */
  .btn-line,
  .house-card__cta,
  .exp__view,
  .ev-modal__link { font-size: 11px; letter-spacing: 0.12em; }
  .btn-line { padding: 15px 18px 13px; gap: 10px; }

  .btn-line__full { display: none; }
  .btn-line__short { display: inline; }
}
