/* =============================================
   VIVUS NATURÆ - Design System
   Based on wireframe analysis from Vivus Narurae web2.pdf
   ============================================= */

/* ---------- Variables ---------- */
:root {
  /* Colors - extracted from palette */
  --color-peach: #F4B985;
  --color-peach-light: #ebebc9;
  --color-blue-grey: #C0CCD3;
  --color-olive: #A99950;
  --color-olive-dark: #8A7D42;
  --color-sage: #9E9E6D;
  --color-aubergine: #2C142E;
  --color-cream: #FFFEFA;
  --color-cream-dark: #F5F0E8;
  --color-text: #444444;
  --color-white: #FFFFFF;
  --icon-stroke-color: #444444;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 10rem;
  --logo-height: 160px;
  --logo-scrolled-height: 96px; /* 60% of full height */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif); /* SWAPPED: Body is now Serif */
  font-size: 18px; /* Slightly larger for clearer serif reading */
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

img:not(.process-image):not(.logo-full):not(.footer-logo) {
  max-width: 100%;
  height: auto; /* Prevent cropping */
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif); /* CHANGED: Reverted to Serif to match About section */
  font-weight: 400;
  color: var(--color-aubergine);
}

.mt-lg {
  margin-top: var(--space-lg);
}

/* =============================================
   FIXED LOGO (Top Left)
   No overflow/clipping on container — clip-path on IMAGE handles crop
   ============================================= */
.fixed-logo {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 1000;
  pointer-events: auto;
  transition: top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fixed-logo.scrolled {
  top: 15px;
  left: 15px;
}

.logo-full {
  height: var(--logo-height);
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  clip-path: inset(0 0 0 0);
  /* Scroll UP: uncrop first (no delay), then grow height (delayed) */
  transition: height 0.4s 0.2s ease,
              clip-path 0.4s ease,
              opacity 0.4s ease;
}

.fixed-logo:hover {
  opacity: 0.8;
}

.fixed-logo.scrolled .logo-full {
  height: var(--logo-scrolled-height);
  /* Crop right 67% to show only tree icon (left 33%) */
  clip-path: inset(0 67% 0 0);
  opacity: 0.85;
  /* Scroll DOWN: shrink height first (no delay), then crop (delayed) */
  transition: height 0.4s ease,
              clip-path 0.4s 0.2s ease,
              opacity 0.4s ease;
}

/* Fixed Navigation — simple text link, static position */
.fixed-nav {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 1000;
  pointer-events: auto;
}

.fixed-nav a {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--color-cream);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.fixed-nav a:hover {
  opacity: 0.7;
}

/* Scrolled state removed - contact is now static */
  color: var(--color-aubergine);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
}

/* =============================================
   GROWING FOREST LAYER
   CSS-driven formations — JS only toggles html[data-forest]
   ============================================= */
.forest-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: visible;
}

.forest-branch {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  aspect-ratio: 414 / 394;
  -webkit-mask-image: url(../assets/logo_tree_icon.png);
  mask-image: url(../assets/logo_tree_icon.png);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform-origin: 50% 100%;
  opacity: 0;
  will-change: translate, rotate, scale, opacity;
  transition:
    translate 1.6s cubic-bezier(0.4, 0, 0.2, 1),
    rotate    1.6s cubic-bezier(0.4, 0, 0.2, 1),
    scale     1.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   1.2s ease;
}

/* Organic stagger — each branch transitions slightly later */
.forest-branch:nth-child(2) { transition-delay: 0.08s; }
.forest-branch:nth-child(3) { transition-delay: 0.16s; }
.forest-branch:nth-child(4) { transition-delay: 0.24s; }
.forest-branch:nth-child(5) { transition-delay: 0.32s; }
.forest-branch:nth-child(6) { transition-delay: 0.40s; }
.forest-branch:nth-child(7) { transition-delay: 0.48s; }

