/* EVANOUR — Fifth pass: art direction & composition */

:root {
  --hero-bg: #0c1412;
  --hero-bg-deep: #080f0d;
  --band-bg: #0f1a17;
  --band-border: rgba(196, 165, 116, 0.22);
  --ink-on-light: #0a1612;
  --ink-soft-on-light: rgba(10, 22, 18, 0.76);
}

/* ═══ HERO — full-bleed cinematic stage ═══ */
.hero--stage {
  position: relative;
  min-height: min(100vh, 920px);
  min-height: min(100dvh, 920px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding:
    calc(var(--header-h) + var(--admin-bar-h, 0px) + clamp(2.5rem, 6vw, 4.5rem))
    clamp(1.25rem, 4vw, 3.5rem)
    clamp(2rem, 5vw, 3.25rem);
  background: #050908;
  overflow: hidden;
  color: var(--color-cream);
}

.hero-stage__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-stage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.hero-stage__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 8, 0.78) 0%, rgba(5, 9, 8, 0.42) 42%, rgba(5, 9, 8, 0.18) 68%, rgba(5, 9, 8, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 9, 8, 0.55) 0%, transparent 28%, transparent 58%, rgba(5, 9, 8, 0.82) 100%);
  pointer-events: none;
}

.hero-stage__rail {
  position: absolute;
  top: calc(var(--header-h) + var(--admin-bar-h, 0px) + 1.5rem);
  bottom: clamp(2rem, 5vw, 3.25rem);
  width: 1px;
  z-index: 2;
  background-image: radial-gradient(circle, rgba(245, 240, 232, 0.35) 1px, transparent 1.5px);
  background-size: 1px 14px;
  background-repeat: repeat-y;
  background-position: center top;
  opacity: 0.55;
  pointer-events: none;
}

.hero-stage__rail--left { left: clamp(0.65rem, 1.6vw, 1.25rem); }
.hero-stage__rail--right { right: clamp(0.65rem, 1.6vw, 1.25rem); }

.hero-stage__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1360px);
  margin-inline: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-stage__content {
  max-width: min(36rem, 100%);
}

.hero-stage__eyebrow {
  margin: 0 0 1.15rem;
  font-family: var(--font-body);
  font-size: clamp(0.58rem, 1.3vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
}

.hero-stage__title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 6.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-cream);
}

.hero-stage__title span {
  display: block;
}

.hero-stage__quote {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  line-height: 1.45;
  color: var(--color-gold-soft);
}

.hero-stage__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero--stage .btn--hero {
  border-color: rgba(196, 165, 116, 0.55);
  color: var(--color-cream);
  background: transparent;
  letter-spacing: 0.18em;
}

.hero--stage .btn--hero:hover {
  background: rgba(196, 165, 116, 0.16);
  border-color: var(--color-gold);
  color: var(--color-cream);
}

body[data-page="home"]:not(.intro-complete) .hero--stage .hero-stage__content,
body[data-page="home"]:not(.intro-complete) .hero--stage .hero-stage__media img {
  opacity: 0;
}

body[data-page="home"].intro-complete .hero--stage .hero-stage__media img {
  opacity: 1;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-page="home"].intro-complete .hero--stage .hero-stage__content {
  opacity: 1;
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1) 0.12s;
}

@media (max-width: 720px) {
  .hero--stage {
    min-height: min(100svh, 860px);
    padding-inline: 1.15rem;
  }

  .hero-stage__rail {
    display: none;
  }

  .hero-stage__title {
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"].intro-complete .hero--stage .hero-stage__media img,
  body[data-page="home"].intro-complete .hero--stage .hero-stage__content {
    transition: none;
  }
}

/* Legacy split hero (unused on home; keep minimal for safety) */
.hero--split {
  position: relative;
  min-height: auto;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(2.5rem, 6vw, 4rem);
  background: var(--hero-bg);
}

.display span.hero__title-end,
.hero__title-end {
  white-space: nowrap;
}

/* ═══ SELECTED WORKS — alternating editorial ═══ */
.works-alternate {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.work-feature--flip {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
}

.work-feature--flip .work-feature__media {
  order: -1;
}

.work-feature__num {
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 0.65rem;
}

.work-feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.work-feature__meta {
  font-size: clamp(0.58rem, 1.3vw, 0.65rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft-on-light);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.work-feature__meta span {
  display: block;
}

.work-feature__desc {
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.65;
  color: var(--ink-soft-on-light);
  margin: 0 0 1rem;
  max-width: 34em;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), max-height 0.45s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .work-feature__desc {
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
  }

  .work-feature:hover .work-feature__desc,
  .work-feature:focus-within .work-feature__desc {
    opacity: 1;
    transform: translateY(0);
    max-height: 8rem;
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-feature__desc {
    opacity: 1 !important;
    transform: none !important;
    max-height: none !important;
    margin-bottom: 1rem !important;
    overflow: visible !important;
  }
}

.work-feature__cta {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-green);
  transition: color 0.25s;
}

.work-feature:hover .work-feature__cta {
  color: var(--color-gold);
}

.work-feature__media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: clamp(200px, 26vw, 330px);
  overflow: hidden;
  border-radius: var(--radius, 14px);
}

.work-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.7s var(--ease);
  border-radius: inherit;
}

