/* ══════════════════════════════════════════════════════════════
   EIDOS — Architectural Visualization
   style.css
══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --white:      #FFFFFF;
  --off-white:  #F8F6F2;
  --black:      #0C0C0C;
  --dark:       #161616;
  --grey-1:     #EDEAE4;
  --grey-2:     #C8C3BB;
  --grey-3:     #8A8680;
  --grey-4:     #4A4642;
  --bordeaux:   #7A2535;
  --bordeaux-l: #9B3548;

  --serif:  'Cormorant Garamond', 'Georgia', serif;
  --sans:   'DM Sans', 'Helvetica Neue', sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:  cubic-bezier(0.45, 0, 0.55, 1);

  --nav-h: 72px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--bordeaux); color: white; }

/* ── Layout ──────────────────────────────────────────────────── */
.wrap        { max-width: 1380px; margin: 0 auto; padding: 0 56px; }
.wrap-narrow { max-width: 900px;  margin: 0 auto; padding: 0 56px; }

/* ── Typography ──────────────────────────────────────────────── */
.t-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.t-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.t-sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.25;
  font-style: italic;
}
.t-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.9;
  color: var(--grey-3);
}
.t-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-3);
}
.t-accent { color: var(--bordeaux); }

/* ══════════════════════════════════════════════════════════════
   SKIP BUTTON
══════════════════════════════════════════════════════════════ */
#skip-btn {
  position: fixed;
  top: 28px;
  right: 40px;
  z-index: 999;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 9px 22px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  transition: all 0.3s;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.08);
}
#skip-btn:hover {
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.5);
}
#skip-btn.is-hidden { opacity: 0; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════
   TOUR
══════════════════════════════════════════════════════════════ */
#tour { position: relative; height: 650vh; }

/* White fade at bottom of tour — smooths the scroll-up transition back from site */
#tour::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50vh;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  z-index: 6;
}

#tour-canvas {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* Three.js canvas — sits behind all overlay divs */
#three-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Scene base */
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.scene-img {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

/* ── Scene 0: Welcome / Logo ──────────────────────────────── */
#sc-welcome {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 1;
  z-index: 5;
}

#welcome-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  /* Sit just above the centred logo instead of overlapping it.
     The logo is square, so half its height = half its width; add a gap. */
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  bottom: calc(50% + clamp(160px, 38vw, 520px) * 0.5 + 40px);
  opacity: 0;
  transform: translateY(12px);
}

#logo-wrap {
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 810;
  opacity: 0;
  pointer-events: none;
}

#logo-img {
  width: clamp(160px, 38vw, 520px);
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Hero video section */
#hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
#hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* Nav logo hidden — replaced by animated #logo-wrap */
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}
#nav .nav-logo-img { display: none; }
.footer-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Netflix-style rays */
#rays {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  pointer-events: none;
  opacity: 0;
}
.ray {
  position: absolute;
  top: 0; left: 0;
  width: 200vmax;
  height: 1.5px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 75%);
  opacity: 0;
}

/* White flash overlay */
#flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

/* Scroll hint */
#tour-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
#tour-hint.show { opacity: 1; }
#tour-hint span {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
}
.hint-line {
  width: 1px;
  height: 44px;
  background: rgba(0,0,0,0.2);
  animation: hint-pulse 2s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.2; }
  50%       { transform: scaleY(0.4); opacity: 0.7; }
}

/* ── Scene 1: Photo 2 ─────────────────────────────────────── */
#sc-photo2 {
  background-image: url('images/tour/photo2.jpg');
  background-size: cover;
  background-position: center;
}

/* ── Scene 2: Photo 3 (camera rotation) ──────────────────── */
#sc-photo3 {
  perspective: 900px;
}
#sc-photo3-img {
  position: absolute;
  inset: -5%;
  width: 110%; height: 110%;
  background-image: url('images/tour/photo3.jpg');
  background-size: cover;
  background-position: center;
  transform-origin: center center;
  will-change: transform;
}

