/* ==========================================================================
   Aerium Studio — v2
   Warm near-black, bone, brass. Archivo Expanded + Bodoni Moda italic.
   ========================================================================== */

:root {
  --ink: #0b0b0a;
  --carbon: #141412;
  --graphite: #1d1c19;
  --bone: #f2ede4;
  --bone-2: #d8d2c6;
  --mist: #a7a296;
  --line: rgba(242, 237, 228, 0.12);
  --line-2: rgba(242, 237, 228, 0.22);
  --brass: #c9a961;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --inset: 8px;
  --r-panel: 24px;
  --r-card: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 76px;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-color: #3a3833 var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--brass);
}

::selection { background: var(--brass); color: var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #34322d; border-radius: 10px; border: 2px solid var(--ink); }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
em { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display,
.hero__title,
.works__title,
.contact__title,
.flight__line span,
.svc__name,
.stack h3 {
  font-family: var(--f-sans);
  font-stretch: 116%;
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
  margin: 0;
}
.display { font-size: clamp(2.3rem, 5.2vw, 5.2rem); }

.display em,
.hero__title em,
.contact__title em,
.flight__line em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: -0.03em;
  font-size: 1.02em;
  line-height: 0.9;
}

/* ---------- Pills & round buttons ---------- */
.pill {
  --pill-bg: var(--bone);
  --pill-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 7px 0 24px;
  border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-fg);
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.pill--ghost {
  --pill-bg: rgba(11, 11, 10, 0.42);
  --pill-fg: var(--bone);
  border: 1px solid rgba(242, 237, 228, 0.42);
  padding: 0 24px 0 18px;
}
.pill--ghost:hover { --pill-bg: rgba(11, 11, 10, 0.5); border-color: var(--bone); }
.pill--light:has(.pill__icon) { padding: 0 26px 0 20px; }
.pill--block { width: 100%; justify-content: center; }

.pill__dot {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--bone);
  font-size: 18px;
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.pill:hover .pill__dot { transform: rotate(45deg); background: var(--brass); color: var(--ink); }
.pill__icon { display: grid; place-items: center; font-size: 20px; }

.roll { display: inline-flex; flex-direction: column; height: 1.3em; line-height: 1.3; overflow: hidden; vertical-align: top; }
.roll > span { transition: transform .5s var(--ease); }
.pill:hover .roll > span,
a:hover > .roll > span { transform: translateY(-100%); }

.round {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--bone); font-size: 20px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.round:hover { border-color: var(--bone); }
.round:active { transform: scale(.94); }
.round--light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.round--light:hover { background: var(--brass); border-color: var(--brass); }
.round:disabled { opacity: .35; cursor: default; }

.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--bone);
  border-bottom: 1px solid var(--line-2); padding-bottom: 6px;
  transition: border-color .35s var(--ease), gap .35s var(--ease);
}
.textlink svg { font-size: 18px; color: var(--brass); }
.textlink:hover { border-color: var(--brass); gap: 16px; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: var(--ink);
}
.js.is-ready .loader { display: none; }
html.is-loading, html.is-loading body { overflow: hidden; }

