/* ==========================================================================
   FELDHAUS — SILENT DESIGN SYSTEM & GRID SPECIFICATIONS
   ========================================================================== */


:root {
  /* Color Palette (Zero Chromatic Decoration) */
  --charcoal: #0B0B0D;
  --soft-black: #121212;
  --warm-grey: #AAA59D;
  --stone-grey: #C3BFB8;
  --paper-white: #F3F2EF;
  --muted-line: rgba(255, 255, 255, 0.07);
  --muted-line-dark: rgba(0, 0, 0, 0.08);
  
  /* Font Stacks */
  --font-serif: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--charcoal);
  color: var(--warm-grey);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--charcoal);
  cursor: auto;
}

a,
button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--paper-white);
  outline-offset: 5px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--charcoal);
}
::-webkit-scrollbar-thumb {
  background: var(--muted-line);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--warm-grey);
}

/* Global Structural Border Helpers */
.border-b { border-bottom: 1px solid var(--muted-line); }
.border-t { border-top: 1px solid var(--muted-line); }
.border-l { border-left: 1px solid var(--muted-line); }
.border-r { border-right: 1px solid var(--muted-line); }

/* ==========================================================================
   NAVIGATION HEADERS
   ========================================================================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.65rem 4%;
  z-index: 100;
  background: rgba(11, 11, 13, 0.9);
  border-bottom: 1px solid var(--muted-line);
  transition: var(--transition-smooth);
}

.main-nav.scrolled {
  padding: 1.2rem 4%;
  background: rgba(11, 11, 13, 0.96);
  border-bottom: 1px solid var(--muted-line);
}

.nav-brand {
  display: block;
  width: clamp(9rem, 12vw, 11.5rem);
  flex: 0 0 auto;
  text-decoration: none;
  position: relative;
}

.nav-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
}

.nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--warm-grey);
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-fast);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--stone-grey);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--paper-white);
}

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

.nav-link.active {
  color: var(--paper-white);
}

.nav-link-portfolio {
  color: var(--paper-white);
}

@media (max-width: 900px) {
  .main-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 5%;
  }

  .main-nav.scrolled {
    padding: 1rem 5%;
  }

  .nav-brand {
    width: 9rem;
  }

  .nav-links {
    width: 100%;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
  }
}

/* ==========================================================================
   01. HERO splash SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--charcoal);
  padding: 7.5rem 4% 3rem 4%;
  overflow: hidden;
  z-index: 10;
}

.hero-background-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: contrast(1.05) brightness(0.85) grayscale(0.2);
  transform: scale(1.05);
  animation: bg-pan-slow 40s ease-in-out infinite alternate;
}

@keyframes bg-pan-slow {
  0% { transform: scale(1.05) translate(0%, 0%); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

.hero-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 2rem 0;
}

.wordmark-container {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.wordmark {
  position: relative;
  width: 100%;
  line-height: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: slide-up-fade 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.hero-logo {
  display: block;
  width: min(78vw, 72rem);
  height: auto;
  margin: 0 auto;
  filter: invert(1);
}

.hero-statement {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--warm-grey);
  margin: 2.5rem auto 0;
  max-width: 62ch;
  line-height: 1.65;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up-fade 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 2.2rem;
  background: rgba(18, 18, 18, 0.72);
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up-fade 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.1s;
}

.hero-cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.4s ease;
}

.hero-cta:hover {
  background: var(--paper-white);
  color: var(--charcoal);
  border-color: var(--paper-white);
}

.hero-cta:hover svg {
  transform: translateX(5px);
}

/* Technical Specification Floating Panel (Left Lower Corner) */
.hero-specs-floating {
  position: absolute;
  left: 4%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-left: 1px solid var(--muted-line);
  padding-left: 1.5rem;
  max-width: 280px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slide-right-fade 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.3s;
}

/* The floating panel needs a tall, wide hero to sit clear of the headline,
   lead and footer bar; below that it collides with them. */
@media (max-height: 980px), (max-width: 900px) {
  .hero-specs-floating { display: none; }
}

.spec-line {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-line .label {
  color: #827D75;
  font-weight: 500;
}

.spec-line .value {
  color: var(--stone-grey);
}

/* Hero Footer Navigation */
.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--muted-line);
  padding-top: 2rem;
  z-index: 12;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: var(--warm-grey);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.scroll-hint:hover {
  color: var(--paper-white);
}

.scroll-line-y {
  width: 1px;
  height: 48px;
  background-color: var(--muted-line);
  position: relative;
  overflow: hidden;
}

