/* ─────────────────────────────────────────────────
   10 Wildberry Lane — Editorial / Warm Residential
   ───────────────────────────────────────────────── */

:root {
  /* Warm ivory palette */
  --bg:       #f4efe4;        /* page background — warm ivory */
  --bg-alt:   #eae3d4;        /* section alternate — one notch warmer */
  --bg-deep:  #1e1b18;        /* near-black (warm) */
  --ink:      #1e1b18;        /* body text */
  --ink-mute: #6e6860;        /* muted warm gray */
  --ink-faint:#a39b8f;        /* hairline / micro */
  --rule:     #d5cdbd;        /* 1px dividers */
  --accent:   #4a5942;        /* restrained moss — used for hover/links only */
  --accent-ink:#2a3524;

  /* Type */
  --ff-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --gutter: clamp(24px, 5vw, 72px);
  --section-y: clamp(80px, 10vw, 160px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease, opacity .25s ease;
}

::selection { background: var(--bg-deep); color: var(--bg); }

/* ═══════════════ MASTHEAD ═══════════════ */
.mast {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(244, 239, 228, 0.82);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.mast.is-scrolled {
  border-bottom-color: var(--rule);
}
.mast__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.mast__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.mast__brand-mark {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  line-height: 1;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
}
.mast__brand-text em {
  font-style: italic;
  font-family: var(--ff-display);
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.5;
  margin: 0 2px;
}
.mast__nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.mast__nav a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-weight: 400;
  color: var(--ink);
  position: relative;
}
.mast__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.mast__nav a:hover::after { transform: scaleX(1); }
.mast__cta {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.mast__cta::after { display: none !important; }
.mast__cta:hover {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 900px) {
  .mast__nav a:not(.mast__cta) { display: none; }
  .mast__inner { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 420px) {
  .mast__brand-text { display: none; }
  .mast__cta { padding: 8px 14px; font-size: 11px; letter-spacing: 0.12em; }
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-deep);
  color: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(30, 27, 24, 0.55) 0%,
      rgba(30, 27, 24, 0.20) 25%,
      rgba(30, 27, 24, 0.25) 45%,
      rgba(30, 27, 24, 0.70) 75%,
      rgba(30, 27, 24, 0.94) 100%);
}
.hero__image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(30, 27, 24, 0.15);
}
.hero__overlay {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(48px, 8vw, 96px);
}
.hero__inner {
  max-width: 1400px;
  margin: 0 auto;
}
.hero__kicker {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 249, 237, 0.72);
  margin-bottom: 28px;
}
.hero__kicker .hero__dot { margin: 0 10px; }
.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: clamp(34px, 8.5vw, 132px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--bg);
  margin-bottom: clamp(32px, 5vw, 48px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__title span { display: block; }
.hero__title em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  opacity: 0.75;
  font-size: 0.72em;
  vertical-align: 0.1em;
  margin: 0 0.15em 0 0;
  font-weight: 400;
}
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 249, 237, 0.18);
}
.hero__address {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(255, 249, 237, 0.88);
}
.hero__sep {
  display: inline-block;
  width: 8px; height: 1px;
  background: rgba(255, 249, 237, 0.5);
  margin: 0 14px;
  vertical-align: middle;
}
.hero__address strong {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--bg);
  margin-left: 4px;
  letter-spacing: 0;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid rgba(255, 249, 237, 0.42);
  border-radius: 999px;
  color: var(--bg);
  transition: background .25s ease, border-color .25s ease;
}
.hero__cta:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.hero__scrollhint {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 249, 237, 0.55);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.hero__scrollhint-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(255, 249, 237, 0.4);
}
@media (max-width: 720px) {
  .hero__scrollhint { display: none; }
  .hero__foot {
    border-top-color: rgba(255, 249, 237, 0.25);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero__cta { align-self: stretch; justify-content: center; }
  .hero__kicker {
    font-size: 10.5px;
    letter-spacing: 0.24em;
    margin-bottom: 20px;
  }
  .hero__address { font-size: 14px; }
  .hero__sep { margin: 0 8px; }
}
@media (max-width: 420px) {
  .hero__title { font-size: 32px; }
  .hero__kicker .hero__dot { display: none; }
  .hero__kicker { display: flex; flex-wrap: wrap; gap: 6px 10px; }
  .hero__sep { display: none; }
  .hero__address { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
}

/* ═══════════════ CHAPTER (section) ═══════════════ */
.chapter {
  padding: var(--section-y) var(--gutter);
  background: var(--bg);
  max-width: 1600px;
  margin: 0 auto;
}
.chapter--alt {
  background: var(--bg-alt);
  max-width: none;
  margin: 0;
}
.chapter--alt > * {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
.chapter--feature {
  background: var(--bg-deep);
  color: var(--bg);
  max-width: none;
  margin: 0;
}

.chapter__grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: flex-start;
}
.chapter__left {
  position: sticky;
  top: 112px;
  padding-top: 6px;
}
.chapter__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.chapter__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 10px;
}
.chapter__right {
  max-width: 980px;
}

@media (max-width: 900px) {
  .chapter__grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .chapter__left { position: static; display: flex; align-items: baseline; gap: 16px; }
  .chapter__label { margin-top: 0; }
}

/* Display type */
.display {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--ink-mute);
  font-weight: 400;
}
.display--center { text-align: center; }

