/* =========================================================
   MIGONI ARQUITECTOS — styles
   ========================================================= */

:root {
  --paper: #f3f0ea;
  --bone: #e8e3da;
  --stone: #8b857b;
  --stone-2: #b9b2a6;
  --ink: #121211;
  --graphite: #1c1c1a;
  --wood: #9a7352;
  --line: rgba(18, 18, 17, .14);
  --line-inv: rgba(243, 240, 234, .16);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Jost", system-ui, sans-serif;
  --f-logo: "Josefin Sans", "Jost", sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1680px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
html.is-loading body { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: italic; font-family: var(--f-display); font-weight: 300; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 14vw, 200px) 0; position: relative; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .idx { font-family: var(--f-display); font-style: italic; font-size: 15px; letter-spacing: .04em; text-transform: none; opacity: .6; }
.eyebrow .line { display: inline-block; width: 48px; height: 1px; background: currentColor; opacity: .7; }

.h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 6.2vw, 104px);
  line-height: .98;
  letter-spacing: -.02em;
}
.h2 em { color: var(--wood); }

.section-head { margin-bottom: clamp(48px, 7vw, 110px); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  gap: 32px;
  align-items: start;
}
.section-head--split .eyebrow { padding-top: 1.2em; }

/* split-line helper (JS wraps lines) */
.split-lines .sl { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-lines .sl > span { display: block; }

/* =========================================================
   Loader
   ========================================================= */
.loader { display: none; }
html.js .loader {
  display: flex;
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  color: var(--paper);
  align-items: center; justify-content: center;
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader__mark { width: 92px; height: auto; overflow: visible; }
.loader__mark path { stroke: var(--paper); stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.loader__word {
  font-family: var(--f-logo); font-weight: 200; font-size: 22px; letter-spacing: .42em;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding-left: .42em;
}
.loader__word span { font-size: 10px; letter-spacing: .62em; opacity: .65; padding-left: .62em; }
.loader__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) * .8);
  font-family: var(--f-display); font-weight: 300; font-size: clamp(56px, 9vw, 140px); line-height: 1;
  overflow: hidden;
}
.loader__count span { display: block; font-variant-numeric: lining-nums tabular-nums; }

/* =========================================================
   Cursor
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
  display: none;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s;
}
.cursor__label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
  color: var(--ink); opacity: 0; transition: opacity .25s;
}
.cursor.is-view {
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  mix-blend-mode: normal; background: var(--paper);
}
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
@media (hover: hover) and (pointer: fine) { html.js .cursor { display: block; } }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  color: var(--paper);
  transition: transform .6s var(--ease), padding .4s var(--ease), background-color .5s, color .5s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,9,.35), rgba(10,10,9,0));
  transition: opacity .5s;
}
.header.is-solid {
  color: var(--ink);
  background: rgba(243, 240, 234, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header.is-solid::before { opacity: 0; }
.header.is-solid.is-dark { color: var(--paper); background: rgba(18, 18, 17, .78); border-bottom-color: var(--line-inv); }
.header.is-solid.is-dark .nav__cta:hover { background: var(--paper); color: var(--ink); }
.header.is-solid .nav__cta:hover { background: var(--ink); color: var(--paper); }
.menu-open .header { color: var(--paper); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header.is-hidden { transform: translateY(-110%); }
.header.is-compact { padding-top: 16px; padding-bottom: 16px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 38px; height: auto; overflow: visible; }
.brand__mark path { stroke: currentColor; stroke-width: 3.4; stroke-linecap: square; }
.brand__word {
  font-family: var(--f-logo); font-weight: 200; font-size: 19px; letter-spacing: .34em; line-height: 1;
  display: flex; flex-direction: column; gap: 5px;
}
.brand__word small { font-size: 8.5px; letter-spacing: .58em; opacity: .8; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__link {
  font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  overflow: hidden; display: inline-block; height: 1.5em; line-height: 1.5em;
}
.nav__link span { display: block; position: relative; transition: transform .6s var(--ease); }
.nav__link span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.nav__link:hover span { transform: translateY(-100%); }
.nav__cta {
  font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 100px; padding: 10px 22px;
  transition: background-color .4s, color .4s;
}
.nav__cta:hover { background: var(--paper); color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.burger span { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(44px, 12vw, 76px); line-height: 1.08;
  display: flex; align-items: baseline; gap: 16px;
  transform: translateY(30px); opacity: 0;
  transition: transform .8s var(--ease-out), opacity .8s var(--ease-out);
}
.menu__nav a i { font-family: var(--f-sans); font-style: normal; font-size: 12px; letter-spacing: .2em; opacity: .5; }
.menu-open .menu__nav a { transform: none; opacity: 1; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: .31s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: .37s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: .43s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: .49s; }
.menu__foot { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .55; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  color: var(--paper); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,9,.45) 0%, rgba(10,10,9,0) 26%),
    linear-gradient(0deg, rgba(10,10,9,.78) 0%, rgba(10,10,9,.25) 45%, rgba(10,10,9,0) 70%);
}
.hero__content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
  padding-bottom: clamp(36px, 6vh, 72px);
}
.hero__eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.hero__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(54px, 10.4vw, 188px);
  line-height: .9; letter-spacing: -.025em;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .ln > span { display: block; }
.hero__title em { color: #e2cdb4; }
.hero__aside { max-width: 330px; padding-bottom: 1.2vw; display: flex; flex-direction: column; gap: 26px; }
.hero__aside p { font-size: 16px; line-height: 1.65; color: rgba(243,240,234,.82); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid currentColor; align-self: flex-start;
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

.hero__bar {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-inv);
  padding-top: 18px; padding-bottom: 22px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,240,234,.7);
}
.hero__bar::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: -1px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { display: block; width: 1px; height: 28px; background: rgba(243,240,234,.25); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--paper);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* =========================================================
   Studio
   ========================================================= */
