.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}

.site-header__inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 2px;
}

.brand__mark span {
  width: 7px;
  aspect-ratio: 1;
  background: currentColor;
}

.brand__mark span:last-child {
  background: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right 180ms var(--ease);
}

.site-nav a:hover::after {
  right: 0;
}

/* HERO */

.hero {
  min-height: 100svh;
  min-height: 100dvh;
  border-bottom: 1px solid var(--color-line);
}

.hero__grid {
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: clamp(108px, 13svh, 132px);
  padding-bottom: clamp(22px, 3svh, 32px);

  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: var(--grid-gap);
  row-gap: clamp(20px, 3svh, 36px);
}

.hero__eyebrow {
  grid-column: 1 / 5;
  grid-row: 1;
}

.hero__title {
  grid-column: 1 / 9;
  grid-row: 2;
  align-self: center;
  margin: 0;

  font-size: clamp(4.35rem, min(7.7vw, 14svh), 8.75rem);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 700;
}

.hero__title span {
  display: block;
  width: fit-content;
}

.hero__title span:last-child {
  position: relative;
}

.hero__title span:last-child::after {
  content: "";
  position: absolute;
  right: -.3em;
  bottom: .13em;
  width: .16em;
  aspect-ratio: 1;
  background: var(--color-accent);
}

.hero__support {
  grid-column: 9 / 13;
  grid-row: 2;
  align-self: center;
  justify-self: end;

  width: 100%;
  max-width: 390px;

  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5svh, 28px);
}

.hero__support p {
  margin: 0;
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -.025em;
}

.hero__footer {
  grid-column: 1 / 13;
  grid-row: 3;

  display: flex;
  align-items: end;
  justify-content: flex-end;

  padding-top: clamp(14px, 2svh, 24px);
  border-top: 1px solid var(--color-line);
}

.hero__scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.hero__scroll-icon {
  position: relative;
  width: 10px;
  height: 15px;
  flex: 0 0 10px;
}

.hero__scroll-icon::before,
.hero__scroll-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero__scroll-icon::before { top: 0; }
.hero__scroll-icon::after { top: 6px; opacity: .6; }

/* Tablet */
@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    padding-top: clamp(96px, 11svh, 112px);
  }

  .hero__eyebrow {
    grid-column: 1 / 5;
  }

  .hero__title {
    grid-column: 1 / 9;
    font-size: clamp(4rem, min(10vw, 13svh), 6.75rem);
  }

  .hero__support {
    grid-column: 5 / 9;
    align-self: end;
    margin-bottom: clamp(6px, 1.5svh, 16px);
  }

  .hero__footer {
    grid-column: 1 / 9;
  }
}

/* Mobile.
   780px is intentional: on a 1920px desktop, 250% zoom leaves ~768 CSS px,
   so the layout now reaches the mobile structure around that point too. */
@media (max-width: 780px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero__grid {
    min-height: 100svh;
    min-height: 100dvh;

    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr) auto auto;

    padding-top: clamp(78px, 9.5svh, 88px);
    padding-bottom: clamp(18px, 2.5svh, 24px);
    row-gap: clamp(16px, 2.5svh, 24px);
  }

  .hero__eyebrow {
    grid-column: 1 / 5;
    grid-row: 1;
  }

  .hero__title {
    grid-column: 1 / 5;
    grid-row: 2;
    align-self: center;

    font-size: clamp(2.9rem, min(15vw, 10.5svh), 5.35rem);
  }

  .hero__support {
    grid-column: 1 / 5;
    grid-row: 3;
    align-self: start;
    justify-self: start;

    max-width: 360px;
    margin: 0;
    gap: 16px;
  }

  .hero__support p {
    font-size: clamp(1rem, 4.4vw, 1.12rem);
  }

  .hero__footer {
    grid-column: 1 / 5;
    grid-row: 4;

    gap: 16px;
    padding-top: 14px;
    font-size: 10px;
  }

  .hero__scroll-cue {
    gap: 8px;
  }
}


/* Brandmark layer
   Geometría exacta reconstruida desde el isologo real.
   No participa del layout y se recorta según el dispositivo. */

.hero {
  position: relative;
  overflow: clip;
}

.hero__grid {
  position: relative;
  isolation: isolate;

  --mark-top: clamp(88px, 10.5svh, 110px);
  --mark-bottom: clamp(58px, 7svh, 78px);
}

.hero__brandmark {
  position: absolute;
  z-index: 10;

  top: var(--mark-top);
  right: clamp(-7rem, -5vw, -3.5rem);

  width: auto;
  height: calc(100% - var(--mark-top) - var(--mark-bottom));

  pointer-events: none;
  user-select: none;
  overflow: visible;

  fill: var(--color-text);
  opacity: .052;
}

.hero__eyebrow,
.hero__title,
.hero__support,
.hero__footer {
  position: relative;
  z-index: 20;
}

.hero__brandmark-part {
  transform-box: fill-box;
  transform-origin: center;
}

.hero__brandmark-part--slash {
  animation: hero-mark-slash-in 900ms cubic-bezier(.2,.72,.2,1) both;
}

.hero__brandmark-part--pixels {
  animation: hero-mark-pixels-in 820ms cubic-bezier(.2,.72,.2,1) 120ms both;
}