.lede {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin-top: 32px;
  letter-spacing: -0.005em;
  max-width: 740px;
}
.lede--center { text-align: center; margin-left: auto; margin-right: auto; }
.lede strong { font-weight: 500; color: var(--ink); }

.body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin-top: 22px;
  max-width: 720px;
}
.body em {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.08em;
  color: var(--ink);
}

/* Specs list — elegant key/value rows */
.specs {
  margin-top: 56px;
  max-width: 540px;
  border-top: 1px solid var(--rule);
}
.specs__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 520px) {
  .specs { margin-top: 40px; }
  .specs__row { grid-template-columns: 110px 1fr; gap: 16px; }
  .specs__k { font-size: 10px; letter-spacing: 0.18em; }
  .specs__v { font-size: 18px; }
}
.specs__k {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 4px;
}
.specs__v {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ═══════════════ FULL-BLEED ═══════════════ */
.fullbleed {
  position: relative;
  margin: 0;
  padding: 0;
}
.fullbleed img {
  width: 100%;
  height: 86vh;
  min-height: 520px;
  object-fit: cover;
}
.fullbleed figcaption {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  text-align: center;
  padding: 28px var(--gutter) 0;
  font-variation-settings: 'opsz' 144;
  max-width: 780px;
  margin: 0 auto;
}

/* ═══════════════ GALLERY ═══════════════ */
.galleries { margin-top: 32px; }
.gallery-chapter { margin-bottom: 96px; }
.gallery-chapter:last-child { margin-bottom: 0; }
.gallery-chapter__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.gallery-chapter__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-mute);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.gallery-chapter__ttl {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* JS-calculated grid masonry — each image claims exact row-span
   based on its natural aspect ratio + the current column width,
   producing a gap-free layout with native aspect ratios and
   left-to-right reading order. */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 8px;
  grid-auto-flow: row;
  gap: 12px;
}
.masonry__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg-alt);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  line-height: 0;
  grid-row: span 30; /* placeholder until JS measures */
}
.masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .8s ease, filter .4s ease;
  filter: saturate(0.98);
}
.masonry__item:hover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}
.masonry__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30, 27, 24, 0.22));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.masonry__item:hover::after { opacity: 1; }

