:root {
  --bg: #f3efe9;
  --bg-soft: #efe6dc;
  --panel: #f7f3ee;
  --surface: #ffffff;
  --ink: #111111;
  --ink-strong: #1e1e1e;
  --muted: #4a403a;
  --muted-strong: #2f2a28;
  --line: rgba(17, 17, 17, 0.14);
  /* --gold is for dark grounds only. --gold-deep and --gold-strong are the
     shades that clear AA on this site's cream surfaces. */
  --gold: #d5b482;
  --gold-deep: #725729;
  --gold-strong: #5d4621;
  --gold-soft: rgba(213, 180, 130, 0.18);
  --dark: #0d1115;
  --dark-soft: #171d21;
  --shadow: rgba(17, 17, 17, 0.18);
}

body.light-mode {
  --bg: #f7f3ee;
  --bg-soft: #ece2d6;
  --panel: #fffdfa;
  --ink-strong: #171717;
  --muted: #403833;
  --muted-strong: #292523;
  --line: rgba(17, 17, 17, 0.18);
  --dark: #efe8df;
  --dark-soft: #e5dbcf;
  --shadow: rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--ink-strong);
  line-height: 1.7;
}

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

/* Several gallery controls set their own display, which outranks the UA rule
   for [hidden]. */
[hidden] {
  display: none !important;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1260px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-spacing {
  padding: 6rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.eyebrow.accent {
  color: var(--gold-deep);
}

.hero-kicker {
  margin-top: -0.4rem;
  margin-bottom: 0.6rem;
  /* Pale, not var(--gold): 12px type on a photograph needs the extra lift. */
  color: #ecd9b8;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3.8rem, 6vw, 8rem);
}

h2 {
  font-size: clamp(2.6rem, 4vw, 5rem);
}

h3 {
  font-size: clamp(2rem, 2.3vw, 2.6rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted-strong);
  font-size: 1.04rem;
}

/* 0.97, not lower: at the top of the page nothing sits behind the header, so a
   thinner alpha lets the cream body through and renders the bar grey. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 13, 16, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .site-header {
  background: rgba(247, 243, 238, 0.94);
  border-bottom-color: var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  height: 100px;
  width: auto;
  max-width: 140px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

body.light-mode .brand-logo {
  content: url("assets/EGP_logo_transparent_light-background.png");
}

.brand--footer .brand-logo,
body.light-mode .brand--footer .brand-logo {
  content: url("assets/EGP_logo_transparent_dark-background.png");
}

.brand-text {
  font-size: 0.74rem;
  letter-spacing: 0.1rem;
  color: #f8f2e9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 0.52rem 0;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

body.light-mode .site-nav a {
  color: var(--muted-strong);
}

body.light-mode .site-nav a:hover,
body.light-mode .site-nav a:focus-visible,
body.light-mode .site-nav a.active {
  color: var(--ink-strong);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: #ffffff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.pill-link {
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  padding: 0.7rem 1.15rem !important;
}

body.light-mode .pill-link {
  border-color: rgba(17,17,17,0.5);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.94);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

body.light-mode .theme-toggle {
  border-color: rgba(17,17,17,0.5);
  color: var(--muted-strong);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Follows the header, which is near-black in dark mode and cream in light. */
.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  padding: 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
}

body.light-mode .nav-toggle {
  border-color: rgba(17,17,17,0.55);
  background: rgba(17,17,17,0.04);
}

body.light-mode .nav-toggle span {
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: max(640px, calc(100svh - 84px));
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* A photo per theme. Light is the default, so that is the one most visitors
   meet first. */
.hero-home {
  background-image: url("assets/portfolio/dadub/after/DA%20DUB%20MAIN%20(1)%20-%20AFTER%20-%20Portfolio_.jpg");
  background-position: center 55%;
}

body.light-mode .hero-home {
  background-image: url("assets/site/HOME%20(Landing)%20-%20We%20See%20What%20a%20Property%20Can%20Become.jpg");
  background-position: center;
}

/* Heavy across the left two thirds where the copy sits, clearing on the right
   so the photograph still reads. Sized against the brightest photo behind it. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 15, 18, 0.86) 0%,
    rgba(12, 15, 18, 0.78) 40%,
    rgba(12, 15, 18, 0.62) 62%,
    rgba(12, 15, 18, 0.16) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 5rem 0 4.5rem;
  color: white;
}

.hero-copy-block {
  max-width: 760px;
}

.hero-inner h1 {
  max-width: 820px;
  color: white;
  letter-spacing: -0.05em;
}

.subhead {
  max-width: 650px;
  font-size: clamp(1.15rem, 1.6vw, 1.7rem);
  color: rgba(255,255,255,0.82);
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.9rem 1.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: #141414;
  box-shadow: 0 14px 30px rgba(213, 180, 130, 0.26);
}

.button.secondary {
  border-color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.02);
  color: white;
}

.button.dark {
  background: var(--ink);
  color: #f7f3ef;
  border-color: var(--ink);
}

.hero-side-card {
  max-width: 300px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  color: rgba(255,255,255,0.86);
  font-size: 0.88rem;
  line-height: 1.6;
  backdrop-filter: blur(6px);
}

.intro {
  background: var(--bg-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
}

.intro-index,
.section-index {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--gold-deep);
  line-height: 1;
  font-weight: 700;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.before-after {
  position: relative;
  display: block;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.1);
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: #e7dfd4;
}

.compare-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.compare-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-image.before-image {
  z-index: 1;
}

.compare-image.after-image {
  z-index: 2;
  clip-path: inset(0 0 0 60%);
}

.compare-image span {
  position: absolute;
  left: 0.9rem;
  top: 0.8rem;
  z-index: 3;
  background: rgba(17,17,17,0.7);
  color: white;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 60%;
  width: 2px;
  background: rgba(255,255,255,0.9);
  z-index: 4;
  box-shadow: 0 0 0 1px rgba(17,17,17,0.08);
}

.compare-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  opacity: 0;
  cursor: ew-resize;
}

.dark-panel {
  background: linear-gradient(180deg, #0e1115, #12191f);
  color: white;
}

body.light-mode .dark-panel {
  background: linear-gradient(180deg, #eee6dc, #e4d8ca);
}

body.light-mode .dark-panel h2,
body.light-mode .dark-panel h3,
body.light-mode .dark-panel .project-kicker,
body.light-mode .dark-panel .text-link {
  color: var(--ink-strong);
}

body.light-mode .dark-panel p {
  color: var(--muted-strong);
}

body.light-mode .dark-panel .text-link {
  color: var(--gold-strong);
}

.dark-panel h2,
.dark-panel h3,
.dark-panel .text-link,
.dark-panel .project-kicker {
  color: #f6f2ec;
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.8);
}

.dark-panel .text-link {
  color: var(--gold);
}

/* The accent golds are tuned for cream; a dark panel needs the bright one. */
.dark-panel .eyebrow.accent {
  color: var(--gold);
}

body.light-mode .dark-panel h2,
body.light-mode .dark-panel h3,
body.light-mode .dark-panel .project-kicker,
body.light-mode .dark-panel .text-link {
  color: var(--ink-strong);
}

body.light-mode .dark-panel > .container > .section-header h2,
body.light-mode .dark-panel > .container > .section-header .text-link {
  color: var(--ink-strong);
}

body.light-mode .dark-panel > .container > .section-header .text-link {
  color: var(--gold-strong);
}

body.light-mode .dark-panel .project-card__body h3,
body.light-mode .dark-panel .project-card__body .project-kicker,
body.light-mode .dark-panel .project-card__body p {
  color: #ffffff;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title-wrap {
  display: flex;
  align-items: end;
  gap: 1rem;
}

.text-link {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  border-radius: 26px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
}

.project-card--lg {
  min-height: 520px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-slider {
  position: relative;
  z-index: 1;
  min-height: 100%;
  overflow: hidden;
  background: #20272b;
}

.property-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.property-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.property-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-control {
  position: absolute;
  top: 1rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(10, 13, 16, 0.48);
  color: white;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.slider-control:hover,
.slider-control:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

.slider-control--prev { left: 1rem; }
.slider-control--next { right: 1rem; }

.slider-dots {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.slider-state-controls {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(10, 13, 16, 0.58);
}

.slider-state-button {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.42rem 0.7rem;
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.slider-state-button:last-child { border-right: 0; }

.slider-state-button:hover,
.slider-state-button:focus-visible,
.slider-state-button.is-active {
  background: var(--gold);
  color: var(--ink);
}

.slider-dot {
  width: 0.48rem;
  height: 0.48rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slider-dot.is-active { background: var(--gold); }

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.12), rgba(10, 10, 10, 0.76));
}

.project-card__body {
  position: absolute;
  left: 1.8rem;
  right: 1.8rem;
  bottom: 1.5rem;
  z-index: 1;
}

.project-card__body h3 {
  margin: 0.25rem 0 0.35rem;
  color: white;
}

.project-card__body p {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  color: rgba(255,255,255,0.76);
}

.project-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.process {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 18px 40px rgba(17, 17, 17, 0.035), inset 0 -18px 40px rgba(17, 17, 17, 0.035);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.process-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: stretch;
}

.process-layout--testimonials {
  grid-template-columns: minmax(0, 1fr);
}

.process-layout .process-steps {
  align-content: stretch;
}

.approach-project {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--dark);
  box-shadow: 0 20px 44px rgba(17,17,17,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.approach-project:hover,
.approach-project:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(17,17,17,0.2);
}

.testimonials-card {
  cursor: default;
}

body.light-mode .testimonials-card {
  background: #0d1115;
}

.testimonials-video-placeholder {
  display: grid;
  flex: 1;
  min-height: 360px;
  place-items: center;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(10, 13, 16, 0.95), rgba(41, 48, 50, 0.92)),
    url("assets/site/THE%20EGP%20STANDARD%20%20Every%20decision%20should%20move%20the%20property%20forward_.jpg") center / cover;
  color: rgba(255,255,255,0.68);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.testimonials-video-placeholder[hidden] {
  display: none;
}

.testimonials-play {
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  place-items: center;
  padding-left: 0.18rem;
  border: 1px solid rgba(213, 180, 130, 0.72);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1rem;
}

.testimonials-intro {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.testimonials-gallery {
  display: grid;
  gap: 1.25rem;
}

/* Stays dark in both themes: var(--dark) flips to cream in light mode, and the
   caption is set in white and gold. */
.testimonials-stage {
  border-radius: 22px;
  overflow: hidden;
  background: #0d1115;
  box-shadow: 0 20px 44px rgba(17,17,17,0.12);
}

.testimonials-stage .testimonials-video-placeholder {
  min-height: 320px;
}

.testimonials-caption {
  padding: 1.25rem 1.5rem;
}

.testimonials-name {
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.testimonials-credential {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.testimonials-property-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.testimonials-property-link:hover,
.testimonials-property-link:focus-visible {
  color: var(--gold);
}

.testimonials-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.testimonials-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  padding: 0.5rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.testimonials-tab:hover,
.testimonials-tab:focus-visible,
.testimonials-tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.approach-project-image {
  min-height: 260px;
  border-radius: 0;
  box-shadow: none;
}

.approach-project-copy {
  flex: 1;
  padding: 1.5rem;
  color: white;
}

.approach-project-copy h2 {
  margin-bottom: 0.3rem;
  color: white;
}

.approach-project-copy p:not(.eyebrow) {
  color: rgba(255,255,255,0.76);
}

.approach-project-copy > span {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.approach-project-copy > span span {
  margin-left: 0.4rem;
  font-size: 1rem;
}

.step-card {
  background: rgba(255,255,255,0.48);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(182, 145, 96, 0.8);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  color: var(--gold-deep);
  font-size: 1.5rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.capital {
  padding: 6rem 0;
}

.capital-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.capital-copy {
  max-width: 620px;
}

.capital-copy h2 {
  color: white;
}

.capital-copy p {
  color: rgba(255,255,255,0.75);
  max-width: 660px;
}

.capital-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.point {
  min-height: 110px;
  padding: 1.3rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255,255,255,0.02);
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

body.light-mode .capital-copy h2 {
  color: var(--ink-strong);
}

body.light-mode .capital-copy p {
  color: var(--muted-strong);
}

body.light-mode .capital.dark-panel .capital-points .point,
body.light-mode .capital.dark-panel .capital-points .point span {
  border-color: rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.24);
  color: var(--ink-strong);
}

.founder-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 2.5rem;
  align-items: center;
}

.founder-portrait img {
  width: 100%;
  min-height: 496px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 22px 45px rgba(17,17,17,0.08);
}

.founder-portrait {
  border-radius: 24px;
  background: linear-gradient(135deg, #20282c, #947b59);
  overflow: hidden;
}

.work-visual {
  background: var(--bg-soft);
}

.work-visual-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.work-visual-copy {
  max-width: 540px;
}

.placeholder-image {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(13, 17, 21, 0.5), rgba(13, 17, 21, 0.08)),
    url("assets/placeholder.png") center / cover,
    linear-gradient(135deg, #303940, #8c7656);
  box-shadow: 0 22px 45px rgba(17,17,17,0.14);
}

.opportunity-placeholder {
  min-height: 190px;
  margin: 1.5rem 0;
  border-radius: 16px;
}

/* 16:10 sits between the two source photos (1.51:1 and 1.63:1), so cover barely
   crops either. A fixed 220px height made the box about 2.7:1 and cut away
   close to half of each picture. */
.opportunity-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 1.5rem 0;
  border-radius: 16px;
}

.consultation-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.consultation-strip p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.consultation-strip .button {
  flex-shrink: 0;
}

.testimonials-quotes .eyebrow {
  margin-bottom: 2.25rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.pull-quote {
  margin: 0;
}

.pull-quote blockquote {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-strong);
}

.pull-quote--pending blockquote {
  border-left-color: var(--line);
  color: var(--muted);
}

.quote-grid--pending {
  row-gap: 2.25rem;
}

.pull-quote figcaption {
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quote-name {
  font-weight: 700;
  color: var(--ink-strong);
}

.quote-role {
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.quote-property-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--ink-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quote-property-link:hover,
.quote-property-link:focus-visible {
  color: var(--gold-strong);
}

.next-chapter {
  text-align: center;
}

.next-chapter p {
  max-width: 480px;
  margin: 0 auto;
}

/* Keeps its dark-mode treatment in light mode — black, white, gold — so the
   section stands apart from the page. */
body.light-mode .next-chapter.dark-panel {
  background: linear-gradient(180deg, #0e1115, #12191f);
  color: #ffffff;
}

body.light-mode .next-chapter.dark-panel h2,
body.light-mode .next-chapter.dark-panel h3 {
  color: #f6f2ec;
}

body.light-mode .next-chapter.dark-panel p {
  color: rgba(255, 255, 255, 0.8);
}

body.light-mode .next-chapter.dark-panel .eyebrow.accent {
  color: var(--gold);
}

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

  .consultation-strip {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

.placeholder-image::after {
  content: "EGP / IMAGE PLACEHOLDER";
  position: absolute;
  inset: auto 1.4rem 1.2rem;
  color: rgba(255,255,255,0.84);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14rem;
}

.founder-copy-wrap h2,
.founder-copy-wrap h3 {
  color: var(--ink);
}

/* Taller than the copy needs, so more of the photograph is in frame. The svh
   term lets it grow with the viewport without ever filling it — that is the
   home hero's job, and these should not compete with it. */
.page-hero {
  display: grid;
  align-items: center;
  min-height: max(620px, 72svh);
  padding: 4rem 0;
  background-position: center;
  background-size: cover;
}

.page-hero--portfolio {
  background-image: linear-gradient(100deg, rgba(10, 13, 16, 0.78) 0%, rgba(10, 13, 16, 0.7) 30%, rgba(10, 13, 16, 0.7) 70%, rgba(10, 13, 16, 0.78) 100%),
    url("assets/site/PORTFOLIO%20-%20Properties%20Transformed.%20Properties%20Reimagined_.jpg");
}

.page-hero--approach {
  background-image: linear-gradient(100deg, rgba(10, 13, 16, 0.78) 0%, rgba(10, 13, 16, 0.7) 30%, rgba(10, 13, 16, 0.7) 70%, rgba(10, 13, 16, 0.76) 100%),
    url("assets/site/OUR%20APPROACH%20%20Built%20on%20vision.%20Defined%20by%20execution_.jpg");
  background-position: center 42%;
}

/* A shade warmer than the blue-black the other heroes use, so the scrim sits
   with the golds rather than cooling the photograph. Red carries three times
   the luminance of blue, so warming lifts the scrim; the alphas are nudged up
   to hold the same contrast. */
.page-hero--work {
  background-image: linear-gradient(100deg, rgba(18, 16, 13, 0.79) 0%, rgba(18, 16, 13, 0.71) 30%, rgba(18, 16, 13, 0.71) 70%, rgba(18, 16, 13, 0.77) 100%),
    url("assets/site/WORK%20WITH%20EGP%20%20Start%20a%20conversation_.jpg");
  background-position: center 45%;
}

/* Phones get the _sm rendering: the 1920px one is four times the pixels the
   screen can show. */
@media (max-width: 720px) {
  /* The light-mode rule has to be restated here or the full-size one above
     still wins on specificity. */
  .hero-home {
    background-image: url("assets/_sm/portfolio/dadub/after/DA%20DUB%20MAIN%20(1)%20-%20AFTER%20-%20Portfolio_.jpg");
  }

  body.light-mode .hero-home {
    background-image: url("assets/_sm/site/HOME%20(Landing)%20-%20We%20See%20What%20a%20Property%20Can%20Become.jpg");
  }

  .page-hero--portfolio {
    background-image: linear-gradient(100deg, rgba(10, 13, 16, 0.78) 0%, rgba(10, 13, 16, 0.7) 30%, rgba(10, 13, 16, 0.7) 70%, rgba(10, 13, 16, 0.78) 100%),
      url("assets/_sm/site/PORTFOLIO%20-%20Properties%20Transformed.%20Properties%20Reimagined_.jpg");
  }

  .page-hero--approach {
    background-image: linear-gradient(100deg, rgba(10, 13, 16, 0.78) 0%, rgba(10, 13, 16, 0.7) 30%, rgba(10, 13, 16, 0.7) 70%, rgba(10, 13, 16, 0.76) 100%),
      url("assets/_sm/site/OUR%20APPROACH%20%20Built%20on%20vision.%20Defined%20by%20execution_.jpg");
  }

  .page-hero--work {
    background-image: linear-gradient(100deg, rgba(18, 16, 13, 0.79) 0%, rgba(18, 16, 13, 0.71) 30%, rgba(18, 16, 13, 0.71) 70%, rgba(18, 16, 13, 0.77) 100%),
      url("assets/_sm/site/WORK%20WITH%20EGP%20%20Start%20a%20conversation_.jpg");
  }
}

.hero-copy h1,
.hero-copy p {
  color: #ffffff;
}

.portfolio-stack {
  display: grid;
  gap: 4rem;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  scroll-margin-top: 100px;
}

.portfolio-item--feature {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}

.portfolio-media img {
  width: 100%;
  min-height: 420px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 22px 54px rgba(17,17,17,0.08);
}

.portfolio-media .property-slider {
  min-height: 420px;
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(17,17,17,0.08);
}

.property-slide-track {
  position: absolute;
  inset: 0;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.gallery-toolbar .slider-state-controls {
  position: static;
  background: transparent;
  border: 1px solid var(--line);
}

.gallery-toolbar .slider-state-button {
  color: var(--muted);
}

.gallery-toolbar .slider-state-button:hover,
.gallery-toolbar .slider-state-button:focus-visible,
.gallery-toolbar .slider-state-button.is-active {
  background: var(--gold);
  color: var(--ink);
}

.view-property-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.view-property-btn:hover,
.view-property-btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* Property lightbox */
.property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1.25rem;
  overflow-y: auto;
}

.property-lightbox.is-open {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  background: var(--surface);
  border-radius: 24px;
  padding: 2.25rem clamp(1.25rem, 4vw, 2.75rem) 2.5rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox-eyebrow {
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.lightbox-title {
  margin-bottom: 0;
}

.lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-right: 3rem;
  margin-bottom: 1.25rem;
}

.lightbox-header .slider-state-controls {
  position: static;
  border: 1px solid var(--line);
  background: transparent;
  flex-shrink: 0;
}

.lightbox-header .slider-state-button {
  color: var(--muted);
}

.lightbox-header .slider-state-button:hover,
.lightbox-header .slider-state-button:focus-visible,
.lightbox-header .slider-state-button.is-active {
  background: var(--gold);
  color: var(--ink);
}

.lightbox-viewer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* No fixed shape: the photo sizes to its own aspect ratio, so nothing is
   cropped or letterboxed. min-height stops the modal resizing as you step. */
.lightbox-stage {
  flex: 1;
  min-width: 0;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.lightbox-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 16px;
  background: transparent;
  display: block;
  /* The viewer owns pinch and drag; the browser would move the overlay. */
  touch-action: none;
  cursor: zoom-in;
  transition: transform 0.22s ease;
}

.lightbox-stage.is-zoomed img {
  cursor: grab;
  border-radius: 0;
}

.lightbox-stage.is-zoomed:active img {
  cursor: grabbing;
}

/* A drag must track the finger exactly, so the tap-to-zoom easing is dropped
   for its duration. */
.lightbox-stage.is-panning img {
  transition: none;
}

.lightbox-nav {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
}

.lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  margin-top: 0.75rem;
}

.lightbox-counter {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.lightbox-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.3rem;
}

.lightbox-zoom-btn {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-zoom-btn:hover:not(:disabled),
.lightbox-zoom-btn:focus-visible:not(:disabled) {
  background: var(--gold);
}

.lightbox-zoom-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.lightbox-zoom-level {
  min-width: 3.1rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lightbox-hint {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.05rem;
  color: var(--muted);
}

.lightbox-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  max-height: 6.5rem;
  overflow-y: auto;
  justify-content: center;
}

.lightbox-thumb {
  width: 3.6rem;
  height: 3.6rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb:hover,
.lightbox-thumb:focus-visible {
  opacity: 0.9;
}

.lightbox-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
}

.portfolio-number {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.portfolio-name {
  font-size: clamp(3.2rem, 5.2vw, 6rem);
}

.portfolio-type {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}

.portfolio-tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-deep);
  margin: -0.4rem 0 0.9rem;
}

.portfolio-badge {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.portfolio-close {
  text-align: center;
}

.portfolio-close p {
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

.portfolio-copy ul {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted-strong);
}

.story-grid,
.company-grid,
.partnership-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.company-feature img {
  width: 100%;
  min-height: 500px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 22px 45px rgba(17,17,17,0.08);
}

.opportunity-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.52);
  box-shadow: 0 18px 40px rgba(17,17,17,0.04);
}

.approach-feature {
  background: var(--bg-soft);
}

.approach-feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.approach-feature-image {
  min-height: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(17,17,17,0.14);
}

.approach-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.approach-feature-copy {
  max-width: 580px;
}

.approach-pillars {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.approach-pillars div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.approach-pillars div strong {
  min-width: 2rem;
  color: var(--gold-strong);
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
}

.approach-pillars div span {
  color: var(--muted-strong);
  font-weight: 600;
}

/* The EGP standard: four steps as cards, each led by a gold numeral bubble. */
.approach-pillars--4 {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.approach-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.approach-pillar:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.09);
}

.approach-pillar-step {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid rgba(213, 180, 130, 0.6);
  color: var(--gold-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03rem;
  line-height: 1;
}

.approach-pillar-text {
  display: grid;
  gap: 0.25rem;
}

.approach-pillar-text strong {
  color: var(--ink-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.approach-pillar-text span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .approach-pillars--4 {
    grid-template-columns: 1fr;
  }
}

.role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  color: var(--gold-deep);
  font-weight: 700;
}

.founder-lede {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: var(--ink-strong);
  margin: 0.9rem 0 0.6rem;
}

blockquote {
  margin: 1.8rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
}

.contact-form {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 22px 52px rgba(17,17,17,0.04);
}

.form-heading {
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.form-heading h3 {
  font-size: 2.35rem;
}

.form-heading p:last-child {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 1rem;
}

label span {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 600;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
  padding: 0.9rem 1rem;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(182,145,96,0.28);
  border-color: var(--gold-strong);
}

.form-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  color: var(--gold-strong);
  font-weight: 600;
}

/* A failed send has to read as a failure, not as another gold confirmation. */
.form-status.is-error {
  color: #b4402f;
}

/* Reserves the widget's height so the button does not jump when it appears. */
.form-turnstile {
  min-height: 65px;
  margin: 1.25rem 0 0.25rem;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Off-screen, not display:none — a bot reading the DOM should still find it. */
.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button span {
  margin-left: 0.75rem;
  font-size: 1.1rem;
}

.site-footer {
  background: rgba(17,17,17,0.94);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand .brand-text,
.footer-meta p,
.footer-links a {
  color: rgba(255,255,255,0.8);
}

.footer-brand .brand-logo {
  height: 76px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-tagline {
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  max-width: 260px;
}

.footer-copyright {
  /* 0.45 fell just under AA against the footer at this size. */
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
}

.footer-heading {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.footer-meta {
  display: grid;
  gap: 0.25rem;
}

.footer-meta p {
  margin-bottom: 0.3rem;
}

.footer-meta a,
.footer-meta span {
  color: var(--gold);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: #ffffff;
}

/* The Founder — the full story opens in place so the section stays short. */
.story-expand {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.story-expand > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  list-style: none;
  cursor: pointer;
  color: var(--gold-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.story-expand > summary::-webkit-details-marker {
  display: none;
}

.story-expand > summary:hover,
.story-expand > summary:focus-visible {
  color: var(--ink-strong);
}

.story-expand-label[data-label-open] {
  display: none;
}

.story-expand[open] .story-expand-label[data-label-closed] {
  display: none;
}

.story-expand[open] .story-expand-label[data-label-open] {
  display: inline;
}

.story-expand-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(213, 180, 130, 0.6);
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-strong);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.story-expand[open] .story-expand-icon {
  transform: rotate(45deg);
}

.story-expand-body {
  padding-bottom: 0.4rem;
}

.story-expand-body p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.story-expand-body .story-closing {
  margin: 1.6rem 0 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink-strong);
}

/* Testimonials — Karina's clip is a vertical phone recording, so the player is
   capped and centred on the dark stage rather than stretched across it. */
.testimonials-video {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 72vh;
  margin: 0 auto;
  background: #000;
}

.testimonials-video[hidden] {
  display: none;
}

.testimonials-placeholder-note {
  margin-top: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.16rem;
}

/* Work With EGP — "Built on Trust" carries the section instead of an eyebrow. */
.trust-heading {
  max-width: 760px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.trust-heading .eyebrow {
  margin-bottom: 0.9rem;
}

.trust-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 5.6rem);
  line-height: 1;
}

@media (max-width: 980px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
  }

  .intro-grid,
  .project-grid,
  .capital-grid,
  .founder-layout,
  .work-visual-grid,
  .approach-feature-grid,
  .process-layout,
  .portfolio-item,
  .story-grid,
  .company-grid,
  .partnership-grid,
  .contact-grid,
  .process-grid,
  .before-after {
    grid-template-columns: 1fr;
  }

  /* Translucent over a dark base, so the panel reads as a surface rather than
     washing out against the hero. */
  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(7, 9, 11, 0.94);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(17,17,17,0.35);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  body.light-mode .site-nav {
    background: rgba(7, 9, 11, 0.96);
    border-color: rgba(255,255,255,0.14);
  }

  body.light-mode .site-nav a {
    color: rgba(255,255,255,0.94);
  }

  /* The panel stays dark in light mode, so everything on it must be light — the
     desktop rules would paint the current page and theme button in ink. */
  body.light-mode .site-nav a:hover,
  body.light-mode .site-nav a:focus-visible,
  body.light-mode .site-nav a.active {
    color: #ffffff;
  }

  body.light-mode .site-nav .theme-toggle {
    border-color: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.94);
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section-spacing {
    padding: 4rem 0;
  }

  .hero {
    min-height: 620px;
  }

  .hero-home {
    background-position: center 75%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  /* No phone-only header override here on purpose: a thinner alpha renders the
     bar grey at the top of the page. The base rule covers both widths. */

  .brand-text {
    display: none;
  }

  .gallery-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .view-property-btn {
    text-align: center;
  }

  /* Full screen on a phone: the photo takes whatever the header, counter and
     thumb strip leave. */
  .property-lightbox {
    padding: 0;
    align-items: stretch;
    overflow: hidden;
  }

  .lightbox-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: 1rem 0.85rem 0.9rem;
  }

  .lightbox-header {
    padding-right: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .lightbox-viewer {
    flex: 1;
    min-height: 0;
    gap: 0;
  }

  /* Sitting either side of the photo, the arrows took a quarter of the screen
     width away from it. Overlaid on the edges they cost nothing. */
  .lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.88);
  }

  .lightbox-nav--prev {
    left: 0.15rem;
  }

  .lightbox-nav--next {
    right: 0.15rem;
  }

  .lightbox-stage {
    min-height: 0;
    height: 100%;
  }

  .lightbox-stage img {
    max-height: 100%;
  }

  /* One scrolling row rather than six wrapped ones, so the strip cannot eat
     the height the photo needs. */
  .lightbox-thumbs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 0.7rem;
  }

  .lightbox-nav {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.15rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
