/* ==========================================================================
   BLISS ARCHITECTS — REFINED SLEEK MINIMAL DESIGN SYSTEM
   Full-Screen Editorial Project Presentation Pages & Gallery
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600&family=Space+Grotesk:wght@400;500&display=swap');

:root {
  --bg-main: #f8f7f4;
  --bg-secondary: #efeee9;
  --bg-dark: #0f0f0f;
  --bg-card: #ffffff;

  --text-main: #141414;
  --text-muted: #6e6b63;
  --text-light: #f8f7f4;

  --accent-gold: #b5985a;
  --accent-dark: #1a1918;

  --border-subtle: rgba(20, 20, 20, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);

  --font-heading: 'Outfit', sans-serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Complete Dark Mode Theme Variables */
body.dark-theme {
  --bg-main: #0c0c0b;
  --bg-secondary: #141412;
  --bg-dark: #0a0a09;
  --bg-card: #141412;

  --text-main: #f5f4f0;
  --text-muted: #a09d94;
  --text-light: #f8f7f4;

  --border-subtle: rgba(245, 244, 240, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Minimal Pointer
   Both elements sit at (0,0) until the first mousemove, so they stay hidden
   until then — otherwise the "EXPLORE" circle peeks out of the top-left corner
   on load, and stays there forever on touch devices. */
#cursor-dot, #cursor-circle {
  opacity: 0;
}

body.cursor-ready #cursor-dot,
body.cursor-ready #cursor-circle {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-circle {
    display: none !important;
  }
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--text-main);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, opacity 0.3s ease;
}

#cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-main);
}

body.dark-theme #cursor-circle {
  border-color: rgba(244, 243, 239, 0.25);
  color: #f5f4f0;
}

#cursor-circle.expand {
  width: 90px;
  height: 90px;
  background: rgba(181, 152, 90, 0.12);
  border-color: var(--accent-gold);
}

/* APPLE-STYLE VERTICAL LEFT TIMELINE NAVIGATION DOTS */
.apple-timeline-nav {
  position: fixed;
  left: 2.2vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  mix-blend-mode: difference;
}

.timeline-line-bg {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  background: rgba(255, 255, 255, 0.25);
  z-index: -1;
}

.timeline-line-progress {
  width: 100%;
  height: 0%;
  background: var(--accent-gold);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-dot-item {
  position: relative;
  width: 14px;
  height: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-dot-item:hover .dot-ring,
.timeline-dot-item.active .dot-ring {
  width: 14px;
  height: 14px;
  background: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold);
}

.dot-label {
  position: absolute;
  left: 26px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #ffffff;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.85);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}

.timeline-dot-item:hover .dot-label {
  opacity: 1;
  transform: translateX(0);
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--text-main);
}

.mono-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

/* Crisp Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: padding 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}

body.dark-theme header {
  background: #121210;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

header.scrolled {
  padding: 0.8rem 5vw;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0);
  transition: filter 0.4s ease, transform 0.3s ease;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.04);
}

body.dark-theme .brand-logo-img {
  filter: brightness(2.5) contrast(1.1);
}

/* Header Center Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links li {
  list-style: none !important;
  display: inline-block !important;
}

.nav-links a {
  color: #141414;
  text-decoration: none !important;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

body.dark-theme .nav-links a {
  color: #f5f4f0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-gold);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-minimal {
  background: transparent;
  border: 1px solid #141414;
  color: #141414;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

body.dark-theme .btn-minimal {
  border-color: #f5f4f0;
  color: #f5f4f0;
}

.btn-minimal:hover {
  background: #141414;
  color: #ffffff;
}

body.dark-theme .btn-minimal:hover {
  background: #f5f4f0;
  color: #141414;
}

.btn-commission {
  background: #141414;
  color: #ffffff;
  font-weight: 500;
}

body.dark-theme .btn-commission {
  background: #f5f4f0;
  color: #121210;
  border-color: #f5f4f0;
}

body.dark-theme .btn-commission:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* Fullscreen Hero Showcase */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #080808;
  color: #ffffff;
  padding-top: 80px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), visibility 1s ease;
  display: flex;
  align-items: flex-end;
  padding: 8vh 5vw 8vh 8vw;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1);
  transform: scale(1.08);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active .hero-bg-img {
  transform: scale(1);
}

