/* ==========================================================================
   BLUECUBE ARCHITECTS — MASTER STYLESHEET
   Design Direction: "Quiet Editorial Studio"
   Typography: Cormorant Garamond (Headings) + Jost (Body/UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@500;600;700;800&family=Jost:wght@300;400;500;600&display=swap');

:root {
  /* Design Tokens per brief */
  --stone: #CAC5BA;                 /* canvas background */
  --stone-deep: #B3A898;            /* hairlines, borders, subtle rules */
  --stone-light: #DDD8CD;           /* slightly lighter stone surface */
  --bark: #2F2218;                  /* primary body text, dark footer bg */
  --bark-soft: rgba(47, 34, 24, 0.08); /* faint transparent tints */
  --bark-medium: rgba(47, 34, 24, 0.82); /* accessible muted text (5.5:1 contrast on stone) */
  --cube-blue: #1F3A5F;             /* single brand accent: hover, active, focus */
  --cube-blue-vivid: #0A66C2;       /* architectural royal cyan accent */
  --nav-h: 72px;
  --max-w: 1440px;

  /* Elevated Architectural & AI-Studio Typography */
  --font-heading: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-display: 'Syne', 'Cormorant Garamond', sans-serif;
  --font-tech: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Plus Jakarta Sans', 'Jost', sans-serif;

  /* Layout Spacing */
  --gutter: clamp(24px, 5vw, 64px);
  --section-pad: clamp(5rem, 10vw, 9rem);
  --space-section: clamp(5rem, 10vw, 9rem);

  /* Transitions & Motion System */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-inout: cubic-bezier(.65, .05, .36, 1);
  --dur-fast: 250ms;
  --dur-base: 700ms;
  --dur-slow: 1100ms;
  --reveal-distance: 28px;
  --stagger: 90ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--stone);
  color: var(--bark);
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  background-color: var(--stone);
  color: var(--bark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1;
  transition: opacity 250ms var(--ease-out);
}

body.is-page-transitioning {
  opacity: 0;
}

::selection {
  background-color: var(--bark);
  color: var(--stone);
}

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

img[loading="lazy"] {
  background-color: var(--stone-deep);
}

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

a:hover {
  color: var(--cube-blue);
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Accessible Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cube-blue);
  outline-offset: 3px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* 1px Hairline Dividers */
.hairline {
  width: 100%;
  height: 1px;
  background-color: var(--stone-deep);
  border: none;
  margin: 0;
}

/* Typographic Conventions — Elevated AI-Studio Architectural Aesthetic */
.label-eyebrow {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cube-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.85rem;
}

.label-eyebrow::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--cube-blue);
  box-shadow: 0 0 6px rgba(31, 58, 95, 0.4);
}

.studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  background-color: rgba(31, 58, 95, 0.08);
  border: 1px solid rgba(31, 58, 95, 0.2);
  color: var(--cube-blue);
}

.heading-display {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 1.5rem;
}

.heading-section {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 1.25rem;
}

.heading-sub {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.p-editorial {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--bark);
  max-width: 62ch;
}

.p-muted {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--bark-medium);
  max-width: 62ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bark);
  border-bottom: 1px solid var(--stone-deep);
  padding-bottom: 4px;
  background-image: linear-gradient(var(--cube-blue), var(--cube-blue));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-editorial);
}

.text-link:hover {
  color: var(--cube-blue);
  background-size: 100% 1px;
  gap: 12px;
}

/* Unified Button Style */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--bark);
  background: transparent;
  color: var(--bark);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  border-radius: 0;
  cursor: pointer;
}

.btn-editorial:hover {
  background-color: var(--bark);
  color: var(--stone);
  border-color: var(--bark);
}

/* ==========================================================================
   MOTION REVEAL SYSTEM
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0); }
[data-reveal="right"] { transform: translate3d(var(--reveal-distance), 0, 0); }

/* Image mask reveal: wrapper unveils, image settles from slight zoom */
[data-reveal="image"] {
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: none;
}
[data-reveal="image"] img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.12);
  transition: clip-path var(--dur-slow) var(--ease-inout), transform 1.6s var(--ease-out);
  will-change: clip-path, transform;
}
[data-reveal="image"].is-visible img {
  clip-path: inset(0);
  transform: scale(1);
}

/* Hairline rule that draws across */
[data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-inout); }
[data-reveal="line"].is-visible { transform: scaleX(1); }

/* Headline line-by-line reveal (JS wraps each line in .line > .line-inner) */
.split-lines .line { display: block; overflow: hidden; }
.split-lines .line-inner { display: block; transform: translateY(105%); transition: transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.split-lines.is-visible .line-inner { transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal] *, .split-lines .line-inner {
    opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important;
  }
}
/* If JS fails, never hide content */
.no-js [data-reveal], .no-js [data-reveal] img, .no-js .split-lines .line-inner { opacity: 1; transform: none; clip-path: none; }

