/* BIG | Bjarke Ingels Group - Local Replica Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  
  --bg-color: #ffffff;
  --text-main: #000000;
  --text-dark: #1b1b1b;
  --text-muted: #6b6b6b;
  --text-sub: #797979;
  --text-light: #9e9e9e;
  
  --border-light: #e5e5e5;
  --border-medium: #cccccc;
  
  --header-height: 52px;
  --subnav-height: 38px;
  
  --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  
  --project-scale: 0.75;
  --project-max-height: 76vh;
  
  /* BIG custom SVG cursors */
  --cursor-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' width='22' height='22' viewBox='0 0 114 85'%3E%3Cpath fill='%23fff' d='M52.41 3.08 2.44 42.16l49.97 39.08V3.08Z'/%3E%3Cpath fill='%23000' d='M53.91 84.32 0 42.16 53.91 0v84.32ZM4.87 42.16l46.04 36.01V6.15L4.87 42.16Z'/%3E%3C/svg%3E") 11 11, pointer;
  --cursor-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' width='22' height='22' viewBox='0 0 114 85'%3E%3Cpath fill='%23fff' d='m61.12 81.24 49.98-39.08L61.12 3.08v78.16Z'/%3E%3Cpath fill='%23000' d='M59.62 84.32V0l53.91 42.16-53.91 42.16Zm3-78.17v72.02l46.04-36.01L62.62 6.15Z'/%3E%3C/svg%3E") 11 11, pointer;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* =========================================
   INTRO SPLASH SCREEN
   ========================================= */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-smooth), visibility 0.8s var(--ease-smooth);
}

#splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-logo {
  width: 90px;
  height: 40px;
  transform: scale(1);
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease;
}

#splash-screen.splash-animating .splash-logo {
  transform: scale(3.5);
  opacity: 0;
}

/* =========================================
   FIXED HEADER & LOGO
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

@media (min-width: 1024px) {
  .site-header {
    padding: 0 40px;
  }
}

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

/* BIG Interactive Monogram Logo */
.logo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 0;
  z-index: 101;
}

.big-logo-svg {
  width: 36px;
  height: 16px;
  display: block;
}

.big-logo-svg polyline,
.big-logo-svg line {
  stroke: #000000;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.logo-btn:hover .big-logo-svg polyline,
.logo-btn:hover .big-logo-svg line {
  stroke: #666666;
}

.logo-status-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
  display: none;
}

@media (min-width: 768px) {
  .logo-status-tag {
    display: inline-block;
  }
}

/* Center Category Nav */
.category-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 900px) {
  .category-nav {
    display: flex;
  }
}

.category-link {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 400;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.category-link:hover,
.category-link.active {
  color: #000000;
  font-weight: 500;
}

.category-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #000000;
}

/* Header Right: Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Scale / Zoom Control */
.scale-control {
  display: none;
  align-items: center;
  gap: 10px;
  padding-right: 8px;
  border-right: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .scale-control {
    display: flex;
  }
}

.scale-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.scale-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 2px;
  background: #000000;
  outline: none;
  border-radius: 1px;
}

.scale-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #000000;
  border-radius: 50%;
  cursor: ew-resize;
  transition: transform 0.15s ease;
}

.scale-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Search Trigger Button */
.search-btn, .menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.search-btn:hover, .menu-toggle-btn:hover {
  opacity: 0.6;
}

/* View Mode Toggles */
.view-mode-group {
  display: none;
  gap: 4px;
}

@media (min-width: 1100px) {
  .view-mode-group {
    display: flex;
  }
}

