/* ============================================================
   WILDERBLISS — Design System
   Based on official brand guidelines
   ============================================================ */

/* Google Fonts — Cormorant Garamond (closest match to Freight Display/Text Pro)
   To use licensed Freight fonts: replace font-family values below */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* Primary colours */
  --color-night-blue:       #1F1D28;
  --color-blue-grey:        #2A2C36;
  --color-deep-forest:      #1E2A21;
  --color-dark-moss:        #2A3528;

  /* Secondary colours */
  --color-muted-sage:       #8F9B8C;
  --color-stone:            #B7B4AE;

  /* Neutrals */
  --color-charcoal:         #161515;
  --color-light-grey:       #CCCCCC;
  --color-bone:             #ECEBE7;

  /* Functional */
  --color-black:            #000000;
  --color-white:            #FFFFFF;

  /* Approved pairings (primary role) */
  --bg-hero:                var(--color-deep-forest);
  --bg-section-dark:        var(--color-night-blue);
  --bg-section-alt:         var(--color-dark-moss);
  --bg-light:               var(--color-bone);
  --bg-ui:                  var(--color-blue-grey);
  --text-on-dark:           var(--color-bone);
  --text-on-light:          var(--color-charcoal);
  --text-muted:             var(--color-stone);
  --text-accent:            var(--color-muted-sage);
  --border-subtle:          rgba(236,235,231,0.15);

  /* Typography */
  --font-display:           'Cormorant Garamond', Georgia, serif;
  --font-body:              'Cormorant Garamond', Georgia, serif;

  /* Type scale */
  --type-h1:                clamp(2.8rem, 6vw, 5rem);
  --type-h2:                clamp(2rem, 4vw, 3rem);
  --type-h3:                clamp(1.4rem, 2.5vw, 1.9rem);
  --type-body:              1.05rem;
  --type-caption:           0.75rem;
  --type-nav:               0.95rem;

  /* Spacing */
  --space-xs:               0.5rem;
  --space-sm:               1rem;
  --space-md:               2rem;
  --space-lg:               4rem;
  --space-xl:               7rem;
  --space-2xl:              12rem;

  /* Layout */
  --max-width:              1200px;
  --content-width:          720px;
  --nav-height:             70px;
  --topbar-height:          36px;

  /* Transitions */
  --transition:             0.35s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-on-dark);
  background-color: var(--color-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--type-h1);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 300;
  line-height: 1.3;
}

p {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 60ch;
}

.text-bone   { color: var(--color-bone); }
.text-stone  { color: var(--color-stone); }
.text-sage   { color: var(--color-muted-sage); }
.text-light  { color: var(--color-light-grey); }

/* Section label (small category tag above headings) */
.section-label {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted-sage);
  display: block;
  margin-bottom: var(--space-md);
}

/* Divider line */
.rule {
  width: 40px;
  height: 1px;
  background: var(--color-muted-sage);
  margin-bottom: var(--space-md);
  display: block;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* ============================================================
   TOPBAR — contact email strip above nav
   ============================================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: rgba(22,21,21,0.96);
  border-bottom: 1px solid rgba(236,235,231,0.07);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--space-md);
  gap: 0.75rem;
  z-index: 101;
}

.topbar a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--color-stone);
  text-decoration: none;
  transition: color var(--transition);
}

.topbar a:hover {
  color: var(--color-bone);
}

.topbar__sep {
  font-size: 0.65rem;
  color: rgba(236,235,231,0.25);
  user-select: none;
}

.topbar__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236,235,231,0.3);
  margin-right: 0.5rem;
}

.nav {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(22, 21, 21, 0.92);
  backdrop-filter: blur(8px);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  height: 22px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--type-nav);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-bone);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.nav__links a:hover {
  opacity: 1;
}

.nav__links a.active {
  opacity: 1;
}