/* ==========================================================================
   NAVIGATION BAR & FULL-HEIGHT DRAWER
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--dur-slow) var(--ease-editorial),
              border-color var(--dur-slow) var(--ease-editorial),
              color var(--dur-fast) var(--ease-editorial);
}

/* Transparent over hero */
.site-nav.is-transparent {
  background-color: transparent;
  color: #FFFFFF;
}

.site-nav.is-transparent .brand-name,
.site-nav.is-transparent .nav-enquire-link,
.site-nav.is-transparent .menu-btn {
  color: #FFFFFF;
}

.site-nav.is-transparent .brand-sub {
  color: rgba(255, 255, 255, 0.75);
}

/* Solid stone after scroll */
.site-nav.is-scrolled,
.site-nav:not(.is-transparent) {
  background-color: rgba(202, 197, 186, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-deep);
  color: var(--bark);
}

.nav-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  transition: opacity var(--dur-fast);
}

.brand-logo-white {
  display: none;
}
.brand-logo-dark {
  display: block;
}

.site-nav.is-transparent:not(.is-scrolled) .brand-logo-dark {
  display: none;
}
.site-nav.is-transparent:not(.is-scrolled) .brand-logo-white {
  display: block;
}

.site-nav.is-scrolled .brand-logo-dark {
  display: block;
}
.site-nav.is-scrolled .brand-logo-white {
  display: none;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  margin-bottom: 20px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 5px;
  color: var(--bark-medium);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: currentColor;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease-editorial);
}

.nav-whatsapp-link:hover {
  background-color: #075E54;
  border-color: #075E54;
  color: #FFFFFF !important;
}

.nav-whatsapp-link svg {
  fill: currentColor;
  transition: transform var(--dur-fast);
}

.nav-whatsapp-link:hover svg {
  transform: scale(1.1);
}

.nav-enquire-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-enquire-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--cube-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav-enquire-link:hover {
  color: var(--cube-blue);
}

.nav-enquire-link:hover::after,
.nav-enquire-link.is-active::after {
  transform: scaleX(1);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-icon-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 11px;
}

.menu-icon-bars span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: currentColor;
  transition: transform var(--dur-fast) var(--ease-editorial);
}

/* Full-Height Drawer Menu */
.nav-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--stone);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 48px) var(--gutter);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-editorial),
              opacity var(--dur-slow) var(--ease-editorial),
              visibility var(--dur-slow);
}

.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.drawer-close-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drawer-close-btn:hover {
  color: var(--cube-blue);
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vh, 28px);
  margin-top: auto;
  margin-bottom: auto;
}

.drawer-nav-list li {
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.nav-drawer.is-open .drawer-nav-list li {
  transform: translateY(0);
  opacity: 1;
}

.drawer-nav-list a {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--bark);
  line-height: 1.1;
  transition: color var(--dur-fast) var(--ease-editorial), transform var(--dur-fast) var(--ease-editorial);
  display: inline-block;
}

.drawer-nav-list a:hover {
  color: var(--cube-blue);
  transform: translateX(12px);
}

.drawer-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--stone-deep);
  padding-top: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark-medium);
  flex-wrap: wrap;
  gap: 16px;
}

.drawer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: #075E54;
  color: #FFFFFF !important;
  padding: 10px 18px;
  border-radius: 2px;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: 0 4px 14px rgba(7, 94, 84, 0.35);
}

.drawer-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 94, 84, 0.5);
}

.drawer-whatsapp-btn svg {
  fill: currentColor;
}

/* Floating WhatsApp Quick-Action Pill */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #075E54;
  color: #FFFFFF !important;
  padding: 12px 20px 12px 16px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(7, 94, 84, 0.4), 0 2px 8px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-editorial), box-shadow var(--dur-fast);
  will-change: transform;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(7, 94, 84, 0.55), 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #FFFFFF !important;
}

.floating-whatsapp .whatsapp-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ==========================================================================
   STUDIO ARCHIVE // INSTAGRAM FIELD PERSPECTIVES
   ========================================================================== */
.section-instagram-gallery {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  background-color: var(--stone);
  position: relative;
  border-bottom: 1px solid var(--stone-deep);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stone-deep);
  gap: 20px;
}

.archive-header-action {
  flex-shrink: 0;
}

.instagram-curated-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insta-card {
  position: relative;
  background-color: var(--stone-deep);
  overflow: hidden;
  border: 1px solid var(--stone-deep);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
}

.insta-card:hover {
  border-color: var(--cube-blue);
  box-shadow: 0 16px 36px rgba(31, 58, 95, 0.18);
  transform: translateY(-4px);
}

.insta-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.insta-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-editorial);
}

.insta-card:hover .insta-media-wrap img {
  transform: scale(1.08);
}

