/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--space-3xl) + var(--space-lg)) var(--space-2xl);
  background-color: var(--color-dusk-900);
  background-image: url("../images/bg_section.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center calc(100% + 75px);
  background-attachment: fixed;
  color: #ffffff;
  overflow: hidden;
}

/* background-attachment: fixed is unreliable/janky on touch devices, so it
   scrolls normally there instead */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .hero {
    background-attachment: scroll;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(65% 55% at 50% 50%, rgba(10, 11, 13, 0.6) 0%, rgba(10, 11, 13, 0.28) 55%, rgba(10, 11, 13, 0.55) 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero .orb {
  z-index: 1;
  top: -10%;
  right: -6%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(201, 160, 99, 0.5), transparent 70%);
}

.hero-shape-1 {
  z-index: 1;
  top: 22%;
  left: 6%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 24px 4px rgba(201, 160, 99, 0.5);
}

.hero-shape-2 {
  z-index: 1;
  bottom: 30%;
  left: 42%;
  width: 5px;
  height: 5px;
  background: var(--color-bronze-600);
  opacity: 0.6;
  animation-duration: 12s;
  animation-delay: 1.5s;
}

.hero .orb.orb-2 {
  bottom: -14%;
  left: -8%;
  top: auto;
  right: auto;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(201, 160, 99, 0.4), transparent 70%);
  opacity: 0.5;
}

.hero-inner {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.hero-eyebrow {
  color: var(--accent-soft);
  justify-content: center;
}

.hero-title {
  font-size: clamp(2.75rem, 2.9vw + 1.8rem, 5.75rem);
  color: #ffffff;
  margin-bottom: var(--space-md);
  white-space: nowrap;
}

.hero-title .word {
  margin-right: 0.28em;
}

.hero-title .word:last-child {
  margin-right: 0;
}

.hero .scroll-cue {
  z-index: 2;
  color: rgba(255, 255, 255, 0.66);
}

.hero .scroll-cue:hover {
  color: #ffffff;
}

.hero .scroll-cue .stem::after {
  background: linear-gradient(var(--color-ivory-50), transparent);
}

/* ===================== INTRO ===================== */
.intro {
  position: relative;
  overflow: hidden;
}

.intro-orb {
  top: 10%;
  right: -10%;
  width: 32vw;
  height: 32vw;
  background: radial-gradient(circle, rgba(201, 160, 99, 0.35), transparent 70%);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.intro-grid .section-head {
  align-self: center;
  margin-bottom: 0;
}

.intro-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.intro-stats .stat {
  flex: 1 1 0;
  min-width: 96px;
  max-width: 150px;
  align-items: center;
  text-align: center;
}

.intro-stats .stat-num {
  justify-content: center;
  white-space: nowrap;
}

.intro-stats .stat-num {
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.25rem);
}

.intro-stats .stat-label {
  font-size: 0.7rem;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.intro-copy p {
  font-size: var(--fs-body-lg);
  color: var(--text-muted-dark);
}

.intro-cta {
  align-self: flex-start;
  margin-top: var(--space-xs);
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.intro-cta:hover {
  background: var(--accent-strong);
  color: var(--color-ivory-50);
}

.intro-lede {
  font-family: var(--font-display);
  font-size: var(--fs-display-sm);
  color: var(--text-dark);
  line-height: var(--lh-snug);
}

/* ===================== ARCHITECTURE ===================== */
.architecture {
  overflow: hidden;
}

.arch-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 220px));
  grid-template-rows: repeat(3, 1fr);
  grid-auto-flow: column;
  justify-content: space-between;
  gap: var(--space-sm) 0;
  align-items: center;
  min-height: 480px;
  padding-bottom: var(--space-2xl);
}

.arch-visual {
  position: absolute;
  bottom: 0;
  left: calc(45.5% + 100px);
  transform: translateX(-50%);
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: none;
  background: transparent;
  overflow: visible;
  width: min(92vw, 1064px);
  aspect-ratio: 2000 / 1457;
}

.arch-visual.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.arch-visual.media-frame:hover img {
  transform: none;
}

.usp-card {
  position: relative;
  z-index: 1;
  padding: var(--space-sm);
  background: var(--color-ivory-50);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.usp-card .usp-icon {
  align-self: flex-start;
  width: 45px;
  height: 45px;
  color: var(--color-bronze-600);
  margin-bottom: var(--space-2xs);
  text-transform: uppercase;
  font-family: var(--font-body);
}

.usp-card h3 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: var(--space-3xs);
  color: var(--text-light);
}

.usp-card p {
  font-size: var(--fs-body-sm);
  color: var(--text-muted-light);
}