.nav__cta {
  font-family: var(--font-body);
  font-size: var(--type-nav);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-bone);
  border: 1px solid rgba(236,235,231,0.4);
  padding: 0.5rem 1.2rem;
  transition: border-color var(--transition), opacity var(--transition);
}

.nav__cta:hover {
  border-color: var(--color-bone);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-bone);
  transition: var(--transition);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--color-bone);
  color: var(--color-bone);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--color-bone);
  color: var(--color-charcoal);
}

.btn--dark {
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}

.btn--dark:hover {
  background: var(--color-charcoal);
  color: var(--color-bone);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-xl);
  padding-top: calc(var(--nav-height) + var(--topbar-height));
  background-color: var(--bg-hero);
  position: relative;
  overflow: hidden;
}

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

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted-sage);
  margin-bottom: var(--space-md);
}

.hero__title {
  color: var(--color-bone);
  margin-bottom: var(--space-md);
}

.hero__sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--color-bone);
  margin-bottom: var(--space-lg);
  max-width: 52ch;
  opacity: 0.85;
}

.hero__logo {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

/* ============================================================
   PILLAR CARDS (homepage three-column grid)
   ============================================================ */

.pillars {
  background: var(--color-charcoal);
  padding: var(--space-xl) 0;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

.pillar-card {
  background: var(--color-charcoal);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: background var(--transition);
  position: relative;
}

.pillar-card:hover {
  background: var(--color-night-blue);
}

.pillar-card__logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  object-position: left;
  opacity: 0.6;
  margin-bottom: var(--space-sm);
  transition: opacity var(--transition);
}

.pillar-card:hover .pillar-card__logo {
  opacity: 0.9;
}

/* Gather text logo (no image yet) */
.pillar-card__logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-bone);
  opacity: 0.6;
  margin-bottom: var(--space-sm);
  transition: opacity var(--transition);
}

.pillar-card:hover .pillar-card__logo-text {
  opacity: 0.9;
}

.pillar-card__tag {
  font-size: var(--type-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-sage);
}

.pillar-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 300;
  color: var(--color-bone);
  line-height: 1.2;
}

.pillar-card__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-stone);
  max-width: 100%;
}

.pillar-card__status {
  font-size: var(--type-caption);
  letter-spacing: 0.1em;
  color: var(--color-muted-sage);
  margin-top: auto;
}

.pillar-card__link {
  position: absolute;
  inset: 0;
}

/* ============================================================
   PHILOSOPHY / INTRO SECTION
   ============================================================ */

.philosophy {
  background: var(--color-bone);
  color: var(--color-charcoal);
  padding: var(--space-xl) 0;
}

.philosophy h2 {
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.philosophy p {
  color: var(--color-charcoal);
  opacity: 0.7;
}

/* ============================================================
   TWO-COLUMN CONTENT BLOCK
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  opacity: 0.85;
}

.split__content {
  padding: var(--space-md);
}

/* ============================================================
   CONTENT SECTIONS (page inner sections)
   ============================================================ */

.section--dark {
  background: var(--color-night-blue);
}

.section--forest {
  background: var(--color-deep-forest);
}

.section--moss {
  background: var(--color-dark-moss);
}

.section--charcoal {
  background: var(--color-charcoal);
}

.section--bone {
  background: var(--color-bone);
  color: var(--color-charcoal);
}

.section--bone h2,
.section--bone h3,
.section--bone .h2,
.section--bone .h3 {
  color: var(--color-charcoal);
}

.section--bone p {
  color: var(--color-charcoal);
  opacity: 0.7;
}

.section--bone .section-label {
  color: var(--color-dark-moss);
}

.section--bone .rule {
  background: var(--color-dark-moss);
}

/* ============================================================
   FEATURE LIST
   ============================================================ */

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-list li {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 300;
  color: var(--color-bone);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.feature-list li::before {
  content: '';
  display: block;
  width: 1px;
  height: 1.2em;
  background: var(--color-muted-sage);
  flex-shrink: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  background: var(--color-deep-forest);
  padding: var(--space-xl) 0;
  text-align: left;
}

.cta-section h2 {
  color: var(--color-bone);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  margin-bottom: var(--space-lg);
}

/* ============================================================
   PAUSE MARK (brand symbol divider)
   ============================================================ */

.pause-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.pause-mark img {
  height: 48px;
  width: auto;
  opacity: 0.3;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-charcoal);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.footer__logo {
  height: 18px;
  width: auto;
  opacity: 0.6;
  margin-bottom: var(--space-md);
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--color-stone);
  font-style: italic;
}

.footer__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__nav li a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-stone);
  transition: color var(--transition);
}