.loader__inner { width: min(560px, 78vw); display: flex; flex-direction: column; align-items: center; }
.loader__mark { width: 44%; }
.loader__mark img { width: 100%; height: auto; }
.loader__horizon { display: block; width: 100%; height: 1px; margin: 26px 0 22px; background: linear-gradient(90deg, transparent, var(--brass) 18%, var(--brass) 82%, transparent); transform: scaleX(0); }
.loader__word { width: 100%; }
.loader__word img, .loader__tag img { width: 100%; height: auto; }
.loader__tag { width: 72%; margin-top: 16px; }
.loader__alt {
  position: absolute; left: var(--gutter); bottom: 28px; margin: 0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--mist);
}
.loader__alt b { color: var(--bone); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 60;
  top: calc(var(--inset) + 10px); left: calc(var(--inset) + 10px); right: calc(var(--inset) + 10px);
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 calc(var(--gutter) - 18px) 0 calc(var(--gutter) - 18px);
  border-radius: 18px;
  border: 1px solid transparent;
  transition: transform .6s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), -webkit-backdrop-filter .5s, backdrop-filter .5s;
}
.nav.is-solid {
  background: rgba(13, 13, 12, 0.78);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav__logo { justify-self: start; display: block; width: 118px; }
.nav__logo img { width: 100%; height: auto; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-weight: 500; font-size: 15px; color: var(--bone-2);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav__links a:hover { color: var(--bone); background: rgba(242, 237, 228, 0.08); }
.nav__links a.is-active { color: var(--bone); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--brass);
}
.nav__cta { justify-self: end; height: 48px; font-size: 14.5px; padding-left: 20px; }
.nav__cta .pill__dot { width: 36px; height: 36px; font-size: 16px; }
.nav__menu { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ink);
  padding: calc(var(--nav-h) + 48px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-stretch: 116%; font-weight: 560; letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.15;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.menu__foot { display: grid; gap: 10px; color: var(--mist); font-size: 15px; }

/* ---------- Hero ---------- */
.hero { height: 100svh; min-height: 640px; padding: var(--inset); }
.hero__frame {
  position: relative; height: 100%;
  border-radius: var(--r-panel); overflow: hidden;
  background: #2a2c2e url("assets/video/hero-cielo-poster.jpg") center / cover;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 10, 0.5) 0%, rgba(11, 11, 10, 0) 24%),
    linear-gradient(0deg, rgba(11, 11, 10, 0.9) 0%, rgba(11, 11, 10, 0.62) 32%, rgba(11, 11, 10, 0.1) 62%, rgba(11, 11, 10, 0) 78%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 92px;
  padding-inline: var(--gutter);
}
.hero__title { font-size: clamp(2.75rem, 6.6vw, 6rem); max-width: 15ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: block; }
.hero__row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-top: 30px;
}
.hero__lede { margin: 0; max-width: 44ch; color: var(--bone-2); font-size: 17.5px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hud {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--bone-2);
}
.hud__place { text-align: right; line-height: 1.7; color: var(--bone); }
.hud__alt b { font-size: 26px; font-weight: 500; letter-spacing: 0; color: var(--bone); font-variant-numeric: tabular-nums; }
.hud__scale {
  position: relative; width: 1px; height: 160px; background: var(--line-2);
}
.hud__scale::before {
  content: ""; position: absolute; inset: 0 -6px;
  background: repeating-linear-gradient(180deg, var(--line-2) 0 1px, transparent 1px 16px);
  -webkit-mask: linear-gradient(90deg, #000 0 4px, transparent 4px calc(100% - 4px), #000 calc(100% - 4px));
  mask: linear-gradient(90deg, #000 0 4px, transparent 4px calc(100% - 4px), #000 calc(100% - 4px));
}
.hud__scale i {
  position: absolute; left: -5px; bottom: var(--alt-p, 0%); width: 11px; height: 2px; background: var(--brass);
  transition: bottom .2s linear;
}

.hero__index {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-2);
  margin-inline: var(--gutter);
}
.hero__index a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 20px 12px 22px 0;
  font-size: 14px; font-weight: 500; color: var(--bone-2);
  transition: color .3s var(--ease);
}
.hero__index a span { font-family: var(--f-mono); font-size: 13px; color: var(--mist); letter-spacing: 0.04em; }
.hero__index a:hover { color: var(--bone); }

/* ---------- Studio ---------- */
.studio { padding-top: clamp(110px, 15vw, 220px); overflow: hidden; }
.studio__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: end;
}
.studio__title { grid-column: 1 / span 8; }
.studio__side { grid-column: 9 / span 4; display: grid; gap: 22px; justify-items: start; padding-bottom: 8px; }
.studio__side p { margin: 0; color: var(--mist); font-size: 18px; max-width: 34ch; }

.studio__numbers {
  margin-top: clamp(64px, 9vw, 120px); margin-bottom: 0;
  font-size: clamp(1.45rem, 3.1vw, 2.9rem); line-height: 1.22; letter-spacing: -0.02em;
  font-weight: 400; color: var(--mist);
  padding-right: max(var(--gutter), 16vw);
  text-wrap: pretty;
}
.num {
  display: inline-flex; color: var(--bone);
  font-weight: 600; font-stretch: 112%;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  border-bottom: 2px solid var(--brass);
  line-height: 1.05;
}
.num .odo { display: inline-block; height: 1.05em; overflow: hidden; vertical-align: bottom; }
.num .odo > span { display: flex; flex-direction: column; }
.num .odo > span > span { height: 1.05em; }

.wall {
  margin-top: clamp(72px, 10vw, 140px);
  display: grid; gap: 14px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wall__row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.wall__row:nth-child(1) { transform: translateX(-6%); }
.wall__row:nth-child(2) { transform: translateX(-22%); }
.wall__row:nth-child(3) { transform: translateX(-10%); }
.wall img {
  height: clamp(150px, 21vw, 330px); width: auto; aspect-ratio: 16 / 10;
  object-fit: cover; border-radius: 18px;
  background: var(--graphite);
}
.wall img[width="1120"] { aspect-ratio: 4 / 5; }

/* ---------- Works / coverflow ---------- */
.works { padding-top: clamp(120px, 15vw, 220px); }
.works__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 32px;
}
.works__head > * { min-width: 0; }
.works__title {
  font-size: clamp(2.4rem, 8.4vw, 8.6rem);
  font-stretch: 125%; font-weight: 600; letter-spacing: -0.04em; line-height: 0.85;
  text-transform: uppercase;
}
.works__note { margin: 0 0 6px auto; max-width: 28ch; color: var(--mist); font-size: 17px; }
.works__note em { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: 1.55em; line-height: 1.1; color: var(--bone); margin-bottom: 10px; }

.flow { margin-top: clamp(24px, 3vw, 44px); overflow: hidden; padding-block: 20px 0; }
.flow__stage {
  position: relative;
  height: clamp(400px, 37vw, 580px);
  perspective: 1800px;
  outline: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.flow__stage:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; border-radius: 24px; }
.flow__track { list-style: none; margin: 0; padding: 0; position: relative; height: 100%; transform-style: preserve-3d; }
.flow__card {
  --w: clamp(270px, 27vw, 420px);
  position: absolute; left: 50%; top: 50%;
  width: var(--w); aspect-ratio: 4 / 5;
  margin-left: calc(var(--w) / -2);
  margin-top: calc(var(--w) * -0.625);
  transform-style: preserve-3d;
  will-change: transform;
}
.flow__btn {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: var(--r-card); overflow: hidden;
  background: var(--graphite);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  text-align: left;
}
.flow__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); pointer-events: none; }
.flow__btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(11, 11, 10, 0.78) 0%, rgba(11, 11, 10, 0) 46%);
}
.flow__btn::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: var(--ink); opacity: var(--dim, 0);
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.flow__card.is-active .flow__btn:hover img { transform: scale(1.06); }
.flow__tag {
  position: absolute; z-index: 3; left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(11, 11, 10, 0.72);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
}
.flow__tag svg { font-size: 15px; color: var(--bone); }
.flow__tag, .flow__name { transition: opacity .5s var(--ease); }
.flow__card:not(.is-active) .flow__tag, .flow__card:not(.is-active) .flow__name { opacity: 0; }
.flow__name {
  position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 18px;
  font-stretch: 112%; font-weight: 560; letter-spacing: -0.025em; line-height: 1.05;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}