/* ── Scene 3: Dusk→Day (sun transition) ──────────────────── */
#sc-sun {
  overflow: hidden;
}
/* Starting layer: Photo 3 (dusk) — visible from the start */
#sc-sun-from {
  position: absolute;
  inset: 0;
  background-image: url('images/tour/photo3.jpg');
  background-size: cover;
  background-position: center;
}
/* Ending layer: Photo 4 (day) — fades in as the sun rises */
#sc-sun-to {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: url('images/tour/photo4.jpg');
  background-size: cover;
  background-position: center;
}
#sun-orb {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5c8 0%, #ffd044 40%, rgba(255,150,40,0) 100%);
  filter: blur(3px);
  left: 52%;
  bottom: 40%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}
#sun-halo {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,80,0.18) 0%, rgba(255,150,40,0) 70%);
  left: 52%;
  bottom: 40%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
}

/* ── Scene 4: Zoom → Walk-in ──────────────────────────────── */
#sc-zoom {
  overflow: hidden;
}
#sc-zoom-base {
  position: absolute;
  inset: -10%;
  width: 120%; height: 120%;
  background-image: url('images/tour/photo4.jpg');
  background-size: cover;
  background-position: center top;
  transform-origin: 50% 28%;
  will-change: transform, opacity;
}
#sc-zoom-interior {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: url('images/tour/photo5.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform, opacity;
  transform: scale(1.06);
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: var(--nav-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s, background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#nav.show { opacity: 1; pointer-events: all; }
#nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--grey-1);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--black);
  cursor: pointer;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-3);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--bordeaux);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { width: 100%; }

/* ══════════════════════════════════════════════════════════════
   MAIN SITE
══════════════════════════════════════════════════════════════ */
#site {
  background: var(--white);
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
#about {
  padding: 160px 0 140px;
  border-bottom: 1px solid var(--grey-1);
}

.about-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 80px;
}
.about-rule {
  width: 36px;
  height: 1px;
  background: var(--bordeaux);
  flex-shrink: 0;
}

.about-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5.5vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 960px;
  margin-bottom: 80px;
}
.about-headline em { font-style: italic; color: var(--bordeaux); }

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--grey-1);
}

.about-body p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: var(--grey-3);
}
.about-body p + p { margin-top: 22px; }

.about-pull {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3;
  font-style: italic;
  color: var(--black);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--grey-1);
  margin-bottom: 28px;
}
.about-pull-attr {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey-2);
  font-style: normal;
}

/* ══════════════════════════════════════════════════════════════
   SELECTED WORKS
══════════════════════════════════════════════════════════════ */
#works {
  padding: 120px 0 160px;
}

.works-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 36px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--grey-1);
}
.works-top-left { display: flex; flex-direction: column; gap: 12px; }
.works-count {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey-2);
  padding-bottom: 4px;
}

/* Tours section divider */
.tours-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 64px 0 48px;
}
.tours-divider-line {
  flex: 1;
  height: 1px;
  background: var(--grey-1);
}
.tours-divider-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-3);
  white-space: nowrap;
}

/* Tours grid layout */
.tours-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tour-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--grey-1);
  aspect-ratio: 16/9;
}
.tour-card-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.tour-card:hover .tour-card-thumb { transform: scale(1.03); }
.tour-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
}
.tour-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 28px 24px;
  color: #fff;
}
.tour-card-title {
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  margin-bottom: 4px;
}
.tour-card-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}
.tour-card-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px;
  border-radius: 40px;
}

/* Panel: Kuula iframe */
.panel-tour-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
  margin-bottom: 48px;
}

