/* ========================================================
   Secciones (Intro · Eco · Gallery · Why · CTA)
   ========================================================= */

/* ========== INTRO ========== */
.intro {
  padding: var(--section-pad) 0 var(--section-pad);
  position: relative;
  z-index: 10;
}
.intro-head {
  padding: 0 var(--col-pad);
  margin-bottom: 140px;
  max-width: 1400px;
}
.intro-headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(44px, 6.5vw, 104px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 28px 0 0;
  max-width: 14ch;
}
.intro-headline em {
  font-style: italic;
  color: var(--accent-live);
  font-weight: 400;
}
.intro-headline .leaf {
  display: inline-block;
  font-family: var(--ff-script);
  color: var(--accent-live);
  font-size: 0.6em;
  transform: translateY(-0.2em) rotate(-6deg);
  margin: 0 0.1em;
}

.intro-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 var(--col-pad);
  gap: 60px;
  border-top: 1px solid var(--rule);
  padding-top: 80px;
}
.intro-item {
  position: relative;
  padding-right: 24px;
}
.intro-item .num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  display: block;
  margin-bottom: 16px;
}
.intro-item .t {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 14px;
}
.intro-item .t em { font-style: italic; color: var(--accent-live); }
.intro-item .d {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.55;
  max-width: 32ch;
}
@media (max-width: 860px) {
  .intro-items { grid-template-columns: 1fr; }
}

/* ========== ECOSYSTEM ========== */
.eco {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 10;
}
.eco-head {
  padding: 0 var(--col-pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-bottom: 140px;
  align-items: end;
}
.eco-headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 24px 0 0;
  white-space: pre-line;
}
.eco-headline em { font-style: italic; color: var(--accent-live); font-weight: 400; white-space: nowrap !important; display: inline-block; }
.eco-hint {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}
.eco-hint::before { content: "→"; color: var(--accent-live); }

@media (max-width: 860px) {
  .eco-head { grid-template-columns: 1fr; }
}

.eco-block {
  border-top: 1px solid var(--rule);
  padding: 90px var(--col-pad);
}
.eco-block-head {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 40px;
  align-items: baseline;
  margin-bottom: 60px;
}
.eco-block-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.eco-block-name {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 84px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.eco-block-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-live);
}
.eco-block-count {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
}
@media (max-width: 860px) { .eco-block-head { grid-template-columns: 1fr; gap: 10px; } }

/* Estilo EXPAND (default) */
.eco-items[data-style="expand"] {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.eco-items[data-style="expand"] .eco-item {
  display: grid;
  grid-template-columns: 1fr 1fr 60px;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding 0.5s var(--motion-ease), background 0.5s;
  position: relative;
}
.eco-items[data-style="expand"] .eco-item:hover {
  padding-left: 20px;
  padding-right: 20px;
  background: var(--bg);
}
.eco-items[data-style="expand"] .eco-item .n {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.3s, transform 0.5s var(--motion-ease);
}
.eco-items[data-style="expand"] .eco-item:hover .n {
  color: var(--accent-live);
  font-style: italic;
}
.eco-items[data-style="expand"] .eco-item .s {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--fg-mute);
}
.eco-items[data-style="expand"] .eco-item .arrow {
  font-family: var(--ff-mono);
  font-size: 22px;
  justify-self: end;
  color: var(--fg-mute);
  transition: transform 0.5s var(--motion-ease), color 0.3s;
}
.eco-items[data-style="expand"] .eco-item:hover .arrow {
  color: var(--accent-live);
  transform: rotate(45deg);
}
.eco-items[data-style="expand"] .eco-desc {
  grid-column: 1 / -1;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s var(--motion-ease), opacity 0.4s, margin-top 0.4s;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.3;
  color: var(--fg);
  max-width: 62ch;
}
.eco-items[data-style="expand"] .eco-item:hover .eco-desc {
  max-height: 140px;
  opacity: 1;
  margin-top: 24px;
}

