/* ==========================================================================
   NOIR ATELIER — ARCHITECTURAL INTERIORS & SPATIAL SYSTEMS
   Custom Variable Framework | High Air Ratio | Distinct Layout Rhythms
   ========================================================================== */

:root {
  --bg-deepest: #040406;
  --bg-base: #08080b;
  --bg-surface: #0f0f14;
  --bg-elevated: #15151e;
  --bg-overlay: #1c1c26;

  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(212, 163, 115, 0.45);
  --border-accent-subtle: rgba(212, 163, 115, 0.18);

  --text-pure: #ffffff;
  --text-high: #f5f5f7;
  --text-mid: #9a9aa5;
  --text-muted: #62626e;
  --text-dim: #44444e;

  --accent-gold: #d4a373;
  --accent-cream: #faedcd;
  --accent-bronze: #9c6644;
  --accent-glow: rgba(212, 163, 115, 0.2);

  --font-serif: "Cormorant Garamond", "Editorial New", "Didot", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-w-site: 1400px;
  --max-w-prose: 840px;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --trans-fast: 0.2s ease;
  --trans-smooth: 0.45s var(--ease-expo);
  --trans-slow: 0.85s var(--ease-expo);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deepest);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deepest);
  color: var(--text-high);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 14% 16%, rgba(212, 163, 115, 0.05) 0%, transparent 48%),
    radial-gradient(circle at 86% 32%, rgba(250, 237, 205, 0.025) 0%, transparent 52%),
    radial-gradient(circle at 50% 88%, rgba(156, 102, 68, 0.035) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 72px 72px, 72px 72px;
  pointer-events: none;
  z-index: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

@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;
  }
}

h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--text-pure);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  margin-bottom: 0.85rem;
}

p {
  color: var(--text-mid);
  font-size: 1.1rem;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.mono-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.gold-accent {
  color: var(--accent-gold);
}

.lead-statement {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--text-high);
  line-height: 1.7;
  font-weight: 300;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--trans-smooth);
}

.header-container {
  max-width: var(--max-w-site);
  margin: 0 auto;
  padding: 1.4rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-pure);
  flex-shrink: 0;
}

.brand-svg {
  width: 32px;
  height: 32px;
  transition: transform 0.65s var(--ease-expo);
}

.brand-link:hover .brand-svg {
  transform: rotate(90deg) scale(1.08);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--trans-fast);
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.35s var(--ease-expo);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-pure);
}

.site-nav a.active::after,
.site-nav a:hover::after {
  width: 100%;
}

/* Structural Layout & Spacing */
.site-main {
  flex: 1;
  max-width: var(--max-w-site);
  width: 100%;
  margin: 0 auto;
  padding: 6.5rem 2.5rem 9rem;
  position: relative;
  z-index: 1;
}

.hero-spread {
  padding-bottom: 5.5rem;
  margin-bottom: 6.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 5rem;
  align-items: end;
}

.hero-quote-block {
  border-left: 1px solid var(--border-accent);
  padding-left: 2.25rem;
  color: var(--text-mid);
  font-size: 1.25rem;
  line-height: 1.85;
  font-weight: 300;
}

/* Animations */
@keyframes fadeInElevate {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pathDraw {
  0% { stroke-dashoffset: 1200; }
  100% { stroke-dashoffset: 0; }
}

.anim-fade {
  animation: fadeInElevate 1s var(--ease-expo) forwards;
}

.stagger-1 { animation-delay: 0.12s; }
.stagger-2 { animation-delay: 0.24s; }
.stagger-3 { animation-delay: 0.36s; }

.anim-svg-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: pathDraw 2.4s var(--ease-expo) forwards;
}

/* PAGE 1: OVERVIEW COMPONENTS */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.metric-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem 2rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-smooth), border-color var(--trans-smooth);
}

.metric-cell:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.featured-exhibition {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  transition: border-color var(--trans-smooth), transform var(--trans-smooth);
}

.featured-exhibition:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.85);
}

.featured-svg-chamber {
  min-height: 480px;
  background: #08080b;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
}

.featured-svg-chamber svg {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease-expo);
}

.featured-exhibition:hover .featured-svg-chamber svg {
  transform: scale(1.04);
}

.featured-text-chamber {
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* PAGE 2: PROJECTS CATALOG (Asymmetric Layout) */
.projects-catalog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3.5rem 2.5rem;
  margin-bottom: 6.5rem;
}

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.project-entry {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-smooth), border-color var(--trans-smooth);
}

.project-entry:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
}

.blueprint-viewport {
  height: 340px;
  background: #08080b;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.blueprint-viewport.tall {
  height: 440px;
}

.blueprint-viewport svg {
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease-expo);
}

.project-entry:hover .blueprint-viewport svg {
  transform: scale(1.05);
}

.project-meta-body {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.75rem;
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

/* PAGE 3: MATERIALS SPECIMEN SLABS */
.material-specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-bottom: 6rem;
}

.specimen-slab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  position: relative;
  transition: border-color var(--trans-smooth), transform var(--trans-smooth);
}

.specimen-slab:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
}