.work-feature:hover .work-feature__media img,
.work-feature:focus-within .work-feature__media img {
  transform: scale(1.025);
}

@media (max-width: 767px) {
  .work-feature,
  .work-feature--flip {
    grid-template-columns: 1fr;
  }

  .work-feature--flip .work-feature__media {
    order: 0;
  }

  .work-feature__media {
    max-height: min(34vh, 240px);
    aspect-ratio: 16 / 9;
  }
}

/* ═══ SECTION MEDIA — campaign stills behind text sections ═══ */
.section--with-media {
  position: relative;
  overflow: hidden;
}

.section--with-media > .container,
.section--with-media > .foundation__grid-bg,
.section--with-media > .section-grid {
  position: relative;
  z-index: 1;
}

.section-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.section-media__shade {
  position: absolute;
  inset: 0;
}

.section-media__shade--charcoal {
  background: linear-gradient(
    180deg,
    rgba(6, 20, 17, 0.72) 0%,
    rgba(6, 20, 17, 0.88) 55%,
    rgba(6, 20, 17, 0.94) 100%
  );
}

.section-media__shade--stone {
  background: linear-gradient(
    180deg,
    rgba(245, 240, 232, 0.82) 0%,
    rgba(245, 240, 232, 0.9) 50%,
    rgba(245, 240, 232, 0.94) 100%
  );
}

.section-media__shade--green {
  background: linear-gradient(
    180deg,
    rgba(20, 53, 44, 0.78) 0%,
    rgba(20, 53, 44, 0.9) 55%,
    rgba(20, 53, 44, 0.94) 100%
  );
}

/* ═══ CORE VALUES — architectural foundation columns ═══ */
.foundation {
  position: relative;
  overflow: hidden;
}

.foundation__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(196, 165, 116, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 165, 116, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.foundation-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 3.25rem);
  border-top: 1px solid rgba(196, 165, 116, 0.35);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
}

.foundation-col {
  position: relative;
  min-width: 0;
  padding: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.foundation-col.is-in {
  opacity: 1;
  transform: none;
}

.foundation-col__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: rgba(11, 31, 26, 0.12);
  margin: 0 0 0.85rem;
}