/* Estilo CARDS */
.eco-items[data-style="cards"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.eco-items[data-style="cards"] .eco-item {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s var(--motion-ease), border-color 0.3s, background 0.4s;
  position: relative;
  overflow: hidden;
}
.eco-items[data-style="cards"] .eco-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-live);
}
.eco-items[data-style="cards"] .eco-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 60px;
  background: var(--accent-live);
  opacity: 0;
  border-radius: 0 0 100% 0;
  transition: opacity 0.4s, width 0.5s var(--motion-ease), height 0.5s var(--motion-ease);
}
.eco-items[data-style="cards"] .eco-item:hover::before { opacity: 0.1; width: 100%; height: 100%; border-radius: 20px; }
.eco-items[data-style="cards"] .eco-item .n {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.eco-items[data-style="cards"] .eco-item:hover .n { font-style: italic; color: var(--accent-live); }
.eco-items[data-style="cards"] .eco-item .s {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.eco-items[data-style="cards"] .eco-item .eco-desc {
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--motion-ease), opacity 0.4s;
  position: relative;
  z-index: 1;
}
.eco-items[data-style="cards"] .eco-item:hover .eco-desc {
  max-height: 180px;
  opacity: 1;
  margin-top: 20px;
}
.eco-items[data-style="cards"] .eco-item .arrow {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--ff-mono);
  font-size: 18px;
  color: var(--fg-mute);
  transition: transform 0.4s var(--motion-ease), color 0.3s;
  z-index: 2;
}
.eco-items[data-style="cards"] .eco-item:hover .arrow {
  transform: rotate(45deg);
  color: var(--accent-live);
}

/* Estilo INDEX */
.eco-items[data-style="index"] {
  border-top: 1px solid var(--rule);
}
.eco-items[data-style="index"] .eco-item {
  display: grid;
  grid-template-columns: 60px 1fr 2fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.eco-items[data-style="index"] .eco-item .idx {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.2em;
}
.eco-items[data-style="index"] .eco-item .n {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
}
.eco-items[data-style="index"] .eco-item .eco-desc {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.5;
}
.eco-items[data-style="index"] .eco-item .s,
.eco-items[data-style="index"] .eco-item .arrow { display: none; }

.eco-quote {
  padding: 50px var(--col-pad);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 32ch;
  color: var(--fg);
  position: relative;
}
.eco-quote::before {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--accent-live);
  margin-bottom: 20px;
}

/* ========== GALLERY ========== */
.gallery {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
}
.gallery-head {
  padding: 0 var(--col-pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-bottom: 140px;
  align-items: end;
}
.gallery-headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(44px, 6.5vw, 104px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
  max-width: 14ch;
}
.gallery-headline em { font-style: italic; color: var(--accent-live); font-weight: 400; }
.gallery-sub {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--fg-mute);
  max-width: 40ch;
  line-height: 1.55;
  padding-bottom: 12px;
}
@media (max-width: 860px) { .gallery-head { grid-template-columns: 1fr; } }

.gallery-grid {
  padding: 0 var(--col-pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 8px;
  transition: transform 0.6s var(--motion-ease);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--motion-ease), filter 0.5s ease;
  filter: saturate(0.92) contrast(1.02);
}
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.1); }

