/* ============================================
   GENSLER.COM — layout.css
   Header · Nav · Sections · Footer
   ============================================ */

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
#main-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(0,0,0,.09);
  box-shadow: 0 1px 10px rgba(0,0,0,.07);
  transition: box-shadow var(--t-med);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 24px;
  gap: 0;
}

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px 4px 0;
  display: flex;
  align-items: center;
  color: var(--dark);
  transition: color var(--t-fast);
}
.hamburger:hover { color: var(--red); }
.hamburger svg { width: 18px; }

/* Logo */
.logo a { display: flex; align-items: center; }
.logo svg { width: 110px; height: auto; }

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a:hover,
.nav-overlay-links a:hover {
  color: #1C1C1C;
}

.main-nav button {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 12px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
  white-space: nowrap;
  position: relative;
}
.main-nav a::after,
.main-nav button::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--t-fast) var(--ease);
  transform-origin: left;
}
.main-nav a:hover,
.main-nav button:hover { color: var(--red); }
.main-nav a:hover::after,
.main-nav button:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════
   MOBILE NAV OVERLAY
   ═══════════════════════════════════════════ */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: rgba(17,17,17,.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .38s var(--ease);
  box-shadow: 4px 0 32px rgba(0,0,0,.18);
}
.nav-overlay.open { transform: translateX(0); }


.nav-overlay-header .logo-text {
  color: #ffffff;
  letter-spacing: 4px;
}

.nav-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.nav-overlay-header .logo-text {
  color: #ffffff;
  letter-spacing: 4px;
}


.nav-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 4px;
  transition: color var(--t-fast);
}
.nav-close:hover { color: var(--yellow); }

.nav-overlay-links {
  padding: 24px 32px 40px;
  overflow-y: auto;
  flex: 1;
}
.nav-overlay-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  letter-spacing: .01em;
  transition: color var(--t-fast);
}

.nav-overlay-links a::after {
  content: '→';
  font-size: 16px;
  opacity: .4;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.nav-overlay-links a:hover { color: var(--yellow); }
.nav-overlay-links a:hover::after { opacity: 1; transform: translateX(4px); }

/* ═══════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════ */
.hero-wrapper {
  position: relative;
  width: 100%;
  padding-top: var(--nav-height);
  background: #000;
}

.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
@media (max-width: 678px) {
  .hero-slides { aspect-ratio: 4 / 3; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease-in-out;
}
.hero-slide.active { opacity: 1; z-index: 2; }

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

.hero-slide-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0,0,0,.56) 0%,
    rgba(0,0,0,.2) 55%,
    rgba(0,0,0,.04) 100%
  );
}

.hero-content {
  position: absolute;
  top: 22%;
  left: 5%;
  max-width: 680px;
  color: var(--white);
  z-index: 5;
}

.hero-title {
  font-size: clamp(26px, 3.8vw, 60px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.4px;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
  margin: 0;
}

.hero-rule {
  width: 40px;
  height: 4px;
  background: var(--yellow);
  margin: 14px 0;
}

.hero-subhed {
  font-size: clamp(14px, 1.5vw, 19px);
  line-height: 1.38;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
  margin-bottom: 28px;
  max-width: 560px;
}

/* Slide dots */
.slide-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  padding: 0;
}
.slide-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

/* ── Trending bar ── */
.trending-bar {
  background: rgba(17,17,17,.96);
  color: var(--white);
  padding: 0 32px;
  display: flex;
  align-items: center;
  min-height: 50px;
}
.trending-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  white-space: nowrap;
  margin-right: 28px;
  flex-shrink: 0;
  color: rgba(255,255,255,.6);
}
.trending-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  flex: 1;
}
.trending-link {
  font-size: 14px;
  color: var(--white);
  padding: 14px 20px;
  border-left: 1px solid rgba(255,255,255,.15);
  transition: color var(--t-fast);
  line-height: 1.3;
}
.trending-link:hover { color: var(--orange); }

/* ═══════════════════════════════════════════
   LATEST FROM GENSLER
   ═══════════════════════════════════════════ */
.insights-section { padding: 72px 0; }
.insights-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.insights-header h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.cards-track-wrapper { overflow: hidden; position: relative; }
.cards-track {
  display: flex;
  gap: 24px;
  transition: transform .52s var(--ease);
}

