/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; font: inherit; cursor: pointer; outline: none; }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ─── Variables ────────────────────────────────────── */
:root {
  --white:  #ffffff;
  --paper:  #f4f3ef;
  --rule:   #e2dfd8;
  --ink:    #111111;
  --logo-grey: #3f4040;
  --mid:    #555555;
  --soft:   #999999;
  --sans:   'Jost', sans-serif;
  --nav-font: 'IBM Plex Sans', sans-serif;

  /* Brightened filters for architectural clarity */
  --img-filter: saturate(0.9) sepia(0.03) contrast(1.02) brightness(1.02);
  --img-filter-hover: saturate(1) sepia(0) contrast(1.03) brightness(1.08);
  /* Lightened overlay to remove shadow depth from thumbnails */
  --portfolio-overlay: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 40%, rgba(15,14,12,0.1) 100%);
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

/* ─── Layout Wrappers ──────────────────────────────── */
.container {
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
}

/* ─── Custom Cursor ────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, select, [role="button"], label, .disc-projects-label { 
    cursor: none !important; 
  }
  .cur {
    position: fixed; pointer-events: none; z-index: 9999;
    width: 6px; height: 6px;
    background: var(--ink); border-radius: 50%;
    transform: translate(-50%,-50%);
  }
  .cur-ring {
    position: fixed; pointer-events: none; z-index: 9998;
    width: 32px; height: 32px;
    border: 1px solid rgba(26,26,24,.3); border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
  }
  
  /* hide default leaflet grab cursors so our custom cursor works */
  .leaflet-interactive, .leaflet-container { cursor: none !important; }
}

@media (hover: none) and (pointer: coarse) {
  body, a, button, input, textarea, select, [role="button"], label { cursor: auto !important; }
  .cur, .cur-ring { display: none !important; }
}

/* ─── SPA View Controller ──────────────────────────── */
.view { display: none; }
.view.active { display: block; }

/* A11y: Focus Indicators */
.view:focus { outline: none; }
.proj-title { outline: none; }
.view:focus-visible, .proj-title:focus-visible { 
  outline: 2px solid var(--ink); 
  outline-offset: 4px; 
  border-radius: 2px; 
}

/* Prevent transitions during view switches */
body.no-transitions, body.no-transitions * { transition: none !important; }

/* ─── GLOBAL NAVIGATION ────────────────────────────── */
nav#nav {
  position: relative;
  z-index: 200;
  padding: 2.5rem 0;
  background: var(--white);
}

/* Transparent sticky nav for Home AND Project Detail */
body.view-home nav#nav,
body.view-project-detail nav#nav,
body.page-home nav#nav,
body.page-project nav#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 2.5rem 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}

