/* ===== Tokens — Klamahama® palette (teal green replaces red, single warm brown replaces black) ===== */
:root{
  --black: #4D4039;         /* Chocolate (manual v0.4 3.9) — fondo póster / impacto */
  --pure-black: #4D4039;    /* mismo Chocolate — se mantiene la variable por compatibilidad */
  --red: #498467;           /* Teal (manual v0.4 3.9) — secundario · Studio · apertura */
  --dark-red: #2F5643;      /* teal profundo — accent for gradients */
  --red-glow: #7ECBA0;      /* teal claro — bright highlight glow */
  --white: #F0E9D3;         /* Crema (manual v0.4 3.9) — fondo editorial / texto principal */
  --gray-text: #A79C8C;     /* warm gray — secondary text */
  --gray-line: rgba(240,233,211,.14);
  --footer-bg: #ECE8DF;     /* Hueso (manual v0.4 3.9) — sobrio, nunca blanco puro */
  --footer-ink: #292929;    /* Tinta (manual v0.4 3.9) — texto, never pure black */

  --font-display: "Inter", sans-serif;
  --font-accent: "Cormorant Garamond", serif;
  --font-tracked: "DM Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-alt: "DM Sans", "Inter", sans-serif;

  --container: 1440px;
  --pad: clamp(20px, 4vw, 64px);
}

*{ box-sizing: border-box; }
body{
  margin:0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; top:-100%; left:16px; z-index:1000;
  background: var(--white); color: var(--pure-black);
  font-family: var(--font-body); font-weight:700; font-size:14px;
  padding:12px 20px; border-radius:0 0 6px 6px;
  transition: top .2s ease;
}
.skip-link:focus{ top:0; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; background:none; border:none; color:inherit; }

/* Lenis */
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }

/* Page transition overlay (maroon wipe between internal nav) */
.page-transition{
  position: fixed; inset:0; z-index: 500;
  background: linear-gradient(160deg, var(--pure-black), var(--dark-red));
  transform: translateY(100%);
  pointer-events: none;
}

/* Curtain intro — opens right after the preloader fades. Vertical split (top/bottom),
   like a cinema screen curtain, not a horizontal left/right wipe. */
.curtain{
  position: fixed; inset:0; z-index: 900;
  display:flex; flex-direction:column;
  pointer-events: none;
}
.curtain-panel{
  flex:1; width:100%;
  background: var(--red);
}
.curtain-top{ transform-origin: top center; }
.curtain-bottom{ transform-origin: bottom center; }

/* SplitText helpers */
.split-line{ overflow:hidden; display:block; }
.split-word{ display:inline-block; will-change: transform; }

/* ===== Preloader ===== */
.preloader{
  position: fixed; inset:0; z-index: 999;
  background: var(--red);
  display:flex; align-items:center; justify-content:center;
}
.preloader-logo{ text-align:center; }
.pl-word{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: -1px;
  color: var(--white);
}
.pl-word sup{ font-size: .5em; }
.pl-letter{ display:inline-block; will-change: transform, opacity; }
.pl-line{
  display:block; height:1px; width:0%;
  background: rgba(255,255,255,.5);
  margin: 14px auto;
  animation: plLine 1s ease .5s forwards;
}
.pl-sub{
  display:inline-block;
  font-family: var(--font-tracked);
  font-weight:700;
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--white);
  opacity:0;
  animation: plFade .6s ease .8s forwards;
}
@keyframes plFade{ to{ opacity:1; } }
@keyframes plLine{ to{ width:100%; } }

