/* =======================================================
   VARIABLES GLOBALES
======================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ====== TIPOGRAFÍA  ====== */
/* --------------------------------
   Custom Fonts
-------------------------------- */

/* GT America Mono Light */
@font-face {
  font-family: "GT America Mono";
  src: url("Fonts/GTAmericaMonoLCGV-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Office Times Round Regular */
@font-face {
  font-family: "GT America Mono";
  src: url("Fonts/GTAmericaMonoLCGV-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "GT America Mono", monospace;
  --font-display: "GT America Mono", serif;
  --font-mono: "GT America Mono", monospace;
  --site-bg: #CBDCEB;
  --site-text: #6D94C5;

  /* si ya usabas estas variables, las redefinimos */
  --cream: #CBDCEB;
  --green: #6D94C5;
}

html, body {
  background-color: var(--site-bg);
  color: var(--site-text);
}

body {
  font-family: var(--font-body);
}

h1,
h2,
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
}

.nav,
.kicker,
.meta,
.footer-links {
  font-family: var(--font-mono);
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* =========================
   HEADER / NAV
========================= */

.site-header{
  width: 100%;
}

.nav-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 28px 56px;          /* ajusta si lo quieres más alto/bajo */
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 15px;             /* ajusta según tu gusto */
  letter-spacing: 0.02em;

  color: var(--site-text);
}

.nav-left,
.nav-center,
.nav-right{
  white-space: nowrap;
}

.nav-center{
  position: absolute;          /* centra de verdad aunque haya 2 links a la derecha */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.nav-right{
  display: flex;
  gap: 44px;                   /* separación entre Work / Contact Me */
}

.nav-link{
  color: inherit;
  text-decoration: none;
}

.nav-link:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive: en móvil, baja tamaño y padding */
@media (max-width: 720px){
  .nav-bar{
    padding: 18px 18px;
    font-size: 16px;
  }
  .nav-right{ gap: 18px; }
}

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

.hero{
  width: 100%;
  padding: 120px 56px 0;   /* aire superior fuerte, sin empujar demasiado abajo */
}

.hero-inner{
  max-width: 1400px;      /* controla el ancho del texto */
}

.hero-text{
  font-family: var(--font-display); /* Office Times Round */
  font-weight: 300;
  font-size: clamp(30px, 1vw, 50px); /* texto grande y responsivo */
  line-height: 1.5;
  color: var(--site-text);

  max-width: 1100px;      /* similar al layout de la referencia */
  margin: 0;
}

/* Espacio + línea separadora */
.hero-divider{
  margin-top: 80px;
  width: 100%;
  height: 1px;
  background-color: var(--site-text);
  opacity: 0.4;
}

/* Responsive */
@media (max-width: 720px){
  .hero{
    padding: 80px 18px 0;
  }

  .hero-text{
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.2;
  }

  .hero-divider{
    margin-top: 56px;
  }
}

/* =========================
   INFO SECTION (Image + Lists)
========================= */

.info-section{
  width: 100%;
  padding: 56px 56px 0;
}

.info-grid{
  display: grid;
  grid-template-columns: 420px 1fr; /* imagen + columnas */
  gap: 80px;
  align-items: start;
}

/* Left image */
.info-photo{
  margin: 0;
}

.info-photo img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Right columns */
.info-lists{
  display: grid;
  grid-template-columns: repeat(4, max-content);
  column-gap: 40px;   /* controla aquí la distancia REAL */
}

/* Typography */
.info-title{
  font-family: var(--font-mono); /* GT America Mono Light */
  font-weight: 300;
  letter-spacing: 0.06em;
  font-size: 14px;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.info-item{
  margin: 0 0 20px;
}

.info-item p{
  margin: 0;
}

/* Content feel: editorial */
.info-item__name{
  font-family: var(--font-display); /* Office Times Round */
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
}

.info-item__role,
.info-item__date{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.3;
  opacity: 0.95;
}

/* Divider at end */
.section-divider{
  margin-top: 64px;
  width: 100%;
  height: 1px;
  background-color: var(--site-text);
  opacity: 0.35;
}

/* Responsive */
@media (max-width: 1100px){
  .info-grid{
    grid-template-columns: 320px 1fr;
    gap: 35px;
  }
  .info-lists{
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 44px;
  }
}

@media (max-width: 720px){
  .info-section{
    padding: 40px 18px 0;
  }
  .info-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .info-lists{
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .info-item__name{ font-size: 20px; }
  .info-item__role,
  .info-item__date{ font-size: 16px; }
}

/* =======================================================
   WORK GRID — INSPIRED BY LITTLE TROOP
======================================================= */

.work {
  background: #CBDCEB;
  padding-top: 50 !important;
  margin-top: 0 !important;
  width: 100%;
  padding: 40px var(--padding-page) 120px;
  border-top: 1px solid rgba(0,0,0,0.06); /* muy suave, editorial */
}

.work__inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--padding-page);
}

section.work {
  width: absolute;
  background-color: #CBDCEB;
}

.work__header {
  margin-bottom: 25px;
  max-width: 640px;
}

.work__title {
  font-family: "Office Times Round", serif;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.5px;
  color: #726222;
  margin: 0;
}

/* GRID BASE: 2 columnas mobile */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 11px;
  row-gap: 15px;
}

/* Tile */
.work-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

/* Imagen / video */
.work-tile__figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #d4c7a3; /* placeholder si no carga imagen */
  aspect-ratio: 4 / 3; /* relación tipo poster */
}

.work-tile__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Meta */
.work-tile__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-tile__label {
  font-family: var(--font-main);
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(47, 74, 57, 0.7);
}

.work-tile__name {
  font-family: "Office Times Round", serif;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: #726222;
}

/* Hover suave al estilo studio */
.work-tile:hover .work-tile__figure img {
  transform: scale(1.04);
}

/* =======================================================
   BREAKPOINTS (similar a littletroop)
======================================================= */

/* ≥ 768px → 3 columnas */
@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 40px;
  }
}