@keyframes hero-mark-slash-in {
  from {
    opacity: 0;
    transform: translate(-3.5%, -2.5%) scale(.988);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes hero-mark-pixels-in {
  from {
    opacity: 0;
    transform: translate(5%, 4%) scale(.97);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* Tablet: mismo símbolo, contenido dentro de la zona útil del Hero. */
@media (max-width: 920px) {
  .hero__grid {
    --mark-top: clamp(78px, 9svh, 96px);
    --mark-bottom: clamp(54px, 6.5svh, 70px);
  }

  .hero__brandmark {
    right: clamp(-9rem, -12vw, -5rem);
    opacity: .046;
  }
}

/* Mobile: el isologo conserva escala suficiente para leerse.
   Su centro visual acompaña el centro del H1 y el recorte sucede a la derecha,
   en lugar de esconder casi todo el símbolo fuera del viewport. */
@media (max-width: 780px) {
  .hero__grid {
    --mark-top: clamp(72px, 8.5svh, 84px);
    --mark-bottom: clamp(48px, 6svh, 62px);
  }

  .hero__brandmark {
    top: 50%;
    right: clamp(-8.5rem, -25vw, -5.5rem);

    width: auto;
    height: min(58svh, 500px);

    transform: translateY(-50%);
    opacity: .042;
  }
}

/* Teléfonos angostos: no seguimos expulsando el símbolo hacia afuera.
   Reducimos un poco su escala y mantenemos visible aproximadamente
   la mitad izquierda del isologo. */
@media (max-width: 430px) {
  .hero__brandmark {
    right: clamp(-7.25rem, -29vw, -5.5rem);
    height: min(54svh, 430px);
    opacity: .04;
  }
}

/* Pantallas bajas: el H1 sube visualmente dentro del Hero.
   El isologo acompaña esa misma lectura sin invadir descripción/footer. */
@media (max-width: 780px) and (max-height: 700px) {
  .hero__brandmark {
    top: 47%;
    height: min(52svh, 390px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brandmark-part {
    animation: none !important;
  }
}

/* BUTTONS */

.button {
  min-height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 11px 16px;

  border: 1px solid transparent;

  font-size: .84rem;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;

  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button > span {
  transition: transform 180ms ease;
}

.button:hover > span {
  transform: translate(2px, -2px);
}

.button--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.button--secondary {
  min-height: 46px;
  padding-inline: 18px;

  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

.button--secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.button--ghost {
  min-height: auto;

  padding: 8px 0;

  border: 0;
  border-bottom: 1px solid currentColor;

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

/* PROJECTS */

.projects {
  padding-block: var(--section-pad-top) var(--section-pad-bottom);
}

.projects__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.projects__label {
  display: block;
}

.projects__intro-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projects__lead {
  margin: 0;

  font-size: clamp(1.9rem, 2.85vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 700;
}

.projects__sublead {
  margin: 0;

  color: var(--color-text-muted);

  font-size: clamp(.95rem, 1vw, 1.08rem);
  line-height: 1.4;
  letter-spacing: -.015em;
}

.projects__rule {
  width: 100%;
  height: 1px;
  display: block;

  margin: 26px 0 clamp(34px, 4.5svh, 52px);

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

.project-entry {
  display: flex;
  align-items: stretch;
  gap: clamp(34px, 4.4vw, 72px);
}

.project-entry__info {
  --brand-width: 410px;
  --content-width: 430px;

  width: 36%;
  min-width: 290px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding-top: clamp(8px, 1vw, 16px);
  padding-bottom: clamp(28px, 4svh, 44px);
}

.project-entry__brand {
  width: min(100%, var(--brand-width));
  min-height: 82px;

  display: flex;
  align-items: center;
  gap: 18px;

  padding: 12px 28px 12px 13px;

  border: 1px solid rgba(14, 14, 14, .12);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);

  box-shadow: 0 7px 18px rgba(0,0,0,.045);
}

.project-entry__brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;

  display: block;
  object-fit: contain;
}

.project-entry__brand span {
  font-size: clamp(1.05rem, 1.28vw, 1.42rem);
  line-height: 1.05;
  letter-spacing: .055em;
  font-weight: 700;
  text-transform: uppercase;
}

.project-entry--gps .project-entry__brand {
  background: #f7faf6;
}

.project-entry--gps .project-entry__brand-logo--gps {
  width: 72px;
  height: 44px;
}

.project-entry--agustina .project-entry__brand {
  background: #f3eee6;
}

.project-entry--agustina .project-entry__brand-logo--agustina {
  width: 60px;
  height: 60px;
}

.project-entry--agustina .project-entry__brand span {
  max-width: 15ch;
  letter-spacing: .01em;
  text-transform: none;
}

.project-entry--oz .project-entry__brand {
  border-color: transparent;
  background: #111;
  color: #f4efe5;
  box-shadow: 0 7px 18px rgba(0,0,0,.07);
}

.project-entry__details {
  width: min(100%, var(--content-width));
  max-width: var(--content-width);

  margin-top: clamp(48px, 6svh, 72px);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 3svh, 32px);
}

.project-entry__details > .meta {
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

.project-entry__disciplines {
  color: var(--color-text) !important;
}

.project-entry__description {
  width: 100%;
  max-width: none;
  margin: 0;

  font-size: clamp(1rem, 1.06vw, 1.15rem);
  line-height: 1.52;
  letter-spacing: -.018em;
}

.project-entry__location {
  color: var(--color-text-muted) !important;
}

.project-entry__info > .button {
  margin-top: clamp(34px, 4.5svh, 52px);
}

.project-entry + .project-entry {
  margin-top: clamp(68px, 9vw, 132px);
  padding-top: clamp(42px, 5vw, 72px);
  border-top: 1px solid rgba(14, 14, 14, .22);
}

.project-showcase {
  flex: 1 1 0;
  width: 64%;
  min-width: 0;
  min-height: clamp(500px, 40vw, 620px);

  position: relative;
  align-self: flex-start;
  overflow: visible;
  isolation: isolate;
}

.project-showcase figure {
  margin: 0;
}

.project-showcase img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-showcase__caption {
  display: none;
}

.project-showcase--gps,
.project-showcase--agustina {
  min-height: clamp(430px, 33vw, 520px);
  background: transparent;
}

.gps-preview,
.agustina-preview {
  position: absolute;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  border: 1px solid rgba(14, 14, 14, .13);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 28px 60px rgba(18, 24, 20, .12),
    0 10px 24px rgba(18, 24, 20, .07);

  transform-origin: center;
}

.gps-preview::before,
.agustina-preview::before {
  content: "";
  height: 25px;
  flex: 0 0 25px;
  border-bottom: 1px solid rgba(14, 14, 14, .08);
  background:
    radial-gradient(circle at 14px 50%, rgba(14,14,14,.38) 0 2.5px, transparent 2.8px),
    radial-gradient(circle at 24px 50%, rgba(14,14,14,.24) 0 2.5px, transparent 2.8px),
    radial-gradient(circle at 34px 50%, rgba(14,14,14,.16) 0 2.5px, transparent 2.8px),
    #f5f5f3;
}

.gps-preview img,
.agustina-preview img {
  position: static;
  width: 100%;
  height: calc(100% - 25px);
  flex: 1 1 auto;
  object-fit: contain;
  object-position: center top;
  background: #fff;
}

.gps-preview--main {
  width: 79%;
  left: 1%;
  top: 8%;
  aspect-ratio: 1.43 / 1;
  transform: rotate(-1.1deg);
}

.gps-preview--secondary {
  z-index: 4;
  width: 52%;
  right: 0;
  bottom: 8%;
  aspect-ratio: 1.95 / 1;
  transform: rotate(1.8deg);
  box-shadow:
    0 34px 68px rgba(18, 24, 20, .16),
    0 12px 28px rgba(18, 24, 20, .08);
}

.agustina-preview {
  border-color: rgba(73, 67, 60, .14);
  box-shadow:
    0 28px 60px rgba(73, 67, 60, .14),
    0 10px 24px rgba(73, 67, 60, .07);
}

.agustina-preview::before {
  background:
    radial-gradient(circle at 14px 50%, rgba(73,67,60,.38) 0 2.5px, transparent 2.8px),
    radial-gradient(circle at 24px 50%, rgba(73,67,60,.24) 0 2.5px, transparent 2.8px),
    radial-gradient(circle at 34px 50%, rgba(73,67,60,.16) 0 2.5px, transparent 2.8px),
    #f6f1e9;
}

.agustina-preview--main {
  width: 81%;
  left: 1%;
  top: 8%;
  aspect-ratio: 1.86 / 1;
  transform: rotate(-.8deg);
}

.agustina-preview--editorial {
  z-index: 4;
  width: 55%;
  right: 0;
  bottom: 8%;
  aspect-ratio: 1.82 / 1;
  transform: rotate(1.5deg);
}

/* The selected-project previews assemble once when they enter the viewport. */
.project-showcase--gps.is-reveal-ready .gps-preview,
.project-showcase--agustina.is-reveal-ready .agustina-preview {
  opacity: 0;
  transition:
    opacity 420ms ease,
    transform 620ms cubic-bezier(.2,.72,.2,1),
    box-shadow 220ms ease;
}

.project-showcase--gps.is-reveal-ready .gps-preview--main {
  transform: translate3d(0, 24px, 0) rotate(-1.1deg);
}

.project-showcase--gps.is-reveal-ready .gps-preview--secondary {
  transform: translate3d(24px, 28px, 0) rotate(1.8deg);
}

.project-showcase--agustina.is-reveal-ready .agustina-preview--main {
  transform: translate3d(0, 22px, 0) rotate(-.8deg);
}

.project-showcase--agustina.is-reveal-ready .agustina-preview--editorial {
  transform: translate3d(22px, 28px, 0) rotate(1.5deg);
}

.project-showcase--gps.is-visible .gps-preview,
.project-showcase--agustina.is-visible .agustina-preview {
  opacity: 1;
}

.project-showcase--gps.is-visible .gps-preview--main {
  transform: rotate(-1.1deg);
}

.project-showcase--gps.is-visible .gps-preview--secondary {
  transform: rotate(1.8deg);
  transition-delay: 90ms;
}

.project-showcase--agustina.is-visible .agustina-preview--main {
  transform: rotate(-.8deg);
}

.project-showcase--agustina.is-visible .agustina-preview--editorial {
  transform: rotate(1.5deg);
  transition-delay: 100ms;
}

/* Desktop previews react only while hovered. Persistent selection is reserved
   for coarse/touch pointers, matching the OZ interaction model. */
@media (hover: hover) and (pointer: fine) {
  .project-showcase--gps.is-visible .gps-preview--main:hover,
  .project-showcase--gps.is-visible .gps-preview--secondary:hover,
  .project-showcase--agustina.is-visible .agustina-preview--main:hover,
  .project-showcase--agustina.is-visible .agustina-preview--editorial:hover {
    z-index: 6;
    transition-delay: 0ms;
  }

  .project-showcase--gps.is-visible .gps-preview--main:hover {
    transform: translate3d(5px, -7px, 0) scale(1.012) rotate(-.55deg);
    box-shadow: 0 40px 76px rgba(18, 24, 20, .19);
  }

  .project-showcase--gps.is-visible .gps-preview--secondary:hover {
    transform: translate3d(-5px, -7px, 0) scale(1.012) rotate(1.2deg);
    box-shadow: 0 40px 76px rgba(18, 24, 20, .19);
  }

  .project-showcase--agustina.is-visible .agustina-preview--main:hover {
    transform: translate3d(5px, -7px, 0) scale(1.012) rotate(-.35deg);
    box-shadow: 0 40px 76px rgba(73, 67, 60, .18);
  }

  .project-showcase--agustina.is-visible .agustina-preview--editorial:hover {
    transform: translate3d(-5px, -7px, 0) scale(1.012) rotate(1deg);
    box-shadow: 0 40px 76px rgba(73, 67, 60, .18);
  }
}

@media (hover: none), (pointer: coarse) {
  .gps-preview,
  .agustina-preview {
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
  }

  .project-showcase--gps.is-visible .gps-preview.is-active,
  .project-showcase--agustina.is-visible .agustina-preview.is-active {
    z-index: 6;
    transition-delay: 0ms;
  }

  .project-showcase--gps.is-visible .gps-preview--main.is-active {
    transform: translate3d(5px, -7px, 0) scale(1.012) rotate(-.55deg);
    box-shadow: 0 40px 76px rgba(18, 24, 20, .19);
  }

  .project-showcase--gps.is-visible .gps-preview--secondary.is-active {
    transform: translate3d(-5px, -7px, 0) scale(1.012) rotate(1.2deg);
    box-shadow: 0 40px 76px rgba(18, 24, 20, .19);
  }

  .project-showcase--agustina.is-visible .agustina-preview--main.is-active {
    transform: translate3d(5px, -7px, 0) scale(1.012) rotate(-.35deg);
    box-shadow: 0 40px 76px rgba(73, 67, 60, .18);
  }

  .project-showcase--agustina.is-visible .agustina-preview--editorial.is-active {
    transform: translate3d(-5px, -7px, 0) scale(1.012) rotate(1deg);
    box-shadow: 0 40px 76px rgba(73, 67, 60, .18);
  }
}

.oz-showcase {
  --oz-yellow: #ffc400;
  --oz-black: #0a0a0a;

  width: 64%;
  flex: 1 1 0;
  min-width: 0;
  min-height: clamp(500px, 40vw, 620px);

  position: relative;
  overflow: visible;
  isolation: isolate;
}





.oz-device {
  margin: 0;

  position: absolute;
  overflow: hidden;

  background: var(--oz-black);

  box-shadow:
    0 30px 54px rgba(0,0,0,.17),
    0 8px 18px rgba(0,0,0,.09);

  opacity: 1;

  transition:
    opacity 520ms ease,
    transform 880ms cubic-bezier(.22,.7,.18,1),
    box-shadow 300ms ease;

  will-change: transform;
}

.oz-device__screen {
  width: 100%;
  height: 100%;

  overflow: hidden;

  background: var(--oz-black);
}

.oz-device__screen img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

/* Desktop */
.oz-device--desktop {
  z-index: 20;

  left: 1%;
  top: 5%;

  width: 85%;
  aspect-ratio: 1.95 / 1;

  border-radius: 18px;

  transform: translateY(14px) rotate(-1.05deg) scale(.992);
}

.oz-device--desktop .oz-device__chrome {
  height: 34px;

  display: flex;
  align-items: center;
  gap: 7px;

  padding-inline: 12px;

  background: #151515;
  color: rgba(255,255,255,.44);
}

.oz-device--desktop .oz-device__chrome span {
  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: rgba(255,255,255,.26);
}

.oz-device--desktop .oz-device__chrome i {
  margin-left: 7px;

  font-style: normal;
  font-size: 9px;
  letter-spacing: .03em;
}

.oz-device--desktop .oz-device__screen {
  height: calc(100% - 34px);
}

/* Tablet / order */
.oz-device--tablet {
  z-index: 35;

  right: 1%;
  top: 13%;

  width: 32%;
  aspect-ratio: .88 / 1;

  padding: 12px;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;

  transform: translate(10px, 14px) rotate(2.6deg) scale(.992);
}

.oz-device--tablet .oz-device__screen {
  border-radius: 15px;
}

.oz-device--tablet .oz-device__screen img {
  object-position: center top;
}

/* Phone / menu */
.oz-device--phone {
  z-index: 45;

  right: 31%;
  bottom: 1%;

  width: 20%;
  aspect-ratio: .46 / 1;

  padding: 9px;

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;

  transform: translate(8px, 16px) rotate(-3deg) scale(.99);
}

.oz-device--phone .oz-device__screen {
  border-radius: 20px;
}

.oz-device--phone .oz-device__screen img {
  object-position: center top;
}

.oz-device__speaker {
  width: 28%;
  height: 4px;

  position: absolute;
  z-index: 5;
  left: 50%;
  top: 6px;

  border-radius: 999px;
  background: rgba(255,255,255,.18);

  transform: translateX(-50%);
}

.oz-device__label {
  position: absolute;
  left: 12px;
  bottom: 12px;

  padding: 8px 10px;

  border-radius: 8px;
  background: rgba(8,8,8,.78);
  color: #f5f0e6;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.oz-device__label::before {
  content: "";
  width: 12px;
  height: 2px;

  display: inline-block;
  margin-right: 8px;
  vertical-align: .22em;

  background: var(--oz-yellow);
}

/* Reveal after a meaningful part of the visual has entered the viewport.
   Without JS the devices remain visible; hiding is progressive enhancement. */
.oz-showcase.is-reveal-ready .oz-device {
  opacity: 0;
}

.oz-showcase.is-visible .oz-device {
  opacity: 1;
}

.oz-showcase.is-visible .oz-device--desktop {
  transform: translateY(0) rotate(-1.05deg) scale(1);
}

.oz-showcase.is-visible .oz-device--tablet {
  transform: translate(0, 0) rotate(2.6deg) scale(1);

  transition-delay: 45ms;
}

.oz-showcase.is-visible .oz-device--phone {
  transform: translate(0, 0) rotate(-3deg) scale(1);

  transition-delay: 90ms;
}

/* Each device reacts independently and comes to the front. */
@media (hover: hover) {
  .oz-showcase.is-visible .oz-device:hover {
    z-index: 90;

    transition-delay: 0ms;
  }

  .oz-showcase.is-visible .oz-device--desktop:hover {
    transform: translate(-5px, -10px) rotate(-.2deg) scale(1.025);

    box-shadow:
      0 42px 76px rgba(0,0,0,.22),
      0 12px 24px rgba(0,0,0,.12);
  }

  .oz-showcase.is-visible .oz-device--tablet:hover {
    transform: translate(-9px, -16px) rotate(.35deg) scale(1.035);

    box-shadow:
      0 42px 76px rgba(0,0,0,.24),
      0 12px 24px rgba(0,0,0,.14);
  }

  .oz-showcase.is-visible .oz-device--phone:hover {
    transform: translate(-10px, -18px) rotate(-.35deg) scale(1.045);

    box-shadow:
      0 38px 70px rgba(0,0,0,.26),
      0 12px 24px rgba(0,0,0,.15);
  }
}

/* Touch / coarse pointers: tapping a device keeps it in front until another
   device is selected or the showcase background is tapped. */
@media (hover: none), (pointer: coarse) {
  .oz-device {
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
  }

  .oz-showcase.is-visible .oz-device.is-active {
    z-index: 90;
    transition-delay: 0ms;

    box-shadow:
      0 42px 76px rgba(0,0,0,.22),
      0 12px 24px rgba(0,0,0,.12);
  }

  .oz-showcase.is-visible .oz-device--desktop.is-active {
    transform: translate(-5px, -10px) rotate(-.2deg) scale(1.025);
  }

  .oz-showcase.is-visible .oz-device--tablet.is-active {
    transform: translate(-9px, -16px) rotate(.35deg) scale(1.035);
  }

  .oz-showcase.is-visible .oz-device--phone.is-active {
    transform: translate(-10px, -18px) rotate(-.35deg) scale(1.045);
  }
}

.projects__footer {
  margin-top: clamp(46px, 6svh, 68px);
  padding-top: 22px;

  border-top: 1px solid var(--color-text);

  display: flex;
  justify-content: flex-end;
}

/* Tablet */
@media (max-width: 920px) {
  .project-entry {
    gap: 30px;
  }

  .project-entry__info {
    width: 40%;
    min-width: 240px;
  }

  .project-showcase,
  .oz-showcase {
    width: 60%;
    min-height: 520px;
  }

  .project-showcase--gps,
  .project-showcase--agustina {
    min-height: 440px;
  }

  .project-entry__brand {
    min-height: 70px;
    padding-right: 18px;
  }

  .project-entry__brand img {
    width: 48px;
    height: 48px;
  }

  .project-entry--gps .project-entry__brand-logo--gps {
    width: 66px;
    height: 40px;
  }

  .project-entry--agustina .project-entry__brand-logo--agustina {
    width: 50px;
    height: 50px;
  }

  .oz-device--desktop {
    width: 92%;
  }

  .oz-device--tablet {
    width: 38%;
    top: 41%;
    right: 1%;
  }

  .oz-device--phone {
    width: 25%;
    right: 43%;
    bottom: 3%;
  }
}

/* Mobile: content flows naturally; devices are compact and partially overlap
   without relying on a giant fixed-height stage. */
@media (max-width: 780px) {

  .projects__intro {
    gap: 12px;
  }

  .projects__lead {
    max-width: 13ch;

    font-size: clamp(1.8rem, 8.8vw, 2.5rem);
  }

  .projects__sublead {
    max-width: 28ch;
  }

  .projects__rule {
    margin: 26px 0 30px;
  }

  .project-entry {
    display: block;
  }

  .project-entry__info {
    width: 100%;
    min-width: 0;

    padding-top: 0;
  }

  .project-entry + .project-entry {
    margin-top: 52px;
    padding-top: 36px;
  }

  .project-showcase {
    width: 100%;
    max-width: 640px;
    min-height: clamp(390px, 104vw, 520px);
    margin-top: 32px;
  }

  .project-showcase--gps,
  .project-showcase--agustina {
    min-height: clamp(320px, 82vw, 430px);
  }

  .gps-preview--main,
  .agustina-preview--main {
    width: 86%;
    left: 0;
    top: 10%;
  }

  .gps-preview--secondary {
    width: 58%;
    right: 0;
    bottom: 10%;
  }

  .agustina-preview--editorial {
    width: 56%;
    right: 0;
    bottom: 10%;
  }

  .project-entry__brand {
    width: min(100%, var(--brand-width));
    min-height: 68px;

    padding: 10px 20px 10px 10px;

    border-radius: 9px;
  }

  .project-entry__brand img {
    width: 48px;
    height: 48px;
  }

  .project-entry__brand span {
    font-size: 1.05rem;
  }

  .project-entry__details {
    width: min(100%, var(--content-width));
    max-width: var(--content-width);

    margin-top: 24px;
    gap: 16px;
  }

  .project-entry__info > .button {
    margin-top: 24px;
  }

  .oz-showcase {
    width: 100%;
    max-width: 560px;
    min-height: 0;

    margin: 34px auto 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 0;
  }

  .oz-device {
    position: relative;
    inset: auto;

    width: auto;
  }

  .oz-device--desktop {
    width: 94%;
    align-self: flex-start;

    aspect-ratio: 1.48 / 1;

    border-radius: 14px;

    transform: translateY(24px) rotate(-1deg) scale(.985);
  }

  .oz-device--desktop .oz-device__chrome {
    height: 28px;
  }

  .oz-device--desktop .oz-device__screen {
    height: calc(100% - 28px);
  }

  .oz-device--tablet {
    width: 68%;
    align-self: flex-end;

    aspect-ratio: .88 / 1;

    margin-top: -24px;

    border-radius: 20px;

    transform: translateY(26px) rotate(1.8deg) scale(.985);
  }

  .oz-device--phone {
    width: 43%;
    align-self: flex-start;

    aspect-ratio: .46 / 1;

    margin-top: -116px;
    margin-left: 7%;

    border-radius: 24px;

    transform: translateY(28px) rotate(-2.2deg) scale(.98);
  }

  /* Device labels must stay readable at real phone widths. The phone label
     stays on one line, while the tablet label moves to a visible corner that
     is not covered by the overlapping phone mockup. */
  .oz-device__label {
    padding: 6px 8px;
    font-size: clamp(.55rem, 2.5vw, .68rem);
    line-height: 1;
    white-space: nowrap;
  }

  .oz-device__label::before {
    width: 10px;
    margin-right: 6px;
  }

  .oz-device--tablet .oz-device__label {
    top: 10px;
    right: 10px;
    bottom: auto;
    left: auto;
  }

  .oz-showcase.is-visible .oz-device--desktop {
    transform: rotate(-1deg) scale(1);
  }

  .oz-showcase.is-visible .oz-device--tablet {
    transform: rotate(1.8deg) scale(1);
  }

  .oz-showcase.is-visible .oz-device--phone {
    transform: rotate(-2.2deg) scale(1);
  }

  @media (hover: none), (pointer: coarse) {
    .oz-showcase.is-visible .oz-device--desktop.is-active {
      transform: translate(5px, -8px) rotate(-.35deg) scale(1.025);
    }

    .oz-showcase.is-visible .oz-device--tablet.is-active {
      transform: translate(-5px, -10px) rotate(.5deg) scale(1.03);
    }

    .oz-showcase.is-visible .oz-device--phone.is-active {
      transform: translate(8px, -12px) rotate(-.3deg) scale(1.04);
    }
  }

  .projects__footer {
    margin-top: 44px;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oz-device,
  .gps-preview,
  .agustina-preview {
    transition: none !important;
  }
}

/* STUDIO */

.studio {
  padding-block: calc(var(--section-pad-top) - 1px) var(--section-pad-bottom);
  border-top: 1px solid var(--color-line);
}

.studio__topline {
  padding-bottom: var(--section-rule-gap);
  border-bottom: 1px solid var(--color-text);
}

.studio__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(48px, 8vw, 128px);
  padding-top: clamp(42px, 5vw, 66px);
}

.studio__title {
  flex: 0 1 58%;
  margin: 0;
  font-size: clamp(3.8rem, 5.7vw, 6.8rem);
  line-height: .91;
  letter-spacing: -.062em;
  font-weight: 700;
}

.studio__reason {
  flex: 0 1 390px;
  max-width: 390px;
  padding-top: 4px;
}

.studio__reason p,
.studio__identity-copy p {
  margin: 0;
  font-size: clamp(.98rem, 1.05vw, 1.1rem);
  line-height: 1.55;
  letter-spacing: -.02em;
}

.studio__reason p + p,
.studio__identity-copy p + p {
  margin-top: 20px;
}

.studio__reason .studio__reason-lead,
.studio__identity-copy .studio__identity-lead {
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  line-height: 1.34;
  letter-spacing: -.035em;
  font-weight: 500;
}

.studio__identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(58px, 6vw, 84px);
  padding: clamp(30px, 3vw, 40px) 0 clamp(34px, 3.6vw, 46px);
  border-top: 1px solid var(--color-line);
}

.studio__identity-main {
  flex: 1 1 720px;
  max-width: 740px;
}

.studio__identity-label {
  display: block;
  margin-bottom: 18px;
}

.studio__identity-copy {
  max-width: 700px;
}

.studio__process-heading {
  flex: 0 1 520px;
  max-width: 520px;
  padding-top: 0;
}

.studio__process-heading p {
  margin: 0;
  font-size: clamp(1.9rem, 2.25vw, 2.65rem);
  line-height: 1.04;
  letter-spacing: -.05em;
  font-weight: 500;
}

.studio__process-accent {
  color: var(--color-accent);
}

.studio__process {
  display: flex;
  border-top: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
}

.process-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 22px 24px 0;
}

.process-step + .process-step {
  padding-left: 22px;
  border-left: 1px solid var(--color-line);
}

.process-step__number {
  display: block;
  margin-bottom: 22px;
  color: var(--color-text-muted);
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 1.7vw, 1.9rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 600;
}

.process-step p {
  max-width: 270px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

@media (max-width: 920px) {
  .studio__intro { gap: 44px; }
  .studio__title { flex-basis: 55%; font-size: clamp(3.25rem, 7.2vw, 5.6rem); }
  .studio__reason { flex-basis: 340px; }
  .studio__identity { gap: 24px; }
  .studio__identity-main { flex-basis: 58%; }
  .studio__process-heading { flex-basis: 40%; max-width: 440px; }
  .studio__process { flex-wrap: wrap; }
  .process-step { flex-basis: 50%; }
  .process-step:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .process-step:nth-child(4) { border-top: 1px solid var(--color-line); }
}

@media (max-width: 780px) {
  .studio__intro { flex-direction: column; gap: 34px; padding-top: 34px; }
  .studio__title { flex: none; font-size: clamp(2.95rem, 15vw, 4.8rem); }
  .studio__reason { flex: none; max-width: 100%; padding-top: 0; }
  .studio__identity {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    margin-top: 44px;
    padding-block: 24px 28px;
  }
  .studio__identity-main {
    flex: none;
    max-width: 100%;
  }
  .studio__identity-label { margin-bottom: 12px; }
  .studio__identity-copy { max-width: 100%; }
  .studio__process-heading {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }
  .studio__process-heading p {
    max-width: 100%;
    font-size: 1.55rem;
    line-height: 1.08;
  }
  .studio__process { display: block; }
  .process-step { padding: 18px 0 20px; }
  .process-step + .process-step,
  .process-step:nth-child(3),
  .process-step:nth-child(4) { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .process-step__number { margin-bottom: 14px; }
  .process-step p { max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* SERVICES */

.services {
  padding-block: calc(var(--section-pad-top) - 1px) var(--section-pad-bottom);
  border-top: 1px solid var(--color-line);
}

.services__topline {
  padding-bottom: var(--section-rule-gap);
  border-bottom: 1px solid var(--color-text);
}

.services__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  gap: clamp(72px, 7vw, 128px);
  align-items: start;
  padding-top: clamp(58px, 6vw, 88px);
}

.services__discourse {
  max-width: 860px;
}

.services__title {
  max-width: 14.5ch;
  margin: 0;
  font-size: clamp(3.15rem, 4.55vw, 5.55rem);
  text-wrap: balance;
  line-height: .96;
  letter-spacing: -.058em;
  font-weight: 650;
}

.services__intro-copy {
  width: 100%;
  max-width: 760px;
  margin-top: clamp(30px, 3vw, 42px);
}

.services__intro-lead {
  max-width: 32ch;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(1.5rem, 1.85vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 500;
}

.services__intro-detail {
  max-width: 60ch;
  margin: 12px 0 0;
  font-size: clamp(.98rem, 1.05vw, 1.08rem);
  line-height: 1.5;
  letter-spacing: -.02em;
  color: var(--color-text-muted);
}

.services__list {
  margin-top: 0;
  border-top: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
}

.service-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
  align-items: start;
  padding-block: clamp(26px, 2.4vw, 36px);
  border-bottom: 1px solid var(--color-line);
}

.service-line:last-child {
  border-bottom: 0;
}

.service-line__number {
  padding-top: .32rem;
  color: var(--color-text-muted);
  transition: color 180ms ease;
}

.service-line__content {
  min-width: 0;
}

.service-line h3 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(1.85rem, 2.25vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 550;
  transition: color 180ms ease, transform 220ms ease;
}

.service-line p {
  max-width: 46ch;
  margin: 13px 0 0;
  font-size: clamp(.92rem, .98vw, 1.02rem);
  line-height: 1.48;
  letter-spacing: -.018em;
  color: var(--color-text-muted);
}

@media (hover: hover) {
  .service-line:hover .service-line__number,
  .service-line:hover h3 {
    color: var(--color-accent);
  }

  .service-line:hover h3 {
    transform: translateX(5px);
  }
}

.services.is-reveal-ready [data-services-intro],
.services.is-reveal-ready [data-service-line] {
  opacity: 0;
  transform: translateY(18px);
}

.services.is-reveal-ready [data-services-intro] {
  transition: opacity 520ms ease, transform 760ms cubic-bezier(.2,.75,.25,1);
}

.services.is-reveal-ready [data-service-line] {
  transition: opacity 480ms ease, transform 700ms cubic-bezier(.2,.75,.25,1);
}

.services.is-visible [data-services-intro],
.services.is-visible [data-service-line] {
  opacity: 1;
  transform: translateY(0);
}

.services.is-visible [data-service-line]:nth-child(1) { transition-delay: 80ms; }
.services.is-visible [data-service-line]:nth-child(2) { transition-delay: 145ms; }
.services.is-visible [data-service-line]:nth-child(3) { transition-delay: 210ms; }

/* CONTACT */

.contact {
  background: var(--color-text);
  color: var(--color-bg);
}

.contact__inner {
  padding-top: var(--section-pad-top);
  padding-bottom: var(--section-pad-bottom);
  display: flex;
  flex-direction: column;
}

.contact__topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--section-rule-gap);
  border-bottom: 1px solid rgba(248,248,246,.25);
}

.contact__content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  column-gap: clamp(64px, 7vw, 128px);
  align-items: center;
  padding-top: clamp(56px, 6vw, 88px);
}

.contact__title {
  max-width: 7.7ch;
  font-size: clamp(5rem, 8.3vw, 10rem);
  line-height: .99;
  letter-spacing: -.064em;
  font-weight: 700;
  text-align: left;
}

.contact__title > span {
  display: block;
  white-space: nowrap;
}

.contact__title-line2 {
  padding-inline-start: .42em;
}

.contact__aside {
  align-self: center;
}

.contact__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--color-bg);
  font-size: clamp(2.55rem, 3.5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact__cta-arrow {
  flex: 0 0 auto;
  margin-left: 28px;
  font-size: .72em;
  line-height: 1;
  transition: transform 180ms ease;
}

.contact__cta:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.contact__cta:hover .contact__cta-arrow {
  transform: translate(4px, -4px);
}

/* FOOTER */

.site-footer {
  padding-block: 48px 22px;
  background: var(--color-text);
  color: var(--color-bg);
  border-top: 1px solid rgba(248,248,246,.25);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .62fr) minmax(0, .62fr) minmax(0, 1fr);
  column-gap: clamp(36px, 5vw, 88px);
  align-items: start;
}

.site-footer__brand p {
  margin: 20px 0 0;
  color: rgba(248,248,246,.55);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.site-footer__nav,
.site-footer__social,
.site-footer__mail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--fs-sm);
}

.site-footer__nav .meta,
.site-footer__social .meta,
.site-footer__mail .meta {
  margin-bottom: 8px;
  color: rgba(248,248,246,.45);
}

.site-footer__nav a,
.site-footer__social a,
.site-footer__mail a {
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.site-footer__nav a:hover,
.site-footer__social a:hover,
.site-footer__mail a:hover {
  color: var(--color-accent);
}

.site-footer__bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(248,248,246,.25);
}

.site-footer__bottom .meta {
  color: rgba(248,248,246,.45);
}

/* SERVICES / CONTACT / FOOTER — TABLET */

@media (max-width: 1024px) {
  .services__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(48px, 5.5vw, 72px);
  }

  .services__list {
    margin-top: 0;
  }

  .services__title {
    max-width: 14ch;
    font-size: clamp(2.9rem, 5vw, 4.45rem);
  }

  .service-line h3 {
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  }

  .service-line p {
    font-size: .94rem;
  }

  .contact__content {
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
    column-gap: clamp(40px, 5vw, 64px);
  }

  .contact__title {
    font-size: clamp(4.1rem, 8vw, 7.25rem);
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .65fr) minmax(0, .65fr) minmax(0, 1fr);
    column-gap: clamp(24px, 3.5vw, 48px);
  }
}

/* SERVICES / CONTACT / FOOTER — MOBILE */

@media (max-width: 780px) {
  .services__layout {
    display: block;
    padding-top: 38px;
  }

  .services__discourse {
    max-width: none;
  }

  .services__title {
    max-width: 11ch;
    font-size: clamp(2.7rem, 12vw, 4.35rem);
  }

  .services__intro-copy {
    max-width: 32rem;
    margin-top: 24px;
  }

  .services__intro-lead {
    max-width: 18ch;
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }

  .services__intro-detail {
    max-width: 30rem;
    margin-top: 14px;
    font-size: .98rem;
  }

  .services__list {
    margin-top: 52px;
  }

  .service-line {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding-block: 24px 26px;
  }

  .service-line__number {
    padding-top: .24rem;
  }

  .service-line h3 {
    max-width: 14ch;
    font-size: clamp(1.65rem, 7.2vw, 2.25rem);
  }

  .service-line p {
    max-width: 34rem;
    margin-top: 10px;
    font-size: .94rem;
    line-height: 1.48;
  }

  .contact__content {
    grid-template-columns: 1fr;
    row-gap: clamp(48px, 12vw, 68px);
    padding-top: clamp(48px, 12vw, 72px);
  }

  .contact__title {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(3rem, 14.5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.055em;
    text-align: center;
  }

  .contact__title-line2 {
    padding-inline-start: 0;
  }

  .contact__aside {
    width: 100%;
  }

  .contact__cta {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 72px;
    font-size: clamp(2.15rem, 9.5vw, 3.25rem);
  }

  .contact__cta > span:first-child {
    grid-column: 2;
  }

  .contact__cta-arrow {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }

  .site-footer {
    padding-block: 40px 20px;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 36px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__nav {
    grid-column: 1;
  }

  .site-footer__social {
    grid-column: 2;
  }

  .site-footer__mail {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    margin-top: 36px;
    padding-top: 16px;
  }
}




.studio__topline > .meta,
.services__topline > .meta {
  display: block;
}

/* Layout resilience
   Grid/flex children are allowed to shrink instead of forcing horizontal
   overflow at browser zoom or intermediate viewport widths. */
.project-entry__info,
.project-entry__details,
.studio__title,
.studio__reason,
.studio__identity-main,
.studio__process-heading,
.services__discourse,
.services__list,
.contact__title,
.contact__aside,
.site-footer__main > * {
  min-width: 0;
}

.projects__lead,
.studio__reason-lead,
.studio__identity-lead,
.services__intro-lead,
.service-line h3 {
  text-wrap: balance;
}

.project-entry__description,
.studio__reason p,
.studio__identity-copy p,
.services__intro-detail,
.service-line p,
.site-footer__brand p {
  text-wrap: pretty;
}

/* ==========================================================
   HEADER + SECTION SURFACES
   ========================================================== */

:root {
  --surface-hero: var(--color-bg);
  --surface-projects: var(--color-bg-alt);
  --surface-studio: var(--color-bg);
  --surface-services: var(--color-bg-alt);
  --surface-dark: var(--color-text);
  --header-height: 78px;
}

html {
  scroll-behavior: smooth;
}

#proyectos,
#estudio,
#servicios,
#contacto {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.hero {
  background: var(--surface-hero);
}

.projects {
  background: var(--surface-projects);
}

.studio {
  background: var(--surface-studio);
}

.services {
  background: var(--surface-services);
}

.contact,
.site-footer {
  background: var(--surface-dark);
}

/* Fixed, section-aware header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  color: var(--color-text);
  transition:
    color 220ms var(--ease),
    background-color 220ms var(--ease),
    border-color 220ms var(--ease);
}

.site-header__inner {
  min-height: var(--header-height);
  transition: min-height 220ms var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms var(--ease),
    border-color 220ms var(--ease);
}

.site-header.is-compact::before {
  background: var(--header-surface, var(--surface-hero));
  border-bottom-color: rgba(14, 14, 14, .12);
}

.site-header[data-surface="hero"] {
  --header-surface: var(--surface-hero);
}

.site-header[data-surface="projects"] {
  --header-surface: var(--surface-projects);
}

.site-header[data-surface="studio"] {
  --header-surface: var(--surface-studio);
}

.site-header[data-surface="services"] {
  --header-surface: var(--surface-services);
}

.site-header[data-surface="dark"] {
  --header-surface: var(--surface-dark);
  color: var(--color-bg);
}

.site-header[data-surface="dark"].is-compact::before {
  border-bottom-color: rgba(248, 248, 246, .18);
}

.header-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 138px;
  height: 44px;
  flex: 0 0 auto;
}

.header-brand img {
  position: absolute;
  left: 0;
  display: block;
  object-fit: contain;
  object-position: left center;
  transition:
    opacity 180ms var(--ease),
    transform 220ms var(--ease),
    filter 220ms var(--ease);
}

.header-brand__full {
  width: 132px;
  height: 52px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.header-brand__iso {
  width: 36px;
  height: 36px;
  opacity: 0;
  transform: translateY(4px) scale(.86);
}

.site-header.is-compact .header-brand__full {
  opacity: 0;
  transform: translateY(-4px) scale(.94);
  pointer-events: none;
}

.site-header.is-compact .header-brand__iso {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-header[data-surface="dark"] .header-brand img {
  filter: invert(1);
}

.site-nav {
  gap: clamp(18px, 1.8vw, 28px);
}

.site-nav__link,
.site-nav__cta {
  white-space: nowrap;
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;

  transition:
    padding 220ms var(--ease),
    background-color 220ms var(--ease),
    color 220ms var(--ease),
    transform 180ms var(--ease),
    box-shadow 220ms var(--ease),
    filter 220ms var(--ease);
}

/* En estado inicial hereda exactamente el subrayado de .site-nav a. */
.site-nav__cta:focus-visible::after {
  right: 0;
}

.site-header.is-compact .site-nav__cta {
  padding: 10px 14px;
  background: var(--color-accent);
  color: var(--color-text);
}

/* Al convertirse en botón mantiene el subrayado y suma una respuesta luminosa sutil. */
.site-header.is-compact .site-nav__cta::after {
  left: 14px;
  right: calc(100% - 14px);
  bottom: 6px;
}

.site-header.is-compact .site-nav__cta:hover,
.site-header.is-compact .site-nav__cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.045);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-accent) 58%, white),
    0 8px 22px color-mix(in srgb, var(--color-accent) 24%, transparent);
}