.insta-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 58, 95, 0.05) 0%, rgba(31, 58, 95, 0.3) 40%, rgba(47, 34, 24, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-fast) var(--ease-editorial), transform var(--dur-fast) var(--ease-editorial);
}

.insta-card:hover .insta-hover-overlay {
  opacity: 1;
  transform: translateY(0);
}

.insta-tag {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8CC4FF;
  margin-bottom: 6px;
  display: inline-block;
}

.insta-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #FFFFFF;
  line-height: 1.2;
}

.insta-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   HERO CAROUSEL (Home)
   ========================================================================== */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--bark);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1200ms var(--ease-out), visibility 1200ms;
  z-index: 1;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.0);
}

.carousel-slide.is-active img {
  animation: kenburns 8s var(--ease-out) forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1.0);
  }
  to {
    transform: scale(1.06);
  }
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47, 34, 24, 0.35) 0%, rgba(47, 34, 24, 0.45) 50%, rgba(47, 34, 24, 0.78) 100%);
  z-index: 2;
}

.hero-caption-area {
  position: absolute;
  bottom: clamp(32px, 5vw, 64px);
  left: 0;
  width: 100%;
  z-index: 10;
}

.hero-caption-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #FFFFFF;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  max-width: 580px;
  line-height: 1.2;
}

/* Hero Load Intro Animation (Non-observer triggered, runs immediately) */
.hero-intro-nav {
  animation: heroNavIn 600ms var(--ease-out) forwards;
}

.hero-intro-tagline {
  opacity: 0;
  transform: translateY(20px);
  animation: heroTaglineIn 700ms var(--ease-out) 300ms forwards;
}

.hero-intro-indicators {
  opacity: 0;
  animation: heroFadeIn 600ms var(--ease-out) 600ms forwards;
}

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

@keyframes heroTaglineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
  }
}

.carousel-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}

.line-pill-btn {
  width: 32px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 0;
  transition: all var(--dur-fast) var(--ease-editorial);
}

.line-pill-btn.is-active {
  width: 54px;
  background-color: #FFFFFF;
}

/* Static Page Hero */
.page-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--stone-deep);
}

/* ==========================================================================
   PROJECT PORTALS (Disciplines - 4 Columns)
   ========================================================================== */

.three-way-portals,
.four-way-portals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--stone-deep);
  border-bottom: 1px solid var(--stone-deep);
}

.portal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--stone-deep);
  overflow: hidden;
  outline: none;
}

.portal-cell:last-child {
  border-right: none;
}

.portal-image-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--stone-light);
}

.portal-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.portal-cell:hover .portal-image-frame img,
.portal-cell:focus-visible .portal-image-frame img {
  transform: scale(1.04);
}

.portal-meta {
  padding: 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--stone-deep);
  background-color: var(--stone);
}

.portal-title-wrapper {
  position: relative;
  display: inline-block;
}

.portal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 1.12vw, 1.25rem);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  display: inline-block;
  line-height: 1.25;
}

.portal-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--cube-blue);
  transition: width var(--dur-base) var(--ease-out);
}

.portal-cell:hover .portal-title::after,
.portal-cell:focus-visible .portal-title::after {
  width: 100%;
}

.portal-action {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark-medium);
  transform: translateX(-6px);
  opacity: 0.8;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), color var(--dur-fast);
}

.portal-cell:hover .portal-title,
.portal-cell:focus-visible .portal-title {
  color: var(--cube-blue);
}

.portal-cell:hover .portal-action,
.portal-cell:focus-visible .portal-action {
  transform: translateX(0);
  opacity: 1;
  color: var(--cube-blue);
}

.portal-cell:focus-visible {
  outline: 2px solid var(--cube-blue);
  outline-offset: -2px;
}

/* ==========================================================================
   SERVICES TYPOGRAPHIC LIST (Expandable)
   ========================================================================== */

.services-list-section {
  padding: var(--section-pad) 0;
}

.service-row {
  border-top: 1px solid var(--stone-deep);
  transition: background-color var(--dur-fast);
}

.service-row:last-child {
  border-bottom: 1px solid var(--stone-deep);
}

.service-trigger {
  width: 100%;
  padding: clamp(20px, 3vw, 36px) 0;
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 32px;
  align-items: center;
  text-align: left;
}

.service-num {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--bark-medium);
}

.service-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 400;
  transition: color var(--dur-fast);
}

.service-preview {
  font-size: 0.9rem;
  color: var(--bark-medium);
  padding-right: 20px;
}

.service-icon {
  font-size: 1.2rem;
  text-align: right;
  transition: transform var(--dur-fast) var(--ease-editorial);
}

.service-row:hover .service-name,
.service-row.is-open .service-name {
  color: var(--cube-blue);
}

.service-row.is-open .service-icon {
  transform: rotate(45deg);
}

.service-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-editorial);
}

