/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0A0A0A;
  --bg-2:      #141414;
  --bg-card:   #1C1C1C;
  --white:     #FFFFFF;
  --bone:      #F0F0EC;
  --text:      rgba(240, 240, 236, 0.86);
  --text-mute: rgba(240, 240, 236, 0.56);
  --lime:      #C8FF00;
  --lime-dim:  rgba(200, 255, 0, 0.14);
  --line:      rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);

  --sans:      "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body:      "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --nav-logo-size: 96px;
  --nav-logo-size-scrolled: 44px;
  --footer-logo-size: 130px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1280px;

  --marquee-speed: 28s;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
[id] { scroll-margin-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 900;
  color: var(--white);
  text-wrap: balance;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
ul { list-style: none; padding: 0; }
::selection { background: var(--lime); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--lime); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 700;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.section-alt { background: var(--bg-2); }
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  margin-top: .9rem;
}

.grain {
  position: fixed; inset: 0; z-index: 1;
  opacity: 0.035; mix-blend-mode: overlay; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--sans);
  font-weight: 700; font-size: .95rem;
  border-radius: 999px;
  transition: transform .45s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--lime); color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--lime-dim);
}
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -0.14em;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.link-underline:hover::after,
.link-underline:focus-visible::after { transform: scaleX(1); }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  animation: splashSafety .01s 4.5s forwards;
}
.splash img { width: clamp(140px, 22vw, 220px); height: auto; }
.splash.is-out {
  animation: none;
  opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease-out);
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav-inner {
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: var(--nav-logo-size); width: var(--nav-logo-size);
  object-fit: contain;
  transition: height .4s var(--ease-out), width .4s var(--ease-out);
}
.nav.is-scrolled .nav-logo img {
  height: var(--nav-logo-size-scrolled); width: var(--nav-logo-size-scrolled);
}
.nav-links {
  display: none;
  align-items: center; gap: 2.2rem;
  font-family: var(--sans);
  font-weight: 600; font-size: .92rem;
}
.nav-links a { color: var(--bone); }
.nav-links a:hover { color: var(--lime); }
.nav-cta { display: none; }

.lang-switch {
  display: flex; align-items: center;
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-switch button {
  padding: .4rem .7rem;
  border-radius: 999px;
  color: var(--text-mute);
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--bg);
}

/* Mobile nav uses native <details> — works with zero JS */
.nav-mobile { position: relative; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: .6rem;
  list-style: none; cursor: pointer;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { content: ""; }
.nav-toggle span {
  width: 22px; height: 2px; background: var(--white);
  transition: transform .35s var(--ease-out), opacity .25s var(--ease-out);
}
.nav-mobile[open] > .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] > .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-mobile[open] > .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel {
  position: fixed; inset: 0; top: var(--nav-h); z-index: 190;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
}
.nav-mobile-panel ul { display: flex; flex-direction: column; gap: 1.5rem; }
.nav-mobile-panel a {
  font-family: var(--sans); font-weight: 900; font-size: clamp(1.8rem, 8vw, 2.8rem);
  color: var(--white);
}
.nav-mobile-panel a:hover { color: var(--lime); }
.nav-mobile-panel .btn { margin-top: 2.2rem; align-self: flex-start; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-mobile { display: none; }
  :root {
    --nav-h: 108px;
    --nav-logo-size: 230px;
    --nav-logo-size-scrolled: 64px;
    --footer-logo-size: 230px;
  }
}

/* =============================================================
   7. Hero — mouse-reactive gradient (signature effect)
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
  overflow: clip;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle 620px at var(--mx, 50%) var(--my, 32%), rgba(200,255,0,0.16) 0%, transparent 60%),
    radial-gradient(circle 900px at calc(var(--mx, 50%) + 18%) calc(var(--my, 32%) + 22%), rgba(200,255,0,0.07) 0%, transparent 65%),
    var(--bg);
  filter: blur(10px);
  transition: background .5s ease-out;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.hero .eyebrow { margin-bottom: 1.6rem; }
.hero-title {
  font-size: clamp(2.6rem, 8.4vw, 6.2rem);
  line-height: 0.98;
}
.hero-title span {
  display: block;
  overflow: hidden;
}
.hero-title span em {
  font-style: normal;
  display: inline-block;
  transition: color .4s var(--ease-out);
}
.hero-title span:nth-child(2) em { color: var(--lime); }
.hero-sub {
  margin-top: 1.8rem;
  max-width: 42rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text);
}
.hero-actions {
  margin-top: 2.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
}

/* =============================================================
   8. Manifesto
   ============================================================= */
.manifesto {
  text-align: center;
}
.manifesto-inner {
  max-width: 54rem; margin-inline: auto;
}
.manifesto h2 {
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  margin-top: 1rem;
}
.manifesto p {
  margin-top: 1.6rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text);
  max-width: 44rem;
  margin-inline: auto;
}

/* =============================================================
   9. Values
   ============================================================= */
.values-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.value-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.value-num {
  font-family: var(--sans); font-weight: 700;
  color: var(--text-mute);
  font-size: .95rem;
}
.value-name {
  font-family: var(--sans); font-weight: 700; color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.value-desc {
  margin-top: .4rem;
  color: var(--text-mute);
  max-width: 46rem;
  font-size: .98rem;
}

@media (min-width: 720px) {
  .value-row { grid-template-columns: 90px 1fr; }
}

/* =============================================================
   10. Services
   ============================================================= */
.services-grid {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.service-card {
  position: relative;
  background: var(--bg);
  padding: 2rem 1.7rem;
  transition: background .4s var(--ease-out), color .4s var(--ease-out);
}
.service-card h3 {
  font-family: var(--sans); font-weight: 700; font-size: 1.12rem;
  color: var(--white);
  transition: color .4s var(--ease-out);
}
.service-card p {
  margin-top: .7rem;
  font-size: .93rem;
  color: var(--text-mute);
  transition: color .4s var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute; top: 1.7rem; right: 1.7rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-bounce);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    background: var(--lime);
  }
  .service-card:hover h3 { color: var(--bg); }
  .service-card:hover p { color: rgba(10,10,10,0.72); }
  .service-card:hover::before { opacity: 0; }
}

