/* ===================================================
   monopole.studio — Memphis Group Design System
   Colors: flat, solid, zero gradients, zero transparency
   =================================================== */

:root {
  --pink: #FF6B9D;
  --yellow: #FFE66D;
  --teal: #4ECDC4;
  --coral: #FF6F61;
  --navy: #2C3E6B;
  --cream: #FFF8F0;
  --charcoal: #2D2D2D;
  --violet: #A855F7;
  --grid-width: 4px;
}

/* ===================================================
   Reset & Base
   =================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Commissioner', sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  position: relative;
}

/* ===================================================
   Typography
   =================================================== */

h1, h2, h3 {
  font-family: 'Commissioner', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(3rem, 10vw, 8rem);
}

h2 {
  font-size: clamp(2rem, 8vw, 6rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 2rem);
}

p, .typewriter-text {
  font-family: 'Special Elite', monospace;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 1.7;
}

/* Grid labels — Commissioner thin, small caps */
.grid-label {
  font-family: 'Commissioner', sans-serif;
  font-weight: 300;
  font-variant: small-caps;
  letter-spacing: 0.15em;
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  position: absolute;
  z-index: 5;
  color: var(--charcoal);
  opacity: 0.5;
}

.label-a1 { top: 8px; left: 8px; }
.label-a2 { top: 8px; right: 8px; }
.label-b1 { bottom: 8px; left: 8px; }
.label-b2 { bottom: 8px; right: 8px; }

.label-bright {
  color: var(--cream);
  opacity: 0.4;
}

/* ===================================================
   Scanline Overlay (CRT texture)
   =================================================== */

.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 3px
  );
}

/* ===================================================
   Data Corruption Textures
   =================================================== */