/* ≥ 1024px → 4 columnas */
@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ≥ 1280px → 5 columnas */
@media (min-width: 1280px) {
  .work-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ====== WORK TILE HOVER ANIMATION ====== */

.work-tile {
  display: block; /* por si no lo tenías */
  border-radius: 10px;
  overflow: hidden; /* evita que la imagen se salga en hover */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  background-color: transparent; /* asegura base limpia */
}

.work-tile__figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Para que se vea el video siempre */
.thumb-video {
  opacity: 1 !important;
}

.thumb-static {
  display: none !important;
}

.work-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.45); /* muy editorial */
}

/* Asegurar que la imagen responda suave */
.work-tile__figure img {
  transition: transform 0.35s ease;
}

/* Mini zoom sutil en la imagen */
.work-tile:hover .work-tile__figure img {
  transform: scale(1.03);
}

/* Meta info suave en hover */
.work-tile__meta {
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 12px 10px 18px 10px;
}

.work-tile:hover .work-tile__meta {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* =======================================================
   FOOTER
======================================================= */

.site-footer {
  width: 100%;
  background-color: #000000;
  color: #F7ECC0;
  padding-top: 40px;
  overflow: hidden;
}

/* Contenedor interior alineado al header (padding-page) */
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--padding-page) 40px;
}

/* Top: dos columnas */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col--right {
  text-align: right;
}

.footer-label {
  font-family: var(--font-main);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(247, 236, 192, 0.8);
  margin: 0;
}

.footer-link {
  font-family: var(--font-main);
  font-size: 14px;
  color: #F7ECC0;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #F7ECC0;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  opacity: 0.8;
}

.footer-link:hover::after {
  transform: scaleX(1);
}

.footer-links-row {
  margin: 0;
}

.footer-divider {
  margin: 0 6px;
  opacity: 0.7;
}


/* =======================================================
   FOOTER RESPONSIVE
======================================================= */