.flow__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
.flow__count { margin: 0; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--mist); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.flow__count b { color: var(--bone); font-weight: 500; font-size: 22px; }
.flow__current { margin-left: 14px; font-family: var(--f-sans); letter-spacing: -0.01em; font-size: 16px; color: var(--bone-2); }
.flow__arrows { display: flex; gap: 10px; }

/* No-JS: plain horizontal scroll */
html:not(.js) .flow__stage { height: auto; perspective: none; }
html:not(.js) .flow__track { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--gutter) 16px; scroll-snap-type: x mandatory; }
html:not(.js) .flow__card { position: relative; left: auto; top: auto; margin: 0; flex: none; scroll-snap-align: center; }
html:not(.js) .flow__arrows { display: none; }

/* ---------- Services ---------- */
.services { margin-top: clamp(120px, 15vw, 220px); padding-inline: var(--inset); }
.panel {
  position: relative;
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding-block: clamp(80px, 10vw, 140px);
}
.services__head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.services__head .display { grid-column: 1 / span 8; }
.services__head p { grid-column: 9 / span 4; margin: 0; color: var(--mist); max-width: 34ch; }

.svc { list-style: none; margin-top: 0; margin-bottom: 0; border-top: 1px solid var(--line); }
.svc__item {
  position: relative;
  display: grid; grid-template-columns: 72px minmax(0, max-content) minmax(0, 1fr) minmax(0, 30ch); gap: 24px; align-items: center;
  padding-block: clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.svc__no { font-family: var(--f-mono); font-size: 13px; color: var(--mist); letter-spacing: 0.08em; align-self: start; padding-top: 0.9em; }
.svc__name {
  font-size: clamp(1.75rem, 3.9vw, 3.6rem);
  color: var(--bone-2);
  transition: color .45s var(--ease), transform .6s var(--ease);
}
.svc__desc { grid-column: 4; margin: 0; color: var(--mist); font-size: 15.5px; line-height: 1.55; transition: color .45s var(--ease); }
.svc__thumb {
  grid-column: 3; grid-row: 1; justify-self: start;
  width: clamp(110px, 11vw, 160px); height: clamp(72px, 7vw, 104px); object-fit: cover; border-radius: 14px;
  opacity: 0; transform: rotate(-4deg) scale(.9);
  clip-path: inset(0 100% 0 0 round 14px);
  transition: clip-path .7s var(--ease), opacity .45s var(--ease), transform .7s var(--ease);
}
.svc__item:hover .svc__name, .svc__item:focus-within .svc__name { color: var(--bone); transform: translateX(14px); }
.svc__item:hover .svc__desc { color: var(--bone-2); }
.svc__item:hover .svc__thumb { clip-path: inset(0 0 0 0 round 14px); opacity: 1; transform: none; }

/* ---------- Flight (wide visual) ---------- */
.flight { position: relative; height: 230vh; margin-top: clamp(80px, 10vw, 140px); }
.flight__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.flight__window {
  position: absolute; inset: 0;
  clip-path: inset(var(--ci-y, 16%) var(--ci-x, 22%) round var(--ci-r, 28px));
  background: #24302a url("assets/video/laguna-vuelo-1080-poster.jpg") center / cover;
}
.flight__video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--fv-s, 1.18)); }
.flight__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 10, 0.25) 0%, rgba(11, 11, 10, 0.62) 34%, rgba(11, 11, 10, 0.62) 66%, rgba(11, 11, 10, 0.4) 100%); }
.flight__line {
  position: relative; z-index: 2; margin: 0; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.flight__line span { font-size: clamp(3rem, 11vw, 10rem); text-transform: uppercase; font-stretch: 125%; font-weight: 600; letter-spacing: -0.04em; line-height: .9; }
.flight__line em { font-size: clamp(2.8rem, 9vw, 8rem); margin-top: -0.04em; }
.flight__caption {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 28px; margin: 0;
  font-size: 14.5px; color: var(--bone); max-width: 46ch;
  padding: 8px 14px; border-radius: 999px; background: rgba(11, 11, 10, 0.7);
}
html:not(.js) .flight { height: auto; }
html:not(.js) .flight__pin { position: relative; }
html:not(.js) .flight__window { clip-path: none; }

/* ---------- Panorama ---------- */
.pano { padding-top: clamp(110px, 14vw, 200px); }
.pano__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.pano__head .display { grid-column: 1 / span 7; }
.pano__head p { grid-column: 9 / span 4; margin: 0; color: var(--mist); max-width: 36ch; }
.pano__frame { position: relative; }
.pano__viewer {
  position: relative;
  height: clamp(420px, 66vh, 760px);
  border-radius: var(--r-panel); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--graphite);
}
.pano__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pano__start {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  font-weight: 600; font-size: 16px;
  background: rgba(11, 11, 10, 0.32);
  transition: background-color .4s var(--ease);
}
.pano__start:hover { background: rgba(11, 11, 10, 0.18); }
.pano__start-ring {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--bone); color: var(--ink); font-size: 36px;
  box-shadow: 0 0 0 10px rgba(242, 237, 228, 0.16);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pano__start:hover .pano__start-ring { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(242, 237, 228, 0.12); }