.corruption-textures {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.corrupt-block {
  position: absolute;
}

/* ===================================================
   Nav Indicator
   =================================================== */

.nav-indicator {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  cursor: pointer;
  animation: pulse-indicator 2s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-indicator:hover {
  transform: scale(1.2);
}

@keyframes pulse-indicator {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

/* ===================================================
   Main Layout & Zones
   =================================================== */

main {
  position: relative;
  width: 100%;
}

.zone {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===================================================
   2x2 Grid System
   =================================================== */

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  position: relative;
}

.quadrant {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

/* Grid lines — structural ornament */
.grid-line {
  position: absolute;
  z-index: 10;
  background: var(--charcoal);
}

.grid-line-h {
  top: 50%;
  left: -20px;
  right: -20px;
  height: var(--grid-width);
  transform: translateY(-50%);
}

.grid-line-v {
  left: 50%;
  top: -20px;
  bottom: -20px;
  width: var(--grid-width);
  transform: translateX(-50%);
}

.grid-line-bright {
  background: var(--yellow);
}

/* Grid intersection markers */
.grid-intersection {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
}

.intersection-bright svg line {
  stroke: var(--yellow);
}

/* Grid line color transitions */
.grid-line {
  transition: background-color 0.4s ease;
}

/* ===================================================
   HERO ZONE
   =================================================== */

.hero-zone {
  height: 100vh;
  background: var(--cream);
}

.hero-zone .grid-2x2 {
  height: 100vh;
}

.hero-zone .quad-a {
  background: var(--pink);
  flex-direction: column;
}

.hero-zone .quad-b {
  background: var(--yellow);
}

.hero-zone .quad-c {
  background: var(--teal);
}

.hero-zone .quad-d {
  background: var(--coral);
}

.hero-zone .grid-line {
  background: var(--charcoal);
}

/* Hero typewriter */
.hero-zone .typewriter-text {
  font-family: 'Commissioner', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  color: var(--cream);
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--yellow);
  vertical-align: text-bottom;
  animation: blink-cursor 530ms step-end infinite;
  margin-left: 2px;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Glitch layers for RGB split */
.glitch-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  mix-blend-mode: screen;
}

.glitch-r {
  background: rgba(255, 107, 157, 0.3);
}

.glitch-b {
  background: rgba(78, 205, 196, 0.3);
}

.glitch-active .glitch-r {
  opacity: 1;
  transform: translate(4px, -2px);
}

.glitch-active .glitch-b {
  opacity: 1;
  transform: translate(-3px, 3px);
}

/* ===================================================
   Memphis Floating Shapes
   =================================================== */

.memphis-shape {
  position: absolute;
}

/* Triangles */
.triangle-float {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--violet);
}

.shape-1 {
  top: 15%;
  left: 20%;
  animation: float-drift-1 28s linear infinite;
}

.shape-5 {
  bottom: 20%;
  right: 15%;
  border-bottom-color: var(--coral);
  animation: float-drift-3 35s linear infinite;
}

/* Circles */
.circle-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid var(--navy);
  background: var(--yellow);
}

.shape-2 {
  bottom: 25%;
  right: 20%;
  animation: float-drift-2 32s linear infinite;
}

.shape-6 {
  top: 20%;
  left: 25%;
  background: var(--pink);
  border-color: var(--charcoal);
  animation: float-drift-4 25s linear infinite;
}

/* Zigzag & squiggle */
.zigzag-float, .squiggle-float {
  display: flex;
}

.shape-3 {
  top: 40%;
  left: 10%;
  animation: float-drift-5 30s linear infinite;
}

.shape-4 {
  top: 30%;
  left: 15%;
  animation: float-drift-1 24s linear infinite reverse;
}

.shape-7 {
  bottom: 30%;
  left: 20%;
  animation: float-drift-2 27s linear infinite reverse;
}

@keyframes float-drift-1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -20px) rotate(15deg); }
  50% { transform: translate(-10px, -40px) rotate(-10deg); }
  75% { transform: translate(-30px, -15px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-drift-2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-25px, 15px) rotate(-12deg); }
  50% { transform: translate(20px, 30px) rotate(18deg); }
  75% { transform: translate(15px, -20px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-drift-3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -30px) rotate(20deg); }
  66% { transform: translate(-25px, 10px) rotate(-15deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-drift-4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, 25px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-drift-5 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(25px, -15px) rotate(10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* ===================================================
   PHILOSOPHY ZONE
   =================================================== */

.philosophy-zone {
  height: 100vh;
  background: var(--cream);
}

.philosophy-zone .grid-2x2 {
  height: 100vh;
}

.philosophy-zone .quad-a {
  background: var(--cream);
}

.philosophy-zone .quad-b {
  background: var(--cream);
}

.philosophy-zone .quad-c {
  background: var(--cream);
}

.philosophy-zone .quad-d {
  background: var(--cream);
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.philosophy-zone .grid-line {
  background: var(--teal);
}

/* Philosophy headline with variable weight animation */
.phil-headline {
  font-size: clamp(3rem, 15vw, 10rem);
  color: var(--navy);
  font-variation-settings: 'wght' 200;
  transition: font-variation-settings 0.6s ease-out;
  line-height: 0.9;
}

.phil-headline.active {
  font-variation-settings: 'wght' 800;
}

/* Rotating shapes cluster */
.rotating-shapes {
  position: relative;
  width: 200px;
  height: 200px;
}

.triangle-spin {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 45px solid var(--pink);
}

.circle-spin {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--charcoal);
}

.spin-1 {
  top: 10%;
  left: 30%;
  animation: spin-slow 12s linear infinite;
}

.spin-2 {
  top: 40%;
  right: 15%;
  animation: spin-slow 18s linear infinite reverse;
}

.spin-3 {
  bottom: 15%;
  left: 10%;
  border-bottom-color: var(--teal);
  animation: spin-slow 15s linear infinite;
}

.spin-4 {
  bottom: 30%;
  right: 30%;
  background: var(--coral);
  animation: spin-slow 20s linear infinite reverse;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Diagonal connector with traveling dot */
.diagonal-connector {
  position: relative;
  width: 100%;
  height: 100%;
}

.diagonal-connector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 141%;
  height: 2px;
  background: var(--charcoal);
  transform-origin: top left;
  transform: rotate(45deg);
}

.traveling-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  animation: travel-diagonal 4s ease-in-out infinite;
}

@keyframes travel-diagonal {
  0% { top: 0; left: 0; }
  50% { top: calc(100% - 10px); left: calc(100% - 10px); }
  100% { top: 0; left: 0; }
}

/* Philosophy text */
.phil-text-block {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.phil-text-block .typewriter-text {
  color: var(--charcoal);
}

/* ===================================================
   WORK ZONE
   =================================================== */

.work-zone {
  background: var(--cream);
  padding: 0;
  min-height: auto;
}

.project-card {
  width: 100%;
  height: 100vh;
  position: relative;
}

.project-card .grid-2x2 {
  height: 100vh;
}

.project-card .grid-line {
  background: var(--navy);
}

/* Grid line chromatic progression */
#project1 .grid-line { background: var(--navy); }
#project2 .grid-line { background: var(--coral); }
#project3 .grid-line { background: var(--violet); }

.project-title-quad {
  background: var(--cream);
}

.project-title {
  color: var(--navy);
  font-size: clamp(1.5rem, 4vw, 3rem);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.project-card.visible .project-title {
  transform: translateX(0);
  opacity: 1;
}

/* Project thumbnails */
.project-thumb-quad {
  background: var(--cream);
}

.project-thumbnail {
  position: relative;
  width: 80%;
  height: 70%;
  background: var(--navy);
  overflow: hidden;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s, opacity 0.6s ease 0.1s;
}

.project-card.visible .project-thumbnail {
  transform: translateY(0);
  opacity: 1;
}

.thumb-shape {
  position: absolute;
}

.thumb-tri {
  top: 15%;
  left: 20%;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid var(--pink);
}

.thumb-circle {
  bottom: 20%;
  right: 25%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--yellow);
}

.thumb-rect {
  top: 50%;
  left: 10%;
  width: 70px;
  height: 30px;
  background: var(--teal);
}

.thumb-tri-2 {
  top: 10%;
  right: 15%;
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid var(--coral);
}

.thumb-circle-2 {
  bottom: 15%;
  left: 20%;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--violet);
  border: 3px solid var(--cream);
}

.thumb-zigzag {
  top: 45%;
  left: 10%;
}

.thumb-square {
  top: 10%;
  left: 15%;
  width: 55px;
  height: 55px;
  background: var(--teal);
  border: 3px solid var(--cream);
}

.thumb-circle-3 {
  bottom: 20%;
  right: 15%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
}

.thumb-tri-3 {
  bottom: 30%;
  left: 40%;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid var(--pink);
}

/* Scanline on thumbnails */
.scanline-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  pointer-events: none;
}

/* Thumbnail RGB glitch on hover */
.project-thumbnail::before,
.project-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.15s, transform 0.15s;
}

