/* ═══════════════════════════════════════════════════════════════════════
   OMAR TAJMOUATI — Photography Portfolio
   Design: Jason O'Rear × Ema Peter hybrid
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Suisse International — @font-face ──────────────────────────────── */
@font-face {
  font-family: 'Suisse Intl';
  src: url('/static/fonts/SuisseIntl-Thin.woff2') format('woff2'),
       url('/static/fonts/SuisseIntl-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('/static/fonts/SuisseIntl-Light.woff2') format('woff2'),
       url('/static/fonts/SuisseIntl-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('/static/fonts/SuisseIntl-Regular.woff2') format('woff2'),
       url('/static/fonts/SuisseIntl-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Suisse Intl';
  src: url('/static/fonts/SuisseIntl-SemiBold.woff2') format('woff2'),
       url('/static/fonts/SuisseIntl-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ─── Matter SQ Mono (for + Info button) ─────────────────────────────── */
@font-face {
  font-family: 'Matter SQ Mono';
  src: url('/static/fonts/MatterSQMono-Regular.woff2') format('woff2'),
       url('/static/fonts/MatterSQMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Aktiv Grotesk VF (variable font — for nav) ─────────────────────── */
@font-face {
  font-family: 'Aktiv Grotesk';
  src: url('/static/fonts/AktivGroteskVF.woff2') format('woff2'),
       url('/static/fonts/AktivGroteskVF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Custom Properties ──────────────────────────────────────────── */
:root {
  --color-bg: #FAFAFA;
  --color-text: #1F1F1F;
  --color-text-light: #666;
  --color-accent: #FC048E;
  --color-accent-2: #A9AF8B;
  --color-overlay: rgba(255,255,255,0.3);
  --color-dark: #1a1a1a;
  --color-dark-overlay: rgba(0,0,0,0.6);
  
  --font-heading: 'Suisse Intl', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Suisse Intl', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --header-height: 100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

::selection {
  background: #000;
  color: #000;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ─── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 2rem 0;
  background: transparent;
  transition: background var(--transition), opacity 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled {
  background: transparent;
  backdrop-filter: none;
}

.site-header.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

/* Desktop nav links */
.header-nav-desktop {
  display: none;
  align-items: center;
  gap: 1.8em;
  font-family: 'Aktiv Grotesk', var(--font-body);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-nav-link:hover {
  opacity: 1;
}

.header-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-nav-link.active {
  opacity: 0.4;
}

@media (min-width: 769px) {
  .header-nav-desktop {
    display: flex;
  }
}

.site-header::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(60px + env(safe-area-inset-top, 0px));
  background: transparent;
  pointer-events: none;
  z-index: -1;
}

/* Full bleed — content extends to edges */
html, body {
  background: var(--color-bg, #FAFAFA);
}

@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.site-header.dark {
  color: #fff;
}

.site-header.dark.scrolled {
  background: rgba(26,26,26,0.95);
}

/* Logo — SVG mask approach (color controlled via CSS currentColor) */
.header-logo a {
  display: block;
  position: relative;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.header-logo {
  align-self: flex-start;
  margin-left: -0.5rem;
  margin-top: 5px;
  overflow: visible;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo .logo-icon {
  height: 100%;
  display: flex;
  align-items: center;
}

.header-logo .logo-icon img {
  height: 61px;
  width: auto;
}

.header-logo .logo-icon .logo-icon-hover {
  display: none;
}

.header-logo:hover .logo-icon .logo-icon-default {
  display: none;
}

.header-logo:hover .logo-icon .logo-icon-hover {
  display: block;
}

.header-logo a:hover {
  color: #FC048E;
}

/* SVG logo — show default, swap to pink on hover */
.header-logo .logo-img {
  display: block;
  height: 61px;
  width: auto;
}

.header-logo .logo-hover {
  display: none;
}

.header-logo a:hover .logo-default {
  display: none;
}

.header-logo a:hover .logo-hover {
  display: block;
}

/* Underline that slides in from left on hover (under PHOTOGRAPHY line) */
.header-logo a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 8px;
}

.header-logo a:hover::after {
  width: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Center "+" — always page-centered */
.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-center a,
.header-center button {
  font-family: 'Matter SQ Mono', Monaco, 'Lucida Console', monospace;
  font-size: 24px;
  font-weight: 400;
  font-style: normal;
  line-height: 24px;
  letter-spacing: normal;
  margin-top: 10px;
  color: #000;
}

.site-header.dark .header-center a {
  color: #000;
}

/* Grid icon — links to Works page */
.grid-icon {
  color: #000;
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  margin-top: 12px;
}
.grid-icon:hover {
  opacity: 1;
  color: var(--color-accent);
}
.site-header.dark .grid-icon {
  color: #000;
}

/* Hamburger — 2 bars (like Jason O'Rear) */
.hamburger {
  width: 48px;
  height: 40px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  display: block;
  text-decoration: none;
  color: inherit;
  margin-right: calc(-0.75rem + 5px);
  margin-top: 12px;
}

.hamburger span {
  display: block;
  height: 3.5px;
  background: currentColor;
  position: absolute;
  right: 0;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center center;
}

.hamburger span:nth-child(1) { top: 6px; width: 100%; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); width: 100%; }
.hamburger span:nth-child(3) { bottom: 6px; width: 100%; }

/* Hover: bars shrink staggered from right + turn pink */
.hamburger:hover span {
  background: #FC048E;
}
.hamburger:hover span:nth-child(1) { width: 80%; }
.hamburger:hover span:nth-child(2) { width: 61%; }
.hamburger:hover span:nth-child(3) { width: 41%; }

/* Open state: cross */
.hamburger.is-open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 100%;
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger.is-open span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 100%;
}

/* Open + hover: cross turns pink */
.hamburger.is-open:hover span {
  background: #FC048E;
}

/* ─── Mobile Menu Overlay ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--color-accent);
}

/* ─── Hero Slideshow (Homepage) ──────────────────────────────────────── */
.hero-slideshow {
  position: fixed;
  inset: 0;
  background: #111;
  overflow: hidden;
}

.hero-slideshow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-slideshow::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translate(200%, 0%);
}

.hero-slide.active {
  z-index: 2;
}

.hero-slide.entering {
  z-index: 2;
}

.hero-slide.leaving {
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fp-desktop, 50% 50%);
}

@media (max-width: 768px) {
  .hero-slide img {
    object-position: var(--fp-mobile, var(--fp-desktop, 50% 50%));
  }
}

/* Hero Navigation */
.hero-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem 2rem;
  color: #fff;
  background: transparent;
  font-family: 'Aktiv Grotesk', var(--font-body);
  font-size: 25px;
  font-weight: 350;
  letter-spacing: 0.01em;
}

/* Mobile: counter above line */
.hero-nav-top {
  display: none;
  margin-bottom: 8px;
}

.hero-counter {
  display: none;
}

/* Counters hidden */
.hero-counter--desktop {
  display: none;
}

.hero-counter--mobile {
  display: none;
}

.hero-progress {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
}

.hero-progress-bar {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}

.hero-nav-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.hero-nav-bottom-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.hero-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: #fff;
}

.hero-arrow:hover {
  opacity: 1;
  transform: translateX(4px);
}

.hero-arrow svg {
  width: 30px;
  height: 24px;
}

@media (max-width: 768px) {
  .hero-nav {
    font-size: 16.4px;
    padding: 0 1rem 1.5rem;
  }
  .hero-counter--mobile {
    display: none;
  }
  .hero-counter--desktop {
    display: none;
  }
  .hero-arrow svg {
    width: 14.4px;
    height: 11.5px;
  }
}

.hero-info {
  text-align: left;
  margin-left: 0;
}

.hero-info .project-name {
  font-family: 'Aktiv Grotesk', var(--font-heading);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
  font-weight: inherit;
  line-height: 1.1;
}

.hero-info .project-name .name-text {
  font-weight: 500;
}

.hero-info .project-name .architect-text {
  font-weight: 350;
}

.hero-info .project-name a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
}

.hero-info .project-name a .name-text {
  position: relative;
  padding-bottom: 2px;
}

.hero-info .project-name a .name-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-info .project-name a:hover .name-text::after {
  width: 100%;
}

.hero-info .project-name a .arrow-icon {
  width: 1.275em;
  height: 1.275em;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.hero-info .project-name a:hover {
  color: #fff;
}

.hero-info .project-architect {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-top: 0;
}

.hero-number {
  font-family: var(--font-body);
  font-size: 90px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.4;
  overflow: hidden;
}

@media (min-width: 769px) {
  .hero-number {
    font-size: 160px;
  }
}

/* ─── Wayfinder (Menu Page) ──────────────────────────────────────────── */
.wayfinder {
  position: fixed;
  inset: 0;
  display: flex;
  background: var(--color-accent-2);
}

.wayfinder-col {
  width: 33.333%;
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

/* Column separator lines */
.wayfinder-col + .wayfinder-col {
  border-left: 1px solid rgba(255,255,255,0.4);
}

/* All columns clip overflow for text reveal animation */

.wayfinder-col a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20vh;
  line-height: 0.82;
  letter-spacing: -0.03em;
  padding: 22px;
  text-decoration: none;
  color: #fff;
}

/* Inner wrapper for text + subtitle (block flow in vertical-rl) */
.wayfinder-col .col-inner {
  display: block;
  position: relative;
}

.wayfinder-col .col-text-wrap {
  overflow: hidden;
  position: relative;
  margin-right: 0;
}

.wayfinder-col .col-text {
  display: block;
  margin-right: 1.5vw;
  padding-bottom: 2rem;
  transition: color 0.3s ease;
  position: relative;
}

/* Hover: text turns PINK (only the hovered column) */
.wayfinder-col:hover .col-text {
  color: #F92EAB;
}

/* EMAIL column text: same as others (white by default, pink on hover) */

/* Hide old underline div — cursor now via ::after on col-text */
.wayfinder-col .col-underline {
  display: none;
}

/* Blinking cursor — pseudo-element on text, matches width exactly */
.wayfinder-col .col-text::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: #F92EAB;
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wayfinder-col:hover .col-text::after {
  opacity: 1;
  animation: blink 1s step-end infinite;
}

/* Sub-text (Biography, Selected projects, Reach Out) — BELOW main text */
.wayfinder-col .col-sub {
  display: none;
  font-family: var(--font-body);
  font-size: 1.32rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: currentColor;
  margin-right: 0.3vw;
  white-space: nowrap;
  transition: color 0.3s ease;
}

@media (min-width: 769px) {
  .wayfinder-col .col-sub {
    display: block;
  }
}

.wayfinder-col .col-sub span {
  opacity: 0;
  transition: opacity 0.3s ease, margin-top 0.3s ease, color 0.3s ease;
  display: block;
}

/* Sub-text also turns PINK on hover */
.wayfinder-col:hover .col-sub span {
  opacity: 1;
  margin-top: 2.5%;
  color: #F92EAB;
}

/* Column separator lines */

/* Wayfinder page — transparent header */
.page-wayfinder .site-header {
  background: transparent !important;
}

/* Hamburger on wayfinder: starts white/normal, turns pink+shrinks on hover */
.page-wayfinder .hamburger span {
  transition: all 0.3s ease-in-out;
}

/* Hamburger on wayfinder: only reacts to its OWN hover (not column hover) */

/* ─── Works Grid ─────────────────────────────────────────────────────── */
.works-page {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
  min-height: 100vh;
}

.works-page.no-title {
  padding-top: calc(var(--header-height) + 1rem);
}

.works-page .page-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text-light);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 0.75rem;
  margin-top: 10px;
}

.work-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition);
}

.work-item:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fp-desktop, 50% 50%);
  transition: transform var(--transition-slow);
}

@media (max-width: 768px) {
  .work-item img {
    object-position: var(--fp-mobile, var(--fp-desktop, 50% 50%));
  }
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

/* Desktop: overlay on hover */
.work-item .overlay {
  display: flex;
}
.work-item:hover .overlay {
  opacity: 1;
}

/* Mobile: overlay visible on touch */
@media (max-width: 768px) {
  .work-item .overlay {
    display: flex;
  }
  .work-item:active .overlay {
    opacity: 1;
  }
}

.work-item .overlay .overlay-name {
  font-family: 'Aktiv Grotesk', var(--font-heading);
  font-size: 1.43rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1a1a1a;
  text-align: center;
  padding: 0 0.75rem;
  line-height: 1.15;
}

.work-item .overlay .overlay-architect {
  font-family: 'Aktiv Grotesk', var(--font-body);
  font-size: 0.975rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #555;
  margin-top: 0.1rem;
  text-align: center;
  padding: 0 0.75rem;
  line-height: 1;
}

/* ─── Individual Project Page ────────────────────────────────────────── */
.project-page {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
  min-height: 100vh;
}

.project-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.project-header h1 {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  gap: 3rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  flex-wrap: wrap;
}

.project-meta dt {
  font-weight: 400;
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

.project-meta dd {
  font-weight: 700;
  color: var(--color-text);
}

/* Photo Grid — justified rows (2-4 photos per row, aspect ratio preserved) */
.project-photos {
  padding: 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.project-photos .photo-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.project-photos .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
  object-position: var(--fp-desktop, 50% 50%);
}

@media (max-width: 768px) {
  .project-photos .photo-item img {
    object-position: var(--fp-mobile, var(--fp-desktop, 50% 50%));
  }
}

.project-photos .photo-item:hover img {
  transform: scale(1.02);
}

/* Project Navigation (prev/next) */
.project-nav {
  margin: 1.5rem 0 0;
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: none;
  position: relative;
}

.project-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  line-height: 1.2;
  text-decoration: none;
}

.project-nav a:hover {
  color: var(--color-text);
}

.project-nav a .nav-text-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.project-nav a.nav-next {
  text-align: right;
}

.project-nav a.nav-next .nav-text-block {
  align-items: flex-end;
}

.project-nav a .label {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  color: #000;
  text-transform: none;
}

.project-nav a .name {
  font-family: 'Aktiv Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  color: #000;
  text-transform: none;
  letter-spacing: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.project-nav a .architect {
  font-family: 'Aktiv Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  color: rgba(0, 0, 0, 0.5);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-top: -0.1rem;
}

.project-nav a .nav-arrow {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  align-self: stretch;
}

.project-nav a .nav-arrow svg {
  width: 14px;
  height: 100%;
  min-height: 2.5rem;
  stroke: #000;
  stroke-width: 0.8px;
  fill: none;
  transition: transform 0.3s ease;
}

.project-nav a.nav-next:hover .nav-arrow svg {
  transform: translateX(4px);
}

.project-nav a.nav-prev:hover .nav-arrow svg {
  transform: translateX(-4px);
}

/* ─── Lightbox ───────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

/* Extend white background beyond viewport to cover iOS bars */
.lightbox::before {
  content: '';
  position: fixed;
  top: -100vh;
  left: -100vw;
  right: -100vw;
  bottom: -100vh;
  background: #fff;
  z-index: -1;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: calc(1.5rem);
  right: 2rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 2001;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 1px;
  background: #000;
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  padding: 2rem;
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 28px;
  height: 48px;
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-counter {
  position: absolute;
  bottom: calc(1.5rem);
  right: 2rem;
  color: #000;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.5;
}

/* Mobile lightbox — clean, arrows at bottom, margins */
@media (max-width: 768px) {
  .lightbox img {
    max-width: calc(100vw - 30px);
    max-height: 85vh;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .lightbox-close {
    top: calc(0.5rem + env(safe-area-inset-top, 0));
    right: 0.5rem;
    width: 30px;
    height: 30px;
    z-index: 2002;
  }
  
  .lightbox-close::before,
  .lightbox-close::after {
    width: 30px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: calc(0.8rem + env(safe-area-inset-bottom, 0));
    transform: none;
    padding: 1rem 1.5rem;
    opacity: 0.8;
  }
  
  .lightbox-prev svg,
  .lightbox-next svg {
    width: 12px;
    height: 20px;
  }
  
  .lightbox-prev {
    left: 1rem;
  }
  
  .lightbox-next {
    right: 1rem;
  }
  
  .lightbox-counter {
    display: none;
  }
  
  /* Hide header when lightbox is active */
  body.lightbox-open .site-header {
    display: none !important;
  }
}

/* ─── About Page ─────────────────────────────────────────────────────── */
.about-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.about-page h1 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-portrait {
  aspect-ratio: 3/4;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.about-clients {
  margin-top: 4rem;
}

.about-clients h2 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.client-list {
  columns: 2;
  gap: 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  line-height: 2;
  color: var(--color-text);
}

/* ─── Contact Page ───────────────────────────────────────────────────── */
.contact-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  min-height: 100vh;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-page h1 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

.contact-email {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.contact-email:hover::after {
  width: 100%;
}

.contact-socials {
  display: flex;
  gap: 2rem;
}

.contact-socials a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.contact-socials a:hover {
  color: var(--color-text);
}

/* ─── Admin Panel ────────────────────────────────────────────────────── */
.admin-page {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  color: var(--color-text);
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-danger {
  border-color: #e74c3c;
  color: #e74c3c;
}
.btn-danger:hover {
  background: #e74c3c;
  color: #000;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
}

/* Admin Projects Grid */
.admin-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.admin-project-card {
  position: relative;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.admin-project-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.admin-project-card .card-thumb {
  aspect-ratio: 16/10;
  background: #f0f0f0;
  overflow: hidden;
}

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

.admin-project-card .card-body {
  padding: 1rem;
}

.admin-project-card .card-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.admin-project-card .card-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.admin-project-card .card-actions {
  display: flex;
  gap: 0.5rem;
}

/* Admin Editor */
.editor-form {
  max-width: 800px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-text);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed #ddd;
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1.5rem;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-text);
  background: #f9f9f9;
}

.upload-zone p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

/* Photo thumbnails in admin */
.admin-photos-grid {
  margin-top: 1rem;
}

.orient-section {
  margin-bottom: 1.5rem;
}
.orient-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
  opacity: 0.5;
}

.orient-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.orient-grid-landscape .admin-photo-item {
  width: calc(50% - 0.375rem);
}
.orient-grid-portrait .admin-photo-item {
  width: calc(33.33% - 0.5rem);
}

.admin-photo-item {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: grab;
  transition: opacity 0.15s, transform 0.15s;
}

.admin-photo-item.is-cover {
  border-color: var(--color-accent);
}

.admin-photo-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Selection */
.admin-photo-item.selected {
  outline: 3px solid var(--color-accent, #FC048E);
  outline-offset: -3px;
}
.admin-photo-item.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  background: var(--color-accent, #FC048E);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  z-index: 6;
}

/* SortableJS ghost & drag */
.admin-photo-item.sortable-ghost {
  opacity: 0.3;
}
.admin-photo-item.sortable-chosen {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Insertion indicator */
.insert-indicator {
  width: 3px;
  background: var(--color-accent, #FC048E);
  border-radius: 2px;
  align-self: stretch;
  min-height: 80px;
  pointer-events: none;
  flex-shrink: 0;
  animation: pulse-indicator 1s ease-in-out infinite;
}
@keyframes pulse-indicator {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Selection toolbar */
.selection-toolbar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 0.75rem;
}
.selection-toolbar.visible { display: flex; }
.selection-toolbar .sel-count {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}
.selection-toolbar button {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
}
.selection-toolbar button:hover {
  background: rgba(255,255,255,0.12);
  color: #000;
}

.admin-photo-item .photo-actions {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 5;
}

.admin-photo-item:hover .photo-actions {
  opacity: 1;
}

.admin-photo-item .photo-actions button {
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-photo-item .photo-actions button:hover {
  background: rgba(220, 38, 38, 0.9);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-dark);
  color: #000;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Page Loader Overlay ────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
  pointer-events: all;
}

/* When coming FROM wayfinder, loader matches olive bg */
.page-loader.from-wayfinder {
  background: var(--color-accent-2);
}

.page-loader.done {
  opacity: 0;
  pointer-events: none;
}

/* ─── Page Transition Overlay ────────────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* Wayfinder transition: olive bg, logo stays visible */
.page-wayfinder .page-transition {
  background: var(--color-accent-2);
}

.page-wayfinder .site-header {
  z-index: 10000;
}

/* ─── Header Intro Animations ────────────────────────────────────────── */
@keyframes headerLogoIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes headerFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hide header elements until loaded */
.header-logo,
.header-center,
.hamburger {
  opacity: 0;
}

body.loaded .header-logo {
  animation: headerLogoIn 0.6s ease forwards;
  animation-delay: 0.3s;
}

body.loaded .header-center {
  animation: headerFadeIn 0.5s ease forwards;
  animation-delay: 0.5s;
}

body.loaded .hamburger {
  animation: headerFadeIn 0.5s ease forwards;
  animation-delay: 0.7s;
}

/* ─── Hero Slideshow Animations ──────────────────────────────────────── */
.hero-slide img {
  will-change: transform;
  transform: scale(1.2);
}

.hero-slide.active img {
  /* JS handles transitions */
}

/* Hero Bottom Bar — stagger in */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroNumberIn {
  from { opacity: 0; transform: scale(1.4); }
  to   { opacity: 0.4; transform: scale(1); }
}

.hero-nav .hero-progress,
.hero-nav .hero-nav-bottom,
.hero-nav .hero-nav-top {
  opacity: 0;
}

body.loaded .hero-nav .hero-progress {
  animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: 0.8s;
}

body.loaded .hero-nav .hero-nav-bottom,
body.loaded .hero-nav .hero-nav-top {
  animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: 0.9s;
}

/* Hero number transition on slide change */
.hero-number {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero-number.changing {
  opacity: 0 !important;
  transform: scale(1.3) !important;
}

/* ─── Hamburger Hover Animation ──────────────────────────────────────── */
/* (Handled in the main hamburger section above) */

/* ─── "+" Button Hover Animation ─────────────────────────────────────── */
.header-center a {
  transition: transform 0.3s ease;
  will-change: transform;
  display: block;
}

.header-center a:hover {
  transform: rotate(90deg) scale(1.1);
}

/* ─── Wayfinder Column Animations ────────────────────────────────────── */

/* Columns: subtle fade in */
@keyframes wayfinderColIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Text reveal: slides out from behind the overflow-hidden mask */
@keyframes wayfinderTextReveal {
  from { transform: translateX(100%) translateZ(0px); }
  to   { transform: translateX(0%) translateZ(0px); }
}

/* Separator line grows in */
@keyframes wayfinderLineIn {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.wayfinder-col {
  opacity: 0;
}

body.loaded .wayfinder-col:nth-child(1) {
  animation: wayfinderColIn 0.15s ease forwards;
  animation-delay: 0s;
}

body.loaded .wayfinder-col:nth-child(2) {
  animation: wayfinderColIn 0.15s ease forwards;
  animation-delay: 0s;
}

body.loaded .wayfinder-col:nth-child(3) {
  animation: wayfinderColIn 0.15s ease forwards;
  animation-delay: 0s;
}

/* Text starts off-screen (clipped by overflow:hidden on .col-text-wrap) */
.wayfinder-col .col-text {
  transform: translateX(100%) translateZ(0px);
  will-change: transform;
}

body.loaded .wayfinder-col:nth-child(1) .col-text {
  animation: wayfinderTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.05s;
}

body.loaded .wayfinder-col:nth-child(2) .col-text {
  animation: wayfinderTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.15s;
}

body.loaded .wayfinder-col:nth-child(3) .col-text {
  animation: wayfinderTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.25s;
}

/* Separator lines reveal top-to-bottom */
.wayfinder-col + .wayfinder-col {
  border-left: none; /* replaced by pseudo-element for animation */
}

.wayfinder-col + .wayfinder-col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.15);
  transform-origin: top;
  transform: scaleY(0);
}

body.loaded .wayfinder-col:nth-child(2)::before {
  animation: wayfinderLineIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

body.loaded .wayfinder-col:nth-child(3)::before {
  animation: wayfinderLineIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.35s;
}

/* Subtitles: hidden by default, appear only on column hover (set above) */

/* ─── Works Grid Scroll Animation ────────────────────────────────────── */
.work-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.work-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Scroll Animation ───────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 0.5rem;
  }
  
  .work-item .overlay .overlay-name {
    font-size: 1.8rem;
  }
  .work-item .overlay .overlay-architect {
    font-size: 1rem;
  }
  
  
  
  

  /* Logo shrinks at medium screens */
  .header-logo .logo-img {
    width: 160px;
  }

  /* Wayfinder text: 50% bigger, scale with width capped by height */
  .wayfinder-col .col-text {
    font-size: min(27vw, 27vh);
  }
  
  .wayfinder-col .col-sub {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem 0;
  }
  
  .header-logo {
    margin-left: 0.25rem;
    margin-top: 5px;
  }
  
  .works-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .work-item .overlay .overlay-name {
    font-size: 2.2rem;
  }
  .work-item .overlay .overlay-architect {
    font-size: 1.2rem;
  }
  
  .project-photos {
    padding: 0 0.5rem;
  }
  
  .photo-row {
    flex-direction: column;
  }
  
  .project-photos .photo-item {
    max-height: 75vh;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .client-list {
    columns: 1;
  }
  
  .hero-number {
    font-size: 60px;
  }
  
  /* Logo bigger on mobile (except wayfinder) */
  .header-logo .logo-img {
    width: 210px;
  }
  .header-logo {
    margin-left: calc(-0.25rem + 5px);
  }

  /* Hamburger smaller at mobile — right edge aligned with content */
  .hamburger {
    width: 44px;
    height: 32px;
    margin-right: 0.25rem;
  }
  .hamburger span:nth-child(1) { top: 6px; }
  .hamburger span:nth-child(3) { bottom: 6px; }
  .hamburger span { height: 3px; }

  /* "+" bigger on mobile */
  .header-center a,
  .header-center button {
    font-size: 22px;
  }

  /* Wayfinder at 768px — keep 3 columns, text fills width */
  .wayfinder-col .col-text {
    font-size: min(24vw, 21vh);
  }

  .wayfinder-col .col-sub {
    font-size: 0.85rem;
    display: none !important;
  }

  .wayfinder-col .col-underline {
    display: none;
  }

  .hero-nav {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  /* Nav prev/next — arrows fixed, text wraps */
  .project-nav {
    padding: 2rem 1.5rem;
  }
  
  .project-nav a {
    gap: 0.75rem;
    max-width: 45%;
  }
  
  .project-nav a .name {
    font-size: 0.85rem;
    line-height: 1.3;
    word-break: break-word;
  }
  
  .project-nav a .architect {
    font-size: 0.6rem;
  }
  
  .project-nav a .nav-arrow {
    flex-shrink: 0;
  }
  
  .project-nav a .nav-arrow svg {
    width: 12px;
    height: 22px;
  }
}

@media (max-width: 540px) {
  /* Wayfinder mobile — keep 3 columns with vertical text (like Jason O'Rear) */
  .wayfinder-col .col-text {
    font-size: min(20vw, 18vh);
  }
}

@media (max-width: 480px) {
  .header-logo a {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }
  
  .hero-nav-buttons {
    gap: 1rem;
  }
}

/* ── Wayfinder Overlay ── */
.wayfinder-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-accent-2);
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.wayfinder-overlay.is-closing {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.wayfinder-overlay.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

/* When overlay open, header switches to white */
.site-header.wayfinder-active {
  color: #fff !important;
  z-index: 1001;
}

.site-header.wayfinder-active .logo-default {
  display: none !important;
}

.site-header.wayfinder-active .logo-hover-white {
  display: block !important;
}

.site-header.wayfinder-active .hamburger span {
  background: #fff !important;
}

.site-header.wayfinder-active .hamburger:hover span {
  background: #F92EAB !important;
}

/* Text reveal in overlay */
.wayfinder-overlay .wayfinder-col .col-text {
  transform: translateX(100%) translateZ(0px);
}

.wayfinder-overlay.is-open .wayfinder-col:nth-child(1) .col-text {
  animation: wayfinderTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.15s;
}

.wayfinder-overlay.is-open .wayfinder-col:nth-child(2) .col-text {
  animation: wayfinderTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.25s;
}

.wayfinder-overlay.is-open .wayfinder-col:nth-child(3) .col-text {
  animation: wayfinderTextReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.35s;
}

/* Column animations in overlay */
.wayfinder-overlay .wayfinder-col {
  opacity: 0;
}

.wayfinder-overlay.is-open .wayfinder-col:nth-child(1) {
  animation: wayfinderColIn 0.15s ease forwards;
  animation-delay: 0.1s;
}

.wayfinder-overlay.is-open .wayfinder-col:nth-child(2) {
  animation: wayfinderColIn 0.15s ease forwards;
  animation-delay: 0.2s;
}

.wayfinder-overlay.is-open .wayfinder-col:nth-child(3) {
  animation: wayfinderColIn 0.15s ease forwards;
  animation-delay: 0.3s;
}
