/* ==========================================================================
   OPNÅ — opnastudio.com
   Tokens transcribed from Figma: OPNA PROJECT · Desktop 3:335 / Mobile 3:121
   ========================================================================== */

/* --- Space Grotesk y Geist: autoalojadas (sin CDN de Google, RGPD). --- */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-400-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-400-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Bugrino: display licenciada, autoalojada. Los archivos van en /fonts. --- */
@font-face {
  font-family: "Bugrino";
  src: url("fonts/Bugrino-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --c-black:      #000000;
  --c-white:      #ffffff;
  --c-grey-05:    #f5f5f5;   /* claim + stance ground */
  --c-grey-10:    #ececec;   /* how-we-work ground   */
  --c-tone:       #e6e4e1;   /* media placeholder    */
  --c-menu:       rgba(170, 169, 169, .25);
  --c-rule:       rgba(0, 0, 0, 1);

  /* type */
  --f-display:    "Bugrino", "Space Grotesk", system-ui, sans-serif; /* títulos y claims */
  --f-body:       "Space Grotesk", system-ui, sans-serif;            /* subtítulos y textos */
  --f-link:       "Geist", "Space Grotesk", system-ui, sans-serif;   /* menú */

  /* scale — desktop */
  --t-claim:      64px;   --lh-claim:   60px;   /* Big Caption      */
  --t-caption-md: 40px;   --lh-caption-md: 38px;/* Medium Caption   */
  --t-caption-sm: 32px;   --lh-caption-sm: 35px;/* Small Caption    */
  --t-label:      24px;   --lh-label:   26px;   /* Título Apartado  */
  --t-lead:       24px;   --lh-lead:    26px;   /* Párrafo grande   */
  --t-body:       20px;   --lh-body:    22px;   /* Párrafo Apartado */
  --t-16:         16px;   --lh-16:      18px;   /* Paragraph 1      */
  --t-18:         18px;   --lh-18:      20px;   /* Header 3         */
  --t-12:         12px;   --lh-12:      13px;   /* Párrafo Esquema  */

  /* layout */
  --gutter:       25px;
  --maxw:         1280px;
  --rule-w:       .75px;
}

/* --------------------------------- reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--t-16);
  line-height: var(--lh-16);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.is-hidden { display: none !important; }

/* --------------------------- shared primitives --------------------------- */
.label {
  font-family: var(--f-body);
  font-size: var(--t-label);
  line-height: var(--lh-label);
  font-weight: 400;
}
.label--invert { color: var(--c-white); }

.lead {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
}

.caption-sm { font-size: var(--t-caption-sm); line-height: var(--lh-caption-sm); font-weight: 400; }
.caption-md { font-size: var(--t-caption-md); line-height: var(--lh-caption-md); font-weight: 400; }

/* media wrapper: holds the designed box even before the asset lands */
.media { position: relative; overflow: hidden; background: var(--c-tone); }
.media__el { width: 100%; height: 100%; object-fit: cover; }
/* encuadre: 'cover' recorta por el centro. Sube el segundo valor para
   mostrar la parte alta del plano (0% = borde superior). */
.media__el--top { object-position: 50% 12%; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ================================== menu ================================== */
.menu {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--c-menu);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 5px var(--gutter);
}
.menu__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 39px;
}
.menu__mark img { width: 25.91px; height: 32px; aspect-ratio: 289 / 356.932; }
.menu__links { display: flex; gap: 37px; }
.menu__links a {
  font-family: var(--f-link);
  font-size: 13px; line-height: .95;
  letter-spacing: -.39px;
  color: var(--c-white);
  padding: 4px 0;
  transition: opacity .25s ease;
}
.menu__links a:hover { opacity: .6; }

/* ================================== hero ================================== */
.hero { position: relative; min-height: 834px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media .media__el { position: absolute; inset: 0; }
/* scrim — flat 45% black over the media, keeps the white type legible */
.hero__media::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, .45);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  min-height: 834px;
  padding: 300px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.hero__claim {
  width: 578px; max-width: 50%;
  font-size: var(--t-caption-sm); line-height: var(--lh-caption-sm);
  color: var(--c-white); opacity: .8;
}
.hero__logo {
  width: 478px; max-width: 44%;
  opacity: .8;
}
.hero__logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1236 / 474.138;   /* Figma exporta preserveAspectRatio="none":
                                     sin esto el SVG colapsa a altura cero */
}