.project-thumbnail::before {
  background: rgba(255, 107, 157, 0.4);
}

.project-thumbnail::after {
  background: rgba(78, 205, 196, 0.4);
}

.project-thumbnail:hover::before {
  opacity: 1;
  transform: translate(4px, -3px);
}

.project-thumbnail:hover::after {
  opacity: 1;
  transform: translate(-3px, 2px);
}

/* Project description */
.project-desc-quad {
  background: var(--cream);
  flex-direction: column;
  align-items: flex-start;
}

.project-desc-quad .typewriter-text {
  color: var(--charcoal);
}

.project-card.visible .project-desc-quad {
  opacity: 1;
}

/* Memphis pattern tiles */
.project-pattern-quad {
  background: var(--cream);
  overflow: hidden;
}

.memphis-tile {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s, opacity 0.6s ease 0.3s;
}

.project-card.visible .memphis-tile {
  transform: scale(1);
  opacity: 1;
}

/* Dot pattern tile */
.tile-dots {
  background-image: radial-gradient(circle, var(--teal) 4px, transparent 4px);
  background-size: 24px 24px;
  opacity: 0.3;
}

.project-card.visible .tile-dots {
  opacity: 0.3;
}

/* Stripe pattern tile */
.tile-stripes {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    var(--pink) 8px,
    var(--pink) 10px
  );
  opacity: 0.25;
}

.project-card.visible .tile-stripes {
  opacity: 0.25;
}

/* Zigzag pattern tile */
.tile-zigzag {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================
   PROCESS ZONE
   =================================================== */

.process-zone {
  background: var(--cream);
  min-height: 100vh;
  padding: 4rem 2rem;
}

.process-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  flex-wrap: wrap;
}

.process-step {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  padding: 3rem 2rem;
  background: var(--cream);
  border: var(--grid-width) solid var(--coral);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Commissioner', sans-serif;
  font-weight: 800;
  font-size: clamp(8rem, 20vw, 14rem);
  color: var(--coral);
  opacity: 0.08;
  pointer-events: none;
  line-height: 1;
}

/* Geometric assembly: square > triangle > circle */
.step-geometric {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
}

.geo-square {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border: 4px solid var(--navy);
  background: transparent;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.geo-triangle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--teal);
  opacity: 0;
  transition: opacity 0.4s ease 0.2s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.geo-circle {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--charcoal);
  opacity: 0;
  transition: opacity 0.4s ease 0.4s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.process-step.visible .geo-square {
  opacity: 1;
  transform: scale(1);
}

.process-step.visible .geo-triangle {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.process-step.visible .geo-circle {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.step-title {
  font-family: 'Commissioner', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 1rem;
}

.step-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.step-content .typewriter-text {
  color: var(--charcoal);
}

/* ===================================================
   CONTACT ZONE (Inverted palette)
   =================================================== */

.contact-zone {
  height: 100vh;
  background: var(--navy);
}

.contact-zone .grid-2x2 {
  height: 100vh;
}

.contact-zone .quadrant {
  background: var(--navy);
}

.contact-statement-quad {
  flex-direction: column;
}

.contact-headline {
  color: var(--cream);
  font-size: clamp(2rem, 8vw, 6rem);
  line-height: 0.95;
}

/* Rotating Memphis logo composition */
.rotating-memphis-logo {
  position: relative;
  width: 150px;
  height: 150px;
  animation: spin-slow 25s linear infinite;
}

.logo-triangle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 60px solid var(--pink);
}

.logo-circle {
  position: absolute;
  bottom: 10px;
  left: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--cream);
}