.service-detail-inner {
  padding: 0 0 clamp(24px, 3vw, 40px) 80px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* ==========================================================================
   THE FLOW (The 6 In-House Teams)
   ========================================================================== */

.flow-section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--stone-deep);
  border-bottom: 1px solid var(--stone-deep);
}

.teams-numbered-list {
  margin-top: 54px;
}

.team-list-row {
  display: grid;
  grid-template-columns: 80px 1.2fr 2fr;
  padding: 24px 0;
  border-top: 1px solid var(--stone-deep);
  align-items: baseline;
  gap: 24px;
}

.team-list-row:last-child {
  border-bottom: 1px solid var(--stone-deep);
}

.team-num {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cube-blue);
  opacity: 0.9;
}

.team-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 400;
}

.team-desc {
  font-size: 0.95rem;
  color: var(--bark-medium);
  line-height: 1.65;
}

.flow-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 64px;
}

.pillar-col {
  padding-top: 24px;
  border-top: 1px solid var(--stone-deep);
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}

/* ==========================================================================
   TRUSTED BY & CLIENTELE (Quiet Typographic Rosters)
   ========================================================================== */

.trusted-by-strip {
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--stone-deep);
}

.brands-roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 32px;
  margin-top: 36px;
}

.trusted-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

/* ── Modern Infinite Dual Marquee (Bidirectional) ── */
.trusted-marquee-container {
  position: relative;
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-row {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  gap: 20px;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
  align-items: center;
  will-change: transform;
}

.marquee-track-left {
  animation: marquee-scroll-left 35s linear infinite;
}

.marquee-track-right {
  animation: marquee-scroll-right 35s linear infinite;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-100% - 20px), 0, 0);
  }
}

@keyframes marquee-scroll-right {
  0% {
    transform: translate3d(calc(-100% - 20px), 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track-left,
  .marquee-track-right {
    animation: none;
  }
  .marquee-row {
    overflow-x: auto;
  }
}

.brand-card {
  border: 1px solid var(--stone-deep);
  background-color: var(--stone-light);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 150px;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast);
}

.brand-card-marquee {
  flex: 0 0 260px;
  width: 260px;
  min-height: 140px;
  padding: 20px 18px;
}

.brand-card:hover {
  border-color: var(--cube-blue);
  background-color: #E2DDD3;
  transform: translateY(-2px);
}

.brand-logo-frame {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.brand-logo-frame img {
  max-height: 48px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(110%);
  opacity: 0.85;
  transition: filter var(--dur-fast), opacity var(--dur-fast), transform var(--dur-fast);
}

.brand-card:hover .brand-logo-frame img {
  filter: grayscale(0%) contrast(100%);
  opacity: 1;
  transform: scale(1.05);
}

.brand-logo-text-only .brand-monogram {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.16rem;
  font-weight: 500;
  color: var(--bark);
  opacity: 0.8;
}

.brand-info {
  width: 100%;
  border-top: 1px solid var(--stone-deep);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.brand-name-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--bark);
  font-weight: 500;
}

.brand-category-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark-medium);
}

.brand-badge {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--bark-medium);
  padding: 12px 0;
  border-bottom: 1px solid var(--stone-deep);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.clientele-list-section {
  padding: var(--section-pad) 0;
}

.clientele-roster {
  margin-top: 40px;
}

.client-roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--stone-deep);
  gap: 20px;
  transition: background-color var(--dur-fast), padding var(--dur-fast);
}

.client-roster-row:last-child {
  border-bottom: 1px solid var(--stone-deep);
}

.client-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}

.client-portrait-frame {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--stone-deep);
  background: var(--stone-medium);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}

.client-roster-row:hover .client-portrait-frame {
  border-color: var(--cube-blue);
  transform: scale(1.08);
}

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

.client-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bark);
}

.client-role {
  font-size: 0.88rem;
  color: var(--bark-medium);
  letter-spacing: 0.04em;
  text-align: right;
}

@media (max-width: 640px) {
  .client-roster-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 0;
  }
  .client-role {
    text-align: left;
    padding-left: 76px;
  }
}

/* ==========================================================================
   PROJECTS TYPOGRAPHIC INDEX (/projects)
   ========================================================================== */

.projects-index-container {
  padding: var(--section-pad) 0;
}

.index-category-group {
  margin-bottom: 72px;
}

.index-category-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cube-blue);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stone-deep);
  margin-bottom: 16px;
}

.index-item-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--stone-deep);
  transition: transform var(--dur-fast) var(--ease-editorial), color var(--dur-fast);
}

.index-item-link:hover {
  transform: translateX(12px);
  color: var(--cube-blue);
}

.index-item-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.1;
}

.index-item-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark-medium);
}

/* ==========================================================================
   EDITORIAL GALLERY RHYTHM (Category & Detail Pages)
   ========================================================================== */