/* Earthy pastels — mask + background-color (no filter chains) */
.forest-branch:nth-child(1) { background-color: var(--color-olive); }       /* #A99950 */
.forest-branch:nth-child(2) { background-color: var(--color-olive-dark); }  /* #8A7D42 */
.forest-branch:nth-child(3) { background-color: var(--color-sage); }        /* #9E9E6D */
.forest-branch:nth-child(4) { background-color: #B8B282; }                  /* light sage */
.forest-branch:nth-child(5) { background-color: #7A8A50; }                  /* moss */
.forest-branch:nth-child(6) { background-color: #C4B68A; }                  /* dusty gold */
.forest-branch:nth-child(7) { background-color: #6B7A45; }                  /* deep moss */

/* ---- Default / Hero: branches waiting off-screen ---- */
.forest-branch:nth-child(1) { translate: -25vw 80vh;  rotate: -20deg; scale: 0.4;  }
.forest-branch:nth-child(2) { translate: 105vw 75vh;  rotate:  15deg; scale: 0.35; }
.forest-branch:nth-child(3) { translate: -30vw 45vh;  rotate: -30deg; scale: 0.5;  }
.forest-branch:nth-child(4) { translate: 110vw 40vh;  rotate:  25deg; scale: 0.3;  }
.forest-branch:nth-child(5) { translate:  40vw 110vh; rotate:   5deg; scale: 0.45; }
.forest-branch:nth-child(6) { translate: -20vw 15vh;  rotate: -10deg; scale: 0.35; }
.forest-branch:nth-child(7) { translate: 108vw 100vh; rotate:  18deg; scale: 0.5;  }

/* ---- Work: first roots peek in from edges ---- */
html[data-forest="work"] .forest-branch:nth-child(1) {
  translate: -8vw 62vh; rotate: -15deg; scale: 0.65; opacity: 0.12;
}
html[data-forest="work"] .forest-branch:nth-child(2) {
  translate: 93vw 68vh; rotate: 12deg; scale: 0.5; opacity: 0.08;
}

/* ---- Process: edges thicken ---- */
html[data-forest="process"] .forest-branch:nth-child(1) {
  translate: -5vw 40vh; rotate: -12deg; scale: 0.85; opacity: 0.20;
}
html[data-forest="process"] .forest-branch:nth-child(2) {
  translate: 88vw 48vh; rotate: 10deg; scale: 0.7; opacity: 0.16;
}
html[data-forest="process"] .forest-branch:nth-child(3) {
  translate: -12vw 15vh; rotate: -22deg; scale: 0.6; opacity: 0.10;
}
html[data-forest="process"] .forest-branch:nth-child(4) {
  translate: 96vw 12vh; rotate: 18deg; scale: 0.5; opacity: 0.08;
}

/* ---- Manifesto: canopy forming ---- */
html[data-forest="manifesto"] .forest-branch:nth-child(1) {
  translate: -2vw 25vh; rotate: -10deg; scale: 1.1; opacity: 0.25;
}
html[data-forest="manifesto"] .forest-branch:nth-child(2) {
  translate: 82vw 32vh; rotate: 8deg; scale: 0.9; opacity: 0.20;
}
html[data-forest="manifesto"] .forest-branch:nth-child(3) {
  translate: -8vw 4vh; rotate: -18deg; scale: 0.8; opacity: 0.15;
}
html[data-forest="manifesto"] .forest-branch:nth-child(4) {
  translate: 91vw 0vh; rotate: 14deg; scale: 0.65; opacity: 0.12;
}
html[data-forest="manifesto"] .forest-branch:nth-child(5) {
  translate: 34vw 75vh; rotate: 4deg; scale: 0.75; opacity: 0.10;
}
html[data-forest="manifesto"] .forest-branch:nth-child(6) {
  translate: -5vw -12vh; rotate: -6deg; scale: 0.55; opacity: 0.08;
}

/* ---- About: full forest ---- */
html[data-forest="about"] .forest-branch:nth-child(1) {
  translate: 2vw 10vh; rotate: -8deg; scale: 1.35; opacity: 0.30;
}
html[data-forest="about"] .forest-branch:nth-child(2) {
  translate: 76vw 18vh; rotate: 6deg; scale: 1.1; opacity: 0.25;
}
html[data-forest="about"] .forest-branch:nth-child(3) {
  translate: -4vw -8vh; rotate: -15deg; scale: 1.0; opacity: 0.20;
}
html[data-forest="about"] .forest-branch:nth-child(4) {
  translate: 86vw -12vh; rotate: 12deg; scale: 0.85; opacity: 0.16;
}
html[data-forest="about"] .forest-branch:nth-child(5) {
  translate: 30vw 62vh; rotate: 3deg; scale: 0.95; opacity: 0.14;
}
html[data-forest="about"] .forest-branch:nth-child(6) {
  translate: -2vw -25vh; rotate: -4deg; scale: 0.75; opacity: 0.10;
}
html[data-forest="about"] .forest-branch:nth-child(7) {
  translate: 82vw 62vh; rotate: 10deg; scale: 0.85; opacity: 0.08;
}

/* ---- Footer: maximum growth, immersive canopy ---- */
html[data-forest="footer"] .forest-branch:nth-child(1) {
  translate: 6vw -5vh; rotate: -5deg; scale: 1.65; opacity: 0.32;
}
html[data-forest="footer"] .forest-branch:nth-child(2) {
  translate: 70vw 2vh; rotate: 4deg; scale: 1.4; opacity: 0.28;
}
html[data-forest="footer"] .forest-branch:nth-child(3) {
  translate: -2vw -24vh; rotate: -12deg; scale: 1.2; opacity: 0.24;
}
html[data-forest="footer"] .forest-branch:nth-child(4) {
  translate: 80vw -30vh; rotate: 10deg; scale: 1.1; opacity: 0.20;
}
html[data-forest="footer"] .forest-branch:nth-child(5) {
  translate: 24vw 48vh; rotate: 2deg; scale: 1.2; opacity: 0.18;
}
html[data-forest="footer"] .forest-branch:nth-child(6) {
  translate: 2vw -40vh; rotate: -3deg; scale: 0.95; opacity: 0.15;
}
html[data-forest="footer"] .forest-branch:nth-child(7) {
  translate: 78vw 48vh; rotate: 8deg; scale: 1.1; opacity: 0.12;
}

/* Main logo: no scale — only the forest branches grow */

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .forest-branch,
  .fixed-logo { transition: none; }
}

/* =============================================
   SECTION 1: HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(244, 185, 133, 0.2) 0%,
    rgba(44, 20, 46, 0.3) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-cream);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-indicator span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.scroll-indicator svg {
  animation: bounce 2s ease infinite;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

.water-logo-canvas {
  max-width: 60%;
  max-height: 50%;
  width: auto;
  height: auto;
}

/* HERO LOGO REMOVED PER REQUEST */

.hero-tagline {
  font-family: var(--font-sans);
  /* font-size normalized */
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--color-white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* =============================================
   SECTION: WORK (Organic Layout)
   ============================================= */
.work-section {
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-cream);
  max-width: 1600px;
  margin: 0 auto;
}

.organic-grid {
  column-count: 2; /* Creates the staggered masonry effect */
  column-gap: var(--space-lg);
}

.organic-item {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  position: relative;
}

/* Randomize placement for organic feel */
.organic-item:nth-child(odd) {
  margin-left: 6%;
  width: 90%;
}

.organic-item:nth-child(even) {
  margin-left: -4%;
  width: 96%;
}

.organic-item:nth-child(3n) {
  margin-left: 3%;
  width: 94%;
}

.organic-item:nth-child(4n) {
  margin-left: -6%;
  width: 90%;
}

.organic-item img {
  width: 100%;
  height: auto; /* Ensure aspect ratio */
  border-radius: 2px;
  cursor: pointer; /* Indication it's clickable */
  transition: transform 0.4s ease;
}

.organic-item img:hover {
  transform: scale(1.01);
}

/* Text blocks within the grid */
.organic-text {
  padding: var(--space-md) 0;
}

.organic-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-aubergine);
  margin-bottom: var(--space-md);
}

.organic-text h2.studio-title {
  margin-bottom: 0;
}

.organic-text h3.studio-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--color-aubergine);
  margin-bottom: var(--space-md);
}

