/* =============================================================
   Estos Gritos — main.css
   Design system: Dark editorial, Cormorant Garamond display,
   warm ivory on near-black, brick orange accent
   ============================================================= */

/* -----------------------------------------------
   CUSTOM PROPERTIES
----------------------------------------------- */
:root {
  /* Colors */
  --bg:       #090907;
  --bg-2:     #0E0D0A;
  --bg-3:     #131210;
  --bg-4:     #181614;
  --tx:       #E8DDD0;
  --tx-2:     #9A8E80;
  --tx-3:     #5A5048;
  --ac:       #C45520;
  --ac-h:     #DC6128;
  --teal:     #2A5060;
  --teal-l:   #3A7090;
  --ln:       rgba(232, 221, 208, 0.09);
  --ln-2:     rgba(232, 221, 208, 0.17);
  --ln-3:     rgba(232, 221, 208, 0.04);

  /* Typography */
  --fd: 'Cormorant Garamond', Georgia, serif;
  --fc: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;

  /* Spacing */
  --px: 6vw;
  --section-py: 90px;
  --gap-sm: 14px;
  --gap-md: 36px;
  --gap-lg: 72px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* -----------------------------------------------
   RESET & BASE
----------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--fb);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* -----------------------------------------------
   GRAIN TEXTURE
----------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* -----------------------------------------------
   NAVIGATION
----------------------------------------------- */
#eg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--px);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}
#eg-nav.sc {
  background: rgba(9, 9, 7, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--px);
  border-color: var(--ln);
}

.n-logo {
  font-family: var(--fd);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tx);
  text-decoration: none;
  transition: opacity 0.2s;
}
.n-logo:hover { opacity: 0.7; }

.n-links {
  display: flex;
  gap: 32px;
}
.n-links a {
  font-family: var(--fc);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tx-2);
  text-decoration: none;
  transition: color 0.2s;
}
.n-links a:hover { color: var(--tx); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--tx);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer */
.n-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(9, 9, 7, 0.97);
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 499;
}
.n-links.mobile-open a {
  font-size: 1.2rem;
  letter-spacing: 0.25em;
}

/* -----------------------------------------------
   SECTION PRIMITIVES
----------------------------------------------- */
section {
  padding: var(--section-py) var(--px);
}

.slabel {
  font-family: var(--fc);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 14px;
}

.stitle {
  font-family: var(--fd);
  font-size: clamp(32px, 4.8vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--tx);
  margin-bottom: 44px;
}
.stitle em {
  font-style: italic;
  color: var(--tx-2);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.vis {
  opacity: 1;
  transform: none;
}

/* -----------------------------------------------
   BUTTONS
----------------------------------------------- */
.btn {
  font-family: var(--fc);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 28px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  display: inline-block;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ac);
  color: #fff;
}
.btn-primary:hover { background: var(--ac-h); }
.btn-outline {
  background: transparent;
  color: var(--tx);
  border: 1px solid var(--ln-2);
}
.btn-outline:hover { border-color: var(--tx-2); }

/* -----------------------------------------------
   HERO SECTION
----------------------------------------------- */
.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.h-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 66% at 58% 42%, rgba(44,32,20,0.75) 0%, transparent 68%),
    radial-gradient(ellipse 35% 45% at 22% 72%, rgba(42,80,96,0.1) 0%, transparent 55%);
  z-index: 0;
}

.section-hero > *:not(.h-bg) { position: relative; z-index: 1; }

.h-label {
  font-family: var(--fc);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 24px;
  animation: fu 0.9s var(--ease) both;
}

.h-name {
  font-family: var(--fd);
  font-size: clamp(68px, 12.5vw, 166px);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--tx);
  animation: fu 0.9s 0.12s var(--ease) both;
}
.h-name .it {
  font-style: italic;
  color: var(--tx-2);
}

.h-cities {
  margin-top: 28px;
  font-family: var(--fc);
  font-size: clamp(0.75rem, 1.2vw, 0.98rem);
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--tx-2);
  animation: fu 0.9s 0.25s var(--ease) both;
}
.h-cities span { color: var(--tx-3); margin: 0 10px; }