.pano__viewer.is-live .pano__start, .pano__viewer.is-live .pano__fallback { display: none; }
.pano__ui { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.pano__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pano__tabs button {
  height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--bone-2); font-size: 14.5px; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.pano__tabs button:hover { border-color: var(--bone); color: var(--bone); }
.pano__tabs button[aria-selected="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.pano__links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pano__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--mist);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.pano__more svg { font-size: 16px; transition: transform .4s var(--ease); }
.pano__more:hover { color: var(--bone); border-color: var(--line-2); }
.pano__more:hover svg { transform: translate(2px, -2px); }
.pano__hint {
  position: absolute; z-index: 4; top: 18px; right: calc(var(--gutter) + 18px); margin: 0;
  display: none; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(11, 11, 10, 0.6);
  font-size: 13px; color: var(--bone-2); pointer-events: none;
}
.pano__frame.is-live .pano__hint { display: inline-flex; }
/* Pannellum chrome */
.pano__viewer .pnlm-container { background: var(--graphite); font-family: var(--f-sans); }
.pano__viewer .pnlm-load-box { background: rgba(11, 11, 10, 0.8); border-radius: 14px; }
.pano__viewer .pnlm-lbar-fill { background: var(--brass); }
.pano__viewer .pnlm-controls { background: var(--bone); border: 0; border-radius: 12px; }
.pano__viewer .pnlm-about-msg { display: none !important; }

/* ---------- Process stack ---------- */
.process { padding-top: clamp(120px, 15vw, 220px); }
.process__head { margin-bottom: clamp(40px, 6vw, 80px); }
.stack { list-style: none; margin-top: 0; margin-bottom: 0; }
.stack__card {
  position: sticky; top: calc(var(--nav-h) + 40px + var(--i, 0) * 22px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
  height: min(68vh, 600px);
  padding: clamp(24px, 3vw, 40px);
  margin-bottom: 7vh;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, 0.85);
  transform-origin: 50% 0;
}
.stack__card:last-child { margin-bottom: 0; }
.stack__card:nth-child(1) { --i: 0; }
.stack__card:nth-child(2) { --i: 1; }
.stack__card:nth-child(3) { --i: 2; }
.stack__card:nth-child(4) { --i: 3; }
.stack__text { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 8px 0; }
.stack__n { margin-right: 0.28em; color: var(--mist); font-variant-numeric: tabular-nums; }
.stack h3 { font-size: clamp(2rem, 4.4vw, 4.2rem); margin-top: auto; }
.stack__text p { margin-bottom: 8px; }
.stack p { margin: 0; color: var(--mist); font-size: 18px; max-width: 34ch; }
.stack__card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 16px; }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden;
  margin-top: clamp(120px, 15vw, 220px);
  padding-block: clamp(120px, 14vw, 200px) clamp(110px, 12vw, 170px);
  isolation: isolate;
}
.contact__sky { position: absolute; inset: 0; z-index: -1; }
.contact__bg { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.contact__sky::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(11, 11, 10, 0.55) 26%, rgba(11, 11, 10, 0.55) 70%, var(--ink) 100%),
    rgba(11, 11, 10, 0.2);
}
.contact__cloud { position: absolute; z-index: 1; width: min(62vw, 880px); height: auto; opacity: .55; pointer-events: none; }
.contact__cloud--l { left: -12vw; bottom: 4%; }
.contact__cloud--r { right: -14vw; top: 14%; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
.contact__intro { grid-column: 1 / span 7; }
.contact__title { font-size: clamp(2.6rem, 6vw, 6rem); max-width: 13ch; }
.contact__intro > p { margin: 28px 0 0; max-width: 42ch; color: var(--bone-2); font-size: 18px; }

.channels { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: 720px; }
.channels a {
  display: flex; gap: 14px; align-items: center;
  padding: 18px 0; border-top: 1px solid var(--line-2);
  transition: color .3s var(--ease);
}
.channels svg { font-size: 22px; color: var(--bone-2); }
.channels span { display: grid; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.channels small { font-size: 13.5px; color: var(--mist); font-weight: 400; }
.channels a:hover span { color: var(--brass); }

.brief {
  grid-column: 9 / span 4;
  display: grid; gap: 18px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 22px;
  background: rgba(13, 13, 12, 0.9);
  border: 1px solid var(--line-2);
}
.brief__title { margin: 0 0 4px; font-stretch: 112%; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--bone-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--bone);
  background: rgba(242, 237, 228, 0.05);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 14px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23c9a961' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  padding-right: 40px;
}
.field select option { background: var(--carbon); color: var(--bone); }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #8f8a80; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(242, 237, 228, 0.36); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: rgba(242, 237, 228, 0.08); }
.field.has-error input { border-color: #e2836b; }
.field__error { margin: 0; font-size: 13.5px; color: #f0a48f; }
.brief__note { margin: 0; font-size: 13.5px; color: var(--mist); text-align: center; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; padding-top: clamp(80px, 10vw, 130px); border-top: 1px solid var(--line); }
.footer__glow {
  position: absolute; z-index: 0; left: 8%; top: 0; width: 46vw; height: 46vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0) 65%);
  transform: translate(-50%, -50%); pointer-events: none;
}
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 2fr)); gap: 40px; align-items: start; }
.footer__logo { display: block; width: min(440px, 78vw); }
.footer__logo img { width: 100%; height: auto; }
.footer__col { display: grid; gap: 10px; justify-items: start; }
.footer__col p { margin: 0 0 6px; font-size: 14px; color: var(--mist); }
.footer__col a { color: var(--bone-2); transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--brass); }
.footer__base {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(64px, 8vw, 110px); padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--mist);
}
.footer__base a:hover { color: var(--bone); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--bone); color: var(--ink); font-size: 27px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .3s var(--ease);
}
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--brass); }