.view-btn {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 3px 6px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.view-btn.active, .view-btn:hover {
  color: #000000;
  background-color: #f2f2f2;
}

/* =========================================
   SUBCATEGORIES BAR
   ========================================= */
.subcategories-bar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: #ffffff;
  z-index: 90;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  transform: translateY(0);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.subcategories-bar.sub-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.sub-link {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  animation: subPillFadeBlur 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes subPillFadeBlur {
  0% {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

.sub-link:hover, .sub-link.active {
  color: #000000;
  font-weight: 500;
}

/* =========================================
   SEARCH OVERLAY
   ========================================= */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  z-index: 150;
  padding: 16px 5vw;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease-out);
}

.search-overlay.active {
  transform: translateY(0);
}

.search-input {
  flex: 1;
  font-size: 18px;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #000000;
  outline: none;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-close-btn {
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

/* =========================================
   NAVIGATION DRAWER (MENU)
   ========================================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  background-color: #ffffff;
  z-index: 201;
  padding: 80px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease-out);
}

.nav-drawer.open {
  transform: translateX(0);
}

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

.drawer-nav-link {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.drawer-nav-link:hover, .drawer-nav-link.active {
  color: #000000;
  font-weight: 600;
  transform: translateX(4px);
}

.drawer-footer {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

/* =========================================
   MAIN VIEW CONTAINER
   ========================================= */
.main-content {
  padding-top: calc(var(--header-height) + 16px);
  min-height: 100vh;
  position: relative;
}

.subnav-active .main-content {
  padding-top: calc(var(--header-height) + var(--subnav-height) + 16px);
}

/* View Sections */
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
}

/* =========================================
   PROJECTS FEED
   ========================================= */
.projects-container {
  width: 100%;
  padding: 20px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-feed-wrapper {
  width: 100%;
  max-width: 1440px;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s var(--ease-out);
}

/* Projects Stack Mode (Signature BIG Vertical Cinematic Stack) */
.projects-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.project-item {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: calc(64vw * var(--project-scale, 1) + 200px);
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
  animation: projectCardFadeBlur 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes projectCardFadeBlur {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.96) translateY(12px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1) translateY(0);
  }
}

.project-item:hover {
  transform: translateY(-2px);
}

.project-item:active {
  transform: scale(0.985);
  transition: transform 0.15s ease;
}

.project-view-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .project-view-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
}

/* Left/Sidebar Info block in Card */
.project-info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
  order: 2;
}

@media (min-width: 768px) {
  .project-info-block {
    order: 1;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 200px;
    padding-top: 4px;
  }
}

/* The Signature BIG Pictogram Icon in Black Box */
.project-icon-box {
  width: 36px;
  height: 36px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 1px;
}

@media (min-width: 768px) {
  .project-icon-box {
    width: 48px;
    height: 48px;
  }
}

.project-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0) invert(1);
}

.project-text-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-dark);
  word-break: break-word;
}

@media (min-width: 768px) {
  .project-title {
    font-size: 17px;
  }
}

.project-location {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

.project-tag-pill {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-top: 4px;
}

/* Image Visual Container */
.project-image-box {
  position: relative;
  width: 100%;
  background-color: #f3f3f3;
  overflow: hidden;
  border-radius: 1px;
  order: 1;
  max-height: var(--project-max-height);
}

@media (min-width: 768px) {
  .project-image-box {
    order: 2;
    flex: 1;
  }
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out), filter 0.4s ease;
}

.project-item:hover .project-image-box img {
  transform: scale(1.025);
}

/* =========================================
   GRID VIEW MODE
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 24px;
  width: 100%;
}

@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
  }
}

.projects-grid .project-item {
  max-width: none;
}

.projects-grid .project-view-inner {
  flex-direction: column;
  gap: 12px;
}

.projects-grid .project-info-block {
  order: 2;
  flex-direction: row;
  align-items: center;
  text-align: left;
  width: auto;
  gap: 12px;
}

.projects-grid .project-icon-box {
  width: 38px;
  height: 38px;
}

.projects-grid .project-title {
  font-size: 14.5px;
}

/* =========================================
   LIST VIEW MODE
   ========================================= */
.projects-list-table {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-collapse: collapse;
}

.projects-list-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid #000000;
}