/* ===== Header ===== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 200;
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .4s ease;
}
.site-header.is-hidden{
  transform: translateY(-120%);
  opacity: 0;
}
.logo{
  display:block;
}
.logo img{
  display:block;
  height: 28px;
  width: auto;
}
.main-nav{ display:flex; gap:80px; }
.main-nav a{
  font-family: var(--font-body);
  font-weight:700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .9;
  transition: opacity .25s;
}
.main-nav a:hover{ opacity: .5; }
.menu-toggle{
  display:none; align-items:center; gap:12px;
}
.menu-bars{ display:flex; flex-direction:column; gap:5px; width:26px; }
.menu-bars i{ height:2px; background: var(--white); border-radius:2px; }
.menu-label{
  font-family: var(--font-display);
  font-weight:900;
  font-size: 20px;
}

.mobile-overlay{
  position: fixed; inset:0; z-index:190;
  background: var(--pure-black);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 28px;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.77,0,.18,1);
}
.mobile-overlay.is-open{ transform: translateY(0); }
.mobile-overlay a{
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
}

/* ===== Hero (pinned — later sections scroll up and cover it) ===== */
.hero{
  height: 100vh;
  background: var(--pure-black);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding: 140px var(--pad) 60px;
  position: sticky;
  top: 0;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
}
.hero-video-wrap{
  position:absolute; inset:0;
  z-index:0;
}
.hero-video{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
}
.hero-video-scrim{
  position:absolute; inset:0;
  background: rgba(51,43,38,.6);
}
.hero-title, .hero-caption{
  position:relative; z-index:1;
  color: #fff;
  mix-blend-mode: difference;
}
.hero-title{
  margin:0;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 0.9;
  font-size: clamp(64px, 15vw, 220px);
}
.hero-title em{ font-style: normal; font-weight: 800; }
.hero-title .reveal{
  display:block;
}
.hero-caption{
  max-width: 320px;
  font-family: var(--font-alt);
  font-size: 14px;
  line-height: 1.5;
  margin: 48px auto 0;
}

/* ===== Logos marquee section ===== */
.logos-section{
  background: var(--pure-black);
  padding: 90px 0 40px;
  position: relative;
  z-index: 2;
}
.marquee{
  width:100%;
  overflow:hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track{
  display:flex;
  align-items:center;
  gap: 90px;
  width: max-content;
  animation: scrollLeft 32s linear infinite;
}
.logo-item{
  height: 34px;
  display:flex; align-items:center;
  opacity:.7;
}
.logo-item .discipline-name{
  font-family: var(--font-tracked);
  font-weight:700;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--white);
  white-space: nowrap;
}
@keyframes scrollLeft{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.logos-footline{
  display:flex; justify-content:space-between; align-items:center;
  padding: 90px var(--pad) 0;
}
.wordmark-small{
  font-family: var(--font-display);
  font-weight:900;
  font-size: 26px;
}
.wordmark-small sup{ font-size:.55em; }
.services-tag{
  font-family: var(--font-tracked);
  font-weight:700;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gray-text);
}

/* ===== Services — 2 column: narrow description col + big accordion list col ===== */
.services{
  background: var(--black);
  padding: 40px var(--pad) 70px;
  position: relative;
  z-index: 2;
}
.services-inner{
  display:grid;
  grid-template-columns: 380px 1fr;
  gap: var(--pad);
  align-items:start;
}
.services-desc{
  max-width: 380px;
}
.services-desc-label{
  display:block;
  font-family: var(--font-alt);
  font-weight:600;
  font-size: 15px;
  color: var(--red-glow);
  margin: 0 0 14px;
}
.services-desc p{
  font-family: var(--font-alt);
  font-size: 19px;
  line-height: 1.65;
  color: rgba(240,233,211,.85);
}

.service-item{
  border-bottom: 1px solid var(--gray-line);
}
.service-item:last-child{ border-bottom: none; }
.service-item a{
  display:flex; align-items:baseline; gap:16px;
  padding: 14px 0;
  transition: color .3s ease;
}
.service-name{
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -2px;
  font-size: clamp(38px, 6.4vw, 88px);
  color: rgba(240,233,211,.55);
  transition: color .35s ease;
}
.service-num{
  font-family: var(--font-body);
  font-weight:700;
  font-size: 15px;
  color: rgba(240,233,211,.55);
  transition: color .35s ease;
}
.service-num .paren{ color: var(--red); }
.service-item.is-active .service-name,
.service-item:hover .service-name,
.service-item:focus-within .service-name,
.service-item.is-active .service-num,
.service-item:hover .service-num,
.service-item:focus-within .service-num{
  color: var(--white);
}
.service-item a:focus-visible{ outline: 1px solid var(--red-glow); outline-offset: 4px; }