.statement {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(30px, 4.3vw, 72px); line-height: 1.12; letter-spacing: -.012em;
  max-width: 1320px;
  text-indent: clamp(60px, 16vw, 300px);
}
.statement .w { display: inline; }

.studio__grid {
  margin-top: clamp(80px, 11vw, 180px);
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 130px); align-items: start;
}
.studio__img { margin: 0; aspect-ratio: 4 / 4.6; overflow: hidden; position: relative; }
.studio__img img { width: 100%; height: 118%; object-fit: cover; object-position: 30% 50%; }
.studio__text { padding-top: clamp(0px, 6vw, 110px); display: flex; flex-direction: column; gap: 22px; color: #3b3935; }
.studio__text .lead { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; color: var(--ink); }

.principles { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.principles li {
  display: grid; grid-template-columns: 44px 120px 1fr; gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.principles span { font-family: var(--f-display); font-style: italic; color: var(--stone); font-size: 17px; }
.principles h3 { font-family: var(--f-display); font-size: 28px; font-weight: 400; line-height: 1; }
.principles p { font-size: 15px; color: #57534c; }

/* reveal image (clip) */
.reveal-img { overflow: hidden; }

/* =========================================================
   Feature — horizontal
   ========================================================= */
.feature { background: var(--ink); color: var(--paper); position: relative; }
.feature__pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.feature__track {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: 0 var(--gutter); height: 100%;
  will-change: transform;
}
.feature__intro { flex: 0 0 auto; width: min(460px, 80vw); display: flex; flex-direction: column; gap: 26px; }
.feature__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(64px, 8.5vw, 150px); line-height: .88; letter-spacing: -.03em;
}
.feature__title em { color: #e2cdb4; }
.feature__desc { color: rgba(243,240,234,.72); font-size: 16px; line-height: 1.7; }
.specs { margin: 6px 0 0; border-top: 1px solid var(--line-inv); }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-inv); }
.specs dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,240,234,.5); padding-top: 3px; }
.specs dd { margin: 0; font-size: 15px; }
.feature__hint { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(243,240,234,.55); }
.feature__hint span { width: 56px; height: 1px; background: currentColor; position: relative; overflow: hidden; }