body.view-home .nav-logo,
body.view-project-detail .nav-logo,
body.page-home .nav-logo,
body.page-project .nav-logo { color: #fff; }
body.view-home .nav-links a,
body.view-project-detail .nav-links a,
body.page-home .nav-links a,
body.page-project .nav-links a { color: #fff; }
body.view-home .nav-links a:hover,
body.view-project-detail .nav-links a:hover,
body.page-home .nav-links a:hover,
body.page-project .nav-links a:hover { color: rgba(255,255,255,0.7); }
body.view-home .menu-toggle span,
body.view-project-detail .menu-toggle span,
body.page-home .menu-toggle span,
body.page-project .menu-toggle span { background: #fff; }

/* Revert to solid background and dark text when scrolled past hero */
body.view-home.hero-past nav#nav,
body.view-project-detail.hero-past nav#nav,
body.page-home.hero-past nav#nav,
body.page-project.hero-past nav#nav { 
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
body.view-home.hero-past .nav-logo,
body.view-project-detail.hero-past .nav-logo,
body.page-home.hero-past .nav-logo,
body.page-project.hero-past .nav-logo { color: var(--logo-grey); }
body.view-home.hero-past .nav-links a,
body.view-project-detail.hero-past .nav-links a,
body.page-home.hero-past .nav-links a,
body.page-project.hero-past .nav-links a { color: var(--ink); }
body.view-home.hero-past .nav-links a:hover,
body.view-project-detail.hero-past .nav-links a:hover,
body.page-home.hero-past .nav-links a:hover,
body.page-project.hero-past .nav-links a:hover { color: var(--mid); }
body.view-home.hero-past .menu-toggle span,
body.view-project-detail.hero-past .menu-toggle span,
body.page-home.hero-past .menu-toggle span,
body.page-project.hero-past .menu-toggle span { background: var(--ink); }

/* Contrast overrides for transparent heroes */
body.view-home:not(.hero-past) .nav-logo,
body.view-project-detail:not(.hero-past) .nav-logo,
body.page-home:not(.hero-past) .nav-logo,
body.page-project:not(.hero-past) .nav-logo { color: #fff; }
body.view-home:not(.hero-past) .nav-links a,
body.view-project-detail:not(.hero-past) .nav-links a,
body.page-home:not(.hero-past) .nav-links a,
body.page-project:not(.hero-past) .nav-links a { color: #fff; }
body.view-home:not(.hero-past) .nav-links a:hover,
body.view-project-detail:not(.hero-past) .nav-links a:hover,
body.page-home:not(.hero-past) .nav-links a:hover,
body.page-project:not(.hero-past) .nav-links a:hover { color: rgba(255,255,255,0.7); }
body.view-home:not(.hero-past) .menu-toggle span,
body.view-project-detail:not(.hero-past) .menu-toggle span,
body.page-home:not(.hero-past) .menu-toggle span,
body.page-project:not(.hero-past) .menu-toggle span { background: #fff; }

.nav-container { 
  display: flex; align-items: flex-end; justify-content: space-between; 
  max-width: 1800px; margin: 0 auto; padding: 0 4rem;
}
.nav-logo-link { display: block; line-height: 0; }
.nav-logo { height: 62px; width: auto; display: block; color: var(--logo-grey); transition: color 0.4s ease; margin-left: -5px; }

.nav-links { 
  display: flex; gap: 2rem; list-style: none; 
  transform: translateY(2px); /* Optical baseline alignment with ARCHITECTURE text */
}
.nav-links a {
  font-family: var(--nav-font); font-size: .75rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  transition: color .4s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: currentColor; transition: width .4s ease;
}
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--mid); }

/* ─── PAGE STICKY TITLE BAR ────────────────────────── */
.page-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--white);
  padding: 4rem 0 1.5rem; /* Increased top space, reduced bottom space */
}

.page-sticky-inner {
  max-width: 1800px; 
  margin: 0 auto;
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  gap: 1.25rem;
  padding: 0 4rem;
}

/* Updated Page Title styling to match Live Site */
.page-title {
  font-family: var(--sans) !important;
  font-size: 1.2rem !important; 
  font-weight: 500 !important; 
  color: var(--logo-grey) !important; 
  text-transform: uppercase !important; 
  letter-spacing: 0.1em !important; 
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
  margin: 0 !important;
}

/* ==========================================================================
   PORTFOLIO SUB-MENU SYSTEM
   ========================================================================== */

.work-sub-menu { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 2rem; 
  list-style: none; 
  border-bottom: 1px solid var(--rule); /* Perfectly matches 1px weight & color of the footer line */
  margin: 0 auto;
  padding: 0;
  position: relative !important; /* Required for perfect alignment of sliding line elements */
}

.work-sub-menu li {
  display: block;
  margin-bottom: -1px; /* Overlaps the 1px grey border flawlessly across all browsers */
}

/* Updated Sub-menu styling to match main navigation font, size, and weight */
.work-sub-menu a {
  display: block;
  padding-bottom: 0.75rem; /* Precise spacing above the thin rule */
  font-family: var(--sans) !important; 
  font-size: .72rem !important; 
  font-weight: 400 !important;
  letter-spacing: .2em !important; 
  text-transform: uppercase !important;
  color: var(--mid) !important; 
  transition: color .4s; 
  position: relative;
}

.work-sub-menu a::after {
  content: ''; 
  position: absolute; 
  bottom: 0; 
  left: 0;
  width: 0; 
  height: 1px; /* 1px black active underline matching our precise line weight limit */
  background: var(--ink); 
  transition: width .4s ease;
}

.work-sub-menu a:hover, 
.work-sub-menu a.active { 
  color: var(--ink) !important; 
}

.work-sub-menu a.active::after { 
  width: 100%; 
}

/* Fluid sliding sub-navigation underline element */
.sub-menu-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ink);
  transition: left 0.45s cubic-bezier(0.25, 1, 0.5, 1), width 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

/* Strip native underlines from page layouts when the JS sliding underline activates successfully */
.work-sub-menu.has-sliding-line a::after {
  display: none !important;
}

@media (max-width: 600px) {
  .work-sub-menu {
    gap: 1.25rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
  }
  .work-sub-menu::-webkit-scrollbar {
    display: none;
  }
  .work-sub-menu a {
    white-space: nowrap;
  }
}

/* ─── Hero Base (Home & Project) ───────────────────── */
.hero-container {
  position: relative; height: 100vh; min-height: 700px;
  overflow: hidden; background: #111;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.95; filter: var(--img-filter);
  will-change: transform;
  transform: scale(1.05) translateZ(0); 
  animation: slowPan 30s linear infinite alternate;
}

#home .hero-img, .page-home .hero-img { opacity: 0; transition: opacity 1.5s ease-in-out; }
#home .hero-img.active, .page-home .hero-img.active { opacity: 0.95; }

@keyframes slowPan {
  from { transform: scale(1.05) translateY(0) translateZ(0); }
  to   { transform: scale(1.08) translateY(-2%) translateZ(0); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,14,12,0.45) 0%, rgba(15,14,12,0) 15%, rgba(15,14,12,0.1) 50%, rgba(15,14,12,0.8) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 4rem 6rem;
  max-width: 1800px; margin: 0 auto; width: 100%;
}
.hero-headline {
  font-family: var(--sans); font-size: 3.5rem; font-weight: 300;
  line-height: 1.1; letter-spacing: -0.03em; color: #fff;
  max-width: 900px;
}

.home-tagline {
  text-align: center;
  padding: 8rem 4rem 6rem;
  margin: 0 auto;
  max-width: 800px;
}
.home-tagline-quote {
  font-family: var(--sans); 
  font-size: 1.4rem; 
  font-weight: 600;
  color: var(--logo-grey); 
  line-height: 1.6; 
  display: block;
}
.home-tagline-desc {
  font-family: var(--sans); 
  margin-top: 1.5rem;
  display: block;
  line-height: 1.4;
  font-weight: 300;
  font-size: 1rem;
  color: var(--logo-grey);
}

/* ─── Project Detail Specifics ─────────────────────── */
.proj-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,14,12,0.4) 0%, rgba(15,14,12,0) 25%);
}
.proj-header {
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2rem;
  text-align: center;
}
.proj-title {
  font-family: var(--sans); 
  font-size: 1.2rem; 
  font-weight: 500;
  color: var(--logo-grey); 
  text-transform: uppercase;
  letter-spacing: 0.1em; 
  line-height: 1.2; 
  margin-bottom: 0.5rem;
}
.proj-location {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--mid);
}
.proj-cert {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--soft);
  margin-top: 0.75rem; display: inline-block;
  border: 1px solid var(--rule); padding: 0.25rem 0.75rem; border-radius: 3px;
}
.proj-layout {
  display: block;
  width: 100%;
  margin: 0 auto;
}
.proj-narrative p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem; 
  line-height: 1.7; 
  color: var(--mid);
  font-weight: 300; 
  margin-bottom: 1.5rem;
  text-align: center;
}
.proj-narrative p:last-child { margin-bottom: 0; }