.logo-square {
  position: absolute;
  bottom: 5px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: var(--teal);
  border: 3px solid var(--cream);
}

/* Studio logo with continuous glitch */
.studio-logo {
  position: relative;
}

.logo-text {
  font-family: 'Commissioner', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--cream);
}

.studio-logo::before,
.studio-logo::after {
  content: 'm.';
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Commissioner', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 8rem);
  pointer-events: none;
  mix-blend-mode: screen;
}

.studio-logo::before {
  color: var(--pink);
  animation: logo-glitch-r 8s ease-in-out infinite;
}

.studio-logo::after {
  color: var(--teal);
  animation: logo-glitch-b 8s ease-in-out infinite;
}

@keyframes logo-glitch-r {
  0%, 90%, 100% { transform: translate(0, 0); opacity: 0; }
  92% { transform: translate(3px, -2px); opacity: 0.6; }
  95% { transform: translate(-2px, 1px); opacity: 0.4; }
  97% { transform: translate(1px, 3px); opacity: 0.5; }
}

@keyframes logo-glitch-b {
  0%, 90%, 100% { transform: translate(0, 0); opacity: 0; }
  91% { transform: translate(-3px, 2px); opacity: 0.5; }
  94% { transform: translate(2px, -3px); opacity: 0.4; }
  96% { transform: translate(-1px, -1px); opacity: 0.6; }
}

/* Contact info */
.contact-info-quad {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contact-details {
  display: flex;
  align-items: center;
  gap: 4px;
}

.contact-details .typewriter-text {
  color: var(--cream);
}

.contact-details .typewriter-cursor {
  background: var(--yellow);
}

/* Closing zigzag flourish */
.closing-zigzag {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 5;
}

.closing-zigzag svg polyline {
  transition: stroke-dashoffset 2s ease-out;
}

/* ===================================================
   Section reveal animations
   =================================================== */

.zone-hidden .quadrant {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zone-hidden .quad-a {
  transform: translateX(-40px);
}

.zone-hidden .quad-b {
  transform: translateY(-40px);
}

.zone-hidden .quad-c {
  opacity: 0;
}

.zone-hidden .quad-d {
  transform: scale(0.9);
}

.zone-visible .quadrant {
  opacity: 1;
  transform: none;
}

/* Grid line pulse on enter */
@keyframes grid-pulse {
  0% { opacity: 1; }
  25% { opacity: 0.3; }
  50% { opacity: 1; }
  75% { opacity: 0.5; }
  100% { opacity: 1; }
}

.grid-pulse .grid-line {
  animation: grid-pulse 0.6s ease;
}

/* ===================================================
   Dot pattern backgrounds
   =================================================== */

.hero-zone .quad-b::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, var(--charcoal) 4px, transparent 4px);
  background-size: 24px 24px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-zone .quad-c::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, var(--navy) 4px, transparent 4px);
  background-size: 24px 24px;
  opacity: 0.1;
  pointer-events: none;
}

/* ===================================================
   Responsive
   =================================================== */

@media (max-width: 768px) {
  .grid-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .quadrant {
    min-height: 40vh;
    padding: 1.5rem;
  }

  .grid-line-v {
    display: none;
  }

  .grid-line-h {
    position: relative;
    top: auto;
    left: 0;
    right: 0;
    transform: none;
  }

  .hero-zone .grid-2x2,
  .philosophy-zone .grid-2x2,
  .contact-zone .grid-2x2 {
    height: auto;
    min-height: 100vh;
  }

  .hero-zone,
  .philosophy-zone,
  .contact-zone {
    height: auto;
    min-height: 100vh;
  }

  .project-card {
    height: auto;
    min-height: 100vh;
  }

  .project-card .grid-2x2 {
    height: auto;
    min-height: 100vh;
  }

  .process-container {
    flex-direction: column;
    align-items: center;
  }

  .process-step {
    max-width: 100%;
  }

  .nav-indicator {
    bottom: 15px;
    right: 15px;
  }

  .rotating-shapes {
    width: 120px;
    height: 120px;
  }

  .diagonal-connector {
    display: none;
  }
}