/* ---------- Viewer dialog ---------- */
.viewer {
  width: min(1320px, calc(100% - 24px)); height: min(860px, calc(100svh - 24px));
  max-width: none; max-height: none;
  padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-panel);
  background: var(--carbon); color: var(--bone);
  overflow: hidden;
}
.viewer::backdrop { background: rgba(5, 5, 4, 0.88); }
.viewer[open] { animation: viewer-in .6s var(--ease); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.viewer__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
.viewer__media { position: relative; background: #000; min-height: 0; }
.viewer__media img, .viewer__media video { width: 100%; height: 100%; object-fit: contain; }
.viewer__media iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
.viewer__media[data-kind="tour"]::before {
  content: "Cargando tour 360°…"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist);
}
.viewer__info { display: flex; flex-direction: column; gap: 18px; justify-content: flex-end; padding: 32px; border-left: 1px solid var(--line); }
.viewer__cat { margin: -6px 0 0; font-size: 15px; font-weight: 500; color: var(--bone-2); }
.viewer__title { margin: 0; font-stretch: 116%; font-weight: 560; letter-spacing: -0.03em; line-height: 1; font-size: clamp(2rem, 3vw, 2.8rem); }
.viewer__desc { margin: 0 0 10px; color: var(--mist); }
.viewer__close { position: absolute; top: 16px; right: 16px; z-index: 3; background: rgba(11, 11, 10, 0.6); }

/* ---------- Reveal (JS sets initial state) ---------- */
.js [data-reveal] { will-change: transform, opacity, filter; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links { justify-self: center; }
  .hero__index a { font-size: 13px; }
  .hero__index a span { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; --inset: 6px; --r-panel: 20px; }
  .nav { grid-template-columns: 1fr auto auto; gap: 10px; padding: 0 12px 0 16px; top: calc(var(--inset) + 6px); left: calc(var(--inset) + 6px); right: calc(var(--inset) + 6px); }
  .nav__links { display: none; }
  .nav__logo { width: 96px; }
  .nav__cta { display: none; }
  .nav__menu {
    display: inline-flex; align-items: center; gap: 12px;
    height: 44px; padding: 0 8px 0 18px; border-radius: 999px;
    background: var(--bone); color: var(--ink); font-weight: 600; font-size: 15px;
  }
  .nav__burger { position: relative; display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); }
  .nav__burger i { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--bone); transition: transform .4s var(--ease), top .4s var(--ease); }
  .nav__burger i:first-child { top: 12px; }
  .nav__burger i:last-child { top: 17px; }
  .nav__menu[aria-expanded="true"] .nav__burger i:first-child { top: 14.5px; transform: rotate(45deg); }
  .nav__menu[aria-expanded="true"] .nav__burger i:last-child { top: 14.5px; transform: rotate(-45deg); }

  .hero { min-height: 600px; }
  .hero__content { bottom: 32px; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 20px; }
  .hero__lede { font-size: 16px; }
  .hud { top: calc(var(--nav-h) + 40px); transform: none; gap: 8px; }
  .hud__scale, .hud__coord, .hud__place { display: none; }
  .hud__alt b { font-size: 20px; }
  .hero__index { display: none; }

  .studio__grid, .services__head, .pano__head, .contact__grid { grid-template-columns: 1fr; gap: 24px; }
  .studio__title, .studio__side, .services__head .display, .services__head p, .pano__head .display, .pano__head p, .contact__intro, .brief { grid-column: 1 / -1; }

  .works__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .flow__stage { height: calc(min(74vw, 340px) * 1.25 + 36px); }
  .works__note { margin-left: 0; }
  .flow__card { --w: min(74vw, 340px); }
  .flow__current { display: none; }

  .svc__item { grid-template-columns: minmax(0, 1fr) 84px; gap: 6px 16px; align-items: start; }
  .svc__no { display: none; }
  .svc__name { grid-column: 1; transform: none !important; color: var(--bone); }
  .svc__desc { grid-column: 1 / -1; grid-row: 2; font-size: 15px; padding-right: 76px; }
  .svc__thumb { display: block; opacity: 1; transform: none; transition: none; clip-path: none; grid-column: 2; grid-row: 1; width: 84px; height: 84px; object-fit: cover; border-radius: 12px; align-self: center; }

  .flight { height: 190vh; }
  .flight__caption { right: var(--gutter); }

  .pano__viewer { height: min(70svh, 560px); }
  .pano__ui { flex-direction: column; align-items: stretch; }
  .pano__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .pano__tabs button { flex: none; }
  .pano__links { justify-content: space-between; }
  .pano__hint { right: calc(var(--gutter) + 12px); top: 12px; }

  .stack__card { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); min-height: 0; height: min(76svh, 640px); top: calc(var(--nav-h) + 24px + var(--i, 0) * 14px); margin-bottom: 5vh; }
  .stack__text { gap: 12px; padding: 0; }
  .stack h3 { margin-top: 6px; }
  .stack p { font-size: 16px; }

  .channels { grid-template-columns: 1fr; }
  .contact__cloud { width: 110vw; opacity: .28; }
  .contact__cloud--r { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }

  .viewer { width: 100%; height: 100svh; max-height: 100svh; border-radius: 0; border: 0; }
  .viewer__inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .viewer__info { border-left: 0; border-top: 1px solid var(--line); padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); gap: 12px; }
  .viewer__desc { font-size: 15px; margin-bottom: 4px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: clamp(2.35rem, 11vw, 2.75rem); }
  .hero__actions { width: 100%; }
  .hero__actions .pill { flex: 1 1 auto; justify-content: space-between; }
  .pill--ghost { justify-content: center; }
  .footer__base { flex-direction: column; gap: 8px; }
}

@media (hover: none) {
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .flight { height: auto; }
  .flight__pin { position: relative; height: 90svh; }
  .flight__window { clip-path: none; }
  .flight__video { transform: none; }
  .stack__card { position: relative; top: auto; }
  .wall__row { transform: none !important; }
}