.proj-credits {
  display: flex; flex-direction: column; gap: 1.5rem;
  border-top: 1px solid var(--rule); padding-top: 4rem;
  margin: 6rem auto 0; max-width: 800px;
  align-items: center; text-align: center;
}
.credit-block { display: flex; flex-direction: column; gap: 0.25rem; }
.credit-role {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--soft);
}
.credit-name { font-size: 0.95rem; color: var(--ink); font-weight: 400; }
.credit-name a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: all 0.3s ease; }
.credit-name a:hover { color: var(--mid); text-decoration-color: var(--mid); }

.proj-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8rem;
  margin-top: 8rem;
  align-items: center;
  justify-items: center;
}
.proj-gallery img {
  width: 100%; height: auto; object-fit: cover; object-position: center;
  background: #d8d6d0; aspect-ratio: 3/2;
  margin: 0 auto;
}
.proj-gallery img:nth-child(3n) {
  grid-column: span 2;
  aspect-ratio: 3/2;
}

.proj-gallery img.size-portrait { grid-column: span 1 !important; aspect-ratio: 2/3 !important; }
.proj-gallery img.size-square   { grid-column: span 1 !important; aspect-ratio: 1/1 !important; }
.proj-gallery img.size-landscape{ grid-column: span 1 !important; aspect-ratio: 3/2 !important; }
.proj-gallery img.size-full     { grid-column: span 2 !important; aspect-ratio: 3/2 !important; }