.foundation-col__rule {
  display: block;
  width: 1px;
  height: 0;
  margin: 0 0 1rem;
  background: var(--color-gold, #c4a574);
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.foundation-col.is-in .foundation-col__rule {
  height: clamp(2.5rem, 6vw, 4rem);
}

.foundation-col__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-light, #0a1612);
}

.foundation-col__body {
  margin: 0.75rem 0 0;
  max-width: 18rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.foundation-col__foot {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.25rem;
  height: 1px;
  background: rgba(196, 165, 116, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.foundation-col.is-in .foundation-col__foot {
  transform: scaleX(1);
}

@media (min-width: 900px) {
  .foundation-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .foundation-col {
    padding: 0 clamp(1rem, 2vw, 1.75rem) 1.5rem;
    border-right: 1px solid rgba(196, 165, 116, 0.22);
  }

  .foundation-col:first-child {
    padding-left: 0;
  }

  .foundation-col:last-child {
  border-right: none;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foundation-col,
  .foundation-col__rule,
  .foundation-col__foot {
    transition: none !important;
  }

  .foundation-col {
    opacity: 1 !important;
    transform: none !important;
  }

  .foundation-col__rule {
    height: clamp(2.5rem, 6vw, 4rem) !important;
  }

  .foundation-col__foot {
    transform: scaleX(1) !important;
  }
}

/* ═══ MISSION — vertical editorial progression ═══ */
.mission-flow .display {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.mission-flow__track {
  position: relative;
  max-width: 42rem;
  margin: 0;
  padding-left: clamp(2.5rem, 6vw, 3.5rem);
}

.mission-flow__rail {
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
}

.mission-flow__rail-line {
  position: absolute;
  inset: 0;
  background: rgba(196, 165, 116, 0.22);
}

.mission-flow__rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-gold, #c4a574);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}

.mission-flow__stage {
  position: relative;
  padding: 0 0 clamp(2rem, 5vw, 3rem);
  opacity: 0.38;
  transform: translateY(10px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.mission-flow__stage:last-child {
  padding-bottom: 0;
}

.mission-flow__stage.is-active {
  opacity: 1;
  transform: none;
}

.mission-flow__stage::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(2.5rem, 6vw, 3.5rem) + 0.3rem);
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--color-gold, #c4a574);
  background: var(--color-cream, #f5f0e8);
  border-radius: 50%;
  box-sizing: border-box;
}

.mission-flow__stage.is-active::before {
  background: var(--color-gold, #c4a574);
}

.mission-flow__num {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(11, 31, 26, 0.14);
}

.mission-flow__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196, 165, 116, 0.95);
}

.mission-flow__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: var(--ink-on-light, #0a1612);
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .mission-flow__rail-fill {
    transform: scaleY(1) !important;
  }

  .mission-flow__stage {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══ VISION — bridge toward future ═══ */
.vision-bridge {
  position: relative;
  overflow: hidden;
}

.vision-bridge__frame {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.5rem);
  top: clamp(4rem, 10vw, 6rem);
  bottom: clamp(2rem, 5vw, 3.5rem);
  width: 1px;
  pointer-events: none;
  opacity: 0.7;
}

.vision-bridge__axis {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(196, 165, 116, 0.05),
    rgba(196, 165, 116, 0.45) 18%,
    rgba(196, 165, 116, 0.45) 82%,
    rgba(196, 165, 116, 0.05)
  );
}

.vision-bridge__tick {
  position: absolute;
  left: 0;
  width: 12px;
  height: 1px;
  background: rgba(196, 165, 116, 0.55);
}

.vision-bridge__tick--top { top: 0; }
.vision-bridge__tick--mid { top: 50%; }
.vision-bridge__tick--bot { bottom: 0; }

.vision-bridge__statement {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  max-width: 34rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink-soft-on-light, rgba(10, 22, 18, 0.76));
}

.vision-bridge__blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid rgba(196, 165, 116, 0.28);
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
}

.vision-bridge__block {
  min-width: 0;
  padding-top: 0.35rem;
}

.vision-bridge__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(10, 22, 18, 0.45);
}

.vision-bridge__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-on-light, #0a1612);
}

.vision-bridge__block:first-child .vision-bridge__heading {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  max-width: 16ch;
}

@media (min-width: 768px) {
  .vision-bridge .container {
    padding-left: clamp(2.5rem, 5vw, 3.5rem);
  }

  .vision-bridge__blocks {
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .vision-bridge__block {
    border-left: 1px solid rgba(196, 165, 116, 0.22);
    padding-left: clamp(1rem, 2vw, 1.5rem);
  }

  .vision-bridge__block:first-child {
    border-left: none;
    padding-left: 0;
  }
}

/* ═══ THE NEXT CHAPTER — Saudi 2030 mosaic ═══
   Compact asymmetric grid (thumb/card scale), mid-section placement.
   Not full-bleed heroes. Stable layout (designed irregularity, no random). */
.next-chapter {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  /* Heavy top padding so the mosaic reads mid/lower, not first-viewport hero */
  padding:
    clamp(5.5rem, 14vh, 9.5rem)
    clamp(1rem, 3.5vw, 1.75rem)
    clamp(3.25rem, 7vh, 5.5rem);
  background: var(--color-green-dark, #061411);
}

.next-chapter__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Constrained mosaic — tiles ~280–420px on desktop */
.next-chapter__mosaic {
  display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.45rem, 1.2vw, 0.75rem);
  width: min(100%, 42rem);
  margin: 0 auto;
  align-items: stretch;
}

.next-chapter__tile {
  position: relative;
  z-index: 0;
  display: grid;
  margin: 0;
  min-width: 0;
  max-width: 26.25rem; /* 420px */
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: rgba(0, 0, 0, 0.2);
}

.next-chapter__media-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: 1 / 1;
}

/* Mobile defaults: staggered aspect ratios in 2-col, then 1-col */
.next-chapter__tile--wide,
.next-chapter__tile--feature {
  grid-column: 1 / -1;
  max-width: none;
}

.next-chapter__tile--wide .next-chapter__media-el {
  aspect-ratio: 16 / 10;
}

.next-chapter__tile--tall .next-chapter__media-el {
  aspect-ratio: 3 / 4;
}

.next-chapter__tile--square .next-chapter__media-el {
  aspect-ratio: 1 / 1;
}

.next-chapter__tile--feature .next-chapter__media-el {
  aspect-ratio: 16 / 9;
}

/* Core / video override — still constrained, not full-bleed */
.next-chapter__media,
.next-chapter__media--single {
  position: relative;
  z-index: 0;
  display: block;
  width: min(100%, 26.25rem);
  margin: 0 auto;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.next-chapter__media--single .next-chapter__media-el {
  aspect-ratio: 16 / 10;
  height: auto;
}

@media (max-width: 519px) {
  .next-chapter__mosaic {
    grid-template-columns: 1fr;
    width: min(100%, 20rem); /* ~320px — smaller than before */
  }

  .next-chapter__tile,
  .next-chapter__tile--wide,
  .next-chapter__tile--feature {
    grid-column: auto;
    max-width: none;
  }

  .next-chapter__tile--tall .next-chapter__media-el {
    aspect-ratio: 4 / 5;
  }
}

/* Tablet+: asymmetric 6-col mosaic */
@media (min-width: 720px) {
  .next-chapter__mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(5.5rem, auto);
    width: min(100%, 52rem); /* ~832px — collage, not banner */
    gap: clamp(0.55rem, 1vw, 0.85rem);
  }

  .next-chapter__tile {
    max-width: none;
  }

  /* national — wide lead */
  .next-chapter__tile--national {
    grid-column: 1 / span 4;
    grid-row: 1;
  }

  .next-chapter__tile--national .next-chapter__media-el {
    aspect-ratio: 4 / 3;
    min-height: 11rem;
    max-height: 16.5rem;
  }

  /* riyadh — tall side panel */
  .next-chapter__tile--riyadh {
    grid-column: 5 / span 2;
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  .next-chapter__tile--riyadh .next-chapter__media-el {
    aspect-ratio: unset;
    min-height: 100%;
  }

  /* jeddah / madinah — paired squares under lead */
  .next-chapter__tile--jeddah {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .next-chapter__tile--madinah {
    grid-column: 3 / span 2;
    grid-row: 2;
  }

  .next-chapter__tile--jeddah .next-chapter__media-el,
  .next-chapter__tile--madinah .next-chapter__media-el {
    aspect-ratio: 1 / 1;
    max-height: 13.5rem;
  }

  /* urban — offset feature band */
  .next-chapter__tile--urban {
    grid-column: 2 / span 4;
    grid-row: 3;
    justify-self: stretch;
  }

  .next-chapter__tile--urban .next-chapter__media-el {
    aspect-ratio: 16 / 9;
    max-height: 14rem;
  }
}

@media (min-width: 960px) {
  .next-chapter__mosaic {
    width: min(100%, 56rem);
  }

  .next-chapter__tile--national .next-chapter__media-el {
    max-height: 17.5rem;
  }

  .next-chapter__tile--jeddah .next-chapter__media-el,
  .next-chapter__tile--madinah .next-chapter__media-el {
    max-height: 14.5rem;
  }

  .next-chapter__tile--urban .next-chapter__media-el {
    max-height: 15rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .next-chapter__tile {
    opacity: 0.92;
    transition: opacity 0.6s ease;
  }

  .next-chapter:hover .next-chapter__tile {
    opacity: 1;
  }
}

/* ═══ 2030 ARCHITECTURAL MOMENT ═══ */
.v2030 {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(20, 53, 44, 0.55) 0%, transparent 70%),
    var(--color-green-dark, #061411);
  color: var(--color-cream, #f5f0e8);
}

.v2030__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.v2030__photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.85) contrast(1.05);
}

.v2030__stage {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1180px);
  min-height: clamp(16rem, 48vw, 28rem);
  display: grid;
  place-items: center;
}

.v2030__blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.v2030__blueprint-grid,
.v2030__blueprint-plan,
.v2030__blueprint-structure,
.v2030__marks {
  transition: opacity 0.7s ease;
}

.v2030[data-v2030-phase="grid"] .v2030__blueprint-grid { opacity: 1; }
.v2030[data-v2030-phase="grid"] .v2030__blueprint-plan { opacity: 0; }
.v2030[data-v2030-phase="grid"] .v2030__blueprint-structure { opacity: 0; }
.v2030[data-v2030-phase="grid"] .v2030__marks { opacity: 0.35; }

.v2030[data-v2030-phase="plan"] .v2030__blueprint-grid { opacity: 0.55; }
.v2030[data-v2030-phase="plan"] .v2030__blueprint-plan { opacity: 1; }
.v2030[data-v2030-phase="plan"] .v2030__blueprint-structure { opacity: 0; }
.v2030[data-v2030-phase="plan"] .v2030__marks { opacity: 0.7; }

.v2030[data-v2030-phase="structure"] .v2030__blueprint-grid { opacity: 0.28; }
.v2030[data-v2030-phase="structure"] .v2030__blueprint-plan { opacity: 0.45; }
.v2030[data-v2030-phase="structure"] .v2030__blueprint-structure { opacity: 1; }
.v2030[data-v2030-phase="structure"] .v2030__marks { opacity: 0.85; }

.v2030__hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
}

.v2030__logo {
  width: clamp(3.25rem, 7vw, 5rem);
  height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
  transition: opacity 0.8s ease, transform 0.8s var(--ease, ease);
  transform: translateY(0.35rem) scale(0.96);
}

.v2030[data-v2030-phase="plan"] .v2030__logo {
  opacity: 0.72;
  transform: translateY(0.15rem) scale(0.98);
}

.v2030[data-v2030-phase="structure"] .v2030__logo {
  opacity: 0.9;
  transform: translateY(0) scale(1);
}

.v2030__num {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5.5rem, 22vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(196, 165, 116, 0.72);
  transition:
    color 0.8s ease,
    -webkit-text-stroke-color 0.8s ease,
    text-shadow 0.8s ease;
}

.v2030[data-v2030-phase="plan"] .v2030__num {
  -webkit-text-stroke-color: rgba(196, 165, 116, 0.88);
}

.v2030[data-v2030-phase="structure"] .v2030__num {
  color: rgba(245, 240, 232, 0.94);
  -webkit-text-stroke-color: rgba(196, 165, 116, 0.35);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

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

@media (prefers-reduced-motion: reduce) {
  .v2030__blueprint-grid,
  .v2030__blueprint-plan,
  .v2030__blueprint-structure,
  .v2030__marks,
  .v2030__num,
  .v2030__logo {
    transition: none !important;
  }

  .v2030__logo {
    opacity: 0.9;
    transform: none;
  }
}

/* ═══ FROM VISION TO STRUCTURE ═══ */
.vts__sequence {
  list-style: none;
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(196, 165, 116, 0.28);
}

.vts__step {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.15rem, 3vw, 1.5rem) 0;
  border-bottom: 1px solid rgba(10, 22, 18, 0.08);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.vts__step.is-in {
  opacity: 1;
  transform: none;
}

.vts__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-green, #0b1f1a);
  line-height: 1.1;
}

.vts__note {
  max-width: 28rem;
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.45;
  color: var(--color-ink-soft);
}

.vts__arrow {
  display: none;
}

@media (min-width: 960px) {
  .vts__sequence {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    border-top: none;
    border-bottom: 1px solid rgba(196, 165, 116, 0.28);
  }

  .vts__step {
    padding: 1.35rem clamp(0.65rem, 1.2vw, 1rem) 1.75rem;
    border-bottom: none;
    border-right: 1px solid rgba(196, 165, 116, 0.22);
    min-height: 11rem;
  }

  .vts__step:last-child {
    border-right: none;
  }

  .vts__label {
    font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  }

  .vts__note {
    font-size: 0.92rem;
  }

  .vts__arrow {
    display: block;
    position: absolute;
    right: -0.45rem;
    top: 1.55rem;
    width: 0.7rem;
    height: 1px;
    background: rgba(196, 165, 116, 0.7);
  }

  .vts__step:last-child .vts__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vts__step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══ SELECTED WORKS — editorial intro ═══ */
.works-section__context {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.72rem, 1.3vw, 0.8rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 165, 116, 0.95);
}

.works-section__lede {
  margin: 0.85rem 0 clamp(2rem, 5vw, 3rem);
  max-width: 28rem;
}

.work-feature__context {
  margin: 0 0 0.55rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 165, 116, 0.9);
}

.project-showcase__context {
  color: rgba(196, 165, 116, 0.95);
}

/* ═══ EXPERIENCE — architectural timeline ═══ */
/* Mobile-first: vertical axis. Desktop (≥1024px): horizontal axis.
   Scoped with .timeline--legacy to override earlier .timeline rules
   in main.css / refine.css / qa.css / polish.css. */
.timeline.timeline--legacy {
  position: relative;
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 2.5rem);
}