.specimen-top {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.swatch-box {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  border: 1px solid var(--border-medium);
  flex-shrink: 0;
  position: relative;
}

.swatch-basalt { background: linear-gradient(135deg, #1b1b22 0%, #0d0d12 100%); }
.swatch-travertine { background: linear-gradient(135deg, #42392f 0%, #1e1a15 100%); }
.swatch-oak { background: linear-gradient(135deg, #2b2118 0%, #110c07 100%); }
.swatch-bronze { background: linear-gradient(135deg, #573f27 0%, #24180d 100%); }
.swatch-quartzite { background: linear-gradient(135deg, #262c33 0%, #101418 100%); }
.swatch-linen { background: linear-gradient(135deg, #383630 0%, #191815 100%); }

.specimen-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.spec-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.spec-val {
  color: var(--text-high);
  font-weight: 400;
}

/* PAGE 4: PROCESS TIMELINE WITH INLINE SVG DIAGRAMS */
.process-vertical-track {
  position: relative;
  max-width: 1100px;
  margin: 4rem auto 6.5rem;
  padding-left: 5rem;
}

.process-vertical-track::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 20px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold) 0%, rgba(212, 163, 115, 0.15) 100%);
}

.process-movement-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3.5rem;
  border-radius: 4px;
  margin-bottom: 3.5rem;
  transition: border-color var(--trans-smooth), transform var(--trans-smooth);
}

.process-movement-card:hover {
  border-color: var(--border-accent);
  transform: translateX(8px);
}

.movement-anchor-node {
  position: absolute;
  left: -5rem;
  top: 3.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-deepest);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-gold);
  box-shadow: 0 0 16px var(--accent-glow);
}

.process-blueprint-stage {
  margin: 2.25rem 0 1.25rem;
  background: #060609;
  border: 1px solid var(--border-subtle);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.process-blueprint-stage svg {
  width: 100%;
  height: 100%;
}

/* PAGE 5: JOURNAL BROADSHEET FEED */
.editorial-broadsheet {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 4.5rem;
  margin-bottom: 6.5rem;
}

.lead-essay-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4rem 3.5rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.essay-visual-art {
  height: 300px;
  background: #060609;
  border: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.essay-visual-art svg {
  width: 100%;
  height: 100%;
}

.journal-dispatches-column {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.dispatch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2.25rem;
  border-radius: 4px;
  transition: border-color var(--trans-fast), transform var(--trans-fast);
}

.dispatch-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

/* PAGE 6: ABOUT ETHOS & FOUNDER TILES */
.ethos-matrix-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0 6rem;
}

.ethos-matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.ethos-matrix-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-gold);
  opacity: 0.6;
}

.founder-profile-pod {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3.5rem;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.founder-avatar-frame {
  width: 130px;
  height: 130px;
  border: 1px solid var(--border-accent);
  background: #08080c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PAGE 7: PRIVACY LEDGER & 404 */
.privacy-ledger-flow {
  max-width: var(--max-w-prose);
  margin: 0 auto 6rem;
}

.ledger-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2.75rem;
  border-radius: 4px;
  margin-bottom: 2.25rem;
}

.void-state-container {
  text-align: center;
  max-width: 760px;
  margin: 5rem auto;
  padding: 4.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.void-svg {
  width: 140px;
  height: 140px;
  margin: 0 auto 2.5rem;
}

/* Shared Tables & Banners */
.data-registry-table {
  width: 100%;
  border-collapse: collapse;
  margin: 3rem 0 5rem;
  font-size: 0.95rem;
}

.data-registry-table th,
.data-registry-table td {
  padding: 1.4rem 1.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-registry-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.015);
}

.data-registry-table td {
  color: var(--text-mid);
  font-weight: 300;
}

.data-registry-table tr:hover td {
  background: var(--bg-surface);
  color: var(--text-pure);
}

.data-registry-table .cell-highlight {
  color: var(--text-pure);
  font-weight: 500;
}

.spatial-quote-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  padding: 3.5rem 4rem;
  margin: 4.5rem 0;
}

.spatial-quote-content {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-pure);
  margin-bottom: 1.5rem;
}

.spatial-quote-citation {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #040406;
  padding: 5rem 2.5rem 3.5rem;
  position: relative;
  z-index: 10;
}

.footer-inner-grid {
  max-width: var(--max-w-site);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  color: var(--text-pure);
  margin-bottom: 1.25rem;
}

.footer-col-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 0.85rem;
}

.footer-nav-list a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--trans-fast);
}

.footer-nav-list a:hover {
  color: var(--text-pure);
}

.footer-legal-bar {
  max-width: var(--max-w-site);
  margin: 2.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Media Queries */
@media (max-width: 1080px) {
  .hero-spread,
  .featured-exhibition,
  .editorial-broadsheet,
  .footer-inner-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .col-7, .col-5, .col-6 {
    grid-column: span 12;
  }

  .featured-svg-chamber {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
  }

  .site-nav ul {
    gap: 1rem 1.25rem;
  }

  .site-main {
    padding: 4rem 1.5rem 6rem;
  }

  .process-vertical-track {
    padding-left: 3rem;
  }

  .process-vertical-track::before {
    left: 12px;
  }

  .movement-anchor-node {
    left: -3rem;
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .founder-profile-pod {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem;
  }

  .founder-avatar-frame {
    margin: 0 auto;
  }

  .spatial-quote-banner {
    padding: 2.5rem 2rem;
  }
}