.gallery-editorial-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 96px);
  padding: clamp(40px, 6vw, 80px) 0;
}

/* 1. Full-Bleed Panoramic Wide Image */
.rhythm-full-bleed {
  width: 100%;
  overflow: hidden;
  background-color: var(--stone-light);
}

.rhythm-full-bleed img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s var(--ease-editorial);
}

.rhythm-full-bleed:hover img {
  transform: scale(1.02);
}

/* 2. Portrait + Text Block */
.rhythm-portrait-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.rhythm-portrait-split.reverse {
  direction: rtl;
}

.rhythm-portrait-split.reverse > * {
  direction: ltr;
}

.rhythm-portrait-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--stone-light);
}

.rhythm-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-editorial);
}

.rhythm-portrait-split:hover .rhythm-portrait-frame img {
  transform: scale(1.03);
}

.rhythm-split-copy {
  padding: 20px 0;
}

/* 3. Two-Up Pair */
.rhythm-two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.two-up-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--stone-light);
}

.two-up-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-editorial);
}

.two-up-frame:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   EDITORIAL PROJECT DETAIL SYSTEM (ADesignCo / High-End Architectural Style)
   ========================================================================== */

/* Section B — Cinematic Architectural Hero */
.editorial-hero {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  padding-top: var(--nav-h);
}

.editorial-hero-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.editorial-hero-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--stone-light);
}

.editorial-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  border-radius: 0;
  cursor: zoom-in;
  transition: transform 0.8s var(--ease-editorial);
}

.editorial-hero-frame:hover .editorial-hero-img {
  transform: scale(1.015);
}

/* Section C — Editorial Project Introduction */
.editorial-intro-section {
  width: 100%;
  padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 72px);
}

.editorial-intro-container {
  max-width: 1320px;
}

.editorial-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.editorial-intro-media {
  width: 100%;
  overflow: hidden;
  background-color: var(--stone-light);
}

.editorial-intro-media img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.8s var(--ease-editorial);
}

.editorial-intro-media:hover img {
  transform: scale(1.02);
}

.editorial-intro-single {
  max-width: 820px;
  margin: 0 auto;
}

.editorial-intro-content {
  display: flex;
  flex-direction: column;
}

.editorial-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark-medium);
  margin-bottom: 12px;
}

.editorial-breadcrumb-link {
  color: var(--bark-medium);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.editorial-breadcrumb-link:hover {
  color: var(--bark);
}

.editorial-breadcrumb-sep {
  opacity: 0.5;
}

.editorial-project-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--bark);
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
}

/* Section D — Project Metadata */
.editorial-meta-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--stone-deep);
  border-bottom: 1px solid var(--stone-deep);
  padding: 18px 0;
  margin: 28px 0 32px;
  gap: 12px;
}

.editorial-meta-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: baseline;
  gap: 16px;
}

.editorial-meta-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark-medium);
}

.editorial-meta-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bark);
  font-weight: 500;
}

/* Section F — Narrative */
.editorial-narrative {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--bark);
  font-weight: 300;
}

.editorial-narrative p + p {
  margin-top: 16px;
}

/* Section E — Editorial Image Gallery Rhythm (Edge-to-Edge) */
.editorial-gallery-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 clamp(64px, 8vw, 112px);
}

.editorial-gallery-stream {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 64px);
}

.gallery-full-bleed {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--stone-light);
}

.gallery-full-bleed img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: cover;
  border-radius: 0;
  cursor: zoom-in;
  transition: transform 0.8s var(--ease-editorial);
}

.gallery-full-bleed:hover img {
  transform: scale(1.015);
}

.gallery-two-up {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vw, 20px);
}

.gallery-two-up-item {
  width: 100%;
  overflow: hidden;
  background-color: var(--stone-light);
}

.gallery-two-up-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  cursor: zoom-in;
  transition: transform 0.8s var(--ease-editorial);
}

.gallery-two-up-item:hover img {
  transform: scale(1.02);
}

.gallery-asymmetric {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.gallery-asymmetric.reverse {
  grid-template-columns: 1fr 1.35fr;
}

.gallery-asymmetric-item {
  overflow: hidden;
  background-color: var(--stone-light);
}

.gallery-asymmetric-item img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.8s var(--ease-editorial);
}

.gallery-asymmetric-item:hover img {
  transform: scale(1.02);
}

/* Section G — Previous and Next Projects Navigation */
.project-pagination {
  border-top: 1px solid var(--stone-deep);
  border-bottom: 1px solid var(--stone-deep);
  padding: clamp(24px, 4vw, 36px) 0;
  margin: clamp(40px, 6vw, 72px) 0;
}

.project-pagination-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.pagination-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  transition: opacity var(--dur-fast);
}

.pagination-link.next {
  text-align: right;
  align-items: flex-end;
}