.proj-back-link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid);
  transition: color 0.3s, transform 0.3s;
  margin: 4rem auto 4rem; cursor: pointer;
}
.proj-back-link:hover { color: var(--ink); transform: translateX(-4px); }

/* ─── Section Utilities ────────────────────────────── */
.section-wrap { padding: 4rem 4rem 8rem; max-width: 1800px; margin: 0 auto; }

.portfolio-section {
  padding-top: 8rem;
}
.portfolio-section:first-of-type {
  padding-top: 4rem;
}

/* ─── Project Tile Grid ────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9rem;
  padding: 0 6rem;
  margin-bottom: 4rem;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  align-items: start; 
}

.project-tile { display: block; position: relative; cursor: pointer; }

.project-tile-img {
  position: relative; overflow: hidden;
  background: #d8d6d0;
  display: block; 
  aspect-ratio: 2/3;
}

.project-tile-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--img-filter);
  transition: transform 1.4s cubic-bezier(0.2,0.8,0.2,1), filter 1.4s cubic-bezier(0.2,0.8,0.2,1);
}
.project-tile-img::after {
  content: ''; position: absolute; inset: 0;
  background: var(--portfolio-overlay);
  z-index: 1; pointer-events: none;
  transition: opacity 0.5s ease;
}
.project-tile:hover .project-tile-img img { transform: scale(1.03); filter: var(--img-filter-hover); }
.project-tile:hover .project-tile-img::after { opacity: 0.25; }

.project-tile-caption {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1.25rem 0 0;
  text-align: center;
  pointer-events: none;
}
.project-tile-caption h3 {
  font-family: var(--sans); 
  font-size: 0.85rem; 
  font-weight: 400;
  text-transform: none;
  color: var(--mid); 
  letter-spacing: 0.02em;
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
  transform: translateY(0);
  display: inline-block;
}
.project-tile:hover .project-tile-caption h3 { 
  color: var(--ink); 
  transform: translateY(-4px);
}

/* ─── Studio (Editorial Split Layout) ──────────────── */
.studio-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
  margin-bottom: 10rem;
}
.studio-split.practice-split {
  margin-bottom: 4rem;
}
.studio-split:last-child {
  margin-bottom: 2rem;
}
.studio-split.reverse {
  grid-template-columns: 1fr 1.2fr;
}
.studio-split.reverse .studio-split-img {
  order: 2;
}
.studio-split.reverse .studio-split-text {
  order: 1;
}
.studio-split-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #d8d6d0;
  width: 100%;
}
.studio-split-img img {
  width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter);
  transition: transform 1.4s cubic-bezier(0.2,0.8,0.2,1);
}
.studio-split:hover .studio-split-img img {
  transform: scale(1.03);
}
.studio-split-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 2rem;
}
.studio-split-label {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--soft); margin-bottom: 2rem; display: block;
}
.studio-split-headline {
  font-family: var(--sans); font-size: 2.6rem; line-height: 1.15;
  font-weight: 400; color: var(--ink); margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.studio-split-body {
  font-size: 1.05rem; line-height: 1.6; color: var(--mid); max-width: 600px;
}
.studio-split-body p { margin-bottom: 1rem; }
.studio-split-body p:last-child { margin-bottom: 0; }
.studio-split-body strong { color: var(--ink); font-weight: 500; font-family: var(--sans); }

/* ─── Contact Specific Layout ──────────────────────── */
#contact .studio-split {
  align-items: stretch;
}
#contact .studio-split-text {
  height: 100%;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