/* ===== Projects ===== */
.projects{
  background: var(--black);
  padding: 40px 0 140px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.projects-label{
  display:flex; align-items:center; gap:10px;
  margin:0;
  font-family: var(--font-body);
  font-weight:700;
  font-size: 14px;
  padding: 0 var(--pad) 40px;
}
.projects-label .arrow{ color: var(--red); }
.projects-marquee{
  width:100%;
  overflow:hidden;
  padding: 50px 0 70px var(--pad);
}
.projects-track{
  display:flex;
  align-items:flex-start;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
}
.project-card{
  position: relative;
  width: 260px;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink:0;
  margin-right: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
}
.project-card:nth-child(even){ margin-top: 40px; }
.project-card:nth-child(3n){ margin-top: 10px; }
.project-card img{ width:100%; height:100%; object-fit:cover; }
.project-name{
  position:absolute; left:16px; bottom:16px;
  font-family: var(--font-tracked);
  font-weight:700;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* ===== Brand statement — thesis line before the closing CTA ===== */
.brand-statement{
  background: var(--pure-black);
  padding: 110px var(--pad);
  position: relative;
  z-index: 2;
  display:flex;
  justify-content:center;
}
.brand-statement-text{
  max-width: 820px;
  text-align:center;
  font-family: var(--font-body);
  font-weight:700;
  letter-spacing:-1px;
  line-height: 1.25;
  font-size: clamp(26px, 4.2vw, 46px);
  color: var(--white);
}
.brand-statement-text em{
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35em;
  color: var(--red-glow);
  position: relative;
  top: -0.06em;
}

/* ===== CTA / Contact ===== */
.cta{
  background: linear-gradient(181deg, var(--pure-black) 1.5%, var(--pure-black) 13%, var(--dark-red) 100%);
  padding: 120px var(--pad) 100px;
  position: relative;
  z-index: 2;
}
.cta-title{
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -2px;
  font-size: clamp(36px, 6vw, 72px);
  margin: 0 0 70px;
}
.cta-body{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
.cta-left p{
  font-family: var(--font-alt);
  font-size: 18px;
  color: rgba(240,233,211,.85);
  margin: 0 0 40px;
}
.cta-contact{ display:flex; align-items:center; gap:16px; }
.cta-dot{
  width:44px; height:44px; border-radius:50%;
  background: radial-gradient(circle at 35% 30%, var(--red-glow), var(--red) 60%);
  flex-shrink:0;
}
.cta-contact strong{ display:block; font-size:14px; }
.cta-email{ font-size:14px; color: rgba(240,233,211,.9); transition: opacity .2s; }
.cta-email:hover{ opacity:.7; text-decoration:underline; }

.cta-form{ display:flex; flex-direction:column; gap: 26px; }
.field{ border-bottom: 1px solid rgba(240,233,211,.3); padding-bottom: 12px; transition: border-color .2s; }
.field:focus-within{ border-bottom-color: var(--red-glow); }
.field input{
  width:100%;
  background: transparent;
  border:none;
  outline:none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
}
.field input::placeholder{ color: rgba(240,233,211,.8); }
.btn-send{
  align-self:flex-start;
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-body);
  font-weight:700;
  font-size:15px;
  margin-top: 10px;
  transition: opacity .25s;
}
.btn-send .arrow{ color: var(--red); }
.btn-send:hover{ opacity:.7; }

/* ===== Footer ===== */
.site-footer{
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 60px var(--pad) 34px;
  position: relative;
  z-index: 2;
}
.footer-top{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(41,41,41,.12);
}
.footer-col-main{
  display:flex; flex-direction:column; align-items:flex-start; gap:16px;
}
.footer-brand{ display:flex; flex-direction:column; }
.footer-logo{
  display:block;
  height: 46px;
  width: auto;
}
.footer-tagline{
  font-family: var(--font-alt);
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 500;
  opacity: .8;
  margin-top: 4px;
}
.footer-nav, .footer-social{ display:flex; flex-direction:column; gap:10px; }
.footer-nav a, .footer-social a{
  font-size:14px;
  opacity:.85;
  transition: opacity .2s;
}
.footer-nav a:hover, .footer-social a:hover{ opacity:1; text-decoration:underline; }
.footer-contact-info{ display:flex; flex-direction:column; gap:4px; }
.footer-phone{ font-size:14px; opacity:.75; transition: opacity .2s; }
.footer-phone:hover{ opacity:1; text-decoration:underline; }
.footer-email{
  font-size: 22px;
  font-weight: 700;
  transition: opacity .2s;
}
.footer-email:hover{ opacity:.7; text-decoration:underline; }
.cookie-link{ color: var(--red); font-weight:600; font-size:13px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  padding-top: 26px;
  font-size: 13px;
  opacity:.65;
}

/* Note: [data-reveal] initial/animated states are now set directly by GSAP (js/script.js)
   via gsap.set()/ScrollTrigger tweens, so no CSS opacity/transform rules live here —
   that avoids the element flashing visible before JS takes over. */

/* ===== Ultra-wide guard — sections keep full-bleed backgrounds, but their content
   is capped at --container so it doesn't stretch edge-to-edge on very wide screens. ===== */
.site-header,
.logos-footline,
.services-inner,
.cta-title,
.cta-body,
.footer-top,
.footer-bottom{
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .main-nav{ display:none; }
  .menu-toggle{ display:flex; }
  .cta-body{ grid-template-columns: 1fr; }
  .services-inner{ grid-template-columns: 1fr; }
  .services-desc{ max-width:none; margin-bottom: 20px; }
}
@media (max-width: 600px){
  .logos-footline{ flex-direction:column; align-items:flex-start; gap:16px; }
  .footer-top{ flex-direction:column; }
  .project-card{ width: 220px; }
}

/* ===== About page ===== */

/* Intro / mission statement — reuses .projects-label as the eyebrow tag,
   overriding its horizontal padding since the section already pads itself. */
.about-intro{
  background: var(--black);
  padding: 60px var(--pad) 40px;
  position: relative;
  z-index: 2;
}
.about-intro .projects-label,
.about-philosophy .projects-label{
  padding: 0 0 24px;
}
.about-intro-text{
  max-width: 760px;
  font-family: var(--font-alt);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.55;
  color: rgba(240,233,211,.9);
}

/* Process — numbered step list (own component, deliberately not .service-item
   so it doesn't get wired into the homepage's services-accordion JS). */
.about-process{
  background: var(--black);
  padding: 20px var(--pad) 80px;
  position: relative;
  z-index: 2;
}
.process-list{ display:flex; flex-direction:column; }
.process-item{
  display:flex; align-items:baseline; gap:32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-line);
}
.process-item:first-child{ border-top: 1px solid var(--gray-line); }
.process-num{
  font-family: var(--font-body);
  font-weight:800;
  letter-spacing:-1px;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--red);
  flex-shrink:0;
  width: 90px;
}
.process-copy h3{
  margin:0 0 10px;
  font-family: var(--font-body);
  font-weight:800;
  letter-spacing:-1px;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--white);
}
.process-copy p{
  margin:0;
  max-width: 620px;
  font-family: var(--font-alt);
  font-size: 16px;
  line-height:1.6;
  color: rgba(240,233,211,.8);
}

