/* ==========================================================================
   Rajan Wadhwa Estates — site styles
   Brand: aubergine #351858, plum #6E2962, black, white
   Type: Playfair Display (display) + DM Sans (text)
   ========================================================================== */

:root {
  /* Brand colours (sampled from the brand guidelines PDF) */
  --aubergine: #351858;
  --aubergine-deep: #26103f;
  --plum: #6e2962;
  --plum-deep: #5a2050;
  --black: #000000;
  --white: #ffffff;

  /* Supporting neutrals, all pulled toward the aubergine hue */
  --ink: #1f1029;          /* body text on white */
  --muted: #62566b;        /* secondary text on white (6.4:1) */
  --mist: #f5f1f6;         /* alternate section ground */
  --line: #e3dae6;         /* rules on white */
  --line-strong: #d6c9dc;  /* rules on mist */
  --lilac: #cdb6d6;        /* secondary text on aubergine */
  --lilac-soft: rgba(255, 255, 255, 0.14);

  /* Type */
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.2vw + 0.8rem, 1.3125rem);
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.375rem, 1vw + 1.05rem, 1.75rem);
  --fs-h2: clamp(2rem, 3.2vw + 1rem, 3.375rem);
  --fs-h1: clamp(2.625rem, 5.4vw + 1rem, 5.5rem);
  --fs-statement: clamp(1.625rem, 2.2vw + 1rem, 2.75rem);

  /* Layout */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --nav-h: 84px;                 /* main header row */
  --bar-h: 0px;                  /* contact bar above it (desktop only) */
  --header-h: calc(var(--nav-h) + var(--bar-h));

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (min-width: 960px) {
  :root { --bar-h: 36px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--plum); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}
.on-dark :focus-visible, .section--dark :focus-visible,
.site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--aubergine);
  padding: 10px 16px; font-weight: 500; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--aubergine); color: var(--white); }
.section--tight-top { padding-top: calc(var(--section) * 0.5); }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--aubergine);
  text-wrap: balance;
}
.on-dark .display, .on-dark .h2, .on-dark .h3,
.section--dark .h2, .section--dark .h3 { color: var(--white); }

.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.018em; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.012em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 38em; }
.section--dark .lead { color: var(--lilac); }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 36em; }
.small { font-size: var(--fs-small); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 46rem; }
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

/* ---------- Links & buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--plum); border-radius: 2px;
  background: var(--plum); color: var(--white);
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.btn:hover { background: var(--aubergine); border-color: var(--aubergine); }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn--light { background: var(--white); border-color: var(--white); color: var(--aubergine); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--aubergine); }
.btn--ghost-light:disabled:hover { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn--outline { background: transparent; color: var(--plum); }
.btn--outline:hover { background: var(--plum); border-color: var(--plum); color: var(--white); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.875rem; }

.link {
  display: inline-block; position: relative;
  color: var(--plum); font-weight: 500; text-decoration: none;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.link:hover { background-size: 0% 1px; background-position: right bottom; }
.section--dark .link, .on-dark .link { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; flex-direction: column;
  color: var(--aubergine);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}
.site-header__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
/* Once scrolled, the header turns solid and the contact bar slides up out of view */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(10px);
  transform: translateY(calc(-1 * var(--bar-h)));
}
.site-header--over-dark:not(.is-solid) { color: var(--white); }