.panel { flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.panel__img { overflow: hidden; position: relative; }
.panel__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.panel--wide .panel__img { width: min(64vw, 1100px); height: min(62vh, 620px); }
.panel--tall .panel__img { width: min(40vw, 620px); height: min(74vh, 760px); }
.panel--tall .panel__img img { object-position: 62% 50%; }
.panel--mid .panel__img { width: min(52vw, 860px); height: min(68vh, 680px); }
.panel figcaption { display: flex; gap: 16px; align-items: baseline; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,240,234,.7); }
.panel figcaption span { font-family: var(--f-display); font-style: italic; font-size: 16px; letter-spacing: 0; color: #e2cdb4; }

.feature__end { flex: 0 0 auto; width: min(560px, 80vw); padding-right: 6vw; }
.feature__end p { font-family: var(--f-display); font-weight: 300; font-size: clamp(34px, 3.8vw, 64px); line-height: 1.1; }
.feature__end em { color: #e2cdb4; }

/* =========================================================
   Works
   ========================================================= */
.works__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2.4vw, 40px);
  row-gap: clamp(64px, 9vw, 140px);
}
.work { cursor: pointer; }
.work__img { position: relative; overflow: hidden; background: var(--bone); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.work:hover .work__img img { transform: scale(1.045); }
.work--a { grid-column: 1 / span 5; }
.work--a .work__img { aspect-ratio: 3 / 4; }
.work--b { grid-column: 7 / span 6; margin-top: 22vw; }
.work--b .work__img { aspect-ratio: 1 / 1; }
.work--b .work__img img { object-position: 50% 40%; }
.work--c { grid-column: 2 / span 7; }
.work--c .work__img { aspect-ratio: 16 / 10; }
.work--d { grid-column: 9 / span 4; margin-top: 14vw; }
.work--d .work__img { aspect-ratio: 4 / 5; }
.work--d .work__img img { object-position: 70% 50%; }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.work__meta h3 { font-family: var(--f-display); font-size: clamp(24px, 2vw, 32px); font-weight: 400; line-height: 1.1; }
.work__meta span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }

/* =========================================================
   Marquee
   ========================================================= */
.marquee { overflow: hidden; padding: clamp(20px, 3vw, 40px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(56px, 9vw, 160px); line-height: 1; white-space: nowrap;
  letter-spacing: -.02em;
}
.marquee__track i { font-style: normal; color: var(--wood); padding: 0 .25em; }

/* =========================================================
   Services
   ========================================================= */
.services { background: var(--ink); color: var(--paper); }
.services .h2 em { color: #e2cdb4; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-inv); }
.svc__row {
  position: relative;
  display: grid; grid-template-columns: 80px minmax(0, 1.25fr) minmax(0, 1fr) 56px; gap: 24px; align-items: center;
  padding: clamp(26px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--line-inv);
  transition: padding .6s var(--ease);
}
.svc__row::before {
  content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease); z-index: 0;
}
.svc__row > * { position: relative; z-index: 1; transition: color .5s var(--ease), transform .6s var(--ease); }
.svc__n { font-family: var(--f-display); font-style: italic; font-size: 18px; color: rgba(243,240,234,.5); }
.svc__t { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3.6vw, 60px); line-height: 1; letter-spacing: -.01em; }
.svc__d { font-size: 15px; color: rgba(243,240,234,.62); max-width: 40ch; }
.svc__a { width: 52px; height: 52px; border: 1px solid var(--line-inv); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.svc__a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
@media (hover: hover) {
  .svc__row:hover::before { transform: scaleY(1); }
  .svc__row:hover > * { color: var(--ink); }
  .svc__row:hover .svc__t { transform: translateX(18px); }
  .svc__row:hover .svc__a { border-color: var(--ink); transform: rotate(45deg); }
}
.svc__float {
  position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none;
  width: 300px; height: 210px; margin: -105px 0 0 -150px;
  overflow: hidden; opacity: 0; transform: scale(.6);
  display: none;
}
.svc__float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .svc__float { display: block; } }