.footer__nav li a:hover {
  color: var(--color-bone);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__contact a,
.footer__contact span {
  font-size: 0.8rem;
  color: var(--color-stone);
  transition: color var(--transition);
}

.footer__contact a:hover {
  color: var(--color-bone);
}

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.7rem;
  color: var(--color-stone);
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ============================================================
   PAGE HERO (for inner pages — smaller than homepage)
   ============================================================ */

.page-hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-xl);
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.page-hero--stay    { background-color: var(--color-deep-forest); background-image: url('../assets/images/brook-field.jpg'); background-size: cover; background-position: center 30%; }
.page-hero--breathe { background-color: var(--color-night-blue); background-image: url('../assets/images/brook-ivy.jpg'); background-size: cover; background-position: center 30%; }
.page-hero--gather  { background-color: var(--color-dark-moss); background-image: url('../assets/images/gather-terrace.jpg'); background-size: cover; background-position: center; }
.page-hero--about   { background-color: var(--color-blue-grey); background-image: url('../assets/images/gather-exterior.jpg'); background-size: cover; background-position: center 30%; }

/* Dark overlay for page heroes with photos */
.page-hero--stay::before,
.page-hero--breathe::before,
.page-hero--gather::before,
.page-hero--about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  z-index: 0;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

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

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  color: var(--color-bone);
}

/* Explicit text colours for page hero content (always over dark photo overlay) */
.page-hero__content h1 {
  color: var(--color-bone);
}
.page-hero__content .section-label {
  color: rgba(236,235,231,0.7);
  letter-spacing: 0.22em;
}
.page-hero__content .hero__sub {
  color: var(--color-bone);
  opacity: 0.82;
}

.page-hero__subbrand-logo {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 72px;
  width: auto;
  opacity: 1;
  z-index: 2;
  margin-bottom: 0;
}

/* Gather text-only sub-brand lockup (no logo file yet) */
.subbrand-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-bone);
  opacity: 0.85;
  margin-bottom: var(--space-lg);
}

.subbrand-text span {
  opacity: 0.5;
  margin: 0 0.6em;
}

/* ============================================================
   FORMS (email signup)
   ============================================================ */

.email-form {
  display: flex;
  gap: 0;
  max-width: 420px;
}

.email-form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: rgba(236,235,231,0.08);
  border: 1px solid rgba(236,235,231,0.3);
  border-right: none;
  color: var(--color-bone);
  padding: 0.9rem 1.2rem;
  outline: none;
  transition: border-color var(--transition);
}

.email-form input[type="email"]::placeholder {
  color: var(--color-stone);
  opacity: 0.6;
}

.email-form input[type="email"]:focus {
  border-color: var(--color-muted-sage);
}

.email-form button {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--color-bone);
  color: var(--color-charcoal);
  border: 1px solid var(--color-bone);
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.email-form button:hover {
  background: var(--color-light-grey);
}

/* ============================================================
   QUOTE / PULL QUOTE
   ============================================================ */

.pull-quote {
  padding: var(--space-xl) 0;
  background: var(--color-dark-moss);
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-bone);
  line-height: 1.4;
  max-width: 820px;
}

