/* In-Sight — studio preview. One family, four grounds, cut-paper geometry. */

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/host-grotesk-latin.woff2") format("woff2");
  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: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/host-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0f0f0e;
  --ink-2: #1c1c1a;
  --fog: #e4e4e1;
  --paper: #f3f3f1;
  --lime: #c9f23a;
  --rosa: #ff9fc2;
  --white: #fafaf8;

  --on-ink: #f3f3f1;
  --on-ink-mute: #a9a9a3;
  --mute: #3d3d38;

  --font: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;

  --gut: clamp(20px, 5.6vw, 80px);
  --max: 1440px;
  --nav: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);

  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 1;
}

::selection { background: var(--lime); color: var(--ink); }
.plate--ink ::selection, .footer ::selection { background: var(--rosa); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.strip :focus-visible, .plate--lime :focus-visible, .plate--rosa :focus-visible, .plate--paper :focus-visible, .plate--fog :focus-visible { outline-color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: var(--gut); top: 12px; z-index: 50;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--lime:hover { background: #d8ff52; }
  .btn--ink:hover { background: #2a2a27; }
  .btn:hover .arrow { transform: translateX(3px); }
}

.link {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav);
  background: var(--ink); color: var(--on-ink);
  border-bottom: 1px solid rgba(243, 243, 241, 0.1);
}
.nav__row { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo { display: block; flex: none; border-radius: 4px; }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-ink);
  padding: 12px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__cta { --h: 44px; }
.nav__toggle { display: none; }

.menu {
  position: fixed; inset: var(--nav) 0 0 0; background: var(--ink); color: var(--on-ink);
  padding: 24px var(--gut) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 24px;
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-size: 40px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(243, 243, 241, 0.12);
}
.menu__cta { --h: 56px; width: 100%; margin-top: auto; }
.menu__foot { color: var(--on-ink-mute); font-size: 15px; }

@media (max-width: 860px) {
  :root { --nav: 60px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid rgba(243, 243, 241, 0.3);
    background: transparent; cursor: pointer;
  }
  .nav__toggle-bars, .nav__toggle-bars::before {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
    transition: transform 200ms var(--ease-out);
  }
  .nav__toggle-bars { transform: translateY(-3px); }
  .nav__toggle-bars::before { content: ""; position: absolute; top: 6px; left: 0; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
  .menu { animation: menu-in 220ms var(--ease-out); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Plates ---------- */
.plate { position: relative; overflow: hidden; }
.plate--ink { background: var(--ink); color: var(--on-ink); }
.plate--fog { background: var(--fog); color: var(--ink); }
.plate--paper { background: var(--paper); color: var(--ink); }
.plate--lime { background: var(--lime); color: var(--ink); }
.plate--rosa { background: var(--rosa); color: var(--ink); }

.h2 {
  font-size: clamp(36px, 4.6vw, 72px); font-weight: 650; letter-spacing: -0.04em; line-height: 0.98;
  text-wrap: balance; max-width: 14ch;
}
.h2--en { max-width: 13ch; }
.h2--xl { font-size: clamp(48px, 7.4vw, 120px); line-height: 0.9; max-width: 9ch; }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.45; max-width: 34ch; text-wrap: pretty; }
.plate--ink .lead { color: var(--on-ink-mute); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; padding-top: var(--nav);
  display: grid; grid-template-rows: auto 1fr auto;
}
.hero__top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  padding-top: clamp(28px, 4vh, 48px);
}
.hero__col { border-top: 1px solid rgba(243, 243, 241, 0.35); padding-top: 14px; font-size: 15px; line-height: 1.45; }
.hero__top > :nth-child(1) { grid-column: 1 / span 4; }
.hero__top > :nth-child(2) { grid-column: 5 / span 4; }
.hero__top > :nth-child(3) { grid-column: 10 / span 3; }
.hero__h1 { font-size: 15px; font-weight: 600; line-height: 1.45; max-width: 30ch; letter-spacing: -0.005em; }
.hero__place { color: var(--on-ink-mute); margin-top: 4px; }
.hero__lead { color: var(--on-ink); max-width: 38ch; }
.hero__trio { display: flex; flex-direction: column; color: var(--on-ink-mute); }
.hero__trio span:first-child { color: var(--on-ink); font-weight: 600; }

.hero__display { position: relative; align-self: end; padding: clamp(24px, 4vh, 56px) 0 clamp(8px, 2vh, 24px); }
.display {
  font-size: clamp(60px, 11vw, 210px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.86;
  color: var(--on-ink); padding-left: calc(var(--gut) - 0.04em);
}
.line { display: block; overflow: hidden; padding: 0.2em 0 0.24em; margin: -0.2em 0 -0.24em; }
.line__in { display: inline-block; white-space: nowrap; }
.line--push { padding-left: 36%; }
.line--push2 { padding-left: 8%; }

.o { display: inline-block; width: 0.56em; height: 0.56em; margin: 0 0.015em; vertical-align: -0.005em; }
.o svg { width: 100%; height: 100%; overflow: visible; }
.o--half .o__fill { fill: var(--lime); }
.o--half .o__ring { fill: none; stroke: var(--lime); stroke-width: 5; }
.o--half svg { transform-origin: 50% 50%; transition: transform 600ms var(--ease-out); }
.o--full circle { fill: var(--rosa); }

.hero__shapes {
  position: absolute; right: var(--gut); bottom: 6%; width: clamp(120px, 16vw, 260px); height: auto; overflow: visible;
}
.hs--q { fill: var(--lime); transform: translate(170px, 180px) rotate(180deg); transform-origin: 0 0; transform-box: view-box; }
.hs--dot { fill: var(--on-ink); transform: translate(330px, 150px); transform-box: view-box; }

.hero__bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: clamp(24px, 4vh, 48px); padding-top: 20px;
  border-top: 1px solid rgba(243, 243, 241, 0.14);
}
.hero__ask { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__ask-label { font-size: 15px; color: var(--on-ink-mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid rgba(243, 243, 241, 0.32); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
}

/* Hero entrance (once on load, CSS only so it never waits on script) */
@keyframes rise { from { transform: translateY(135%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes shape-in { from { opacity: 0; transform: scale(0.6) rotate(-90deg); } }
@keyframes drift-in { from { opacity: 0; transform: translateY(24px) rotate(-8deg); } }
.js [data-enter] .line__in { animation: rise 1000ms var(--ease-enter) both; }
.js [data-enter] .line:nth-child(2) .line__in { animation-delay: 90ms; }
.js [data-enter] .line:nth-child(3) .line__in { animation-delay: 170ms; }
.js [data-enter] .hero__col { animation: fade-up 700ms var(--ease-enter) 420ms both; }
.js [data-enter] .hero__col:nth-child(2) { animation-delay: 480ms; }
.js [data-enter] .hero__col:nth-child(3) { animation-delay: 540ms; }
.js [data-enter] .hero__bottom > * { animation: fade-up 700ms var(--ease-enter) 620ms both; }
.js [data-enter] .o svg { animation: shape-in 900ms var(--ease-enter) 380ms both; }
.js [data-enter] .hero__shapes { animation: drift-in 1100ms var(--ease-enter) 300ms both; }

/* ---------- Tangible ---------- */
.tangible .wrap { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(80px, 10vw, 140px); position: relative; }
.grid-lines::before {
  content: ""; position: absolute; inset: 0 var(--gut); pointer-events: none;
  background-image: linear-gradient(to right, rgba(15, 15, 14, 0.09) 1px, transparent 1px);
  background-size: calc((100% + 24px) / 12) 100%;
}
.grid-lines > * { position: relative; }
.tangible__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.tangible__head .h2 { grid-column: 1 / span 7; max-width: 13ch; }
.tangible__head .lead { grid-column: 9 / span 4; color: var(--mute); }

.rows { margin-top: clamp(56px, 7vw, 96px); border-top: 1.5px solid var(--ink); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid rgba(15, 15, 14, 0.22);
}
.row__mark { grid-column: 1 / span 1; width: 48px; height: 48px; transition: transform 500ms var(--ease-out); }
.row__a { grid-column: 2 / span 4; font-size: clamp(24px, 2.4vw, 38px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.row__b { grid-column: 6 / span 7; font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); font-weight: 350; }
@media (hover: hover) and (pointer: fine) {
  .row:hover .row__mark { transform: rotate(90deg); }
}
.f-ink { fill: var(--ink); } .f-lime { fill: var(--lime); } .f-rosa { fill: var(--rosa); } .f-white { fill: var(--white); }

.tangible__close {
  margin-top: clamp(56px, 7vw, 96px); margin-left: calc((100% + 24px) / 12 * 5);
  font-size: clamp(22px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 450; max-width: 26ch;
  text-wrap: pretty;
}
.tangible__close em { font-style: normal; font-weight: 700; }

/* ---------- Strip ---------- */
.strip { position: relative; background: var(--lime); color: var(--ink); overflow: hidden; border-block: 1.5px solid var(--ink); }
.strip__track { display: flex; width: max-content; animation: strip 46s linear infinite; }
.strip__list { display: flex; align-items: center; flex: none; }
.strip__list li {
  display: flex; align-items: center; gap: 0.5em; padding-right: 0.5em;
  font-size: clamp(28px, 3.4vw, 54px); font-weight: 650; letter-spacing: -0.035em; line-height: 1; white-space: nowrap;
  padding-block: clamp(18px, 2vw, 28px);
}
.strip__list li::after {
  content: ""; width: 0.62em; height: 0.31em; border-radius: 0.31em 0.31em 0 0; background: var(--ink); flex: none;
}
.strip__list li:nth-child(3n+2)::after { width: 0.36em; height: 0.36em; border-radius: 50%; }
.strip__list li:nth-child(3n)::after { width: 0.5em; height: 0.16em; border-radius: 0; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .strip:hover .strip__track { animation-play-state: paused; } }
.strip.is-paused .strip__track { animation-play-state: paused; }
.strip::after {
  content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: calc(var(--gut) + 44px + 72px); pointer-events: none;
  background: linear-gradient(to right, rgba(201, 242, 58, 0), var(--lime) 56px);
}
.strip__pause {
  position: absolute; z-index: 2; right: var(--gut); top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--lime); display: grid; place-items: center; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .strip__pause:hover { background: var(--ink); } .strip__pause:hover svg { fill: var(--lime); } }
.strip__pause:active { transform: scale(0.94); }
.strip__pause svg { width: 14px; height: 14px; fill: var(--ink); transition: fill 150ms ease; }
.strip__pause .i-play { display: none; }
.strip.is-paused .i-play { display: block; }
.strip.is-paused .i-pause { display: none; }

/* ---------- Understand (type moment) ---------- */
.understand .wrap { padding-top: clamp(96px, 12vw, 168px); padding-bottom: clamp(96px, 11vw, 160px); }
.strikes { display: grid; gap: 6px; }
.strikes li { font-size: clamp(22px, 2.6vw, 40px); font-weight: 450; letter-spacing: -0.03em; line-height: 1.15; }
.strike { position: relative; display: inline; }
.strike::after {
  content: ""; position: absolute; left: -0.08em; right: -0.08em; top: 55%; height: 0.09em; min-height: 3px; background: var(--ink);
  transform: scaleX(1); transform-origin: left;
}
.js .understand:not(.is-played) .strike::after { transform: scaleX(0); }
.understand.is-played .strike::after { transition: transform 700ms var(--ease-in-out); }
.understand.is-played li:nth-child(2) .strike::after { transition-delay: 380ms; }
.understand.is-played li:nth-child(3) .strike::after { transition-delay: 760ms; }
.understand.is-played .strikes li { transition: opacity 500ms ease 1300ms; opacity: 0.8; }

.mega {
  margin-top: clamp(40px, 5vw, 72px);
  font-size: clamp(58px, 10.6vw, 196px); font-weight: 750; letter-spacing: -0.055em; line-height: 0.86;
  max-width: 8ch;
}
.js .understand:not(.is-played) .mega { clip-path: inset(0 0 0 0); }
.understand__body {
  margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5;
}
.understand__body p:first-child { grid-column: 1 / span 5; font-weight: 600; }
.understand__body p:last-child { grid-column: 7 / span 5; }

/* ---------- Industries ---------- */
.industries .wrap { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 11vw, 150px); }
.industries__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.industries__head .h2 { grid-column: 1 / span 7; }
.industries__head .lead { grid-column: 9 / span 4; color: var(--mute); }
.industries__body { margin-top: clamp(48px, 6vw, 80px); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  height: 44px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: transparent;
  font-size: 16px; font-weight: 550; cursor: pointer; letter-spacing: -0.01em;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover { background: var(--fog); } }

.industries__stage {
  margin-top: 24px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: center; border-top: 1.5px solid var(--ink); padding-top: 32px;
}
.figure { grid-column: 1 / span 5; width: 100%; aspect-ratio: 1; background: var(--fog); overflow: visible; }
.panel { grid-column: 7 / span 6; outline-offset: 8px; }
.questions { display: grid; gap: 20px; }
.questions li { font-size: clamp(26px, 2.9vw, 46px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
.panel.is-swapping .questions { opacity: 0; filter: blur(4px); transform: translateY(6px); }
.panel .questions { transition: opacity 260ms ease, filter 260ms ease, transform 320ms var(--ease-out); }

/* Figure shapes: every industry places the same six pieces */
.fg { transform-box: view-box; transform-origin: 0 0; transition: transform 900ms var(--ease-in-out), fill 500ms ease; }
.fg > * { transition: fill 500ms ease; }
.fg--c > * { fill: var(--ink); } .fg--h > * { fill: var(--lime); } .fg--q > * { fill: var(--rosa); }
.fg--b1 > *, .fg--b2 > * { fill: var(--ink); } .fg--d > * { fill: var(--lime); }
.fg--b2 { transition-delay: 40ms; } .fg--h { transition-delay: 70ms; } .fg--q { transition-delay: 110ms; } .fg--d { transition-delay: 150ms; }

/* Universidad: a dome on two columns, a small finial */
[data-ind="universidad"] .fg--h { transform: translate(200px, 180px) scale(1.25); }
[data-ind="universidad"] .fg--b1 { transform: translate(150px, 270px) rotate(90deg) scale(0.62); }
[data-ind="universidad"] .fg--b2 { transform: translate(250px, 270px) rotate(90deg) scale(0.62); }
[data-ind="universidad"] .fg--c { transform: translate(200px, 340px) scale(0.0001); }
[data-ind="universidad"] .fg--d { transform: translate(200px, 52px) scale(0.9); }
[data-ind="universidad"] .fg--d > * { fill: var(--ink); }
[data-ind="universidad"] .fg--q { transform: translate(310px, 330px) rotate(0deg) scale(0.7); }
/* Clínica: a cross over a disc */
[data-ind="clinica"] .fg--c { transform: translate(200px, 200px) scale(2.05); }
[data-ind="clinica"] .fg--b1 { transform: translate(200px, 200px) scale(0.78); }
[data-ind="clinica"] .fg--b2 { transform: translate(200px, 200px) rotate(90deg) scale(0.78); }
[data-ind="clinica"] .fg--b1 > *, [data-ind="clinica"] .fg--b2 > * { fill: var(--rosa); }
[data-ind="clinica"] .fg--h { transform: translate(330px, 360px) rotate(180deg) scale(0.4); }
[data-ind="clinica"] .fg--q { transform: translate(40px, 40px) scale(0.6); }
[data-ind="clinica"] .fg--q > * { fill: var(--lime); }
[data-ind="clinica"] .fg--d { transform: translate(200px, 200px) scale(0.55); }
[data-ind="clinica"] .fg--d > * { fill: var(--white); }
/* Startup: a launch arc from a ground line */
[data-ind="startup"] .fg--b1 { transform: translate(200px, 350px) scale(1.5); }
[data-ind="startup"] .fg--h { transform: translate(110px, 332px) scale(0.75); }
[data-ind="startup"] .fg--h > * { fill: var(--ink); }
[data-ind="startup"] .fg--b2 { transform: translate(250px, 210px) rotate(-55deg) scale(0.62); }
[data-ind="startup"] .fg--b2 > * { fill: var(--rosa); }
[data-ind="startup"] .fg--c { transform: translate(305px, 105px) scale(0.62); }
[data-ind="startup"] .fg--c > * { fill: var(--lime); }
[data-ind="startup"] .fg--d { transform: translate(350px, 50px) scale(0.6); }
[data-ind="startup"] .fg--d > * { fill: var(--ink); }
[data-ind="startup"] .fg--q { transform: translate(30px, 30px) scale(0.5); }
/* Agencia: two voices facing each other */
[data-ind="agencia"] .fg--h { transform: translate(155px, 200px) rotate(-90deg) scale(1.1); }
[data-ind="agencia"] .fg--h > * { fill: var(--ink); }
[data-ind="agencia"] .fg--c { transform: translate(275px, 200px) scale(1.05); }
[data-ind="agencia"] .fg--c > * { fill: var(--lime); }
[data-ind="agencia"] .fg--d { transform: translate(275px, 200px) scale(0.7); }
[data-ind="agencia"] .fg--d > * { fill: var(--ink); }
[data-ind="agencia"] .fg--b1 { transform: translate(200px, 340px) scale(1.2); }
[data-ind="agencia"] .fg--b1 > * { fill: var(--rosa); }
[data-ind="agencia"] .fg--b2 { transform: translate(200px, 60px) scale(0.5); }
[data-ind="agencia"] .fg--q { transform: translate(340px, 340px) rotate(180deg) scale(0.55); }
/* Restaurante: a table setting */
[data-ind="restaurante"] .fg--c { transform: translate(200px, 200px) scale(1.75); }
[data-ind="restaurante"] .fg--c > * { fill: var(--white); }
[data-ind="restaurante"] .fg--h { transform: translate(200px, 190px) rotate(180deg) scale(0.95); }
[data-ind="restaurante"] .fg--h > * { fill: var(--rosa); }
[data-ind="restaurante"] .fg--b1 { transform: translate(42px, 200px) rotate(90deg) scale(1.05); }
[data-ind="restaurante"] .fg--b2 { transform: translate(358px, 200px) rotate(90deg) scale(1.05); }
[data-ind="restaurante"] .fg--d { transform: translate(200px, 150px) scale(0.75); }
[data-ind="restaurante"] .fg--d > * { fill: var(--lime); }
[data-ind="restaurante"] .fg--q { transform: translate(330px, 30px) scale(0.45); }
[data-ind="restaurante"] .fg--q > * { fill: var(--lime); }
/* Cadena: the same piece, repeated, one local */
[data-ind="cadena"] .fg--c { transform: translate(80px, 190px) scale(0.6); }
[data-ind="cadena"] .fg--c > * { fill: var(--lime); }
[data-ind="cadena"] .fg--d { transform: translate(200px, 190px) scale(1.9); }
[data-ind="cadena"] .fg--d > * { fill: var(--lime); }
[data-ind="cadena"] .fg--h { transform: translate(320px, 211px) scale(0.47); }
[data-ind="cadena"] .fg--h > * { fill: var(--rosa); }
[data-ind="cadena"] .fg--b1 { transform: translate(200px, 290px) scale(1.55); }
[data-ind="cadena"] .fg--b2 { transform: translate(200px, 92px) scale(1.55); }
[data-ind="cadena"] .fg--q { transform: translate(28px, 330px) scale(0.45); }

/* ---------- Teams ---------- */
.teams .wrap { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 11vw, 150px); }
.teams__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.teams__head .mega { grid-column: 1 / -1; margin-top: 0; max-width: none; }
.teams__head .lead { grid-column: 7 / span 5; margin-top: 32px; }
.mega__l { display: block; }
.mega__l--bleed { padding-left: calc((100% + 24px) / 12 * 1.55); white-space: nowrap; margin-right: -14vw; }
.teams__body {
  margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
}
.teams__figure { grid-column: 1 / span 5; width: 100%; height: auto; overflow: visible; }
.tf { transition: opacity 300ms ease, transform 500ms var(--ease-out); transform-box: fill-box; }
.tf--ours { fill: var(--lime); transform-origin: right center; }
.tf--yours { fill: var(--rosa); transform-origin: left center; }
.tf--ext, .tf--ext2 { fill: none; stroke: var(--on-ink); stroke-width: 1.5; stroke-dasharray: 3 9; transform-origin: center; }
.tf--ext2 { stroke-dasharray: none; opacity: 0.35; }
.teams__list { grid-column: 7 / span 6; display: grid; }
.team { padding: 24px 0; border-top: 1px solid rgba(243, 243, 241, 0.2); transition: opacity 300ms ease; border-radius: 2px; }
.team:last-child { border-bottom: 1px solid rgba(243, 243, 241, 0.2); }
.team__name { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 2.4vw, 38px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; }
.team p { margin-top: 10px; color: var(--on-ink-mute); max-width: 48ch; }
.swatch { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.swatch--lime { background: var(--lime); border-radius: 18px 0 0 18px; width: 9px; }
.swatch--rosa { background: var(--rosa); border-radius: 0 18px 18px 0; width: 9px; }
.swatch--ring { border: 1.5px dashed var(--on-ink); }

.teams__body[data-focus] .team { opacity: 0.35; }
.teams__body[data-focus="ours"] .team[data-team="ours"],
.teams__body[data-focus="yours"] .team[data-team="yours"],
.teams__body[data-focus="ext"] .team[data-team="ext"] { opacity: 1; }
.teams__body[data-focus] .tf { opacity: 0.18; }
.teams__body[data-focus="ours"] .tf--ours { opacity: 1; transform: translateX(-14px); }
.teams__body[data-focus="yours"] .tf--yours { opacity: 1; transform: translateX(14px); }
.teams__body[data-focus="ext"] .tf--ext, .teams__body[data-focus="ext"] .tf--ext2 { opacity: 1; transform: rotate(30deg); }
.tf--ext { animation: ring 60s linear infinite; }
@keyframes ring { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact .wrap { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 11vw, 150px); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: start; }
.contact__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav) + 32px); }
.contact__lines { margin-top: 28px; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -0.015em; max-width: 24ch; }
.contact__lines--strong { margin-top: 12px; font-weight: 700; }
.contact__mail { margin-top: 40px; font-size: 16px; }
.contact__mail .link { font-weight: 600; font-size: 18px; }

.brief { grid-column: 7 / span 6; display: grid; gap: 20px; align-content: start; }

/* Step by step */
.brief__progress { height: 3px; background: rgba(15, 15, 14, 0.15); border-radius: 3px; overflow: hidden; }
.brief__bar { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0.1667); transform-origin: left; transition: transform 420ms var(--ease-out); }
.brief__count { font-size: 14px; font-weight: 600; color: rgba(15, 15, 14, 0.72); font-variant-numeric: tabular-nums; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.step[hidden] { display: none; }
.step.is-entering { animation: step-in 320ms var(--ease-out) both; }
.step.is-entering.is-back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-16px); } }
.step__title {
  padding: 0; font-size: clamp(26px, 2.4vw, 36px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 6px;
}
.step__title:focus { outline: none; }
.step__title .field__hint { display: block; margin: 8px 0 0; font-size: 15px; letter-spacing: 0; }
.opts--stack { flex-direction: column; align-items: flex-start; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-opt { position: relative; cursor: pointer; display: block; }
.card-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.card-opt span {
  display: grid; gap: 6px; height: 100%; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 16px;
  font-size: 15px; line-height: 1.4; transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.card-opt strong { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.card-opt input:checked + span { background: var(--ink); color: var(--paper); }
.card-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.card-opt:active span { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .card-opt:hover input:not(:checked) + span { background: rgba(15, 15, 14, 0.08); } }
.step__extra { margin-top: 12px; }
.step__fields { display: grid; gap: 20px; }
.field__help { font-size: 14px; color: rgba(15, 15, 14, 0.72); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.brief__nav { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.brief__nav [hidden], .brief__nav[hidden] { display: none; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: rgba(15, 15, 14, 0.08); } }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.brief__done { display: grid; gap: 10px; font-size: 18px; max-width: 36ch; }
.brief__done[hidden] { display: none; }
.brief__done:focus { outline: none; }
.brief__done-title { font-size: clamp(32px, 3.2vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.field__label { font-size: 15px; font-weight: 650; padding: 0; letter-spacing: -0.005em; }
.field__hint { font-weight: 400; color: rgba(15, 15, 14, 0.62); margin-left: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--ink); font-size: 15px; font-weight: 550; user-select: none;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.opt span::before {
  content: ""; width: 0; height: 10px; border-radius: 10px 10px 0 0; background: var(--lime);
  transition: width 200ms var(--ease-out), margin 200ms var(--ease-out); margin-right: -8px;
}
.opt input:checked + span { background: var(--ink); color: var(--paper); }
.opt input:checked + span::before { width: 20px; margin-right: 0; }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.opt:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .opt:hover input:not(:checked) + span { background: rgba(15, 15, 14, 0.08); } }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--ink);
  background: rgba(250, 250, 248, 0.55); font: inherit; font-size: 16px; color: var(--ink);
  transition: background-color 150ms ease, box-shadow 150ms ease;
  caret-color: var(--ink);
}
.input--area { height: auto; min-height: 112px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; background: var(--white); box-shadow: 0 0 0 3px rgba(15, 15, 14, 0.2); }
.input[aria-invalid="true"] { border-color: #b3001b; }
.field__error { font-size: 14px; font-weight: 600; color: #8a0016; min-height: 0; }
.field__error:empty { display: none; }

.brief__status { font-size: 16px; font-weight: 600; }
.brief__status:empty { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-ink); }
.footer .wrap { padding-top: clamp(80px, 10vw, 140px); padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.footer__big {
  font-size: clamp(48px, 7.6vw, 140px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.88; max-width: 13ch;
}
.footer__mark { display: inline-block; width: 0.62em; height: 0.31em; margin: 0 0.06em 0 0.02em; vertical-align: 0.02em; }
.footer__mark svg { width: 100%; height: 100%; overflow: visible; }
.footer__mark path { fill: var(--lime); transform: translateY(-50%); }
.footer__row {
  margin-top: clamp(64px, 8vw, 120px); padding-top: 24px; border-top: 1px solid rgba(243, 243, 241, 0.16);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; font-size: 15px; color: var(--on-ink-mute);
}
.footer__logo img { height: 20px; width: auto; }
.link--light { color: var(--on-ink); }

.egg {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; color: var(--on-ink-mute); font-size: 15px;
}
.egg__dot {
  width: 18px; height: 18px; border-radius: 50%; background: var(--lime);
  transition: transform 500ms var(--ease-out), border-radius 400ms var(--ease-out);
}
.egg__text {
  display: inline-block; clip-path: inset(0 100% 0 0); opacity: 0; transform: translateX(-6px);
  transition: clip-path 500ms var(--ease-out), opacity 300ms ease, transform 500ms var(--ease-out);
}
.egg[aria-expanded="true"] .egg__text { clip-path: inset(0 0 0 0); opacity: 1; transform: none; color: var(--on-ink); }
.egg[aria-expanded="true"] .egg__dot { transform: rotate(180deg); border-radius: 18px 18px 0 0; height: 9px; }
@media (hover: hover) and (pointer: fine) {
  .egg:hover .egg__text { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
  .egg:hover .egg__dot { transform: rotate(180deg); border-radius: 18px 18px 0 0; height: 9px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__top > :nth-child(1) { grid-column: 1 / span 5; }
  .hero__top > :nth-child(2) { grid-column: 6 / span 4; }
  .hero__top > :nth-child(3) { grid-column: 10 / span 3; }
  .line--push { padding-left: 24%; }
}

@media (max-width: 860px) {
  .hero__top { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .hero__top > :nth-child(1) { grid-column: 1 / -1; }
  .hero__top > :nth-child(2) { grid-column: 1 / -1; }
  .hero__top > :nth-child(3) { grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; border-top: 0; padding-top: 0; }
  .hero__h1 { font-size: 17px; }
  .hero__lead { font-size: 16px; }
  .display { font-size: clamp(48px, 13.8vw, 130px); }
  .line__in { white-space: normal; }
  .line--push, .line--push2 { padding-left: 0; }
  .hero__shapes { width: 28vw; bottom: 6%; right: var(--gut); }
  .hero__bottom { flex-direction: column; align-items: stretch; }
  .hero__ask { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__bottom .btn { width: 100%; }

  .tangible__head, .industries__head, .teams__head { grid-template-columns: 1fr; row-gap: 20px; }
  .tangible__head > *, .industries__head > *, .teams__head > * { grid-column: 1 / -1 !important; }
  .mega__l--bleed { padding-left: 0; white-space: normal; margin-right: 0; }
  .teams__head .lead { margin-top: 0; }
  .row { grid-template-columns: 48px 1fr; row-gap: 4px; padding: 20px 0; }
  .row__mark { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; align-self: start; }
  .row__a, .row__b { grid-column: 2; }
  .tangible__close { margin-left: 0; }
  .grid-lines::before { background-size: calc((100% + 12px) / 4) 100%; }

  .understand__body { grid-template-columns: 1fr; row-gap: 16px; }
  .understand__body p { grid-column: 1 / -1 !important; }

  .tab { padding: 0 16px; }
  .industries__stage { grid-template-columns: 1fr; row-gap: 28px; }
  .figure, .panel { grid-column: 1 / -1; }
  .figure { width: min(100%, 420px); }

  .teams__body { grid-template-columns: 1fr; row-gap: 32px; }
  .teams__figure { grid-column: 1; width: min(72%, 360px); justify-self: center; }
  .teams__list { grid-column: 1; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__intro, .brief { grid-column: 1 / -1; position: static; }
  .field-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .brief__nav .btn--lg { flex: 1; }

  .egg { margin-left: 0; }
}

@media (max-width: 480px) {
  .display { letter-spacing: -0.05em; }
  .h2 { font-size: clamp(34px, 10vw, 44px); }
  .h2--xl { font-size: clamp(46px, 14vw, 64px); }
  .mega { font-size: clamp(52px, 17vw, 80px); }
  .strikes li { font-size: 21px; }
  .questions li { font-size: 26px; }
  .footer__big { font-size: clamp(44px, 14vw, 64px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-enter] .line__in, .js [data-enter] .hero__col, .js [data-enter] .hero__bottom > *,
  .js [data-enter] .o svg, .js [data-enter] .hero__shapes { animation: none !important; }
  .js .understand:not(.is-played) .strike::after { transform: scaleX(1); }
  .strip__track, .tf--ext { animation: none; }
  .fg, .fg > *, .tf, .panel .questions { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .step.is-entering { animation: none; }
  .panel.is-swapping .questions { filter: none; transform: none; }
}