/* ===================== LOCATION ===================== */
.location-summary {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}

.location-summary p:not(.eyebrow) {
  color: var(--text-muted-dark);
  font-size: var(--fs-body-lg);
  margin-bottom: var(--space-md);
  max-width: 32rem;
}

.location-badge {
  background: rgba(14, 16, 19, 0.06);
  border-color: var(--border-light);
  color: var(--text-dark);
}

.location-keyplan-wrap {
  position: relative;
  margin-bottom: var(--space-xl);
}

.location-keyplan-media {
  position: relative;
  width: 100%;
  aspect-ratio: 875.46 / 423.31;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.location-keyplan-media--ver {
  aspect-ratio: 918.75 / 1156;
}

.location-keyplan-wrap--mobile {
  display: none;
}

/* Hotspot pins sit outside the clipped/rounded media-frame so tooltips
   can overflow past the image edges without being cut off. */
.keyplan-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.keyplan-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1;
}

/* Bring the open pin's tooltip above any neighboring pin dots it may overlap */
.keyplan-pin.is-active,
.keyplan-pin:focus-visible {
  z-index: 5;
}

@media (hover: hover) and (pointer: fine) {
  .keyplan-pin:hover {
    z-index: 5;
  }
}

.keyplan-pin-dot {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-bronze-500);
  border: 2px solid var(--color-ivory-50);
  box-shadow: 0 2px 8px rgba(10, 11, 13, 0.4);
  transition: transform var(--dur-fast) var(--ease-out-quart), background-color var(--dur-fast) var(--ease-out-quart);
}

.keyplan-pin-dot::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: var(--color-bronze-500);
  opacity: 0.4;
  animation: keyplan-pulse 2.2s ease-out infinite;
}

.keyplan-pin.is-active .keyplan-pin-dot,
.keyplan-pin:focus-visible .keyplan-pin-dot {
  background: var(--color-bronze-700);
  transform: scale(1.3);
}

@media (hover: hover) and (pointer: fine) {
  .keyplan-pin:hover .keyplan-pin-dot {
    background: var(--color-bronze-700);
    transform: scale(1.3);
  }
}

.keyplan-pin[data-label="Aurelien I"] .keyplan-pin-dot,
.keyplan-pin[data-label="Aurelien II"] .keyplan-pin-dot {
  background: #ed3237;
}

.keyplan-pin[data-label="Aurelien I"] .keyplan-pin-dot::before,
.keyplan-pin[data-label="Aurelien II"] .keyplan-pin-dot::before {
  background: #ed3237;
}

.keyplan-pin[data-label="Aurelien I"].is-active .keyplan-pin-dot,
.keyplan-pin[data-label="Aurelien I"]:focus-visible .keyplan-pin-dot,
.keyplan-pin[data-label="Aurelien II"].is-active .keyplan-pin-dot,
.keyplan-pin[data-label="Aurelien II"]:focus-visible .keyplan-pin-dot {
  background: #c11f24;
}

@media (hover: hover) and (pointer: fine) {
  .keyplan-pin[data-label="Aurelien I"]:hover .keyplan-pin-dot,
  .keyplan-pin[data-label="Aurelien II"]:hover .keyplan-pin-dot {
    background: #c11f24;
  }
}

.keyplan-building-icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: clamp(45px, 6%, 65px);
  height: auto;
  pointer-events: none;
  z-index: 1;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 3px 6px rgba(10, 11, 13, 0.35));
}

.keyplan-label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dark);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  text-shadow: 0 0 4px var(--color-ivory-50), 0 0 4px var(--color-ivory-50), 0 1px 2px var(--color-ivory-50);
}

.location-keyplan-media.media-frame:hover img {
  transform: none;
}

@keyframes keyplan-pulse {
  0% { transform: scale(0.6); opacity: 0.45; }
  100% { transform: scale(2.1); opacity: 0; }
}

.keyplan-pin::before,
.keyplan-pin::after {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);
  transform: translate(-50%, 6px);
}

.keyplan-pin::before {
  content: "";
  bottom: calc(100% - 2px);
  width: 9px;
  height: 9px;
  background: var(--color-ivory-50);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  rotate: 45deg;
  z-index: 3;
}

/* This pin sits close to the map edge, so its tooltip opens downward instead of upward */
.keyplan-pin[data-label="Amneal Pharmaceuticals"]::before,
.keyplan-pin[data-label="Amneal Pharmaceuticals"]::after {
  bottom: auto;
  top: calc(100% + 4px);
  transform: translate(-50%, -6px);
}

.keyplan-pin[data-label="Amneal Pharmaceuticals"]::before {
  top: calc(100% - 2px);
  border-right: none;
  border-bottom: none;
  border-left: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
}