.services-note {
  margin-top: 2rem;
  font-size: .93rem;
  color: var(--text-mute);
  border-left: 2px solid var(--lime);
  padding-left: 1rem;
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   11. Work — accordion reels (native <details>, works with zero JS)
   ============================================================= */
.work-list {
  border-top: 1px solid var(--line-soft);
}
.work-row {
  border-bottom: 1px solid var(--line-soft);
}
.work-row-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.9rem;
  list-style: none;
  cursor: pointer;
}
.work-row-head::-webkit-details-marker { display: none; }
.work-row-head::marker { content: ""; }
.work-row-left {
  display: flex; align-items: baseline; gap: 1.4rem;
}
.work-label {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  color: var(--white);
  transition: color .3s var(--ease-out);
}
.work-desc {
  color: var(--text-mute);
  font-size: .95rem;
  display: none;
}
.work-play {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), transform .5s var(--ease-out);
}
.work-play svg { width: 14px; height: 14px; fill: var(--white); transition: fill .3s var(--ease-out); }
.work-row-head:hover .work-label { color: var(--lime); }
.work-row-head:hover .work-play { background: var(--lime); border-color: var(--lime); }
.work-row-head:hover .work-play svg { fill: var(--bg); }
.work-row[open] .work-play { transform: rotate(90deg); }

.work-panel-inner {
  padding-bottom: 2rem;
}
.work-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
}
.work-video-wrap video {
  width: 100%; height: 100%; object-fit: contain; background: #000;
}
.work-hint {
  margin-top: .6rem;
  font-size: .78rem;
  color: var(--text-mute);
}

@media (min-width: 720px) {
  .work-desc { display: block; }
}

/* =============================================================
   12. Contact
   ============================================================= */
.contact-inner {
  display: grid;
  gap: 3.5rem;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}
.form-row {
  display: grid;
  gap: .5rem;
}
.form-row label {
  font-family: var(--sans); font-weight: 600; font-size: .82rem;
  color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .06em;
}
.form-row input {
  width: 100%;
  padding: .95rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--body); font-size: 1rem;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.form-row input::placeholder { color: var(--text-mute); }
.form-row input:focus { border-color: var(--lime); background: var(--bg); outline: none; }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-cta {
  margin-top: .5rem;
  width: 100%;
  text-align: center;
  justify-content: center;
  white-space: normal;
  line-height: 1.25;
  padding: 1.2rem 1.6rem;
  font-size: 1rem;
}

.form-status {
  font-size: .85rem;
  color: var(--text-mute);
  min-height: 1.2em;
}
.form-status[data-state="ok"] { color: var(--lime); }
.form-status[data-state="error"] { color: #ff6b6b; }

/* Compact "reach us directly" list */
.contact-methods-label {
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-mute);
  margin-bottom: 1rem;
}
.contact-methods {
  display: flex; flex-direction: column;
  gap: .1rem;
  border-top: 1px solid var(--line-soft);
}
.contact-method {
  display: flex; align-items: center; gap: .8rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  color: var(--bone);
  transition: color .3s var(--ease-out), gap .3s var(--ease-out);
}
.contact-method svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.contact-method:hover { color: var(--lime); gap: 1.1rem; }

@media (min-width: 960px) {
  .contact-inner { grid-template-columns: 1.2fr 1fr; }
}

/* =============================================================
   12b. Marquee divider — dynamic section break
   ============================================================= */
.marquee {
  position: relative;
  overflow: clip;
  background: var(--lime);
  padding-block: .85rem;
  border-block: 1px solid rgba(10,10,10,0.15);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll var(--marquee-speed) linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--bg);
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding-inline: 1.2rem;
}
.marquee-track span::after {
  content: "★";
  margin-left: 1.2rem;
  font-size: .7em;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   12c. Team — "Quiénes somos"
   ============================================================= */
.team-grid {
  display: grid;
  gap: 2.5rem;
}
.team-card {
  display: grid;
  gap: 1.4rem;
}
.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-name {
  font-family: var(--sans); font-weight: 900; font-size: 1.3rem;
  color: var(--white);
}
.team-role {
  margin-top: .25rem;
  font-family: var(--sans); font-weight: 600; font-size: .85rem;
  color: var(--lime);
  text-transform: uppercase; letter-spacing: .06em;
}
.team-bio {
  margin-top: .7rem;
  color: var(--text-mute);
  font-size: .96rem;
}

@media (min-width: 720px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   13. Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.4rem 3rem;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1.2rem;
}
.footer-logo img {
  height: var(--footer-logo-size); width: var(--footer-logo-size);
  object-fit: contain;
  opacity: .92;
}
.footer-note {
  font-size: .84rem;
  color: var(--text-mute);
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem;
  font-size: .84rem;
}
.footer-links a {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text-mute);
}
.footer-links a:hover { color: var(--lime); }
.footer-links svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* =============================================================
   14. Responsive base helpers
   ============================================================= */
@media (min-width: 540px) {
  :root { --gutter: clamp(2rem, 5vw, 3rem); }
}

/* =============================================================
   15. Reveal on scroll
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Defensive: elements with both .reveal and [data-split] must never
   get stuck invisible if the split-text handler fails to run. */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* =============================================================
   16. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash { animation-duration: .01s; }
  html { scroll-behavior: auto; }
}
