:root {
  --color-ivory: #f6f1e8;
  --color-ivory-soft: #fbf8f1;
  --color-stone: #e8ded0;
  --color-anthracite: #242321;
  --color-charcoal: #3a3732;
  --color-sand: #c8a978;
  --color-oak: #d8be97;
  --color-bronze: #a37b45;
  --color-border: rgba(36, 35, 33, 0.16);
  --color-border-soft: rgba(36, 35, 33, 0.1);
  --color-warm-shadow: rgba(36, 35, 33, 0.14);
  --shadow-soft: 0 34px 110px rgba(36, 35, 33, 0.16);
  --shadow-card: 0 22px 64px rgba(36, 35, 33, 0.12);
  --shadow-cinematic: 0 44px 140px rgba(36, 35, 33, 0.2);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1180px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.25rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* PHASE5P_GLOBAL_MOTION_TUNING */
  --motion-odecor-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-odecor-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-odecor-slow: 1100ms;
  --motion-odecor-medium: 760ms;
  --motion-odecor-fast: 420ms;
  --odecor-image-crossfade-duration: 1250ms;
  --odecor-image-crossfade-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-anthracite);
  background:
    radial-gradient(circle at 15% 2%, rgba(216, 190, 151, 0.22), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(163, 123, 69, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--color-ivory-soft), var(--color-ivory) 46%, var(--color-stone));
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(36, 35, 33, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 35, 33, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 9.5%, rgba(163, 123, 69, 0.055) 9.5% 9.6%, transparent 9.6% 100%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 78%);
}

.cinematic-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 246, 222, 0.34), transparent 28rem),
    radial-gradient(circle at 78% 8%, rgba(200, 169, 120, 0.16), transparent 32rem),
    linear-gradient(180deg, rgba(251, 248, 241, 0.2), rgba(36, 35, 33, 0.03));
  mix-blend-mode: multiply;
}

.cinematic-atmosphere::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 28% 42%, rgba(36, 35, 33, 0.16) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 72% 28%, rgba(251, 248, 241, 0.5) 0 0.6px, transparent 0.7px);
  background-size: 4px 4px, 5px 5px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--color-bronze);
  outline-offset: 4px;
}

::selection {
  color: var(--color-ivory-soft);
  background: var(--color-bronze);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--color-ivory-soft);
  background: var(--color-anthracite);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform 240ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--space-3xl);
}

.section-anchor {
  scroll-margin-top: 6rem;
}

.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--color-bronze);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-anthracite);
  hyphens: none;
  overflow-wrap: normal;
}

p,
li,
dd {
  overflow-wrap: break-word;
}

h2 {
  max-width: 15ch;
  font-size: 4rem;
  line-height: 0.95;
}

h3 {
  font-size: 1.65rem;
  line-height: 1.05;
}

.section-heading {
  max-width: 760px;
  margin-bottom: var(--space-xl);
}

.section-heading p:not(.section-kicker),
.section-heading--split > p {
  max-width: 660px;
  margin: 1.2rem 0 0;
  color: rgba(36, 35, 33, 0.72);
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.66fr);
  gap: var(--space-xl);
  align-items: end;
  max-width: none;
}

.section-heading--narrow {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.section-heading--narrow h2 {
  margin-inline: auto;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.86rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 260ms var(--ease-out),
    background-color 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    color 260ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--color-ivory-soft);
  background: var(--color-anthracite);
  border-color: var(--color-anthracite);
}

.button--primary:hover {
  color: var(--color-ivory-soft);
  background: var(--color-charcoal);
}

.button--ghost {
  color: var(--color-anthracite);
  background: rgba(251, 248, 241, 0.58);
  border-color: var(--color-border);
}

.button--ghost:hover {
  border-color: rgba(163, 123, 69, 0.5);
  background: rgba(232, 222, 208, 0.55);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(36, 35, 33, 0.1);
  background:
    linear-gradient(90deg, rgba(251, 248, 241, 0.9), rgba(246, 241, 232, 0.76)),
    rgba(246, 241, 232, 0.82);
  backdrop-filter: blur(20px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  width: min(100% - 2rem, 1320px);
  min-height: 72px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  font-weight: 800;
}

.brand__image {
  display: block;
  width: clamp(9.4rem, 12vw, 11.6rem);
  height: auto;
  max-height: 3rem;
  object-fit: contain;
  object-position: left center;
}

.brand__symbol {
  display: inline-grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: var(--color-ivory-soft);
  background:
    linear-gradient(135deg, rgba(251, 248, 241, 0.12), transparent),
    var(--color-anthracite);
  border: 1px solid rgba(36, 35, 33, 0.22);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(36, 35, 33, 0.14);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1;
}

.brand__lockup {
  display: grid;
  gap: 0.12rem;
  line-height: 1;
}

.brand__descriptor {
  color: rgba(36, 35, 33, 0.54);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand__logo {
  display: block;
  width: clamp(8.8rem, 12vw, 12.4rem);
  height: auto;
  max-height: 3.2rem;
  object-fit: contain;
  object-position: left center;
}

.brand__mark {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  color: var(--color-ivory-soft);
  background: var(--color-anthracite);
  border: 1px solid rgba(246, 241, 232, 0.34);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.brand__name {
  color: var(--color-anthracite);
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  padding: 0.75rem 0.85rem;
  color: rgba(36, 35, 33, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 220ms var(--ease-out);
}

.site-nav a::after {
  position: absolute;
  right: 0.85rem;
  bottom: 0.55rem;
  left: 0.85rem;
  height: 1px;
  background: var(--color-bronze);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-out);
}

.site-nav a:hover {
  color: var(--color-anthracite);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  color: var(--color-ivory-soft);
  background: var(--color-anthracite);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    background-color 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.header-cta:hover {
  background: var(--color-charcoal);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-anthracite);
  transition:
    transform 240ms var(--ease-out),
    opacity 240ms var(--ease-out);
}

.menu-toggle span + span {
  margin-top: -16px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* PHASE3E_HERO_VISUAL_CAROUSEL — visual showroom carousel */
.hero {
  position: relative;
  height: calc(100svh - 72px);
  min-height: calc(100svh - 72px);
  padding: 0;
  overflow: hidden;
  color: var(--color-anthracite);
  background: var(--color-ivory);
  isolation: isolate;
}

.hero__frame {
  position: relative;
  display: grid;
  grid-template-rows: minmax(54px, 60px) minmax(0, 1fr) minmax(44px, 52px);
  width: min(100% - 2rem, 1640px);
  height: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(36, 35, 33, 0.45);
  background: var(--color-ivory);
}

.hero__topbar,
.hero__bottombar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 2vw, 1.75rem);
  color: rgba(36, 35, 33, 0.72);
  background: rgba(246, 241, 232, 0.96);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__topbar {
  border-bottom: 1px solid rgba(36, 35, 33, 0.45);
}

.hero__bottombar {
  border-top: 1px solid rgba(36, 35, 33, 0.45);
}

.hero__topbar p,
.hero__bottombar p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__bottombar a {
  flex: 0 0 auto;
  color: var(--color-anthracite);
  text-decoration: none;
  transition: color 220ms var(--ease-out);
}

.hero__bottombar a:hover,
.hero__bottombar a:focus-visible {
  color: var(--color-bronze);
}

.hero__stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--color-anthracite);
}

.hero__scene {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition:
    opacity 900ms var(--ease-out),
    transform 1400ms var(--ease-out),
    visibility 0ms linear 900ms;
}

.hero__scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0ms;
}

.hero__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.08) brightness(0.82);
}

.hero__scene[data-hero-scene=cocinas] img {
  object-position: 50% 56%;
}

.hero__scene[data-hero-scene=carpinteria] img {
  object-position: 50% 50%;
}

.hero__scene[data-hero-scene=pavimentos] img {
  object-position: 52% 54%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.68), rgba(20, 18, 16, 0.22) 48%, rgba(20, 18, 16, 0.12)),
    linear-gradient(180deg, rgba(20, 18, 16, 0.12), rgba(20, 18, 16, 0.58));
}

.hero__content {
  position: absolute;
  bottom: clamp(1.4rem, 4vw, 4rem);
  left: clamp(1.2rem, 3vw, 3rem);
  z-index: 4;
  max-width: min(74vw, 980px);
  color: var(--color-ivory-soft);
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  color: rgba(251, 248, 241, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  color: var(--color-ivory-soft);
  font-family: var(--font-sans);
  font-size: clamp(5.8rem, 14vw, 15rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.74;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__title.is-long {
  font-size: clamp(4.8rem, 11vw, 12rem);
}

.hero__title span {
  display: block;
  max-width: 100%;
}

.hero__caption {
  max-width: 34rem;
  margin: 0.6rem 0 0;
  color: rgba(251, 248, 241, 0.82);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero__cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition:
    color 240ms var(--ease-out),
    background-color 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.hero__cta--primary {
  color: var(--color-anthracite);
  background: var(--color-ivory-soft);
}

.hero__cta--secondary {
  color: var(--color-ivory-soft);
  border-color: rgba(251, 248, 241, 0.4);
  background: rgba(36, 35, 33, 0.08);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-1px);
}

.hero__cta--primary:hover,
.hero__cta--primary:focus-visible {
  background: var(--color-oak);
}

.hero__cta--secondary:hover,
.hero__cta--secondary:focus-visible {
  border-color: rgba(251, 248, 241, 0.78);
  background: rgba(251, 248, 241, 0.12);
}

.hero__thumbs {
  position: absolute;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 5;
  display: flex;
  align-items: end;
  gap: 0.65rem;
}

.hero__thumb {
  position: relative;
  width: clamp(112px, 9vw, 158px);
  height: clamp(70px, 5.6vw, 98px);
  padding: 0;
  overflow: hidden;
  color: var(--color-ivory-soft);
  background: rgba(36, 35, 33, 0.3);
  border: 1px solid rgba(251, 248, 241, 0.55);
  cursor: pointer;
}

.hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.82);
  transition:
    transform 700ms var(--ease-out),
    filter 700ms var(--ease-out);
}

.hero__thumb::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.16), rgba(20, 18, 16, 0.58));
}

.hero__thumb::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
  border: 2px solid transparent;
  transition: border-color 240ms var(--ease-out);
}

.hero__thumb.is-active::after,
.hero__thumb:hover::after,
.hero__thumb:focus-visible::after {
  border-color: var(--color-ivory-soft);
}

.hero__thumb.is-active img,
.hero__thumb:hover img,
.hero__thumb:focus-visible img {
  filter: saturate(1) contrast(1.08) brightness(0.95);
  transform: scale(1.08);
}

.hero__thumb-num,
.hero__thumb-label {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(20, 18, 16, 0.48);
}

.hero__thumb-num {
  top: 0.35rem;
  left: 0.4rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero__thumb-label {
  bottom: 0.35rem;
  left: 0.4rem;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.js .hero__frame {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.js .hero.is-ready .hero__frame {
  opacity: 1;
  transform: translateY(0);
}

.js .hero__scene.is-active img {
  transform: scale(1.08);
  transition: transform 1700ms var(--ease-out);
}

.js .hero.is-ready .hero__scene.is-active img {
  transform: scale(1);
}

.js .hero__eyebrow,
.js .hero__caption,
.js .hero__actions {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 760ms var(--ease-out),
    transform 760ms var(--ease-out);
}

.js .hero__title span {
  clip-path: inset(100% 0 0 0);
  transform: translateY(0.18em);
  transition:
    clip-path 980ms var(--ease-out),
    transform 980ms var(--ease-out);
}

.js .hero.is-ready .hero__eyebrow,
.js .hero.is-ready .hero__caption,
.js .hero.is-ready .hero__actions {
  opacity: 1;
  transform: translateY(0);
}

.js .hero.is-ready .hero__title span {
  clip-path: inset(0);
  transform: translateY(0);
}

.js .hero.is-ready .hero__eyebrow { transition-delay: 160ms; }
.js .hero.is-ready .hero__title span { transition-delay: 280ms; }
.js .hero.is-ready .hero__caption { transition-delay: 520ms; }
.js .hero.is-ready .hero__actions { transition-delay: 640ms; }

.js .hero__thumb {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 680ms var(--ease-out),
    transform 680ms var(--ease-out),
    border-color 240ms var(--ease-out);
}

.js .hero.is-ready .hero__thumb {
  opacity: 1;
  transform: translateY(0);
}

.js .hero.is-ready .hero__thumb:nth-child(1) { transition-delay: 760ms, 760ms, 0ms; }
.js .hero.is-ready .hero__thumb:nth-child(2) { transition-delay: 860ms, 860ms, 0ms; }
.js .hero.is-ready .hero__thumb:nth-child(3) { transition-delay: 960ms, 960ms, 0ms; }

@media (max-width: 1180px) and (min-width: 821px) {
  .hero__frame {
    width: calc(100% - 2rem);
  }

  .hero__content {
    max-width: min(70vw, 760px);
  }

  .hero__title {
    font-size: clamp(5.2rem, 13vw, 9.25rem);
  }

  .hero__title.is-long {
    font-size: clamp(4.2rem, 10vw, 7.2rem);
  }

  .hero__caption {
    max-width: 30rem;
  }

  .hero__thumbs {
    gap: 0.5rem;
  }
}

@media (max-width: 820px) {
  .hero {
    height: auto;
    min-height: auto;
    overflow: hidden;
  }

  .hero__frame {
    width: 100%;
    height: auto;
    grid-template-rows: auto min(78svh, 680px) auto;
    border-right: 0;
    border-left: 0;
  }

  .hero__topbar,
  .hero__bottombar {
    min-height: 48px;
    padding: 0.8rem 1rem;
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .hero__stage {
    min-height: 520px;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(20, 18, 16, 0.7), rgba(20, 18, 16, 0.2) 58%, rgba(20, 18, 16, 0.08)),
      linear-gradient(180deg, rgba(20, 18, 16, 0.08), rgba(20, 18, 16, 0.72));
  }

  .hero__content {
    right: 1rem;
    bottom: 7rem;
    left: 1rem;
    max-width: none;
  }

  .hero__eyebrow {
    margin-bottom: 0.58rem;
    font-size: 0.64rem;
  }

  .hero__title {
    font-size: clamp(3.8rem, 20vw, 6.8rem);
    line-height: 0.78;
  }

  .hero__title.is-long {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero__caption {
    max-width: 90%;
    font-size: 1rem;
    line-height: 1.42;
  }

  .hero__actions {
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .hero__cta {
    min-height: 44px;
    padding: 0.8rem 0.95rem;
    font-size: 0.8rem;
  }

  .hero__thumbs {
    right: auto;
    bottom: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
    align-items: stretch;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .hero__thumbs::-webkit-scrollbar {
    height: 4px;
  }

  .hero__thumbs::-webkit-scrollbar-thumb {
    background: rgba(251, 248, 241, 0.45);
  }

  .hero__thumb {
    flex: 0 0 auto;
    width: 116px;
    height: 74px;
    scroll-snap-align: start;
  }

  .hero__bottombar {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .hero__frame {
    grid-template-rows: auto 72svh auto;
  }

  .hero__topbar {
    display: grid;
    justify-content: stretch;
    gap: 0.35rem;
  }

  .hero__topbar p,
  .hero__bottombar p {
    white-space: normal;
  }

  .hero__bottombar {
    gap: 0.8rem;
  }

  .hero__stage {
    min-height: 560px;
  }

  .hero__content {
    bottom: 6.7rem;
  }

  .hero__title {
    font-size: clamp(3.1rem, 19vw, 5rem);
  }

  .hero__title.is-long {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .hero__caption {
    max-width: 100%;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 20rem;
  }

  .hero__cta--primary {
    width: 100%;
  }

  .hero__thumb {
    width: 112px;
    height: 72px;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 3rem;
  }

  .hero__title.is-long {
    font-size: 2.35rem;
  }

  .hero__cta {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__frame,
  .js .hero__scene,
  .js .hero__scene img,
  .js .hero__eyebrow,
  .js .hero__title span,
  .js .hero__caption,
  .js .hero__actions,
  .js .hero__thumb,
  .hero__thumb,
  .hero__thumb img,
  .hero__thumb::after,
  .hero__cta {
    clip-path: inset(0) !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__scene {
    visibility: hidden;
  }

  .hero__scene.is-active {
    visibility: visible;
  }
}

/* PHASE3F_HERO_VISUAL_CAROUSEL_POLISH */
.hero__frame {
  width: min(100% - 1.5rem, 1680px);
  border-color: rgba(36, 35, 33, 0.5);
}

.hero__topbar,
.hero__bottombar {
  min-height: 52px;
  padding-inline: clamp(1rem, 1.8vw, 1.6rem);
  background: rgba(246, 241, 232, 0.94);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero__bottombar {
  color: rgba(36, 35, 33, 0.64);
}

.hero__scene {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.055);
  transition:
    opacity 780ms var(--ease-out),
    transform 1400ms var(--ease-out),
    visibility 0ms linear 780ms;
}

.hero__scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero__scene img {
  filter: saturate(0.92) contrast(1.05) brightness(0.96);
}

.hero__scene[data-hero-scene="cocinas"] img {
  object-position: 50% 58%;
}

.hero__scene[data-hero-scene="carpinteria"] img {
  object-position: 50% 42%;
}

.hero__scene[data-hero-scene="pavimentos"] img {
  object-position: 50% 62%;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.52), rgba(20, 18, 16, 0.18) 48%, rgba(20, 18, 16, 0.08)),
    linear-gradient(180deg, rgba(20, 18, 16, 0.02) 35%, rgba(20, 18, 16, 0.58) 100%);
}

.hero__content {
  right: clamp(18rem, 28vw, 32rem);
  bottom: clamp(2rem, 4.5vw, 5rem);
  left: clamp(1.5rem, 3vw, 3.5rem);
  max-width: none;
}

.hero__eyebrow {
  margin-bottom: 0.6rem;
  color: rgba(251, 248, 241, 0.92);
}

.hero__title {
  max-width: 100%;
  overflow: visible;
  font-size: clamp(5.4rem, 13vw, 13.5rem);
  letter-spacing: 0;
  line-height: 0.82;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.hero__title.is-long {
  font-size: clamp(4rem, 9.5vw, 10.8rem);
  letter-spacing: 0;
}

.hero__title.is-extra-long {
  font-size: clamp(3.8rem, 8.7vw, 9.8rem);
  letter-spacing: 0;
  line-height: 0.86;
}

.hero__title span {
  max-width: 100%;
  white-space: nowrap;
}

.hero__caption {
  max-width: 34rem;
  color: rgba(251, 248, 241, 0.88);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.hero.is-changing .hero__title,
.hero.is-changing .hero__caption {
  opacity: 0;
  transform: translateY(8px);
}

.hero__actions {
  margin-top: 1.35rem;
}

.hero__cta {
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: 0;
  font-size: 0.82rem;
  text-transform: none;
}

.hero__cta--primary {
  color: var(--color-anthracite);
  background: var(--color-ivory-soft);
}

.hero__cta--secondary {
  color: var(--color-ivory-soft);
  background: rgba(20, 18, 16, 0.18);
  border-color: rgba(251, 248, 241, 0.42);
}

.hero__cta span {
  display: inline-block;
  transition: transform 240ms var(--ease-out);
}

.hero__cta--primary:hover span,
.hero__cta--primary:focus-visible span {
  transform: translateX(5px);
}

.hero__cta--secondary:hover,
.hero__cta--secondary:focus-visible {
  border-color: var(--color-ivory-soft);
}

.hero__thumbs {
  right: clamp(1.25rem, 2.4vw, 2.5rem);
  bottom: clamp(1.25rem, 2.4vw, 2.5rem);
  gap: 0.8rem;
}

.hero__thumb {
  width: clamp(136px, 10vw, 180px);
  height: clamp(86px, 6.4vw, 112px);
  border: 1px solid rgba(251, 248, 241, 0.48);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hero__thumb.is-active {
  border-color: var(--color-ivory-soft);
}

.hero__thumb::before {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 0;
  content: "";
  background: var(--color-ivory-soft);
  pointer-events: none;
  transition: height 240ms var(--ease-out);
}

.hero__thumb.is-active::before {
  height: 3px;
}

.hero__thumb::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  border: 0;
  pointer-events: none;
}

.hero__thumb-label {
  font-size: 0.68rem;
  letter-spacing: 0;
}

.hero__thumb-num {
  font-size: 0.62rem;
  opacity: 0.9;
}

@media (max-width: 820px) {
  .hero__frame {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .hero__stage {
    height: 76svh;
    min-height: 560px;
  }

  .hero__content {
    right: 1rem;
    bottom: 8.5rem;
    left: 1rem;
    max-width: none;
  }

  .hero__title {
    font-size: clamp(3.5rem, 18vw, 6.4rem);
  }

  .hero__title.is-long {
    font-size: clamp(2.9rem, 14vw, 5.2rem);
  }

  .hero__title.is-extra-long {
    font-size: clamp(2.45rem, 12.5vw, 4.4rem);
  }

  .hero__caption {
    max-width: 92%;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .hero__thumbs {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: none;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .hero__thumbs::-webkit-scrollbar {
    display: none;
  }

  .hero__thumb {
    flex: 0 0 118px;
    width: 118px;
    height: 74px;
  }
}

@media (max-width: 480px) {
  .hero__frame {
    grid-template-rows: auto 72svh auto;
  }

  .hero__stage {
    height: 72svh;
    min-height: 520px;
  }

  .hero__content {
    bottom: 8rem;
  }

  .hero__caption {
    max-width: 100%;
  }

  .hero__actions {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .hero__title.is-extra-long {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-changing .hero__title,
  .hero.is-changing .hero__caption,
  .hero__title,
  .hero__caption,
  .hero__cta span,
  .hero__thumb::before {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.metrics {
  background:
    linear-gradient(90deg, rgba(36, 35, 33, 0.055) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.92), rgba(232, 222, 208, 0.5)),
    var(--color-stone);
  background-size: 24.8% 100%, 100% 100%;
}

.metrics .section-heading {
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(1.25rem, 2vw, 1.8rem);
  border-top: 1px solid rgba(36, 35, 33, 0.18);
}

.metrics .section-heading h2 {
  max-width: 12ch;
  font-size: clamp(4.2rem, 7vw, 7.6rem);
  line-height: 0.86;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background:
    linear-gradient(90deg, rgba(163, 123, 69, 0.5), transparent 18%, transparent 82%, rgba(163, 123, 69, 0.5)),
    rgba(36, 35, 33, 0.12);
  border-block: 1px solid rgba(36, 35, 33, 0.22);
}

.metric-card {
  display: grid;
  min-height: clamp(270px, 31vw, 390px);
  align-content: end;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.42), rgba(251, 248, 241, 0.1)),
    rgba(251, 248, 241, 0.18);
}

.metric-card:not(:last-child) {
  border-right: 1px solid rgba(36, 35, 33, 0.16);
}

.metric-card__number {
  margin: 0 0 clamp(1.2rem, 2.6vw, 2.3rem);
  color: rgba(36, 35, 33, 0.9);
  font-family: var(--font-serif);
  font-size: clamp(7rem, 13vw, 12.5rem);
  font-weight: 600;
  line-height: 0.66;
  letter-spacing: -0.04em;
}

.metric-card h3 {
  max-width: 11ch;
  color: rgba(36, 35, 33, 0.9);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.metric-card p:last-child {
  max-width: 29ch;
  margin: 0.9rem 0 0;
  color: rgba(36, 35, 33, 0.68);
  font-size: 0.94rem;
  line-height: 1.62;
}

.showroom {
  overflow: hidden;
  padding-block: clamp(6rem, 11vw, 9rem);
  color: var(--color-ivory-soft);
  background:
    radial-gradient(circle at 84% 18%, rgba(216, 190, 151, 0.18), transparent 30rem),
    linear-gradient(110deg, rgba(25, 24, 22, 0.98), rgba(44, 41, 37, 0.96)),
    var(--color-anthracite);
}

.showroom::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 29%, rgba(216, 190, 151, 0.16) 29% calc(29% + 1px), transparent calc(29% + 1px) 100%),
    linear-gradient(90deg, transparent 0 72%, rgba(251, 248, 241, 0.07) 72% calc(72% + 1px), transparent calc(72% + 1px) 100%),
    linear-gradient(rgba(251, 248, 241, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 56px;
  opacity: 0.86;
}

.showroom::after {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(216, 190, 151, 0.48), transparent);
  content: "";
}

.showroom h2,
.showroom h3 {
  color: var(--color-ivory-soft);
}

.showroom .section-kicker {
  color: var(--color-oak);
}

.showroom__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.78fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
  min-height: min(76svh, 720px);
}

.showroom__content {
  position: sticky;
  top: 7.5rem;
  max-width: 680px;
}

.showroom__content h2 {
  max-width: 10.5ch;
  font-size: clamp(4.1rem, 7.4vw, 8.1rem);
  line-height: 0.84;
}

.showroom blockquote {
  max-width: 600px;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(216, 190, 151, 0.36);
  color: rgba(251, 248, 241, 0.76);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.12;
}

.manifesto__quote span {
  display: block;
}

.js .manifesto__quote span {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.js .is-visible .manifesto__quote span {
  opacity: 1;
  transform: translateY(0);
}

.js .is-visible .manifesto__quote span:nth-child(2) {
  transition-delay: 140ms;
}

.showroom__pillars {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(251, 248, 241, 0.18);
  border-bottom: 1px solid rgba(251, 248, 241, 0.12);
}

.pillar {
  position: relative;
  display: grid;
  min-height: clamp(170px, 19vw, 230px);
  align-content: center;
  padding: clamp(1.35rem, 3vw, 2rem) 0 clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid rgba(251, 248, 241, 0.12);
  background:
    linear-gradient(90deg, rgba(251, 248, 241, 0.07), transparent 62%),
    transparent;
}

.pillar:last-child {
  border-bottom: 0;
}

.manifesto-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(216, 190, 151, 0.72), transparent);
  content: "";
  opacity: 0;
  transform: scaleY(0.32);
  transform-origin: center;
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.manifesto-card.is-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.pillar span,
.process-step span,
.audience-card span,
.project-tile__caption span {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--color-bronze);
  font-size: 0.78rem;
  font-weight: 800;
}

.pillar p {
  margin: 0.85rem 0 0;
  color: rgba(251, 248, 241, 0.68);
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 1rem;
  align-items: start;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(251, 248, 241, 0.72);
  box-shadow: var(--shadow-card);
}

.service-card--large {
  grid-row: span 2;
}

.service-card figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-stone);
}

.service-card--large figure {
  aspect-ratio: 1 / 0.72;
}

.service-card img,
.project-tile img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}

.service-card--large img {
  object-position: 49% 56%;
}

.service-card:hover img,
.project-tile:hover img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.03);
}

.service-card__body {
  padding: var(--space-lg);
}

.service-card__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card__body > p:not(.service-card__eyebrow):not(.service-card__micro) {
  margin: 0.9rem 0 0;
  color: rgba(36, 35, 33, 0.68);
}

.service-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  color: rgba(36, 35, 33, 0.78);
  font-size: 0.95rem;
}

.service-card li::before {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  background: var(--color-bronze);
  border-radius: 50%;
  content: "";
}

.service-card__micro {
  margin: 1.45rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-border-soft);
  color: var(--color-charcoal);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.18;
}

.service-showroom {
  display: grid;
  grid-template-columns: minmax(22rem, 0.9fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, var(--space-2xl));
  align-items: start;
}

.service-showroom__visual {
  position: sticky;
  top: 6.5rem;
  min-height: 520px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(36, 35, 33, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(251, 248, 241, 0.78), rgba(232, 222, 208, 0.92)),
    var(--color-stone);
  box-shadow: var(--shadow-soft);
}

.service-showroom__visual::before,
.service-showroom__visual::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.service-showroom__visual::before {
  inset: 1rem;
  z-index: 3;
  border: 1px solid rgba(251, 248, 241, 0.48);
}

.service-showroom__visual::after {
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(36, 35, 33, 0.58));
}

.service-showroom__index {
  position: absolute;
  top: 1.45rem;
  left: 1.45rem;
  z-index: 5;
  margin: 0;
  color: rgba(251, 248, 241, 0.86);
  font-family: var(--font-serif);
  font-size: 4.8rem;
  line-height: 0.85;
  text-shadow: 0 8px 28px rgba(36, 35, 33, 0.34);
}

.service-showroom__image-stack {
  position: absolute;
  inset: 0;
}

.service-showroom__image {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 560ms var(--ease-out),
    transform 900ms var(--ease-out);
}

.service-showroom__image.is-active {
  opacity: 1;
  transform: scale(1);
}

.service-showroom__image img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(1.02);
}

.service-showroom__image[data-service-image="cocinas"] img {
  object-position: 51% 55%;
}

.service-showroom__image[data-service-image="carpinteria"] img,
.service-showroom__image[data-service-image="pavimentos"] img {
  object-position: center;
}

.service-showroom__caption {
  position: absolute;
  right: 1.45rem;
  bottom: 1.45rem;
  left: 1.45rem;
  z-index: 5;
  display: grid;
  gap: 0.4rem;
  color: var(--color-ivory-soft);
}

.service-showroom__caption p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.service-showroom__caption span {
  color: rgba(251, 248, 241, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-showroom__progress {
  position: absolute;
  top: 1.45rem;
  right: 1.45rem;
  bottom: 1.45rem;
  z-index: 5;
  width: 1px;
  background: rgba(251, 248, 241, 0.28);
}

.service-showroom__progress span {
  display: block;
  width: 100%;
  height: var(--service-progress, 33.333%);
  background: var(--color-oak);
  transition: height 520ms var(--ease-out);
}

.service-showroom__panels {
  display: grid;
  gap: 1.2rem;
}

.service-panel {
  position: relative;
  min-height: 340px;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(251, 248, 241, 0.86), rgba(246, 241, 232, 0.7)),
    var(--color-ivory-soft);
  box-shadow: 0 18px 60px rgba(36, 35, 33, 0.07);
  opacity: 0.62;
  transition:
    opacity 360ms var(--ease-out),
    transform 360ms var(--ease-out),
    border-color 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out);
}

.service-panel::before {
  position: absolute;
  inset: 1rem auto 1rem 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-bronze), transparent);
  content: "";
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: center;
  transition:
    opacity 360ms var(--ease-out),
    transform 360ms var(--ease-out);
}

.service-panel.is-active {
  border-color: rgba(163, 123, 69, 0.4);
  box-shadow: var(--shadow-card);
  opacity: 1;
  transform: translateX(-0.35rem);
}

.service-panel.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.service-panel > p:not(.service-card__eyebrow):not(.service-card__micro) {
  max-width: 58ch;
  margin: 0.9rem 0 0;
  color: rgba(36, 35, 33, 0.7);
}

.service-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.service-panel li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  color: rgba(36, 35, 33, 0.78);
  font-size: 0.95rem;
}