.scroll-line-y::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--paper-white);
  animation: scroll-slide-down 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scroll-slide-down {
  0% { transform: translateY(-100%); }
  80%, 100% { transform: translateY(100%); }
}

.hero-footer-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--stone-grey);
}

/* Animations */
@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-right-fade {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   02. PROJECT WIDESCREEN SLIDER / INTERACTIVE SHOWCASE
   ========================================================================== */
.showcase-slider-section {
  min-height: 100vh;
  position: relative;
  background-color: var(--charcoal);
  border-top: 1px solid var(--muted-line);
  border-bottom: 1px solid var(--muted-line);
  overflow: hidden;
  padding: 8rem 0;
}

.section-intro-bar {
  padding: 0 4%;
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--muted-line);
  padding-bottom: 2rem;
}

.section-header-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--paper-white);
  line-height: 0.95;
}

.section-context {
  max-width: 36ch;
  color: var(--warm-grey);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: right;
}

.slider-container-outer {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 1rem 4%;
  cursor: grab;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.slider-container-outer::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.slider-track {
  display: inline-flex;
  gap: 3.5rem;
}

.slider-card {
  width: 65vw;
  max-width: 900px;
  min-width: 320px;
  display: inline-block;
  vertical-align: top;
  white-space: normal;
  text-decoration: none;
  position: relative;
  transition: var(--transition-smooth);
}

.slider-card-img-box {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background-color: var(--soft-black);
  border: 1px solid var(--muted-line);
  transition: var(--transition-smooth);
}

.slider-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) grayscale(0.1) brightness(0.9);
  transition: var(--transition-slow);
}

.slider-card:hover .slider-card-img {
  transform: scale(1.06);
  filter: contrast(1.05) grayscale(0) brightness(0.95);
}

.slider-card:hover .slider-card-img-box {
  border-color: rgba(255, 255, 255, 0.22);
}

.slider-card-info {
  margin-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
}

.slider-card-num-title {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.slider-card-num {
  font-size: 0.65rem;
  color: #827D75;
}

.slider-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--paper-white);
  margin-top: 0.2rem;
  transition: var(--transition-fast);
}

.slider-card:hover .slider-card-title {
  color: var(--stone-grey);
}

.slider-card-specs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slider-card-location {
  color: var(--stone-grey);
}

.slider-card-year {
  color: #827D75;
}

/* Slider Controls */
.slider-controls {
  padding: 3rem 4% 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--warm-grey);
}

.slider-counter span {
  color: var(--stone-grey);
}

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

.slider-arrow-btn {
  background: none;
  border: 1px solid var(--muted-line);
  color: var(--warm-grey);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-arrow-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.slider-arrow-btn:hover {
  border-color: var(--paper-white);
  color: var(--paper-white);
}

.slider-arrow-btn.prev:hover svg { transform: translateX(-3px); }
.slider-arrow-btn.next:hover svg { transform: translateX(3px); }

/* ==========================================================================
   03. SILENT GRID ARCHIVE SECTION (EXACTLY MATCHES IMAGE 2)
   ========================================================================== */
.archive-section {
  padding: 8rem 0;
  background-color: var(--charcoal);
  position: relative;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--muted-line);
  border-left: 1px solid var(--muted-line);
  margin-top: 2rem;
}

.archive-card {
  border-right: 1px solid var(--muted-line);
  border-bottom: 1px solid var(--muted-line);
  padding: 2.2rem 2.2rem 2.8rem 2.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--charcoal);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.archive-card-image-box {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--soft-black);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  transition: var(--transition-smooth);
}

.archive-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) grayscale(0.25) brightness(0.85);
  transition: var(--transition-slow);
}

.archive-card:hover {
  background-color: var(--soft-black);
}

.archive-card:hover .archive-card-image {
  transform: scale(1.05);
  filter: contrast(1.05) grayscale(0) brightness(0.95);
}

.archive-card:hover .archive-card-image-box {
  border-color: var(--muted-line);
}

.archive-card-meta {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.archive-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-card-num {
  color: #827D75;
}

.archive-card-year {
  color: var(--warm-grey);
}

.archive-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.archive-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--paper-white);
  transition: var(--transition-fast);
}

.archive-card:hover .archive-card-title {
  color: var(--stone-grey);
}

.archive-card-location {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #827D75;
  text-transform: uppercase;
}