/* Contact bar */
.topbar { display: none; }
@media (min-width: 960px) {
  .topbar {
    display: block; height: var(--bar-h);
    border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    font-size: 0.8125rem;
  }
  .topbar__inner { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
  .topbar a { color: inherit; text-decoration: none; opacity: 0.88; }
  .topbar a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
  .topbar__sep { width: 1px; height: 12px; background: currentColor; opacity: 0.3; }
}

.brand { display: block; width: 176px; color: inherit; flex-shrink: 0; }
.brand svg { width: 100%; height: auto; }

.nav { display: none; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  position: relative; display: block; padding: 6px 0;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: inherit;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-header--over-dark:not(.is-solid) .btn { background: var(--white); border-color: var(--white); color: var(--aubergine); }
.site-header--over-dark:not(.is-solid) .btn:hover { background: transparent; color: var(--white); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 10px 0; cursor: pointer; color: inherit;
  font-size: 0.9375rem; font-weight: 500;
}
.menu-toggle__bars { position: relative; width: 26px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8.5px; }
.menu-open .menu-toggle__bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 4.25px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .brand { width: 196px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--aubergine); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-inout), visibility 0s linear 0.6s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.6s var(--ease-inout), visibility 0s; }
.menu-open .site-header { color: var(--white); background: transparent; box-shadow: none; }
.mobile-menu__list a {
  display: block; padding: 8px 0;
  font-family: var(--serif); font-size: clamp(2.25rem, 9vw, 3.25rem); line-height: 1.15;
  text-decoration: none;
}
.mobile-menu__list a[aria-current="page"] { color: var(--lilac); }
.mobile-menu__foot { display: grid; gap: 6px; }
.mobile-menu__foot a { color: var(--white); text-decoration: none; font-size: 1.0625rem; }
@media (min-width: 960px) { .mobile-menu { display: none; } }

/* ---------- Media (photos) ---------- */
/* Until a photo loads, or if it fails, the frame shows the monogram on aubergine instead of a broken icon. */
.media {
  position: relative; overflow: hidden;
  background: var(--aubergine) url("../assets/rwe-monogram-light.svg") center / 22% auto no-repeat;
}
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.media img:not([src]) { visibility: hidden; }
button.media { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; cursor: zoom-in; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
@media (max-width: 599px) { .media--wide { aspect-ratio: 4 / 3; } }

/* The one reveal used across the site: photographs rise over a brand plate as they enter view.
   The clip sits on the <img>, not the observed frame, so IntersectionObserver still sees the frame. */
.js [data-reveal] img { clip-path: inset(100% 0 0 0); transform: scale(1.12); }
.js [data-reveal].is-in img {
  clip-path: inset(0 0 0 0); transform: scale(1);
  transition: clip-path 1.3s var(--ease-inout), transform 1.8s var(--ease-out);
}

/* ==========================================================================
   Home — hero with the W monogram as a window onto a project
   ========================================================================== */
.hero { position: relative; background: var(--aubergine); color: var(--white); }
.hero__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
}
.js .hero--zoom { height: 280vh; }
.js .hero--zoom .hero__stage { position: sticky; top: 0; }

.hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__copy {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: clamp(36px, 7vh, 88px);
  will-change: opacity, transform;
}
.hero__title { color: var(--white); max-width: 11.5em; }
.hero__line { display: block; }
.hero__lede { margin-top: 24px; max-width: 30em; color: var(--lilac); font-size: var(--fs-lead); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (min-width: 900px) {
  /* each sentence on one line, sized to stay clear of the W */
  .hero__title { max-width: none; font-size: min(var(--fs-h1), 4.4vw); }
  .hero__line { white-space: nowrap; }
  .hero__lede { max-width: min(30em, 44vw); }
}

.hero__caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 120px 0 clamp(32px, 6vh, 64px);
  background: linear-gradient(to top, rgba(22, 8, 38, 0.78), rgba(22, 8, 38, 0));
  opacity: 0; pointer-events: none;
}
.hero__caption.is-visible { pointer-events: auto; }
.hero__caption .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero__caption-title { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.1; }
.hero__caption-meta { margin-top: 8px; color: var(--lilac); }