.organic-text p {
  margin-bottom: var(--space-sm);
  /* font-size normalized to body */
  color: var(--color-text);
}

/* Paragraph alignment - all left aligned, no indenting */
.organic-text p:nth-of-type(odd),
.about-text p:nth-of-type(odd) {
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
}

.organic-text p:nth-of-type(even),
.about-text p:nth-of-type(even) {
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
}

.organic-text p:nth-of-type(3n),
.about-text p:nth-of-type(3n) {
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
}

/* =============================================
   PARALLAX IMAGES
   ============================================= */
.parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
  border-radius: 4px;
}


/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 254, 250, 0.98); /* Light cream background */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1); /* Softer shadow */
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--color-aubergine); /* Dark close button */
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
}

/* =============================================
   SECTION 4: PROCESS & SERVICES
   ============================================= */
.process-section {
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-peach-light);
  color: var(--color-aubergine);
}


.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.process-image {
  width: 100%;
  height: auto;
  border-radius: 2px;
  cursor: pointer;
  mix-blend-mode: multiply ;
  padding: 10px; /* Optional padding to prevent edge blending issues */
}

.process-col h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  color: var(--color-aubergine);
}

.process-col .process-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  --icon-stroke-color: var(--color-olive-dark);
}

.process-section .section-divider-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: var(--space-lg) auto 0;
  --icon-stroke-color: var(--color-olive);
  opacity: 0.5;
}

.process-subtitle {
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.process-list {
  position: relative;
  padding-left: var(--space-md);
  border-left: 1px solid rgba(44,20,46,0.2);
}

.process-list li {
  position: relative;
  padding: var(--space-xs) 0;
  padding-left: var(--space-sm);
  margin-bottom: var(--space-xs);
  /* font-size normalized */
  border-bottom: none; /* Removed original border */
}

.process-list li::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md) - 3px); /* Center on the border */
  top: 1.2em;
  width: 5px;
  height: 5px;
  background-color: var(--color-olive);
  border-radius: 50%;
}

.process-list li:first-child {
  padding-top: 0;
}