.projects-list-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}

.projects-list-table tr:hover td {
  background-color: #fafafa;
  cursor: pointer;
}

/* =========================================
   PROJECT DETAIL MODAL
   ========================================= */
/* =========================================
   PROJECT DETAIL HORIZONTAL MODAL
   ========================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Close Button */
.modal-close-btn {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 520;
  width: 40px;
  height: 40px;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close-btn:hover {
  transform: rotate(90deg) scale(1.08);
  background-color: #222222;
}

/* Horizontal Scroll Track */
.modal-horizontal-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 100vh;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 40px 48px 40px 40px;
  gap: 40px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.modal-horizontal-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.modal-horizontal-track::-webkit-scrollbar {
  height: 4px;
}

.modal-horizontal-track::-webkit-scrollbar-track {
  background: transparent;
}

.modal-horizontal-track::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 2px;
}

/* Base Modal Column */
.modal-column {
  flex-shrink: 0;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
}

/* COLUMN 1: LEFT PROJECT METADATA (Matching user screenshot) */
.modal-meta-column {
  flex: 0 0 260px;
  width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  padding-right: 16px;
}

.modal-project-badge {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.modal-icon-box {
  width: 44px;
  height: 44px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1px;
}

.modal-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0) invert(1);
}

.modal-title-block {
  margin-bottom: 24px;
}

.modal-title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.22;
  color: #000000;
}