/* ================================= claims ================================= */
.claim {
  padding: 100px var(--gutter);
  display: flex; align-items: center;
}
.claim > * { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.claim--grey  { background: var(--c-grey-05); }
.claim--white { background: var(--c-white); }
.claim__text {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-claim); line-height: var(--lh-claim);
}
.claim--mobile-only { display: none; }

/* ================================= stance ================================= */
.stance {
  background: var(--c-grey-05);
  padding: 75px var(--gutter);
  display: flex; align-items: center; gap: 83px;
  max-width: var(--maxw); margin: 0 auto;
}
.stance__media { width: 533px; height: 756px; flex: none; }
.stance__body {
  width: 609px; flex: none;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 730px;
  padding: 15px 0;
  border-top: var(--rule-w) solid var(--c-rule);
  border-bottom: var(--rule-w) solid var(--c-rule);
}
.stance__copy { max-width: 598px; }
.stance__copy p { font-size: var(--t-body); line-height: var(--lh-body); }
.stance__copy p + p { margin-top: var(--lh-body); }

/* ============================== full-bleed bands ========================== */
.band { width: 100%; }
.band--01 { height: auto; aspect-ratio: 1920 / 1548; }
.band--02 { height: auto; aspect-ratio: 2560 / 1750; }
.band .media__el { position: absolute; inset: 0; }
.band--02 .media__el { object-position: 50% 0; }

/* =============================== what we do =============================== */
.whatwedo {
  background: var(--c-white);
  padding: 75px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: flex-end; gap: 80px;
}
.whatwedo__media { width: 532px; height: 602px; flex: none; }
.whatwedo__body { width: 610px; flex: none; }
.services { margin-top: 109px; display: flex; flex-direction: column; gap: 35px; }
.service__num {
  border-bottom: 1px solid var(--c-rule);
  font-size: var(--t-12); line-height: var(--lh-12);
  padding-bottom: 2px;
}
.service__row {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 10px 0 0 93px;
}
.service__title { width: 195px; flex: none; font-size: var(--t-16); line-height: 1; font-weight: 400; }
.service__desc  { width: 299px; flex: none; font-size: var(--t-12); line-height: var(--lh-12); }

/* ========================= more yourself, at speed ======================== */
.speed {
  background: var(--c-white);
  padding: 75px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.speed__left { width: 303px; flex: none; display: flex; flex-direction: column; gap: 186px; }
.speed__small { width: 300px; height: 340px; }
.speed__large { width: 532px; height: 602px; flex: none; }

/* =============================== how we work ============================== */
.howwework {
  background: var(--c-grey-10);
  padding: 100px var(--gutter);
}
.howwework > * { max-width: var(--maxw); margin-inline: auto; }
.steps {
  margin-top: 109px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 29px;
}
.step {
  border-left: var(--rule-w) solid var(--c-rule);
  padding: 0 10px;
  display: flex; flex-direction: column; gap: 130px;
}
.step__num { font-size: 40px; line-height: 38px; }
.step__title { font-size: var(--t-16); line-height: var(--lh-18); font-weight: 400; }
.step__desc  { margin-top: 12px; font-size: var(--t-12); line-height: var(--lh-12); }

/* =============================== generative =============================== */
.generative {
  background: var(--c-white);
  padding: 75px var(--gutter);
}
.generative > * { max-width: var(--maxw); margin-inline: auto; }
.generative__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
  padding: 15px 0;
}
.generative__head .lead { width: 609px; flex: none; }
.gallery { margin-top: 50px; display: flex; flex-direction: column; gap: 10px; }
.gallery__row {
  display: flex; align-items: flex-start; justify-content: space-between;
  min-height: 602px;
}
.gallery__item--lg { width: 532px; height: 602px; flex: none; }
.gallery__item--sm { width: 300px; height: 340px; flex: none; }

/* ================================= split ================================== */
.split {
  background: var(--c-white);
  padding: 120px var(--gutter);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
  max-width: var(--maxw); margin: 0 auto;
}
.split .lead { width: 656px; flex: none; }

