:root {
  --bg: #f7f7f4;
  --paper: #ffffff;
  --ink: #101010;
  --muted: #6e6e69;
  --line: #d9d9d3;
  --pad: clamp(24px, 5vw, 76px);
  --nav-height: 72px;
}


/* ========================================
   RESET / BASE
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
}

img {
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ========================================
   NAVIGATION
======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 50;

  height: var(--nav-height);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 var(--pad);

  background: rgba(247, 247, 244, 0.96);
  color: var(--ink);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 13px;
}

.nav-links a {
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.55;
}

.nav-cta {
  justify-self: end;
  font-size: 13px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}


/* ========================================
   LANGUAGE SWITCH
======================================== */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.lang-btn {
  appearance: none;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.48;
  cursor: pointer;
}

.lang-btn.active {
  opacity: 1;
  border-bottom: 1px solid currentColor;
}

.lang-switch span {
  opacity: 0.35;
}


/* ========================================
   GENERIC MEDIA
======================================== */

.media-section {
  position: relative;
  overflow: hidden;
  background: #111;
}

.media-fill {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.media-shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.10),
      rgba(0, 0, 0, 0.58)
    );
}

.media-shade.soft {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.06),
      rgba(0, 0, 0, 0.45)
    );
}


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

.hero {
  margin-top: var(--nav-height);

  height: calc(100svh - var(--nav-height));
  min-height: 648px;
}


/* VIDEO DEL HERO + FILTRO */

.hero .media-fill {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter:
    brightness(1.12)
    contrast(0.92)
    saturate(0.88);
}


/* OVERLAY DEL HERO */

.hero .media-shade {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.02) 45%,
      rgba(0, 0, 0, 0.38) 100%
    );

  z-index: 1;
}


/* TEXTO DEL HERO A LA DERECHA */

.hero-copy {
  position: absolute;

  left: auto;
  right: var(--pad);

  bottom: clamp(68px, 9vh, 110px);

  width: min(760px, 48vw);
  max-width: 760px;

  color: white;

  text-align: left;

  z-index: 3;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.15em;

  margin: 0 0 26px;

  color: var(--muted);
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  font-size: clamp(64px, 8vw, 138px);

  line-height: 0.90;

  letter-spacing: -0.06em;

  margin: 0;

  font-weight: 600;
}

.hero-sub {
  font-size: clamp(18px, 1.7vw, 26px);

  max-width: 560px;

  margin: 28px 0 0;

  line-height: 1.35;
}

.scroll-note {
  position: absolute;

  right: var(--pad);
  bottom: 28px;

  color: rgba(255, 255, 255, 0.60);

  font-size: 10px;

  letter-spacing: 0.14em;

  z-index: 3;
}


/* ========================================
   GLOBAL SECTION SPACING
======================================== */

.section-pad {
  padding:
    clamp(90px, 12vw, 190px)
    var(--pad);
}


/* ========================================
   STATEMENT
======================================== */

.statement {
  background: var(--paper);
}

.statement h2 {
  max-width: 1350px;

  font-size: clamp(48px, 7.2vw, 112px);

  line-height: 0.98;

  letter-spacing: -0.055em;

  margin: 0;

  font-weight: 500;
}


/* ========================================
   FULL VISUAL
======================================== */

.full-visual {
  position: relative;
  background: #ddd;
}

.full-visual:not(.cinematic-visual) img {
  width: 100%;

  min-height: 56vw;
  max-height: 92vh;

  object-fit: cover;
}


/* ========================================
   CINEMATIC IMAGE
   FULL WIDTH / ORIGINAL PROPORTION
======================================== */

.cinematic-visual {
  width: 100%;

  margin: 0;
  padding: 0;

  background: #000;

  overflow: visible;
}

.full-visual.cinematic-visual img {
  display: block;

  width: 100%;
  height: auto;

  min-height: 0;
  max-height: none;

  object-fit: initial;

  margin: 0;
  padding: 0;
}


/* ========================================
   SPLIT SECTION
======================================== */