.hero-slide-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  color: #ffffff !important;
}

.hero-slide-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-gold) !important;
  margin-bottom: 1rem;
}

.hero-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  color: #ffffff !important;
}

.hero-slide-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-slider-nav {
  position: absolute;
  bottom: 8vh;
  right: 5vw;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.slider-counter {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.9);
}

.slider-arrows {
  display: flex;
  gap: 0.75rem;
}

.arrow-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-weight: 400;
  transition: all 0.3s ease;
}

.arrow-btn:hover {
  background: #fff;
  color: #000;
}

/* Minimal Editorial Section Layout */
.section-padding {
  padding: 10rem 5vw 10rem 8vw;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 6rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
  transition: border-color 0.4s ease;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

/* Selected Projects Grid */
.editorial-grid {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.editorial-project-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5vw;
  align-items: center;
  cursor: pointer;
}

.editorial-project-row:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
}

.editorial-project-row:nth-child(even) .project-media-col {
  order: 2;
}

.project-media-col {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-secondary);
  border-radius: 4px;
}

.project-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.editorial-project-row:hover .project-media-img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.1);
}

.project-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
}

.project-title-text {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.editorial-project-row:hover .project-title-text {
  color: var(--accent-gold);
}

.project-meta-list {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 0.4s ease, color 0.4s ease;
}

/* FULLSCREEN EDITORIAL PROJECT PRESENTATION MODAL / PAGE */
.project-modal-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-main);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, color 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-modal-page.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-top-bar {
  position: sticky;
  top: 0;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.modal-back-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.modal-back-btn:hover {
  color: var(--accent-gold);
}

.modal-project-title-tag {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.modal-close-x {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--text-main);
  line-height: 1;
}

.modal-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 8rem;
}

.modal-hero-banner {
  width: 100%;
  height: 68vh;
  position: relative;
  overflow: hidden;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.modal-hero-overlay-content {
  position: absolute;
  bottom: 4rem;
  left: 5vw;
  right: 5vw;
  color: #ffffff;
  max-width: 1000px;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0;
  margin: 4rem 0;
}

.modal-spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-spec-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-main);
}

.modal-narrative-text {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-main);
  font-weight: 300;
  max-width: 850px;
  margin-bottom: 4rem;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.modal-gallery-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.6s ease;
}

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

.modal-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 6rem;
}

.modal-nav-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-nav-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Materials & Craft Grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.material-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--text-main);
  transition: transform 0.4s ease, border-color 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.material-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
}

.material-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent-gold);
}

.material-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-main);
}

.material-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  transition: color 0.4s ease;
}

/* Compare Section Dark Theme */
.compare-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* Curtain Slider (Interactive Compare Render vs Blueprint) */
.curtain-slider-container {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  background-color: #000;
  margin-top: 4rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.curtain-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.curtain-layer.after-layer {
  width: 50%;
  border-right: 2px solid var(--accent-gold);
  z-index: 2;
}

.curtain-layer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.curtain-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--accent-gold);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: ew-resize;
  font-weight: 500;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Interactive Blueprint Spec Sheet Section */
.blueprint-spec-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.blueprint-interactive-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5vw;
  align-items: start;
}

.blueprint-list {
  display: flex;
  flex-direction: column;
}

.blueprint-item {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  transition: padding-left 0.3s ease, color 0.3s ease, border-color 0.4s ease;
}

.blueprint-item:hover, .blueprint-item.active {
  padding-left: 1.5rem;
  color: var(--accent-gold);
}

.blueprint-item-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
}

.blueprint-item-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.blueprint-display-box {
  position: sticky;
  top: 7rem;
  background-color: #0d0d0d;
  color: #fff;
  padding: 3rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blueprint-img-viewer {
  width: 100%;
  height: 380px;
  object-fit: contain;
  filter: invert(0.9) hue-rotate(180deg) brightness(1.2);
  transition: opacity 0.4s ease;
}

.blueprint-spec-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Studio & Partners Section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4vw;
  margin-top: 4rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text-main);
}