@media (max-width: 820px) {
  .masonry { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .masonry { gap: 6px; }
  .gallery-chapter { margin-bottom: 64px; }
  .gallery-chapter__ttl { font-size: 22px; }
  .gallery-chapter__num { font-size: 17px; }
}

/* ═══════════════ PLANS ═══════════════ */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.plan-card {
  background: var(--bg);
  padding: 36px 32px 28px;
  border: 1px solid var(--rule);
}
.chapter--alt .plan-card { background: var(--bg); }
.plan-card img {
  width: 100%;
  margin-bottom: 24px;
}
.plan-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.plan-card__i {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 16px;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.plan-card__t {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 1;
}
.plan-card__a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.plan-card--full {
  grid-column: 1 / -1;
  margin-top: 32px;
}
@media (max-width: 800px) {
  .plans { grid-template-columns: 1fr; }
}

/* ═══════════════ FEATURES (editorial book) ═══════════════ */
.features-book {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 80px;
  row-gap: 56px;
  max-width: 1200px;
}
.features-book__col {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.features-book__h {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.features-book__col ul { list-style: none; }
.features-book__col li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px dotted var(--rule);
}
.features-book__col li:last-child { border-bottom: none; }
@media (max-width: 760px) {
  .features-book { grid-template-columns: 1fr; column-gap: 0; }
}

/* ═══════════════ SETTING ═══════════════ */
.setting {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
.setting__map {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
  max-height: 620px;
  overflow: hidden;
}
.setting__map iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.6) contrast(0.95);
}
.setting__map-link {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  transition: background .2s, color .2s;
}
.setting__map-link:hover { background: var(--ink); color: var(--bg); }

.setting__h {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.setting__h--mt { margin-top: 56px; }
.setting__dl {
  border-top: 1px solid var(--rule);
}
.setting__dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  gap: 24px;
}
.setting__dl dt {
  font-size: 14px;
  color: var(--ink);
}
.setting__dl dd {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.setting__list {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.setting__list li {
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 14.5px;
  color: var(--ink);
}
.setting__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}
@media (max-width: 900px) {
  .setting { grid-template-columns: 1fr; }
  .setting__map { aspect-ratio: 4 / 3; max-height: none; }
}

/* ═══════════════ TOUR (book a showing) ═══════════════ */
.chapter--feature { padding: var(--section-y) var(--gutter); }
.tour {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.tour__head .chapter__num,
.tour__head .chapter__label {
  color: rgba(255, 249, 237, 0.7);
}
.tour__head .chapter__num { color: rgba(255, 249, 237, 0.55); }
.chapter--feature .display { color: var(--bg); }
.chapter--feature .display em { color: rgba(255, 249, 237, 0.55); }
.chapter--feature .lede { color: rgba(255, 249, 237, 0.85); }
.tour__head {
  margin-bottom: 56px;
}
.tour__head .chapter__num {
  display: inline-block;
  margin-bottom: 8px;
}
.tour__head .chapter__label {
  display: block;
  margin-bottom: 36px;
  letter-spacing: 0.3em;
  font-size: 11px;
}

.tour-form {
  text-align: left;
}
.tour-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.tour-form label {
  display: block;
  border-bottom: 1px solid rgba(255, 249, 237, 0.28);
  padding-bottom: 6px;
  transition: border-color .25s ease;
}
.tour-form label:focus-within {
  border-bottom-color: var(--bg);
}
.tour-form label > span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 249, 237, 0.5);
  margin-bottom: 6px;
  font-weight: 500;
}
.tour-form input,
.tour-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--bg);
  font-family: var(--ff-body);
  font-size: 16px;
  padding: 8px 0;
  outline: none;
  resize: vertical;
}
.tour-form input::placeholder,
.tour-form textarea::placeholder {
  color: rgba(255, 249, 237, 0.35);
}
.tour-form__full { margin-bottom: 36px; }
.tour-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-long {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(255, 249, 237, 0.5);
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--ff-body);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.btn-long:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.tour-form__or {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(255, 249, 237, 0.7);
}
.tour-form__or a {
  color: var(--bg);
  border-bottom: 1px solid rgba(255, 249, 237, 0.5);
  padding-bottom: 1px;
  margin-left: 6px;
  font-style: normal;
  font-family: var(--ff-body);
  font-size: 14px;
}
.tour-form__or a:hover { border-color: var(--bg); }
.tour-form__status {
  margin-top: 24px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.55;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .3s ease;
  max-width: 540px;
}
.tour-form__status:not(:empty) { opacity: 1; }
.tour-form__status--pending {
  background: rgba(255, 249, 237, 0.08);
  border: 1px solid rgba(255, 249, 237, 0.18);
  color: rgba(255, 249, 237, 0.7);
  font-style: italic;
  font-family: var(--ff-display);
}
.tour-form__status--success {
  background: rgba(74, 89, 66, 0.35);
  border: 1px solid rgba(74, 89, 66, 0.6);
  color: var(--bg);
  font-family: var(--ff-display);
  font-size: 16px;
  font-style: italic;
}
.tour-form__status--error {
  background: rgba(192, 57, 43, 0.2);
  border: 1px solid rgba(192, 57, 43, 0.5);
  color: #f5c7c1;
}
.tour-form button[disabled] {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 600px) {
  .tour-form__row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
}