.site-header.is-compact .site-nav__cta:hover::after,
.site-header.is-compact .site-nav__cta:focus-visible::after {
  right: 14px;
}

.site-header[data-surface="dark"].is-compact .site-nav__cta {
  color: var(--color-text);
}

/* Real logo in footer */

.footer-brand {
  display: inline-flex;
  width: clamp(138px, 11vw, 168px);
  max-width: 100%;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
}

/* Make surface changes feel intentional instead of card-like. */
.projects,
.studio,
.services {
  transition: background-color 260ms var(--ease);
}

@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  .header-brand {
    width: 116px;
  }

  .header-brand__full {
    width: 112px;
  }

}

@media (max-width: 780px) {
  :root {
    --header-height: 68px;
  }

  .site-header::before {
    background: var(--header-surface, var(--surface-hero));
  }

  .site-header__inner {
    min-height: var(--header-height);
  }

  .header-brand {
    width: 38px;
    height: 38px;
  }

  .header-brand__full {
    opacity: 0;
    pointer-events: none;
  }

  .header-brand__iso {
    width: 34px;
    height: 34px;
    opacity: 1;
    transform: none;
  }

  .site-nav__link {
    display: none;
  }

  .site-nav {
    margin-left: auto;
  }

  .site-nav__cta,
  .site-header.is-compact .site-nav__cta {
    padding: 9px 12px;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 11px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .site-header::before,
  .header-brand img,
  .site-nav__cta,
  .projects,
  .studio,
  .services {
    transition: none;
  }
}


/* ==========================================================
   HEADER LOGO TIMING + MOBILE FULLSCREEN MENU
   ========================================================== */

body.menu-open {
  overflow: hidden;
}

/* Desktop logo changes only after leaving Hero */
.site-header .header-brand__full {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.site-header .header-brand__iso {
  opacity: 0;
  transform: translateY(4px) scale(.86);
  pointer-events: none;
}

.site-header.is-symbol .header-brand__full {
  opacity: 0;
  transform: translateY(-4px) scale(.94);
  pointer-events: none;
}

.site-header.is-symbol .header-brand__iso {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Mobile controls */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  color: currentColor;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--surface-hero);
  color: var(--color-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition:
    opacity 220ms var(--ease),
    visibility 220ms var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  padding-bottom: 24px;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__logo {
  width: 128px;
  height: auto;
}

.mobile-menu__close {
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.mobile-menu__close span {
  position: absolute;
  left: 9px;
  top: 20px;
  width: 24px;
  height: 1px;
  background: var(--color-text);
}

.mobile-menu__close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu__close span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: clamp(72px, 15vh, 150px);
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  min-height: 74px;
  border-top: 1px solid var(--color-line);
  font-size: clamp(2.25rem, 11vw, 4rem);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 600;
}

.mobile-menu__nav a:last-child {
  border-bottom: 1px solid var(--color-line);
}

.mobile-menu__footer {
  margin-top: auto;
  padding-top: 48px;
}

.mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.025em;
}

.mobile-menu__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-sm);
}