.partner-img-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: var(--bg-secondary);
  border-radius: 4px;
}

.partner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter 0.6s ease, transform 0.8s ease;
}

.partner-card:hover .partner-img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.03);
}

.partner-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-main);
}

.partner-role {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Minimal Footer */
footer {
  padding: 6rem 5vw 3rem 8vw;
  background-color: var(--bg-main);
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 3rem;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
}

.footer-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: color 0.4s ease;
}

/* Modal Drawer for Contact & Inquiry */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  justify-content: flex-end;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  width: 100%;
  max-width: 600px;
  height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-main);
  padding: 4rem 3rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, color 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-overlay.active .drawer-content {
  transform: translateX(0);
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-end;
  color: var(--text-main);
}

.minimal-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.input-field {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.input-field:focus {
  border-color: var(--text-main);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  min-height: 1.2em;
  margin-top: -1rem;
}

.form-status.is-success { color: #3f7d52; }
.form-status.is-error { color: #a8452f; }
.form-status.is-pending { color: var(--text-muted); }

body.dark-theme .form-status.is-success { color: #7fc08f; }
body.dark-theme .form-status.is-error { color: #e08a72; }

/* --- Mobile navigation: hamburger + dropdown panel ---------------------------
   The desktop nav element is reused as the mobile panel, so the links keep their
   data-i18n bindings instead of being duplicated. */
.btn-nav-toggle { display: none; }

/* Must out-specify `.nav-links li` (0,1,1), which is itself !important — a bare
   `.nav-mobile-only` (0,1,0) loses even with !important and the mobile-only
   items leak into the desktop header. */
.nav-links li.nav-mobile-only { display: none !important; }

@media (max-width: 900px) {
  header {
    padding: 0.7rem 5vw;
  }

  .brand-logo-img {
    height: 30px;
  }

  .header-meta {
    gap: 0.5rem;
  }

  .btn-minimal {
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
  }

  /* The header bar cannot fit logo + 3 buttons on a phone: the primary CTA
     moves into the panel (see .nav-cta-item) instead of being clipped. */
  #drawer-open-btn {
    display: none;
  }

  .btn-nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 34px;
    padding: 0;
  }

  .burger-bar {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s var(--transition-smooth), opacity 0.2s ease;
  }

  body.nav-open .burger-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  body.nav-open .burger-bar:nth-child(2) { opacity: 0; }
  body.nav-open .burger-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .nav-links li.nav-mobile-only { display: block !important; }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--transition-smooth);
  }

  body.dark-theme .header-nav {
    background: #121210;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  body.nav-open .header-nav {
    max-height: 78vh;
    overflow-y: auto;
  }

  .nav-links {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0.25rem 5vw 1.5rem !important;
  }

  .nav-links li {
    display: block !important;
  }

  .nav-links a {
    display: block;
    padding: 1.05rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-cta-item {
    margin-top: 1.25rem;
  }

  .nav-cta-item .btn-commission {
    width: 100%;
    padding: 0.95rem;
    font-size: 0.75rem;
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .apple-timeline-nav {
    display: none;
  }
  .section-padding {
    padding-left: 5vw;
  }
  .editorial-project-row, .editorial-project-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .editorial-project-row:nth-child(even) .project-media-col {
    order: 1;
  }
  .blueprint-interactive-grid {
    grid-template-columns: 1fr;
  }
  .modal-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Phone layout: desktop spacing and fixed heights do not survive 390px ---- */
@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 5vw;
  }

  .section-head {
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    gap: 1rem;
  }

  .section-head h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  }

  .editorial-grid {
    gap: 4rem;
  }

  /* Hero: the slider controls used to sit on top of the CTA button */
  .hero-slide {
    padding: 8vh 5vw 17vh;
  }

  .hero-slide-title {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero-slide-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-slider-nav {
    bottom: 3.5vh;
    left: 5vw;
    right: 5vw;
    justify-content: space-between;
    gap: 1rem;
  }

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

  /* Fixed 550px boxes eat two thirds of a phone screen. Clamped rather than
     pure vh: on a tall narrow viewport 62vh alone produced a 700px box. */
  .three-container {
    height: clamp(300px, 62vh, 460px) !important;
  }

  .curtain-slider-container {
    height: clamp(240px, 46vh, 400px);
    margin-top: 2rem;
  }

  .blueprint-display-box {
    position: static;
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .blueprint-img-viewer {
    height: 220px;
  }

  .blueprint-spec-table {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blueprint-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.2rem 0;
  }

  .blueprint-item:hover, .blueprint-item.active {
    padding-left: 0.75rem;
  }

  .blueprint-item-title {
    font-size: 1.15rem;
  }

  .material-card {
    padding: 2rem 1.5rem;
  }

  .materials-grid {
    gap: 1.5rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .drawer-content {
    max-width: 100%;
    padding: 2.5rem 1.5rem;
  }

  .minimal-form {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  /* Project modal */
  .modal-top-bar {
    padding: 1rem 5vw;
  }

  .modal-project-title-tag {
    display: none;
  }

  .modal-hero-banner {
    height: 45vh;
  }

  .modal-hero-overlay-content {
    bottom: 2rem;
  }

  .modal-specs-grid {
    padding: 2rem 0;
    margin: 2.5rem 0;
    gap: 1.5rem;
  }

  .modal-narrative-text {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
  }

  .modal-gallery-grid {
    gap: 1.25rem;
    margin: 2.5rem 0;
  }

  .modal-nav-footer {
    flex-direction: column;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
  }

  .modal-nav-btn {
    width: 100%;
  }

  footer {
    padding: 4rem 5vw 2.5rem;
    gap: 1.5rem;
  }

  .footer-brand {
    font-size: 1.6rem;
  }
}

/* --- Tablet band (769–1024px) -------------------------------------------------
   iPad portrait widths (810–834) sit above the phone breakpoint, so without this
   they kept desktop spacing — 160px section padding and 550px fixed boxes — even
   though the header had already switched to the hamburger. */
@media (min-width: 769px) and (max-width: 1024px) {
  .section-padding {
    padding: 6.5rem 5vw;
  }

  .section-head {
    margin-bottom: 3.5rem;
    padding-bottom: 1.75rem;
  }

  .editorial-grid {
    gap: 5.5rem;
  }

  .hero-slide {
    padding: 8vh 5vw 13vh;
  }

  .hero-slider-nav {
    bottom: 5vh;
  }

  .three-container {
    height: clamp(360px, 46vh, 520px) !important;
  }

  .curtain-slider-container {
    height: clamp(320px, 42vh, 480px);
    margin-top: 3rem;
  }

  /* The blueprint grid is single-column below 1024px, so a sticky panel just
     detaches from the list it belongs to. */
  .blueprint-display-box {
    position: static;
    padding: 2rem;
  }

  .blueprint-img-viewer {
    height: 300px;
  }

  .modal-hero-banner {
    height: 52vh;
  }

  .modal-gallery-grid {
    gap: 1.75rem;
  }

  .drawer-content {
    max-width: 520px;
    padding: 3rem 2.25rem;
  }

  footer {
    padding: 5rem 5vw 3rem;
  }
}

/* Permanent Dark Styling for 3D Spatial Section in all Themes */
#spatial-3d-section,
body.dark-theme #spatial-3d-section {
  background-color: #080808 !important;
  color: #f8f7f4 !important;
}

#spatial-3d-section .section-head h2,
body.dark-theme #spatial-3d-section .section-head h2 {
  color: #ffffff !important;
}

#spatial-3d-section .section-head p,
body.dark-theme #spatial-3d-section .section-head p {
  color: rgba(255, 255, 255, 0.7) !important;
}

#spatial-3d-section .section-head,
body.dark-theme #spatial-3d-section .section-head {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