.card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 260px;
  background: var(--white);
  cursor: pointer;
}
.card .card-img { aspect-ratio: 16 / 9; }
.card-body { padding: 16px 2px; }
.card-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 8px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.card-title a:hover { color: var(--red); }
.card-summary { font-size: 13px; color: #555; line-height: 1.55; }

.carousel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.carousel-controls { display: flex; gap: 10px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   DARK STATEMENT
   ═══════════════════════════════════════════ */
.statement-section {
  background: var(--black);
  color: var(--white);
  padding: 96px 0;
}
.statement-section h2 {
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.5px;
  max-width: 860px;
  margin-bottom: 28px;
}
.statement-section p {
  font-size: 17px;
  line-height: 1.65;
  max-width: 700px;
  margin-bottom: 32px;
  color: rgba(255,255,255,.75);
}

/* ═══════════════════════════════════════════
   SPOTLIGHT — Scroll-zoom parallax video
   ═══════════════════════════════════════════ */

/*
  Layout overview
  ───────────────
  .spotlight-section   — tall scroll container (content + spacer)
  .spotlight-sticky-wrap  — sticky viewport-height layer; holds the scaling frame
  .spotlight-video-frame  — the box that scales from small → fullscreen → small
  .spotlight-video        — the actual <video>
  .spotlight-video-overlay — white-fade overlay (fades in as text region passes)
  .spotlight-content      — text, sits above the sticky layer (normal flow)
  .spotlight-scroll-spacer — extra height that gives the sticky animation room
*/

.spotlight-section {
  position: relative;
  margin-top: 80px;
}

.spotlight-section > .spotlight-content {
  position: relative;
  z-index: 3;
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}



/* ── Sticky video shell ── */
.spotlight-sticky-wrap {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  margin-top: -100vh;
}


/* The frame that scales */
.spotlight-video-frame {
  position: absolute;
  /* centred */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--sp-scale, 0.52));
  transform-origin: center center;
  /* start smallish, JS drives --sp-scale */
  width: 100%;
  height: 100%;
  will-change: transform;
  border-radius: calc((1 - var(--sp-scale, 0.52)) * 12px);
  overflow: hidden;
  transition: border-radius 0ms; /* instant, driven by JS */
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.spotlight-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* White overlay — fades in when text is in view, fades out as video takes over */
.spotlight-video-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: var(--sp-overlay, 1);
  pointer-events: none;
  will-change: opacity;
}

/* ── Text content — normal flow, above sticky layer ── */
.spotlight-content {
  position: relative;
  z-index: 2;
  padding: 72px var(--gutter) 80px;
  max-width: var(--content-max);
  margin: 0 auto;
  pointer-events: auto;

  /* Frosted card behind text only */
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
}


/* Extra height: the sticky frame animates while this spacer scrolls past */
.spotlight-scroll-spacer {
  height: 200vh;
  position: relative;
  z-index: 1; /* above sticky video */
  /* transparent — lets the fullscreen video show through */
  pointer-events: none;
}

.spotlight-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: #444;
}
.spotlight-title {
  font-size: clamp(30px, 3.8vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.4px;
  max-width: 800px;
  margin-bottom: 20px;
}
.spotlight-text {
  font-size: 19px;
  color: #333;
  line-height: 1.45;
  max-width: 580px;
  margin-bottom: 40px;
}
.spotlight-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  max-width: 700px;
}
.spotlight-links li {
  border-left: 2px solid var(--dark);
  padding-left: 14px;
  margin-bottom: 22px;
}
.spotlight-links li a {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  transition: color var(--t-fast);
  pointer-events: auto;
}
.spotlight-links li a:hover { color: var(--red); }

/* ═══════════════════════════════════════════
   FEATURED PROJECTS
   ═══════════════════════════════════════════ */
.projects-section {
  background: var(--light-gray);
  padding: 72px 0;
}
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.projects-header h2 { font-size: 30px; font-weight: 700; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.projects-grid .project-card {
  height: 420px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}

.project-card .card-img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.project-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.project-card:hover .card-img img {
  transform: scale(1.06);
}

.project-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.4)  60%,
    transparent      100%
  );
  color: #fff;
  transform: translateY(calc(100% - 72px));
  transition: transform 0.4s var(--ease);
}

.project-card:hover .project-card-body {
  transform: translateY(0);
}

.project-card-title a {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.project-card-loc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin: 6px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.project-card-summary {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.3s var(--ease) 0.1s;
}

.project-card:hover .project-card-summary {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter-section { padding: 64px 0; }
.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.newsletter-logo { flex-shrink: 0; }
.newsletter-logo img { max-width: 200px; }
.newsletter-text { flex: 1; }
.newsletter-text p { font-size: 17px; line-height: 1.55; margin-bottom: 18px; }

/* ═══════════════════════════════════════════
   CAREERS
   ═══════════════════════════════════════════ */
.careers-section { background: var(--dark); }
.careers-inner { display: grid; grid-template-columns: 1fr 1fr; }
.careers-img { overflow: hidden; }
.careers-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.careers-img:hover img { transform: scale(1.03); }
.careers-content {
  padding: 72px 64px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.careers-content h2 { font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; margin-bottom: 16px; line-height: 1.1; }
.careers-content p { font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.65; margin-bottom: 28px; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: #F4F1EA;
  color: #1C1C1C;
  border-top: 1px solid #DDD8CE;
}


.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px var(--gutter) 48px;
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-logo  { display: inline-block; }

.footer-brand-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-socials a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.footer-socials a:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.footer-socials svg { width: 14px; height: 14px; }

/* Link columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--dark);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 13px;
  color: var(--gray);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--red); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--gray);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 12px;
  color: var(--gray);
  transition: color var(--t-fast);
}
.footer-bottom-links a:hover { color: var(--red); }
.footer-back-top { font-weight: 600; }

/* Responsive */
@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════
   INNER PAGE HERO
   ═══════════════════════════════════════════ */
.page-hero {
  width: 100%;
  margin-top: var(--nav-height);
  overflow: hidden;
}


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

.page-hero-text {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px var(--gutter) 48px;
}

.page-hero-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  margin-bottom: 16px;
}

.page-hero-title {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.5px;
  color: var(--dark);
  max-width: 800px;
}

/* ── Expertise hero strip ── */
.expertise-hero-strip {
  display: flex;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.expertise-hero-strip-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.expertise-hero-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease);
}

.expertise-hero-strip-item:hover img {
  transform: scale(1.06);
}

.expertise-hero-strip-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  pointer-events: none;
}