.service-panel li::before {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  background: var(--color-bronze);
  border-radius: 50%;
  content: "";
}

/* PHASE3A_ANATOMY_PINNED_SCROLL */
.anatomy {
  --anatomy-progress: 0;
  --anatomy-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  height: 390vh;
  min-height: 2400px;
  overflow: visible;
  color: var(--color-ivory);
  background:
    radial-gradient(circle at 68% 42%, rgba(163, 123, 69, 0.14), transparent 34%),
    linear-gradient(180deg, #1d1c1a, #272522 46%, #171615);
}

.anatomy__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 660px;
  overflow: hidden;
}

.anatomy__stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.anatomy__stage::before,
.anatomy__stage::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
}

.anatomy__stage::before {
  background:
    linear-gradient(90deg, rgba(216, 190, 151, 0.11) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(216, 190, 151, 0.08) 0 1px, transparent 1px);
  background-size: 20vw 100%, 100% 20svh;
  opacity: 0.72;
}

.anatomy__stage::after {
  background:
    linear-gradient(90deg, rgba(23, 22, 21, 0.86), transparent 26%, transparent 68%, rgba(23, 22, 21, 0.78)),
    linear-gradient(180deg, rgba(23, 22, 21, 0.78), transparent 24%, transparent 72%, rgba(23, 22, 21, 0.86));
}

.anatomy__intro {
  position: absolute;
  top: clamp(5.5rem, 10svh, 8rem);
  left: clamp(1.25rem, 6vw, 6rem);
  z-index: 6;
  max-width: min(37rem, 43vw);
}

.anatomy .section-kicker {
  color: rgba(216, 190, 151, 0.86);
}

.anatomy__intro h2 {
  max-width: 10ch;
  margin: 0;
  color: var(--color-ivory);
  font-size: clamp(3.8rem, 7.4vw, 8.4rem);
  line-height: 0.86;
}

.anatomy__intro p:not(.section-kicker) {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  color: rgba(251, 248, 241, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.7;
}

.anatomy__canvas {
  position: absolute;
  top: 54%;
  left: 54%;
  z-index: 1;
  width: min(1720px, 124vw);
  height: min(78svh, 860px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(216, 190, 151, 0.28);
  background: var(--color-charcoal);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.36);
  transform:
    translate3d(
      calc(-50% - (var(--anatomy-progress) * 4.2vw)),
      calc(-50% - (var(--anatomy-progress) * 1.4svh)),
      0
    )
    scale(1.02);
  transition: transform 180ms linear;
}

.anatomy__canvas::before,
.anatomy__canvas::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.anatomy__canvas::before {
  border: 1px solid rgba(251, 248, 241, 0.24);
  margin: clamp(0.8rem, 1.4vw, 1.2rem);
}

.anatomy__canvas::after {
  background:
    linear-gradient(90deg, transparent 0 37%, rgba(216, 190, 151, 0.22) 37% calc(37% + 1px), transparent calc(37% + 1px) 100%),
    linear-gradient(180deg, transparent 0 58%, rgba(216, 190, 151, 0.16) 58% calc(58% + 1px), transparent calc(58% + 1px) 100%),
    linear-gradient(180deg, rgba(23, 22, 21, 0.08), rgba(23, 22, 21, 0.34));
}

.anatomy__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 52%;
  filter: saturate(0.82) contrast(1.08) brightness(0.82);
  transform: scale(1.04);
}

.anatomy__progress {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 3vw, 3.2rem);
  z-index: 7;
  display: grid;
  gap: 1rem;
  transform: translateY(-50%);
}

.anatomy__progress::before {
  position: absolute;
  top: -3rem;
  bottom: -3rem;
  left: 50%;
  width: 1px;
  background: rgba(216, 190, 151, 0.24);
  content: "";
}

.anatomy__progress span {
  position: relative;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: rgba(251, 248, 241, 0.48);
  border: 1px solid rgba(216, 190, 151, 0.18);
  background: rgba(23, 22, 21, 0.72);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  transition:
    color 280ms var(--anatomy-ease),
    border-color 280ms var(--anatomy-ease),
    background-color 280ms var(--anatomy-ease);
}

.anatomy__progress span.is-active {
  color: var(--color-ivory);
  border-color: rgba(216, 190, 151, 0.72);
  background: rgba(163, 123, 69, 0.3);
}

.anatomy-hotspot {
  position: absolute;
  z-index: 5;
  display: grid;
  width: min(25rem, 29vw);
  gap: 0.75rem;
  color: var(--color-ivory);
  opacity: 0.46;
  pointer-events: none;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 480ms var(--anatomy-ease),
    transform 480ms var(--anatomy-ease);
}

.anatomy-hotspot::before {
  position: absolute;
  top: 0.58rem;
  left: 0.58rem;
  width: clamp(3rem, 6vw, 5.6rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 190, 151, 0.92), transparent);
  content: "";
  transform: translateX(1.1rem);
}

.anatomy-hotspot__dot {
  position: relative;
  z-index: 2;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(216, 190, 151, 0.76);
  border-radius: 50%;
  background: rgba(23, 22, 21, 0.74);
  box-shadow: 0 0 0 0.45rem rgba(23, 22, 21, 0.42);
}

.anatomy-hotspot__inset {
  width: min(12.5rem, 15vw);
  margin: 0 0 0 3.4rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(216, 190, 151, 0.38);
  background: rgba(23, 22, 21, 0.84);
}

.anatomy-hotspot__inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08) brightness(0.88);
}

.anatomy-hotspot__caption {
  max-width: 22rem;
  margin-left: 3.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(216, 190, 151, 0.44);
}

.anatomy-hotspot__caption span {
  display: block;
  color: rgba(216, 190, 151, 0.82);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.anatomy-hotspot__caption h3 {
  margin: 0.48rem 0 0;
  color: var(--color-ivory);
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.3vw, 2.4rem);
  line-height: 0.98;
}

.anatomy-hotspot__caption p {
  margin: 0.65rem 0 0;
  color: rgba(251, 248, 241, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
}

.anatomy-hotspot__inset,
.anatomy-hotspot__caption {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 520ms var(--anatomy-ease),
    clip-path 620ms var(--anatomy-ease),
    transform 520ms var(--anatomy-ease);
}

.anatomy-hotspot.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.anatomy-hotspot.is-active .anatomy-hotspot__dot {
  background: rgba(216, 190, 151, 0.9);
}

.anatomy-hotspot.is-active .anatomy-hotspot__inset,
.anatomy-hotspot.is-active .anatomy-hotspot__caption {
  opacity: 1;
  clip-path: inset(0);
  transform: translate3d(0, 0, 0);
}

/* PHASE5J_ARCHIVO_FULL_GALLERIES_AND_ANATOMY_POINTS */
/* PHASE5W_ANATOMY_HOTSPOT_REAL_ALIGNMENT */
.anatomy-hotspot--01 {
  top: 54.4%;
  left: 55.2%;
}

.anatomy-hotspot--02 {
  top: 46.8%;
  right: auto;
  left: 66.8%;
}

.anatomy-hotspot--03 {
  top: 51.2%;
  right: auto;
  left: 74.2%;
}

.anatomy-hotspot--04 {
  top: 56%;
  right: auto;
  bottom: auto;
  left: 58.2%;
}

/* PHASE5X_ANATOMY_CARD_RESPONSIVE_RAISE */
@media (min-width: 1025px) and (max-width: 1919px) and (prefers-reduced-motion: no-preference) {
  .anatomy-hotspot--04 {
    --anatomy-card-raise-y: -72px;
  }

  .anatomy-hotspot--04 .anatomy-hotspot__inset,
  .anatomy-hotspot--04 .anatomy-hotspot__caption {
    position: relative;
    top: var(--anatomy-card-raise-y);
  }
}

@media (min-width: 1025px) and (max-width: 1919px) and (max-height: 900px) and (prefers-reduced-motion: no-preference) {
  .anatomy-hotspot--04 {
    --anatomy-card-raise-y: -96px;
  }
}

@media (max-width: 920px) {
  .anatomy {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .anatomy__sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .anatomy__stage {
    display: grid;
    gap: 1.4rem;
    height: auto;
    padding: clamp(5rem, 12vw, 7rem) 1rem;
    overflow: visible;
  }

  .anatomy__stage::before {
    background-size: 50% 100%, 100% 14rem;
  }

  .anatomy__stage::after {
    background: linear-gradient(180deg, rgba(23, 22, 21, 0.72), transparent 18%, rgba(23, 22, 21, 0.56));
  }

  .anatomy__intro {
    position: relative;
    top: auto;
    left: auto;
    z-index: 5;
    max-width: 44rem;
  }

  .anatomy__intro h2 {
    max-width: 11ch;
    font-size: clamp(3.2rem, 13vw, 5.8rem);
  }

  .anatomy__canvas {
    position: relative;
    top: auto;
    left: auto;
    z-index: 5;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 1rem;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .anatomy__canvas::before,
  .anatomy__canvas::after {
    display: none;
  }

  .anatomy__image {
    height: auto;
    min-height: 360px;
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(216, 190, 151, 0.28);
    object-position: 55% 52%;
    transform: none;
  }

  .anatomy__progress {
    display: none;
  }

  .anatomy-hotspot {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    padding: 1rem;
    border: 1px solid rgba(216, 190, 151, 0.24);
    background: rgba(23, 22, 21, 0.64);
    opacity: 1;
    transform: none;
  }

  .anatomy-hotspot::before,
  .anatomy-hotspot__dot {
    display: none;
  }

  .anatomy-hotspot__inset {
    width: 100%;
    margin: 0;
  }

  .anatomy-hotspot__caption {
    margin-left: 0;
  }

  .anatomy-hotspot__inset,
  .anatomy-hotspot__caption {
    opacity: 1;
    clip-path: inset(0);
    transform: none;
  }
}

@media (max-width: 520px) {
  .anatomy__stage {
    padding-inline: 1rem;
  }

  .anatomy__intro h2 {
    font-size: clamp(2.72rem, 14vw, 4.2rem);
  }

  .anatomy__intro p:not(.section-kicker) {
    font-size: 0.98rem;
  }

  .anatomy__image {
    min-height: 300px;
  }

  .anatomy-hotspot__caption h3 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anatomy,
  .anatomy *,
  .anatomy *::before,
  .anatomy *::after {
    animation: none !important;
    transition: none !important;
  }

  .anatomy {
    height: auto;
    min-height: 0;
  }

  .anatomy__sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }

  .anatomy__stage {
    display: grid;
    gap: 1.4rem;
    height: auto;
    padding: clamp(5rem, 10vw, 7rem) 1rem;
    overflow: visible;
  }

  .anatomy__intro,
  .anatomy__canvas,
  .anatomy-hotspot {
    position: relative;
    inset: auto;
    transform: none;
  }

  .anatomy__intro {
    max-width: 44rem;
  }

  .anatomy__canvas {
    display: grid;
    width: min(100%, 1120px);
    height: auto;
    min-height: 0;
    gap: 1rem;
    margin-inline: auto;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
  }

  .anatomy__image {
    height: auto;
    min-height: min(62svh, 520px);
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(216, 190, 151, 0.28);
    transform: none;
  }

  .anatomy__progress,
  .anatomy__canvas::before,
  .anatomy__canvas::after,
  .anatomy-hotspot::before,
  .anatomy-hotspot__dot {
    display: none;
  }

  .anatomy-hotspot {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(216, 190, 151, 0.24);
    background: rgba(23, 22, 21, 0.64);
    opacity: 1;
    transition: none;
  }

  .anatomy-hotspot__inset {
    width: 100%;
    margin: 0;
  }

  .anatomy-hotspot__caption {
    margin-left: 0;
  }

  .anatomy-hotspot__inset,
  .anatomy-hotspot__caption {
    opacity: 1;
    clip-path: inset(0);
    transform: none;
    transition: none;
  }
}

.materials {
  background: var(--color-ivory-soft);
}

.materials-lab {
  display: grid;
  grid-template-columns: minmax(22rem, 0.92fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
}

.material-preview {
  position: sticky;
  top: 6.5rem;
  display: grid;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(36, 35, 33, 0.16);
  border-radius: var(--radius-lg);
  background: var(--color-stone);
  box-shadow: var(--shadow-soft);
}

.material-preview__sample {
  min-height: 360px;
  background: var(--preview-sample);
  background-size: cover;
  filter: saturate(0.95) contrast(1.03);
  transition:
    background 320ms var(--ease-out),
    filter 320ms var(--ease-out);
}

.material-preview__sample::after,
.material-card__sample::after {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 35, 33, 0.06) 1px, transparent 1px);
  background-size: 17px 17px;
  mix-blend-mode: overlay;
}

.material-preview__content {
  display: grid;
  align-content: end;
  padding: var(--space-lg);
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.74), rgba(246, 241, 232, 0.96)),
    var(--color-ivory);
}

.material-preview__meta {
  margin: 0 0 0.75rem;
  color: var(--color-bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.material-preview__content p:last-child {
  margin: 0.8rem 0 0;
  color: rgba(36, 35, 33, 0.68);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.material-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(5rem, 0.44fr) minmax(0, 1fr);
  gap: 1rem;
  min-height: 158px;
  padding: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  background: rgba(251, 248, 241, 0.82);
  color: var(--color-anthracite);
  cursor: pointer;
  text-align: left;
  transition:
    transform 320ms var(--ease-out),
    border-color 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out),
    background-color 320ms var(--ease-out);
}

.material-card:hover,
.material-card:focus-visible,
.material-card.is-active {
  border-color: rgba(163, 123, 69, 0.48);
  background: rgba(251, 248, 241, 0.96);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.material-card.is-active::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--color-bronze);
  content: "";
}

.material-card__sample {
  display: block;
  min-height: 100%;
  border: 1px solid rgba(36, 35, 33, 0.12);
  border-radius: var(--radius-sm);
  background: var(--sample);
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(251, 248, 241, 0.26);
}

.material-card__content {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  color: rgba(36, 35, 33, 0.66);
  font-size: 0.9rem;
  line-height: 1.5;
}

.material-card__title {
  color: var(--color-anthracite);
  font-family: var(--font-serif);
  font-size: 1.38rem;
  line-height: 1;
}

.material-card--marble,
.material-preview--marble {
  --sample:
    linear-gradient(145deg, rgba(251, 248, 241, 0.78), rgba(214, 206, 192, 0.9)),
    url("assets/odecor/material-marble.jpg");
  --preview-sample:
    linear-gradient(145deg, rgba(251, 248, 241, 0.44), rgba(214, 206, 192, 0.35)),
    url("assets/odecor/material-marble.jpg");
}

.material-card--oak,
.material-preview--oak {
  --sample:
    linear-gradient(145deg, rgba(216, 190, 151, 0.22), rgba(109, 82, 47, 0.08)),
    url("assets/odecor/material-oak.jpg");
  --preview-sample:
    linear-gradient(145deg, rgba(216, 190, 151, 0.18), rgba(109, 82, 47, 0.06)),
    url("assets/odecor/material-oak.jpg");
}

