/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: var(--bg-page);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) clamp(16px, 6vw, 64px);
  transition: background 240ms cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px) saturate(110%);
}

.nav-house-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--cream-50);
  flex-shrink: 0;
  transition: color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.scrolled .nav-house-name { color: var(--fg-1); }

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-5);
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.9);
  transition: color 240ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.scrolled .nav-links a { color: var(--fg-1); }
.nav-links a:hover { opacity: 0.65; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--cream-50);
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  transition: color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.scrolled .nav-hamburger { color: var(--fg-1); }

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  margin-left: var(--space-4);
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.55);
  cursor: pointer;
  padding: 3px 5px;
  transition: color 200ms ease, opacity 200ms ease;
  text-transform: uppercase;
}

.lang-btn:hover { color: rgba(250, 247, 242, 0.9); }
.lang-btn.active { color: rgba(250, 247, 242, 1); font-weight: 700; }

.site-nav.scrolled .lang-btn { color: var(--fg-3); }
.site-nav.scrolled .lang-btn:hover { color: var(--fg-1); }
.site-nav.scrolled .lang-btn.active { color: var(--fg-1); font-weight: 700; }

.lang-select { display: none; }

@media (max-width: 768px) {
  .lang-switcher { margin-left: var(--space-3); }
  .lang-btn { display: none; }
  .lang-select {
    display: block;
    background: transparent;
    border: 1px solid rgba(250, 247, 242, 0.5);
    border-radius: 3px;
    color: var(--cream-50);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 3px 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }
  .site-nav.scrolled .lang-select {
    border-color: var(--fg-3);
    color: var(--fg-1);
  }
}

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(10px);
    padding: var(--space-5) clamp(16px, 6vw, 64px);
    gap: var(--space-4);
    border-top: 1px solid var(--line-1);
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--fg-1); }
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-mobile { display: none; }

@media (max-width: 768px) {
  .hero-bg-desktop { display: none; }
  .hero-bg-mobile { display: block; object-position: center; }
  /* height follows the vertical cover's own 3:4 ratio so the picture
     shows almost fully (minimal crop); capped so it never gets too tall */
  .hero {
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 86vh;
    min-height: 0;
    /* lift the title into the sky so it doesn't cover the house */
    align-items: flex-start;
    padding-top: 20vh;
    padding-bottom: 0;
  }
  .hero-caption {
    margin: 0 var(--space-5);
    max-width: calc(100% - 2 * var(--space-5));
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20,17,14,0.05) 0%, rgba(20,17,14,0.30) 100%),
    linear-gradient(to bottom, rgba(20,17,14,0.13) 0%, rgba(20,17,14,0.10) 50%, rgba(20,17,14,0.45) 100%);
  z-index: 1;
}

.hero-caption {
  position: relative;
  z-index: 2;
  padding: var(--space-7) var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 760px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(34px, 5.5vw, 64px);
  letter-spacing: 0.06em;
  line-height: var(--lh-tight);
  /* subtle white → very light blue gradient on the text */
  background: linear-gradient(180deg, #ffffff 0%, #e3edf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* drop-shadow (not text-shadow) so it works with gradient-clipped text */
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.30));
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(12px, 1.6vw, 17px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.90);
  text-shadow: 0 1px 8px rgba(0,0,0,0.30);
}

/* placed AFTER the base .hero-title/.hero-caption rules so it wins on mobile */
@media (max-width: 768px) {
  .hero-caption {
    gap: var(--space-2); /* tighter title/subtitle spacing on mobile */
  }
  .hero-title {
    font-size: 28px; /* smaller so it roughly matches the subtitle width */
  }
}

@media (max-width: 480px) {
  .hero-caption {
    padding: var(--space-5) var(--space-6);
    margin: 0 var(--space-5);
  }
}

/* ── Shared section ── */
.section {
  padding: var(--space-10) clamp(16px, 6vw, 64px);
  background: var(--bg-page);
}

.section-alt {
  background: var(--bg-surface);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-7);
  display: inline-block;
}

.body-copy {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fg-2);
  max-width: 62ch;
  margin-bottom: var(--space-5);
}

/* ── Location ── */
.location-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
  margin-bottom: var(--space-7);
}

.location-map {
  overflow: hidden;
}

.map-img {
  width: 100%;
  max-width: none;
  border-radius: 0;
}

.location-text {
  max-width: 72ch;
}

.location-copy {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fg-2);
  max-width: 62ch;
  margin-bottom: var(--space-4);
}

.landscape-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0;
  display: block;
}

@media (max-width: 768px) {
  .location-top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .map-img { max-width: 100%; }
  .landscape-img { height: 260px; }
}

/* ── Features ── */
.features-intro {
  margin-bottom: var(--space-6);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-8);
  row-gap: 0;
  border: 1px solid var(--line-1);
  padding: var(--space-6) var(--space-7);
  background: var(--bg-surface);
}

.feature-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-1);
  gap: var(--space-5);
}