/* Panel: download card */
.panel-download {
  margin-top: 48px;
  padding: 40px;
  background: var(--grey-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.panel-download-info { flex: 1; }
.panel-download-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.panel-download-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--grey-3);
  line-height: 1.6;
}
.panel-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--black);
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s;
}
.panel-download-btn:hover { background: var(--bordeaux); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Grid layout pattern — 14 cards */
.work-card { position: relative; overflow: hidden; cursor: pointer; background: var(--grey-1); }
.work-card:nth-child(1)  { grid-column: span 8;  aspect-ratio: 16/9; }
.work-card:nth-child(2)  { grid-column: span 4;  aspect-ratio: 3/4; }
.work-card:nth-child(3)  { grid-column: span 5;  aspect-ratio: 4/5; }
.work-card:nth-child(4)  { grid-column: span 7;  aspect-ratio: 16/10; }
.work-card:nth-child(5)  { grid-column: span 6;  aspect-ratio: 4/3; }
.work-card:nth-child(6)  { grid-column: span 6;  aspect-ratio: 4/3; }
.work-card:nth-child(7)  { grid-column: span 12; aspect-ratio: 21/8; }
.work-card:nth-child(8)  { grid-column: span 4;  aspect-ratio: 4/3; }
.work-card:nth-child(9)  { grid-column: span 4;  aspect-ratio: 4/3; }
.work-card:nth-child(10) { grid-column: span 4;  aspect-ratio: 4/3; }
.work-card:nth-child(11) { grid-column: span 7;  aspect-ratio: 16/10; }
.work-card:nth-child(12) { grid-column: span 5;  aspect-ratio: 4/5; }
.work-card:nth-child(13) { grid-column: span 4;  aspect-ratio: 3/4; }
.work-card:nth-child(14) { grid-column: span 8;  aspect-ratio: 16/9; }
.work-card:nth-child(15) { grid-column: span 12; aspect-ratio: 21/8; }

.work-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
  display: block;
}
.work-card:hover .work-thumb { transform: scale(1.05); }

.work-placeholder-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
}
.work-card:hover .work-overlay { opacity: 1; }

.work-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  transform: translateY(6px);
  transition: transform 0.4s var(--ease-out);
}
.work-card:hover .work-info { transform: none; }

.work-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.35s;
  display: block;
  margin-bottom: 4px;
}
.work-sub {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transition: opacity 0.35s 0.04s;
  display: block;
}
.work-card:hover .work-title,
.work-card:hover .work-sub { opacity: 1; }

.work-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}
.work-card:hover .work-arrow {
  opacity: 1;
  transform: scale(1);
}

/* ══════════════════════════════════════════════════════════════
   TRUSTED BY
══════════════════════════════════════════════════════════════ */
#clients {
  padding: 120px 0;
  background: var(--off-white);
  border-top: 1px solid var(--grey-1);
  border-bottom: 1px solid var(--grey-1);
}

.clients-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 72px;
  align-items: end;
}
.clients-intro-text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: var(--grey-3);
}

.clients-list {
  columns: 3;
  column-gap: 0;
  border-top: 1px solid var(--grey-2);
}
.client-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--grey-1);
  break-inside: avoid;
  transition: padding-left 0.3s;
}
.client-item:hover { padding-left: 10px; }

.client-name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--black);
  transition: color 0.3s;
  letter-spacing: 0.01em;
}
a.client-name:hover { color: var(--bordeaux); }

/* ══════════════════════════════════════════════════════════════
   TEAM
══════════════════════════════════════════════════════════════ */
#team {
  padding: 160px 0;
  background: var(--dark);
  color: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.team-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 48px;
}
.team-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 40px;
}
.team-heading em { font-style: italic; color: rgba(122, 37, 53, 0.9); }

.team-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,0.38);
}
.team-body + .team-body { margin-top: 20px; }

.team-visual {
  aspect-ratio: 4/5;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.12);
  /* Replace with team photo: background-image: url('images/team.jpg'); background-size: cover; */
}

/* ══════════════════════════════════════════════════════════════
   WORK WITH US
══════════════════════════════════════════════════════════════ */
#collaborate {
  padding: 180px 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-1);
  text-align: center;
}

.collab-rule {
  width: 36px; height: 2px;
  background: var(--bordeaux);
  margin: 0 auto 40px;
}
.collab-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5.5vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 36px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
.collab-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: var(--grey-3);
  max-width: 500px;
  margin: 0 auto 16px;
}
.collab-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--grey-2);
  margin-top: 28px;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
