/* ==========================================================================
   DE HASSE ARCHITECTURAL & INTERIOR DESIGN
   Core Stylesheet & Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --sage: #6B7165;
  --sage-light: #7D8477;
  --sage-dark: #555A4F;
  --ink: #2A2D28;
  --ink-light: #4A4D46;
  --ink-muted: #7A7E77;
  --bg: #F6F4EF;
  --bg-card: #FFFFFF;
  --line: #E6E2D8;
  --line-dark: #D4CFBF;
  --white: #FFFFFF;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: clip;
  width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

a:hover {
  opacity: 0.75;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h1 em, h2 em, h3 em, h4 em, .serif em {
  font-style: italic;
  font-weight: 400;
}

p {
  color: var(--ink-light);
  line-height: 1.7;
}

.label, .eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage);
  display: inline-block;
  margin-bottom: 12px;
}

.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 400;
}

/* Container */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.section-padding {
  padding: 100px 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.section-header-row h2 {
  font-size: clamp(32px, 3.2vw, 44px);
}

/* Buttons */
.btn, .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background-color: var(--sage);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--sage);
  border-radius: 0 14px 0 0;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn:hover, .btn-cta:hover {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  opacity: 1;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  border-radius: 0 12px 0 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background-color: var(--ink);
  color: var(--white);
  opacity: 1;
}