/* =============================== who we are =============================== */
.who {
  background: var(--c-white);
  padding: 100px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
}
.who__intro { width: 536px; flex: none; }
.who__intro .caption-sm { margin-top: 110px; }
.who__cards { display: flex; gap: 32px; }
.card {
  width: 311px; flex: none;
  border-left: var(--rule-w) solid var(--c-rule);
  padding: 0 10px;
}
.card__name { font-size: var(--t-16); line-height: var(--lh-18); font-weight: 400; }
.card__body { margin-top: 20px; width: 300px; max-width: 100%; }
.card__body p { font-size: var(--t-12); line-height: 1.2; }
.card__body p + p { margin-top: 1em; }
.card__logo { margin-top: 37px; width: 290.25px; height: 77.5px; object-fit: contain; object-position: left; opacity: .35; }

/* ============================ unmistakably yours ========================== */
.unmistakably {
  background: var(--c-white);
  padding: 75px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
}
.unmistakably__media { width: 300px; height: 340px; flex: none; }
.unmistakably .claim__text { width: 655px; flex: none; }

/* ================================= footer ================================= */
.footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: 75px var(--gutter);
}
.footer > * { max-width: var(--maxw); margin-inline: auto; }
.footer__top { display: flex; align-items: flex-start; gap: 60px; }
.footer__cols { display: flex; gap: 115px; flex: 1; justify-content: flex-end; }
.footer__cta { width: 300px; flex: none; }
.footer__pitch { font-size: var(--t-18); line-height: var(--lh-18); }
.footer__button {
  margin-top: 17px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-16); line-height: var(--lh-18);
  transition: gap .3s cubic-bezier(.22,.61,.36,1);
}
.footer__button:hover { gap: 18px; }
.footer__button img { width: 29px; height: 6px; }
.footer__nav { display: flex; gap: 90px; }
.footer__nav li + li { margin-top: 7px; }
.footer__nav a { font-size: var(--t-16); line-height: var(--lh-18); transition: opacity .25s ease; }
.footer__nav a:hover { opacity: .6; }
.footer__logo {
  margin-top: 25px;
  max-width: none;
  margin-inline: calc(var(--gutter) * -1);
  opacity: .1;
  overflow: hidden;
}
.footer__logo img { width: 100%; height: auto; aspect-ratio: 1236 / 474.138; display: block; }

/* ---- fondo a sangre: el color cubre el viewport, el contenido sigue a --maxw ---- */
.stance, .whatwedo, .speed, .split, .who, .unmistakably {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}

/* ---- ritmo de fondos: blanco / gris / negro ---- */
.whatwedo { background: var(--c-grey-10); }
.split    { background: var(--c-grey-10); }

/* ------------------ what we do: dos capacidades ------------------ */
.services__lead {
  margin-top: 14px;
  font-size: var(--t-12);
  line-height: var(--lh-12);
}
.capability { margin-top: 55px; }
.capability:first-of-type { margin-top: 70px; }

.capability__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: var(--rule-w) solid var(--c-rule);
}
.capability__name {
  font-size: var(--t-16);
  line-height: 1;
}
.capability__gloss {
  font-size: var(--t-12);
  line-height: var(--lh-12);
}

/* el margen superior lo lleva ahora .capability */
.capability .services { margin-top: 28px; }

/* ==========================================================================
   Fluid step — between 1280 and 900 the desktop layout is scaled, not rebuilt
   ========================================================================== */
@media (max-width: 1320px) {
  .stance__media, .whatwedo__media, .speed__large, .gallery__item--lg { width: 42vw; height: calc(42vw * 1.131); }
  .stance__media { height: calc(42vw * 1.418); }
  .stance__body, .whatwedo__body, .generative__head .lead { width: 48vw; }
  .speed__left { width: 24vw; }
  .speed__small, .gallery__item--sm, .unmistakably__media { width: 24vw; height: calc(24vw * 1.133); }
  .hero__claim { width: 45vw; }
  .who__intro { width: 42vw; }
  .split .lead { width: 51vw; }
  .footer__cols { gap: 6vw; }
  .footer__nav { gap: 6vw; }
}

/* ==========================================================================
   Mobile — Figma frame 3:121 (375 wide)
   ========================================================================== */