#contact {
  padding: 160px 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.06;
  margin-bottom: 28px;
}
.contact-heading em { font-style: italic; color: var(--bordeaux); }
.contact-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: var(--grey-3);
}

.contact-links { padding-top: 100px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--grey-2);
  transition: padding-left 0.3s;
  color: var(--black);
}
.contact-link:first-child { border-top: 1px solid var(--grey-2); }
.contact-link:hover { padding-left: 8px; }
.contact-link:hover .contact-label { color: var(--bordeaux); }

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-2);
  min-width: 32px;
  flex-shrink: 0;
}
.contact-link:hover .contact-icon { color: var(--bordeaux); }
.contact-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  transition: color 0.3s;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  padding: 32px 56px;
  border-top: 1px solid var(--grey-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
}
.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--grey-2);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--black);
}

/* ══════════════════════════════════════════════════════════════
   PROJECT PANEL (slide-up overlay)
══════════════════════════════════════════════════════════════ */
#project-panel {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: var(--white);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out);
  overscroll-behavior: contain;
}
#project-panel.open { transform: none; }

.panel-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  padding: 0 56px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey-1);
}
.panel-back {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-3);
  cursor: pointer;
  transition: color 0.3s;
}
.panel-back:hover { color: var(--bordeaux); }
.panel-back svg { transition: transform 0.3s; }
.panel-back:hover svg { transform: translateX(-4px); }

.panel-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 56px 160px;
}

.panel-hero {
  width: 100%;
  aspect-ratio: 21/9;
  background: var(--grey-1);
  overflow: hidden;
  margin-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.panel-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--grey-1);
}
.panel-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
}
.panel-meta { display: flex; flex-direction: column; gap: 20px; justify-content: flex-end; }
.panel-meta-item { display: flex; flex-direction: column; gap: 4px; }
.panel-meta-label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-2);
}
.panel-meta-value {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
}

.panel-summary {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: var(--grey-3);
  max-width: 680px;
  margin-bottom: 80px;
}
.panel-summary p { margin: 0 0 1.3em; }
.panel-summary p:last-child { margin-bottom: 0; }

.panel-gallery {
  columns: 2;
  column-gap: 4px;
}
.panel-img {
  break-inside: avoid;
  overflow: hidden;
  background: var(--grey-1);
  margin-bottom: 4px;
}
.panel-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out);
}
.panel-img:hover img { transform: scale(1.03); }
.panel-img-hero {
  column-span: all;
  margin-bottom: 4px;
}

/* Animation / video section */
.panel-animation {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--grey-1);
}
.panel-section-title {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 24px;
}
.panel-animation video {
  width: 100%;
  display: block;
  background: #000;
}

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  cursor: default;
  border-radius: 2px;
}
#lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
#lightbox-close:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .wrap, .wrap-narrow { padding: 0 28px; }

  .about-cols { grid-template-columns: 1fr; gap: 48px; }
  .clients-head { grid-template-columns: 1fr; gap: 40px; }
  .clients-list { columns: 2; }
  .team-grid { grid-template-columns: 1fr; gap: 60px; }
  .team-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-links { padding-top: 0; }

  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-card:nth-child(n) { grid-column: span 2; aspect-ratio: 4/3; }

  #nav { padding: 0 28px; }
  .panel-bar { padding: 0 28px; }
  .panel-body { padding: 48px 28px 120px; }
  .panel-header { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 28px; }
}

@media (max-width: 640px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(n) { grid-column: span 1; }
  .clients-list { columns: 1; }
  .panel-gallery { grid-template-columns: 1fr; }
  .panel-img:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .works-top { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Nav: the pinned corner logo is hidden on phones (it shows full-screen
     during the tour) so the 5 links get the full width and never overlap. */
  #logo-wrap.pinned { opacity: 0 !important; pointer-events: none; }
  #nav { justify-content: flex-end; padding: 0 18px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 9px; letter-spacing: 0.08em; }
}