.mobile-menu__meta > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.mobile-menu__meta .meta {
  margin-bottom: 7px;
  color: var(--color-text-muted);
}

.mobile-menu__meta p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .site-nav--desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  /* On mobile the isologo is always the header brand. */
  .site-header .header-brand,
  .site-header.is-symbol .header-brand {
    width: 38px;
    height: 38px;
  }

  .site-header .header-brand__full,
  .site-header.is-symbol .header-brand__full {
    opacity: 0;
    pointer-events: none;
  }

  .site-header .header-brand__iso,
  .site-header.is-symbol .header-brand__iso {
    width: 34px;
    height: 34px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 480px) {
  .mobile-menu__nav a {
    min-height: 66px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }
}


/* ==========================================================
   HEADER STATE FIX
   - scroll starts: background + CTA become active
   - leaving Hero: full logo changes to isologo
   ========================================================== */

.site-header::before {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.is-compact::before {
  background: var(--header-surface, var(--surface-hero));
  border-bottom-color: rgba(14, 14, 14, .12);
}

.site-header[data-surface="dark"].is-compact::before {
  border-bottom-color: rgba(248, 248, 246, .18);
}

/* Mobile header should always have a readable surface while scrolling.
   At the very top it can remain visually integrated with the Hero. */
@media (max-width: 780px) {
  .site-header::before {
    background: transparent;
  }

  .site-header.is-compact::before {
    background: var(--header-surface, var(--surface-hero));
  }
}


/* ==========================================================
   LOGO STATE — FINAL OVERRIDE
   Compact scroll must NOT change the logo.
   Only .is-symbol is allowed to swap full logo -> isologo.
   ========================================================== */

.site-header.is-compact:not(.is-symbol) .header-brand__full {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.site-header.is-compact:not(.is-symbol) .header-brand__iso {
  opacity: 0;
  transform: translateY(4px) scale(.86);
  pointer-events: none;
}

.site-header.is-symbol .header-brand__full,
.site-header.is-compact.is-symbol .header-brand__full {
  opacity: 0;
  transform: translateY(-4px) scale(.94);
  pointer-events: none;
}

.site-header.is-symbol .header-brand__iso,
.site-header.is-compact.is-symbol .header-brand__iso {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 780px) {
  .site-header.is-compact:not(.is-symbol) .header-brand__full,
  .site-header.is-compact.is-symbol .header-brand__full {
    opacity: 0;
    pointer-events: none;
  }

  .site-header.is-compact:not(.is-symbol) .header-brand__iso,
  .site-header.is-compact.is-symbol .header-brand__iso {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}


/* ==========================================================
   HERO LOGO — FLUID SCROLL SCALE
   Replaces the previous threshold-based shrink behavior.
   ========================================================== */

@media (min-width: 781px) {
  .site-header:not(.is-symbol) .header-brand {
    width: var(--hero-logo-wrap-width, 248px) !important;
    height: var(--hero-logo-wrap-height, 86px) !important;
  }

  .site-header:not(.is-symbol) .header-brand__full,
  .site-header.is-compact:not(.is-symbol) .header-brand__full {
    width: var(--hero-logo-img-width, 236px) !important;
    height: var(--hero-logo-img-height, 84px) !important;
    opacity: 1 !important;
    transform: translateY(var(--hero-logo-translate-y, 18px)) scale(1) !important;
    pointer-events: auto !important;
  }

  .site-header:not(.is-symbol) .header-brand__iso,
  .site-header.is-compact:not(.is-symbol) .header-brand__iso {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .site-header:not(.is-symbol) .site-header__inner {
    min-height: var(--hero-header-height, 104px) !important;
    padding-top: var(--hero-header-padding-top, 12px) !important;
    align-items: flex-start !important;
  }

  /* The logo now follows scroll directly, so no transition is needed
     while scaling; this removes the "bounce" / snap feeling. */
  .site-header:not(.is-symbol) .header-brand,
  .site-header:not(.is-symbol) .header-brand__full,
  .site-header:not(.is-symbol) .site-header__inner {
    transition:
      opacity 180ms var(--ease),
      background-color 220ms var(--ease),
      color 220ms var(--ease) !important;
  }

  /* Once Projects is reached, restore the regular isologo state. */
  .site-header.is-symbol .header-brand {
    width: 138px !important;
    height: 44px !important;
  }

  .site-header.is-symbol .site-header__inner {
    min-height: var(--header-height) !important;
    padding-top: 0 !important;
    align-items: center !important;
  }
}

@media (min-width: 781px) and (max-width: 920px) {
  .site-header.is-symbol .header-brand {
    width: 116px !important;
  }
}


/* ==========================================================
   HEADER ALIGNMENT FIX
   Keep nav vertically centered while the large logo scales.
   ========================================================== */

@media (min-width: 781px) {
  .site-header:not(.is-symbol) .site-header__inner,
  .site-header.is-compact:not(.is-symbol) .site-header__inner {
    align-items: center !important;
    padding-top: 0 !important;
  }

  .site-header:not(.is-symbol) .site-nav--desktop {
    align-self: center;
  }

  .site-header:not(.is-symbol) .header-brand {
    align-self: center;
  }
}

/* STUDIO REVEAL */
.studio.is-reveal-ready [data-studio-intro],
.studio.is-reveal-ready [data-studio-identity],
.studio.is-reveal-ready [data-studio-step] {
  opacity: 0;
  transform: translateY(18px);
}

.studio.is-reveal-ready [data-studio-intro] {
  transition: opacity 520ms ease, transform 760ms cubic-bezier(.2,.75,.25,1);
}

.studio.is-reveal-ready [data-studio-identity] {
  transition: opacity 500ms ease 80ms, transform 740ms cubic-bezier(.2,.75,.25,1) 80ms;
}

.studio.is-reveal-ready [data-studio-step] {
  transition: opacity 460ms ease, transform 680ms cubic-bezier(.2,.75,.25,1);
}

.studio.is-visible [data-studio-intro],
.studio.is-visible [data-studio-identity],
.studio.is-visible [data-studio-step] {
  opacity: 1;
  transform: translateY(0);
}

.studio.is-visible [data-studio-step]:nth-child(1) { transition-delay: 150ms; }
.studio.is-visible [data-studio-step]:nth-child(2) { transition-delay: 205ms; }
.studio.is-visible [data-studio-step]:nth-child(3) { transition-delay: 260ms; }
.studio.is-visible [data-studio-step]:nth-child(4) { transition-delay: 315ms; }


/* INTERNAL PAGES — fixed, page-matched navigation surface.
   Home is intentionally excluded: it retains its section-aware header. */
.site-header[data-header-static-desktop],
.site-header[data-header-static-desktop][data-surface="dark"] {
  color: var(--color-text);
  --header-surface: var(--color-bg);
}

.site-header[data-header-static-desktop]::before,
.site-header[data-header-static-desktop].is-compact::before {
  background: var(--color-bg);
  border-bottom-color: rgba(14, 14, 14, .12);
}

/* Keep the internal-page header in its established dark-on-light theme
   even when the contact/footer section scrolls underneath. */
.site-header[data-header-static-desktop][data-surface="dark"] .header-brand img {
  filter: none;
}