.archive-card-materials {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--stone-grey);
  text-transform: uppercase;
  border-top: 1px solid var(--muted-line);
  padding-top: 1.1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.archive-card-materials span {
  display: inline-block;
}

.archive-card-materials span:not(:last-child)::after {
  content: '|';
  margin-left: 0.4rem;
  color: #44413c;
}

/* Responsive Grid Adapters */
@media (max-width: 1200px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   04. MATERIAL TEXTURES SWATCH LIBRARY
   ========================================================================== */
.materials-section {
  padding: 8rem 0;
  background-color: var(--soft-black);
  border-top: 1px solid var(--muted-line);
  border-bottom: 1px solid var(--muted-line);
  position: relative;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--muted-line);
  border-left: 1px solid var(--muted-line);
  margin-top: 3rem;
}

.material-swatch-card {
  border-right: 1px solid var(--muted-line);
  border-bottom: 1px solid var(--muted-line);
  padding: 0 0 2rem;
  background-color: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.swatch-visual {
  width: 100%;
  aspect-ratio: 4 / 5;
  position: relative;
  background-color: var(--soft-black);
  overflow: hidden;
}

.swatch-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.04) brightness(0.8);
  transform: scale(1.02);
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.material-swatch-card:hover {
  background-color: var(--soft-black);
}

.material-swatch-card:hover .swatch-visual img {
  transform: scale(1.07);
  filter: grayscale(0.05) contrast(1.04) brightness(0.92);
}

.swatch-meta {
  text-align: left;
  font-family: var(--font-mono);
  margin: 1.5rem 1.5rem 0;
  z-index: 3;
}

.swatch-num {
  font-size: 0.6rem;
  color: #827D75;
  letter-spacing: 0.1em;
}

.swatch-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--paper-white);
  margin-top: 0.5rem;
}

.swatch-specs {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--stone-grey);
  text-transform: uppercase;
  margin-top: 0.8rem;
}

@media (max-width: 1024px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .materials-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   05. EDITORIAL STUDIO PHILOSOPHY
   ========================================================================== */
.studio-section {
  padding: 10rem 4%;
  background-color: var(--charcoal);
  position: relative;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.studio-philosophy {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.studio-statement-large {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--paper-white);
  line-height: 0.98;
}

.studio-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.85;
  color: var(--warm-grey);
  max-width: 67ch;
}

.studio-image-panel {
  position: relative;
  border: 1px solid var(--muted-line);
  aspect-ratio: 4/5;
  overflow: hidden;
}

.studio-visual-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) grayscale(0.4) brightness(0.85);
  animation: bg-pan-slow 30s ease-in-out infinite alternate;
}

@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .studio-image-panel {
    aspect-ratio: 16/10;
  }
}

/* ==========================================================================
   06. SECURE DISPATCH FORM PORTAL
   ========================================================================== */
.dispatch-section {
  padding: 8rem 0;
  background-color: var(--charcoal);
  border-top: 1px solid var(--muted-line);
}

.dispatch-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-top: 1px solid var(--muted-line);
  margin-top: 3rem;
}

.dispatch-left {
  padding: 4rem 4%;
  border-right: 1px solid var(--muted-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}

.dispatch-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.8vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--paper-white);
  line-height: 1.02;
}

.dispatch-directory {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 4rem;
}

.dispatch-directory-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.dir-label {
  color: #827D75;
}

.dir-val {
  color: var(--paper-white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.dir-val:hover {
  color: var(--stone-grey);
}

.dispatch-right {
  padding: 4rem 4%;
}

.project-colophon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 100%;
  max-width: 68ch;
  color: var(--warm-grey);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.7;
}

.project-credit {
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link {
  align-self: flex-start;
  color: var(--paper-white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--stone-grey);
  padding-bottom: 0.4rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.text-link:hover {
  color: var(--stone-grey);
  border-color: var(--paper-white);
}

@media (max-width: 900px) {
  .dispatch-grid {
    grid-template-columns: 1fr;
  }
  .dispatch-left {
    border-right: none;
    border-bottom: 1px solid var(--muted-line);
    min-height: auto;
    padding: 3rem 4%;
  }
  .dispatch-right {
    padding: 3rem 4%;
  }
}

/* ==========================================================================
   FOOTER (SILENT & RESTRAINED)
   ========================================================================== */
.footer {
  background-color: var(--charcoal);
  border-top: 1px solid var(--muted-line);
  padding: 6rem 4% 4rem 4%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 320px;
}

.footer-logo {
  display: block;
  width: min(18rem, 65vw);
  height: auto;
  filter: invert(1);
}

.footer-phrase {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--warm-grey);
}

.footer-cols {
  display: flex;
  gap: 6rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #827D75;
  text-transform: uppercase;
}

.footer-col a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--warm-grey);
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--paper-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--muted-line);
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: #827D75;
}