/* =========================================================
   Process
   ========================================================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 56px); padding-top: 48px; }
.steps__line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.step { position: relative; display: flex; flex-direction: column; gap: 16px; }
.step::before { content: ""; position: absolute; top: -52px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.step__n { font-family: var(--f-display); font-weight: 300; font-size: clamp(64px, 6vw, 104px); line-height: .9; color: var(--stone-2); }
.step h3 { font-family: var(--f-display); font-size: clamp(28px, 2.4vw, 38px); font-weight: 400; line-height: 1; }
.step p { font-size: 15px; color: #57534c; max-width: 32ch; }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--graphite); color: var(--paper); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; opacity: .14; }
.contact__bg img { width: 100%; height: 120%; object-fit: cover; filter: grayscale(1); }
.contact__wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.contact__left { display: flex; flex-direction: column; gap: 36px; }
.contact__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(50px, 6.6vw, 116px); line-height: .95; letter-spacing: -.025em; }
.contact__title em { color: #e2cdb4; }
.contact__info { margin: 12px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-inv); }
.contact__info div { display: grid; grid-template-columns: 110px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line-inv); gap: 12px; }
.contact__info dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,240,234,.5); padding-top: 4px; }
.contact__info dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.contact__info a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact__info a:hover { background-size: 100% 1px; }

.form { display: flex; flex-direction: column; gap: 30px; padding-top: clamp(0px, 4vw, 70px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(243,240,234,.28);
  color: var(--paper); font: 300 18px/1.5 var(--f-sans); padding: 26px 0 12px; outline: none; resize: none; border-radius: 0;
  transition: border-color .4s;
}
.field label {
  position: absolute; left: 0; top: 26px; font-size: 16px; color: rgba(243,240,234,.55);
  pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease-out), color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--paper); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px) scale(.72); color: rgba(243,240,234,.75); letter-spacing: .06em;
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #d98c6a; }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,240,234,.5); margin-bottom: 14px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 20px; border: 1px solid rgba(243,240,234,.28); border-radius: 100px;
  font-size: 14px; transition: background-color .35s, color .35s, border-color .35s;
}
.chips label:hover span { border-color: var(--paper); }
.chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chips input:focus-visible + span { outline: 1px solid var(--paper); outline-offset: 3px; }

.btn {
  align-self: flex-start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 30px; border-radius: 100px; background: var(--paper); color: var(--ink);
  font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.btn__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; transition: transform .6s var(--ease); }
.btn__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.btn:hover .btn__icon { transform: rotate(-45deg); }
.form__legal { font-size: 13px; color: rgba(243,240,234,.55); margin-top: -12px; }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; }
.form__legal a:hover { color: var(--paper); }
.form__ok { font-family: var(--f-display); font-size: 22px; font-style: italic; color: #e2cdb4; min-height: 1.4em; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 130px) 0 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; padding-bottom: clamp(48px, 6vw, 90px); }
.footer__claim { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3vw, 48px); line-height: 1.1; max-width: 16ch; }
.footer__claim em { color: #e2cdb4; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,240,234,.7); }
.footer__nav a { transition: color .3s, transform .5s var(--ease); align-self: flex-start; }
.footer__nav a:hover { color: var(--paper); transform: translateX(6px); }
.footer__top-btn { width: 64px; height: 64px; border: 1px solid var(--line-inv); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color .4s, color .4s; }
.footer__top-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.footer__top-btn:hover { background: var(--paper); color: var(--ink); }
.footer__word {
  display: flex; justify-content: space-between;
  font-family: var(--f-logo); font-weight: 100; font-size: clamp(80px, 21.5vw, 380px); line-height: .8;
  letter-spacing: 0; margin: 0 -.03em; overflow: hidden; padding-top: .06em;
}
.footer__word span { display: block; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line-inv); margin-top: 36px; padding-top: 22px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,240,234,.5); }

.footer__bottom a:hover { color: var(--paper); }

/* =========================================================
   WhatsApp
   ========================================================= */
.wa {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 95;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: transform .5s var(--ease-out), opacity .4s, visibility .4s;
}
.wa svg { width: 30px; height: 30px; fill: currentColor; }
.wa:hover { transform: scale(1.08); }
html.is-loading .wa,
.menu-open .wa { opacity: 0; visibility: hidden; }
@media (max-width: 560px) { .wa { width: 52px; height: 52px; right: 16px; bottom: 16px; } }

/* =========================================================
   Páginas internas (aviso de privacidad, 404)
   ========================================================= */