.split {
  display: grid;

  grid-template-columns: 1.3fr 0.7fr;

  gap: 10vw;

  background: var(--bg);

  align-items: start;
}

.split h2,
.editorial-copy h2,
.metric-title h2,
.final-copy h2 {
  font-size: clamp(44px, 6vw, 94px);

  line-height: 0.98;

  letter-spacing: -0.055em;

  margin: 0;

  font-weight: 500;
}

.copy-narrow {
  padding-top: 90px;
}

.copy-narrow p,
.editorial-copy > p:last-child {
  font-size: 19px;

  line-height: 1.55;

  color: #2b2b29;

  max-width: 520px;

  margin: 0;
}


/* ========================================
   TRAINING MEDIA
======================================== */

.tall-media {
  height: min(82vh, 980px);

  min-height: 620px;
}

.floating-card {
  position: absolute;

  left: var(--pad);
  bottom: var(--pad);

  width: min(360px, calc(100vw - 48px));

  background: rgba(255, 255, 255, 0.94);

  padding: 28px;

  backdrop-filter: blur(12px);

  border-radius: 18px;

  z-index: 3;
}

.floating-card span,
.index {
  font-size: 11px;

  color: var(--muted);
}

.floating-card h3 {
  font-size: 34px;

  margin: 44px 0 8px;

  letter-spacing: -0.04em;
}

.floating-card p {
  margin: 0;

  color: #555;

  line-height: 1.45;
}


/* ========================================
   TRIPTYCH
======================================== */

.triptych {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 36px;

  background: var(--paper);
}

.triptych article {
  border-top: 1px solid var(--line);

  padding-top: 20px;

  min-height: 320px;

  display: flex;
  flex-direction: column;
}

.triptych h3 {
  font-size: clamp(38px, 4vw, 64px);

  letter-spacing: -0.05em;

  margin: auto 0 16px;

  font-weight: 500;
}

.triptych p {
  max-width: 360px;

  line-height: 1.5;

  color: var(--muted);
}


/* ========================================
   EDITORIAL SECTION
======================================== */

.editorial-grid {
  display: grid;

  grid-template-columns: 1fr 0.8fr;

  gap: 8vw;

  align-items: center;
}

.editorial-grid img {
  width: 100%;

  aspect-ratio: 4 / 5;

  object-fit: cover;

  border-radius: 22px;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.07);
}

.editorial-copy h2 {
  margin-bottom: 36px;
}


/* ========================================
   METRICS / ANALYTICS
======================================== */

.metric-section {
  background: #111;

  color: white;
}

.metric-title .eyebrow {
  color: #8a8a84;
}

.metric-title {
  max-width: 920px;

  margin-bottom: 110px;
}

.metric-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid #323232;
}

.metric-grid div {
  min-height: 190px;

  padding:
    24px
    18px
    22px
    0;

  border-bottom: 1px solid #323232;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.metric-grid div:nth-child(3n + 2),
.metric-grid div:nth-child(3n + 3) {
  padding-left: 28px;

  border-left: 1px solid #323232;
}

.metric-grid strong {
  font-size: 11px;

  font-weight: 500;

  color: #777;
}

.metric-grid span {
  font-size: clamp(24px, 2.5vw, 38px);

  letter-spacing: -0.035em;
}


/* ========================================
   INTERFACE VISUAL
======================================== */

.interface-visual {
  overflow: hidden;
}

.interface-visual img {
  min-height: 72vh;

  object-fit: cover;
}

.caption-overlay {
  position: absolute;

  left: var(--pad);
  bottom: 24px;

  font-size: 10px;

  letter-spacing: 0.14em;

  background: rgba(255, 255, 255, 0.90);

  padding: 10px 12px;

  border-radius: 8px;
}


/* ========================================
   PLATFORM STATEMENT
======================================== */

.compact-statement h2 {
  max-width: 1160px;
}


/* ========================================
   TECHNOLOGY STRIP
======================================== */

.tech-strip {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);

  background: var(--paper);
}