.text-link {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.text-link:hover {
  color: var(--ink);
  opacity: 1;
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
:root {
  --header-height: 84px;
}

@media (max-width: 960px) {
  :root {
    --header-height: 72px;
  }
}

body {
  padding-top: var(--header-height);
}

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 300;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

header.site-header.header-hidden {
  transform: translateY(-100%);
}

header.site-header.header-scrolled {
  background-color: rgba(246, 244, 240, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 40px;
  position: relative;
}

.site-header .container.header-inner {
  padding-left: 40px;
  padding-right: 40px;
}

.header-logo, .site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img, .site-logo img {
  height: 38px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

/* Desktop Navigation */
.header-nav, .main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav .nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header-nav a,
.main-nav a,
.nav-item a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 4px;
  color: var(--ink);
  transition: color var(--transition-fast), border-color var(--transition-fast);
  border-bottom: 1.5px solid transparent;
}

.header-nav a.active,
.main-nav a.active,
.nav-item a.active {
  color: var(--sage);
  font-weight: 500;
  border-bottom-color: var(--sage);
}

.header-action {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Mobile Navigation Toggle (Hamburger) */
.mobile-menu-toggle,
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 300;
}

.mobile-menu-toggle .bar,
.mobile-nav-toggle span {
  display: block;
  height: 1.5px;
  background-color: var(--ink);
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-menu-toggle .bar-top { width: 24px; }
.mobile-menu-toggle .bar-bottom { width: 16px; }

.mobile-nav-toggle span:nth-child(1) { width: 24px; }
.mobile-nav-toggle span:nth-child(2) { width: 18px; }
.mobile-nav-toggle span:nth-child(3) { width: 24px; }

.mobile-menu-toggle.active .bar-top {
  transform: translateY(3.75px) rotate(45deg);
  width: 20px;
}
.mobile-menu-toggle.active .bar-bottom {
  transform: translateY(-3.75px) rotate(-45deg);
  width: 20px;
}

/* Fullscreen Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  transform: translateY(-8px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
}

.mobile-nav-logo img {
  height: 32px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  margin-right: -8px;
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
  color: var(--sage);
  background-color: rgba(114, 124, 108, 0.08);
  border-color: var(--line);
  transform: rotate(90deg);
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 28px 24px;
  flex-grow: 1;
}

.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: clamp(26px, 5.5vw, 32px);
  line-height: 1.25;
  color: var(--ink);
  transition: color var(--transition-fast), transform var(--transition-fast);
  width: fit-content;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--sage);
  transform: translateX(6px);
}

.mobile-nav-footer {
  border-top: 1px solid var(--line);
  padding: 24px 28px 0;
  font-size: 13px;
  color: var(--sage);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-nav-footer strong {
  color: var(--ink);
  font-weight: 500;
}

.mobile-nav-footer a {
  color: var(--sage);
  transition: color var(--transition-fast);
}

.mobile-nav-footer a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   4. HERO CAROUSEL & HERO STRIP
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  height: 80vh;
  min-height: 520px;
  max-height: 820px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background-color: #1F211C;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

.carousel-slide.active,
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Rounded Left / Right Carousel Buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.carousel-prev {
  left: 32px;
}

.carousel-next {
  right: 32px;
}

/* Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.3);
}

/* Hero Strip */
.hero-strip {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.hero-strip-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-strip h1 {
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.2;
}

.hero-strip p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   5. CREDENTIALS BAND
   -------------------------------------------------------------------------- */
.credentials-band {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: var(--bg);
  overflow: hidden;
  width: 100%;
}

.credentials-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.credentials-marquee {
  display: none;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.credentials-track {
  display: inline-flex;
  animation: ticker-slide 22s linear infinite;
  gap: 40px;
  padding-left: 100%;
}

.credentials-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.credentials-item::after {
  content: "•";
  color: var(--sage);
  margin-left: 24px;
}

@keyframes ticker-slide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* --------------------------------------------------------------------------
   6. STUDIO STATEMENT
   -------------------------------------------------------------------------- */
.studio-statement {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.statement-content {
  display: flex;
  gap: 56px;
  align-items: start;
}

.statement-portrait {
  flex: 0 0 340px;
  max-width: 340px;
  overflow: hidden;
  border-radius: 0 28px 0 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.statement-portrait img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.statement-body {
  flex: 1;
}

.statement-body p {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.35;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   7. SELECTED WORK GRID
   -------------------------------------------------------------------------- */
.selected-work {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  grid-auto-rows: clamp(380px, 36vw, 520px);
  align-items: stretch;
}

.work-item {
  overflow: hidden;
  display: block;
  padding: 0;
  margin: 0;
  background-color: var(--line);
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 0 32px 0 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.work-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  transition: transform var(--transition-slow);
}

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

.col-7 { grid-column: span 7; height: 100%; }
.col-5 { grid-column: span 5; height: 100%; }
.col-6 { grid-column: span 6; height: 100%; }
.col-4 { grid-column: span 4; height: 100%; }
.col-8 { grid-column: span 8; height: 100%; }

/* --------------------------------------------------------------------------
   8. SERVICES & NUMBERED PROCESS
   -------------------------------------------------------------------------- */
.services-overview {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: baseline;
}

.services-grid h2 {
  font-size: clamp(32px, 3vw, 48px);
}

.numbered-process {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.process-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}

.process-row.alt {
  direction: rtl;
}

.process-row.alt > * {
  direction: ltr;
}

.process-num {
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 1;
  color: var(--sage);
  margin-bottom: 16px;
  display: block;
}

.process-title {
  font-size: 28px;
  margin-bottom: 16px;
}

.process-img {
  overflow: hidden;
  background-color: var(--line);
  border-radius: 0 28px 0 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.process-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   9. PAGE HEADERS (INNER PAGES)
   -------------------------------------------------------------------------- */
.page-header {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
}

.page-header-inner {
  max-width: 900px;
}

.page-header h1 {
  font-size: clamp(38px, 4.2vw, 56px);
  margin-bottom: 24px;
  line-height: 1.15;
}

.page-header-subtitle {
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  color: var(--sage);
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   10. EDITORIAL CONTENT & GALLERY (ABOUT & INNER PAGES)
   -------------------------------------------------------------------------- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: start;
}

.editorial-content p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.8;
}

.editorial-content h2 {
  font-size: 32px;
  margin: 44px 0 20px;
}

.editorial-gallery {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.editorial-image-frame {
  overflow: hidden;
  border-radius: 0 24px 0 0;
  background-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.editorial-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.editorial-image-frame:hover img {
  transform: scale(1.025);
}

/* --------------------------------------------------------------------------
   11. APPROACH & PROCESS STEPS (APPROACH & SERVICES PAGES)
   -------------------------------------------------------------------------- */
.approach-steps-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.approach-step-card {
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.approach-media {
  overflow: hidden;
  border-radius: 0 24px 0 0;
  background-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.approach-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.approach-media:hover img {
  transform: scale(1.03);
}

.approach-numeral {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--sage);
  display: block;
}

.approach-body h2 {
  font-size: clamp(28px, 2.6vw, 36px);
  margin-bottom: 20px;
}

.approach-body p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
  max-width: 820px;
}

/* --------------------------------------------------------------------------
   12. PROJECTS INDEX TABLE & PORTFOLIO (PROJECTS PAGE)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   12B. DETAILED PROJECT SHOWCASES (PROJECTS PAGE)
   -------------------------------------------------------------------------- */
.projects-portfolio-showcase {
  border-top: 1px solid var(--line);
}

.project-showcase {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.project-showcase:last-of-type {
  border-bottom: none;
}

.project-showcase-header {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 56px;
  align-items: baseline;
  margin-bottom: 36px;
}

.project-showcase-num {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--sage);
  display: block;
  margin-bottom: 8px;
}

.project-showcase-title {
  font-size: clamp(32px, 3.2vw, 44px);
  color: var(--ink);
  margin-bottom: 6px;
}

.project-showcase-loc {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
}

.project-showcase-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-light);
}

.project-showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  grid-auto-rows: clamp(340px, 32vw, 460px);
  align-items: stretch;
}

.project-media-item {
  overflow: hidden;
  background-color: var(--line);
  position: relative;
  height: 100%;
  border-radius: 0 24px 0 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.project-media-item.primary {
  grid-column: span 6;
  height: 100%;
}

.project-media-item:not(.primary) {
  grid-column: span 2;
  height: 100%;
}

/* Alternate composition on even project showcases */
.project-showcase:nth-child(even) .project-media-item.primary {
  grid-column: 7 / span 6;
  grid-row: 1;
}

.project-showcase:nth-child(even) .project-media-item:not(.primary):nth-child(2) {
  grid-column: 1 / span 2;
  grid-row: 1;
}
.project-showcase:nth-child(even) .project-media-item:not(.primary):nth-child(3) {
  grid-column: 3 / span 2;
  grid-row: 1;
}
.project-showcase:nth-child(even) .project-media-item:not(.primary):nth-child(4) {
  grid-column: 5 / span 2;
  grid-row: 1;
}

.project-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.project-media-item:hover img {
  transform: scale(1.03);
}

/* Services Disciplines Grid */
.services-disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
}

.discipline-card {
  display: flex;
  flex-direction: column;
}

.discipline-card-media {
  overflow: hidden;
  border-radius: 0 24px 0 0;
  background-color: var(--line);
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.discipline-card-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.discipline-card:hover .discipline-card-media img {
  transform: scale(1.03);
}

.discipline-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.discipline-card p {
  font-size: 15px;
  line-height: 1.7;
}

.projects-index-section {
  padding: 80px 0;
}

/* Projects Cover Grid (Portfolio Gallery with Cover Images) */
.projects-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}

.project-cover-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast);
}

.project-cover-media {
  position: relative;
  overflow: hidden;
  border-radius: 0 28px 0 0;
  background-color: var(--line);
  aspect-ratio: 16 / 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.project-cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-cover-card:hover .project-cover-media img {
  transform: scale(1.035);
}

.project-cover-num {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(246, 244, 240, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 0 8px 0 0;
}

.project-cover-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  transition: border-color var(--transition-fast);
}

.project-cover-card:hover .project-cover-meta {
  border-color: var(--sage);
}

.project-cover-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 400;
  transition: color var(--transition-fast);
}

.project-cover-card:hover .project-cover-title {
  color: var(--sage);
}

.project-cover-loc {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  display: block;
}

.project-cover-action {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.project-cover-card:hover .project-cover-action {
  color: var(--ink);
  transform: translateY(2px);
}

.project-showcase {
  scroll-margin-top: 100px;
}

.projects-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 80px 1fr 220px 140px;
  align-items: center;
  padding: 28px 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--transition-fast), padding-left var(--transition-fast);
}

.project-row:hover {
  background-color: rgba(107, 113, 101, 0.05);
  padding-left: 28px;
  opacity: 1;
}

.project-num {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--sage);
}

.project-name {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
  transition: color var(--transition-fast);
}

.project-row:hover .project-name {
  color: var(--sage);
}

.project-loc {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.project-action {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  text-align: right;
  font-weight: 500;
  transition: transform var(--transition-fast);
}

.project-row:hover .project-action {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   13. JOURNAL GRIDS (JOURNAL & INDEX PAGES)
   -------------------------------------------------------------------------- */
.journal-preview {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.journal-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 48px;
}

.journal-card {
  display: flex;
  flex-direction: column;
}

.journal-card-media {
  overflow: hidden;
  display: block;
  margin-bottom: 20px;
  background-color: var(--line);
  border-radius: 0 24px 0 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.journal-card-media img,
.journal-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.journal-card:hover .journal-card-media img,
.journal-card:hover img {
  transform: scale(1.03);
}

.journal-card .post-meta,
.journal-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.journal-card h3,
.journal-title {
  font-size: 24px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.journal-title a:hover {
  color: var(--sage);
}

/* --------------------------------------------------------------------------
   14. PRESS GRID (PRESS PAGE)
   -------------------------------------------------------------------------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 48px;
}

.press-item {
  display: flex;
  flex-direction: column;
}

.press-item-media {
  overflow: hidden;
  background-color: var(--line);
  border-radius: 0 24px 0 0;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.press-item-media img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.press-item:hover .press-item-media img {
  transform: scale(1.03);
}

.press-item-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.press-item-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   15. CONTACT PAGE LAYOUT
   -------------------------------------------------------------------------- */
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: start;
}

.contact-details-box {
  background-color: var(--bg);
  border: 1px solid var(--line);
  padding: 44px;
  border-radius: 0 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-detail-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.contact-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-detail-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

.contact-detail-val {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
  transition: color var(--transition-fast);
}

.contact-detail-val:hover {
  color: var(--sage);
  opacity: 1;
}

.contact-photo-frame {
  overflow: hidden;
  border-radius: 0 28px 0 0;
  background-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-photo-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   16. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
  background-color: var(--bg);
}

.cta-band p,
.cta-band-statement {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 40px);
  max-width: 900px;
  margin: 0 auto 36px;
  line-height: 1.35;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   17. SITE FOOTER
   -------------------------------------------------------------------------- */
footer.site-footer {
  background-color: var(--bg);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-top {
  margin-bottom: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: block;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 32px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-light);
  max-width: 320px;
}

.footer-col h4,
.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  margin-bottom: 24px;
  color: var(--sage);
  font-weight: 500;
}

.footer-col ul,
.footer-links-list {
  list-style: none;
}

.footer-col ul li,
.footer-links-list li {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}

.footer-bottom-inner,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   18. UTILITIES & ANIMATIONS
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* --------------------------------------------------------------------------
   19. RESPONSIVE MEDIA QUERIES (max-width: 960px)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .container {
    padding: 0 24px;
  }

  /* Header on Mobile */
  .header-inner,
  .site-header .container.header-inner {
    height: 72px;
    padding: 0 24px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-logo, .site-logo {
    margin: 0;
  }

  .header-logo img, .site-logo img {
    height: 32px;
    max-width: 170px;
  }

  .header-action {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-nav,
  .main-nav,
  .header-action > .btn,
  .header-action > .btn-cta,
  .header-inner > .btn {
    display: none !important;
  }

  .projects-cover-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .site-header.nav-open .main-nav {
    display: flex !important;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg);
    flex-direction: column;
    padding: 48px 32px;
    z-index: 250;
    overflow-y: auto;
  }

  .site-header.nav-open .main-nav .nav-list {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .site-header.nav-open .main-nav .nav-item a {
    font-family: var(--font-serif);
    font-size: 32px;
    line-height: 1.2;
    color: var(--ink);
    display: block;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .site-header.nav-open .main-nav .nav-item a.active {
    color: var(--sage);
  }

  .site-header.nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .site-header.nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .mobile-menu-toggle,
  .mobile-nav-toggle {
    display: flex;
  }

  /* Hero Section */
  .hero-carousel {
    height: 60vh;
    min-height: 420px;
    max-height: 540px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
  }

  .carousel-prev { left: 16px; }
  .carousel-next { right: 16px; }

  .hero-strip {
    padding: 48px 0;
  }

  .hero-strip-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-strip h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  /* Credentials */
  .credentials-band {
    padding: 20px 0;
  }

  .credentials-inner {
    display: none;
  }

  .credentials-marquee {
    display: block;
  }

  /* Studio Statement */
  .studio-statement {
    padding: 64px 0;
  }

  .statement-content {
    flex-direction: column;
    gap: 32px;
  }

  .statement-portrait {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .statement-portrait img {
    aspect-ratio: 4/5;
    max-height: 420px;
    width: 100%;
  }

  .statement-body p {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 24px;
  }

  /* Selected Work Grid */
  .selected-work {
    padding: 64px 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .col-7, .col-5, .col-4, .col-8, .col-6 {
    grid-column: span 1;
    aspect-ratio: 4/3;
    width: 100%;
  }

  /* Services & Process */
  .services-overview {
    padding: 64px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .numbered-process {
    padding: 64px 0;
  }

  .process-row,
  .process-row.alt {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
    padding: 40px 0;
  }

  .process-row.alt > * {
    direction: ltr;
  }

  .process-num {
    font-size: 54px;
    margin-bottom: 12px;
  }

  .process-title {
    font-size: 24px;
  }

  /* Page Headers */
  .page-header {
    padding: 64px 0 40px;
  }

  .page-header h1 {
    font-size: 34px;
  }

  /* Editorial Layout */
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }


  /* Approach steps mobile */
  .approach-step-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0;
  }

  .approach-media img {
    aspect-ratio: 4/3;
  }

  /* Project Showcase mobile */
  .project-showcase {
    padding: 56px 0;
  }

  .project-showcase-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── Mobile Project Image Carousel ── */
  .project-showcase-grid {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    border-radius: 0 20px 0 0;
  }
  .project-showcase-grid::-webkit-scrollbar { display: none; }

  .project-media-item,
  .project-media-item.primary,
  .project-media-item:not(.primary),
  .project-showcase:nth-child(even) .project-media-item.primary,
  .project-showcase:nth-child(even) .project-media-item:not(.primary) {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 4/3;
    height: auto !important;
    grid-column: unset !important;
    grid-row: unset !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 0 20px 0 0;
  }

  /* Carousel wrapper injected by JS */
  .project-carousel-wrap {
    position: relative;
  }

  /* Prev / Next arrow buttons */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-base), opacity var(--transition-base), transform 0.15s;
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
  }
  .carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
  .carousel-btn svg { width: 18px; height: 18px; stroke-width: 2; }
  .carousel-btn-prev { left: 10px; }
  .carousel-btn-next { right: 10px; }
  .carousel-btn[disabled] { opacity: 0.35; pointer-events: none; }

  /* Dot indicators */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
  }
  .carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
    -webkit-tap-highlight-color: transparent;
  }
  .carousel-dot.active {
    background: var(--text-primary);
    transform: scale(1.3);
  }

  /* Slide counter badge */
  .carousel-counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 10;
  }

  .services-disciplines-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Approach Steps */
  .approach-step-card-old {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
  }

  .approach-numeral {
    font-size: 40px;
  }

  /* Projects Table */
  .project-row {
    grid-template-columns: 48px 1fr 100px;
    padding: 20px 8px;
    gap: 12px;
  }

  .project-loc {
    display: none;
  }

  .project-name {
    font-size: 20px;
  }

  /* Contact Page */
  .contact-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-details-box {
    padding: 28px 24px;
  }

  .contact-detail-val {
    font-size: 20px;
  }

  /* Journal & Press */
  .journal-grid,
  .journal-grid-5,
  .press-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* CTA Band */
  .cta-band {
    padding: 64px 0;
  }

  .cta-band p,
  .cta-band-statement {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 28px;
  }

  /* Footer on Mobile */
  footer.site-footer {
    padding: 56px 0 36px;
  }

  .footer-top {
    margin-bottom: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-col.footer-nav-col,
  .footer-col:nth-child(2) {
    display: none !important;
  }

  .footer-bottom-inner,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