/* ─── Contact Typographic Hierarchy ────────────────── */
.contact-block { width: 100%; }

.contact-label {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--soft); display: block; margin-bottom: 0.75rem;
}

.contact-link {
  font-family: var(--sans); font-size: 1.05rem; font-weight: 300; color: var(--ink);
  display: inline-block; margin-bottom: 0.25rem; transition: color 0.3s;
}
.contact-link:hover { color: var(--mid); }

.contact-text { font-size: 1.05rem; line-height: 1.6; color: var(--mid); display: block; }
.contact-text strong { color: var(--ink); font-weight: 500; font-family: var(--sans); }

/* ─── Contact Stylized Map ─────────────────────────── */
.contact-map {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/10;
  background: var(--paper);
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid var(--rule);
}

.custom-map-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--logo-grey);
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 2px 2px 0 var(--paper), -2px -2px 0 var(--paper), 2px -2px 0 var(--paper), -2px 2px 0 var(--paper);
  white-space: nowrap;
  text-align: center;
}

.contact-map-inner {
  width: 100%; height: 100%;
  filter: sepia(10%) contrast(1.05);
  transition: filter 0.5s ease;
}
.contact-map:hover .contact-map-inner {
  filter: sepia(0%) contrast(1.05);
}

.leaflet-control-attribution { 
  background: rgba(244, 243, 239, 0.7) !important;
  color: var(--soft) !important;
  font-family: var(--sans);
  font-size: 0.6rem;
  border-top-left-radius: 4px;
}
.leaflet-control-attribution a { 
  color: inherit !important; 
  text-decoration: none; 
}
.leaflet-control-attribution a:hover { 
  text-decoration: underline; 
}

/* ─── Leadership Section ───────────────────────────── */
.leadership-section { margin-bottom: 10rem; }
.leadership-header {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--soft); margin-bottom: 2rem; display: block;
  border-top: 1px solid var(--rule); padding-top: 2.5rem;
}
.leadership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.leader-card { display: flex; flex-direction: column; }
.leader-name { font-family: var(--sans); font-size: 1.6rem; font-weight: 400; color: var(--ink); margin-bottom: 0.25rem; }
.leader-name-creds { font-size: 0.55em; color: var(--soft); font-weight: 300; letter-spacing: 0.05em; margin-left: 0.2rem; }
.leader-title { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--soft); margin-bottom: 1.5rem; display: block; }
.leader-bio { font-size: 1.05rem; line-height: 1.6; color: var(--mid); margin-bottom: 2rem; }
.leader-bio p { margin-bottom: 1rem; }
.leader-creds { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.85rem; line-height: 1.6; color: var(--mid); }
.leader-creds strong { color: var(--ink); font-weight: 500; font-family: var(--sans); }

@media (min-width: 1025px) {
  .leader-creds { min-height: 140px; }
  @supports (grid-template-rows: subgrid) {
    .leadership-grid {
      grid-template-rows: max-content max-content 1fr max-content;
      gap: 0 6rem;
    }
    .leader-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 4;
    }
    .leader-creds {
      margin-top: 0;
      min-height: 0;
    }
  }
}