.page__head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px var(--gutter); border-bottom: 1px solid var(--line);
}
.page__head .nav__cta:hover { background: var(--ink); color: var(--paper); }
.page__body { max-width: 860px; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(72px, 10vw, 140px); }
.page__body .h2 { margin: 22px 0 16px; }
.page__date { font-size: 13px; color: var(--stone); }
.legal { margin-top: clamp(40px, 6vw, 72px); }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); margin: 44px 0 12px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.page .footer { padding: 0 0 32px; background: transparent; color: inherit; }
.page .footer__bottom { margin-top: 0; color: var(--stone); border-top-color: var(--line); }
.page--dark { background: var(--ink); color: var(--paper); }
.notfound {
  min-height: 100vh; padding: 40px var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
}
.notfound__mark { width: 56px; margin-bottom: 12px; }
.notfound__code { font-family: var(--f-logo); font-weight: 200; letter-spacing: .5em; padding-left: .5em; opacity: .6; }
.notfound .h2 em { color: #e2cdb4; }
.notfound .nav__cta { margin-top: 14px; }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 180; background: rgba(12,12,11,.96); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; max-width: min(88vw, 1500px); display: flex; flex-direction: column; gap: 16px; transform: scale(.96); transition: transform .7s var(--ease-out); }
.lightbox.is-open .lightbox__fig { transform: none; }
.lightbox__fig img { max-height: 80vh; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.lightbox__fig figcaption { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,240,234,.6); text-align: center; }
.lightbox__close { position: absolute; top: 24px; right: var(--gutter); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; display: flex; gap: 12px; align-items: center; }
.lightbox__close span { font-size: 16px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 1px solid var(--line-inv); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color .3s, color .3s; }
.lightbox__nav:hover { background: var(--paper); color: var(--ink); }
.lightbox__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lightbox__prev { left: var(--gutter); }
.lightbox__next { right: var(--gutter); }

/* =========================================================
   Grain
   ========================================================= */
.grain {
  position: fixed; inset: -50%; z-index: 170; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 6%); } 80% { transform: translate(5%, -2%); } 100% { transform: translate(0, 0); }
}

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .svc__row { grid-template-columns: 56px 1fr 52px; }
  .svc__d { grid-column: 2 / 3; grid-row: 2; }
  .svc__a { grid-row: 1; grid-column: 3; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 72px; }
  .steps__line { display: none; }
  .step::before { display: none; }
  .step { border-top: 1px solid var(--line); padding-top: 24px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .burger { display: block; }
  .header { padding: 18px var(--gutter); }
  .brand__mark { width: 32px; }
  .brand__word { font-size: 16px; }

  .hero__content { grid-template-columns: 1fr; gap: 28px; }
  .hero__aside { max-width: 420px; }
  .hero__bar span:last-child { display: none; }

  .section-head--split { grid-template-columns: 1fr; gap: 20px; }
  .section-head--split .eyebrow { padding-top: 0; }

  .statement { text-indent: 0; }
  .studio__grid { grid-template-columns: 1fr; }
  .studio__text { padding-top: 0; }
  .principles li { grid-template-columns: 34px 96px 1fr; }

  /* feature becomes vertical */
  .feature__pin { height: auto; display: block; padding: 96px 0; }
  .feature__track { flex-direction: column; align-items: stretch; height: auto; gap: 48px; }
  .feature__intro, .feature__end { width: 100%; padding-right: 0; }
  .feature__hint { display: none; }
  .panel--wide .panel__img, .panel--tall .panel__img, .panel--mid .panel__img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .panel--tall .panel__img { aspect-ratio: 4 / 5; }

  .works__grid { grid-template-columns: 1fr; row-gap: 64px; }
  .work--a, .work--b, .work--c, .work--d { grid-column: 1 / -1; margin-top: 0; }
  .work__meta { flex-direction: column; gap: 6px; }

  .contact__wrap { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 30px; }

  .footer__top { grid-template-columns: 1fr auto; }
  .footer__nav { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; gap: 14px 24px; }

  .lightbox__nav { top: auto; bottom: 24px; transform: none; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 48px; }
  .svc__row { grid-template-columns: 40px 1fr; }
  .svc__a { display: none; }
  .principles li { grid-template-columns: 28px 1fr; }
  .principles li p { grid-column: 2; }
  .hero__bar span:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