@media (max-width: 768px) {
  .footer-inner {
    padding: 0 var(--padding-page) 32px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-col--right {
    text-align: left;
  }

  .footer-marquee__text {
    font-size: 32vw; /* un poco más grande en mobile */
    padding-right: 6vw;
  }
}

/* =======================================================
   PROJECT
======================================================= */


/* =======================================================
   THEME: DARK (Project / Case pages)
======================================================= */

body.theme-dark {
  background-color: #000000;
  color: #FFFFFF;
}

/* Asegurar que todo herede blanco */
body.theme-dark * {
  color: inherit;
}

/* Header en dark */
body.theme-dark .ps-header {
  background-color: #000000;
}

/* Links */
body.theme-dark a {
  color: #FFFFFF;
}

/* Menú mobile overlay en dark */
body.theme-dark .ps-mobile-menu {
  background-color: #000000;
}

/* Divider genérico */
body.theme-dark .project__divider {
  background-color: #FFFFFF;
}

.project__divider {
  width: 100vw;
  height: 2px;
  margin: 10px auto 30px; /* antes 80px */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.project__content {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 var(--padding-page);
}

.project__headline {
  font-family: "Items", serif;
  font-size: 60px;
  letter-spacing: -2px;
  line-height: 50px;
  text-align: left;
  margin: 0px 0px 45px;
  max-width: 1200px;
}

/* ===== Strategy / Branding inline bar ===== */
.sb-bar {
  width: 100%;
}

.sb-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px var(--padding-page) 0; /* pequeño aire desde la línea */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 👈 alineado a la izquierda */
  gap: 16px;
}

.sb-bar__item {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.9;
}

.sb-bar__sep {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.9;
}

/* =======================================================
   PROJECT LANDSCAPE IMAGE
======================================================= */

.project-landscape {
  width: 100%;
  background: #000;
}

/* Nuevo contenedor para 2-up */
.project-landscape__row{
  padding: 4px var(--padding-page) 0;  /* mismo aire que ya usas */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px; /* espacio entre las dos imágenes (ajústalo a gusto) */
}

/* figures sin margen */
.project-landscape__media{
  width: 100%;
  margin: 0;
}

/* IMPORTANTE: aquí quitamos el padding del img para no duplicarlo */
.project-landscape__media img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  padding: 0;
}

/* Mobile: apilar (si quieres que se mantenga 2-up en mobile, lo cambiamos) */
@media (max-width: 768px){
  .project-landscape__row{
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ===== Lightbox / Gallery ===== */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.is-open{ display: flex; }

.lightbox__figure{
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img{
  width: 100%;
  height: 100%;
  max-height: 86vh;
  object-fit: contain;
  display: block;
}

.lightbox__close{
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  opacity: .9;
}

.lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  display: grid;
  place-items: center;
}

.lightbox__prev{ left: 16px; }
.lightbox__next{ right: 16px; }

.lightbox__nav:hover,
.lightbox__close:hover{
  opacity: .7;
}

@media (max-width: 768px){
  .lightbox__nav{ width: 46px; height: 46px; }
}

/* =======================================================
   PROJECT INFO GRID — 3 COLUMNS (EDITORIAL)
======================================================= */

.project-info-grid{
  width: 100%;
}

.project-info-grid__inner{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px var(--padding-page) 32px;
  align-items: start;
}

.info-col{
  min-width: 0;
}

.info-small{
  margin: 0;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: inherit;
}

.info-pin{
  display: inline-block;
  margin-right: 6px;
  font-size: 10px;
  transform: translateY(-1px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px){
  .project-info-grid__inner{
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =======================================================
   INFO GRID — STAGGER IN (on scroll)
======================================================= */

.project-info-grid__inner .info-col{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

/* Cuando se activa */
.project-info-grid.is-inview .info-col{
  opacity: 1;
  transform: translateY(0);
}

/* Stagger por columna */
.project-info-grid.is-inview .info-col:nth-child(1){ transition-delay: 0ms; }
.project-info-grid.is-inview .info-col:nth-child(2){ transition-delay: 120ms; }
.project-info-grid.is-inview .info-col:nth-child(3){ transition-delay: 240ms; }

/* Accesibilidad: si el usuario prefiere menos animación */
@media (prefers-reduced-motion: reduce){
  .project-info-grid__inner .info-col{
    opacity: 1;
    transform: none;
    transition: none;
  }
}