.h-rel {
  margin-top: 50px;
  animation: fu 0.9s 0.38s var(--ease) both;
}
.h-rlab {
  font-family: var(--fc);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 8px;
}
.h-rtit {
  font-family: var(--fd);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--tx);
}
.h-rtit em {
  font-style: italic;
  color: var(--tx-2);
  font-size: 1.1rem;
}

.h-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fu 0.9s 0.5s var(--ease) both;
}

.h-bird {
  position: absolute;
  right: 4vw;
  bottom: 9vh;
  opacity: 0.055;
  animation: fi 2.5s 0.8s var(--ease) both;
  pointer-events: none;
}

.scroll-ind {
  position: absolute;
  bottom: 28px;
  left: var(--px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fc);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tx-3);
  animation: fi 2s 1.2s var(--ease) both;
}
.scroll-ln {
  width: 36px;
  height: 1px;
  background: var(--tx-3);
  transform-origin: left;
  animation: el 1.4s 2s var(--ease) forwards;
  transform: scaleX(0);
}

/* -----------------------------------------------
   SINGLE SECTION
----------------------------------------------- */
.section-single {
  background: var(--bg-2);
  border-top: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
}

.sl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.sl-art {
  aspect-ratio: 1;
  background: var(--bg-3);
  border: 1px solid var(--ln-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sl-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(42,80,96,0.2) 0%, transparent 65%);
}
.sl-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sl-ai {
  text-align: center;
  z-index: 1;
  padding: 40px;
}
.sl-aibird { margin-bottom: 20px; opacity: 0.3; }
.sl-atxt {
  font-family: var(--fd);
  font-size: 2.1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--tx);
}
.sl-asub {
  font-family: var(--fc);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tx-2);
  margin-top: 8px;
}

.sl-tag {
  font-family: var(--fc);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 14px;
}
.sl-tit {
  font-family: var(--fd);
  font-size: clamp(40px, 5.8vw, 76px);
  font-weight: 300;
  line-height: 0.92;
  color: var(--tx);
  margin-bottom: 6px;
}
.sl-sub {
  font-family: var(--fd);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--tx-2);
  margin-bottom: 28px;
}
.sl-desc {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--tx-2);
  margin-bottom: 32px;
  max-width: 460px;
}
.sl-desc strong { color: var(--tx); font-weight: 400; }

.sl-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sl-note {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--ln);
  font-family: var(--fc);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--tx-3);
  line-height: 1.6;
}
.sl-note strong { color: var(--tx-2); font-weight: 600; }

/* -----------------------------------------------
   ABOUT SECTION
----------------------------------------------- */
.section-about {
  background: var(--bg);
}

.ab-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}

.ab-quote {
  font-family: var(--fd);
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.32;
  color: var(--tx);
  margin-bottom: 36px;
  padding-left: 22px;
  border-left: 2px solid var(--ac);
}

.ab-cities {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.city {
  background: var(--bg-2);
  padding: 26px 28px;
  border: 1px solid var(--ln);
}
.city-n {
  font-family: var(--fc);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx);
  margin-bottom: 3px;
}
.city-s {
  font-family: var(--fc);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx-3);
}

.ab-body p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--tx-2);
  margin-bottom: 18px;
}
.ab-body p:last-child { margin-bottom: 0; }
.ab-body strong { color: var(--tx); font-weight: 400; }

/* -----------------------------------------------
   MEMBERS SECTION
----------------------------------------------- */
.section-members {
  background: var(--bg-2);
  border-top: 1px solid var(--ln);
}

.mb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.mb {
  background: var(--bg-3);
  padding: 32px 26px;
  border: 1px solid var(--ln);
  transition: border-color 0.3s var(--ease);
}
.mb:hover { border-color: var(--ln-2); }

.mb-role {
  font-family: var(--fc);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 12px;
}
.mb-name {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--tx);
  margin-bottom: 14px;
}
.mb-bio {
  font-size: 0.8rem;
  line-height: 1.72;
  color: var(--tx-3);
}
.mb-bio strong { color: var(--tx-2); font-weight: 400; }
.mb-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mb-tag {
  font-family: var(--fc);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
  border: 1px solid var(--ln);
  padding: 3px 9px;
}