.pagination-link.prev {
  text-align: left;
  align-items: flex-start;
}

.pagination-link:hover {
  opacity: 0.7;
}

.pagination-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bark-medium);
}

.pagination-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--bark);
  font-weight: 500;
}

.pagination-center {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--stone-deep);
  color: var(--bark);
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--dur-fast);
  white-space: nowrap;
}

.pagination-center:hover {
  background-color: var(--bark);
  color: var(--stone);
  border-color: var(--bark);
}

/* Section H — Related Projects */
.editorial-related-section {
  padding: clamp(32px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--stone-deep);
}

.related-header {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.related-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--bark);
  margin-top: 6px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

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

.related-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--stone-light);
  display: block;
}

.related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-editorial);
}

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

.related-card-body {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-card-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark-medium);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.related-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--bark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.related-card-title a {
  text-decoration: none;
  color: inherit;
}

.related-card-title a:hover {
  color: var(--cube-blue);
}

.related-card-link {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: gap var(--dur-fast);
}

.related-card-link:hover {
  gap: 10px;
  color: var(--cube-blue);
}

/* Section I — Project Enquiry */
.editorial-enquiry-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.editorial-enquiry-box {
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--stone-deep);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 48px);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.enquiry-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--bark);
  margin: 10px 0 16px;
}

.enquiry-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--bark-medium);
  max-width: 640px;
  margin: 0 auto clamp(24px, 4vw, 36px);
}

.enquiry-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.enquiry-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--dur-fast);
}

.enquiry-btn.whatsapp-btn {
  background-color: var(--bark);
  color: var(--stone);
  border: 1px solid var(--bark);
}

.enquiry-btn.whatsapp-btn:hover {
  background-color: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
}

.enquiry-btn.call-btn {
  background-color: transparent;
  color: var(--bark);
  border: 1px solid var(--stone-deep);
}

.enquiry-btn.call-btn:hover {
  border-color: var(--bark);
  background-color: rgba(47, 34, 24, 0.06);
}

.enquiry-btn.form-btn {
  background-color: transparent;
  color: var(--bark);
  border: 1px solid var(--bark);
}

.enquiry-btn.form-btn:hover {
  background-color: var(--bark);
  color: var(--stone);
}

/* Responsive Overrides for Editorial Detail System */
@media (max-width: 900px) {
  .editorial-intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .related-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .gallery-two-up,
  .gallery-asymmetric,
  .gallery-asymmetric.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .project-pagination-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .pagination-link.prev,
  .pagination-link.next {
    align-items: center;
    text-align: center;
  }
  .pagination-center {
    order: -1;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .editorial-meta-row {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }
  .enquiry-actions {
    flex-direction: column;
    width: 100%;
  }
  .enquiry-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Legacy Project Detail Meta Bar (kept for compatibility) */
.project-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--stone-deep);
  border-bottom: 1px solid var(--stone-deep);
  margin: 40px 0;
}

.meta-field-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bark-medium);
  margin-bottom: 6px;
}

.meta-field-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--bark);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(47, 34, 24, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-editorial), visibility var(--dur-fast);
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: clamp(24px, 4vw, 48px);
  color: #FFFFFF;
  font-size: 1.8rem;
  z-index: 2010;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #FFFFFF;
  font-size: 2rem;
  padding: 20px;
  z-index: 2010;
}

.lightbox-prev-btn {
  left: clamp(12px, 3vw, 36px);
}

.lightbox-next-btn {
  right: clamp(12px, 3vw, 36px);
}