@media (max-width: 899px) {
  .hero__copy { bottom: 40px; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Home — introduction and the three pillars
   ========================================================================== */
.intro__cols { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 900px) { .intro__cols { grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; } }
.intro__opening {
  font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.4;
  color: var(--aubergine); max-width: 22em; text-wrap: pretty;
}

.commitments {
  display: grid; gap: 48px 56px; margin-top: clamp(64px, 8vw, 112px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .commitments { grid-template-columns: repeat(3, 1fr); } }
.commitment { border-top: 2px solid var(--plum); padding-top: 24px; }
.commitment h3 { margin-bottom: 12px; }
.commitment p { color: var(--muted); }

/* ==========================================================================
   Home — what we do (dark, sticky photo beside the list)
   ========================================================================== */
.specs { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .specs { grid-template-columns: 5fr 6fr; gap: 96px; align-items: start; }
  .specs__media { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.service-list { border-top: 1px solid var(--lilac-soft); }
.service-item { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--lilac-soft); }
.service-item__lead { color: var(--white); font-weight: 500; }
.service-item__text { color: var(--lilac); }
@media (min-width: 1200px) {
  .service-item { grid-template-columns: 14rem 1fr; gap: 6px 40px; }
  .service-item .h3 { grid-row: span 2; }
}

/* ==========================================================================
   Home — featured projects
   ========================================================================== */
.projects { display: grid; gap: clamp(72px, 9vw, 136px); }
.project { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .project { grid-template-columns: repeat(12, 1fr); gap: 0 32px; }
  .project__media { grid-column: 1 / span 7; }
  .project__body { grid-column: 9 / span 4; }
  .project--flip .project__media { grid-column: 6 / span 7; grid-row: 1; }
  .project--flip .project__body { grid-column: 1 / span 4; grid-row: 1; }
  .project--feature .project__media { grid-column: 1 / span 8; }
  .project--feature .project__body { grid-column: 9 / span 4; }
}
.js .project__media.is-in:hover img { transform: scale(1.03); }
.project__head { display: grid; gap: 10px; margin-bottom: 20px; }
.project__text { color: var(--muted); margin-bottom: 28px; }
.projects__more { margin-top: clamp(56px, 7vw, 96px); }

.facts { display: grid; margin-bottom: 28px; }
.facts > div {
  display: grid; grid-template-columns: 9.5em 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.facts > div:first-child { border-top: 1px solid var(--line); }
.section--mist .facts > div { border-color: var(--line-strong); }
.facts dt { color: var(--muted); font-size: 0.9375rem; }
.facts dd { font-weight: 500; }

/* ==========================================================================
   Call to action band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; background: var(--plum); color: var(--white); }
.cta-band__mark {
  position: absolute; right: -6%; top: 50%; width: min(62vw, 820px);
  transform: translateY(-50%); color: rgba(255, 255, 255, 0.07); pointer-events: none;
}
.cta-band__inner { position: relative; display: grid; gap: 28px; max-width: 40rem; }
.cta-band .h2 { color: var(--white); }
.cta-band p { color: #ecd9e8; font-size: var(--fs-lead); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--aubergine-deep); color: var(--lilac); padding: 88px 0 36px; font-size: 0.9375rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-top { display: grid; gap: 48px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; } }
.footer-logo { display: block; width: 150px; color: var(--white); }
.footer-tagline { margin-top: 24px; max-width: 26em; }
.footer-col h2 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--white); margin-bottom: 16px; }
.footer-col li + li { margin-top: 8px; }
.footer-col address { font-style: normal; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--lilac-soft);
  font-size: 0.8125rem;
}

/* ==========================================================================
   Inner pages — intro
   ========================================================================== */
.page-intro { padding: calc(var(--header-h) + clamp(56px, 9vw, 128px)) 0 clamp(48px, 6vw, 88px); }
.page-intro__grid { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .page-intro__grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
}
.page-intro .lead { padding-bottom: 0.4em; }
.crumbs { display: flex; gap: 10px; margin-bottom: 28px; font-size: var(--fs-small); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--plum); }

/* ==========================================================================
   About
   ========================================================================== */
.story { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .story { grid-template-columns: 4fr 7fr; gap: 96px; }
  .story__aside { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
}
.story__aside .media { margin-top: 32px; }
.story__opening { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.4; color: var(--aubergine); margin-bottom: 1.2em; }

.pillars { display: grid; gap: 1px; background: var(--lilac-soft); }
@media (min-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { background: var(--aubergine); padding: clamp(32px, 4vw, 56px) clamp(0px, 4vw, 56px) clamp(32px, 4vw, 56px) 0; }
.pillar:nth-child(2) { padding-left: clamp(0px, 4vw, 56px); }
@media (max-width: 899px) { .pillar, .pillar:nth-child(2) { padding-inline: 0; } }
.pillar h3 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; color: var(--lilac); margin-bottom: 18px; }
.pillar p { font-family: var(--serif); font-size: clamp(1.5rem, 1.6vw + 1rem, 2.125rem); line-height: 1.3; }

.leaders { display: grid; gap: 72px; }
@media (min-width: 860px) { .leaders { grid-template-columns: 1fr 1fr; gap: 64px; } }
.leader__photo { width: min(100%, 380px); margin-bottom: 32px; }
.leader__photo img { object-position: 50% 22%; }
.leader__role { margin: 6px 0 18px; color: var(--plum); font-weight: 500; }
.leader__bio { color: var(--muted); max-width: 34em; }

/* ==========================================================================
   Projects — index of every project
   ========================================================================== */
.index { border-top: 1px solid var(--line-strong); }
.index__row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line-strong);
}
.index__name { grid-column: 1; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; color: var(--aubergine); }
.index__meta { grid-column: 1; color: var(--muted); }
.index__action { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
@media (min-width: 820px) {
  .index__row { grid-template-columns: 1.3fr 1fr 11rem; align-items: baseline; padding: 28px 0; }
  .index__meta { grid-column: 2; grid-row: 1; }
  .index__action { grid-column: 3; grid-row: 1; align-self: baseline; justify-self: end; }
}

/* ==========================================================================
   Projects — photo galleries (built by js/main.js from the assets folders)
   ========================================================================== */
.gallery { padding-block: clamp(72px, 9vw, 128px); scroll-margin-top: calc(var(--nav-h) + 8px); }
.gallery + .gallery { border-top: 1px solid var(--line); }
.gallery__head { margin-bottom: clamp(32px, 4vw, 56px); }
.gallery__head .facts { margin-bottom: 0; }
.gallery__lead { margin-bottom: 12px; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery__lead { margin-bottom: 16px; } .gallery__grid { gap: 16px; } }
.gallery__thumb:hover img, .js .gallery__lead.is-in:hover img { transform: scale(1.03); }
.gallery__more { margin-top: 32px; }
.gallery__note { margin-top: 20px; color: var(--muted); font-size: var(--fs-small); }

/* Photo viewer */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--aubergine-deep); color: var(--white);
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade-in 0.3s var(--ease-out); }
.lightbox::backdrop { background: rgba(26, 11, 44, 0.6); }
.lightbox__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); }
.lightbox__title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; }
.lightbox__caption { margin-top: 4px; color: var(--lilac); font-size: 0.9375rem; }
.lightbox__caption:empty { display: none; }
.lightbox__close {
  display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
  background: none; border: 0; padding: 6px 0; color: inherit; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500;
}
.lightbox__x { position: relative; width: 18px; height: 18px; }
.lightbox__x::before, .lightbox__x::after {
  content: ""; position: absolute; left: 0; right: 0; top: 8.25px; height: 1.5px; background: currentColor;
}
.lightbox__x::before { transform: rotate(45deg); }
.lightbox__x::after { transform: rotate(-45deg); }
.lightbox__stage { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); }
.lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: opacity 0.35s var(--ease-out);
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__foot { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 20px var(--gutter) 24px; }
.lightbox__count { min-width: 5.5em; text-align: center; font-variant-numeric: tabular-nums; color: var(--lilac); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-actions { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-actions { grid-template-columns: 1fr 1fr; gap: 24px; } }
.action {
  display: grid; align-content: end; gap: 10px;
  min-height: clamp(220px, 26vw, 320px); padding: clamp(28px, 4vw, 48px);
  background: var(--aubergine); color: var(--white); border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.35s var(--ease-out);
}
.action:hover { background: var(--aubergine-deep); }
.action--whatsapp { background: var(--plum); }
.action--whatsapp:hover { background: var(--plum-deep); }
.action__label { font-size: 0.9375rem; font-weight: 500; color: var(--lilac); }
.action--whatsapp .action__label, .action--whatsapp .action__note { color: #ecd9e8; }
.action__value { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.1; }
.action__note { color: var(--lilac); font-size: 0.9375rem; }
.action:focus-visible { outline-offset: 4px; }

.contact-details {
  display: grid; gap: 36px 40px; margin-top: clamp(56px, 7vw, 96px); padding-top: 40px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.detail h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--aubergine); margin-bottom: 8px; }
.detail address, .detail p { font-style: normal; color: var(--muted); }
.detail a { color: var(--ink); text-decoration: none; }
.detail a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }
.detail .link { margin-top: 12px; color: var(--plum); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] img { clip-path: none; transform: none; }
}