/* ============================================================
   UTILITY
   ============================================================ */

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   WORDMARK IMAGE (nav + footer)
   mix-blend-mode: screen makes the dark JPG background
   invisible on dark sections, leaving only the white mark
   ============================================================ */

.wordmark-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav .wordmark-img {
  height: 28px;
}

/* Inner pages: swap wordmark for pause mark icon in nav */
.nav-pause {
  display: none;
  height: 30px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.nav-pause:hover {
  opacity: 1;
}
/* Taller page heroes on inner pages */
.page-hero {
  min-height: 100vh;
}

/* ============================================================
   SUB-BRAND LOCKUP (used for Gather which has no logo yet)
   ============================================================ */

.subbrand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-bone);
  text-decoration: none;
}

.subbrand-lockup__name {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.subbrand-lockup__divider {
  display: inline-block;
  width: 1px;
  height: 2.2em;
  background: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
}

.subbrand-lockup__brand {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Footer text wordmark fallback */
.wordmark-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-bone);
  opacity: 0.6;
  display: block;
  margin-bottom: var(--space-md);
}

/* ============================================================
   BRAND LANDING — THREE-PILLAR PANELS
   ============================================================ */

.brand-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--color-charcoal);
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  min-height: 100vh;
  overflow: hidden;
  cursor: pointer;
  transition: filter var(--transition);
}

.brand-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
  pointer-events: none;
}

.brand-panel:hover::after {
  background: rgba(0,0,0,0.12);
}

.brand-panel--stay    { background-color: var(--color-deep-forest); }
.brand-panel--breathe { background-color: var(--color-night-blue); }
.brand-panel--gather  { background-color: var(--color-dark-moss); }

/* Dark overlay on top of background photos — keeps text legible */
.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: 0;
  pointer-events: none;
}

.brand-panel__top,
.brand-panel__content {
  position: relative;
  z-index: 1;
}

.brand-panel__top {
  /* Fixed height slot so all three panels' content starts at same y */
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.brand-panel__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.brand-panel__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--space-xl);
}

.brand-panel__cta {
  margin-top: auto;
  padding-top: var(--space-lg);
}

/* Wrapper that gives all three panel logos the same fixed height slot */
.brand-panel__logo-wrap {
  display: flex;
  align-items: center;
  height: 52px;
}

.brand-panel__logo {
  display: block;
  height: 52px;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.9)) drop-shadow(0 0 12px rgba(0,0,0,0.6));
}

/* Gather text lockup — sits inside the same 40px wrapper */
.brand-panel__logo-text {
  display: inline-flex;
  align-items: center;
  height: 40px;
  opacity: 0.85;
}

.brand-panel__logo-text .subbrand-lockup__name {
  font-size: 0.78rem;
}

.brand-panel__logo-text .subbrand-lockup__brand {
  font-size: 0.9rem;
}

.brand-panel__logo-text .subbrand-lockup__divider {
  height: 1.6em;
}

.brand-panel__divider {
  width: 32px;
  height: 1px;
  background: var(--color-muted-sage);
  display: block;
  margin-bottom: var(--space-md);
}

.brand-panel__category {
  font-size: var(--type-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236,235,231,0.65);
  display: block;
  margin-bottom: var(--space-sm);
}

.brand-panel__headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 300;
  color: var(--color-bone);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.brand-panel__body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(236,235,231,0.8);
  margin-bottom: var(--space-md);
  max-width: 28ch;
}

.brand-panel__cta {
  font-size: var(--type-caption);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bone);
  opacity: 0.82;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  transition: opacity var(--transition), gap var(--transition);
}

.brand-panel:hover .brand-panel__cta {
  opacity: 1;
  gap: 1em;
}

.brand-panel__status {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236,235,231,0.7);
  margin-bottom: var(--space-md);
}

/* No border needed — background handles gaps */

/* ============================================================
   ETHOS SECTION (homepage brand story)
   ============================================================ */

.ethos {
  background: var(--color-charcoal);
  padding: var(--space-2xl) 0;
}