.footer-copy {
  display: flex;
  gap: 1.5rem;
}

.footer-copy span:not(:last-child)::after {
  content: '·';
  margin-left: 1.5rem;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 3rem;
  }
  .footer-cols {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   07. DETAIL LIGHTBOX DRAWER (IMAGE 5 STATIONERY ETHOS)
   ========================================================================== */
.project-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 11, 13, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-drawer {
  position: relative;
  width: 60%;
  max-width: 950px;
  min-width: 320px;
  height: 100%;
  background-color: var(--paper-white); /* Premium off-white cotton paper sheet */
  color: #1a1a1a; /* Dark charcoal text */
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  pointer-events: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.modal-open {
  pointer-events: auto;
}

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

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

.modal-header {
  padding: 3rem 4%;
  border-bottom: 1px solid var(--muted-line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-cat-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #666666;
}

.modal-year-badge {
  background-color: #e8e6e0;
  padding: 0.15rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 500;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #111111;
}

.modal-close-btn {
  background: none;
  border: 1px solid var(--muted-line-dark);
  color: #444444;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.modal-close-btn:hover {
  border-color: #111111;
  color: #111111;
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 4% 5rem 4%;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.modal-hero-placeholder {
  width: 100%;
  flex: 0 0 auto;
  border: 1px solid var(--muted-line-dark);
  overflow: hidden;
  background-color: #e8e6e0;
}

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

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--muted-line-dark);
  border-bottom: 1px solid var(--muted-line-dark);
  padding: 2.2rem 0;
  gap: 2.5rem;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.modal-meta-label {
  color: #777777;
}

.modal-meta-value {
  color: #111111;
  font-weight: 500;
  text-transform: uppercase;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #888888;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.modal-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #333333;
}

.modal-deliverables-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.deliv-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  background-color: #e8e6e0;
  color: #222222;
  padding: 0.4rem 1rem;
  text-transform: uppercase;
}

.modal-angle-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  color: #444444;
  border-left: 1px solid var(--muted-line-dark);
  padding-left: 1.5rem;
}

@media (max-width: 900px) {
  .modal-drawer {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    padding: 9rem 5% 2rem;
  }

  .hero-middle {
    padding: 4rem 0 2.5rem;
  }

  .hero-logo {
    width: 92vw;
  }

  .hero-statement {
    max-width: 36ch;
    margin-top: 1.8rem;
    font-size: 0.95rem;
  }

  .hero-cta {
    margin-top: 2rem;
    padding: 0.9rem 1.25rem;
    letter-spacing: 0.12em;
  }

  .hero-footer {
    padding-top: 1.2rem;
  }

  .scroll-line-y {
    height: 28px;
  }

  .section-intro-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0 5% 1.75rem;
    margin-bottom: 2.5rem;
  }

  .section-context {
    max-width: 40ch;
    text-align: left;
  }

  .showcase-slider-section,
  .archive-section,
  .materials-section,
  .dispatch-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .slider-container-outer {
    padding-inline: 5%;
  }

  .slider-track {
    gap: 1.25rem;
  }

  .slider-card {
    width: 86vw;
  }

  .slider-card-info {
    gap: 1.5rem;
  }

  .studio-section {
    padding: 7rem 5%;
  }

  .dispatch-grid {
    margin-top: 2.5rem;
  }

  .dispatch-left,
  .dispatch-right {
    padding: 3rem 5%;
  }

  .project-colophon {
    min-height: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .nav-links li:nth-child(3) {
    display: none;
  }

  .nav-link {
    font-size: 0.62rem;
  }

  .hero-logo {
    width: 88vw;
  }

  .hero-footer-status {
    display: none;
  }

  .scroll-hint {
    width: 100%;
    justify-content: space-between;
  }

  .slider-card-info,
  .footer-copy {
    flex-direction: column;
  }

  .slider-card-specs {
    align-items: flex-start;
  }

  .footer-copy {
    gap: 0.7rem;
  }

  .footer-copy span:not(:last-child)::after {
    content: none;
  }

  .modal-header,
  .modal-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-candidate {
    opacity: 1 !important;
    transform: none !important;
  }
}