.modal-location {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-sub);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.modal-meta-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-meta-label {
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.modal-meta-value {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}

/* Share Icons at Bottom */
.modal-share-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.modal-share-label {
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.modal-share-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-btn-icon {
  width: 20px;
  height: 20px;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  border-radius: 1px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.share-btn-icon:hover {
  opacity: 0.75;
  transform: scale(1.1);
}

/* COLUMN 2: HERO VISUAL MEDIA (Gradual Zoom-In Expansion) */
.modal-hero-column {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-hero-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f7f7f7;
  border-radius: 2px;
}

.modal-hero-wrapper img {
  height: calc(100vh - 80px);
  width: auto;
  max-width: 72vw;
  object-fit: contain;
  display: block;
  transform: scale(0.88);
  opacity: 0;
  filter: blur(8px);
  transform-origin: center center;
  transition: transform 0.88s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.modal-backdrop.open .modal-hero-wrapper img {
  transform: scale(1);
  opacity: 1;
  filter: blur(0px);
}

/* COLUMN 3: CONCEPT NARRATIVE */
.modal-narrative-column {
  flex: 0 0 340px;
  width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 12px 20px 12px 10px;
  border-left: 1px solid var(--border-light);
}

.section-kicker {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.modal-narrative-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-narrative-p {
  font-size: 13px;
  line-height: 1.65;
  color: #333333;
}

/* COLUMN 4+: EXTENSIBLE DYNAMIC COMPONENT SLOTS */
.modal-components-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 36px;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
  align-items: stretch;
}

/* ALL Dynamic Component Cards have FIXED HEIGHT matching Hero Image */
.modal-component-card,
.project-component-card {
  flex: 0 0 auto;
  height: calc(100vh - 80px) !important;
  max-height: calc(100vh - 80px) !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.modal-component-card:hover,
.project-component-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: #000000;
}

/* 1. Pure Media / Diagram / GIF Component: Fixed Height Exactly Aligned with Hero */
.modal-component-card.comp-type-media {
  padding: 0;
  background: #f7f7f7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-component-card.comp-type-media .component-media-frame {
  height: calc(100vh - 80px) !important;
  max-height: calc(100vh - 80px) !important;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #f7f7f7;
}

.modal-component-card.comp-type-media .component-card-img {
  height: calc(100vh - 80px) !important;
  max-height: calc(100vh - 80px) !important;
  width: auto;
  max-width: 75vw;
  object-fit: contain;
  display: block;
}

/* 2. Mixed Component (Text + Media/GIF) */
.modal-component-card.comp-type-mixed {
  width: 380px;
  flex: 0 0 380px;
  justify-content: space-between;
}

.modal-component-card.comp-type-mixed .component-media-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin: 12px 0;
}

.modal-component-card.comp-type-mixed .component-card-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* 3. Text Narrative Component */
.modal-component-card.comp-type-text {
  width: 340px;
  flex: 0 0 340px;
  overflow-y: auto;
  justify-content: flex-start;
}

/* Media Frame & Click-to-Swap Styling */
.component-media-frame {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.component-media-frame:hover .component-swap-badge {
  transform: scale(1.05);
  background: #000000;
}

.component-card-img {
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.component-card-img.swapping {
  opacity: 0.12 !important;
  transform: scale(0.97);
}

/* Swap Badge (⇄ Click to swap) */
.component-swap-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.component-swap-badge .swap-icon {
  font-size: 12px;
  line-height: 1;
}

.component-swap-badge .gif-tag {
  background: #10b981;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Pagination Dots */
.component-swap-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 6;
}

.swap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.swap-dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.swap-dot.active {
  width: 18px;
  border-radius: 10px;
  background: #ffffff;
}

/* Card Header & Content */
.component-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.component-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #000000;
}

.component-card-delete {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.component-card-delete:hover {
  color: #ef4444;
  background: #fee2e2;
}

.component-card-title,
.component-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: #000000;
  margin: 0;
}

.component-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}

.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

/* Add Component Slot Button in Reel */
.component-add-slot {
  flex: 0 0 280px;
  width: 280px;
  height: calc(100vh - 80px) !important;
  max-height: calc(100vh - 80px) !important;
  box-sizing: border-box;
  border: 2px dashed #cccccc;
  background: #fafafa;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.component-add-slot:hover {
  border-color: #000000;
  background: #f0f0f0;
  transform: scale(1.01);
}

.component-add-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px dashed #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.component-add-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.component-add-subtitle {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}

/* STAGGERED BLUR-TO-CLEAR TEXT ANIMATIONS */
.modal-meta-column,
.modal-narrative-column,
.modal-component-card,
.project-component-card {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.modal-backdrop.open .modal-meta-column {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
  transition-delay: 0.22s;
}

.modal-backdrop.open .modal-narrative-column {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
  transition-delay: 0.36s;
}

.modal-backdrop.open .modal-component-card,
.modal-backdrop.open .project-component-card {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* Horizontal Scroll Floating Controls */
.modal-scroll-controls {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 515;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-scroll-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  backdrop-filter: blur(4px);
}

.modal-scroll-btn:hover {
  background-color: #000000;
  transform: scale(1.1);
}

/* =========================================
   ABOUT VIEW
   ========================================= */
.about-page-container {
  padding: 40px 5vw 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-headline {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.editorial-columns {
  columns: 1;
  gap: 60px;
  font-size: 15px;
  line-height: 1.7;
  color: #222222;
  margin-bottom: 60px;
  white-space: pre-wrap;
}

@media (min-width: 900px) {
  .editorial-columns {
    columns: 2;
    gap: 80px;
  }
}

.about-hero-image {
  width: 100%;
  margin-bottom: 80px;
}

.about-section-block {
  margin-top: 80px;
}

.section-title {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.horizontal-card-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.sub-discipline-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background-color: #fafafa;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sub-discipline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.sub-discipline-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.sub-discipline-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-discipline-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================
   NEWS VIEW
   ========================================= */
.news-page-container {
  padding: 40px 5vw 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 36px;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.news-card-image {
  width: 100%;
  height: 260px;
  background-color: #f0f0f0;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.03);
}

.news-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.news-tag {
  color: #000000;
  font-weight: 600;
}

.news-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dark);
}

.news-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================
   PEOPLE VIEW
   ========================================= */
.people-page-container {
  padding: 40px 5vw 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.people-list {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.people-row {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.people-row:hover {
  background-color: #fafafa;
}

.people-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.people-name {
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.people-plus {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.people-row.expanded .people-plus {
  transform: rotate(45deg);
}

.people-role {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.people-bio {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease, margin-top 0.3s ease;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.people-row.expanded .people-bio {
  max-height: 300px;
  opacity: 1;
  margin-top: 16px;
}

/* =========================================
   SUSTAINABILITY VIEW
   ========================================= */
.sustainability-container {
  padding: 40px 5vw 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.sustainability-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 60px 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 40px 0;
}

@media (min-width: 768px) {
  .sustainability-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-value {
  font-size: clamp(36px, 5vw, 64px);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  max-width: 180px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

.pillar-card {
  padding: 30px;
  background: #f9f9f9;
  border-left: 2px solid #000000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #000;
}

.pillar-title {
  font-size: 18px;
  font-weight: 500;
}

.pillar-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   PROJECT DETAIL HORIZONTAL MODAL (BIG-STYLE)
   ========================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 550;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Close button - Top right fixed */
.modal-close-btn {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 600;
  background: transparent;
  border: none;
  font-size: 36px;
  line-height: 1;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  outline: none;
}

.modal-close-btn:hover {
  transform: rotate(90deg) scale(1.15);
  opacity: 0.7;
}

/* Horizontal Track - Smooth horizontal panning / dragging */
.modal-horizontal-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100vh;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  transform: scale(0.92);
  transform-origin: center center;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-horizontal-track {
  transform: scale(1);
}

.modal-horizontal-track.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

.modal-horizontal-track::-webkit-scrollbar {
  height: 6px;
}
.modal-horizontal-track::-webkit-scrollbar-track {
  background: transparent;
}
.modal-horizontal-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Staggered Blur-to-Clear and Zoom Entrance Animations */
@keyframes textBlurIn {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

@keyframes heroImageZoomIn {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
}

/* Modal Columns */
.modal-column {
  flex-shrink: 0;
  height: 100%;
  box-sizing: border-box;
}

/* COLUMN 1: LEFT PROJECT METADATA (Matches screenshot) */
.modal-meta-column {
  width: 280px;
  padding: 36px 32px 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-light);
  overflow-y: auto;
  background: #ffffff;
}

.modal-project-badge {
  margin-bottom: 24px;
  opacity: 0;
}
.modal-backdrop.open .modal-project-badge {
  animation: textBlurIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.modal-icon-box {
  width: 44px;
  height: 44px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.modal-icon-box img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(1);
}

.modal-title-block {
  margin-bottom: 32px;
  opacity: 0;
}
.modal-backdrop.open .modal-title-block {
  animation: textBlurIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.modal-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.modal-location {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.modal-meta-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
  opacity: 0;
}
.modal-backdrop.open .modal-meta-list {
  animation: textBlurIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

.modal-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-meta-value {
  font-size: 12.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}

.modal-share-bar {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
}
.modal-backdrop.open .modal-share-bar {
  animation: textBlurIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.36s forwards;
}

.modal-share-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-share-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-btn-icon {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn-icon:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
}

/* COLUMN 2: HERO VISUAL MEDIA */
.modal-hero-column {
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-right: 1px solid var(--border-light);
}

.modal-hero-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.modal-backdrop.open .modal-hero-wrapper {
  animation: heroImageZoomIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.modal-hero-wrapper img {
  height: calc(100vh - 64px);
  width: auto;
  max-width: none;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  pointer-events: none;
}

/* COLUMN 3: CONCEPT NARRATIVE */
.modal-narrative-column {
  width: 380px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid var(--border-light);
  overflow-y: auto;
  background: #ffffff;
}

.modal-narrative-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
}
.modal-backdrop.open .modal-narrative-content {
  animation: textBlurIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards;
}

.modal-narrative-p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #222222;
  letter-spacing: -0.005em;
}

.modal-narrative-p strong {
  font-weight: 600;
  color: #000000;
}

/* COLUMN 4+: DYNAMIC EXTENSIBLE COMPONENTS */
.modal-components-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.modal-component-card {
  width: 340px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-light);
  padding: 48px 32px;
  background: #ffffff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
}

.modal-backdrop.open .modal-component-card {
  animation: textBlurIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--anim-delay, 0.4s) forwards;
}

.component-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.component-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
}

.component-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.component-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-box {
  background: #f7f7f7;
  padding: 16px 14px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  font-family: monospace;
}

.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.component-diagram-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 2px;
  background: #eee;
}

.component-add-slot {
  width: 260px;
  flex-shrink: 0;
  padding: 48px 28px;
  border-right: 1px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.25s ease;
}

.component-add-slot:hover {
  background: #f0f0f0;
  border-color: #999;
}

.component-add-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #666;
}

.component-add-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
}

.component-add-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Horizontal Scroll Controls (Floating Chevrons) */
.modal-scroll-controls {
  position: fixed;
  bottom: 24px;
  right: 28px;
  display: flex;
  gap: 8px;
  z-index: 600;
  pointer-events: none;
}

.modal-scroll-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.modal-scroll-btn:hover {
  background: #000000;
  transform: scale(1.1);
}

/* Mobile & Tablet Adjustments */
@media (max-width: 900px) {
  .modal-meta-column {
    width: 240px;
    padding: 24px 20px;
  }
  .modal-hero-column {
    padding: 20px 24px;
  }
  .modal-hero-wrapper img {
    height: calc(100vh - 120px);
  }
  .modal-narrative-column {
    width: 300px;
    padding: 32px 24px;
  }
  .modal-component-card {
    width: 280px;
    padding: 32px 24px;
  }
}

/* =========================================
   CONTACT MODAL
   ========================================= */
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.contact-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.office-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dark);
}

.office-city {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* =========================================
   NOTIFICATIONS / TOAST
   ========================================= */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #000000;
  color: #ffffff;
  padding: 12px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 999;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

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

/* =========================================
   ADD COMPONENT MODAL & IMAGE UPLOAD
   ========================================= */
.component-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.component-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.component-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.component-modal-backdrop.open .component-modal-dialog {
  transform: scale(1);
}

.component-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.component-modal-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.component-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.component-modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.component-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}
.component-modal-close:hover {
  color: #000;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  border: 1px solid var(--border-medium);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 2px;
  background: #ffffff;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #000000;
}

.image-input-tabs {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.img-tab-btn {
  background: #f5f5f5;
  border: 1px solid var(--border-medium);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.img-tab-btn:hover {
  background: #e9e9e9;
  border-color: #000;
}

.image-preview-box {
  position: relative;
  margin-top: 10px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  max-height: 180px;
  background: #fafafa;
  display: flex;
  justify-content: center;
}

.image-preview-box img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.remove-preview-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.remove-preview-btn:hover {
  background: #000;
}

.add-metric-btn {
  background: none;
  border: none;
  color: #000;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.metrics-input-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr 32px;
  gap: 8px;
  align-items: center;
}

.metric-input-row input {
  border: 1px solid var(--border-medium);
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 2px;
}

.metric-remove-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.metric-remove-btn:hover {
  color: #ff3333;
}

.component-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  margin-top: 20px;
}

.save-target-hint {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-muted);
}

.btn-secondary {
  background: #f0f0f0;
  color: #111;
  border: 1px solid #ddd;
  padding: 10px 18px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: #e2e2e2;
}

.btn-primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 10px 22px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: #222222;
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Component card custom visual enhancements */
.component-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background: #f2f2f2;
}

.component-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.component-card-delete {
  background: none;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  transition: all 0.2s ease;
  line-height: 1;
}
.component-card-delete:hover {
  color: #ff2222;
  background: #fff0f0;
}