/* ─── Disciplines ──────────────────────────────────── */
.disc-grid {
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 9rem; 
  padding: 0 6rem;
  max-width: 1800px;
  margin: 0 auto;
}
.disc-item {
  display: flex; flex-direction: column;
}
.disc-name {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--mid); display: block;
  text-align: center; margin-bottom: 2.5rem;
}
.disc-content {
  display: flex; flex-direction: column;
  align-items: stretch;
}
.disc-img {
  width: 100%; max-width: 100%; aspect-ratio: 2/3;
  overflow: hidden; background: #d8d6d0; position: relative;
  margin-bottom: 1.5rem;
}
.disc-img img {
  width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter);
  transition: transform 1.4s cubic-bezier(0.2,0.8,0.2,1), filter 1.4s cubic-bezier(0.2,0.8,0.2,1);
}
.disc-img::after {
  content: ''; position: absolute; inset: 0;
  background: var(--portfolio-overlay);
  z-index: 1; pointer-events: none;
  transition: opacity 0.5s ease;
}
.disc-item:hover .disc-img img {
  transform: scale(1.03); filter: var(--img-filter-hover);
}
.disc-item:hover .disc-img::after {
  opacity: 0.25;
}
.disc-desc { font-size: 1.05rem; line-height: 1.7; color: var(--mid); }

