:root {
  --bg: #e9e8e3;
  --paper: #f4f3ee;
  --ink: #111111;
  --muted: #6e6d68;
  --line: rgba(17, 17, 17, .22);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .8, .22, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #111; color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: -70px;
  left: 20px;
  padding: 12px 16px;
  background: #111;
  color: white;
  transition: top .2s;
}
.skip-link:focus { top: 20px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 2.5vw;
  font-size: .72rem;
  font-weight: 600;
}

.header__logo { font-size: 1rem; letter-spacing: -.04em; }
.header__logo sup { margin-left: 2px; font: 400 .42em var(--mono); vertical-align: top; }
.header nav { display: flex; gap: 30px; }
.header nav a, .header__contact { position: relative; }
.header nav a::after, .header__contact::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.header nav a:hover::after, .header__contact:hover::after { transform: scaleX(1); transform-origin: left; }
.header__contact { justify-self: end; display: flex; align-items: center; gap: 9px; }
.header__contact > span { width: 7px; height: 7px; border-radius: 50%; background: #28a456; box-shadow: 0 0 0 4px rgba(40,164,86,.12); }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 105px 2.5vw 30px;
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow { display: flex; justify-content: space-between; font-size: .62rem; }
.hero h1 { margin: auto 0; padding: 7vh 0; font-weight: 500; font-size: clamp(4.8rem, 12.4vw, 13rem); line-height: .73; letter-spacing: -.09em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .09em; }
.hero__line > span { display: block; transform: translateY(110%); }
.loaded .hero__line > span { animation: line-in 1.2s var(--ease) forwards; }
.loaded .hero__line:nth-child(2) > span { animation-delay: .08s; }
.loaded .hero__line:nth-child(3) > span { animation-delay: .16s; }
@keyframes line-in { to { transform: translateY(0); } }
.hero__line--right { text-align: right; padding-right: .35em; }
.hero__line--serif { padding-left: .72em; font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.055em; }
.hero__bottom { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero__bottom p { max-width: 530px; margin: 0; font-size: clamp(.95rem, 1.3vw, 1.25rem); }
.hero__bottom a { display: flex; gap: 50px; align-items: center; min-width: 220px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: .78rem; font-weight: 600; }
.hero__bottom i { margin-left: auto; font-style: normal; transition: transform .3s; }
.hero__bottom a:hover i { transform: translateY(5px); }

.positioning { position: relative; display: grid; grid-template-columns: .7fr 2.3fr 1fr; gap: 5vw; padding: clamp(110px, 14vw, 220px) 2.5vw; }
.positioning__small { margin: 13px 0 0; font-size: .62rem; }
.positioning__lead { max-width: 13ch; margin: 0; font-size: clamp(3.2rem, 6.3vw, 7.1rem); line-height: .93; letter-spacing: -.07em; font-weight: 500; }
.positioning__aside { align-self: end; }
.positioning__aside p { margin: 0 0 36px; color: #4d4c47; }
.positioning__aside span { display: block; padding-top: 13px; border-top: 1px solid var(--line); font-size: .56rem; line-height: 1.7; }

.selected { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 190px) 2.5vw; background: #111; color: var(--paper); }
.selected__heading { display: grid; grid-template-columns: .7fr 2.3fr 1fr; gap: 5vw; align-items: end; margin-bottom: clamp(90px, 11vw, 170px); }
.selected__heading > span { align-self: start; padding-top: 12px; font-size: .58rem; color: #92918c; }
.selected h2, .index-section__title h2, .approach h2 { margin: 0; font-size: clamp(4rem, 8.5vw, 9.5rem); font-weight: 500; line-height: .82; letter-spacing: -.08em; }
.selected h2 em, .index-section__title h2 em, .approach h2 em { font-family: var(--serif); font-weight: 400; }
.selected__heading > p { max-width: 35ch; margin: 0; color: #9c9a94; font-size: .9rem; }

.case-list { border-top: 1px solid rgba(255,255,255,.25); }
.case { position: relative; display: grid; grid-template-columns: .35fr 1.65fr 1fr auto; gap: 3vw; align-items: center; min-height: 155px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.25); transition: padding .45s var(--ease), color .3s, background .3s; }
.case:hover, .case.is-hovered { z-index: 2; padding-left: 1.4vw; padding-right: 1.4vw; background: var(--tone, #fff); color: #111; }
.case__number, .case__year { font-size: .56rem; color: #8d8b86; }
.case:hover .case__number, .case:hover .case__year { color: rgba(17,17,17,.6); }
.case__name h3 { margin: 0 0 5px; font-size: clamp(2rem, 4.2vw, 5.1rem); font-weight: 500; line-height: .9; letter-spacing: -.065em; }
.case__name span, .case > p { color: #a4a29c; font-size: .78rem; }
.case:hover .case__name span, .case:hover > p { color: rgba(17,17,17,.68); }
.case > p { max-width: 30ch; margin: 0; }
.case__year { justify-self: end; white-space: nowrap; }
.case--disabled { cursor: default; }
.case__mobile-media { display: none; }

.project-preview { position: fixed; z-index: 100; left: 0; top: 0; width: min(36vw, 540px); aspect-ratio: 1.45; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(-1000px,-1000px,0) scale(.88); transition: opacity .25s, transform .12s linear; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.project-preview.is-visible { opacity: 1; }
.project-preview img { height: 100%; object-fit: cover; }
.project-preview__card { height: 100%; display: none; flex-direction: column; justify-content: space-between; padding: 8%; background: var(--tone); color: #111; }
.project-preview__card strong { font-size: clamp(3rem, 6vw, 7rem); line-height: .8; letter-spacing: -.09em; }
.project-preview__card span { font: .6rem var(--mono); }

.index-section { padding: clamp(100px, 13vw, 200px) 2.5vw; }
.index-section__title { display: grid; grid-template-columns: 1fr 3fr; gap: 5vw; margin-bottom: clamp(80px, 10vw, 150px); }
.index-section__title > span { padding-top: 12px; font-size: .6rem; }
.product-index { border-top: 1px solid var(--line); }
.product-index__row { display: grid; grid-template-columns: 1.1fr .5fr 1.7fr auto; gap: 3vw; align-items: center; min-height: 94px; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease); }
.product-index__row:hover { padding: 0 1vw; }
.product-index__row span:first-child { font-size: clamp(1.5rem, 2.5vw, 2.8rem); font-weight: 500; letter-spacing: -.05em; }
.product-index__row span:nth-child(2), .product-index__row i { font: normal .58rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.product-index__row span:nth-child(3) { color: #575650; font-size: .82rem; }
.product-index__row i { justify-self: end; }

.approach { display: grid; grid-template-columns: 1.05fr 1fr; gap: 8vw; padding: clamp(100px, 13vw, 200px) 2.5vw; background: var(--paper); }
.approach__intro { position: sticky; top: 50px; align-self: start; }
.approach__intro > span { display: block; margin-bottom: clamp(80px, 10vw, 150px); font-size: .6rem; }
.approach h2 { font-size: clamp(3.8rem, 7vw, 8rem); }
.approach h2 em { color: #6a6963; }
.approach__steps { margin: 18vh 0 0; padding: 0; list-style: none; }
.approach__steps li { min-height: 330px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 28px; padding: 36px 0; border-top: 1px solid var(--line); }
.approach__steps li:last-child { border-bottom: 1px solid var(--line); }
.approach__steps li > span { grid-row: 1/4; font-size: .55rem; padding-top: 9px; }
.approach__steps h3 { max-width: 12ch; margin: 0; font-size: clamp(2.3rem, 4.6vw, 5.3rem); font-weight: 500; line-height: .93; letter-spacing: -.06em; }
.approach__steps p { max-width: 42ch; margin: auto 0 0; color: #5d5c57; }

.statement { min-height: 90vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(90px, 11vw, 170px) 2.5vw 35px; background: #b9c6aa; }
.statement > p { margin: 0; font-size: clamp(4.8rem, 12.5vw, 14rem); font-weight: 500; line-height: .72; letter-spacing: -.09em; }
.statement > p em { font-family: var(--serif); font-weight: 400; }
.statement__meta { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(17,17,17,.3); font-size: .56rem; }

.contact { padding: clamp(100px, 12vw, 190px) 2.5vw 60px; background: var(--paper); }
.contact__label { display: flex; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-size: .58rem; }
.contact__cta { position: relative; display: block; margin: clamp(80px, 11vw, 170px) 0; padding-bottom: 25px; border-bottom: 2px solid #111; font-size: clamp(4.3rem, 10.8vw, 12rem); font-weight: 500; line-height: .77; letter-spacing: -.085em; }
.contact__cta span, .contact__cta em { display: block; }
.contact__cta em { font-family: var(--serif); font-weight: 400; }
.contact__cta i { position: absolute; right: 1%; bottom: 6%; font: normal .35em var(--sans); transition: transform .45s var(--ease); }
.contact__cta:hover i { transform: rotate(45deg); }
.contact__details { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.contact__details a { padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: clamp(1.1rem, 1.8vw, 1.7rem); }
.contact__details p { margin: 0; color: var(--muted); font-size: .75rem; }

footer { padding: 80px 2.5vw 30px; background: #111; color: var(--paper); }
.footer__logo { display: block; margin-bottom: 90px; font-size: clamp(5rem, 18.5vw, 20rem); font-weight: 600; line-height: .7; letter-spacing: -.09em; }
.footer__logo sup { font: 400 .06em var(--mono); vertical-align: top; letter-spacing: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 50px; color: #8f8e88; font-size: .7rem; }
.footer__links a:hover { color: white; }
.footer__bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); color: #686762; font-size: .54rem; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; }
  .header nav { display: none; }
  .hero h1 { font-size: clamp(4rem, 15vw, 8rem); }
  .positioning { grid-template-columns: 1fr 3fr; }
  .positioning__aside { grid-column: 2; max-width: 500px; }
  .selected__heading { grid-template-columns: 1fr 3fr; }
  .selected__heading > p { grid-column: 2; }
  .case { grid-template-columns: .25fr 1.5fr .8fr auto; }
  .case > p { font-size: .68rem; }
  .project-preview { display: none; }
  .index-section__title { grid-template-columns: 1fr 3fr; }
  .approach { gap: 4vw; }
}

@media (max-width: 640px) {
  .header { padding: 22px 18px; }
  .header__contact { font-size: 0; }
  .header__contact::before { content: "Hablemos"; font-size: .72rem; }
  .hero { min-height: 760px; padding: 90px 18px 22px; }
  .hero__eyebrow span:last-child { display: none; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 6rem); line-height: .78; }
  .hero__line--right { padding-right: 0; }
  .hero__line--serif { padding-left: .12em; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__bottom p { max-width: 38ch; }
  .hero__bottom a { min-width: 0; width: 100%; }
  .positioning { display: block; padding: 100px 18px; }
  .positioning__small { margin-bottom: 60px; }
  .positioning__lead { font-size: 13vw; }
  .positioning__aside { margin-top: 70px; }
  .selected { padding: 100px 14px; }
  .selected__heading { display: block; }
  .selected__heading > span { display: block; margin-bottom: 70px; }
  .selected__heading > p { margin-top: 35px; }
  .case { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; padding: 35px 4px; }
  .case:hover { padding-left: 4px; padding-right: 4px; background: transparent; color: var(--paper); }
  .case:hover .case__number, .case:hover .case__year { color: #8d8b86; }
  .case:hover .case__name span, .case:hover > p { color: #a4a29c; }
  .case__name h3 { font-size: 2.65rem; }
  .case__name span { display: block; max-width: 25ch; }
  .case > p { grid-column: 2/4; }
  .case__mobile-media { grid-column: 1/-1; display: block; height: 58vw; margin: 14px 0 0; overflow: hidden; background: var(--tone); }
  .case__mobile-media img { height: 100%; object-fit: cover; }
  .case__mobile-media--clava, .case__mobile-media--per { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; color: #111; }
  .case__mobile-media--clava strong { font-size: 20vw; line-height: .7; letter-spacing: -.1em; }
  .case__mobile-media--clava span, .case__mobile-media--per span { font: .6rem var(--mono); }
  .case__mobile-media--per { background: #16457f; color: white; }
  .case__mobile-media--per strong { font-size: 12vw; letter-spacing: -.08em; }
  .case__mobile-media--per i { position: absolute; right: 25px; bottom: 20px; font: normal 2rem var(--serif); }
  .index-section { padding: 100px 18px; }
  .index-section__title { display: block; }
  .index-section__title > span { display: block; margin-bottom: 70px; }
  .index-section__title h2 { font-size: 15vw; }
  .product-index__row { grid-template-columns: 1fr auto; gap: 7px 20px; padding: 24px 0; }
  .product-index__row span:first-child { font-size: 1.8rem; }
  .product-index__row span:nth-child(2) { justify-self: end; }
  .product-index__row span:nth-child(3) { grid-column: 1/3; }
  .product-index__row i { grid-column: 1/3; justify-self: start; margin-top: 8px; }
  .approach { display: block; padding: 100px 18px; }
  .approach__intro { position: static; }
  .approach__intro > span { margin-bottom: 70px; }
  .approach h2 { font-size: 14vw; }
  .approach__steps { margin-top: 100px; }
  .approach__steps li { min-height: 290px; }
  .approach__steps h3 { font-size: 10vw; }
  .statement { min-height: 650px; padding: 90px 18px 24px; }
  .statement > p { font-size: 14.5vw; }
  .statement__meta span:last-child { text-align: right; }
  .contact { padding: 100px 18px 45px; }
  .contact__label span:last-child { display: none; }
  .contact__cta { margin: 100px 0; font-size: 14vw; line-height: .82; }
  .contact__details { flex-direction: column; align-items: flex-start; }
  .contact__details a { font-size: .92rem; }
  footer { padding: 70px 18px 25px; }
  .footer__logo { margin-bottom: 65px; font-size: 19vw; }
  .footer__links { flex-direction: column; gap: 14px; }
  .footer__bottom { grid-template-columns: 1fr 1fr; }
  .footer__bottom span:nth-child(2) { text-align: right; }
  .footer__bottom span:last-child { grid-column: 1/3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__line > span { transform: none; }
}