/* Philosophy statement + founder bio grid — the section itself is a full-bleed
   white background; the dark content lives in .about-philosophy-inner, capped
   at --container, so wide viewports letterbox to white instead of revealing
   the sticky hero behind through the old section's own max-width gap. */
.about-philosophy{
  background: var(--footer-bg);
  position: relative;
  z-index: 2;
}
.about-philosophy-inner{
  max-width: var(--container);
  margin: 0 auto;
  background: var(--black);
  padding: 40px var(--pad) 90px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:start;
}
.philosophy-text p{
  margin-top: 18px;
  max-width: 480px;
  font-family: var(--font-alt);
  font-size: 19px;
  line-height:1.65;
  color: rgba(240,233,211,.85);
}
.bio-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.bio-card{
  display:flex;
  align-items:center;
  gap:28px;
  padding:36px;
  background: rgba(240,233,211,.04);
  border: 1px solid var(--gray-line);
  border-radius:14px;
  transition: border-color .45s cubic-bezier(.22,1,.36,1);
}
.bio-card:hover{ border-color: rgba(126,203,160,.4); }

.bio-photo-wrap{
  position:relative;
  flex-shrink:0;
  width:160px; height:160px;
}
.bio-photo-wrap::before{
  content:"";
  position:absolute; inset:-24px;
  background: radial-gradient(circle at 35% 30%, var(--red-glow), transparent 70%);
  opacity:.3; filter: blur(24px);
  transition: opacity .45s cubic-bezier(.22,1,.36,1);
  z-index:0;
}
.bio-card:hover .bio-photo-wrap::before{ opacity:.6; }