.disc-projects {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.disc-projects-label {
  width: 100%; text-align: left;
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--soft);
  margin-bottom: 0; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.4s ease; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.disc-projects-label::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.disc-projects.is-open .disc-projects-label { color: var(--ink); }
.disc-projects.is-open .disc-projects-label::after { transform: rotate(45deg); }

.disc-projects-dropdown {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.disc-projects.is-open .disc-projects-dropdown {
  grid-template-rows: 1fr;
}

@media (hover: hover) and (pointer: fine) {
  .disc-projects:hover .disc-projects-label { color: var(--ink); }
  .disc-projects:hover .disc-projects-label::after { transform: rotate(45deg); }
  .disc-projects:hover .disc-projects-dropdown { grid-template-rows: 1fr; }
}

.disc-projects-dropdown-inner {
  overflow: hidden;
}
.disc-projects-list {
  list-style: none; margin: 0; padding: 1.25rem 0 0;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.disc-projects-list li {
  font-size: 0.85rem; color: var(--mid); line-height: 1.3;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.disc-projects-list strong {
  color: var(--ink); font-weight: 400; font-family: var(--sans);
}
.disc-projects-city {
  font-size: 0.75rem; color: var(--soft);
}

/* ─── Mobile Menu ──────────────────────────────────── */
.menu-toggle { display: none; flex-direction: column; gap: 6px; z-index: 201; align-self: center; }
.menu-toggle span { width: 24px; height: 1px; background: var(--ink); transition: all .3s ease; }
.mobile-nav {
  position: fixed; inset: 0; background: var(--paper); z-index: 199;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; transform: translateY(-100%); transition: transform .6s cubic-bezier(0.8,0,0.2,1);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--nav-font); font-size: 1.5rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}

/* ─── Footer ───────────────────────────────────────── */
#footer { 
  background: var(--white); 
  border-top: 1px solid var(--rule);
}
.ft-top, .ft-bottom { position: relative; z-index: 2; max-width: 1800px; margin: 0 auto; }

.ft-header-area {
  height: 54px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}
.ft-logo { height: 54px; width: auto; display: block; color: var(--logo-grey); transition: color 0.4s ease; margin-left: -5px; }

.ft-top {
  padding: 2.5rem 4rem; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem;
  align-items: start; border-bottom: 1px solid var(--rule);
}
.ft-tagline {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  line-height: 1.4; color: var(--mid); letter-spacing: 0.04em;
  display: block;
  margin-left: -5px;
}
.ft-col { display: flex; flex-direction: column; gap: 0.25rem; }
.ft-col-label {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 0;
  display: block; transform: translateY(1px);
}
.ft-link {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 400;
  color: var(--mid); transition: color 0.3s; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.5rem;
  line-height: 1.4;
}
.ft-link:hover { color: var(--ink); }
.ft-address {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 400;
  color: var(--mid); letter-spacing: 0.02em;
  display: block;
  line-height: 1.4;
}
.ft-instagram { gap: 0.55rem; }
.ft-bottom {
  padding: 1rem 4rem; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.ft-copy {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.08em; color: var(--soft); text-transform: uppercase;
}

/* ─── Home Project Collage ─────────────────────────── */
.home-collage {
  background: var(--white);
  padding: 2rem 0 8rem;
}
.home-collage-inner { max-width: 1800px; margin: 0 auto; padding: 0 6rem; }

.collage-cta { margin-top: 1rem; text-align: right; }
.collage-cta a {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid);
  display: inline-flex; align-items: center; gap: 0.75rem; transition: color 0.3s;
}
.collage-cta a::after { content: '→'; font-size: 0.9rem; transition: transform 0.3s; }
.collage-cta a:hover { color: var(--ink); }
.collage-cta a:hover::after { transform: translateX(4px); }

/* ─── Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.2,0.8,0.2,1), transform 1.2s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .15s; }
.d2 { transition-delay: .3s; }

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  body.view-home nav#nav, body.view-project-detail nav#nav { padding: 1.25rem 0; }
  nav#nav { padding: 1.25rem 0; }
  .nav-container { padding: 0 2rem; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .page-sticky-bar { padding: 2.5rem 0 1rem; }
  .page-sticky-inner { padding: 0 2rem; gap: 1rem; flex-direction: column; align-items: center; }
  .section-wrap { padding: 3rem 2rem 6rem; }
  .portfolio-section:first-of-type { padding-top: 3rem; }
  
  .studio-split, .studio-split.reverse { grid-template-columns: 1fr; gap: 3rem; margin-bottom: 6rem; }
  .studio-split.practice-split { margin-bottom: 3rem; }
  .studio-split.reverse .studio-split-img { order: 1; }
  .studio-split.reverse .studio-split-text { order: 2; }
  .studio-split-text { padding: 0; }
  .hero-headline { font-size: 1.4rem; }
  .studio-split-headline { font-size: 2.2rem; }
  .studio-split-img { aspect-ratio: 1; }
  
  .leadership-grid { grid-template-columns: 1fr; gap: 4rem; }
  .leadership-section { margin-bottom: 6rem; }
  
  .disc-grid { grid-template-columns: 1fr; padding: 0 3rem; gap: 6rem; }
  .disc-img { max-width: 100%; aspect-ratio: 4/5; }

  .project-grid { grid-template-columns: 1fr 1fr; padding: 0 3rem; gap: 6rem; }
  .ft-top { grid-template-columns: 1fr 1fr; padding: 3rem 2rem; gap: 2rem; }
  .ft-bottom { padding: 1rem 2rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .home-collage { padding: 2rem 0 6rem; }
  .home-collage-inner { padding: 0 3rem; }

  .proj-header { margin-bottom: 3rem; padding-bottom: 1.5rem; }
  .proj-gallery { grid-template-columns: 1fr; gap: 5rem; margin-top: 5rem; }
  
  .proj-gallery img, 
  .proj-gallery img:nth-child(3n),
  .proj-gallery img.size-portrait,
  .proj-gallery img.size-square,
  .proj-gallery img.size-landscape,
  .proj-gallery img.size-full { 
    grid-column: span 1 !important; 
  }
  
  .proj-gallery img:nth-child(3n),
  .proj-gallery img.size-full { 
    aspect-ratio: 3/2 !important; 
  }
}

@media (max-width: 600px) {
  .project-grid, .disc-grid { grid-template-columns: 1fr; padding: 0 2rem; gap: 4rem; }
  .home-collage-inner { padding: 0 2rem; }
  .ft-top { grid-template-columns: 1fr; }
  .contact-map { max-width: 100%; }
}

/* ==========================================================================
   PORTFOLIO REVEAL ANIMATIONS (NO DROP ON SCROLL / LOAD)
   ========================================================================== */

/* Eradicate slide-up drop transition on portfolio project tiles only, keeping titles and other elements untouched */
.page-work .project-grid .reveal {
  transform: none !important;
  opacity: 0;
  transition: opacity 0.4s ease-in-out !important;
}
.page-work .project-grid .reveal.in {
  opacity: 1;
}