@media (max-width: 860px) {
  :root {
    --t-claim: 24px;      --lh-claim: 26px;
    --t-caption-md: 24px; --lh-caption-md: 26px;
    --t-caption-sm: 20px; --lh-caption-sm: 22px;
    --t-label: 18px;      --lh-label: 20px;
    --t-lead: 16px;       --lh-lead: 18px;
    --t-body: 16px;       --lh-body: 18px;
  }

  .menu { padding: 11px var(--gutter); }
  .menu__inner { min-height: 25px; }
  .menu__mark img { width: 20.24px; height: 25px; }
  .menu__links { gap: 37px; }

  /* hero */
  .hero, .hero__inner { min-height: 550px; }
  .hero__inner {
    padding: 0 34px 28px;
    flex-direction: column; align-items: flex-start; justify-content: flex-end;
    gap: 18px;
  }
  .hero__claim { width: 100%; max-width: none; font-size: 16px; line-height: 18px; }
  .hero__logo { width: 100%; max-width: 306px; }
  .hero__logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1236 / 474.138;   /* Figma exporta preserveAspectRatio="none":
                                     sin esto el SVG colapsa a altura cero */
}

  /* claims */
  .claim { padding: 25px var(--gutter); }
  .claim--mobile-only { display: flex; }
  .speed__caption { display: none; }

  /* stance — image above, copy below, rules top & bottom */
  .stance {
    flex-direction: column; align-items: center; gap: 25px;
    padding: 25px;
  }
  .stance__media { width: 300px; max-width: 100%; height: 340px; }
  .stance__body { width: 100%; max-width: 300px; min-height: 0; padding: 10px 0; gap: 28px; }
  .stance__body .label { margin-bottom: 0; }
  .stance__copy p + p { margin-top: 1em; }

  /* bands */
  .band--01 { height: auto; aspect-ratio: 1920 / 1548; }
  .band--02 { height: auto; aspect-ratio: 2560 / 1750; }

  /* what we do */
  .whatwedo { flex-direction: column; align-items: center; gap: 52px; padding: 25px 0; }
  .whatwedo__media { width: 325px; max-width: calc(100% - 50px); height: 368px; }
  .whatwedo__body { width: 302px; max-width: calc(100% - 50px); }
  .services { margin-top: 35px; gap: 25px; }
  .capability { margin-top: 35px; }
  .capability:first-of-type { margin-top: 35px; }
  .capability .services { margin-top: 20px; }
  .service__row { flex-direction: column; gap: 5px; padding: 10px 0 0; }
  .service__title, .service__desc { width: 100%; }

  /* speed */
  .speed { flex-direction: column; align-items: center; gap: 25px; padding: 25px; }
  .speed__left { width: 100%; max-width: 319px; gap: 25px; }
  .speed__small { display: none; }
  .speed__large { width: 100%; max-width: 319px; height: 394px; }

  /* how we work */
  .howwework { padding: 25px; }
  .steps { grid-template-columns: 1fr; gap: 15px; margin-top: 35px; }
  .step { gap: 24px; }
  .step__num { font-size: 24px; line-height: 24px; }

  /* generative — horizontal scroller, per mobile frame 3:154 */
  .generative { padding: 75px 0; }
  .generative__head {
    flex-direction: column; gap: 20px;
    padding: 0 var(--gutter);
  }
  .generative__head .lead { width: 100%; }
  .gallery {
    margin-top: 35px;
    flex-direction: row; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__row { display: contents; }
  .gallery__item--lg, .gallery__item--sm {
    width: 325px; height: 370px; scroll-snap-align: start;
  }

  /* split / who */
  .split { flex-direction: column; gap: 20px; padding: 75px var(--gutter); }
  .split .lead { width: 100%; }
  .who { flex-direction: column; gap: 50px; padding: 75px var(--gutter); }
  .who__intro { width: 100%; }
  .who__intro .caption-sm { margin-top: 35px; }
  .who__cards { flex-direction: column; gap: 34px; }
  .card { width: 100%; }
  .card__body { width: 100%; }

  /* unmistakably */
  .unmistakably { flex-direction: column; align-items: center; gap: 25px; padding: 25px; }
  .unmistakably__media { width: 319px; max-width: 100%; height: 394px; }
  .unmistakably .claim__text { width: 100%; max-width: 325px; }

  /* footer */
  .footer { padding: 50px var(--gutter); }
  .footer__top { flex-direction: column; gap: 35px; }
  .footer__cols { flex-direction: column; gap: 35px; justify-content: flex-start; }
  .footer__cta { width: 100%; }
  .footer__nav { gap: 60px; }
  .footer__logo { margin-top: 45px; }
}