.process-list li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* =============================================
   SECTION 5: MANIFESTO
   ============================================= */
.manifesto-section {
  padding: var(--space-xxl) var(--space-md);
  background-color: var(--color-cream-dark);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.manifesto-text-col p {
  margin-bottom: 0;
  line-height: 1.8;
  color: var(--color-text);
}

.manifesto-text-col h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-lg);
  color: var(--color-aubergine);
}

.manifesto-img-col img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
}

.manifesto-highlight {
  font-family: var(--font-serif);
  color: var(--color-olive-dark);
  margin-top: 0;
  display: block;
}

.manifesto-intro {
  font-weight: 500;
  color: var(--color-aubergine);
  margin-bottom: 0;
}

.manifesto-outro {
  font-family: var(--font-serif);
  margin-top: 0;
  color: var(--color-aubergine);
}

.manifesto-final {
  margin-top: var(--space-md);
  font-weight: 500;
  color: var(--color-aubergine);
}

/* =============================================
   SECTION 6: ABOUT / FOUNDER
   ============================================= */
.about-section {
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-peach-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
  line-height: 1.3;
  color: var(--color-aubergine);
}

.about-name span {
  opacity: 0.7;
}

.about-role {
  font-family: var(--font-serif);
  letter-spacing: 0;
  color: var(--color-olive);
  margin-bottom: var(--space-md);
}


.about-text strong {
  color: var(--color-aubergine);
  font-weight: 500;
}

.about-image img {
  width: 100%;
  border-radius: 2px;
}

/* =============================================
   SECTION 7: FOOTER / CONTACT
   ============================================= */
.footer-section {
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-peach-light);
  color: var(--color-aubergine);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.footer-brand {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-logo {
  height: var(--logo-height); /* Same as top logo full height */
  width: auto;
  /* No invert — dark logo on light sandy bg */
  display: block;
}

.footer-tagline {
  /* font-size normalized */
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 0; /* Removed bottom margin */
}

.footer-contact {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footer-contact p {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--color-aubergine);
}

.footer-contact a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Image credit */
.image-credit {
  font-size: 0.85rem;
  color: var(--color-olive);
  margin-top: var(--space-xs);
  text-align: right;
}

/* Footer credits */
.footer-credits {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--color-olive);
}

.footer-credits p {
  font-size: inherit;
  line-height: 1.2;
  margin-bottom: 0;
}

.footer-credits a {
  color: inherit;
  text-decoration: none;
}

.footer-credits a:hover {
  text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand {
    text-align: left;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    order: 1;
  }

  .footer-contact {
    text-align: left;
    order: 2;
  }
  
  .footer-logo {
    margin-left: 0;
    margin-right: auto;
    height: auto;
    width: auto;
    max-width: 200px;
    max-height: none;
  }

  .footer-tagline {
    display: none;
  }

  .footer-credits {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .fixed-nav {
    top: auto;
    bottom: var(--space-md);
  }

  .fixed-nav.landed {
    right: 50% !important;
    transform: translateX(50%);
  }

  /* Scroll indicator at bottom on mobile */
  .scroll-indicator {
    bottom: var(--space-md);
    transform: translateX(-50%);
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .organic-grid {
    column-count: 1;
  }

  .studio-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .studio-image {
    order: -1;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--large {
    grid-row: span 1;
    grid-column: span 2;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .process-section {
    padding-bottom: 0; /* Image flush to bottom */
  }

  .process-section .section-divider-icon {
    display: none; /* Hide divider so image is truly at bottom */
  }

  .process-image {
    width: 100vw;
    margin-left: calc(-1 * var(--space-md)); /* Break out of section padding */
    border-radius: 0;
    display: block;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-img-col {
    order: -1; /* Image above text on mobile */
  }

  /* Disable random paragraph placement on mobile */
  .organic-text p:nth-of-type(odd),
  .organic-text p:nth-of-type(even),
  .organic-text p:nth-of-type(3n),
  .about-text p:nth-of-type(odd),
  .about-text p:nth-of-type(even),
  .about-text p:nth-of-type(3n) {
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
  }

  /* Disable parallax on mobile */
  .parallax-img {
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 600px) {
  :root {
    --logo-height: 100px;
    --logo-scrolled-height: 60px;
  }

  .hero-logo {
    max-width: 200px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large {
    grid-column: span 1;
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-up-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for gallery items if they appear together */
.gallery-item:nth-child(1) { transition-delay: 0ms; }
.gallery-item:nth-child(2) { transition-delay: 100ms; }
.gallery-item:nth-child(3) { transition-delay: 200ms; }
.gallery-item:nth-child(4) { transition-delay: 300ms; }

/* Stagger for manifesto paragraphs */
.manifesto-text p.visible {
    /* Rely on scroll, but can add slight delay if needed */
}