.timeline.timeline--legacy::before {
  content: "";
  position: absolute;
  left: 5px;
  right: auto;
  top: 6px;
  bottom: 10px;
  width: 1px;
  height: auto;
  background: linear-gradient(
    180deg,
    rgba(196, 165, 116, 0.55) 0%,
    rgba(196, 165, 116, 0.55) 86%,
    rgba(196, 165, 116, 0) 100%
  );
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline.timeline--legacy.is-visible::before {
  transform: scaleY(1);
}

.timeline--legacy .timeline__item {
  position: relative;
  min-width: 0;
  padding: 0 0 0 clamp(1.5rem, 6vw, 2.25rem);
  border-top: none;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline--legacy.is-visible .timeline__item {
  opacity: 1;
  transform: none;
}

.timeline--legacy.is-visible .timeline__item:nth-child(1) { transition-delay: 0.12s; }
.timeline--legacy.is-visible .timeline__item:nth-child(2) { transition-delay: 0.24s; }
.timeline--legacy.is-visible .timeline__item:nth-child(3) { transition-delay: 0.36s; }
.timeline--legacy.is-visible .timeline__item:nth-child(4) { transition-delay: 0.48s; }

.timeline--legacy .timeline__node {
  position: absolute;
  top: 1px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-gold, #c4a574);
}

.timeline--legacy .timeline__item--now .timeline__node {
  box-shadow: 0 0 0 4px rgba(196, 165, 116, 0.2);
}

.timeline--legacy .timeline__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 6vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--color-green);
  margin: 0 0 0.6rem;
}