/* ==========================================================================
   CONTACT FORM & STUDIO DETAILS
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(48px, 6vw, 96px);
  padding: var(--section-pad) 0;
}

.form-grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group-editorial {
  margin-bottom: 32px;
}

.input-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 8px;
}

.input-editorial,
.select-editorial,
.textarea-editorial {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stone-deep);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bark);
  border-radius: 0;
  transition: border-color var(--dur-fast);
}

.input-editorial:focus,
.select-editorial:focus,
.textarea-editorial:focus {
  outline: none;
  border-bottom-color: var(--cube-blue);
}

.form-status-alert {
  padding: 16px;
  border: 1px solid var(--stone-deep);
  font-size: 0.9rem;
  margin-top: 20px;
  display: none;
}

.form-status-alert.is-success {
  display: block;
  background-color: var(--bark-soft);
  color: var(--bark);
  border-color: var(--cube-blue);
}

.form-status-alert.is-error {
  display: block;
  background-color: rgba(180, 40, 40, 0.08);
  color: #8A1F1F;
  border-color: #8A1F1F;
}

/* Honeypot field (hidden from legitimate humans) */
.honeypot-field {
  display: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   FOOTER (Solid Bark Grounding)
   ========================================================================== */

.site-footer {
  background-color: var(--bark);
  color: var(--stone);
  padding: clamp(64px, 8vw, 110px) 0 36px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.footer-brand-p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(202, 197, 186, 0.75);
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 0.88rem;
  color: rgba(202, 197, 186, 0.75);
  transition: color var(--dur-fast);
}

.footer-nav-list a:hover {
  color: #FFFFFF;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(202, 197, 186, 0.2);
  padding-top: 28px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(202, 197, 186, 0.85);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-bar a {
  color: rgba(202, 197, 186, 0.85);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-bottom-bar a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (360, 768, 1024, 1440)
   ========================================================================== */

@media (max-width: 1024px) {
  .three-way-portals,
  .four-way-portals {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-cell {
    border-right: 1px solid var(--stone-deep);
    border-bottom: 1px solid var(--stone-deep);
  }
  .portal-cell:nth-child(2n) {
    border-right: none;
  }
  .portal-cell:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .portal-image-frame {
    aspect-ratio: 4 / 3;
  }
  .brands-roster-grid,
  .trusted-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  .service-trigger {
    grid-template-columns: 50px 1.5fr 1fr 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
    --gutter: 20px;
    --section-pad: clamp(3.5rem, 8vw, 5.5rem);
  }

  /* Mobile Navbar Fixes */
  .site-nav {
    height: var(--nav-h);
  }
  .nav-layout {
    padding: 0 16px;
  }
  .brand-wrapper {
    max-width: 175px;
  }
  .brand-logo-img {
    height: 24px;
    max-width: 165px;
  }
  .brand-sub {
    display: none; /* Keep mobile header clean and prevent overlapping */
  }
  .nav-right {
    gap: 12px;
  }
  .nav-whatsapp-link {
    padding: 6px 10px;
  }
  .nav-whatsapp-link .nav-whatsapp-text {
    display: none; /* Icon-only on mobile */
  }
  .nav-enquire-link {
    font-size: 0.7rem;
    padding: 4px 0;
  }
  .menu-btn {
    font-size: 0.72rem;
    gap: 6px;
  }

  /* Hero Mobile Fixes */
  .hero-carousel {
    height: 100svh;
    min-height: 520px;
  }
  .hero-tagline {
    bottom: 64px;
    left: 20px;
    right: 20px;
    max-width: 320px;
  }
  .hero-tagline-text {
    font-size: 0.92rem;
    line-height: 1.45;
  }
  .carousel-indicators {
    bottom: 24px;
    left: 20px;
    right: auto;
    gap: 8px;
  }
  .carousel-indicator-bar {
    width: 32px;
    height: 2px;
  }

  /* Drawer Mobile Scrollability */
  .nav-drawer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px;
  }
  .drawer-nav-list a {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
  .drawer-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Instagram Gallery Grid */
  .instagram-curated-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Floating WhatsApp on Mobile */
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    padding: 14px;
    border-radius: 50%;
  }
  .floating-whatsapp .whatsapp-label {
    display: none;
  }
  .floating-whatsapp .whatsapp-icon {
    width: 26px;
    height: 26px;
  }

  /* Content & Roster Mobile Layout */
  .service-trigger {
    grid-template-columns: 40px 1fr 24px;
  }
  .service-preview {
    display: none;
  }
  .service-detail-inner {
    padding-left: 40px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .team-list-row {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }
  .team-num {
    font-size: 1.4rem;
  }
  .team-desc {
    grid-column: 2;
  }
  .flow-pillars {
    grid-template-columns: 1fr;
  }
  .brands-roster-grid,
  .trusted-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .client-roster-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .rhythm-portrait-split,
  .rhythm-two-up {
    grid-template-columns: 1fr;
  }
  .project-meta-bar {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .contact-grid {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 36px !important;
  }
  .form-grid-two-col {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .contact-form-card {
    padding: 24px 18px !important;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 16px;
  }
  .three-way-portals,
  .four-way-portals {
    grid-template-columns: 1fr;
  }
  .portal-cell {
    border-right: none;
    border-bottom: 1px solid var(--stone-deep);
  }
  .portal-cell:nth-child(2n) {
    border-right: none;
  }
  .portal-cell:last-child {
    border-bottom: none;
  }
  .portal-image-frame {
    aspect-ratio: 16 / 10;
  }
  .nav-layout {
    padding: 0 12px;
  }
  .brand-wrapper {
    max-width: 155px;
  }
  .brand-logo-img {
    height: 22px;
    max-width: 145px;
  }
  .nav-right {
    gap: 8px;
  }
  .instagram-curated-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .brands-roster-grid,
  .trusted-logos-grid {
    grid-template-columns: 1fr;
  }
  .brand-card {
    padding: 18px 14px;
    min-height: 130px;
  }
  .brand-badge {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 1.05rem;
  }
  .brand-badge small {
    margin-left: auto;
  }
  .project-meta-bar {
    grid-template-columns: 1fr;
  }
  .hero-tagline-text {
    font-size: 0.85rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   PORTFOLIO REGISTRY & ARCHITECTURAL GRID EXTENSIONS
   ========================================================================= */

.portfolio-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 24px 0;
  border-bottom: 1px solid var(--stone-deep);
  padding-bottom: 18px;
}

.portfolio-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bark-medium);
  border: 1px solid var(--stone-deep);
  background: transparent;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.portfolio-tab-link:hover {
  color: var(--bark);
  border-color: var(--bark);
  background: rgba(47, 34, 24, 0.04);
}

.portfolio-tab-link.active {
  color: #FFFFFF;
  background: var(--bark);
  border-color: var(--bark);
}

.portfolio-tab-link .badge-count {
  font-size: 0.75rem;
  opacity: 0.8;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.portfolio-tab-link:not(.active) .badge-count {
  background: rgba(47, 34, 24, 0.08);
}

.portfolio-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.portfolio-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcat-chip {
  padding: 5px 12px;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bark-medium);
  border: 1px solid rgba(47, 34, 24, 0.15);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subcat-chip:hover,
.subcat-chip.active {
  color: var(--bark);
  border-color: var(--bark);
  background: rgba(47, 34, 24, 0.08);
}

.portfolio-search-box {
  position: relative;
  min-width: 280px;
}

.portfolio-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--bark);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--stone-deep);
  border-radius: 4px;
  outline: none;
  transition: all 0.25s ease;
}

.portfolio-search-input:focus {
  background: #FFFFFF;
  border-color: var(--bark);
}

.portfolio-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--bark-medium);
  pointer-events: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: 64px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(179, 168, 152, 0.6);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--bark);
  box-shadow: 0 16px 36px rgba(47, 34, 24, 0.08);
}

.portfolio-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-deep);
}