.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(to top, rgba(20,18,16,0.65) 0%, rgba(20,18,16,0) 100%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s var(--motion-ease);
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

/* Grid layout — asimétrico orgánico */
.gallery-item.s-wide { grid-column: span 8; aspect-ratio: 16 / 10; }
.gallery-item.s-tall { grid-column: span 4; aspect-ratio: 3 / 4; }
.gallery-item.s-square { grid-column: span 4; aspect-ratio: 1; }
.gallery-item.s-portrait { grid-column: span 4; aspect-ratio: 3 / 4; }
.gallery-item.s-landscape { grid-column: span 6; aspect-ratio: 4 / 3; }
.gallery-item.s-hero { grid-column: span 6; aspect-ratio: 1; }
.gallery-item.s-strip { grid-column: span 12; aspect-ratio: 21 / 7; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item { grid-column: span 2 !important; aspect-ratio: 4 / 3 !important; }
  .gallery-item.s-tall, .gallery-item.s-portrait { aspect-ratio: 3 / 4 !important; }
  .gallery-item.s-strip { grid-column: span 2 !important; aspect-ratio: 16 / 9 !important; }
}

/* ========== MARQUEE ========== */
.marquee-wrap {
  overflow: hidden;
  padding: clamp(60px, 8vw, 110px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: relative;
  z-index: 10;
}
.marquee-track {
  display: flex;
  gap: 70px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  animation-duration: calc(50s / var(--motion-intensity));
  will-change: transform;
}
.marquee-wrap.slow .marquee-track { animation-duration: calc(90s / var(--motion-intensity)); }
.marquee-item {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(44px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 70px;
  flex-shrink: 0;
}
.marquee-item::after {
  content: "✦";
  font-style: normal;
  font-size: 0.4em;
  color: var(--accent-live);
}
.marquee-wrap.reverse .marquee-track { animation-direction: reverse; }
.marquee-wrap.outline .marquee-item {
  font-style: italic;
  -webkit-text-stroke: 1px var(--fg);
  color: transparent;
}
.marquee-top {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 0 var(--col-pad) 30px;
  display: flex;
  justify-content: space-between;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== WHY ========== */
.why {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 10;
}
.why-head {
  padding: 0 var(--col-pad);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  margin-bottom: 160px;
  align-items: start;
}
.why-head-left { display: flex; flex-direction: column; gap: 28px; }
.why-headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(42px, 6.5vw, 104px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 14ch;
}
.why-headline em { font-style: italic; color: var(--accent-live); font-weight: 400; }

.why-body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  max-width: 48ch;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
}
.why-body p { margin: 0; }
.why-body p:first-child::first-letter {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 4em;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.08em 0 0;
  color: var(--accent-live);
}

@media (max-width: 860px) {
  .why-head { grid-template-columns: 1fr; gap: 40px; }
}

/* Stats orgánicos */
.why-stats {
  padding: 90px var(--col-pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}
.why-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.why-stat .v {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.why-stat .v em { font-style: italic; color: var(--accent-live); }
.why-stat .l {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
@media (max-width: 860px) { .why-stats { grid-template-columns: repeat(2, 1fr); } }

.why-quote {
  padding: clamp(80px, 12vw, 180px) var(--col-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.why-quote-a, .why-quote-b {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.why-quote-b {
  font-style: italic;
  color: var(--accent-live);
  margin-top: 6px;
}

.creds-foot {
  padding: 120px var(--col-pad) 0;
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-mute);
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
}

/* ========== CTA ========== */
.cta {
  padding: var(--section-pad) 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  z-index: 10;
}
.cta::before {
  content: "";
  position: absolute;
  width: 80vw; height: 80vw;
  top: -30vw; right: -30vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-live) 0%, transparent 65%);
  opacity: 0.3;
  animation: blob-drift 30s ease-in-out infinite;
  filter: blur(60px);
}
.cta-inner {
  padding: 0 var(--col-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  position: relative;
  z-index: 2;
}
.cta-headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 120px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 20px 0 0;
  white-space: pre-line;
}
.cta-headline em { font-style: italic; color: var(--accent-live); font-weight: 400; }
.cta-right { display: flex; flex-direction: column; gap: 28px; }
.cta-body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  max-width: 42ch;
  opacity: 0.8;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 22px 28px;
  background: var(--accent-live);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  width: fit-content;
  transition: transform 0.3s var(--motion-ease);
}
.cta-btn::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.3s var(--motion-ease);
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn:hover::after { transform: translateX(4px); }
.cta-email {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.cta-cities {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; gap: 40px; } }

.footer {
  background: #000;
  color: rgba(255, 255, 255, 0.55);
  padding: 30px var(--col-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(calc(30px * var(--motion-intensity)));
  transition:
    opacity calc(0.9s / var(--motion-intensity)) var(--motion-ease),
    transform calc(0.9s / var(--motion-intensity)) var(--motion-ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Gallery item reveal con escala */
.gallery-item { opacity: 0; transform: scale(0.96) translateY(20px); transition: opacity 0.8s var(--motion-ease), transform 0.8s var(--motion-ease); }
.gallery-item.in { opacity: 1; transform: scale(1) translateY(0); }

/* ========== TWEAKS PANEL ========== */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 16px;
  z-index: 200;
  display: none;
  flex-direction: column;
  font-family: var(--ff-mono);
  font-size: 11px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.tweaks-panel.active { display: flex; }
.tweaks-head {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 10px;
}
.tweaks-head button {
  background: none; border: none; color: inherit; font: inherit;
  cursor: inherit;
}
.tweaks-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.tweaks-section:last-child { border-bottom: none; }
.tweaks-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 10px;
}
.tweaks-options { display: flex; flex-wrap: wrap; gap: 6px; }
.tweaks-options button {
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg);
  padding: 6px 10px;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: inherit;
}
.tweaks-options button.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.tweaks-swatches { display: flex; gap: 8px; }
.tweaks-swatches button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  cursor: inherit;
  padding: 0;
}
.tweaks-swatches button.active {
  border-color: var(--fg);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg);
}
.tweaks-slider { width: 100%; accent-color: var(--accent-live); }

/* ============================================
   PROJECTS (case studies) — editorial spreads
   ============================================ */
.projects {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 10;
}
.projects-head {
  padding: 0 var(--col-pad);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(120px, 18vw, 220px);
}
.projects-headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 24px 0 0;
  max-width: 16ch;
}
.projects-headline em { font-style: italic; color: var(--accent-live); font-weight: 400; }
.projects-sub {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-mute);
  max-width: 42ch;
  margin: 0;
  padding-bottom: 12px;
}
@media (max-width: 860px) {
  .projects-head { grid-template-columns: 1fr; gap: 30px; }
}

.project-case {
  padding: clamp(100px, 14vw, 180px) var(--col-pad);
  display: grid;
  grid-template-columns: 180px 1fr 1.2fr;
  gap: clamp(40px, 5vw, 90px);
  border-top: 1px solid var(--rule);
  align-items: start;
  position: relative;
}
.project-case.flip {
  grid-template-columns: 1.2fr 1fr 180px;
}
.project-case.flip .project-marker { order: 3; text-align: right; }
.project-case.flip .project-body    { order: 2; }
.project-case.flip .project-media   { order: 1; }
@media (max-width: 960px) {
  .project-case,
  .project-case.flip {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 100px var(--col-pad);
  }
  .project-case.flip .project-marker,
  .project-case.flip .project-body,
  .project-case.flip .project-media { order: initial; text-align: left; }
}

.project-marker {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-marker .reveal {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(60px, 6vw, 110px);
  line-height: 0.9;
  color: var(--accent-live);
  letter-spacing: -0.03em;
}
.project-sep {
  width: 32px;
  height: 1px;
  background: var(--fg);
  display: block;
}
.project-place {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  max-width: 20ch;
  line-height: 1.5;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 48ch;
}
.project-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.project-year {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.project-lead p {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.45;
  color: var(--fg);
  margin: 0;
  max-width: 38ch;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--fg-mute);
  transition: border-color 0.3s, color 0.3s;
}
.project-tag:hover { border-color: var(--accent-live); color: var(--accent-live); }

/* Media mosaic — editorial grid (cover + 3 beneath) */
.project-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pm {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
}
.pm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--motion-ease), filter 0.5s ease;
  filter: saturate(0.92) contrast(1.02);
}
.pm:hover img { transform: scale(1.05); filter: saturate(1.08); }
.pm-1 { grid-column: span 3; aspect-ratio: 16 / 9; }   /* cover full-width */
.pm-2, .pm-3, .pm-4 { grid-column: span 1; }          /* 3 cuadradas debajo */

@media (max-width: 720px) {
  .project-media { grid-template-columns: repeat(2, 1fr); }
  .pm-1 { grid-column: span 2; aspect-ratio: 4 / 3; }
  .pm-4 { grid-column: span 2; aspect-ratio: 16 / 9; }
}