.bio-photo{
  position:relative; z-index:1;
  display:block; width:100%; height:100%;
  border-radius:14px; overflow:hidden;
  background: radial-gradient(circle at 35% 30%, var(--red-glow), var(--red) 60%);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.bio-card:hover .bio-photo{ transform: scale(1.045); }
.bio-photo img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}

.bio-text{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.bio-name{
  font-family: var(--font-display);
  font-weight:900;
  font-size: 22px;
}
.bio-role{
  font-family: var(--font-tracked);
  font-weight:700;
  font-size: 12px;
  letter-spacing:1px;
  color: var(--gray-text);
  text-transform:uppercase;
  margin-bottom: 8px;
}
.bio-copy{
  font-family: var(--font-alt);
  font-size: 15px;
  line-height:1.6;
  color: rgba(240,233,211,.8);
  margin:0;
  max-width:340px;
}

@media (max-width: 420px){
  .bio-card{ flex-direction:column; align-items:flex-start; gap:20px; }
}

/* Value-proposition transitional statement */
.about-value{
  background: var(--pure-black);
  padding: 100px var(--pad);
  position: relative;
  z-index: 2;
  display:flex;
  justify-content:center;
}
.about-value-text{
  max-width: 780px;
  text-align:center;
  font-family: var(--font-body);
  font-weight:700;
  letter-spacing:-1px;
  font-size: clamp(26px, 4vw, 44px);
  color: var(--white);
}

.process-list{
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px){
  .about-philosophy-inner{ grid-template-columns: 1fr; }
  .process-item{ flex-direction:column; gap:10px; }
  .process-num{ width:auto; }
}

/* Auto-moving content (marquees) must be pausable per WCAG 2.2.2 — honor the
   OS-level reduced-motion preference instead of looping forever. */
@media (prefers-reduced-motion: reduce){
  .marquee-track, .projects-track{ animation: none; }
}

/* ===== Legal / simple text pages (privacidad.html) — no hero, just copy ===== */
.legal-page{
  background: var(--black);
  padding: 160px var(--pad) 120px;
  position: relative;
  z-index: 2;
}
.legal-page-inner{
  max-width: 760px;
  margin: 0 auto;
}
.legal-page h1{
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -2px;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--white);
  margin: 0 0 12px;
}
.legal-updated{
  font-family: var(--font-alt);
  font-size: 14px;
  color: var(--gray-text);
  margin: 0 0 56px;
}
.legal-page h2{
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -1px;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--white);
  margin: 48px 0 16px;
}
.legal-page p{
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(240,233,211,.85);
  margin: 0 0 16px;
}
.legal-page ul{
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-page li{
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(240,233,211,.85);
  margin-bottom: 8px;
}
.legal-page a{ color: var(--red-glow); }
.legal-page a:hover{ opacity:.8; }