.tech-strip div {
  padding: 28px 22px;

  font-size: 10px;

  letter-spacing: 0.12em;

  border-right: 1px solid var(--line);
}

.tech-strip div:last-child {
  border-right: none;
}


/* ========================================
   FINAL MEDIA
======================================== */

.final-media {
  height: 80vh;

  min-height: 680px;
}

.final-copy {
  position: absolute;

  left: var(--pad);
  bottom: var(--pad);

  color: white;

  z-index: 3;
}

.final-copy h2 {
  font-size: clamp(58px, 8vw, 126px);
}


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

.footer {
  padding-top: 70px;
  padding-bottom: 70px;

  display: grid;

  grid-template-columns: 1fr 1fr;

  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 28px;
}

.footer p {
  color: var(--muted);
}

.footer-meta {
  justify-self: end;

  text-align: right;

  display: flex;

  flex-direction: column;

  gap: 10px;

  color: var(--muted);

  font-size: 12px;
}


/* ========================================
   REVEAL ANIMATION
======================================== */

.reveal {
  opacity: 0;

  transform: translateY(34px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;

  transform: none;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

  :root {
    --nav-height: 68px;
  }

  .nav {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 16px;
  }


  /* HERO */

  .hero {
    margin-top: var(--nav-height);

    height: calc(100svh - var(--nav-height));

    min-height: 620px;
  }

  .hero-copy {
    left: var(--pad);

    right: var(--pad);

    width: auto;

    max-width: 680px;

    bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(58px, 11vw, 96px);
  }

  .hero-sub {
    max-width: 520px;
  }


  /* LAYOUT */

  .split,
  .editorial-grid {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  .copy-narrow {
    padding-top: 0;
  }


  /* TRIPTYCH */

  .triptych {
    grid-template-columns: 1fr;
  }

  .triptych article {
    min-height: 220px;
  }


  /* METRICS */

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid div:nth-child(3n + 2),
  .metric-grid div:nth-child(3n + 3) {
    border-left: none;

    padding-left: 0;
  }

  .metric-grid div:nth-child(even) {
    border-left: 1px solid #323232;

    padding-left: 22px;
  }


  /* TECHNOLOGY */

  .tech-strip {
    grid-template-columns: 1fr 1fr;
  }

  .tech-strip div {
    border-bottom: 1px solid var(--line);
  }


  /* FOOTER */

  .footer {
    grid-template-columns: 1fr;

    gap: 42px;
  }

  .footer-meta {
    justify-self: start;

    text-align: left;
  }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 560px) {

  :root {
    --nav-height: 66px;
  }

  .nav {
    height: var(--nav-height);
  }

  .nav-cta {
    display: none;
  }

  .nav-actions {
    gap: 0;
  }


  /* HERO */

  .hero {
    margin-top: var(--nav-height);

    height: calc(100svh - var(--nav-height));

    min-height: 610px;
  }

  .hero-copy {
    left: 24px;

    right: 24px;

    bottom: 72px;

    max-width: none;
  }

  .hero h1 {
    font-size: 58px;

    line-height: 0.92;
  }

  .hero-sub {
    font-size: 18px;

    max-width: 420px;
  }

  .scroll-note {
    right: 24px;

    bottom: 24px;
  }


  /* SECTIONS */

  .section-pad {
    padding-top: 86px;

    padding-bottom: 86px;
  }


  /* TYPOGRAPHY */

  .statement h2 {
    font-size: 46px;
  }

  .split h2,
  .editorial-copy h2,
  .metric-title h2 {
    font-size: 46px;
  }


  /* METRICS */

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid div:nth-child(even) {
    border-left: none;

    padding-left: 0;
  }


  /* TECHNOLOGY */

  .tech-strip {
    grid-template-columns: 1fr;
  }


  /* FINAL */

  .final-copy h2 {
    font-size: 54px;
  }


  /* EDITORIAL */

  .editorial-grid img {
    border-radius: 16px;
  }
}