.keyplan-pin[data-label="Amneal Pharmaceuticals"].is-active::before,
.keyplan-pin[data-label="Amneal Pharmaceuticals"].is-active::after,
.keyplan-pin[data-label="Amneal Pharmaceuticals"]:focus-visible::before,
.keyplan-pin[data-label="Amneal Pharmaceuticals"]:focus-visible::after {
  transform: translate(-50%, 0);
}

.keyplan-pin::after {
  content: attr(data-label);
  white-space: nowrap;
  background: var(--color-ivory-50);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.keyplan-pin.is-active::before,
.keyplan-pin.is-active::after,
.keyplan-pin:focus-visible::before,
.keyplan-pin:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (hover: hover) and (pointer: fine) {
  .keyplan-pin:hover::before,
  .keyplan-pin:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.location-distances-head {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}

.location-distances-head h3 {
  font-size: var(--fs-display-sm);
}

.location-distances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.distance-card {
  background: var(--color-ivory-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm);
}

.distance-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-body-lg);
  color: var(--accent-strong);
  margin-bottom: var(--space-xs);
  padding-bottom: var(--space-2xs);
  border-bottom: 1px solid var(--border-light);
}

.distance-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.distance-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: 0.2rem;
}

.distance-list li:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.distance-label {
  font-size: var(--fs-body-sm);
  color: var(--text-dark);
}

.distance-time {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-bronze-600);
  white-space: nowrap;
}

/* ===================== SERVICES (3-column grid, vertical card content) ===================== */
.service-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: var(--space-lg);
  background: var(--color-ivory-50);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.service-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-ivory-100);
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-md);
}

.service-icon {
  width: 42px;
  height: 42px;
  color: var(--color-bronze-600);
}

.service-body {
  flex: 1;
}

.service-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: var(--tracking-wide);
  color: var(--accent-strong);
  opacity: 0.8;
  line-height: 1;
  margin-bottom: var(--space-2xs);
}

.service-card h3 {
  font-size: var(--fs-display-sm);
  margin-bottom: var(--space-xs);
}

.service-card p {
  color: var(--text-muted-dark);
  font-size: var(--fs-body-lg);
  max-width: 40rem;
}

/* ===================== RETAIL BAND ===================== */
.retail {
  overflow: hidden;
}

.retail-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.retail-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 2675 / 737;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-xl);
}

.retail-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.retail-cta {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.retail-cta:hover {
  background: var(--accent-strong);
  color: var(--color-ivory-50);
}

.retail-stat .stat-num {
  font-size: clamp(3rem, 5vw, 6rem);
}

.retail-copy h3 {
  font-size: var(--fs-display-sm);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.retail-copy p {
  color: var(--text-muted-light);
  font-size: var(--fs-body-lg);
  margin-bottom: var(--space-md);
}

.retail-icons {
  display: flex;
  gap: var(--space-md);
}

.retail-icons svg {
  width: 28px;
  height: 28px;
  color: var(--color-bronze-600);
  opacity: 0.9;
}

/* ===================== AMENITIES ===================== */
.amenity-card {
  padding: var(--space-lg);
  background: var(--color-ivory-50);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.amenity-card .usp-icon {
  width: 32px;
  height: 32px;
  color: var(--color-bronze-600);
  margin-bottom: var(--space-sm);
}

.amenity-card .stat-num {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
}

.amenity-card h3 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-top: var(--space-2xs);
}

.amenity-card p {
  color: var(--text-muted-light);
  font-size: var(--fs-body-sm);
}

/* ===================== PORTFOLIO ===================== */
.portfolio .section-title {
  font-size: clamp(1.5rem, 1.3vw + 1.2rem, 2.4rem);
}

.portfolio-stats {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-xl);
}

.portfolio-stats .stat {
  position: relative;
  padding-left: var(--space-lg);
}

.portfolio-stats .stat:first-child {
  padding-left: 0;
}

.portfolio-stats .stat:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 1px;
  background: var(--border-light);
}

.portfolio-stats .stat-num {
  align-items: baseline;
  white-space: nowrap;
}

.tenant-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tenant-marquee-label {
  text-align: center;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: var(--space-md);
}