/* 12 items, balanced 6 per column. The two items at the bottom of each
   column drop their separator so no line dangles below the column. */
@media (min-width: 601px) {
  .feature-item:nth-child(1)  { grid-column: 1; grid-row: 1; }
  .feature-item:nth-child(2)  { grid-column: 1; grid-row: 2; }
  .feature-item:nth-child(3)  { grid-column: 1; grid-row: 3; }
  .feature-item:nth-child(4)  { grid-column: 1; grid-row: 4; }
  .feature-item:nth-child(5)  { grid-column: 1; grid-row: 5; }
  .feature-item:nth-child(6)  { grid-column: 1; grid-row: 6; }
  .feature-item:nth-child(7)  { grid-column: 2; grid-row: 1; }
  .feature-item:nth-child(8)  { grid-column: 2; grid-row: 2; }
  .feature-item:nth-child(9)  { grid-column: 2; grid-row: 3; }
  .feature-item:nth-child(10) { grid-column: 2; grid-row: 4; }
  .feature-item:nth-child(11) { grid-column: 2; grid-row: 5; }
  .feature-item:nth-child(12) { grid-column: 2; grid-row: 6; }
  .feature-item:nth-child(6)  { border-bottom: none; } /* bottom of column 1 */
  .feature-item:last-child    { border-bottom: none; } /* bottom of column 2 */
}

.feature-item dt {
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--fg-1);
  text-transform: uppercase;
  font-size: var(--fs-small);
}

.feature-item dd {
  font-size: var(--fs-body);
  color: var(--fg-2);
  margin-inline-start: 0;
  text-align: right;
}

@media (max-width: 600px) {
  .feature-list { grid-template-columns: 1fr; }
  .feature-item:last-child { border-bottom: none; }
}

/* ── Floor plans ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-1);
  margin-bottom: var(--space-7);
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  cursor: pointer;
  transition: color 240ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
  color: var(--fg-1);
  border-bottom-color: var(--accent);
}

.tab-btn:hover:not(.active) { color: var(--fg-2); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.floorplan-img {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  display: block;
  cursor: pointer; /* click to enlarge in the lightbox */
}

.floorplan-legend {
  max-width: 700px;
  margin: var(--space-4) auto 0;
  font-size: var(--fs-small);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
  line-height: 1.8;
}

.floorplan-legend strong {
  color: var(--fg-2);
  font-weight: 600;
}

/* ── Photo gallery ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.grid-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

.grid-photo:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ── Exposé Download ── */
.expose-download {
  text-align: center;
  padding: var(--space-9) 0;
  border-top: 1px solid var(--line-1);
}

.expose-text {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 300;
  letter-spacing: var(--tracking-wide);
  color: var(--fg-1);
  margin-bottom: var(--space-2);
}

.expose-note {
  font-size: var(--fs-small);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.expose-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-1);
  border: 1px solid var(--fg-1);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  transition: background 240ms cubic-bezier(0.4, 0, 0.2, 1), color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.expose-link:hover {
  background: var(--fg-1);
  color: var(--bg-page);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31, 28, 24, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(250, 247, 242, 0.75);
  font-size: 28px;
  cursor: pointer;
  padding: var(--space-4);
  transition: color 240ms cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--cream-50); }

.lightbox-close { top: var(--space-5); right: var(--space-5); }
.lightbox-prev  { left: var(--space-5);  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: var(--space-5); top: 50%; transform: translateY(-50%); }

/* ── Contact ── */
.section-contact { max-width: 640px; }

.contact-intro {
  margin-bottom: var(--space-7);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--fg-1);
  background: var(--bg-page);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: var(--space-3) var(--space-4);
  outline: none;
  transition: border-color 240ms cubic-bezier(0.4, 0, 0.2, 1);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.submit-btn {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--cream-50);
  background: var(--fg-1);
  border: none;
  border-radius: 2px;
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  transition: background 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover { background: var(--ink-800); }

.contact-success {
  font-size: var(--fs-lead);
  color: var(--fg-2);
  margin-top: var(--space-5);
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-page);
  border-top: 1px solid var(--line-1);
  padding: var(--space-7) clamp(16px, 6vw, 64px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.footer-logo { height: 24px; width: auto; }

.footer-agency-text {
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-3);
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-agency-text:hover { opacity: 0.7; }

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-5) auto 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-copy,
.footer-design {
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-3);
}

.footer-legal {
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-3);
  text-decoration: none;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-legal:hover { opacity: 0.55; }

.footer-nujai {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  color: var(--fg-3);
  text-decoration: none;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nujai:hover { opacity: 0.55; }

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}

/* ===== Casa Aguila additions ===== */

/* ── Pull quotes (blockquote.quote-script) ──
   Mirrors the PDF exposé's .pull-quote: Raleway display font, light weight,
   centered, with curly quotation marks. */