/* ═══════════════ TEAM / AGENTS ═══════════════ */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.team__card {
  padding: 48px 40px;
  border-right: 1px solid var(--rule);
}
.team__card:last-child { border-right: none; }
.team__name {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 34px;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.team__role {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.team__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}
.team__contact a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  width: fit-content;
  transition: border-color .2s ease;
}
.team__contact a:hover { border-bottom-color: var(--ink); }
.team__brokerage {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.team__brokerage span { margin: 0 10px; color: var(--ink-faint); }
@media (max-width: 720px) {
  .team { grid-template-columns: 1fr; }
  .team__card { border-right: none; border-bottom: 1px solid var(--rule); }
  .team__card:last-child { border-bottom: none; }
}

/* ═══════════════ FOOTER ═══════════════ */
.foot {
  background: var(--bg-deep);
  color: rgba(255, 249, 237, 0.65);
  padding: 56px var(--gutter) 40px;
}
.foot__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .foot { padding: 44px var(--gutter) 32px; }
  .foot__inner { gap: 24px; }
  .foot__left, .foot__right { width: 100%; }
  .foot__right { text-align: left; }
}
.foot__mark {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--bg);
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.foot__mark em {
  font-style: italic;
  opacity: 0.5;
  margin: 0 4px;
}
.foot__addr {
  font-size: 13px;
  color: rgba(255, 249, 237, 0.55);
  letter-spacing: 0.04em;
}
.foot__right {
  text-align: right;
  max-width: 520px;
}
.foot__copy {
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 249, 237, 0.38);
  margin-bottom: 10px;
}
.foot__credit {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 249, 237, 0.55);
  margin-bottom: 14px;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.foot__credit-link {
  color: rgba(255, 249, 237, 0.9);
  border-bottom: 1px solid rgba(255, 249, 237, 0.35);
  padding-bottom: 1px;
  font-style: normal;
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: border-color .2s;
}
.foot__credit-link:hover { border-color: rgba(255, 249, 237, 0.9); }
.foot__top {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  border-bottom: 1px solid rgba(255, 249, 237, 0.35);
  padding-bottom: 2px;
}
.foot__top:hover { border-color: var(--bg); }
@media (max-width: 640px) {
  .foot__right { text-align: left; }
}

/* ═══════════════ LIGHTBOX ═══════════════ */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 24, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lb.is-open { display: flex; }
.lb__img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
}
.lb__close,
.lb__prev,
.lb__next {
  position: absolute;
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(255, 249, 237, 0.3);
  font-size: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;
  transition: background .15s, border-color .15s;
}
.lb__close { top: 28px; right: 28px; font-size: 28px; }
.lb__prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 28px; top: 50%; transform: translateY(-50%); }
.lb__close:hover,
.lb__prev:hover,
.lb__next:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.lb__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 249, 237, 0.65);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