.tenant-name {
  padding-inline: var(--space-2xl);
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tenant-name::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.tenant-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ===================== PORTFOLIO GALLERY (slider) ===================== */
.portfolio-gallery {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.portfolio-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.portfolio-gallery-head h3 {
  font-size: var(--fs-display-sm);
}

.portfolio-gallery .gallery-filters {
  margin-bottom: 0;
}

.gallery-slider-wrap {
  position: relative;
}

.gallery-slider {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-2xs);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-slider::-webkit-scrollbar {
  display: none;
}

/* Override the masonry .gallery-item sizing (kept intact for the archived
   grid) with fixed-aspect slide sizing for the slider context. */
.gallery-slider .gallery-item {
  display: block;
  flex: 0 0 auto;
  width: min(78vw, 320px);
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
  break-inside: auto;
  scroll-snap-align: start;
}

.gallery-slider .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ivory-50);
  border: 1px solid var(--border-light);
  color: var(--color-charcoal-900);
  box-shadow: var(--shadow-md);
  transition: background-color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart);
}

.gallery-slider-nav svg {
  width: 20px;
  height: 20px;
}

.gallery-slider-nav:hover {
  background: var(--color-bronze-500);
  border-color: var(--color-bronze-500);
  color: var(--color-charcoal-950);
}

.gallery-slider-prev {
  left: -22px;
}

.gallery-slider-next {
  right: -22px;
}

/* ===================== GALLERY (archived masonry) ===================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.gallery-filter {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted-dark);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart);
}

.gallery-filter:hover {
  border-color: var(--color-bronze-600);
  color: var(--color-bronze-600);
}

.gallery-filter.is-active {
  background: var(--color-bronze-500);
  border-color: var(--color-bronze-500);
  color: var(--color-charcoal-950);
}

.gallery-grid {
  columns: 3;
  column-gap: var(--space-md);
}

.gallery-item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.4s var(--ease-out-quart),
    transform 0.4s var(--ease-out-quart),
    box-shadow var(--dur-fast) var(--ease-out-quart);
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out-quart);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 13, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-quart), visibility 0s linear 0.4s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease-out-quart), visibility 0s linear 0s;
}

.lightbox-stage {
  position: relative;
  max-width: 88vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-stage img {
  max-width: 88vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s var(--ease-out-quart), transform 0.35s var(--ease-out-quart);
}

.lightbox-stage img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-counter {
  margin-top: var(--space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-body-sm);
  letter-spacing: 0.05em;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transition: background-color var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-close {
  top: var(--space-md);
  right: var(--space-md);
}

.lightbox-prev {
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ===================== DEVELOPER ===================== */
.developer-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: var(--space-xl);
  align-items: center;
}

.developer-monogram {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.developer-monogram-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* padding: 16%; */
}

.developer-monogram-text img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.developer-copy p:not(.eyebrow) {
  color: var(--text-muted-light);
  font-size: var(--fs-body-lg);
  margin-bottom: var(--space-md);
  max-width: 46rem;
}

.developer-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-lg);
}

/* ===================== CONTACT ===================== */
.section--contact {
  background: var(--color-white);
  color: var(--text-dark);
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: -5%;
  background-image: radial-gradient(60% 55% at 50% 0%, rgba(201, 160, 99, 0.1), transparent 70%);
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-mark {
  width: 1px;
  height: 44px;
  margin: 0 auto var(--space-sm);
  background: linear-gradient(to bottom, transparent, var(--accent));
  position: relative;
}

.contact-mark::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(201, 160, 99, 0.5);
}

.contact .section-head {
  margin-bottom: var(--space-lg);
}

.contact-card {
  max-width: 42rem;
  margin-inline: auto;
  padding: var(--space-lg);
  background: var(--color-ivory-50);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.contact-links--inline {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  margin-top: var(--space-sm);
}

.contact-links-divider {
  display: none;
}

.contact-link {
  font-family: var(--font-display);
  font-size: var(--fs-display-sm);
  color: var(--accent-strong);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out-quart), color var(--dur-fast);
}

.contact-link:hover {
  border-color: currentColor;
  color: var(--color-bronze-600);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-lg);
  width: 100%;
  text-align: left;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.form-field label {
  font-size: var(--fs-body-sm);
  color: var(--text-muted-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.5rem 0.1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  font-size: var(--fs-body);
  color: var(--text-dark);
  transition: border-color var(--dur-fast) var(--ease-out-quart);
}

.form-field textarea {
  resize: none;
  min-height: 64px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form-recaptcha {
  display: flex;
  justify-content: center;
}

.contact-submit {
  justify-self: center;
  margin-top: var(--space-2xs);
}

.form-status {
  min-height: 1.2em;
  font-size: var(--fs-body-sm);
  text-align: center;
  color: var(--accent-strong);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--color-ivory-200);
  color: var(--text-muted-light);
  padding-block: var(--space-xl) var(--space-md);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand .brand {
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-muted-light);
  max-width: 24rem;
}

.footer-heading {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.footer-nav ul,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav a,
.footer-contact a {
  transition: color var(--dur-fast);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  font-size: var(--fs-body-sm);
}