/* -----------------------------------------------
   TIMELINE SECTION
----------------------------------------------- */
.section-timeline {
  background: var(--bg);
  border-top: 1px solid var(--ln);
}

.tl {
  display: flex;
  flex-direction: column;
  max-width: 760px;
}
.tl-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--ln);
}
.tl-item:first-child { border-top: 1px solid var(--ln); }

.tl-date {
  font-family: var(--fc);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.tl-date.hot { color: var(--ac); }

.tl-ev {
  font-family: var(--fd);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--tx);
}
.tl-ev .note {
  display: block;
  font-family: var(--fb);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--tx-3);
  margin-top: 3px;
}

/* -----------------------------------------------
   PRESS SECTION
----------------------------------------------- */
.section-press {
  background: var(--bg-2);
  border-top: 1px solid var(--ln);
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pr {
  background: var(--bg-3);
  padding: 36px 32px;
  border: 1px solid var(--ln);
  transition: border-color 0.3s var(--ease);
}
.pr:hover { border-color: var(--ln-2); }

.pr-out {
  font-family: var(--fc);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 10px;
}
.pr-ang {
  font-family: var(--fd);
  font-size: 1.22rem;
  font-weight: 300;
  font-style: italic;
  color: var(--tx);
  line-height: 1.3;
  margin-bottom: 10px;
}
.pr-note {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--tx-3);
}

.pr-cta {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* -----------------------------------------------
   CONTACT SECTION
----------------------------------------------- */
.section-contact {
  background: var(--bg);
  border-top: 1px solid var(--ln);
  text-align: center;
}
.section-contact .stitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 580px;
}

.c-email {
  font-family: var(--fd);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--tx);
  text-decoration: none;
  border-bottom: 1px solid var(--ln-2);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.c-email:hover { color: var(--ac); border-color: var(--ac); }

.c-loc {
  margin-top: 30px;
  font-family: var(--fc);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tx-3);
}

/* -----------------------------------------------
   FOOTER
----------------------------------------------- */
#eg-footer {
  background: var(--bg-3);
  border-top: 1px solid var(--ln);
  padding: 36px var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.ft-logo {
  font-family: var(--fd);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.ft-cities {
  font-family: var(--fc);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tx-3);
}
.ft-soc {
  display: flex;
  gap: 22px;
}
.ft-soc a {
  font-family: var(--fc);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tx-3);
  text-decoration: none;
  transition: color 0.2s;
}
.ft-soc a:hover { color: var(--tx); }

.ft-copy {
  width: 100%;
  font-family: var(--fc);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--tx-3);
  opacity: 0.5;
  text-align: center;
  margin-top: 8px;
}

/* -----------------------------------------------
   SINGLE POST / PAGE
----------------------------------------------- */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
}
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--fd);
  font-weight: 300;
  color: var(--tx);
  margin-bottom: 16px;
}
.entry-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--tx-2);
  margin-bottom: 20px;
}
.entry-content a { color: var(--ac); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ac-h); }

/* -----------------------------------------------
   ANIMATIONS
----------------------------------------------- */
@keyframes fu {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fi {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes el {
  to { transform: scaleX(1); }
}

/* -----------------------------------------------
   RESPONSIVE
----------------------------------------------- */
@media (max-width: 1100px) {
  .mb-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-py: 70px; }
  .n-links { display: none; }
  .nav-hamburger { display: flex; }
  .sl-grid { grid-template-columns: 1fr; gap: 48px; }
  .ab-grid { grid-template-columns: 1fr; gap: 48px; }
  .pr-grid { grid-template-columns: repeat(2, 1fr); }
  .h-bird { display: none; }
}

@media (max-width: 640px) {
  :root { --section-py: 56px; }
  .mb-grid { grid-template-columns: 1fr; }
  .pr-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .ab-cities { grid-template-columns: 1fr; }
  #eg-footer { flex-direction: column; text-align: center; }
  .ft-copy { margin-top: 4px; }
}