.timeline--legacy .timeline__label {
  font-size: clamp(0.62rem, 1.3vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-on-light);
  margin: 0 0 0.7rem;
  line-height: 1.45;
  max-width: none;
}

.timeline--legacy .timeline__copy {
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.65;
  color: var(--ink-soft-on-light);
  margin: 0;
}

@media (min-width: 1024px) {
  .timeline.timeline--legacy {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 2.5vw, 2.25rem);
  }

  .timeline.timeline--legacy::before {
    left: 5px;
    right: 0;
    top: 6px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(196, 165, 116, 0.55) 0%,
      rgba(196, 165, 116, 0.55) 88%,
      rgba(196, 165, 116, 0) 100%
    );
    transform: scaleX(0);
    transform-origin: left center;
  }

  .timeline.timeline--legacy.is-visible::before {
    transform: scaleX(1);
  }

  .timeline--legacy .timeline__item {
    padding: clamp(1.75rem, 3vw, 2.25rem) 0 0;
  }

  /* Architectural drop tick from each node */
  .timeline--legacy .timeline__node::after {
    content: "";
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: clamp(0.6rem, 1.2vw, 0.9rem);
    background: linear-gradient(180deg, rgba(196, 165, 116, 0.5), rgba(196, 165, 116, 0));
  }

  .timeline--legacy .timeline__year {
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  }

  .timeline--legacy .timeline__copy {
    max-width: 24em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline--legacy .timeline__item,
  .timeline.timeline--legacy::before {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══ LEADERSHIP — centered editorial ═══ */
.leadership-editorial {
  position: relative;
  overflow: hidden;
}

.leadership--home .section-grid--subtle,
.leadership-editorial .section-grid--subtle {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(196, 165, 116, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(196, 165, 116, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  pointer-events: none;
}

.leadership-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.leadership-eyebrow {
  margin: 0 0 clamp(0.75rem, 2vw, 1.25rem);
  font-size: clamp(0.6rem, 1vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold, #c4a574);
}

.leadership-headline {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-on-light, #0a1612);
}

.leadership-divider {
  width: clamp(2.5rem, 6vw, 4rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold, #c4a574), transparent);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.leadership-quote {
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.5rem);
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
  font-family: var(--font-serif, "Manrope", serif);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-style: italic;
  line-height: 1.65;
  color: var(--ink-soft-on-light, rgba(10, 22, 18, 0.76));
  max-width: 36em;
  quotes: none;
}

.leadership-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-on-light, #0a1612);
}

.leadership-role {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft-on-light, rgba(10, 22, 18, 0.55));
}

.leadership-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-on-light, #0a1612);
  border: 1px solid rgba(196, 165, 116, 0.45);
  border-radius: var(--radius);
  background: transparent;
  transition:
    background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.leadership-cta:hover {
  background: var(--color-gold, #c4a574);
  color: var(--color-cream, #f5f0e8);
  border-color: var(--color-gold, #c4a574);
}

@media (max-width: 767px) {
  .leadership-center {
    padding-block: clamp(1rem, 3vw, 1.5rem);
  }

  .leadership-headline {
    max-width: 12em;
  }

  .leadership-quote {
    padding-inline: 0;
  }
}


/* ═══ FOOTER — dedicated bottom bar ═══ */
.site-footer {
  padding-bottom: 0;
  margin-bottom: 0;
}

.site-footer__inner {
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.site-footer__bar {
  border-top: 1px solid var(--line-light);
  background: rgba(0, 0, 0, 0.15);
  padding: clamp(0.85rem, 2vw, 1.1rem) 0;
  margin: 0;
}

.site-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  width: min(100% - clamp(1.25rem, 4vw, 3rem), 1400px);
  margin-inline: auto;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.62);
}

.site-footer__inner .site-footer__meta {
  display: none;
}

/* ═══ BLOG — full-width feature image ═══ */
.article-feature {
  padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--color-cream);
}

.article-feature__header {
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.article-feature__header .display {
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  max-width: 14em;
}

.article-feature__media {
  width: 100%;
  margin: 0;
  aspect-ratio: 21 / 9;
  max-height: min(62vh, 620px);
  overflow: hidden;
}

.article-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.article-layout {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.article-layout .article-body {
  max-width: min(42rem, 100%);
  margin-inline: auto;
}

/* ═══ PROJECT — full-width showcase hero ═══ */
.project-showcase {
  padding-top: calc(var(--header-h) + 1rem);
  background: var(--color-cream);
}

.project-showcase__header .display,
.project-showcase__header .label {
  color: var(--ink-on-light, #0a1612);
}

.project-showcase__meta span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft-on-light, rgba(10, 22, 18, 0.76));
}

.project-showcase__header {
  padding-bottom: clamp(1rem, 3vw, 1.5rem);
}

.project-showcase__header .display {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 12em;
  margin-bottom: 0.75rem;
}

.project-showcase__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.project-showcase__meta span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft-on-light);
}

.project-showcase__media {
  width: 100%;
  margin: 0;
  aspect-ratio: 2.2 / 1;
  max-height: min(68vh, 680px);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.project-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
}

@media (max-width: 767px) {
  .project-showcase__media,
  .article-feature__media {
    aspect-ratio: 16 / 10;
    max-height: min(48vh, 360px);
  }
}

.section--spaced {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

/* ═══ FINAL POLISH — image scale (override earlier caps) ═══ */
.gallery-grid__item .aspect-16-9 {
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 520px);
}

.gallery-grid__item .aspect-4-3,
.gallery-grid__item .aspect-3-2 {
  max-height: min(44vh, 420px);
}

.gallery-grid__item .aspect-1-1 {
  max-height: min(40vh, 380px);
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.project-row__media {
  max-height: min(36vh, 280px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  max-height: min(42vh, 360px);
  overflow: hidden;
}

.project-card__media {
  max-height: min(42vh, 360px);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-hero__media img {
  object-fit: cover;
  object-position: center 40%;
}

.related-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 767px) {
  .gallery-grid__item .aspect-16-9,
  .gallery-grid__item .aspect-4-3,
  .gallery-grid__item .aspect-3-2,
  .gallery-grid__item .aspect-1-1 {
    max-height: min(46vh, 300px);
  }

  .project-row__media,
  .blog-card__media,
  .project-card__media {
    max-height: min(40vh, 260px);
  }
}

/* ═══ PROJECT GALLERY — masonry-like editorial grid ═══ */
.project-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 900px) {
  .project-gallery .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .project-gallery .gallery-grid__item:nth-child(6n + 1) {
    grid-column: span 7;
  }

  .project-gallery .gallery-grid__item:nth-child(6n + 2) {
    grid-column: span 5;
  }

  .project-gallery .gallery-grid__item:nth-child(6n + 3) {
    grid-column: span 5;
  }

  .project-gallery .gallery-grid__item:nth-child(6n + 4) {
    grid-column: span 7;
  }

  .project-gallery .gallery-grid__item:nth-child(6n + 5) {
    grid-column: span 4;
  }

  .project-gallery .gallery-grid__item:nth-child(6n + 6) {
    grid-column: span 8;
  }
}

.project-gallery .gallery-grid__item {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-green-dark, #061411);
  border-radius: var(--radius, 14px);
}

.project-gallery .gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-gallery .gallery-grid__item:hover img,
.project-gallery .gallery-grid__item:focus-visible img {
  transform: scale(1.03);
}

.project-gallery .gallery-grid__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 20, 17, 0.35));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
}

.project-gallery .gallery-grid__item:hover::after,
.project-gallery .gallery-grid__item:focus-visible::after {
  opacity: 1;
}

.project-gallery .gallery-grid__item:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.project-gallery .gallery-grid__item .aspect-16-9,
.project-gallery .gallery-grid__item .aspect-4-3,
.project-gallery .gallery-grid__item .aspect-3-2,
.project-gallery .gallery-grid__item .aspect-1-1,
.project-gallery .gallery-grid__item .aspect-3-4 {
  max-height: none;
  width: 100%;
  height: 100%;
}

.project-gallery .gallery-grid__item .aspect-16-9 { aspect-ratio: 16 / 9; }
.project-gallery .gallery-grid__item .aspect-4-3 { aspect-ratio: 4 / 3; }
.project-gallery .gallery-grid__item .aspect-3-2 { aspect-ratio: 3 / 2; }
.project-gallery .gallery-grid__item .aspect-1-1 { aspect-ratio: 1 / 1; }
.project-gallery .gallery-grid__item .aspect-3-4 { aspect-ratio: 3 / 4; }

@media (max-width: 767px) {
  .project-gallery .gallery-grid {
    gap: 0.55rem;
  }

  .project-gallery .gallery-grid__item::after {
    opacity: 0;
  }

  .project-gallery .gallery-grid__item .aspect-16-9,
  .project-gallery .gallery-grid__item .aspect-4-3,
  .project-gallery .gallery-grid__item .aspect-3-2,
  .project-gallery .gallery-grid__item .aspect-1-1,
  .project-gallery .gallery-grid__item .aspect-3-4 {
    max-height: min(48vh, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-gallery .gallery-grid__item img,
  .project-gallery .gallery-grid__item::before,
  .project-gallery .gallery-grid__item::after {
    transition: none;
  }

  .project-gallery .gallery-grid__item:hover img,
  .project-gallery .gallery-grid__item:focus-visible img {
    transform: none;
  }
}

/* ═══ ABOUT — story split (text | media) ═══ */
.about-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  min-width: 0;
}

.about-story__text {
  min-width: 0;
}

.about-story__lede {
  max-width: none;
}

.about-story__lede--lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.about-story__lede + .about-story__lede {
  margin-top: 1.15rem;
}

.about-story__media {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  min-width: 0;
}

.about-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

@media (min-width: 768px) {
  .about-story__grid {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .about-story__media {
    aspect-ratio: 4 / 5;
    max-height: min(68vh, 560px);
  }
}

@media (max-width: 767px) {
  .about-story__media {
    aspect-ratio: 4 / 3;
    max-height: min(42vh, 320px);
  }
}

/* ═══ PROJECT MEDIA — champagne border paint / perimeter trace ═══
   Selected Works, project rows, gallery tiles. Hover / focus only.
   Point walks the perimeter and paints a trail until the border is complete.
   Not applied to .btn / nav CTAs. */
@property --evanour-paint {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.work-feature__media::before,
.project-row__media::before,
.project-card__media::before,
.project-gallery .gallery-grid__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  opacity: 0;
  --evanour-paint: 0deg;
  /* Trail grows from top; bright tip = walking “point” at the paint head */
  background: conic-gradient(
    from 0deg,
    var(--champagne, var(--color-gold, #c4a574)) 0deg,
    var(--champagne, var(--color-gold, #c4a574)) var(--evanour-paint),
    var(--champagne-soft, #e8dcc6) var(--evanour-paint),
    #f5f0e8 calc(var(--evanour-paint) + 5deg),
    var(--champagne-soft, #e8dcc6) calc(var(--evanour-paint) + 9deg),
    transparent calc(var(--evanour-paint) + 10deg),
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition:
    opacity 0.4s var(--ease, ease),
    --evanour-paint 0.01s linear 0.4s;
}

.work-feature:hover .work-feature__media::before,
.work-feature:focus-within .work-feature__media::before,
.project-row:hover .project-row__media::before,
.project-row:focus-within .project-row__media::before,
.project-card:hover .project-card__media::before,
.project-card:focus-within .project-card__media::before,
.project-gallery .gallery-grid__item:hover::before,
.project-gallery .gallery-grid__item:focus-visible::before {
  opacity: 1;
  --evanour-paint: 360deg;
  transition:
    opacity 0.15s ease,
    --evanour-paint 1.15s linear;
}

@media (prefers-reduced-motion: reduce) {
  .work-feature__media::before,
  .project-row__media::before,
  .project-card__media::before,
  .project-gallery .gallery-grid__item::before {
    --evanour-paint: 0deg;
    background: transparent;
    padding: 0;
    border: 2px solid var(--champagne, var(--color-gold, #c4a574));
    -webkit-mask: none;
    mask: none;
    transition: opacity 0.2s ease;
  }

  .work-feature:hover .work-feature__media::before,
  .work-feature:focus-within .work-feature__media::before,
  .project-row:hover .project-row__media::before,
  .project-row:focus-within .project-row__media::before,
  .project-card:hover .project-card__media::before,
  .project-card:focus-within .project-card__media::before,
  .project-gallery .gallery-grid__item:hover::before,
  .project-gallery .gallery-grid__item:focus-visible::before {
    opacity: 1;
    --evanour-paint: 0deg;
    transition: opacity 0.2s ease;
  }
}