.material-card--lacquer,
.material-preview--lacquer {
  --sample:
    linear-gradient(118deg, rgba(255, 255, 255, 0.55) 0 12%, transparent 24% 48%, rgba(255, 255, 255, 0.35) 56% 64%, transparent 72%),
    linear-gradient(135deg, #efe7d8 0%, #d4c8b4 42%, #f3ecde 70%, #c9bca5 100%);
  --preview-sample:
    linear-gradient(118deg, rgba(255, 255, 255, 0.5) 0 14%, transparent 28% 50%, rgba(255, 255, 255, 0.32) 58% 66%, transparent 76%),
    linear-gradient(135deg, #efe7d8 0%, #d4c8b4 42%, #f3ecde 70%, #c9bca5 100%);
}

.material-card--anthracite,
.material-preview--anthracite {
  --sample:
    linear-gradient(145deg, rgba(36, 35, 33, 0.4), rgba(163, 123, 69, 0.14)),
    url("assets/odecor/material-anthracite.jpg");
  --preview-sample:
    linear-gradient(145deg, rgba(36, 35, 33, 0.35), rgba(163, 123, 69, 0.12)),
    url("assets/odecor/material-anthracite.jpg");
}

.material-card--floor,
.material-preview--floor {
  --sample:
    linear-gradient(180deg, rgba(36, 28, 18, 0.18), transparent 30%, transparent 70%, rgba(36, 28, 18, 0.18)),
    linear-gradient(90deg, #b89d7a 0 14%, #cfb593 14% 28%, #a88864 28% 42%, #d8c19e 42% 56%, #b89d7a 56% 70%, #c9ad88 70% 84%, #a88864 84% 100%);
  --preview-sample:
    linear-gradient(180deg, rgba(36, 28, 18, 0.18), transparent 30%, transparent 70%, rgba(36, 28, 18, 0.18)),
    linear-gradient(90deg, #b89d7a 0 14%, #cfb593 14% 28%, #a88864 28% 42%, #d8c19e 42% 56%, #b89d7a 56% 70%, #c9ad88 70% 84%, #a88864 84% 100%);
}

.material-card--light,
.material-preview--light {
  --sample:
    radial-gradient(circle at 42% 30%, rgba(255, 240, 200, 1) 0%, rgba(228, 188, 124, 0.9) 22%, rgba(140, 100, 56, 0.55) 52%, rgba(36, 30, 22, 0.85) 90%);
  --preview-sample:
    radial-gradient(circle at 42% 30%, rgba(255, 240, 200, 1) 0%, rgba(228, 188, 124, 0.92) 22%, rgba(140, 100, 56, 0.55) 52%, rgba(36, 30, 22, 0.88) 92%);
}

.portfolio {
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(246, 241, 232, 0.98)),
    var(--color-ivory);
}

.portfolio-archive {
  display: grid;
  grid-template-columns: minmax(12rem, 0.24fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.portfolio-index {
  position: sticky;
  top: 6.5rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--color-border);
}

.portfolio-index p {
  margin: 0 0 1rem;
  color: var(--color-bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-index ol {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style-position: inside;
  color: rgba(36, 35, 33, 0.62);
  font-size: 0.92rem;
  font-weight: 700;
}

.portfolio-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 118px;
  gap: 1rem;
}

.project-tile {
  position: relative;
  grid-column: span 4;
  grid-row: span 3;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-stone);
  box-shadow: 0 18px 60px rgba(36, 35, 33, 0.08);
}

.project-tile:focus-visible {
  outline: 2px solid var(--color-bronze);
  outline-offset: 4px;
}

.project-tile--feature {
  grid-column: span 7;
  grid-row: span 5;
}

.project-tile--tall {
  grid-row: span 4;
}

.project-tile--wide {
  grid-column: span 5;
}

.project-tile img {
  height: 100%;
}

.project-tile::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent 45%, rgba(36, 35, 33, 0.72)),
    linear-gradient(90deg, rgba(36, 35, 33, 0.08), transparent 42%);
}

.project-tile__caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  color: var(--color-ivory-soft);
  transform: translateY(10px);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

.project-tile__caption span {
  margin-bottom: 0.35rem;
  color: var(--color-oak);
}

.project-tile__caption h3 {
  max-width: 18ch;
  color: var(--color-ivory-soft);
  font-size: 1.35rem;
}

.project-tile__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 31rem;
  margin: 1rem 0 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.project-tile__meta div {
  padding-top: 0.6rem;
  border-top: 1px solid rgba(251, 248, 241, 0.22);
}

.project-tile__meta dt {
  color: rgba(216, 190, 151, 0.9);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-tile__meta dd {
  margin: 0.2rem 0 0;
  color: rgba(251, 248, 241, 0.82);
  font-size: 0.74rem;
  line-height: 1.25;
}

.project-tile:hover .project-tile__meta,
.project-tile:focus-visible .project-tile__meta,
.project-tile:focus-within .project-tile__meta {
  opacity: 1;
  transform: translateY(0);
}

.process {
  background:
    linear-gradient(90deg, transparent 0 49.94%, rgba(36, 35, 33, 0.1) 49.94% 50.06%, transparent 50.06%),
    var(--color-stone);
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 2rem;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.process-steps__rail {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(36, 35, 33, 0.14);
}

.process-steps__rail span {
  display: block;
  width: var(--process-progress, 25%);
  height: 100%;
  background: linear-gradient(90deg, var(--color-bronze), var(--color-oak));
  transition: width 520ms var(--ease-out);
}

.process-step {
  position: relative;
  min-height: 240px;
  padding: var(--space-lg);
  background: rgba(251, 248, 241, 0.78);
  transition:
    background-color 320ms var(--ease-out),
    transform 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out);
}

.process-step:nth-of-type(even) {
  padding-top: calc(var(--space-lg) + 2rem);
  background: rgba(246, 241, 232, 0.9);
}

.process-step::before {
  position: absolute;
  top: -2.43rem;
  left: var(--space-lg);
  width: 0.7rem;
  height: 0.7rem;
  background: var(--color-stone);
  border: 1px solid var(--color-bronze);
  border-radius: 50%;
  content: "";
  transition:
    background-color 320ms var(--ease-out),
    transform 320ms var(--ease-out);
}

.process-step.is-active {
  background: rgba(251, 248, 241, 0.98);
  box-shadow: 0 18px 55px rgba(36, 35, 33, 0.1);
  transform: translateY(-4px);
}

.process-step.is-active::before {
  background: var(--color-bronze);
  transform: scale(1.28);
}

.process-step p {
  margin: 1rem 0 0;
  color: rgba(36, 35, 33, 0.68);
}

.audience {
  background: var(--color-ivory-soft);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.audience-card {
  min-height: 260px;
  padding: var(--space-lg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(246, 241, 232, 0.92), rgba(251, 248, 241, 0.98));
  transition:
    transform 320ms var(--ease-out),
    border-color 320ms var(--ease-out);
}

.audience-card:hover {
  border-color: rgba(163, 123, 69, 0.42);
  transform: translateY(-4px);
}

.audience-card p {
  margin: 1rem 0 0;
  color: rgba(36, 35, 33, 0.68);
}

/* PHASE4C_CONTACT_PRIVATE_INTAKE */
.contact-private {
  overflow: hidden;
  padding-block: clamp(5rem, 9vw, 8rem);
  color: var(--color-anthracite);
  background:
    linear-gradient(90deg, rgba(36, 35, 33, 0.045) 0 1px, transparent 1px 100%),
    var(--color-ivory);
  background-size: 25% 100%, 100% 100%;
}

.contact-private__inner {
  display: grid;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.contact-private__intro {
  position: sticky;
  top: clamp(5rem, 11vh, 7rem);
  max-width: 36rem;
}

.contact-private__kicker {
  margin: 0 0 1rem;
  color: var(--color-bronze);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.contact-private__title {
  max-width: 11ch;
  margin: 0;
  color: var(--color-anthracite);
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.contact-private__text {
  max-width: 35rem;
  margin: clamp(1.35rem, 2.6vw, 2.1rem) 0 0;
  color: rgba(36, 35, 33, 0.72);
  font-size: clamp(1rem, 1.12vw, 1.12rem);
  line-height: 1.8;
}

.contact-private__details {
  display: grid;
  margin: clamp(2rem, 4vw, 3.2rem) 0 0;
  padding: 0;
  border-top: 1px solid rgba(36, 35, 33, 0.2);
}

.contact-private__detail {
  display: grid;
  gap: 0.3rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(36, 35, 33, 0.14);
}

.contact-private__detail dt {
  color: var(--color-bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.contact-private__detail dd {
  margin: 0;
  color: var(--color-anthracite);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.45;
}

.contact-private__panel {
  border: 1px solid rgba(36, 35, 33, 0.18);
  background: rgba(251, 248, 241, 0.58);
}

.contact-private__form {
  display: grid;
  gap: clamp(1.3rem, 2.6vw, 2rem);
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.contact-private__group {
  display: grid;
  gap: 0.95rem;
  padding-bottom: clamp(1.1rem, 2vw, 1.45rem);
  border-bottom: 1px solid rgba(36, 35, 33, 0.13);
}

.contact-private__group-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.contact-private__group-head h3,
.contact-private__summary h3 {
  margin: 0;
  color: var(--color-anthracite);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.contact-private__group-num {
  color: var(--color-bronze);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}

.contact-private__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-private__field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.contact-private__field label {
  color: rgba(36, 35, 33, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
}

.contact-private__field input,
.contact-private__field textarea {
  width: 100%;
  border: 1px solid rgba(36, 35, 33, 0.18);
  border-radius: 0;
  color: var(--color-anthracite);
  background: rgba(251, 248, 241, 0.86);
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.contact-private__field input {
  min-height: 3.35rem;
  padding: 0 0.95rem;
}

.contact-private__field textarea {
  min-height: 9.5rem;
  padding: 0.9rem 0.95rem;
  resize: vertical;
}

.contact-private__field input:focus,
.contact-private__field textarea:focus {
  border-color: rgba(163, 123, 69, 0.76);
  outline: 0;
  background: rgba(251, 248, 241, 0.96);
}

.contact-private__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-choice {
  min-height: 2.75rem;
  padding: 0.68rem 0.9rem;
  border: 1px solid rgba(36, 35, 33, 0.18);
  border-radius: 0;
  color: rgba(36, 35, 33, 0.82);
  background: rgba(251, 248, 241, 0.72);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.contact-choice:hover,
.contact-choice:focus-visible {
  border-color: rgba(163, 123, 69, 0.56);
  color: var(--color-anthracite);
  background: rgba(251, 248, 241, 0.96);
}

.contact-choice:focus-visible {
  outline: 1px solid rgba(163, 123, 69, 0.82);
  outline-offset: 2px;
}

.contact-choice.is-active,
.contact-choice[aria-pressed="true"] {
  border-color: var(--color-bronze);
  color: var(--color-ivory-soft);
  background: var(--color-anthracite);
}

.contact-private__summary {
  display: grid;
  gap: 0.45rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(163, 123, 69, 0.24);
  background: rgba(232, 222, 208, 0.3);
}

.contact-private__summary p {
  margin: 0;
  color: rgba(36, 35, 33, 0.72);
  font-size: 0.93rem;
  line-height: 1.45;
}

.contact-private__summary span {
  color: var(--color-anthracite);
  font-weight: 800;
}

.contact-private__submit {
  width: 100%;
  min-height: 3.55rem;
  border: 1px solid var(--color-anthracite);
  border-radius: 0;
  color: var(--color-ivory-soft);
  background: var(--color-anthracite);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

.contact-private__submit:hover,
.contact-private__submit:focus-visible {
  border-color: #171614;
  background: #171614;
}

.contact-private__submit:focus-visible {
  outline: 1px solid rgba(163, 123, 69, 0.82);
  outline-offset: 3px;
}

.contact-private__note {
  max-width: 34rem;
  margin: 0;
  color: rgba(36, 35, 33, 0.64);
  font-size: 0.9rem;
  line-height: 1.65;
}

.contact-private__intro > .contact-private__note {
  margin-top: clamp(1.3rem, 2.4vw, 2rem);
}

@media (max-width: 980px) {
  .contact-private {
    padding-block: clamp(4.5rem, 11vw, 6.5rem);
    background-size: 33.333% 100%, 100% 100%;
  }

  .contact-private__inner {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 3.25rem);
  }

  .contact-private__intro {
    position: relative;
    top: auto;
  }

  .contact-private__title {
    max-width: 12ch;
    font-size: clamp(2.8rem, 8.5vw, 5rem);
  }
}

@media (max-width: 640px) {
  .contact-private__inner {
    width: min(100% - 1.25rem, var(--container));
  }

  .contact-private__title {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
  }

  .contact-private__form {
    padding: 1rem;
  }

  .contact-private__grid {
    grid-template-columns: 1fr;
  }

  .contact-private__choices {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-choice,
  .contact-private__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-private__field input,
  .contact-private__field textarea,
  .contact-choice,
  .contact-private__submit {
    transition: none;
  }
}
/* === END PHASE4C_CONTACT_PRIVATE_INTAKE === */

.footer-contact {
  display: grid;
  gap: 1rem;
  margin: var(--space-lg) 0 0;
}

.footer-contact div {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-soft);
}

.footer-contact dt {
  color: var(--color-bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contact dd {
  margin: 0.2rem 0 0;
  color: var(--color-charcoal);
}

.site-footer {
  padding-block: var(--space-xl);
  color: rgba(251, 248, 241, 0.76);
  background: var(--color-anthracite);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.76fr) minmax(10rem, 0.45fr);
  gap: var(--space-xl);
  align-items: start;
}

.brand--footer {
  color: var(--color-ivory-soft);
}

.brand--footer .brand__logo {
  width: min(15rem, 70vw);
  filter: invert(1) grayscale(1) brightness(1.85);
  opacity: 0.82;
}

.site-footer p {
  max-width: 330px;
  margin: 0.7rem 0 0;
}

.site-footer .footer-contact {
  min-width: 0;
  margin: 0;
}

.site-footer .footer-contact div {
  border-color: rgba(251, 248, 241, 0.16);
}

.site-footer .footer-contact dd {
  color: rgba(251, 248, 241, 0.74);
}

.site-footer__copyright {
  justify-self: end;
  max-width: 18rem;
  text-align: right;
  white-space: normal;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  h2 {
    font-size: 3.4rem;
  }

  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-lab {
    grid-template-columns: 1fr;
  }

  .material-preview {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .material-preview__sample {
    min-height: 320px;
  }

  .portfolio-wall {
    grid-auto-rows: 100px;
  }
}

@media (max-width: 920px) {
  :root {
    --space-2xl: 4rem;
    --space-3xl: 6rem;
  }

  .site-header__inner {
    grid-template-columns: auto auto 1fr;
    gap: 0.8rem;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(251, 248, 241, 0.98);
    box-shadow: var(--shadow-card);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 220ms var(--ease-out),
      transform 220ms var(--ease-out);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-bottom: 1px solid var(--color-border-soft);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .header-cta {
    justify-self: end;
  }

  .section-heading--split,
  .showroom__grid,
  .service-showroom {
    grid-template-columns: 1fr;
  }

  .showroom__content,
  .portfolio-index {
    position: static;
  }

  .service-showroom__visual {
    position: relative;
    top: auto;
    min-height: 460px;
  }

  .service-panel {
    min-height: auto;
    opacity: 1;
  }

  .service-panel.is-active {
    transform: none;
  }

  .service-panel ul {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .audience-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .metrics .section-heading h2,
  .showroom__content h2 {
    max-width: 13ch;
    font-size: clamp(3.4rem, 12vw, 5.8rem);
  }

  .metric-card:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(36, 35, 33, 0.16);
  }

  .showroom__grid {
    min-height: auto;
  }

  .metric-card,
  .process-step {
    min-height: auto;
  }

  .process-step:nth-of-type(even) {
    padding-top: var(--space-lg);
  }

  .process-steps {
    padding-top: 0;
    padding-left: 1.1rem;
  }

  .process-steps__rail {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 2px;
    height: auto;
  }

  .process-steps__rail span {
    width: 100%;
    height: var(--process-progress, 25%);
  }

  .process-step::before {
    top: 1.55rem;
    left: -1.48rem;
  }

  .portfolio-archive {
    grid-template-columns: 1fr;
  }

  .portfolio-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .project-tile,
  .project-tile--feature,
  .project-tile--tall,
  .project-tile--wide {
    grid-column: span 3;
    grid-row: span 3;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__copyright {
    justify-self: start;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  :root {
    --space-xl: 2.4rem;
    --space-2xl: 3.4rem;
    --space-3xl: 4.7rem;
  }

  body {
    font-size: 0.96rem;
  }

  .container,
  .site-header__inner {
    width: min(100% - 1.25rem, var(--container));
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand__name {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .brand__image {
    width: clamp(7.5rem, 34vw, 9.4rem);
    max-height: 2.5rem;
  }

  .brand__logo {
    width: 8.3rem;
    max-height: 2.8rem;
  }

  .brand__mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .header-cta {
    display: none;
  }

  h2 {
    font-size: 2.9rem;
  }

  h3 {
    font-size: 1.42rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .metric-card__number {
    font-size: 5.8rem;
  }

  .showroom blockquote {
    padding-top: 1rem;
    font-size: 1.55rem;
  }

  .service-card__body,
  .metric-card,
  .pillar,
  .process-step,
  .audience-card {
    padding: 1.25rem;
  }

  .material-grid {
    grid-template-columns: 1fr;
  }

  .material-card {
    grid-template-columns: 5rem minmax(0, 1fr);
    min-height: 136px;
  }

  .material-preview__sample {
    min-height: 260px;
  }

  .portfolio-wall {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .project-tile,
  .project-tile--feature,
  .project-tile--tall,
  .project-tile--wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 330px;
    aspect-ratio: auto;
  }

  .project-tile__meta {
    opacity: 1;
    transform: none;
  }

}

@media (max-width: 390px) {
  h2 {
    font-size: 2.55rem;
  }

  .button {
    width: 100%;
  }

  .brand__name {
    max-width: 7.4rem;
  }

  .brand__descriptor {
    display: none;
  }
}

@media (hover: hover) {
  .project-tile__caption {
    opacity: 0.82;
  }

  .project-tile:hover .project-tile__caption {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .service-panel,
  .service-showroom__image,
  .material-card,
  .process-step {
    transform: none;
  }

  .project-tile__meta {
    opacity: 1;
    transform: none;
  }
}


/* STAGE5A_MANUAL_SERVICES_PATCH */
@media (min-width: 921px) {
  .services {
    overflow: visible;
  }

  .service-showroom {
    display: grid;
    grid-template-columns: minmax(22rem, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: clamp(2rem, 4.5vw, 4.5rem);
    overflow: visible;
  }

  .service-showroom__visual {
    position: sticky;
    top: clamp(5.75rem, 8vh, 7rem);
    align-self: start;
    height: min(68svh, 660px);
    min-height: 540px;
    max-height: calc(100svh - 8rem);
    border-color: rgba(36, 35, 33, 0.22);
    box-shadow:
      0 42px 120px rgba(36, 35, 33, 0.18),
      inset 0 1px 0 rgba(251, 248, 241, 0.55);
  }

  .service-showroom__image-stack {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .service-showroom__image {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.035) translateY(0.75rem);
    transition:
      opacity 560ms var(--ease-out),
      transform 900ms var(--ease-out),
      visibility 0ms linear 560ms;
  }

  .service-showroom__image.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    transition-delay: 0ms;
  }

  .service-showroom__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.96) contrast(1.06) brightness(1.02);
  }

  .service-showroom__progress {
    width: 2px;
    border-radius: 999px;
  }

  .service-showroom__progress span {
    border-radius: inherit;
    transition: height 520ms var(--ease-out);
  }

  .service-showroom__panels {
    gap: clamp(1.45rem, 3vw, 2.5rem);
    padding-block: clamp(0.75rem, 3vh, 2rem);
  }

  .service-panel {
    display: grid;
    min-height: clamp(420px, 54svh, 540px);
    align-content: center;
    cursor: pointer;
  }

  .service-panel.is-active {
    opacity: 1;
    transform: translateX(-0.55rem);
    border-color: rgba(163, 123, 69, 0.46);
    box-shadow:
      0 32px 96px rgba(36, 35, 33, 0.14),
      inset 0 1px 0 rgba(251, 248, 241, 0.72);
  }

  .service-panel:focus-visible {
    outline: 2px solid rgba(163, 123, 69, 0.68);
    outline-offset: 5px;
  }
}

@media (max-width: 920px) {
  .service-showroom {
    gap: 1.25rem;
  }

  .service-showroom__visual {
    position: relative;
    top: auto;
    height: auto;
    min-height: clamp(330px, 56vw, 460px);
    max-height: none;
  }

  .service-showroom__panels {
    gap: 1rem;
    padding-block: 0;
  }

  .service-panel {
    min-height: auto;
    cursor: default;
  }

  .service-panel,
  .service-panel.is-active {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-showroom__image,
  .service-panel,
  .service-showroom__progress span {
    transition-duration: 1ms !important;
  }
}

/* STAGE5A_FONT_STABILITY_PATCH */
.brand__name,
.brand__descriptor {
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

/* STAGE6C_MATERIALITY_CHAPTER */
.materials-lab {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: start;
}

.material-preview {
  min-height: min(74svh, 720px);
  border-color: rgba(36, 35, 33, 0.22);
  border-radius: 0;
  box-shadow:
    0 36px 110px rgba(36, 35, 33, 0.14),
    inset 0 0 0 1px rgba(251, 248, 241, 0.38);
}

.material-preview__sample {
  min-height: 440px;
  background-position: center;
  background-size: cover;
  filter: saturate(0.94) contrast(1.06);
}

.material-preview__sample::after {
  background-image:
    linear-gradient(rgba(251, 248, 241, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 35, 33, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, transparent 58%, rgba(36, 35, 33, 0.18));
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

.material-preview__content {
  min-height: 210px;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(36, 35, 33, 0.16);
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.82), rgba(246, 241, 232, 0.98)),
    var(--color-ivory);
}

.material-grid {
  gap: 1px;
  background: rgba(36, 35, 33, 0.14);
  border: 1px solid rgba(36, 35, 33, 0.14);
}

.material-card {
  grid-template-columns: minmax(4.8rem, 0.36fr) minmax(0, 1fr);
  gap: 0.85rem;
  min-height: 150px;
  padding: 0.85rem;
  border: 0;
  border-radius: 0;
  background: rgba(251, 248, 241, 0.78);
  box-shadow: none;
}

.material-card__sample {
  min-height: 100%;
  border-color: rgba(36, 35, 33, 0.18);
  border-radius: 0;
}

@media (max-width: 640px) {
  .material-preview__sample {
    min-height: 300px;
  }

  .material-card {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    min-height: 132px;
  }
}

/* STAGE7_PORTFOLIO_WALL_LIGHTBOX */
.portfolio {
  overflow: hidden;
  padding-block: clamp(6rem, 10vw, 9rem);
  background:
    linear-gradient(90deg, rgba(36, 35, 33, 0.055) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(232, 222, 208, 0.74)),
    var(--color-ivory);
  background-size: 25% 100%, 100% 100%;
}

.portfolio > .container {
  width: min(100% - 2rem, 1480px);
}

.portfolio .section-heading {
  margin-bottom: clamp(2.6rem, 5vw, 4.8rem);
}

.portfolio .section-heading h2 {
  max-width: 10.8ch;
  font-size: clamp(4.4rem, 7.6vw, 8.4rem);
  line-height: 0.84;
}

.portfolio-archive {
  grid-template-columns: minmax(8rem, 0.15fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3.2rem);
}

.portfolio-index {
  top: 7.5rem;
  padding-top: 1.4rem;
  border-color: rgba(36, 35, 33, 0.22);
}

.portfolio-index ol {
  gap: 0.85rem;
  color: rgba(36, 35, 33, 0.72);
}

.portfolio-wall {
  grid-template-columns: repeat(14, minmax(0, 1fr));
  grid-auto-rows: clamp(78px, 6.8vw, 126px);
  grid-auto-flow: dense;
  gap: clamp(0.7rem, 1vw, 1rem);
}

.project-tile {
  cursor: pointer;
  border-color: rgba(36, 35, 33, 0.2);
  border-radius: 0;
  box-shadow: 0 28px 90px rgba(36, 35, 33, 0.12);
  isolation: isolate;
  transition:
    border-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.project-tile:hover,
.project-tile:focus-visible {
  border-color: rgba(163, 123, 69, 0.56);
  box-shadow: 0 36px 120px rgba(36, 35, 33, 0.18);
  transform: translateY(-4px);
}

.project-tile--feature {
  grid-column: span 7;
  grid-row: span 6;
}

.project-tile--tall {
  grid-column: span 4;
  grid-row: span 6;
}

.project-tile--wide {
  grid-column: span 6;
  grid-row: span 3;
}

.project-tile[data-gallery-index="2"],
.project-tile[data-gallery-index="3"] {
  grid-column: span 3;
  grid-row: span 3;
}

.project-tile[data-gallery-index="5"],
.project-tile[data-gallery-index="6"] {
  grid-column: span 4;
  grid-row: span 3;
}

.project-tile img {
  filter: saturate(0.92) contrast(1.06) brightness(1.02);
  transform: scale(1.01);
}

.project-tile::after {
  background:
    linear-gradient(180deg, transparent 36%, rgba(36, 35, 33, 0.78)),
    linear-gradient(90deg, rgba(36, 35, 33, 0.18), transparent 48%);
}

.project-tile__caption {
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  left: clamp(1rem, 2vw, 1.5rem);
}

.project-tile__caption h3 {
  max-width: 16ch;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.project-tile--feature .project-tile__caption h3,
.project-tile--tall .project-tile__caption h3 {
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 0.9;
}

.project-tile__meta {
  max-width: 34rem;
}

body.gallery-is-open {
  overflow: hidden;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.4vw, 2rem);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 260ms var(--ease-out),
    visibility 0ms linear 260ms;
}

.portfolio-lightbox.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition-delay: 0ms;
}

.portfolio-lightbox__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(20, 19, 17, 0.88);
  border: 0;
}

.portfolio-lightbox__frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.34fr);
  width: min(100%, 1480px);
  height: min(88svh, 900px);
  max-height: calc(100svh - 2rem);
  overflow: hidden;
  color: var(--color-ivory-soft);
  background: rgba(36, 35, 33, 0.96);
  border: 1px solid rgba(251, 248, 241, 0.18);
  box-shadow: 0 44px 160px rgba(0, 0, 0, 0.46);
}

.portfolio-lightbox__media {
  min-height: 0;
  background: #11100f;
}

.portfolio-lightbox__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #11100f;
}

.portfolio-lightbox__content {
  display: grid;
  align-content: end;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(251, 248, 241, 0.12);
}

.portfolio-lightbox__counter,
.portfolio-lightbox__category {
  margin: 0 0 0.8rem;
  color: var(--color-oak);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-lightbox__content h3 {
  color: var(--color-ivory-soft);
  font-size: clamp(2.4rem, 4.4vw, 5rem);
  line-height: 0.88;
}

.portfolio-lightbox__content > p:last-of-type {
  margin: 1rem 0 0;
  color: rgba(251, 248, 241, 0.72);
}

.portfolio-lightbox__close,
.portfolio-lightbox__controls button {
  min-height: 44px;
  color: var(--color-ivory-soft);
  background: rgba(251, 248, 241, 0.08);
  border: 1px solid rgba(251, 248, 241, 0.22);
  cursor: pointer;
}

.portfolio-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.7rem 0.95rem;
}

.portfolio-lightbox__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

/* STAGE7B_FULLBLEED_PROJECT_GALLERIES */
.portfolio-archive {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.05rem, 2vw, 1.6rem);
  padding-inline: clamp(1rem, 3vw, 3.75rem);
}

.portfolio-index {
  position: static;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: end;
  gap: clamp(1rem, 2vw, 1.8rem);
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-top: 0;
}

.portfolio-index ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem clamp(1rem, 2vw, 1.8rem);
}

.portfolio-wall {
  width: min(100%, 1500px);
  margin-inline: auto;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  grid-auto-rows: clamp(88px, 6.8vw, 138px);
  gap: clamp(0.75rem, 1vw, 1.15rem);
}

.project-tile--feature {
  grid-column: span 8;
  grid-row: span 6;
}

.project-tile--tall {
  grid-column: span 4;
  grid-row: span 6;
}

.project-tile--wide {
  grid-column: span 7;
  grid-row: span 3;
}

.project-tile[data-gallery-index="2"],
.project-tile[data-gallery-index="3"] {
  grid-column: span 4;
  grid-row: span 3;
}

.project-tile[data-gallery-index="5"] {
  grid-column: span 5;
  grid-row: span 3;
}

.project-tile[data-gallery-index="6"] {
  grid-column: span 4;
  grid-row: span 3;
}

.portfolio-lightbox {
  z-index: 120;
}

.portfolio-lightbox__frame {
  grid-template-columns: minmax(0, 1.18fr) minmax(21rem, 0.32fr);
  width: min(calc(100vw - 2rem), 1680px);
  height: min(92svh, 940px);
  background:
    linear-gradient(90deg, rgba(251, 248, 241, 0.05) 0 1px, transparent 1px),
    rgba(28, 27, 25, 0.98);
  background-size: 25% 100%, 100% 100%;
}

.portfolio-lightbox__media {
  display: grid;
  place-items: center;
  padding: clamp(0.35rem, 0.8vw, 0.75rem);
}

.portfolio-lightbox__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.portfolio-lightbox__content {
  align-content: end;
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.035), transparent 38%),
    rgba(36, 35, 33, 0.72);
}

.portfolio-lightbox__indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(2.35rem, 1fr));
  gap: 0.45rem;
  margin-top: clamp(1.1rem, 2vw, 1.6rem);
}

.portfolio-lightbox__indicators button {
  min-height: 34px;
  color: rgba(251, 248, 241, 0.64);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: rgba(251, 248, 241, 0.055);
  border: 1px solid rgba(251, 248, 241, 0.14);
  cursor: pointer;
}

.portfolio-lightbox__indicators button:hover,
.portfolio-lightbox__indicators button:focus-visible,
.portfolio-lightbox__indicators button.is-active {
  color: var(--color-ivory-soft);
  border-color: rgba(191, 148, 90, 0.82);
  background: rgba(191, 148, 90, 0.16);
}

@media (max-width: 920px) {
  .portfolio-archive {
    grid-template-columns: 1fr;
  }

  .portfolio-index {
    position: static;
  }

  .portfolio-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(82px, 18vw, 132px);
  }

  .project-tile,
  .project-tile--feature,
  .project-tile--tall,
  .project-tile--wide,
  .project-tile[data-gallery-index] {
    grid-column: span 3;
    grid-row: span 3;
  }

  .project-tile--feature,
  .project-tile--tall {
    grid-column: span 6;
    grid-row: span 4;
  }

  .portfolio-lightbox__frame {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 92svh;
    overflow: auto;
  }

  .portfolio-lightbox__media {
    min-height: 56svh;
  }
}

@media (max-width: 640px) {
  .portfolio > .container {
    width: min(100% - 1.25rem, 1480px);
  }

  .portfolio .section-heading h2 {
    font-size: 3.2rem;
  }

  .portfolio-wall {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .project-tile,
  .project-tile--feature,
  .project-tile--tall,
  .project-tile--wide,
  .project-tile[data-gallery-index] {
    grid-column: 1;
    grid-row: auto;
    min-height: 420px;
  }

  .project-tile__meta {
    display: none;
  }

  .portfolio-lightbox {
    padding: 0.75rem;
  }

  .portfolio-lightbox__media {
    min-height: 52svh;
  }
}

@media (max-width: 920px) {
  .portfolio-archive {
    padding-inline: clamp(0.85rem, 3vw, 1.5rem);
  }

  .portfolio-lightbox__frame {
    width: min(calc(100vw - 1.5rem), 760px);
  }

  .portfolio-lightbox__content {
    border-top: 1px solid rgba(251, 248, 241, 0.12);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .portfolio-archive {
    padding-inline: 0.75rem;
  }

  .portfolio-lightbox__indicators {
    grid-template-columns: repeat(auto-fit, minmax(2rem, 1fr));
  }
}

/* STAGE7C_PORTFOLIO_FULLWIDTH_SWIPE_LIGHTBOX */
.portfolio-archive {
  width: auto;
  margin-right: 0;
  margin-left: 0;
  padding-inline: 0;
}

.portfolio-index {
  width: 100%;
}

.portfolio-wall {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  grid-auto-rows: clamp(92px, 6vw, 132px);
  gap: clamp(0.7rem, 0.9vw, 1rem);
  padding-inline: clamp(1rem, 3vw, 4rem);
}

.project-tile--feature {
  grid-column: span 9;
  grid-row: span 6;
}

.project-tile--tall {
  grid-column: span 4;
  grid-row: span 6;
}

.project-tile--wide {
  grid-column: span 7;
  grid-row: span 3;
}

.project-tile[data-gallery-index="2"],
.project-tile[data-gallery-index="3"] {
  grid-column: span 5;
  grid-row: span 3;
}

.project-tile[data-gallery-index="5"] {
  grid-column: span 6;
  grid-row: span 3;
}

.project-tile[data-gallery-index="6"] {
  grid-column: span 5;
  grid-row: span 3;
}

.portfolio-lightbox {
  z-index: 140;
  padding: clamp(0.75rem, 2vw, 2rem);
}

.portfolio-lightbox__backdrop {
  background: rgba(12, 11, 10, 0.92);
}

.portfolio-lightbox__frame {
  grid-template-columns: minmax(0, 3.2fr) minmax(22rem, 1fr);
  width: min(94vw, 1560px);
  height: min(86svh, 900px);
  max-height: calc(100svh - 1.5rem);
  overflow: hidden;
  background: #181715;
  border: 1px solid rgba(251, 248, 241, 0.2);
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.54);
}

.portfolio-lightbox__media {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  padding: clamp(0.5rem, 0.9vw, 1rem);
  cursor: grab;
  user-select: none;
  background: #090807;
  touch-action: pan-y;
}

.portfolio-lightbox__media.is-dragging {
  cursor: grabbing;
}

.portfolio-lightbox__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  transition: transform 180ms var(--ease-out);
  will-change: transform;
}

.portfolio-lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: clamp(2.6rem, 3.8vw, 3.35rem);
  height: clamp(2.6rem, 3.8vw, 3.35rem);
  padding: 0;
  place-items: center;
  color: var(--color-ivory-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  background: rgba(24, 23, 21, 0.54);
  border: 1px solid rgba(251, 248, 241, 0.24);
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.portfolio-lightbox__arrow:hover,
.portfolio-lightbox__arrow:focus-visible {
  background: rgba(191, 148, 90, 0.24);
  border-color: rgba(191, 148, 90, 0.82);
}

.portfolio-lightbox__arrow--prev {
  left: clamp(0.75rem, 1.5vw, 1.4rem);
}

.portfolio-lightbox__arrow--next {
  right: clamp(0.75rem, 1.5vw, 1.4rem);
}

.portfolio-lightbox__content {
  min-width: 0;
  overflow-y: auto;
  align-content: end;
  padding: clamp(1.5rem, 2.8vw, 2.75rem);
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.035), transparent 36%),
    #211f1d;
  border-left: 1px solid rgba(251, 248, 241, 0.14);
}

.portfolio-lightbox__content h3 {
  max-width: 8.5ch;
  overflow-wrap: break-word;
  font-size: clamp(2.5rem, 4.1vw, 4.9rem);
}

.portfolio-lightbox__content > p:last-of-type {
  max-width: 31rem;
  line-height: 1.55;
}

.portfolio-lightbox__close {
  top: clamp(0.85rem, 1.5vw, 1.2rem);
  right: clamp(0.85rem, 1.5vw, 1.2rem);
  z-index: 3;
  background: rgba(24, 23, 21, 0.7);
}

.portfolio-lightbox__controls,
.portfolio-lightbox__indicators {
  display: none !important;
}

@media (max-width: 920px) {
  .portfolio-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(86px, 18vw, 132px);
    padding-inline: clamp(0.85rem, 3vw, 1.5rem);
  }

  .project-tile,
  .project-tile--feature,
  .project-tile--tall,
  .project-tile--wide,
  .project-tile[data-gallery-index] {
    grid-column: span 3;
    grid-row: span 3;
  }

  .project-tile--feature,
  .project-tile--tall {
    grid-column: span 6;
    grid-row: span 4;
  }

  .portfolio-lightbox__frame {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 62svh) minmax(0, 1fr);
    width: min(94vw, 760px);
    height: min(92svh, 900px);
    max-height: calc(100svh - 1rem);
  }

  .portfolio-lightbox__media {
    min-height: 0;
  }

  .portfolio-lightbox__content {
    align-content: start;
    border-top: 1px solid rgba(251, 248, 241, 0.14);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .portfolio-wall {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    padding-inline: 0.75rem;
  }

  .project-tile,
  .project-tile--feature,
  .project-tile--tall,
  .project-tile--wide,
  .project-tile[data-gallery-index] {
    grid-column: 1;
    grid-row: auto;
    min-height: 410px;
  }

  .portfolio-lightbox {
    padding: 0.5rem;
  }

  .portfolio-lightbox__frame {
    width: min(96vw, 430px);
    height: min(94svh, 820px);
    grid-template-rows: minmax(0, 59svh) minmax(0, 1fr);
  }

  .portfolio-lightbox__content {
    padding: 1.25rem;
  }

  .portfolio-lightbox__content h3 {
    max-width: 10ch;
    font-size: clamp(2.1rem, 12vw, 3.35rem);
  }

  .portfolio-lightbox__arrow {
    width: 2.45rem;
    height: 2.45rem;
  }
}

/* STAGE7D_LIGHTBOX_OVERFLOW_FIX */
.portfolio-lightbox,
.portfolio-lightbox * {
  min-width: 0;
}

.portfolio-lightbox {
  overflow: hidden;
}

.portfolio-lightbox__frame {
  box-sizing: border-box;
  width: min(94vw, 1560px);
  max-width: calc(100vw - 1rem);
  min-width: 0;
  overflow: hidden;
}

.portfolio-lightbox__media {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.portfolio-lightbox__media img {
  min-width: 0;
  max-width: 100%;
  object-fit: contain;
}

.portfolio-lightbox__arrow,
.portfolio-lightbox__close {
  max-width: calc(100% - 1rem);
  box-sizing: border-box;
  flex-shrink: 0;
}

.portfolio-lightbox__content {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.portfolio-lightbox__content > * {
  max-width: 100%;
  min-width: 0;
}

.portfolio-lightbox__counter,
.portfolio-lightbox__category,
.portfolio-lightbox__content h3,
.portfolio-lightbox__content p {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.portfolio-lightbox__content h3 {
  width: 100%;
  max-width: 100%;
}

.portfolio-lightbox__content > p:last-of-type {
  width: 100%;
}

@media (max-width: 920px) {
  .portfolio-lightbox__frame {
    max-width: calc(100vw - 1rem);
  }
}

@media (max-width: 640px) {
  .portfolio-lightbox__frame {
    max-width: calc(100vw - 0.75rem);
  }

  .portfolio-lightbox__content h3 {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-tile,
  .portfolio-lightbox {
    transition-duration: 1ms !important;
  }

  .portfolio-lightbox__media img,
  .portfolio-lightbox__arrow {
    transition: none !important;
  }
}

/* PHASE5E_LIGHTBOX_UX_MOBILE_DESKTOP */
body.gallery-is-open {
  overflow: hidden;
  overscroll-behavior: contain;
}

.portfolio-lightbox {
  z-index: 160;
  padding: clamp(0.45rem, 1vw, 1rem);
  overflow: hidden;
  overscroll-behavior: contain;
}

.portfolio-lightbox__backdrop {
  background: rgba(8, 7, 6, 0.94);
}

.portfolio-lightbox__frame {
  width: min(96vw, 1680px);
  max-width: calc(100vw - 1rem);
  height: min(91svh, 960px);
  max-height: calc(100svh - 0.9rem);
  grid-template-columns: minmax(0, 4.2fr) minmax(21rem, 0.95fr);
  background: #11100f;
  border-color: rgba(251, 248, 241, 0.22);
}

.portfolio-lightbox__media {
  padding: clamp(0.25rem, 0.55vw, 0.7rem);
  background: #070605;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.portfolio-lightbox__media img {
  width: 100%;
  height: 100%;
  max-height: min(80svh, 900px);
  object-fit: contain;
  background: transparent;
}

.portfolio-lightbox__arrow {
  width: clamp(3rem, 3.6vw, 3.8rem);
  height: clamp(3rem, 3.6vw, 3.8rem);
  color: var(--color-ivory-soft);
  background: rgba(10, 9, 8, 0.62);
  border-color: rgba(251, 248, 241, 0.32);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
}

.portfolio-lightbox__arrow--prev {
  left: clamp(0.55rem, 1.2vw, 1.2rem);
}

.portfolio-lightbox__arrow--next {
  right: clamp(0.55rem, 1.2vw, 1.2rem);
}

.portfolio-lightbox__close {
  min-width: 3.5rem;
  min-height: 2.75rem;
  padding-inline: 0.95rem;
  color: var(--color-ivory-soft);
  border-color: rgba(251, 248, 241, 0.28);
  background: rgba(10, 9, 8, 0.68);
}

.portfolio-lightbox__content {
  align-content: end;
  padding: clamp(1.25rem, 2vw, 2.25rem);
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.04), transparent 32%),
    #211f1d;
}

@supports (height: 100dvh) {
  .portfolio-lightbox__frame {
    height: min(91dvh, 960px);
    max-height: calc(100dvh - 0.9rem);
  }

  .portfolio-lightbox__media img {
    max-height: min(80dvh, 900px);
  }
}

@media (max-width: 920px) {
  .portfolio-lightbox {
    padding: 0;
    place-items: stretch;
  }

  .portfolio-lightbox__frame {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 66svh) minmax(0, 1fr);
    border: 0;
  }

  .portfolio-lightbox__media {
    padding: 3.1rem 0.35rem 0.35rem;
  }

  .portfolio-lightbox__media img {
    max-height: calc(66svh - 3.45rem);
  }

  .portfolio-lightbox__content {
    align-content: start;
    padding: 1rem 0.95rem calc(1.1rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(251, 248, 241, 0.14);
    border-left: 0;
  }

  .portfolio-lightbox__close {
    top: calc(0.5rem + env(safe-area-inset-top));
    right: calc(0.5rem + env(safe-area-inset-right));
    min-width: 4.25rem;
    min-height: 44px;
    padding-inline: 0.82rem;
    font-size: 0.78rem;
  }

  .portfolio-lightbox__arrow {
    width: 52px;
    height: 52px;
    font-size: 1.22rem;
    background: rgba(10, 9, 8, 0.66);
  }

  .portfolio-lightbox__arrow--prev {
    left: 0.5rem;
  }

  .portfolio-lightbox__arrow--next {
    right: 0.5rem;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 920px) {
    .portfolio-lightbox__frame {
      height: 100dvh;
      max-height: 100dvh;
      grid-template-rows: minmax(280px, 66dvh) minmax(0, 1fr);
    }

    .portfolio-lightbox__media img {
      max-height: calc(66dvh - 3.45rem);
    }
  }
}

@media (max-width: 640px) {
  .portfolio-lightbox__frame {
    grid-template-rows: minmax(300px, 68svh) minmax(0, 1fr);
  }

  .portfolio-lightbox__media {
    padding-inline: 0.25rem;
  }

  .portfolio-lightbox__media img {
    max-height: calc(68svh - 3.45rem);
  }

  .portfolio-lightbox__content {
    padding-inline: 0.85rem;
  }

  .portfolio-lightbox__content h3 {
    font-size: clamp(2rem, 10.5vw, 3.1rem);
  }
}

@supports (height: 100dvh) {
  @media (max-width: 640px) {
    .portfolio-lightbox__frame {
      grid-template-rows: minmax(300px, 68dvh) minmax(0, 1fr);
    }

    .portfolio-lightbox__media img {
      max-height: calc(68dvh - 3.45rem);
    }
  }
}

/* PHASE5F_LIGHTBOX_PREMIUM_REFINEMENT */
.portfolio-lightbox {
  padding: 1rem;
  background: transparent;
}

.portfolio-lightbox__frame {
  width: min(calc(100vw - 32px), 1920px);
  max-width: calc(100vw - 32px);
  height: calc(100svh - 32px);
  max-height: calc(100svh - 32px);
  grid-template-columns: minmax(0, 4.35fr) minmax(19rem, 1fr);
  background: #0b0a09;
}

.portfolio-lightbox__media {
  position: relative;
  padding: 0.18rem;
  background: #060504;
}

.portfolio-lightbox__media img {
  max-height: calc(100svh - 36px);
}

.portfolio-lightbox__counter {
  position: absolute;
  top: calc(0.95rem + env(safe-area-inset-top));
  left: calc(0.95rem + env(safe-area-inset-left));
  z-index: 4;
  margin: 0;
  padding: 0.36rem 0.54rem;
  color: rgba(216, 190, 151, 0.92);
  background: rgba(10, 9, 8, 0.52);
  border: 1px solid rgba(216, 190, 151, 0.24);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.portfolio-lightbox__content {
  align-content: center;
  gap: 0.62rem;
  padding: clamp(1.05rem, 1.65vw, 1.75rem);
}

.portfolio-lightbox__category {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.portfolio-lightbox__content h3 {
  margin: 0;
  font-size: clamp(2.2rem, 3.35vw, 4.35rem);
  line-height: 0.96;
}

.portfolio-lightbox__content > p:last-of-type {
  margin-top: 0.28rem;
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  line-height: 1.48;
}

.portfolio-lightbox__close {
  display: grid;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.46);
  backdrop-filter: blur(12px);
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.portfolio-lightbox__close-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.portfolio-lightbox__close::before,
.portfolio-lightbox__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.15rem;
  height: 1px;
  content: "";
  background: rgba(251, 248, 241, 0.94);
  transform-origin: center;
  transition:
    background-color 180ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.portfolio-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg) scaleX(0.82);
}

.portfolio-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(0.82);
}

.portfolio-lightbox__close:hover,
.portfolio-lightbox__close:focus-visible {
  border-color: rgba(216, 190, 151, 0.66);
  background: rgba(36, 35, 33, 0.72);
  transform: scale(1.025);
}

.portfolio-lightbox__close:hover::before,
.portfolio-lightbox__close:hover::after,
.portfolio-lightbox__close:focus-visible::before,
.portfolio-lightbox__close:focus-visible::after {
  background: var(--color-ivory-soft);
}

.portfolio-lightbox__close:hover::before,
.portfolio-lightbox__close:focus-visible::before {
  transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
}

.portfolio-lightbox__close:hover::after,
.portfolio-lightbox__close:focus-visible::after {
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
}

.portfolio-lightbox__close:focus-visible {
  outline: 1px solid rgba(216, 190, 151, 0.86);
  outline-offset: 3px;
}

.portfolio-lightbox__arrow {
  background: rgba(10, 9, 8, 0.48);
  backdrop-filter: blur(12px);
}

.portfolio-lightbox__arrow--prev {
  left: 0.8rem;
}

.portfolio-lightbox__arrow--next {
  right: 0.8rem;
}

@media (hover: hover) and (pointer: fine) {
  .portfolio-lightbox__arrow {
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 220ms var(--ease-out),
      background-color 180ms var(--ease-out),
      border-color 180ms var(--ease-out);
  }

  .portfolio-lightbox.is-controls-visible .portfolio-lightbox__arrow,
  .portfolio-lightbox__arrow:focus-visible {
    opacity: 0.92;
    pointer-events: auto;
  }

  .portfolio-lightbox.is-controls-idle .portfolio-lightbox__arrow:not(:focus-visible) {
    opacity: 0;
    pointer-events: none;
  }
}

@supports (height: 100dvh) {
  .portfolio-lightbox__frame {
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
  }

  .portfolio-lightbox__media img {
    max-height: calc(100dvh - 36px);
  }
}

@media (max-width: 920px) {
  .portfolio-lightbox {
    padding: 0;
  }

  .portfolio-lightbox__frame {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 72svh) minmax(0, 1fr);
  }

  .portfolio-lightbox__media {
    padding: 2.7rem 0.12rem 0.12rem;
  }

  .portfolio-lightbox__media img {
    max-height: calc(72svh - 2.95rem);
  }

  .portfolio-lightbox__counter {
    top: calc(0.62rem + env(safe-area-inset-top));
    left: calc(0.62rem + env(safe-area-inset-left));
    padding: 0.32rem 0.48rem;
    font-size: 0.68rem;
  }

  .portfolio-lightbox__close {
    top: calc(0.52rem + env(safe-area-inset-top));
    right: calc(0.52rem + env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .portfolio-lightbox__arrow {
    width: 52px;
    height: 52px;
    opacity: 0.86;
    pointer-events: auto;
  }

  .portfolio-lightbox__arrow--prev {
    left: 0.28rem;
  }

  .portfolio-lightbox__arrow--next {
    right: 0.28rem;
  }

  .portfolio-lightbox__content {
    gap: 0.48rem;
    padding: 0.72rem 0.88rem calc(0.88rem + env(safe-area-inset-bottom));
  }

  .portfolio-lightbox__category {
    font-size: 0.68rem;
  }

  .portfolio-lightbox__content h3 {
    font-size: clamp(1.9rem, 9.8vw, 3rem);
    line-height: 0.98;
  }

  .portfolio-lightbox__content > p:last-of-type {
    margin-top: 0.08rem;
    font-size: 0.9rem;
    line-height: 1.42;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 920px) {
    .portfolio-lightbox__frame {
      height: 100dvh;
      max-height: 100dvh;
      grid-template-rows: minmax(0, 72dvh) minmax(0, 1fr);
    }

    .portfolio-lightbox__media img {
      max-height: calc(72dvh - 2.95rem);
    }
  }
}

@media (max-width: 640px) {
  .portfolio-lightbox__frame {
    grid-template-rows: minmax(0, 73svh) minmax(0, 1fr);
  }

  .portfolio-lightbox__media img {
    max-height: calc(73svh - 2.95rem);
  }

  .portfolio-lightbox__content h3 {
    font-size: clamp(1.72rem, 8.6vw, 2.7rem);
  }
}

@supports (height: 100dvh) {
  @media (max-width: 640px) {
    .portfolio-lightbox__frame {
      grid-template-rows: minmax(0, 73dvh) minmax(0, 1fr);
    }

    .portfolio-lightbox__media img {
      max-height: calc(73dvh - 2.95rem);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-lightbox__close,
  .portfolio-lightbox__close::before,
  .portfolio-lightbox__close::after,
  .portfolio-lightbox__arrow {
    transition: none !important;
  }
}

/* PHASE1A_MANIFESTO_FULLSCREEN_BRIDGE */
.manifesto-fullscreen {
  display: grid;
  min-height: 100svh;
  padding-block: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(216, 190, 151, 0.16) 18% calc(18% + 1px), transparent calc(18% + 1px) 100%),
    linear-gradient(90deg, transparent 0 63%, rgba(251, 248, 241, 0.08) 63% calc(63% + 1px), transparent calc(63% + 1px) 100%),
    linear-gradient(rgba(251, 248, 241, 0.035) 1px, transparent 1px),
    linear-gradient(110deg, rgba(36, 35, 33, 0.98), rgba(58, 55, 50, 0.94)),
    var(--color-anthracite);
  background-size: 100% 100%, 100% 100%, 100% 6.2rem, 100% 100%, 100% 100%;
}

.manifesto-fullscreen::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 16% 24%, rgba(216, 190, 151, 0.14), transparent 24rem),
    linear-gradient(180deg, rgba(36, 35, 33, 0), rgba(36, 35, 33, 0.58));
}

.manifesto-fullscreen::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(163, 123, 69, 0.72), transparent);
}

.manifesto__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding-block: clamp(6rem, 10svh, 8rem) clamp(3rem, 8svh, 6rem);
}

.manifesto__eyebrow {
  align-self: start;
  margin: 0;
  color: var(--color-oak);
}

.manifesto__statement {
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--color-ivory-soft);
  font-size: 6.8rem;
  line-height: 0.88;
  letter-spacing: 0;
}

.manifesto__line {
  display: block;
}

.js .manifesto__line {
  clip-path: inset(0 0 0 100%);
  transform: translateX(1.2rem);
  transition:
    clip-path 1200ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .manifesto.is-visible .manifesto__line {
  clip-path: inset(0);
  transform: translateX(0);
}

.js .manifesto.is-visible .manifesto__line:nth-child(2) {
  transition-delay: 400ms;
}

.manifesto__dot {
  display: inline-block;
  color: var(--color-bronze);
}

.js .manifesto__dot {
  opacity: 0.58;
  transform: scale(0.74);
  transform-origin: center;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .manifesto.is-visible .manifesto__line:first-child .manifesto__dot {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1180ms;
}

.js .manifesto.is-visible .manifesto__line:nth-child(2) .manifesto__dot {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1580ms;
}

.manifesto__support {
  align-self: end;
  max-width: 38rem;
  margin: 0;
  color: rgba(251, 248, 241, 0.74);
  font-size: clamp(1.08rem, 1.35rem, 1.5rem);
  line-height: 1.55;
}

.craft-bridge {
  padding-block: clamp(4.5rem, 8vw, 8rem);
  background: var(--color-ivory-soft);
}

.craft-bridge__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.8vw, 3rem);
  align-items: start;
}

.craft-bridge__item {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
  min-width: 0;
}

.craft-bridge__image {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: var(--color-charcoal);
}

.craft-bridge__image::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(36, 35, 33, 0.12);
  background: linear-gradient(180deg, rgba(36, 35, 33, 0.08), transparent 38%, rgba(36, 35, 33, 0.16));
}

.craft-bridge__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.05);
  transform: scale(1.02);
}

.craft-bridge__item:nth-child(1) .craft-bridge__image img {
  object-position: 54% 52%;
}

.craft-bridge__item:nth-child(2) .craft-bridge__image img {
  object-position: 46% 55%;
}

.craft-bridge__item:nth-child(3) .craft-bridge__image img {
  object-position: 58% 50%;
}

.craft-bridge__copy {
  min-width: 0;
}

.craft-bridge__copy span {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--color-bronze);
  font-size: 0.74rem;
  font-weight: 800;
}

.craft-bridge__copy h3 {
  margin: 0;
  color: var(--color-anthracite);
  font-size: clamp(2.15rem, 2.75rem, 3.1rem);
  line-height: 0.96;
}

.craft-bridge__copy p {
  max-width: 28rem;
  margin: 0.9rem 0 0;
  color: rgba(36, 35, 33, 0.68);
  font-size: 1rem;
  line-height: 1.64;
}

@media (min-width: 1500px) {
  .manifesto__statement {
    font-size: 7.8rem;
  }
}

@media (min-width: 1041px) {
  .manifesto__line {
    white-space: nowrap;
  }
}

@media (max-width: 1040px) {
  .manifesto__statement {
    max-width: 12.5ch;
    font-size: 5.8rem;
  }
}

@media (max-width: 820px) {
  .manifesto__inner {
    padding-block: 5.5rem 3.5rem;
  }

  .manifesto__statement {
    max-width: 11.5ch;
    font-size: 4.4rem;
  }

  .craft-bridge__grid {
    grid-template-columns: 1fr;
    gap: 3.4rem;
  }

  .craft-bridge__image {
    aspect-ratio: 4 / 4.7;
  }
}

@media (max-width: 480px) {
  .manifesto__statement {
    font-size: 3.45rem;
  }

  .manifesto__support {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .manifesto__line,
  .js .manifesto__dot {
    clip-path: inset(0);
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* PHASE1B_METRICS_PROOF_INSTRUMENT */
.metrics {
  overflow: hidden;
  padding-block: clamp(5rem, 9vw, 8.5rem);
  background:
    linear-gradient(90deg, rgba(36, 35, 33, 0.07) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, var(--color-ivory-soft), var(--color-ivory));
  background-size: 25% 100%, 100% 100%;
}

.metrics::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(163, 123, 69, 0.18), transparent 1px),
    linear-gradient(90deg, transparent, rgba(216, 190, 151, 0.18), transparent);
}

.metrics .container {
  position: relative;
  z-index: 1;
}

.metrics .section-heading {
  grid-template-columns: minmax(0, 1.42fr) minmax(18rem, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.4rem, 5vw, 4.6rem);
  padding-top: clamp(1rem, 2vw, 1.6rem);
  border-top: 1px solid rgba(36, 35, 33, 0.18);
}

.metrics .section-heading h2 {
  max-width: 14ch;
  color: var(--color-anthracite);
  font-size: clamp(3.8rem, 6.3vw, 7rem);
  line-height: 0.9;
}

.metrics .section-heading > p {
  max-width: 39rem;
  color: rgba(36, 35, 33, 0.68);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.68;
}

.metric-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border-block: 1px solid rgba(36, 35, 33, 0.22);
}

.metric-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: clamp(310px, 30vw, 410px);
  flex-direction: column;
  align-content: stretch;
  padding: clamp(1.35rem, 2.4vw, 2.25rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.62), rgba(246, 241, 232, 0.22)),
    transparent;
}

.metric-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(163, 123, 69, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-card.is-visible::before {
  opacity: 1;
}

.metric-card:not(:last-child) {
  border-right: 1px solid rgba(36, 35, 33, 0.16);
}

.metric-card--primary {
  min-height: clamp(360px, 35vw, 480px);
}

.metric-card__index {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: max-content;
  color: var(--color-bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.metric-card__number {
  position: relative;
  z-index: 1;
  margin: auto 0 clamp(1.1rem, 2vw, 1.8rem);
  color: var(--color-anthracite);
  font-family: var(--font-serif);
  font-size: clamp(5.4rem, 9.2vw, 10.5rem);
  font-weight: 650;
  line-height: 0.72;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
}

.metric-card--primary .metric-card__number {
  font-size: clamp(7rem, 13vw, 14rem);
}

.js .metric-card__number[data-count="∞"] {
  opacity: 0;
  transform: translateY(0.18em);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .metric-card__number[data-count="∞"].is-symbol-visible {
  opacity: 1;
  transform: translateY(0);
}

.metric-card__rule {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 12rem);
  height: 2px;
  margin-bottom: clamp(1.2rem, 2vw, 1.65rem);
  background: var(--color-bronze);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.metrics.is-counted .metric-card.is-visible .metric-card__rule,
.metrics.is-counted .metric-card__rule {
  transform: scaleX(1);
}

.metric-card h3 {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin: 0;
  color: var(--color-anthracite);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

.metric-card p:last-child {
  position: relative;
  z-index: 1;
  max-width: 30ch;
  margin: 0.9rem 0 0;
  color: rgba(36, 35, 33, 0.68);
  font-size: 0.92rem;
  line-height: 1.62;
}

.metric-card--primary p:last-child {
  max-width: 36ch;
}

@media (max-width: 1040px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics .section-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .metrics .section-heading h2 {
    max-width: 13ch;
    font-size: clamp(3.5rem, 8vw, 5.8rem);
  }

  .metric-card:nth-child(2n) {
    border-right: 0;
  }

  .metric-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(36, 35, 33, 0.16);
  }

  .metric-card--primary {
    min-height: clamp(310px, 44vw, 400px);
  }
}

@media (max-width: 640px) {
  .metrics {
    padding-block: 4.4rem;
    background-size: 50% 100%, 100% 100%;
  }

  .metrics .section-heading,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metrics .section-heading h2 {
    font-size: clamp(3.15rem, 13vw, 4.8rem);
  }

  .metrics .section-heading > p {
    max-width: 100%;
  }

  .metric-card,
  .metric-card--primary {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid rgba(36, 35, 33, 0.16);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .metric-card__number,
  .metric-card--primary .metric-card__number {
    font-size: clamp(5.4rem, 28vw, 8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .metric-card__number[data-count="∞"],
  .metric-card::before,
  .metric-card__rule {
    transition: none;
  }

  .js .metric-card__number[data-count="∞"] {
    opacity: 1;
    transform: none;
  }

  .metric-card__rule {
    transform: scaleX(1);
  }
}

/* PHASE1C_FINALE_FOOTER */
.finale {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  color: var(--color-ivory-soft);
  background: var(--color-anthracite);
  isolation: isolate;
}

.finale::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(216, 190, 151, 0.12) 18% calc(18% + 1px), transparent calc(18% + 1px) 100%),
    linear-gradient(90deg, transparent 0 82%, rgba(251, 248, 241, 0.07) 82% calc(82% + 1px), transparent calc(82% + 1px) 100%),
    linear-gradient(rgba(251, 248, 241, 0.034) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 7rem;
}

.finale::after {
  position: absolute;
  right: 0;
  bottom: 18%;
  left: 0;
  height: 1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(163, 123, 69, 0.78), transparent);
  transform: scaleX(0.34);
  transform-origin: center;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.finale.is-visible::after {
  transform: scaleX(1);
}

.finale__inner {
  display: grid;
  width: min(100% - 2rem, var(--container));
  min-height: 100svh;
  grid-template-rows: auto 1fr auto auto auto;
  align-items: center;
  margin-inline: auto;
  padding-block: clamp(5.5rem, 10svh, 7.5rem) clamp(2.2rem, 6svh, 4rem);
}

.finale__eyebrow {
  align-self: start;
  margin: 0;
  color: var(--color-oak);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.finale__lockup {
  align-self: center;
  justify-self: center;
  margin: 0;
  color: var(--color-ivory-soft);
  font-size: clamp(5rem, 18vw, 18rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-align: center;
  /* PHASE5K_FINALE_LOCKUP_RENDERING */
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-synthesis: none;
  backface-visibility: hidden;
  filter: none;
  text-shadow: none;
}

.js .finale__lockup {
  clip-path: inset(100% 0 0);
  -webkit-clip-path: inset(100% 0 0);
  transform: translateY(0.24em);
  transition:
    clip-path 1200ms cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-clip-path 1200ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .finale.is-visible .finale__lockup {
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  transform: translateY(0);
}

/* PHASE5L_FINALE_LOCKUP_SETTLED_RENDERING */
.js .finale.is-lockup-settled .finale__lockup {
  clip-path: none;
  -webkit-clip-path: none;
  transform: translate3d(0, 0, 0);
}

.finale__line,
.finale__phone,
.finale__meta {
  justify-self: center;
  margin: 0;
  text-align: center;
}

.finale__line {
  max-width: 44rem;
  color: rgba(251, 248, 241, 0.76);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}

.finale__phone {
  margin-top: clamp(1rem, 2svh, 1.5rem);
  color: var(--color-ivory-soft);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  text-decoration: none;
  transition: color 220ms var(--ease-out);
}

.finale__phone:hover,
.finale__phone:focus-visible {
  color: var(--color-oak);
}

.finale__meta {
  align-self: end;
  color: rgba(216, 190, 151, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-footer {
  padding-block: 32px;
  color: rgba(251, 248, 241, 0.58);
  background: var(--color-anthracite);
  border-top: 1px solid rgba(251, 248, 241, 0.1);
}

.site-footer__inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr) minmax(16rem, 0.8fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.brand--footer .brand__logo {
  width: min(9rem, 46vw);
  opacity: 0.68;
}

.site-footer p {
  max-width: 26rem;
  margin: 0.42rem 0 0;
  color: rgba(251, 248, 241, 0.52);
  font-size: 0.82rem;
  line-height: 1.5;
}

.site-footer .footer-contact {
  gap: 0.58rem;
}

.site-footer .footer-contact div {
  padding-top: 0;
  border-top: 0;
}

.site-footer .footer-contact dt {
  color: rgba(216, 190, 151, 0.74);
  font-size: 0.68rem;
}

.site-footer .footer-contact dd {
  color: rgba(251, 248, 241, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.site-footer__copyright {
  max-width: 24rem;
  color: rgba(251, 248, 241, 0.5);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .finale__inner {
    padding-block: 5rem 2rem;
  }

  .finale__lockup {
    font-size: clamp(4.5rem, 22vw, 8.2rem);
  }

  .finale__line {
    max-width: 21rem;
  }

  .site-footer {
    padding-block: 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__copyright {
    justify-self: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .finale::after,
  .js .finale__lockup {
    clip-path: inset(0);
    transform: none;
    transition: none;
  }
}

/* PHASE2A_ARCHIVO_INDEX */
.archivo {
  overflow: hidden;
  color: var(--color-anthracite);
  background:
    linear-gradient(90deg, rgba(36, 35, 33, 0.045) 0 1px, transparent 1px 100%),
    var(--color-ivory);
  background-size: 20% 100%, 100% 100%;
}

.archivo__inner {
  position: relative;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.archivo__header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.78fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid rgba(36, 35, 33, 0.26);
}

.archivo__header .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -0.35rem;
}

.archivo__header h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--color-anthracite);
  font-size: clamp(3.4rem, 6.4vw, 6.8rem);
  line-height: 0.92;
}

.archivo__header p:not(.section-kicker) {
  max-width: 36rem;
  margin: 0;
  color: rgba(36, 35, 33, 0.62);
  font-size: clamp(0.94rem, 1.1vw, 1.02rem);
  line-height: 1.68;
}

.archivo__years {
  display: grid;
  border-bottom: 1px solid rgba(36, 35, 33, 0.22);
}

.archivo__year {
  display: grid;
  grid-template-columns: minmax(5rem, 7rem) minmax(0, 1fr);
  gap: clamp(0.9rem, 1.7vw, 1.6rem);
  border-top: 1px solid rgba(36, 35, 33, 0.22);
}

.archivo__year h3 {
  position: sticky;
  top: 5rem;
  align-self: start;
  margin: 0;
  padding-top: 1rem;
  color: rgba(131, 96, 56, 0.82);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
}

.archivo__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archivo__row {
  position: relative;
  display: grid;
  min-height: clamp(62px, 4.8vw, 78px);
  grid-template-columns: 6.5rem minmax(10rem, 1.15fr) minmax(6rem, 0.6fr) minmax(11rem, 1fr) minmax(6rem, 0.58fr) 1.4rem;
  gap: 0.85rem;
  align-items: center;
  padding: 0.58rem 0;
  border-top: 1px solid rgba(36, 35, 33, 0.18);
  cursor: pointer;
  outline: 0;
  transition:
    background-color 220ms var(--ease-out),
    color 220ms var(--ease-out);
}

.archivo__list .archivo__row:first-child {
  border-top: 0;
}

.archivo__row::before {
  position: absolute;
  inset: 0 -0.75rem;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: rgba(36, 35, 33, 0.028);
  box-shadow: inset 2px 0 0 rgba(131, 96, 56, 0.32);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}

.archivo__row > span {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.archivo__row:hover,
.archivo__row:focus-visible {
  color: var(--color-anthracite);
}

.archivo__row:hover::before,
.archivo__row:focus-visible::before {
  opacity: 1;
}

.archivo__row:focus-visible {
  box-shadow: inset 2px 0 0 var(--color-bronze);
}

.archivo__num,
.archivo__location,
.archivo__material,
.archivo__type {
  color: rgba(36, 35, 33, 0.56);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.archivo__title {
  color: var(--color-anthracite);
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.archivo__material,
.archivo__type {
  letter-spacing: 0.06em;
}

.archivo__arrow {
  justify-self: end;
  color: rgba(36, 35, 33, 0.42);
  font-size: 1rem;
  transition: color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.archivo__row:hover .archivo__arrow,
.archivo__row:focus-visible .archivo__arrow {
  color: var(--color-bronze);
  transform: translateX(0.18rem);
}

.archivo__preview {
  display: none;
}

@media (min-width: 980px) and (hover: hover) and (pointer: fine) {
  .archivo__preview {
    position: fixed;
    top: 50vh;
    right: clamp(1rem, 4vw, 4rem);
    z-index: 80;
    display: block;
    width: clamp(300px, 22vw, 340px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid rgba(36, 35, 33, 0.2);
    background: var(--color-charcoal);
    box-shadow: 0 18px 48px rgba(36, 35, 33, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(0.65rem);
    transition:
      opacity 180ms var(--ease-out),
      transform 180ms var(--ease-out);
  }

  .archivo__preview.is-visible {
    opacity: 0.84;
    transform: translateY(-50%) translateX(0);
  }

  .archivo__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.74) contrast(1.02);
  }
}

@media (max-width: 1040px) {
  .archivo__header {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .archivo__header h2 {
    max-width: 15ch;
    font-size: clamp(3rem, 7.5vw, 5.2rem);
  }

  .archivo__row {
    grid-template-columns: 5.8rem minmax(9rem, 1.1fr) minmax(5.5rem, 0.7fr) minmax(9rem, 1fr) minmax(5.5rem, 0.6fr) 1.4rem;
  }
}

@media (max-width: 900px) {
  .archivo__year {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding-top: 1.8rem;
  }

  .archivo__year h3 {
    position: static;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .archivo {
    background-size: 50% 100%, 100% 100%;
  }

  .archivo__header h2 {
    font-size: clamp(2.55rem, 10.5vw, 3.75rem);
  }

  .archivo__row {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 1rem;
    padding: 1rem 0;
  }

  .archivo__row:hover,
  .archivo__row:focus-visible {
    transform: translateX(0);
  }

  .archivo__num {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .archivo__title {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .archivo__location,
  .archivo__material,
  .archivo__type {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .archivo__location {
    grid-column: 1 / 2;
    grid-row: 3;
  }

  .archivo__material {
    grid-column: 1 / 3;
    grid-row: 4;
  }

  .archivo__type {
    grid-column: 1 / 3;
    grid-row: 5;
  }

  .archivo__arrow {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archivo__row,
  .archivo__row::before,
  .archivo__arrow,
  .archivo__preview {
    transition: none;
  }

  .archivo__row:hover,
  .archivo__row:focus-visible {
    transform: none;
  }
}

/* PHASE3G_HERO_FULLSCREEN_OVERRIDE — full-bleed, edge-to-edge first screen */
:root {
  --site-header-height: 4.5rem;
  --hero-topbar-height: 3.25rem;
  --hero-bottombar-height: 3.25rem;
}

.hero,
.hero--visual-carousel {
  position: relative;
  width: 100%;
  height: auto;
  min-height: calc(100svh - var(--site-header-height));
  padding: 0;
  overflow: clip;
  background: var(--color-ivory);
}

.hero__frame {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: calc(100svh - var(--site-header-height));
  height: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-rows:
    var(--hero-topbar-height)
    minmax(0, 1fr)
    var(--hero-bottombar-height);
  border-left: 0;
  border-right: 0;
  overflow: hidden;
}

.hero__topbar,
.hero__bottombar {
  min-height: 0;
  height: var(--hero-topbar-height);
  padding-inline: clamp(1rem, 4vw, 4rem);
}

.hero__bottombar {
  height: var(--hero-bottombar-height);
}

.hero__stage {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: absolute;
  z-index: 4;
  left: clamp(1rem, 4vw, 4rem);
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(2rem, 8vh, 5rem);
  max-width: min(70rem, 78vw);
}

.hero__title {
  max-width: 100%;
  font-size: clamp(4.5rem, 13vw, 15rem);
  line-height: 0.82;
}

.hero__title.is-long {
  font-size: clamp(3.8rem, 10.5vw, 12rem);
  line-height: 0.84;
}

.hero__title.is-extra-long {
  font-size: clamp(3.4rem, 9vw, 10.4rem);
  line-height: 0.86;
}

.hero__caption {
  max-width: min(34rem, 90vw);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__thumbs {
  position: absolute;
  z-index: 6;
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  display: flex;
  gap: 0.65rem;
  max-width: min(34rem, 44vw);
}

.hero__thumb {
  width: clamp(7rem, 9vw, 10.5rem);
  height: auto;
  aspect-ratio: 16 / 9;
}

@media (max-width: 820px) {
  :root {
    --site-header-height: 4rem;
    --hero-topbar-height: auto;
    --hero-bottombar-height: auto;
  }

  .hero,
  .hero--visual-carousel {
    min-height: calc(100svh - var(--site-header-height));
  }

  .hero__frame {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: calc(100svh - var(--site-header-height));
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .hero__topbar,
  .hero__bottombar {
    height: auto;
    min-height: 2.75rem;
    padding-inline: 1rem;
  }

  .hero__stage {
    min-height: calc(100svh - var(--site-header-height) - 6rem);
  }

  .hero__content {
    left: 1rem;
    right: 1rem;
    bottom: clamp(7rem, 18vh, 10rem);
    max-width: none;
  }

  .hero__title {
    font-size: clamp(3.1rem, 17vw, 5.4rem);
    line-height: 0.86;
  }

  .hero__title.is-long {
    font-size: clamp(2.6rem, 14vw, 4.6rem);
  }

  .hero__title.is-extra-long {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 22rem);
  }

  .hero__thumbs {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .hero__thumbs::-webkit-scrollbar {
    display: none;
  }

  .hero__thumb {
    flex: 0 0 8rem;
    width: 8rem;
  }
}

html,
body {
  overflow-x: clip;
}

/* PHASE3H_HERO_TRANSITION_POLISH ================================== */
/* Goal: thumb rail polish, long-title fix (PAVIMENTOS), premium
   transition animation between hero categories.
   This block intentionally lives at the end of the file so it
   overrides the prior hero rules without touching them. */

/* --- A. THUMB RAIL POLISH ---------------------------------------- */
.hero__thumbs {
  gap: clamp(0.55rem, 0.85vw, 1.1rem);
}

.hero__thumb {
  width: clamp(8.5rem, 9.4vw, 12rem);
  aspect-ratio: 16 / 10;
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease,
    border-color 360ms ease,
    box-shadow 360ms ease,
    filter 360ms ease;
  opacity: 0.78;
  will-change: transform, opacity;
}

.hero__thumb img {
  transition:
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
}

.hero__thumb:hover,
.hero__thumb:focus-visible {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -22px rgba(8, 10, 14, 0.55);
}

.hero__thumb:hover img,
.hero__thumb:focus-visible img {
  transform: scale(1.045);
}

.hero__thumb.is-active {
  opacity: 1;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 22px 38px -22px rgba(8, 10, 14, 0.6);
}

.hero__thumb.is-active img {
  transform: scale(1.06);
}

.hero__thumb-label {
  letter-spacing: 0.14em;
}

@media (min-width: 1400px) {
  .hero__thumb {
    width: clamp(9.5rem, 9.4vw, 12rem);
  }
}

@media (min-width: 1800px) {
  .hero__thumbs {
    gap: 1rem;
  }
  .hero__thumb {
    width: clamp(10.5rem, 8.6vw, 13rem);
  }
}

@media (min-width: 2400px) {
  .hero__thumbs {
    gap: 1.15rem;
  }
  .hero__thumb {
    width: clamp(11.5rem, 7.4vw, 14rem);
  }
}

/* --- B. LONG TITLE FIX (PAVIMENTOS) ------------------------------ */
/* Make sure PAVIMENTOS fits fully on ultrawide + standard desktop,
   without shrinking COCINAS or CARPINTERIA globally. */
.hero__title.is-long {
  font-size: clamp(3.6rem, 7.6vw, 9rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
  white-space: nowrap;
}

.hero__title.is-long span {
  white-space: nowrap;
  max-width: none;
}

@media (min-width: 1920px) {
  .hero__title.is-long {
    font-size: clamp(5rem, 7vw, 9.2rem);
  }
}

@media (min-width: 2400px) {
  .hero__title.is-long {
    font-size: clamp(6rem, 6.6vw, 9.6rem);
  }
}

@media (max-width: 900px) {
  .hero__title.is-long {
    font-size: clamp(2.8rem, 13vw, 5rem);
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .hero__title.is-long {
    font-size: clamp(2.4rem, 12.5vw, 4.2rem);
  }
}

/* --- C. PREMIUM SCENE TRANSITION --------------------------------- */
.hero__scene {
  opacity: 0;
  transform: scale(1.045) translateX(1.4%);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms ease;
  will-change: opacity, transform;
}

.hero__scene.is-active {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.hero__scene.is-leaving {
  opacity: 0;
  transform: scale(1.025) translateX(-1.2%);
}

.hero__scene img {
  transition:
    transform 1200ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms ease;
}

.hero__shade {
  transition: opacity 700ms ease, background 700ms ease;
}

.hero.is-transitioning .hero__shade {
  opacity: 0.92;
}

/* --- D. TEXT REVEAL MOTION --------------------------------------- */
.hero__eyebrow,
.hero__title,
.hero__caption,
.hero__actions {
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hero.is-transitioning .hero__eyebrow,
.hero.is-transitioning .hero__title,
.hero.is-transitioning .hero__caption,
.hero.is-transitioning .hero__actions {
  opacity: 0;
  transform: translateY(14px);
}

.hero:not(.is-transitioning) .hero__eyebrow { transition-delay: 60ms; }
.hero:not(.is-transitioning) .hero__title   { transition-delay: 140ms; }
.hero:not(.is-transitioning) .hero__caption { transition-delay: 240ms; }
.hero:not(.is-transitioning) .hero__actions { transition-delay: 320ms; }

/* Override the older instant change rule from earlier hero block. */
.hero.is-changing .hero__title,
.hero.is-changing .hero__caption {
  opacity: 1;
  transform: none;
}

/* --- E. REDUCED MOTION ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero__scene,
  .hero__scene img,
  .hero__eyebrow,
  .hero__title,
  .hero__caption,
  .hero__actions,
  .hero__thumb,
  .hero__thumb img,
  .hero__shade {
    transition: none !important;
    transform: none !important;
  }

  .hero.is-transitioning .hero__eyebrow,
  .hero.is-transitioning .hero__title,
  .hero.is-transitioning .hero__caption,
  .hero.is-transitioning .hero__actions {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__scene {
    opacity: 0;
  }
  .hero__scene.is-active {
    opacity: 1;
  }
}

/* =====================================================================
   PHASE3I_HERO_REAL_TRANSITION
   Reason: PHASE3H values were too timid (thumb ~9vw, scene transform
   ~1%). The fixes were technically present but visually invisible.
   This block replaces them with values large enough to actually see:
   - thumb rail grows 25–40% on desktop, even more on ultrawide
   - PAVIMENTOS (.is-long) and CARPINTERÍA (.is-extra-long) actually fit
   - scene transitions become a real showroom cinematic move
   ===================================================================== */

/* --- A. THUMB RAIL: significantly larger, no more matchbox preview --- */
.hero__thumbs {
  gap: clamp(0.75rem, 1.05vw, 1.4rem);
  max-width: min(54rem, 60vw);
}

.hero__thumb {
  width: clamp(11rem, 12.2vw, 17rem);
  min-height: clamp(6.2rem, 6.6vw, 9.5rem);
  aspect-ratio: 16 / 10;
  opacity: 0.62;
  border-radius: 0.55rem;
  overflow: hidden;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease,
    box-shadow 420ms ease,
    border-color 360ms ease,
    filter 360ms ease;
  will-change: transform, opacity;
}

.hero__thumb img {
  transition:
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
  filter: saturate(0.85) brightness(0.9);
}

.hero__thumb:hover,
.hero__thumb:focus-visible {
  opacity: 0.92;
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -22px rgba(8, 10, 14, 0.55);
}

.hero__thumb:hover img,
.hero__thumb:focus-visible img {
  transform: scale(1.07);
  filter: saturate(1) brightness(1);
}

.hero__thumb.is-active {
  opacity: 1;
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 28px 48px -22px rgba(8, 10, 14, 0.65);
}

.hero__thumb.is-active img {
  transform: scale(1.1);
  filter: saturate(1.05) brightness(1.02);
}

.hero__thumb-num {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.hero__thumb-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

@media (min-width: 1400px) {
  .hero__thumbs {
    gap: 1.05rem;
    max-width: min(58rem, 56vw);
  }
  .hero__thumb {
    width: clamp(12.5rem, 11vw, 17rem);
    min-height: clamp(7rem, 6vw, 9.5rem);
  }
}

@media (min-width: 1800px) {
  .hero__thumbs {
    gap: 1.2rem;
    max-width: min(64rem, 52vw);
  }
  .hero__thumb {
    width: clamp(14rem, 10vw, 18.5rem);
    min-height: clamp(7.8rem, 5.5vw, 10rem);
  }
  .hero__thumb-label {
    font-size: 0.82rem;
  }
}

@media (min-width: 2400px) {
  .hero__thumbs {
    gap: 1.45rem;
    max-width: min(72rem, 48vw);
  }
  .hero__thumb {
    width: clamp(16rem, 8.6vw, 21rem);
    min-height: clamp(9rem, 4.8vw, 11.5rem);
  }
  .hero__thumb-label {
    font-size: 0.88rem;
  }
}

/* --- B. LONG TITLE FIX (PAVIMENTOS + CARPINTERÍA actually fit) --- */
/* PAVIMENTOS = .is-long (10 chars), CARPINTERÍA = .is-extra-long (11 chars).
   PHASE3G had .is-long at clamp(3.8rem, 10.5vw, 12rem) which still
   wrapped on 1920 because content max-width was 78vw. We force nowrap
   and tighten the size band. */
.hero__title.is-long,
.hero__title.is-extra-long {
  white-space: nowrap;
  letter-spacing: -0.05em;
  line-height: 0.88;
  max-width: min(94vw, 1600px);
}

.hero__title.is-long span,
.hero__title.is-extra-long span {
  white-space: nowrap;
  max-width: none;
  display: inline-block;
}

.hero__title.is-long {
  font-size: clamp(3.4rem, 8.4vw, 10rem);
}

.hero__title.is-extra-long {
  font-size: clamp(3rem, 7.6vw, 9.2rem);
}

/* On 1920 we have headroom — push the title back up. */
@media (min-width: 1600px) {
  .hero__title.is-long {
    font-size: clamp(5rem, 7.6vw, 10rem);
  }
  .hero__title.is-extra-long {
    font-size: clamp(4.5rem, 6.8vw, 9.2rem);
  }
}

@media (min-width: 1920px) {
  .hero__title.is-long {
    font-size: clamp(6rem, 7.2vw, 10.4rem);
  }
  .hero__title.is-extra-long {
    font-size: clamp(5.4rem, 6.4vw, 9.6rem);
  }
}

@media (min-width: 2400px) {
  .hero__title.is-long {
    font-size: clamp(7rem, 6.4vw, 11rem);
  }
  .hero__title.is-extra-long {
    font-size: clamp(6.4rem, 5.8vw, 10rem);
  }
}

@media (max-width: 900px) {
  .hero__title.is-long {
    font-size: clamp(2.6rem, 12.5vw, 4.8rem);
    white-space: nowrap;
    letter-spacing: -0.04em;
  }
  .hero__title.is-extra-long {
    font-size: clamp(2.3rem, 11vw, 4.4rem);
    white-space: nowrap;
    letter-spacing: -0.04em;
  }
}

@media (max-width: 480px) {
  .hero__title.is-long {
    font-size: clamp(2.1rem, 11vw, 3.8rem);
  }
  .hero__title.is-extra-long {
    font-size: clamp(1.95rem, 10vw, 3.6rem);
  }
}

/* Reserve room on the bottom-right for the larger thumb rail so the
   .hero__content text doesn't collide with it on desktop. */
@media (min-width: 1024px) {
  .hero__content {
    max-width: min(58rem, 60vw);
  }
}

@media (min-width: 1800px) {
  .hero__content {
    max-width: min(64rem, 55vw);
  }
}

/* --- C. SCENE TRANSITION: a real, visible cinematic move --- */
.hero__scene {
  opacity: 0;
  transform: scale(1.08) translateX(2.6%);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 820ms ease;
  filter: saturate(0.96);
  will-change: opacity, transform;
}

.hero__scene.is-active {
  opacity: 1;
  transform: scale(1) translateX(0);
  filter: saturate(1);
}

.hero__scene.is-leaving {
  opacity: 0;
  transform: scale(1.04) translateX(-2.2%);
  filter: saturate(0.92);
}

.hero__scene img {
  transition:
    transform 1300ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 820ms ease;
}

.hero__scene.is-active img {
  transform: scale(1);
}

.hero__scene.is-leaving img {
  transform: scale(1.03);
}

.hero__shade {
  transition: opacity 720ms ease, background 720ms ease;
}

.hero.is-transitioning .hero__shade {
  opacity: 0.94;
}

/* --- D. TEXT REVEAL: meaningful stagger, not a hairline shift --- */
.hero__eyebrow,
.hero__title,
.hero__caption,
.hero__actions {
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hero.is-transitioning .hero__eyebrow,
.hero.is-transitioning .hero__title,
.hero.is-transitioning .hero__caption,
.hero.is-transitioning .hero__actions {
  opacity: 0;
  transform: translateY(22px);
}

.hero:not(.is-transitioning) .hero__eyebrow { transition-delay: 80ms; }
.hero:not(.is-transitioning) .hero__title   { transition-delay: 180ms; }
.hero:not(.is-transitioning) .hero__caption { transition-delay: 300ms; }
.hero:not(.is-transitioning) .hero__actions { transition-delay: 400ms; }

/* Keep the older .is-changing rule from breaking the new motion. */
.hero.is-changing .hero__title,
.hero.is-changing .hero__caption {
  opacity: 1;
  transform: none;
}

/* --- E. MOBILE FALLBACK: keep rail readable on phones --- */
@media (max-width: 820px) {
  .hero__thumbs {
    gap: 0.7rem;
    max-width: none;
  }
  .hero__thumb {
    flex: 0 0 9.5rem;
    width: 9.5rem;
    min-height: 5.6rem;
    opacity: 0.7;
  }
  .hero__thumb.is-active {
    transform: translateY(-3px) scale(1.04);
    opacity: 1;
  }
}

/* --- F. REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  .hero__scene,
  .hero__scene img,
  .hero__eyebrow,
  .hero__title,
  .hero__caption,
  .hero__actions,
  .hero__thumb,
  .hero__thumb img,
  .hero__shade {
    transition: none !important;
  }

  .hero__scene {
    transform: none !important;
    filter: none !important;
  }
  .hero__scene.is-leaving {
    transform: none !important;
    opacity: 0 !important;
  }
  .hero__scene.is-active {
    transform: none !important;
    opacity: 1 !important;
  }

  .hero.is-transitioning .hero__eyebrow,
  .hero.is-transitioning .hero__title,
  .hero.is-transitioning .hero__caption,
  .hero.is-transitioning .hero__actions {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================================
   PHASE3J_HERO_FINAL_CAROUSEL
   Финальный override-слой для JS lifecycle карусели hero.
   Классы управляются script.js (autoplay, transition, pause hooks):
     .hero__scene.is-next        — следующий слайд, смонтирован, готов к reveal
     .hero__scene.is-revealing   — incoming wipe in-progress
     .hero__scene.is-leaving     — outgoing
     .hero.is-transitioning      — глобальный lock на время смены
     .hero.is-autoplaying        — autoplay активен (для thumb progress bar)
     .hero__thumb.is-active      — активный thumb
   Не переписывает базовые стили выше — только финальные правила.
   ========================================================================= */

/* --- 1. INCOMING SLIDE: cinematic clip-path wipe вместо чистого fade --- */
.hero__scene.is-next {
  opacity: 1;
  transform: scale(1.02) translateX(0);
  filter: saturate(1);
  /* Стартовое состояние wipe: incoming скрыт справа. */
  clip-path: inset(0 0 0 100%);
  -webkit-clip-path: inset(0 0 0 100%);
  z-index: 2;
  pointer-events: none;
  transition:
    clip-path 1100ms cubic-bezier(0.76, 0, 0.24, 1),
    -webkit-clip-path 1100ms cubic-bezier(0.76, 0, 0.24, 1),
    transform 1300ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 820ms ease;
  will-change: clip-path, transform;
}

.hero__scene.is-next.is-revealing {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  transform: scale(1) translateX(0);
}

.hero__scene.is-next img,
.hero__scene.is-revealing img {
  transform: scale(1.04);
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__scene.is-revealing img {
  transform: scale(1);
}

/* Outgoing слой опускаем под incoming, чтобы wipe был виден поверх. */
.hero__scene.is-leaving {
  z-index: 1;
}

/* --- 2. AUTOPLAY PROGRESS BAR на активном thumb --- */
.hero__thumb {
  position: relative;
}

.hero__thumb::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--color-bronze, #836038);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 2;
}

.hero.is-autoplaying .hero__thumb.is-active::after {
  opacity: 1;
  animation: phase3jThumbProgress var(--hero-autoplay-duration, 6500ms) linear forwards;
}

/* Сбрасываем прогресс на неактивных, чтобы при переключении не было «хвоста». */
.hero__thumb:not(.is-active)::after {
  animation: none;
  transform: scaleX(0);
  opacity: 0;
}

/* Пока идёт transition — прячем bar (он перезапустится на новом активном). */
.hero.is-transitioning .hero__thumb::after {
  animation: none;
  transform: scaleX(0);
  opacity: 0;
  transition: none;
}

@keyframes phase3jThumbProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* --- 3. TITLE: убрать любое обрезание из-за fitHeroTitleToViewport --- */
.hero__title,
.hero__title.is-long,
.hero__title.is-extra-long {
  overflow: visible;
  text-overflow: clip;
}

@media (min-width: 901px) {
  .hero__title,
  .hero__title.is-long,
  .hero__title.is-extra-long {
    white-space: nowrap;
  }
}

.hero__content {
  overflow: visible;
}

/* --- 4. REDUCED MOTION: instant, без wipe и без progress bar --- */
@media (prefers-reduced-motion: reduce) {
  .hero__scene.is-next,
  .hero__scene.is-next.is-revealing {
    clip-path: inset(0 0 0 0) !important;
    -webkit-clip-path: inset(0 0 0 0) !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__scene.is-next img,
  .hero__scene.is-revealing img {
    transform: none !important;
    transition: none !important;
  }

  .hero__thumb::after,
  .hero.is-autoplaying .hero__thumb.is-active::after {
    animation: none !important;
    opacity: 0 !important;
    transform: scaleX(0) !important;
    transition: none !important;
  }
}
/* === END PHASE3J_HERO_FINAL_CAROUSEL === */

/* PHASE3K_HERO_STABLE_CAROUSEL
   Final override for hero carousel: stable wipe reveal, no grey gap,
   title fits without truncation via CSS classes only.
   ============================================================== */

.hero__scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  clip-path: inset(0);
  transform: none;
  transition: none;
}

.hero__scene.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  clip-path: inset(0);
}

.hero__scene.is-under {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  clip-path: inset(0);
}

.hero__scene.is-entering {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  clip-path: inset(0 100% 0 0);
}

.hero__scene.is-entering.is-revealing {
  clip-path: inset(0);
  transition: clip-path 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__scene img,
.hero__scene picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__scene.is-active img,
.hero__scene.is-active picture img,
.hero__scene.is-entering.is-revealing img,
.hero__scene.is-entering.is-revealing picture img {
  transform: scale(1);
}

/* Title: never truncate, sizes purely via CSS classes. */
.hero__content,
.hero__title,
.hero__title span,
.hero__title [data-hero-title] {
  overflow: visible;
}

.hero__title {
  display: block;
  white-space: nowrap;
  max-width: none;
  line-height: 0.78;
  letter-spacing: -0.055em;
  font-size: clamp(5.2rem, 12vw, 14rem);
}

.hero__title.is-long {
  font-size: clamp(4.8rem, 9.4vw, 11.2rem);
  letter-spacing: -0.052em;
}

.hero__title.is-extra-long {
  font-size: clamp(4.4rem, 8.6vw, 10.2rem);
  letter-spacing: -0.05em;
}

@media (min-width: 2200px) {
  .hero__title {
    font-size: clamp(6rem, 10vw, 15rem);
  }

  .hero__title.is-long {
    font-size: clamp(5.2rem, 7.6vw, 12rem);
  }

  .hero__title.is-extra-long {
    font-size: clamp(5rem, 7.2vw, 11.5rem);
  }
}

@media (max-width: 820px) {
  .hero__title {
    white-space: nowrap;
    font-size: clamp(3rem, 15vw, 4.4rem);
    line-height: 0.86;
  }

  .hero__title.is-long {
    font-size: clamp(2.4rem, 11.5vw, 3.7rem);
  }

  .hero__title.is-extra-long {
    font-size: clamp(2.2rem, 10.2vw, 3.4rem);
  }
}

/* Thumbs: visible state + autoplay progress bar. */
.hero__thumb {
  opacity: 0.72;
  transform: none;
  position: relative;
  overflow: hidden;
}

.hero__thumb.is-active {
  opacity: 1;
  transform: translateY(-3px) scale(1.045);
  border-color: rgba(251, 248, 241, 0.95);
}

.hero__thumb::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--color-ivory-soft);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero.is-autoplaying .hero__thumb.is-active::after {
  animation: heroThumbProgress 4500ms linear forwards;
}

@keyframes heroThumbProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scene,
  .hero__scene img,
  .hero__scene picture img,
  .hero__thumb,
  .hero__thumb::after {
    transition: none !important;
    animation: none !important;
  }

  .hero__scene.is-entering {
    clip-path: inset(0) !important;
  }
}
/* === END PHASE3K_HERO_STABLE_CAROUSEL === */

/* PHASE3L_HERO_LOCKED_WIPE_CAROUSEL */
.hero,
.hero--visual-carousel {
  width: 100%;
  max-width: none;
  padding: 0;
  --hero-autoplay-duration: 5200ms;
}

.hero__frame {
  width: 100%;
  max-width: none;
  height: calc(100svh - var(--site-header-height, 72px));
  min-height: calc(100svh - var(--site-header-height, 72px));
  margin-inline: 0;
  overflow: hidden;
}

.hero__stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #242321;
}

.hero__scene {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  transform: none;
  transition: none;
  pointer-events: none;
}

.hero__scene.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}

.hero__scene.is-under {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}

.hero__scene.is-entering {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
}

.hero__scene.is-entering.is-revealing {
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  transition:
    clip-path 950ms cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-clip-path 950ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__scene img,
.hero__scene picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(0.9) contrast(0.98) brightness(0.88);
}

.hero__scene.is-active img,
.hero__scene.is-active picture img,
.hero__scene.is-entering.is-revealing img,
.hero__scene.is-entering.is-revealing picture img {
  transform: scale(1.012);
}

.hero__scene[data-hero-scene="cocinas"] img {
  object-position: center center;
}

.hero__scene[data-hero-scene="carpinteria"] img {
  object-position: 52% center;
}

.hero__scene[data-hero-scene="pavimentos"] img {
  object-position: center 62%;
}

.hero__shade {
  z-index: 3;
}

.hero__content {
  z-index: 5;
  left: clamp(1rem, 4vw, 4rem);
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(5.5rem, 12vh, 8.5rem);
  width: auto;
  max-width: min(92vw, 1500px);
  overflow: visible;
}

.hero__eyebrow,
.hero__title,
.hero__caption,
.hero__actions {
  opacity: 1;
  transform: none;
  transition:
    opacity 340ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

.hero.is-transitioning .hero__eyebrow,
.hero.is-transitioning .hero__title,
.hero.is-transitioning .hero__caption,
.hero.is-transitioning .hero__actions {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}

.hero.is-text-updating .hero__title,
.hero.is-text-updating .hero__caption {
  opacity: 0.92;
  transform: translateY(4px);
}

.hero__title,
.hero__title.is-long,
.hero__title.is-extra-long {
  display: block;
  overflow: visible;
  max-width: min(92vw, 1500px);
  padding-block: 0.1em 0.18em;
  padding-inline-end: 0.22em;
  line-height: 0.86;
  font-size: clamp(5rem, 9vw, 10.5rem);
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: clip;
}

.hero__title span,
.hero__title-text,
.hero__title-inner,
.hero__title [data-hero-title] {
  display: inline-block;
  overflow: visible;
  max-width: none;
  padding-block: 0.1em 0.18em;
  padding-inline-end: 0.22em;
  white-space: nowrap;
}

.js .hero.is-ready .hero__title span,
.js .hero.is-ready .hero__title [data-hero-title] {
  clip-path: none;
  -webkit-clip-path: none;
}

.hero__caption {
  max-width: min(34rem, 88vw);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__thumbs {
  position: absolute;
  z-index: 6;
  right: clamp(1rem, 4vw, 4rem);
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  display: flex;
  gap: clamp(0.75rem, 1vw, 1.2rem);
  max-width: min(54rem, 58vw);
  overflow: visible;
}

.hero__thumb {
  flex: 0 0 auto;
  width: clamp(150px, 9vw, 210px);
  height: clamp(84px, 5vw, 118px);
  min-height: 0;
  opacity: 0.74;
  transform: none;
  position: relative;
  overflow: hidden;
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease;
}

.hero__thumb:hover,
.hero__thumb:focus-visible {
  opacity: 0.94;
  transform: translateY(-2px);
}

.hero__thumb.is-active {
  opacity: 1;
  transform: translateY(-3px) scale(1.035);
  border-color: rgba(251, 248, 241, 0.95);
}

.hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  filter: saturate(0.9) brightness(0.92);
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 260ms ease;
}

.hero__thumb:hover img,
.hero__thumb:focus-visible img,
.hero__thumb.is-active img {
  transform: scale(1.045);
  filter: saturate(1) brightness(1);
}

.hero__thumb::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--color-ivory-soft, #fbf8f1);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  animation: none;
  pointer-events: none;
  z-index: 2;
}

.hero.is-autoplaying .hero__thumb.is-active::after {
  opacity: 1;
  animation: phase3lHeroThumbProgress var(--hero-autoplay-duration) linear forwards;
}

.hero.is-transitioning .hero__thumb::after,
.hero__thumb:not(.is-active)::after {
  opacity: 0;
  transform: scaleX(0);
  animation: none;
}

@keyframes phase3lHeroThumbProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (min-width: 2200px) {
  .hero__thumb {
    width: clamp(170px, 7vw, 240px);
    height: clamp(96px, 4.4vw, 135px);
  }
}

@media (max-width: 820px) {
  .hero__frame {
    width: 100%;
    height: calc(100svh - var(--site-header-height, 64px));
    min-height: calc(100svh - var(--site-header-height, 64px));
    margin-inline: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .hero__stage {
    min-height: calc(100svh - var(--site-header-height, 64px) - 5.5rem);
  }

  .hero__content {
    left: 1rem;
    right: 1rem;
    bottom: clamp(8rem, 22vh, 10.5rem);
    max-width: calc(100vw - 2rem);
  }

  .hero__title,
  .hero__title.is-long,
  .hero__title.is-extra-long {
    max-width: calc(100vw - 2rem);
    padding-block: 0.08em 0.14em;
    padding-inline-end: 0.12em;
    line-height: 0.92;
    font-size: clamp(2.25rem, 10.6vw, 4.1rem);
    white-space: nowrap;
  }

  .hero__title span,
  .hero__title-text,
  .hero__title-inner,
  .hero__title [data-hero-title] {
    padding-block: 0.08em 0.14em;
    padding-inline-end: 0.12em;
  }

  .hero__caption {
    max-width: min(24rem, calc(100vw - 2rem));
  }

  .hero__actions {
    width: min(100%, 22rem);
  }

  .hero__thumbs {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    gap: 0.7rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero__thumbs::-webkit-scrollbar {
    display: none;
  }

  .hero__thumb {
    flex: 0 0 clamp(8.5rem, 42vw, 10.5rem);
    width: clamp(8.5rem, 42vw, 10.5rem);
    height: clamp(5rem, 26vw, 6.2rem);
  }
}

@media (max-width: 420px) {
  .hero__title,
  .hero__title.is-long,
  .hero__title.is-extra-long {
    font-size: clamp(2rem, 9.2vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scene,
  .hero__scene img,
  .hero__scene picture img,
  .hero__eyebrow,
  .hero__title,
  .hero__title span,
  .hero__caption,
  .hero__actions,
  .hero__thumb,
  .hero__thumb img,
  .hero__thumb::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .hero__scene {
    opacity: 0 !important;
    visibility: hidden !important;
    clip-path: inset(0) !important;
    -webkit-clip-path: inset(0) !important;
  }

  .hero__scene.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
  }

  .hero__scene.is-entering,
  .hero__scene.is-entering.is-revealing,
  .hero__scene.is-under {
    clip-path: inset(0) !important;
    -webkit-clip-path: inset(0) !important;
  }

  .hero__scene:not(.is-active) {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .hero.is-text-updating .hero__title,
  .hero.is-text-updating .hero__caption,
  .hero.is-transitioning .hero__eyebrow,
  .hero.is-transitioning .hero__title,
  .hero.is-transitioning .hero__caption,
  .hero.is-transitioning .hero__actions {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__thumb::after,
  .hero.is-autoplaying .hero__thumb.is-active::after {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }
}
/* === END PHASE3L_HERO_LOCKED_WIPE_CAROUSEL === */

/* PHASE3L1_HERO_CAPTION_LOCK */
.hero__caption {
  line-height: 1.25;
  min-height: 2.5em;
  height: 2.5em;
  max-width: min(38rem, 88vw);
  overflow: visible;
}

@media (max-width: 820px) {
  .hero__caption {
    line-height: 1.25;
    min-height: 2.5em;
    height: 2.5em;
    max-width: min(24rem, calc(100vw - 2rem));
  }
}
/* === END PHASE3L1_HERO_CAPTION_LOCK === */

/* PHASE3M_HERO_OAKAME_LOCKED_CAROUSEL */
.hero.hero--visual-carousel,
.hero[data-hero-carousel] {
  --hero-header-height: var(--site-header-height, 4.5rem);
  --hero-top-rail-height: clamp(2.85rem, 3.2vw, 3.45rem);
  --hero-bottom-rail-height: clamp(2.85rem, 3vw, 3.35rem);
  --hero-stage-height: calc(
    100svh - var(--hero-header-height) - var(--hero-top-rail-height) - var(--hero-bottom-rail-height)
  );
  --hero-autoplay-duration: 5200ms;
  --hero-wipe-duration: 950ms;
  width: 100vw;
  max-width: none;
  height: calc(100svh - var(--hero-header-height));
  min-height: calc(100svh - var(--hero-header-height));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  overflow: hidden;
  color: var(--color-ivory-soft);
  background: var(--color-anthracite);
  isolation: isolate;
}

.hero[data-hero-carousel] .hero__frame,
.js .hero[data-hero-carousel] .hero__frame {
  position: relative;
  display: grid;
  grid-template-rows:
    var(--hero-top-rail-height)
    var(--hero-stage-height)
    var(--hero-bottom-rail-height);
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-right: 0;
  border-left: 0;
  opacity: 1;
  background: var(--color-ivory);
  transform: none;
}

.hero[data-hero-carousel] .hero__topbar,
.hero[data-hero-carousel] .hero__bottombar {
  z-index: 8;
  min-height: 0;
  height: var(--hero-top-rail-height);
  padding-inline: clamp(1rem, 4vw, 5rem);
  color: rgba(36, 35, 33, 0.74);
  background: rgba(246, 241, 232, 0.98);
  border-color: rgba(36, 35, 33, 0.34);
  font-size: clamp(0.58rem, 0.58vw, 0.74rem);
  letter-spacing: 0;
}

.hero[data-hero-carousel] .hero__bottombar {
  height: var(--hero-bottom-rail-height);
}

.hero[data-hero-carousel] .hero__topbar p,
.hero[data-hero-carousel] .hero__bottombar p,
.hero[data-hero-carousel] .hero__bottombar a {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero[data-hero-carousel] .hero__stage {
  position: relative;
  width: 100%;
  height: var(--hero-stage-height);
  min-height: 0;
  overflow: hidden;
  background: var(--color-anthracite);
  isolation: isolate;
}

.hero[data-hero-carousel] .hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transform: translate3d(0, 0, 0) scale(1);
  transition: none;
  pointer-events: none;
  backface-visibility: hidden;
  will-change: clip-path, transform;
}

.hero[data-hero-carousel] .hero__scene.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.hero[data-hero-carousel] .hero__scene.is-under,
.hero[data-hero-carousel] .hero__scene.is-leaving {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.hero[data-hero-carousel] .hero__scene.is-entering {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transform: none;
}

.hero[data-hero-carousel] .hero__scene.is-entering.is-revealing {
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  transform: none;
  transition:
    clip-path var(--hero-wipe-duration) cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-clip-path var(--hero-wipe-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.hero[data-hero-carousel] .hero__scene img,
.hero[data-hero-carousel] .hero__scene picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.02) brightness(0.86);
  transform: none;
  transition: none;
}

.hero[data-hero-carousel] .hero__scene.is-active img,
.hero[data-hero-carousel] .hero__scene.is-active picture img,
.hero[data-hero-carousel] .hero__scene.is-under img,
.hero[data-hero-carousel] .hero__scene.is-under picture img,
.hero[data-hero-carousel] .hero__scene.is-entering.is-revealing img,
.hero[data-hero-carousel] .hero__scene.is-entering.is-revealing picture img {
  transform: none;
}

.hero[data-hero-carousel] .hero__scene[data-hero-scene="cocinas"] img {
  object-position: 52% 52%;
}

.hero[data-hero-carousel] .hero__scene[data-hero-scene="carpinteria"] img {
  object-position: 52% 50%;
}

.hero[data-hero-carousel] .hero__scene[data-hero-scene="pavimentos"] img {
  object-position: 50% 62%;
}

.hero[data-hero-carousel] .hero__shade {
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(20, 19, 17, 0.68), rgba(20, 19, 17, 0.3) 44%, rgba(20, 19, 17, 0.08) 72%),
    linear-gradient(0deg, rgba(20, 19, 17, 0.48), transparent 44%);
}

.hero[data-hero-carousel] .hero__content {
  z-index: 5;
  left: clamp(1rem, 4vw, 5rem);
  right: auto;
  bottom: clamp(8.25rem, 17vh, 14rem);
  width: min(72vw, 1900px);
  max-width: min(72vw, 1900px);
  overflow: visible;
  color: var(--color-ivory-soft);
}

.hero[data-hero-carousel] .hero__eyebrow,
.hero[data-hero-carousel] .hero__title,
.hero[data-hero-carousel] .hero__caption,
.hero[data-hero-carousel] .hero__actions {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero[data-hero-carousel] .hero__eyebrow {
  margin-bottom: clamp(0.45rem, 1vw, 0.8rem);
  color: rgba(251, 248, 241, 0.78);
}

.hero[data-hero-carousel] .hero__title,
.hero[data-hero-carousel] .hero__title.is-long,
.hero[data-hero-carousel] .hero__title.is-extra-long {
  display: block;
  max-width: min(92vw, 1480px);
  margin: 0;
  overflow: visible;
  padding: 0;
  color: var(--color-ivory-soft);
  font-size: inherit;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: clip;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero[data-hero-carousel] .hero__title-mask {
  display: block;
  overflow: hidden;
  max-width: 100%;
  padding-block: 0.12em 0.26em;
  padding-inline-end: 0.2em;
  margin-block: -0.12em -0.26em;
  margin-inline-end: -0.2em;
}

.hero[data-hero-carousel] .hero__title-text {
  display: inline-block;
  max-width: 100%;
  overflow: visible;
  opacity: 1;
  font-size: 9.2rem;
  line-height: 0.84;
  letter-spacing: 0;
  transform: translateY(0);
  transition: none;
  white-space: nowrap;
  will-change: opacity, transform;
}

.hero[data-hero-carousel] .hero__caption {
  width: min(40rem, 64vw);
  max-width: min(40rem, 64vw);
  min-height: calc(2 * 1.35em);
  height: calc(2 * 1.35em);
  margin: clamp(0.2rem, 0.8vw, 0.7rem) 0 clamp(1rem, 1.4vw, 1.45rem);
  overflow: visible;
  color: rgba(251, 248, 241, 0.86);
  line-height: 1.35;
}

.hero[data-hero-carousel] .hero__caption-mask {
  display: block;
  overflow: hidden;
  min-height: calc(2 * 1.35em);
  padding-block: 0.08em 0.12em;
  margin-block: -0.08em -0.12em;
}

.hero[data-hero-carousel] .hero__caption-text {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: none;
  white-space: normal;
  will-change: opacity, transform;
}

.hero[data-hero-carousel].is-text-out .hero__title-text,
.hero[data-hero-carousel].is-text-out .hero__caption-text {
  opacity: 0;
  transform: translateY(-0.28em);
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero[data-hero-carousel].is-text-in .hero__title-text {
  animation: phase3mHeroTitleIn 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero[data-hero-carousel].is-text-in .hero__caption-text {
  animation: phase3mHeroCaptionIn 500ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

.hero[data-hero-carousel].is-text-settling .hero__title-text,
.hero[data-hero-carousel].is-text-settling .hero__caption-text {
  animation: none !important;
  transition: none !important;
}

.js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text,
.js .hero[data-hero-carousel]:not(.is-ready) .hero__caption-text {
  opacity: 0;
  transform: translateY(0.38em);
}

.js .hero[data-hero-carousel].is-ready .hero__title-text,
.js .hero[data-hero-carousel].is-ready .hero__caption-text {
  opacity: 1;
  transform: translateY(0);
}

@keyframes phase3mHeroTitleIn {
  from {
    opacity: 0;
    transform: translateY(0.42em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phase3mHeroCaptionIn {
  from {
    opacity: 0;
    transform: translateY(0.36em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero[data-hero-carousel] .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero[data-hero-carousel] .hero__thumbs {
  position: absolute;
  z-index: 6;
  right: clamp(1rem, 4vw, 5rem);
  bottom: clamp(1.1rem, 3vw, 2.6rem);
  left: auto;
  display: flex;
  gap: clamp(10px, 0.8vw, 22px);
  max-width: min(64vw, 58rem);
  overflow: visible;
  padding: 0;
}

.hero[data-hero-carousel] .hero__thumb {
  position: relative;
  flex: 0 0 auto;
  width: clamp(170px, 8.5vw, 260px);
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  opacity: 0.72;
  border: 1px solid rgba(251, 248, 241, 0.34);
  border-radius: 2px;
  background: rgba(36, 35, 33, 0.42);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(0);
  transition:
    opacity 260ms ease,
    border-color 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero[data-hero-carousel] .hero__thumb:hover,
.hero[data-hero-carousel] .hero__thumb:focus-visible {
  opacity: 0.94;
  transform: translateY(-3px);
}

.hero[data-hero-carousel] .hero__thumb.is-active {
  opacity: 1;
  border-color: rgba(251, 248, 241, 0.96);
  transform: translateY(-4px) scale(1.035);
}

.hero[data-hero-carousel] .hero__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.9);
  transform: scale(1);
  transition:
    filter 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero[data-hero-carousel] .hero__thumb:hover img,
.hero[data-hero-carousel] .hero__thumb:focus-visible img,
.hero[data-hero-carousel] .hero__thumb.is-active img {
  filter: saturate(1) brightness(1);
  transform: scale(1.045);
}

.hero[data-hero-carousel] .hero__thumb::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 48%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 58%);
  pointer-events: none;
  transform: none;
  transition: none;
}

.hero[data-hero-carousel] .hero__thumb::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: auto;
  height: 4px;
  content: "";
  opacity: 0;
  background: var(--color-ivory-soft);
  transform: scaleX(0);
  transform-origin: left center;
  animation: none;
  pointer-events: none;
}

.hero[data-hero-carousel].is-autoplaying .hero__thumb.is-active::after {
  opacity: 1;
  animation: phase3mHeroThumbProgress var(--hero-autoplay-duration) linear forwards;
}

.hero[data-hero-carousel].is-transitioning .hero__thumb::after,
.hero[data-hero-carousel] .hero__thumb:not(.is-active)::after {
  opacity: 0;
  transform: scaleX(0);
  animation: none;
}

.hero[data-hero-carousel] .hero__thumb-num,
.hero[data-hero-carousel] .hero__thumb-label {
  position: absolute;
  z-index: 2;
  color: var(--color-ivory-soft);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.34);
}

.hero[data-hero-carousel] .hero__thumb-num {
  top: 0.65rem;
  left: 0.7rem;
}

.hero[data-hero-carousel] .hero__thumb-label {
  right: 0.75rem;
  bottom: 0.65rem;
  left: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes phase3mHeroThumbProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (min-width: 2400px) {
  .hero[data-hero-carousel] .hero__title-text {
    font-size: 12rem;
  }

  .hero[data-hero-carousel] .hero__thumb {
    width: clamp(190px, 8.5vw, 260px);
  }
}

@media (max-width: 1200px) {
  .hero[data-hero-carousel] .hero__title-text {
    font-size: 7.6rem;
  }
}

@media (max-width: 920px) {
  .hero.hero--visual-carousel,
  .hero[data-hero-carousel] {
    --hero-header-height: var(--site-header-height, 4.5rem);
    --hero-top-rail-height: 2.75rem;
    --hero-bottom-rail-height: 2.75rem;
  }

  .hero[data-hero-carousel] .hero__topbar,
  .hero[data-hero-carousel] .hero__bottombar {
    padding-inline: 1rem;
    font-size: 0.56rem;
  }

  .hero[data-hero-carousel] .hero__content {
    left: 1rem;
    right: 1rem;
    bottom: clamp(8.25rem, 21vh, 11rem);
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .hero[data-hero-carousel] .hero__title,
  .hero[data-hero-carousel] .hero__title.is-long,
  .hero[data-hero-carousel] .hero__title.is-extra-long {
    max-width: calc(100vw - 2rem);
    font-size: inherit;
    line-height: 0.95;
  }

  .hero[data-hero-carousel] .hero__title-mask {
    min-width: 0;
    padding-block: 0.1em 0.22em;
    padding-inline-end: 0.22em;
    margin-block: -0.1em -0.22em;
    margin-inline-end: -0.22em;
  }

  .hero[data-hero-carousel] .hero__title-text {
    font-size: 4.4rem;
  }

  .hero[data-hero-carousel] .hero__caption {
    width: min(28rem, calc(100vw - 2rem));
    max-width: min(28rem, calc(100vw - 2rem));
  }

  .hero[data-hero-carousel] .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 22rem);
  }

  .hero[data-hero-carousel] .hero__thumbs {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    max-width: none;
    gap: 0.7rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero[data-hero-carousel] .hero__thumbs::-webkit-scrollbar {
    display: none;
  }

  .hero[data-hero-carousel] .hero__thumb {
    flex-basis: clamp(8.8rem, 42vw, 11rem);
    width: clamp(8.8rem, 42vw, 11rem);
  }
}

@media (max-width: 640px) {
  .hero.hero--visual-carousel,
  .hero[data-hero-carousel] {
    --hero-header-height: 68px;
  }

  .hero[data-hero-carousel] .hero__topbar {
    gap: 0.75rem;
  }

  .hero[data-hero-carousel] .hero__topbar p:last-child {
    text-align: right;
  }

  .hero[data-hero-carousel] .hero__title,
  .hero[data-hero-carousel] .hero__title.is-long,
  .hero[data-hero-carousel] .hero__title.is-extra-long {
    font-size: inherit;
  }

  .hero[data-hero-carousel] .hero__title-text {
    font-size: 3.1rem;
  }
}

@media (max-width: 420px) {
  .hero[data-hero-carousel] .hero__title,
  .hero[data-hero-carousel] .hero__title.is-long,
  .hero[data-hero-carousel] .hero__title.is-extra-long {
    font-size: inherit;
  }

  .hero[data-hero-carousel] .hero__title-text {
    font-size: 2.3rem;
  }

  .hero[data-hero-carousel] .hero__caption {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-hero-carousel] .hero__scene,
  .hero[data-hero-carousel] .hero__scene img,
  .hero[data-hero-carousel] .hero__scene picture img,
  .hero[data-hero-carousel] .hero__title-text,
  .hero[data-hero-carousel] .hero__caption-text,
  .hero[data-hero-carousel] .hero__thumb,
  .hero[data-hero-carousel] .hero__thumb img,
  .hero[data-hero-carousel] .hero__thumb::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .hero[data-hero-carousel] .hero__scene {
    opacity: 0 !important;
    visibility: hidden !important;
    clip-path: inset(0) !important;
    -webkit-clip-path: inset(0) !important;
  }

  .hero[data-hero-carousel] .hero__scene.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
  }

  .hero[data-hero-carousel].is-text-out .hero__title-text,
  .hero[data-hero-carousel].is-text-out .hero__caption-text,
  .hero[data-hero-carousel].is-text-in .hero__title-text,
  .hero[data-hero-carousel].is-text-in .hero__caption-text,
  .js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text,
  .js .hero[data-hero-carousel]:not(.is-ready) .hero__caption-text {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero[data-hero-carousel] .hero__thumb::after,
  .hero[data-hero-carousel].is-autoplaying .hero__thumb.is-active::after {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }
}
/* === END PHASE3M_HERO_OAKAME_LOCKED_CAROUSEL === */

/* PHASE4A_CLIENTES_EDITORIAL */
.audience-wow {
  position: relative;
  overflow: hidden;
  color: var(--color-anthracite);
  background:
    linear-gradient(90deg, rgba(36, 35, 33, 0.045) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, var(--color-ivory-soft), var(--color-ivory));
  background-size: 16.666% 100%, 100% 100%;
}

.audience-wow::before {
  position: absolute;
  top: clamp(2rem, 5vw, 4rem);
  right: clamp(1rem, 6vw, 7rem);
  bottom: clamp(2rem, 5vw, 4rem);
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(163, 123, 69, 0.42), transparent);
}

.audience-wow__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.audience-wow__intro {
  position: sticky;
  top: clamp(6rem, 12vh, 8rem);
  padding-top: 0.4rem;
}

.audience-wow__intro::before {
  display: block;
  width: clamp(4rem, 9vw, 7.5rem);
  height: 1px;
  margin-bottom: clamp(1.2rem, 2vw, 1.8rem);
  content: "";
  background: var(--color-bronze);
  transform-origin: left center;
}

.audience-wow__intro .section-kicker {
  margin-bottom: 1.1rem;
  color: rgba(163, 123, 69, 0.92);
}

.audience-wow__intro h2 {
  max-width: 10.6ch;
  margin: 0;
  color: var(--color-anthracite);
  font-size: clamp(3.7rem, 6.6vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.audience-wow__intro p:not(.section-kicker) {
  max-width: 34rem;
  margin: clamp(1.3rem, 2.5vw, 2rem) 0 0;
  color: rgba(36, 35, 33, 0.66);
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.75;
}

.audience-wow__list {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.35rem);
}

.audience-wow .audience-card {
  position: relative;
  display: grid;
  min-height: clamp(230px, 23vw, 310px);
  grid-template-columns: minmax(3.2rem, 0.18fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.6vw, 2.25rem);
  align-items: stretch;
  padding: clamp(1.4rem, 3vw, 2.8rem);
  overflow: hidden;
  border: 1px solid rgba(36, 35, 33, 0.15);
  border-radius: var(--radius-sm);
  outline: 0;
  background:
    linear-gradient(135deg, rgba(251, 248, 241, 0.96), rgba(232, 222, 208, 0.74)),
    var(--color-ivory-soft);
  box-shadow: none;
  transition:
    background-color 320ms var(--ease-out),
    border-color 320ms var(--ease-out),
    transform 320ms var(--ease-out);
}

.audience-wow .audience-card:nth-child(2) {
  margin-left: clamp(1.25rem, 5vw, 5.5rem);
}

.audience-wow .audience-card:nth-child(3) {
  margin-left: clamp(0.5rem, 2.8vw, 3rem);
}

.audience-wow .audience-card::before {
  position: absolute;
  top: 0;
  right: clamp(1.4rem, 3vw, 2.8rem);
  left: clamp(1.4rem, 3vw, 2.8rem);
  height: 2px;
  content: "";
  background: var(--color-bronze);
  transform: scaleX(0.22);
  transform-origin: left center;
  transition: transform 360ms var(--ease-out);
}

.audience-wow .audience-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(163, 123, 69, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(251, 248, 241, 0), rgba(36, 35, 33, 0.025));
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
}

.audience-wow .audience-card:hover,
.audience-wow .audience-card:focus-visible {
  border-color: rgba(163, 123, 69, 0.48);
  background-color: var(--color-ivory-soft);
  transform: translateX(-0.45rem);
}

.audience-wow .audience-card:hover::before,
.audience-wow .audience-card:focus-visible::before {
  transform: scaleX(1);
}

.audience-wow .audience-card:hover::after,
.audience-wow .audience-card:focus-visible::after {
  opacity: 1;
}

.audience-wow .audience-card:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(163, 123, 69, 0.32);
}

.audience-card__num {
  position: relative;
  z-index: 1;
  color: rgba(163, 123, 69, 0.9);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 4.1rem);
  font-weight: 600;
  line-height: 0.92;
}

.audience-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  min-width: 0;
}

.audience-card__title {
  max-width: 15ch;
  margin: 0;
  color: var(--color-anthracite);
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.audience-card__copy,
.audience-wow .audience-card p {
  max-width: 39rem;
  margin: clamp(1rem, 1.7vw, 1.5rem) 0 0;
  color: rgba(36, 35, 33, 0.68);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.65;
}

.audience-card__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin: clamp(1.35rem, 2.6vw, 2.35rem) 0 0;
  padding: 0;
  list-style: none;
}

.audience-card__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(36, 35, 33, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.audience-card__points li::before {
  width: 1.35rem;
  height: 1px;
  content: "";
  background: rgba(163, 123, 69, 0.78);
}

@media (max-width: 980px) {
  .audience-wow {
    background-size: 33.333% 100%, 100% 100%;
  }

  .audience-wow::before {
    display: none;
  }

  .audience-wow__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .audience-wow__intro {
    position: relative;
    top: auto;
  }

  .audience-wow__intro h2 {
    max-width: 12ch;
    font-size: clamp(3rem, 9vw, 5rem);
  }

  .audience-wow .audience-card,
  .audience-wow .audience-card:nth-child(2),
  .audience-wow .audience-card:nth-child(3) {
    margin-left: 0;
  }

  .audience-wow .audience-card:hover,
  .audience-wow .audience-card:focus-visible {
    transform: translateY(-0.25rem);
  }
}

@media (max-width: 640px) {
  .audience-wow__intro h2 {
    font-size: clamp(2.65rem, 11vw, 3.8rem);
  }

  .audience-wow .audience-card {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.35rem;
  }

  .audience-card__num {
    font-size: 2rem;
  }

  .audience-card__title {
    max-width: 13ch;
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .audience-card__points {
    display: grid;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audience-wow .audience-card,
  .audience-wow .audience-card::before,
  .audience-wow .audience-card::after {
    transition: none;
  }

  .audience-wow .audience-card:hover,
  .audience-wow .audience-card:focus-visible {
    transform: none;
  }
}
/* === END PHASE4A_CLIENTES_EDITORIAL === */

/* PHASE4B2_CONFIANZA_FAQ_ACCORDION */
.trust-faq {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5.5rem, 10vw, 9rem);
  color: var(--color-ivory-soft);
  background: var(--color-anthracite);
}

.trust-faq::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.78;
  background:
    linear-gradient(90deg, rgba(216, 190, 151, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.035), rgba(36, 35, 33, 0));
  background-size: 25% 100%, 100% 100%;
}

.trust-faq__inner {
  position: relative;
  display: grid;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}

.trust-faq__intro {
  position: sticky;
  top: clamp(5rem, 12vh, 7rem);
  max-width: 36rem;
}

.trust-faq__kicker {
  margin: 0 0 1rem;
  color: var(--color-oak);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.trust-faq__title {
  max-width: 11ch;
  margin: 0;
  color: var(--color-ivory-soft);
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.trust-faq__support {
  max-width: 36rem;
  margin: clamp(1.35rem, 2.6vw, 2.2rem) 0 0;
  color: rgba(251, 248, 241, 0.74);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.8;
}

.trust-faq__signals {
  display: grid;
  max-width: 36rem;
  margin: clamp(1.75rem, 3vw, 2.75rem) 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(216, 190, 151, 0.24);
  border-left: 1px solid rgba(216, 190, 151, 0.24);
  list-style: none;
}

.trust-faq__signals li {
  display: flex;
  min-height: 3.15rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-right: 1px solid rgba(216, 190, 151, 0.24);
  border-bottom: 1px solid rgba(216, 190, 151, 0.24);
  color: rgba(251, 248, 241, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.faq-accordion {
  border-top: 1px solid rgba(216, 190, 151, 0.32);
  border-bottom: 1px solid rgba(216, 190, 151, 0.32);
}

.faq-accordion__item {
  border-bottom: 1px solid rgba(216, 190, 151, 0.2);
  background-color: rgba(251, 248, 241, 0.018);
  transition:
    background-color 220ms var(--ease-out),
    border-color 220ms var(--ease-out);
}

.faq-accordion__item:last-child {
  border-bottom: 0;
}

.faq-accordion__item.is-open {
  background-color: rgba(251, 248, 241, 0.045);
  border-color: rgba(216, 190, 151, 0.32);
}

.faq-accordion__trigger {
  display: grid;
  width: 100%;
  min-height: 5.35rem;
  align-items: center;
  grid-template-columns: minmax(3.25rem, 0.12fr) minmax(0, 1fr) 2rem;
  gap: clamp(0.9rem, 2.3vw, 1.6rem);
  padding: clamp(1.1rem, 2.5vw, 1.65rem) clamp(1rem, 2.4vw, 1.5rem);
  border: 0;
  border-radius: 0;
  color: inherit;
  background-color: transparent;
  cursor: pointer;
  text-align: left;
  transition:
    color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    opacity 180ms var(--ease-out);
}

.faq-accordion__trigger:hover,
.faq-accordion__trigger:focus-visible {
  color: var(--color-ivory-soft);
  background-color: rgba(251, 248, 241, 0.04);
}

.faq-accordion__trigger:focus-visible {
  outline: 1px solid rgba(216, 190, 151, 0.78);
  outline-offset: -1px;
}

.faq-accordion__num {
  color: var(--color-oak);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1;
}

.faq-accordion__question {
  min-width: 0;
  color: var(--color-ivory-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.78rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.faq-accordion__icon {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  justify-self: end;
  border: 1px solid rgba(216, 190, 151, 0.36);
  border-radius: 50%;
  opacity: 0.92;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.faq-accordion__icon::before,
.faq-accordion__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.68rem;
  height: 1px;
  content: "";
  background: var(--color-oak);
}

.faq-accordion__icon::before {
  transform: translate(-50%, -50%);
}

.faq-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-accordion__trigger:hover .faq-accordion__icon,
.faq-accordion__trigger:focus-visible .faq-accordion__icon,
.faq-accordion__item.is-open .faq-accordion__icon {
  border-color: rgba(216, 190, 151, 0.64);
  opacity: 1;
}

.faq-accordion__item.is-open .faq-accordion__icon {
  background-color: rgba(216, 190, 151, 0.12);
  transform: rotate(45deg);
}

.faq-accordion__panel {
  padding: 0 clamp(1rem, 2.4vw, 1.5rem) clamp(1.35rem, 3vw, 2.1rem);
}

.faq-accordion__panel[hidden] {
  display: none;
}

.faq-accordion__text {
  max-width: 47rem;
  margin-left: calc(12% + clamp(0.9rem, 2.3vw, 1.6rem));
  padding-top: clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid rgba(216, 190, 151, 0.18);
}

.faq-accordion__text p {
  margin: 0;
  color: rgba(251, 248, 241, 0.76);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.78;
}

@media (max-width: 980px) {
  .trust-faq {
    padding-block: clamp(4.75rem, 12vw, 7rem);
  }

  .trust-faq::before {
    background-size: 33.333% 100%, 100% 100%;
  }

  .trust-faq__inner {
    grid-template-columns: 1fr;
    gap: clamp(2.25rem, 7vw, 3.5rem);
  }

  .trust-faq__intro {
    position: relative;
    top: auto;
  }

  .trust-faq__title {
    max-width: 12ch;
    font-size: clamp(2.85rem, 8.5vw, 5rem);
  }
}

@media (max-width: 640px) {
  .trust-faq__inner {
    width: min(100% - 1.25rem, var(--container));
  }

  .trust-faq__title {
    font-size: clamp(2.45rem, 11vw, 3.45rem);
  }

  .trust-faq__signals {
    grid-template-columns: 1fr;
  }

  .faq-accordion__trigger {
    min-height: 4.85rem;
    grid-template-columns: 2.5rem minmax(0, 1fr) 1.7rem;
    gap: 0.85rem;
    padding: 1rem 0.85rem;
  }

  .faq-accordion__num {
    font-size: 1rem;
  }

  .faq-accordion__question {
    font-size: clamp(1.05rem, 5.1vw, 1.35rem);
  }

  .faq-accordion__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .faq-accordion__panel {
    padding: 0 0.85rem 1.25rem;
  }

  .faq-accordion__text {
    margin-left: 0;
    padding-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-accordion__item,
  .faq-accordion__trigger,
  .faq-accordion__icon {
    transition: none;
  }
}
/* === END PHASE4B2_CONFIANZA_FAQ_ACCORDION === */

/* PHASE5B_CLIENT_LINE_CLEANUP */
.manifesto-fullscreen {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(216, 190, 151, 0.13) 18% calc(18% + 1px), transparent calc(18% + 1px) 100%),
    linear-gradient(90deg, transparent 0 63%, rgba(251, 248, 241, 0.06) 63% calc(63% + 1px), transparent calc(63% + 1px) 100%),
    linear-gradient(110deg, rgba(36, 35, 33, 0.98), rgba(58, 55, 50, 0.94)),
    var(--color-anthracite);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.manifesto-fullscreen::after {
  display: none;
}

.anatomy__stage::before {
  z-index: 0;
}

.anatomy__canvas {
  isolation: isolate;
}

.anatomy__canvas::after {
  display: none;
}

.anatomy__image {
  position: relative;
  z-index: 1;
  display: block;
}

.material-preview__sample {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
}

.material-preview__sample img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.material-preview__sample::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* PHASE5C_MATERIALIDAD_INTERACTIVE_8 */
.material-preview__sample {
  aspect-ratio: 1 / 1;
  min-height: 0;
  background: rgba(232, 222, 208, 0.52);
  isolation: isolate;
}

.material-preview__sample img {
  position: absolute;
  inset: 0;
  min-height: 0;
  filter: saturate(0.94) contrast(1.04);
  transition:
    opacity 220ms var(--ease-out),
    transform 520ms var(--ease-out),
    filter 320ms var(--ease-out);
}

.material-preview.is-switching .material-preview__sample img {
  opacity: 0.72;
  transform: scale(1.012);
}

.material-card {
  align-items: stretch;
}

.material-card__sample {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: rgba(232, 222, 208, 0.58);
}

.material-card__sample img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition:
    transform 420ms var(--ease-out),
    filter 320ms var(--ease-out);
}

.material-card__sample::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.material-card:hover .material-card__sample img,
.material-card:focus-visible .material-card__sample img,
.material-card.is-active .material-card__sample img {
  filter: saturate(0.98) contrast(1.06);
  transform: scale(1.035);
}

.material-card__title {
  line-height: 1.08;
}

@media (max-width: 640px) {
  .material-card {
    grid-template-columns: minmax(4.4rem, 0.26fr) minmax(0, 1fr);
  }

  .material-card__sample {
    min-height: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .material-preview__sample img,
  .material-card__sample img {
    transition: none;
  }

  .material-preview.is-switching .material-preview__sample img,
  .material-card:hover .material-card__sample img,
  .material-card:focus-visible .material-card__sample img,
  .material-card.is-active .material-card__sample img {
    transform: none;
  }
}

/* PHASE5K_MATERIALIDAD_SOFT_TRANSITION */
.material-preview__sample::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(105deg, transparent 0 32%, rgba(216, 190, 151, 0.16) 48%, transparent 64%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.06), rgba(36, 35, 33, 0.08));
  opacity: 0;
  transform: translate3d(-8%, 0, 0);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.material-preview__sample::after,
.material-card__sample::after {
  opacity: 0.28;
  mix-blend-mode: multiply;
}

.material-preview__sample img {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.material-preview.is-switching .material-preview__sample img {
  opacity: 0.96;
  filter: saturate(0.98) contrast(1.03) brightness(0.99);
  transform: scale(1.015);
}

.material-preview.is-switching .material-preview__sample::before {
  opacity: 1;
  transform: translate3d(8%, 0, 0);
}

.material-card:hover,
.material-card:focus-visible,
.material-card.is-active {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .material-preview__sample::before {
    display: none;
  }

  .material-preview__sample img {
    transition: opacity 120ms linear;
  }

  .material-preview.is-switching .material-preview__sample img {
    opacity: 1;
    filter: saturate(0.94) contrast(1.04);
    transform: none;
  }
}

/* PHASE5D_MATERIALIDAD_HEIGHT_SYNC */
@media (min-width: 980px) {
  .materials-lab {
    grid-template-columns: minmax(22rem, 0.92fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .material-preview,
  .material-grid {
    height: 100%;
    align-self: stretch;
  }

  .material-preview {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .material-preview__sample {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
  }

  .material-preview__content {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    padding: clamp(1rem, 1.35vw, 1.35rem) clamp(1.2rem, 2vw, 1.75rem) clamp(1.1rem, 1.5vw, 1.55rem);
  }

  .material-preview__meta {
    margin-bottom: 0.55rem;
  }

  .material-preview__content p:last-child {
    margin-top: 0.55rem;
  }

  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .material-card {
    height: 100%;
    min-height: 0;
    padding: clamp(0.72rem, 1vw, 0.9rem);
  }

  .material-card__content {
    gap: 0.34rem;
  }
}

@media (max-width: 979px) {
  .materials-lab {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .material-preview,
  .material-grid {
    height: auto;
  }

  .material-grid {
    grid-template-rows: auto;
  }
}

/* PHASE5C_CONTACTO_BACKGROUND */
.contact-private {
  position: relative;
  isolation: isolate;
  background-color: var(--color-ivory);
  background-image:
    linear-gradient(90deg, rgba(36, 35, 33, 0.052) 0 1px, transparent 1px 100%),
    linear-gradient(112deg, rgba(251, 248, 241, 0.94) 0%, rgba(251, 248, 241, 0.84) 48%, rgba(232, 222, 208, 0.72) 100%),
    url("assets/odecor/contacto/odecor-contacto-bg-01.webp");
  background-position: center, center, center;
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 25% 100%, 100% 100%, cover;
}

.contact-private::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(251, 248, 241, 0.36), transparent 30%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.2), rgba(36, 35, 33, 0.08));
}

.contact-private__inner {
  position: relative;
  z-index: 1;
}

.contact-private__panel {
  background: rgba(251, 248, 241, 0.88);
  box-shadow: 0 28px 90px rgba(36, 35, 33, 0.16);
  backdrop-filter: blur(14px);
}

.contact-private__field input,
.contact-private__field textarea,
.contact-choice,
.contact-private__summary {
  background-color: rgba(251, 248, 241, 0.92);
}

@media (max-width: 980px) {
  .contact-private {
    background-position: center, center, 42% center;
    background-size: 33.333% 100%, 100% 100%, cover;
  }
}

@media (max-width: 640px) {
  .contact-private {
    background-position: center, center, 48% center;
  }
}

/* PHASE5G_LIGHTBOX_IDLE_CONTROLS */
@media (hover: hover) and (pointer: fine) {
  .portfolio-lightbox__arrow {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) scale(0.96);
    transition:
      opacity 240ms var(--ease-out),
      transform 240ms var(--ease-out),
      background-color 180ms var(--ease-out),
      border-color 180ms var(--ease-out);
  }

  .portfolio-lightbox.is-controls-visible .portfolio-lightbox__arrow,
  .portfolio-lightbox__arrow:focus-visible {
    opacity: 0.92 !important;
    pointer-events: auto !important;
    transform: translateY(-50%) scale(1);
  }

  .portfolio-lightbox.is-controls-idle .portfolio-lightbox__arrow:not(:focus-visible) {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) scale(0.96);
  }
}

@media (hover: none), (pointer: coarse), (max-width: 920px) {
  .portfolio-lightbox__arrow {
    opacity: 0.88 !important;
    pointer-events: auto !important;
    transform: translateY(-50%) scale(1);
  }
}

/* PHASE5H_LIGHTBOX_SWIPE_CLEANUP */
.portfolio-lightbox__media {
  touch-action: pan-y;
}

.portfolio-lightbox__media img {
  will-change: transform;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-lightbox__media.is-dragging img {
  transition: none;
}

.portfolio-lightbox__media.is-swipe-resetting img {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-lightbox__media.is-swipe-animating img {
  animation-duration: 320ms;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-lightbox__media.is-swipe-animating.is-swipe-next img {
  animation-name: lightbox-swipe-next;
}

.portfolio-lightbox__media.is-swipe-animating.is-swipe-prev img {
  animation-name: lightbox-swipe-prev;
}

@keyframes lightbox-swipe-next {
  from {
    transform: translateX(32px);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes lightbox-swipe-prev {
  from {
    transform: translateX(-32px);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-lightbox__media img {
    will-change: auto;
    transition: none !important;
    animation: none !important;
  }
}

/* PHASE5G_MOBILE_MENU_ICON */
@media (max-width: 920px) {
  .site-header__inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    min-height: 64px;
  }

  .site-header__brand {
    grid-column: 1;
    justify-self: start;
  }

  .menu-toggle {
    position: relative;
    display: grid;
    grid-column: 2;
    justify-self: end;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    place-items: center;
    border-color: rgba(36, 35, 33, 0.18);
    border-radius: 999px;
    background: rgba(251, 248, 241, 0.5);
  }

  .menu-toggle span,
  .menu-toggle span + span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 20px;
    height: 1px;
    margin: 0;
    background: var(--color-anthracite);
    transform-origin: center;
    transition:
      opacity 180ms var(--ease-out),
      transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
      background-color 180ms var(--ease-out);
  }

  .menu-toggle span:nth-child(1) {
    transform: translate(-50%, calc(-50% - 6px));
  }

  .menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .menu-toggle span:nth-child(3) {
    transform: translate(-50%, calc(-50% + 6px));
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.24);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    border-color: rgba(163, 123, 69, 0.5);
    background: rgba(251, 248, 241, 0.78);
  }

  .menu-toggle:focus-visible {
    outline: 1px solid rgba(163, 123, 69, 0.72);
    outline-offset: 3px;
  }

  .site-nav {
    right: 1rem;
    left: 1rem;
  }
}

@media (min-width: 921px) {
  .menu-toggle span:nth-child(3) {
    display: none;
  }
}

/* PHASE5G_HERO_SINGLE_CTA */
.hero[data-hero-carousel] .hero__actions,
.hero__actions {
  gap: 0;
}

.hero[data-hero-carousel] .hero__cta--secondary,
.hero__cta--secondary {
  display: none !important;
}

.hero[data-hero-carousel] .hero__cta--primary,
.hero__cta--primary {
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  color: var(--color-ivory-soft);
  border: 1px solid rgba(251, 248, 241, 0.42);
  border-radius: 999px;
  background: rgba(15, 14, 13, 0.36);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.hero[data-hero-carousel] .hero__cta--primary:hover,
.hero[data-hero-carousel] .hero__cta--primary:focus-visible,
.hero__cta--primary:hover,
.hero__cta--primary:focus-visible {
  color: var(--color-ivory-soft);
  border-color: rgba(216, 190, 151, 0.7);
  background: rgba(15, 14, 13, 0.52);
}

@media (max-width: 640px) {
  .hero[data-hero-carousel] .hero__actions,
  .hero__actions {
    width: auto;
    max-width: min(16rem, 100%);
    margin-top: 0.9rem;
  }

  .hero[data-hero-carousel] .hero__cta--primary,
  .hero__cta--primary {
    width: auto;
    min-height: 42px;
    padding: 0.68rem 0.95rem;
    font-size: 0.78rem;
  }
}

/* PHASE5H_HERO_CTA_RESTYLE */
.hero[data-hero-carousel] .hero__cta--primary,
.hero__cta--primary {
  min-height: 44px;
  padding: 0.72rem 1.08rem;
  color: var(--color-ivory-soft);
  border: 1px solid rgba(216, 190, 151, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(20, 19, 17, 0.52);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero[data-hero-carousel] .hero__cta--primary:hover,
.hero[data-hero-carousel] .hero__cta--primary:focus-visible,
.hero__cta--primary:hover,
.hero__cta--primary:focus-visible {
  color: var(--color-ivory-soft);
  border-color: rgba(251, 248, 241, 0.72);
  background: rgba(20, 19, 17, 0.62);
  transform: translateY(-1px);
}

.hero[data-hero-carousel] .hero__cta--primary:focus-visible,
.hero__cta--primary:focus-visible {
  outline: 1px solid rgba(216, 190, 151, 0.9);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .hero[data-hero-carousel] .hero__actions,
  .hero__actions {
    margin-top: 0.8rem;
  }

  .hero[data-hero-carousel] .hero__cta--primary,
  .hero__cta--primary {
    min-height: 40px;
    padding: 0.62rem 0.86rem;
    font-size: 0.76rem;
  }
}

/* PHASE5H_BACK_TO_TOP */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  color: var(--color-ivory-soft);
  border: 1px solid rgba(216, 190, 151, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(20, 19, 17, 0.56);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    visibility 0ms linear 220ms,
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
  visibility: hidden;
  backdrop-filter: blur(14px);
}

.back-to-top span {
  font-size: 1.08rem;
  line-height: 1;
  transform: translateY(-1px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0ms;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(251, 248, 241, 0.74);
  background: rgba(20, 19, 17, 0.68);
  transform: translateY(-1px);
}

.back-to-top:focus-visible {
  outline: 1px solid rgba(216, 190, 151, 0.88);
  outline-offset: 3px;
}

body.gallery-is-open .back-to-top {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 640px) {
  .back-to-top {
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none !important;
  }
}

/* PHASE5H_MOBILE_HEADER_ACTIONS */
.site-header__mobile-actions {
  display: none;
}

@media (max-width: 920px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
  }

  .site-header__mobile-actions {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-self: end;
    gap: 0.55rem;
  }

  .site-header__phone-icon,
  .menu-toggle {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    place-items: center;
    padding: 0;
    color: var(--color-anthracite);
    border: 1px solid rgba(36, 35, 33, 0.18);
    border-radius: 999px;
    background: rgba(251, 248, 241, 0.5);
    transition:
      background-color 180ms var(--ease-out),
      border-color 180ms var(--ease-out),
      color 180ms var(--ease-out),
      transform 180ms var(--ease-out);
  }

  .site-header__phone-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .menu-toggle {
    grid-column: auto;
    justify-self: auto;
  }

  .menu-toggle span,
  .menu-toggle span + span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 20px;
    height: 1px;
    margin: 0;
    background: currentColor;
    transform-origin: center;
    transition:
      opacity 180ms var(--ease-out),
      transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .menu-toggle span:nth-child(1) {
    transform: translate(-50%, calc(-50% - 6px));
  }

  .menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .menu-toggle span:nth-child(3) {
    transform: translate(-50%, calc(-50% + 6px));
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.2);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .site-header__phone-icon:hover,
  .site-header__phone-icon:focus-visible,
  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    border-color: rgba(163, 123, 69, 0.5);
    background: rgba(251, 248, 241, 0.78);
    transform: translateY(-1px);
  }

  .site-header__phone-icon:focus-visible,
  .menu-toggle:focus-visible {
    outline: 1px solid rgba(163, 123, 69, 0.72);
    outline-offset: 3px;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header__mobile-actions {
    gap: 0.5rem;
  }

  .site-header__phone-icon,
  .menu-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* PHASE5K_DISABLE_FAILED_PHASE5J */
.hero[data-hero-carousel] .hero__topbar,
.hero[data-hero-carousel] .hero__bottombar,
.hero[data-hero-carousel] .hero__eyebrow,
.hero[data-hero-carousel] .hero__title,
.hero[data-hero-carousel] .hero__caption,
.hero[data-hero-carousel] .hero__actions,
.hero[data-hero-carousel] .hero__thumbs {
  opacity: 1;
  transform: none;
}

/* PHASE5K_CRAFT_BRIDGE_REPAIR */
.craft-bridge .craft-bridge__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 2rem);
  align-items: start;
}

.craft-bridge .craft-bridge__item {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.craft-bridge .craft-bridge__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--color-charcoal);
}

.craft-bridge .craft-bridge__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.craft-bridge .craft-bridge__copy {
  min-width: 0;
}

@media (max-width: 820px) {
  .craft-bridge .craft-bridge__grid {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .craft-bridge .craft-bridge__image {
    aspect-ratio: 16 / 10;
  }
}

/* PHASE5K_HERO_SAFE_REVEAL_ONLY */
.hero[data-hero-carousel] .hero__scene,
.hero[data-hero-carousel] .hero__scene.is-active,
.hero[data-hero-carousel] .hero__scene.is-under,
.hero[data-hero-carousel] .hero__scene.is-leaving,
.hero[data-hero-carousel] .hero__scene.is-entering,
.hero[data-hero-carousel] .hero__scene.is-entering.is-revealing {
  transform: none;
}

.hero[data-hero-carousel] .hero__scene.is-entering {
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
}

.hero[data-hero-carousel] .hero__scene.is-entering.is-revealing {
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  transition:
    clip-path 860ms cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-clip-path 860ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero[data-hero-carousel] .hero__image-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: scale(1);
  transform-origin: center center;
  transition: none;
}

.hero[data-hero-carousel] .hero__image-shell img {
  width: 100%;
  height: 100%;
}

.hero[data-hero-carousel] .hero__scene.is-entering .hero__image-shell {
  transform: none;
}

.hero[data-hero-carousel] .hero__scene.is-entering.is-revealing .hero__image-shell {
  transform: none;
  transition: none;
}

.hero[data-hero-carousel].is-text-in .hero__title-text {
  animation: phase5kHeroTitleIn 560ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.hero[data-hero-carousel].is-text-in .hero__caption-text {
  animation: phase5kHeroCaptionIn 520ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.hero[data-hero-carousel].is-content-revealing .hero__cta {
  animation: phase5kHeroCtaIn 460ms cubic-bezier(0.22, 1, 0.36, 1) 320ms both;
}

@keyframes phase5kHeroTitleIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes phase5kHeroCaptionIn {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes phase5kHeroCtaIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 820px) {
  .hero[data-hero-carousel] .hero__scene.is-entering .hero__image-shell {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-hero-carousel] .hero__scene,
  .hero[data-hero-carousel] .hero__image-shell,
  .hero[data-hero-carousel] .hero__title-text,
  .hero[data-hero-carousel] .hero__caption-text,
  .hero[data-hero-carousel] .hero__cta {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .hero[data-hero-carousel] .hero__scene {
    clip-path: inset(0) !important;
    -webkit-clip-path: inset(0) !important;
  }
}

/* PHASE5M_REMOVE_FAILED_HERO_PARALLAX */

/* PHASE5O_HERO_INNER_LAYER_PARALLAX */
.hero[data-hero-carousel] {
  --hero-inner-parallax-y: 0px;
}

.hero[data-hero-carousel] .hero__image-shell {
  overflow: hidden;
}

.hero[data-hero-carousel] .hero__parallax-media {
  position: absolute;
  right: 0;
  bottom: -12vh;
  left: 0;
  top: -12vh;
  pointer-events: none;
  transform: translate3d(0, var(--hero-inner-parallax-y, 0px), 0);
  will-change: transform;
}

.hero[data-hero-carousel] .hero__parallax-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero[data-hero-carousel] .hero__scene[data-hero-scene="cocinas"] .hero__parallax-media img {
  object-position: 52% 52%;
}

.hero[data-hero-carousel] .hero__scene[data-hero-scene="carpinteria"] .hero__parallax-media img {
  object-position: 52% 50%;
}

.hero[data-hero-carousel] .hero__scene[data-hero-scene="pavimentos"] .hero__parallax-media img {
  object-position: 50% 62%;
}

@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .hero[data-hero-carousel] {
    --hero-inner-parallax-y: 0px;
  }

  .hero[data-hero-carousel] .hero__parallax-media {
    top: 0;
    bottom: 0;
    transform: none;
    will-change: auto;
  }
}

/* PHASE5M_REMOVE_FAILED_SCROLL_CHOREOGRAPHY */

/* PHASE5M_ANATOMY_RESTORE_AFTER_PHASE5L */
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .anatomy .anatomy__canvas {
    position: absolute;
    top: 54%;
    left: 54%;
    width: min(1720px, 124vw);
    height: min(78svh, 860px);
    min-height: 560px;
    overflow: hidden;
    transform:
      translate3d(
        calc(-50% - (var(--anatomy-progress) * 4.2vw)),
        calc(-50% - (var(--anatomy-progress) * 1.4svh)),
        0
      )
      scale(1.02);
  }

  .anatomy .anatomy__image {
    transform: scale(1.04);
  }
}

/* PHASE5M_HERO_TITLE_STABILITY */
.hero[data-hero-carousel] .hero__title,
.hero[data-hero-carousel] .hero__title.is-long,
.hero[data-hero-carousel] .hero__title.is-extra-long,
.hero[data-hero-carousel] .hero__title-mask,
.hero[data-hero-carousel] .hero__title-text {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero[data-hero-carousel] .hero__title,
.hero[data-hero-carousel] .hero__title.is-long,
.hero[data-hero-carousel] .hero__title.is-extra-long {
  font-size: inherit;
  line-height: 1;
}

.hero[data-hero-carousel] .hero__title-text,
.hero[data-hero-carousel].is-text-out .hero__title-text,
.hero[data-hero-carousel].is-text-in .hero__title-text,
.hero[data-hero-carousel].is-text-settling .hero__title-text,
.js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text,
.js .hero[data-hero-carousel].is-ready .hero__title-text {
  font-size: 9.2rem;
  line-height: 0.84;
}

@media (min-width: 2400px) {
  .hero[data-hero-carousel] .hero__title-text,
  .hero[data-hero-carousel].is-text-out .hero__title-text,
  .hero[data-hero-carousel].is-text-in .hero__title-text,
  .hero[data-hero-carousel].is-text-settling .hero__title-text,
  .js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text,
  .js .hero[data-hero-carousel].is-ready .hero__title-text {
    font-size: 12rem;
  }
}

@media (max-width: 1200px) {
  .hero[data-hero-carousel] .hero__title-text,
  .hero[data-hero-carousel].is-text-out .hero__title-text,
  .hero[data-hero-carousel].is-text-in .hero__title-text,
  .hero[data-hero-carousel].is-text-settling .hero__title-text,
  .js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text,
  .js .hero[data-hero-carousel].is-ready .hero__title-text {
    font-size: 7.6rem;
  }
}

@media (max-width: 920px) {
  .hero[data-hero-carousel] .hero__title-text,
  .hero[data-hero-carousel].is-text-out .hero__title-text,
  .hero[data-hero-carousel].is-text-in .hero__title-text,
  .hero[data-hero-carousel].is-text-settling .hero__title-text,
  .js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text,
  .js .hero[data-hero-carousel].is-ready .hero__title-text {
    font-size: 4.4rem;
  }
}

@media (max-width: 640px) {
  .hero[data-hero-carousel] .hero__title-text,
  .hero[data-hero-carousel].is-text-out .hero__title-text,
  .hero[data-hero-carousel].is-text-in .hero__title-text,
  .hero[data-hero-carousel].is-text-settling .hero__title-text,
  .js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text,
  .js .hero[data-hero-carousel].is-ready .hero__title-text {
    font-size: 3.1rem;
  }
}

@media (max-width: 420px) {
  .hero[data-hero-carousel] .hero__title-text,
  .hero[data-hero-carousel].is-text-out .hero__title-text,
  .hero[data-hero-carousel].is-text-in .hero__title-text,
  .hero[data-hero-carousel].is-text-settling .hero__title-text,
  .js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text,
  .js .hero[data-hero-carousel].is-ready .hero__title-text {
    font-size: 2.3rem;
  }
}

/* PHASE5N_HERO_FIRST_PAINT_STABILITY */
/* PHASE5P_TYPOGRAPHY_RESTORE */
:root {
  --font-hero-stable: var(--font-serif);
}

.hero[data-hero-carousel] {
  --hero-title-stable-size: 9.2rem;
  --hero-title-stable-line-height: 0.88;
  --hero-title-stable-weight: 600;
  --hero-title-stable-tracking: -0.035em;
}

.hero[data-hero-carousel] .hero__title,
.hero[data-hero-carousel] .hero__title.is-long,
.hero[data-hero-carousel] .hero__title.is-extra-long,
.hero[data-hero-carousel] .hero__title-mask,
.hero[data-hero-carousel] .hero__title-text,
.hero[data-hero-carousel] .hero__title [data-hero-title],
.hero[data-hero-carousel].is-text-out .hero__title-text,
.hero[data-hero-carousel].is-text-in .hero__title-text,
.hero[data-hero-carousel].is-text-settling .hero__title-text,
.js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text,
.js .hero[data-hero-carousel].is-ready .hero__title-text {
  font-family: var(--font-hero-stable);
  font-size: var(--hero-title-stable-size);
  font-weight: var(--hero-title-stable-weight);
  line-height: var(--hero-title-stable-line-height);
  letter-spacing: var(--hero-title-stable-tracking);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero[data-hero-carousel] .hero__title,
.hero[data-hero-carousel] .hero__title.is-long,
.hero[data-hero-carousel] .hero__title.is-extra-long,
.hero[data-hero-carousel] .hero__title-mask {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
}

.hero[data-hero-carousel] .hero__title-mask {
  min-height: 1em;
  padding-block: 0.16em 0.3em;
  margin-block: -0.16em -0.3em;
}

.hero[data-hero-carousel] .hero__title-text,
.hero[data-hero-carousel] .hero__title [data-hero-title] {
  transform: translate3d(0, 0, 0);
  transition: none;
}

.js .hero[data-hero-carousel]:not(.is-ready) .hero__title-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: none;
  animation: none;
}

.hero[data-hero-carousel].is-text-out .hero__title-text {
  opacity: 0;
  transform: translate3d(0, -0.28em, 0);
  transition:
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero[data-hero-carousel].is-text-in .hero__title-text,
.hero[data-hero-carousel].is-text-settling .hero__title-text,
.js .hero[data-hero-carousel].is-ready .hero__title-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero[data-hero-carousel].is-text-settling .hero__title-text {
  transition: none;
  animation: none;
}

@media (min-width: 2400px) {
  .hero[data-hero-carousel] {
    --hero-title-stable-size: 12rem;
  }
}

@media (max-width: 1200px) {
  .hero[data-hero-carousel] {
    --hero-title-stable-size: 7.6rem;
  }
}

@media (max-width: 920px) {
  .hero[data-hero-carousel] {
    --hero-title-stable-size: 4.4rem;
  }
}

@media (max-width: 640px) {
  .hero[data-hero-carousel] {
    --hero-title-stable-size: 3.1rem;
  }
}

@media (max-width: 420px) {
  .hero[data-hero-carousel] {
    --hero-title-stable-size: 2.3rem;
  }
}

/* PHASE5P_HERO_PARALLAX_REFINEMENT */
.hero[data-hero-carousel] {
  --hero-inner-parallax-y: 0px;
}

.hero[data-hero-carousel] .hero__scene,
.hero[data-hero-carousel] .hero__scene.is-active,
.hero[data-hero-carousel] .hero__scene.is-under,
.hero[data-hero-carousel] .hero__scene.is-leaving,
.hero[data-hero-carousel] .hero__scene.is-entering,
.hero[data-hero-carousel] .hero__scene.is-entering.is-revealing {
  transform: none;
}

.hero[data-hero-carousel] .hero__image-shell,
.hero[data-hero-carousel] .hero__scene.is-entering .hero__image-shell,
.hero[data-hero-carousel] .hero__scene.is-entering.is-revealing .hero__image-shell {
  transform: none;
  transition: none;
}

.hero[data-hero-carousel] .hero__parallax-media {
  top: -14vh;
  bottom: -14vh;
  transform: translate3d(0, var(--hero-inner-parallax-y, 0px), 0);
  will-change: transform;
}

/* PHASE5P_HERO_MOTION_REFINEMENT */
.hero[data-hero-carousel] {
  --hero-wipe-duration: 1700ms;
}

.hero[data-hero-carousel] .hero__scene.is-entering {
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
}

.hero[data-hero-carousel] .hero__scene.is-entering.is-revealing {
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  transition:
    clip-path var(--hero-wipe-duration) var(--motion-odecor-ease),
    -webkit-clip-path var(--hero-wipe-duration) var(--motion-odecor-ease);
}

.hero[data-hero-carousel].is-text-out .hero__title-text,
.hero[data-hero-carousel].is-text-out .hero__caption-text {
  opacity: 0;
  transform: translate3d(0, -0.16em, 0);
  transition:
    opacity 520ms var(--motion-odecor-soft),
    transform 620ms var(--motion-odecor-soft);
}

.hero[data-hero-carousel].is-text-in .hero__title-text {
  animation: phase5pHeroTitleIn 940ms var(--motion-odecor-soft) 90ms both;
}

.hero[data-hero-carousel].is-text-in .hero__caption-text {
  animation: phase5pHeroCaptionIn 820ms var(--motion-odecor-soft) 190ms both;
}

.hero[data-hero-carousel].is-content-revealing .hero__cta {
  animation: phase5pHeroCtaIn 760ms var(--motion-odecor-soft) 300ms both;
}

@keyframes phase5pHeroTitleIn {
  from {
    opacity: 0;
    transform: translate3d(0, 0.32em, 0);
  }

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

@keyframes phase5pHeroCaptionIn {
  from {
    opacity: 0;
    transform: translate3d(0, 0.28em, 0);
  }

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

@keyframes phase5pHeroCtaIn {
  from {
    opacity: 0;
    transform: translate3d(0, 0.7rem, 0);
  }

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

/* PHASE5P_MATERIALIDAD_MOTION_REFINEMENT */
.material-preview__sample {
  isolation: isolate;
}

.material-preview__sample::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background-image: none;
  background-position: center;
  background-size: cover;
  opacity: 0;
  filter: saturate(0.96) contrast(1.03);
  transform: scale(1.012);
  transition:
    opacity 940ms var(--motion-odecor-ease),
    transform 980ms var(--motion-odecor-ease),
    filter 940ms var(--motion-odecor-ease);
}

.material-preview.is-switching .material-preview__sample::before {
  opacity: 1;
  transform: scale(1);
}

.material-preview__sample img {
  transition:
    opacity 940ms var(--motion-odecor-ease),
    transform 980ms var(--motion-odecor-ease),
    filter 940ms var(--motion-odecor-ease);
}

.material-preview.is-switching .material-preview__sample img {
  opacity: 1;
  filter: saturate(0.94) contrast(1.04);
  transform: scale(1);
}

.material-card {
  transition:
    transform 520ms var(--motion-odecor-ease),
    border-color 520ms var(--motion-odecor-ease),
    box-shadow 560ms var(--motion-odecor-ease),
    background-color 520ms var(--motion-odecor-ease);
}

.material-card__sample img {
  transition:
    transform 620ms var(--motion-odecor-ease),
    filter 560ms var(--motion-odecor-ease);
}

/* PHASE5P_SITE_WIDE_MOTION_POLISH */
.js [data-reveal] {
  transition:
    opacity 980ms var(--motion-odecor-ease),
    transform 1180ms var(--motion-odecor-ease);
}

.service-showroom__image {
  transition:
    opacity 780ms var(--motion-odecor-ease),
    transform 1080ms var(--motion-odecor-ease);
}

.service-panel,
.service-panel::before {
  transition-duration: 520ms;
  transition-timing-function: var(--motion-odecor-ease);
}

.project-tile {
  transition:
    border-color 420ms var(--motion-odecor-ease),
    box-shadow 560ms var(--motion-odecor-ease),
    transform 520ms var(--motion-odecor-ease);
}

.portfolio-lightbox {
  transition:
    opacity 520ms var(--motion-odecor-ease),
    visibility 0ms linear 520ms;
}

.portfolio-lightbox__media img,
.portfolio-lightbox__media.is-swipe-resetting img {
  transition: transform 360ms var(--motion-odecor-ease);
}

.portfolio-lightbox__media.is-swipe-animating img {
  animation-duration: 520ms;
  animation-timing-function: var(--motion-odecor-ease);
}

.faq-accordion__item {
  transition:
    background-color 420ms var(--motion-odecor-ease),
    border-color 420ms var(--motion-odecor-ease);
}

.faq-accordion__trigger {
  transition:
    color 320ms var(--motion-odecor-ease),
    background-color 320ms var(--motion-odecor-ease),
    opacity 320ms var(--motion-odecor-ease);
}

.faq-accordion__icon {
  transition:
    background-color 360ms var(--motion-odecor-ease),
    border-color 360ms var(--motion-odecor-ease),
    opacity 360ms var(--motion-odecor-ease),
    transform 420ms var(--motion-odecor-ease);
}

.back-to-top {
  transition:
    opacity 420ms var(--motion-odecor-ease),
    transform 520ms var(--motion-odecor-ease),
    visibility 0ms linear 420ms,
    background-color 320ms var(--motion-odecor-ease),
    border-color 320ms var(--motion-odecor-ease);
}

@media (max-width: 920px) {
  .site-header__phone-icon,
  .menu-toggle {
    transition:
      background-color 280ms var(--motion-odecor-ease),
      border-color 280ms var(--motion-odecor-ease),
      color 280ms var(--motion-odecor-ease),
      transform 320ms var(--motion-odecor-ease);
  }

  .menu-toggle span,
  .menu-toggle span + span {
    transition:
      opacity 260ms var(--motion-odecor-ease),
      transform 360ms var(--motion-odecor-ease);
  }
}

@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .hero[data-hero-carousel] .hero__parallax-media {
    top: 0;
    bottom: 0;
    transform: none;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-hero-carousel] .hero__scene,
  .hero[data-hero-carousel] .hero__image-shell,
  .hero[data-hero-carousel] .hero__parallax-media,
  .hero[data-hero-carousel] .hero__title-text,
  .hero[data-hero-carousel] .hero__caption-text,
  .hero[data-hero-carousel] .hero__cta,
  .material-preview__sample::before,
  .material-preview__sample img,
  .material-card,
  .material-card__sample img,
  .js [data-reveal],
  .service-showroom__image,
  .service-panel,
  .service-panel::before,
  .project-tile,
  .portfolio-lightbox,
  .portfolio-lightbox__media img,
  .faq-accordion__item,
  .faq-accordion__trigger,
  .faq-accordion__icon,
  .back-to-top {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .hero[data-hero-carousel] .hero__scene {
    clip-path: inset(0) !important;
    -webkit-clip-path: inset(0) !important;
  }

  .material-preview__sample::before {
    display: none;
  }

  .material-preview.is-switching .material-preview__sample img {
    opacity: 1;
    filter: saturate(0.94) contrast(1.04);
  }
}

/* PHASE5O_LENIS_SMOOTH_SCROLL */
html.has-lenis {
  scroll-behavior: auto;
}

html.has-lenis body {
  overscroll-behavior-y: none;
}

/* PHASE5Q_VISIBLE_MOTION_OVERRIDE */
@media (prefers-reduced-motion: no-preference) {
  .hero[data-hero-carousel] {
    --hero-wipe-duration: 1700ms;
  }

  .hero[data-hero-carousel] .hero__scene,
  .hero[data-hero-carousel] .hero__scene.is-active,
  .hero[data-hero-carousel] .hero__scene.is-under,
  .hero[data-hero-carousel] .hero__scene.is-leaving,
  .hero[data-hero-carousel] .hero__scene.is-entering,
  .hero[data-hero-carousel] .hero__scene.is-entering.is-revealing {
    transform: none;
  }

  .hero[data-hero-carousel] .hero__image-shell,
  .hero[data-hero-carousel] .hero__scene.is-entering .hero__image-shell,
  .hero[data-hero-carousel] .hero__scene.is-entering.is-revealing .hero__image-shell {
    transform: none;
    transition: none;
  }

  .hero[data-hero-carousel] .hero__scene.is-entering {
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
  }

  .hero[data-hero-carousel] .hero__scene.is-entering.is-revealing {
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
    transition:
      clip-path 1700ms cubic-bezier(0.22, 1, 0.36, 1),
      -webkit-clip-path 1700ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero[data-hero-carousel] .hero__parallax-media {
    transform: translate3d(0, var(--hero-inner-parallax-y, 0px), 0);
  }

  .hero[data-hero-carousel].is-text-out .hero__title-text,
  .hero[data-hero-carousel].is-text-out .hero__caption-text {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    animation: none !important;
    transition:
      opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero[data-hero-carousel].is-transitioning.is-text-settling .hero__title-text,
  .hero[data-hero-carousel].is-transitioning.is-text-settling .hero__caption-text {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    animation: none !important;
    transition: none;
  }

  .hero[data-hero-carousel].is-text-in .hero__title-text {
    animation: phase5qHeroTitleIn 1180ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
  }

  .hero[data-hero-carousel].is-text-in .hero__caption-text {
    animation: phase5qHeroCaptionIn 980ms cubic-bezier(0.22, 1, 0.36, 1) 250ms both;
  }

  .hero[data-hero-carousel].is-content-revealing .hero__cta {
    animation: phase5qHeroCtaIn 880ms cubic-bezier(0.22, 1, 0.36, 1) 390ms both;
  }
}

@keyframes phase5qHeroTitleIn {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

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

@keyframes phase5qHeroCaptionIn {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

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

@keyframes phase5qHeroCtaIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

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

/* PHASE5U_RECOVERY_HERO_PARALLAX_RESTORE */
.hero[data-hero-carousel] {
  --hero-inner-parallax-y: 0px;
}

.hero[data-hero-carousel] .hero__scene {
  transform: none !important;
}

.hero[data-hero-carousel] .hero__image-shell {
  overflow: hidden;
  transform: none !important;
  transition: none !important;
}

.hero[data-hero-carousel] .hero__parallax-media {
  position: absolute;
  left: 0;
  right: 0;
  top: -12vh;
  bottom: -12vh;
  transform: translate3d(0, var(--hero-inner-parallax-y, 0px), 0);
  will-change: transform;
  pointer-events: none;
}

.hero[data-hero-carousel] .hero__parallax-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none !important;
  transition: none !important;
}

.hero[data-hero-carousel] .hero__scene[data-hero-scene="cocinas"] .hero__parallax-media img {
  object-position: 52% 52%;
}

.hero[data-hero-carousel] .hero__scene[data-hero-scene="carpinteria"] .hero__parallax-media img {
  object-position: 52% 50%;
}

.hero[data-hero-carousel] .hero__scene[data-hero-scene="pavimentos"] .hero__parallax-media img {
  object-position: 50% 62%;
}

@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .hero[data-hero-carousel] {
    --hero-inner-parallax-y: 0px;
  }

  .hero[data-hero-carousel] .hero__parallax-media {
    top: 0;
    bottom: 0;
    transform: none;
    will-change: auto;
  }
}

/* PHASE5U_RECOVERY_HERO_TEXT_STABILITY */
.hero[data-hero-carousel] .hero__title-text {
  white-space: normal;
  letter-spacing: inherit;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.hero[data-hero-carousel] .hero__title-mask {
  min-height: 1.05em;
}

.hero[data-hero-carousel] .hero__caption {
  min-height: 3em;
}

.hero[data-hero-carousel] .hero__title,
.hero[data-hero-carousel] .hero__caption,
.hero[data-hero-carousel] .hero__actions {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero[data-hero-carousel] .hero__caption-text,
.hero[data-hero-carousel] .hero__cta {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.hero[data-hero-carousel].is-text-out .hero__title,
.hero[data-hero-carousel].is-text-out .hero__caption,
.hero[data-hero-carousel].is-text-out .hero__actions,
.hero[data-hero-carousel].is-text-settling .hero__title,
.hero[data-hero-carousel].is-text-settling .hero__caption,
.hero[data-hero-carousel].is-text-settling .hero__actions {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.hero[data-hero-carousel].is-text-in .hero__title,
.hero[data-hero-carousel].is-text-in .hero__caption,
.hero[data-hero-carousel].is-text-in .hero__actions {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-hero-carousel] .hero__title,
  .hero[data-hero-carousel] .hero__caption,
  .hero[data-hero-carousel] .hero__actions {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* PHASE5V_ESPECIALIDADES_MOTION_RESTORE */
.service-showroom__image-stack {
  z-index: 1;
}

.service-showroom__image {
  opacity: 0;
  visibility: visible;
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  pointer-events: none;
  z-index: 1;
  transform: none !important;
  filter: none;
}

.service-showroom__image.is-active {
  opacity: 1;
  z-index: 2;
}

.service-showroom__image.is-entering,
.service-showroom__image.is-leaving {
  opacity: inherit;
  transform: none !important;
  filter: none;
}

.service-showroom__overlay {
  display: none !important;
}

.service-showroom__visual::before,
.service-showroom__visual::after {
  z-index: 5;
  pointer-events: none;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.service-showroom__index,
.service-showroom__caption,
.service-showroom__progress {
  z-index: 6;
}

/* PHASE5U_RECOVERY_MATERIAL_STABLE_CROSSFADE */
.material-preview__sample {
  position: relative;
  overflow: hidden;
}

.material-preview__sample img[data-material-preview-image] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.material-preview__sample::before {
  content: none !important;
  display: none !important;
}

.material-preview.is-switching .material-preview__sample img[data-material-preview-image] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* PHASE5W_MATERIALIDAD_BROKEN_IMAGE_FIX */
.material-preview__overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.006);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
  pointer-events: none;
}

.material-preview__overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .material-preview__overlay {
    display: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* PHASE5U_RECOVERY_ARCHIVO_PREVIEW_POSITION */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .archivo__preview {
    right: auto !important;
    left: min(calc(50vw + 620px), calc(100vw - 420px)) !important;
    width: clamp(300px, 16vw, 340px);
  }
}

@media (min-width: 2600px) and (hover: hover) and (pointer: fine) {
  .archivo__preview {
    left: min(calc(50vw + 620px), calc(100vw - 760px)) !important;
  }
}