.quote-script {
  /* reset default blockquote styles */
  margin: 3.5rem auto;
  padding: 1.5rem 0;
  border: 0;
  quotes: none;
  /* layout */
  max-width: min(720px, 90%);
  text-align: center;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  /* type — match the PDF pull-quote */
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.quote-script::before { content: "\201C"; }
.quote-script::after  { content: "\201D"; }

/* ── Hero day / night ──
   All .hero-bg images are absolutely stacked (inset: 0); the desktop/mobile
   switch stays display-based, the day/night switch is opacity-based. */
.hero-bg {
  transition: opacity 0.6s ease;
}

.hero-bg.is-hidden { opacity: 0; }

/* Night needs a slightly stronger scrim for caption legibility */
.hero.night .hero-overlay {
  background:
    radial-gradient(ellipse at center, rgba(20,17,14,0.10) 0%, rgba(20,17,14,0.38) 100%),
    linear-gradient(to bottom, rgba(20,17,14,0.20) 0%, rgba(20,17,14,0.16) 50%, rgba(20,17,14,0.52) 100%);
}

/* ── Day / night switch (bottom-centred in the hero) ── */
.daynight-toggle {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  width: 92px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  --switch-line: rgba(250, 247, 242, 0.65);
  --switch-icon: var(--switch-line);
  border: 1px solid var(--switch-line);
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.12);
  -webkit-backdrop-filter: blur(8px) saturate(105%);
  backdrop-filter: blur(8px) saturate(105%);
  color: var(--switch-icon);
  cursor: pointer;
}

.daynight-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 6px);
  border: 1px solid var(--switch-line);
  border-radius: 999px;
  background: transparent;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.daynight-toggle:focus-visible {
  outline: 2px solid var(--switch-line);
  outline-offset: 3px;
}

.daynight-toggle.night::before {
  transform: translateX(calc(100% + 6px));
}

.dn-icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  justify-self: center;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .daynight-toggle::before {
    transition: none;
  }
}

@media (max-width: 768px) {
  .daynight-toggle { bottom: 20px; }
}

/* ── Nav: collapse to hamburger earlier ──
   This page has seven nav links plus the language selector;
   between 769–960px the inline controls can overflow. */
@media (max-width: 960px) and (min-width: 769px) {
  .nav-hamburger {
    display: block;
    margin-left: auto;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(10px);
    padding: var(--space-5) clamp(16px, 6vw, 64px);
    gap: var(--space-4);
    border-top: 1px solid var(--line-1);
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--fg-1); }
}

/* ── Story: portrait + intro text ── */
.story-intro {
  display: grid;
  /* text left, portrait right — she looks left, into the text */
  grid-template-columns: 1fr minmax(0, 440px);
  gap: var(--space-7);
  align-items: start;
}

.story-text { order: 1; }

.story-portrait {
  order: 2;
  width: 100%;
  aspect-ratio: 3 / 2; /* horizontal crop */
  object-fit: cover;
  border-radius: 0; /* sharp corners, brand rule */
}

.story-text .body-copy:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .story-intro {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  /* portrait above text, full width (horizontal crop) */
  .story-portrait {
    max-width: 100%;
    margin: 0;
  }
}

/* ── Framed photos (passe-partout look) ── */
.framed-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-6);
}

.framed-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* thin frame + cream mat around the print */
  background: var(--bg-surface);
  border: 1px solid var(--line-1);
  padding: 10px;
  box-shadow: var(--shadow-2);
  border-radius: 0;
  cursor: pointer;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.framed-photo:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .framed-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ── The Visit ── */
/* architect link tucked under the intro paragraph */
.visit-studio-link {
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-6);
  font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-3);
}

.visit-studio-link a {
  color: var(--fg-3);
  border-bottom: 1px solid var(--line-2);
  transition: color 240ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.visit-studio-link a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.visit-photo { margin-bottom: var(--space-7); }

/* the opening terrace shot reads better tall — cap at 16:9 so the
   terrace is actually visible rather than a thin landscape band */
.visit-photo .landscape-img {
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
}

/* photo + text blocks, alternating sides */
.visit-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  margin-top: var(--space-7); /* ~3rem between blocks */
}

/* alternate: even div positions get the photo on the right */
.visit-block:nth-of-type(even) .visit-photo-img,
.visit-block:nth-of-type(even) .visit-photo-duo { order: 2; }

.visit-photo-img {
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: cover;
  border-radius: 0;
}

/* two photos sharing one block-photo footprint (eco-house "resonance") */
.visit-photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.visit-photo-duo img {
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* sub-headings (h3) in visit + tech blocks — tracked caps like brand titles */
.visit-block-title,
.tech-block-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-1);
  margin-bottom: var(--space-4);
}

.visit-block-text .body-copy:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .visit-block {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  /* photo always first when stacked */
  .visit-block .visit-photo-img,
  .visit-block .visit-photo-duo { order: -1; }
}

/* ── Photo pairs (2-up) ── */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: var(--space-6) 0;
}

.pair-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pair-photo:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .photo-pair {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ── Built to Last (tech blocks) ── */
.tech-block { margin-top: var(--space-7); }
.tech-block .photo-pair { margin-bottom: 0; }