.portfolio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.04);
}

.portfolio-card-badge {
  display: none !important;
}

/* ==========================================================================
   LENIS SMOOTH SCROLLING STYLES
   ========================================================================== */
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;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

.portfolio-card-info {
  padding: 20px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bark-medium);
  margin-bottom: 8px;
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--bark);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.portfolio-card:hover .portfolio-card-title {
  color: var(--cube-blue);
}

.portfolio-card-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--bark-medium);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.portfolio-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bark);
  font-weight: 600;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.portfolio-card:hover .portfolio-card-action {
  gap: 10px;
  color: var(--cube-blue);
}

/* Related projects bar */
.related-projects-section {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--stone-deep);
  margin-top: 64px;
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .portfolio-nav-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 12px !important;
    margin: 20px 0 16px 0 !important;
    scrollbar-width: none !important;
  }
  .portfolio-nav-bar::-webkit-scrollbar {
    display: none !important;
  }
  .portfolio-tab-link {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
  }
  .portfolio-controls-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
  }
  .portfolio-search-box {
    width: 100% !important;
    min-width: 0 !important;
  }
  .portfolio-search-input {
    width: 100% !important;
    font-size: 0.84rem !important;
  }
}


/* ==========================================================================
   MOBILE OVERFLOW & LAYOUT FIXES (v9)
   ========================================================================== */

/* 1. Prevent horizontal scrollbar on html root */
html {
  overflow-x: hidden;
  max-width: 100%;
}

/* 2. Clip the marquee section so infinite scrolling tracks don't cause page overflow */
.trusted-by-strip {
  overflow: hidden;
  max-width: 100%;
}

@media (max-width: 768px) {
  /* 3. Section header rows: allow wrapping so subtitle + link stack vertically */
  .section-header-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* 4. archive-header-action: full width when wrapped */
  .archive-header-action {
    width: 100%;
  }

  /* 5. Studio intro 2-col grid → single column */
  .intro-grid-two-col {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* 6. Portal image frames: prevent overflow */
  .portal-image-frame {
    overflow: hidden;
  }

  /* 7. Brand card marquee: smaller on mobile */
  .brand-card-marquee {
    flex: 0 0 220px;
    width: 220px;
  }

  /* 8. Project card images: show placeholder bg while lazy loading */
  .portfolio-card-media {
    background: var(--stone-deep, #c8bfb0);
  }

  /* 9. Portfolio card min-height so skeleton shows properly */
  .portfolio-card-img {
    min-height: 180px;
  }

  /* 10. Nav header: prevent overflow on small screens */
  .site-nav {
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  /* 11. Even smaller brand cards on tiny screens */
  .brand-card-marquee {
    flex: 0 0 190px;
    width: 190px;
  }

  /* 12. Ensure hero carousel doesn't overflow */
  .hero-carousel,
  .carousel-slide {
    max-width: 100vw;
    overflow: hidden;
  }

  /* 13. Contact & section headings won't break layout */
  .section-label,
  .section-eyebrow {
    white-space: normal;
    word-break: break-word;
  }
}