.ethos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.ethos__intro h2 {
  color: var(--color-bone);
  margin-bottom: var(--space-md);
}

.ethos__intro p {
  margin-bottom: var(--space-md);
}

.ethos__contrasts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ethos__contrast-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
}

.ethos__contrast-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.ethos__contrast-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-bone);
}

.ethos__contrast-desc {
  font-size: 0.85rem;
  color: var(--color-stone);
  line-height: 1.6;
  max-width: 100%;
}

/* ============================================================
   MOBILE NAV
   ============================================================ */

@media (max-width: 1024px) {
  .brand-landing {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    height: 85vh;
    height: 85svh;
  }

  .brand-panel--stay,
  .brand-panel--breathe {
    border-right: none;
  }

  .ethos__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .nav {
    top: 0;
    background: rgba(22, 21, 21, 0.95);
    backdrop-filter: none;
  }

  .nav.scrolled {
    background: rgba(22, 21, 21, 0.98);
    backdrop-filter: none;
  }

  .nav.menu-open {
    background: var(--color-charcoal) !important;
    backdrop-filter: none;
  }

  .hero {
    padding-top: var(--nav-height);
  }

  .page-hero {
    padding-top: var(--nav-height);
  }

  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--color-charcoal);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-lg) var(--space-md);
    z-index: 99;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    font-size: 1.4rem;
    padding: var(--space-sm) 0;
    opacity: 0.9;
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 102;
  }

  /* ============================================================
     RESPONSIVE LAYOUT
     ============================================================ */

  .pillars__grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse {
    direction: ltr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .brand-panel__cta {
    padding-bottom: var(--space-md);
  }

  .email-form {
    flex-direction: column;
    max-width: 100%;
  }

  .email-form input[type="email"] {
    border-right: 1px solid rgba(236,235,231,0.3);
    border-bottom: none;
  }

  section {
    padding: var(--space-lg) 0;
  }
}

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

/* ============================================================
   EARLY ACCESS POPUP
   ============================================================ */

.wb-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.wb-popup.is-open {
  display: flex;
}

.wb-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 21, 21, 0.75);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.wb-popup__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.wb-popup__image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.wb-popup__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.wb-popup__form-panel {
  background: var(--color-night-blue);
  padding: clamp(2rem, 5%, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

.wb-popup__label {
  font-size: var(--type-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-sage);
}

.wb-popup__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--color-bone);
  line-height: 1.2;
  margin: 0.25rem 0 0.5rem;
}

.wb-popup__desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-stone);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.wb-popup__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 100%;
  margin-top: 0.5rem;
}

.wb-popup__form input[type="email"] {
  border-right: 1px solid rgba(236,235,231,0.3) !important;
  border-bottom: none !important;
  background: rgba(255,255,255,0.06);
}

.wb-popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(22,21,21,0.6);
  border: 1px solid rgba(236,235,231,0.2);
  color: var(--color-bone);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}

.wb-popup__close:hover {
  background: rgba(22,21,21,0.9);
}

.wb-popup__no-thanks {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-stone);
  opacity: 0.5;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.25rem;
  text-align: left;
  transition: opacity var(--transition);
}

.wb-popup__no-thanks:hover {
  opacity: 1;
}

/* Animate in */
.wb-popup__inner {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.wb-popup.is-open .wb-popup__inner {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .wb-popup__inner {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }

  .wb-popup__image {
    min-height: 200px;
    max-height: 220px;
  }

  .wb-popup__form-panel {
    padding: 2rem 1.5rem;
  }
}

/* ============================================================
   RENDER TAG — architectural visualisation notice
   ============================================================ */

.render-tag {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-bone);
  opacity: 0.82;
  background: rgba(22, 21, 21, 0.52);
  padding: 0.38em 0.75em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

.render-tag--popup {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.45em 0.9em;
  opacity: 0.9;
}
