/* =========================================================
   DR. CRISTIAN PONCEANO — DESIGN SYSTEM
   Edita colores, espacios y tipografía desde estas variables.
   ========================================================= */
:root {
  --ink: #050607;
  --ink-soft: #0c0e10;
  --paper: #f2f2ef;
  --paper-bright: #fbfbf8;
  --silver: #c8cfd5;
  --steel: #8f989f;
  --muted: #6d7378;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(5, 6, 7, 0.16);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text Pro", Arial, sans-serif;
  --page: min(92vw, 1480px);
  --header-h: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sharp: cubic-bezier(0.77, 0, 0.18, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading,
body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--paper);
  color: var(--ink);
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

/* Loader */
.loader {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  transition: visibility 0s linear 1.05s;
}

.loader::before,
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform: translateY(100%);
  transition: transform 0.9s var(--ease-sharp);
}

.loader::after {
  background: var(--ink);
  transition-delay: 0.12s;
}

.loader__mark {
  position: relative;
  z-index: 2;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.08em;
}

.loader__mark span {
  color: var(--silver);
}

.loader__line {
  position: absolute;
  z-index: 2;
  left: 5vw;
  right: 5vw;
  bottom: 58px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.loader__line i {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  background: var(--paper);
  animation: loaderLine 1.15s var(--ease) forwards;
}

.loader__count {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 72px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

body.is-ready .loader::before,
body.is-ready .loader::after {
  transform: translateY(-100%);
}

body.is-ready .loader__mark,
body.is-ready .loader__line,
body.is-ready .loader__count {
  opacity: 0;
  transform: translateY(-18px);
  transition: 0.35s ease;
}

body.is-ready .loader {
  visibility: hidden;
}

@keyframes loaderLine {
  to { transform: translateX(0); }
}

/* Cursor */
.cursor {
  position: fixed;
  z-index: 4500;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
}

.cursor--dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
}

.cursor--ring {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s ease;
}

.cursor--ring span {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor--ring.is-view {
  width: 86px;
  height: 86px;
  background: #fff;
}

.cursor--ring.is-view span {
  opacity: 1;
  color: #000;
}

@media (pointer: fine) {
  body,
  a,
  button,
  video {
    cursor: none;
  }

  .cursor {
    opacity: 1;
  }
}

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  transition: height 0.4s var(--ease), background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  height: 72px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 7, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand__name {
  font-size: 0.67rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 46px);
}

.nav-link {
  position: relative;
  height: 1.25em;
  overflow: hidden;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link span {
  display: block;
  transition: transform 0.55s var(--ease);
}

.nav-link span:nth-child(2) {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
}

.nav-link:hover span,
.nav-link:focus-visible span {
  transform: translateY(-100%);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}

.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-cta span {
  transition: transform 0.35s var(--ease);
}

.header-cta:hover span {
  transform: translate(3px, -3px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__fallback,
.hero__canvas,
.hero__lens,
.hero__veil,
.hero__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  z-index: -1;
  background: #010202;
}

.hero__fallback {
  object-fit: cover;
  object-position: 63% center;
  transform: scale(1.035);
}

.hero__canvas {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__canvas.is-ready {
  opacity: 1;
}

.hero__lens {
  --fx-x: 50%;
  --fx-y: 48%;
  --fx-shift-x: 0px;
  --fx-shift-y: 0px;
  --fx-radius: clamp(150px, 19vw, 300px);
  inset: -5%;
  width: 110%;
  height: 110%;
  opacity: 0.62;
  background: url("../images/hero.webp") 63% center / cover no-repeat;
  filter: contrast(1.12) saturate(1.08) brightness(1.035);
  transform: translate3d(var(--fx-shift-x), var(--fx-shift-y), 0) scale(1.085);
  transform-origin: var(--fx-x) var(--fx-y);
  -webkit-mask-image: radial-gradient(circle var(--fx-radius) at var(--fx-x) var(--fx-y), #000 0%, #000 36%, rgba(0, 0, 0, 0.88) 49%, rgba(0, 0, 0, 0.35) 66%, transparent 78%);
  mask-image: radial-gradient(circle var(--fx-radius) at var(--fx-x) var(--fx-y), #000 0%, #000 36%, rgba(0, 0, 0, 0.88) 49%, rgba(0, 0, 0, 0.35) 66%, transparent 78%);
  pointer-events: none;
  will-change: transform, -webkit-mask-image, mask-image;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(1, 2, 2, 0.96) 0%, rgba(1, 2, 2, 0.75) 28%, rgba(1, 2, 2, 0.18) 62%, rgba(1, 2, 2, 0.35) 100%),
    linear-gradient(180deg, rgba(2, 3, 3, 0.68) 0%, transparent 32%, transparent 70%, rgba(1, 2, 2, 0.8) 100%);
  pointer-events: none;
}

.hero__grain {
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero__content {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 8vh);
  padding-bottom: 5vh;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  margin-bottom: 8vh;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero__title {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: "Bodoni 72", Didot, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(4.6rem, 10.7vw, 10.7rem);
  font-weight: 300;
  line-height: 0.76;
  letter-spacing: 0.018em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__title-line {
  display: block;
  transform: translate3d(0, 120%, 0);
  opacity: 0;
}

.hero__title-line--offset {
  align-self: flex-end;
  margin-right: 3vw;
}

body.is-ready .hero__title-line {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 1.15s var(--ease) 0.34s, opacity 0.5s ease 0.34s;
}

body.is-ready .hero__title-line:nth-child(2) {
  transition-delay: 0.46s;
}

.hero__lower {
  position: absolute;
  right: 0;
  bottom: 5vh;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 30px;
}

.hero__statement {
  max-width: 420px;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.35;
}

.hero__statement em {
  font-family: var(--serif);
  font-size: 1.2em;
  font-weight: 400;
}

.hero__signature {
  position: absolute;
  z-index: 2;
  top: 57%;
  left: 39%;
  width: min(43vw, 760px);
  height: auto;
  mix-blend-mode: screen;
  opacity: 0.5;
  transform: rotate(-2.2deg);
  transform-origin: center;
  pointer-events: none;
}

.hero__actions {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.45s var(--ease), background 0.45s var(--ease), transform 0.35s var(--ease);
}

.button b {
  font-size: 1rem;
  font-weight: 400;
  transition: transform 0.35s var(--ease);
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover b {
  transform: translate(3px, -3px);
}

.button--light {
  background: var(--paper);
  color: var(--ink);
}

.button--light:hover {
  background: transparent;
  color: var(--paper);
}

.button--dark {
  background: var(--ink);
  color: var(--paper);
}

.button--dark:hover {
  background: transparent;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 0.35s var(--ease);
}

.text-link:hover span {
  transform: translateY(4px);
}

.text-link--dark:hover span {
  transform: translate(3px, -3px);
}

.hero__technique {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 4vw;
  display: flex;
  align-items: center;
  gap: 13px;
  transform: translateY(-50%) rotate(-90deg) translateX(50%);
  transform-origin: right center;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__technique > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.hero__technique p {
  line-height: 1.4;
}

.hero__technique strong {
  color: #fff;
  font-weight: 600;
}

.hero__index {
  position: absolute;
  left: 4vw;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.hero__scroll {
  position: absolute;
  right: 4vw;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__scroll span {
  position: relative;
  width: 36px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(110%); }
}

/* Shared section typography */
.services,
.about,
.contact {
  position: relative;
  padding: clamp(110px, 12vw, 190px) 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) 2.25fr;
  gap: 5vw;
  padding-bottom: clamp(76px, 10vw, 150px);
  border-bottom: 1px solid var(--line-light);
}

.section-intro--dark {
  border-color: var(--line-dark);
}

.section-kicker {
  padding-top: 10px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-intro__copy {
  max-width: 1120px;
}

.display-title {
  font-family: var(--sans);
  font-size: clamp(3rem, 6.7vw, 7.6rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.display-title em {
  font-family: var(--serif);
  font-weight: 400;
}

.lede {
  width: min(100%, 650px);
  margin-top: 42px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.65;
}

.section-intro--dark .lede {
  color: rgba(255, 255, 255, 0.58);
}

/* Services */
.services {
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: 15%;
  right: -18vw;
  width: 55vw;
  aspect-ratio: 1;
  border: 1px solid rgba(5, 6, 7, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 10vw rgba(5, 6, 7, 0.02), 0 0 0 20vw rgba(5, 6, 7, 0.015);
  pointer-events: none;
}

.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 32px);
  padding: clamp(85px, 10vw, 150px) 0 40px;
}

.service-card {
  grid-column: auto;
  min-height: clamp(560px, 50vw, 740px);
  overflow: hidden;
  border: 1px solid rgba(5, 6, 7, 0.12);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 20px 56px rgba(5, 6, 7, 0.1);
  transform: translateZ(0);
}

.service-card--wide {
  grid-column: auto;
}

.service-card:nth-child(2),
.service-card:nth-child(4) {
  margin-top: 0;
}

.service-card a {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: inherit;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

.service-card__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 5, 5, 0.16) 0%, rgba(4, 5, 5, 0.08) 35%, rgba(4, 5, 5, 0.93) 100%);
  transition: background 0.55s ease;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
  transform: scale(1.045);
  transition: transform 1.2s var(--ease), filter 0.7s ease;
}

.service-card:hover .service-card__media img {
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.1);
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  padding: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card__body {
  padding: clamp(24px, 3vw, 42px);
}

.service-card__overline {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.2vw, 5.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.service-card h3 sup {
  position: relative;
  top: -0.9em;
  font-family: var(--sans);
  font-size: 0.22em;
  letter-spacing: 0;
}

.service-card__body > p:not(.service-card__overline) {
  width: min(100%, 470px);
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 25px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-link b {
  font-size: 0.9rem;
  font-weight: 400;
  transition: transform 0.35s var(--ease);
}

.service-card:hover .card-link b {
  transform: translate(4px, -4px);
}

.editorial-note {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin: 25px 0 clamp(100px, 13vw, 190px);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.editorial-note span {
  flex: 0 0 auto;
  color: var(--ink);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.editorial-note p {
  max-width: 520px;
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  background: var(--paper-bright);
  border: 1px solid var(--line-light);
}

.case-feature__image {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #ddd;
}

.case-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84);
  transition: transform 1.1s var(--ease);
}

.case-feature:hover .case-feature__image img {
  transform: scale(1.035);
}

.case-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 10px 13px;
  background: rgba(5, 6, 7, 0.86);
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.case-feature__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 92px);
}

.case-feature__content h3 {
  margin-top: 56px;
  font-size: clamp(2.7rem, 4.6vw, 5.6rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.case-feature__content h3 em {
  font-family: var(--serif);
  font-weight: 400;
}

.case-feature__content > p:not(.section-kicker) {
  margin-top: 34px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.case-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 36px;
  list-style: none;
}

.case-feature__tags li {
  padding: 8px 13px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-feature__content small {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

/* About */
.about {
  overflow: hidden;
}

.about__orb {
  position: absolute;
  top: 5%;
  right: -16vw;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 10vw rgba(255, 255, 255, 0.016), 0 0 0 20vw rgba(255, 255, 255, 0.01);
  pointer-events: none;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.7fr);
  gap: 8vw;
  align-items: end;
  padding: clamp(100px, 13vw, 200px) 0;
}

.manifesto__quote {
  max-width: 1050px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 6.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.manifesto__signature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-left: 26px;
  border-left: 1px solid var(--line-dark);
}

.manifesto__signature span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.manifesto__signature strong {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  font-style: italic;
}

.video-feature {
  position: relative;
  width: min(100%, 1320px);
  margin-inline: auto;
  overflow: hidden;
  background: #0c0e10;
  border: 1px solid var(--line-dark);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
}

.video-feature::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 14px rgba(5, 6, 7, 0.48);
}

.video-feature__meta {
  position: absolute;
  z-index: 3;
  top: 26px;
  right: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
}

.video-feature video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.03);
}

.credentials {
  padding-top: clamp(100px, 12vw, 185px);
}

.credentials__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  padding-bottom: 58px;
}

.credentials__header > p:last-child {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.54);
  line-height: 1.65;
}

.credentials__list {
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.credentials__list li {
  display: grid;
  grid-template-columns: 60px minmax(280px, 1.3fr) minmax(220px, 0.7fr);
  gap: 24px;
  align-items: center;
  padding: 27px 8px;
  border-bottom: 1px solid var(--line-dark);
  transition: padding 0.45s var(--ease), background 0.45s ease;
}

.credentials__list li:hover {
  padding-inline: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.credentials__list span {
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.credentials__list strong {
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  font-weight: 400;
}

.credentials__list small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Contact */
.contact {
  padding-bottom: 0;
}

.contact__headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5vw;
  align-items: end;
  padding: 80px 0 clamp(90px, 11vw, 170px);
}

.contact__headline .display-title {
  max-width: 1180px;
}

.contact__circle {
  display: flex;
  width: clamp(150px, 15vw, 225px);
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.73rem;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.55s var(--ease), color 0.55s var(--ease), transform 0.55s var(--ease);
}

.contact__circle b {
  font-size: 1.1rem;
  font-weight: 400;
}

.contact__circle:hover {
  transform: rotate(-7deg) scale(1.03);
  background: var(--ink);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  min-height: 620px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.location-card {
  position: relative;
  display: flex;
  min-height: 620px;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-soft);
  color: var(--paper);
}

.location-card__grid {
  position: absolute;
  inset: -10%;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(700px) rotateX(58deg) rotateZ(-16deg) scale(1.3);
  transform-origin: center;
}

.location-card__grid::before,
.location-card__grid::after {
  content: "";
  position: absolute;
  width: 58%;
  height: 24px;
  border-top: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  transform: rotate(23deg);
}

.location-card__grid::before {
  top: 28%;
  left: 12%;
}

.location-card__grid::after {
  right: 2%;
  bottom: 26%;
  transform: rotate(-31deg);
}

.location-card__pin {
  position: absolute;
  top: 37%;
  left: 62%;
  width: 24px;
  height: 24px;
  border: 1px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  animation: pinFloat 2.7s ease-in-out infinite;
}

.location-card__pin span {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

@keyframes pinFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.location-card__content {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 5vw, 78px);
}

.location-card__content > p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.location-card h3 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.location-card address {
  margin: 22px 0 34px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.75;
}

.contact-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(30px, 5vw, 76px);
  border-left: 1px solid var(--line-light);
}

.contact-list a {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-light);
}

.contact-list a:first-child {
  border-top: 1px solid var(--line-light);
}

.contact-list span {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  font-weight: 400;
}

.contact-list b {
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.4s var(--ease);
}

.contact-list a:hover b {
  transform: translate(5px, -5px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 5vw;
  align-items: end;
  padding: 68px 0 34px;
}

.site-footer__mark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__mark > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
}

.site-footer__mark p {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer__disclaimer {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 0.66rem;
}

.site-footer__legal a {
  border-bottom: 1px solid currentColor;
}

.floating-whatsapp {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  display: flex;
  height: 48px;
  align-items: center;
  gap: 12px;
  padding: 5px 15px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.78);
  color: #fff;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.floating-whatsapp span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #050607;
  font-size: 0.65rem;
  font-weight: 700;
}

.floating-whatsapp em {
  font-size: 0.63rem;
  font-style: normal;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Reveal system — el contenido queda visible si JavaScript no inicia. */
.reveal,
.reveal-up,
.reveal-row,
.reveal-image,
.reveal-card,
.split-reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  transition: opacity 0.9s ease, transform 1.05s var(--ease), clip-path 1.15s var(--ease);
}

.motion-ready .reveal:not(.is-visible),
.motion-ready .reveal-up:not(.is-visible),
.motion-ready .reveal-row:not(.is-visible),
.motion-ready .reveal-card:not(.is-visible),
.motion-ready .split-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(44px);
}

.motion-ready .reveal-image:not(.is-visible) {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
}

.motion-ready .reveal-card:not(.is-visible) {
  transform: translateY(58px);
}

.is-visible.reveal,
.is-visible.reveal-up,
.is-visible.reveal-row,
.is-visible.reveal-image,
.is-visible.reveal-card,
.is-visible.split-reveal {
  opacity: 1;
  transform: translateY(0) rotate(0);
  clip-path: inset(0 0 0 0);
}

.reveal-row:nth-child(2) { transition-delay: 0.05s; }
.reveal-row:nth-child(3) { transition-delay: 0.1s; }
.reveal-row:nth-child(4) { transition-delay: 0.15s; }
.reveal-row:nth-child(5) { transition-delay: 0.2s; }
.reveal-row:nth-child(6) { transition-delay: 0.25s; }
.reveal-row:nth-child(7) { transition-delay: 0.3s; }

/* Focus */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

/* Tablet */
@media (max-width: 1100px) {
  :root { --page: min(90vw, 1480px); }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    z-index: -1;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 14vh 7vw;
    background: var(--ink);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4%);
    transition: visibility 0s linear 0.7s, opacity 0.5s ease, transform 0.7s var(--ease);
  }

  .main-nav::after {
    content: "Ponce Lips® · Santo Domingo";
    position: absolute;
    left: 7vw;
    bottom: 6vh;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.63rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .menu-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .nav-link {
    height: 1.05em;
    font-family: var(--serif);
    font-size: clamp(3.3rem, 10vw, 6.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-transform: none;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    justify-self: end;
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .menu-toggle span {
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform 0.45s var(--ease);
  }

  .menu-open .menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .header-cta {
    display: none;
  }

  .hero__lower {
    grid-template-columns: 1fr 1fr;
  }

  .hero__signature {
    top: 55%;
    left: 34%;
    width: min(53vw, 650px);
  }

  .service-card,
  .service-card--wide {
    grid-column: span 6;
  }

  .case-feature__image {
    min-height: 610px;
  }

  .case-feature__content {
    padding: 42px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__disclaimer {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Mobile */
@media (max-width: 760px) {
  :root {
    --page: min(88vw, 1480px);
    --header-h: 72px;
  }

  .site-header {
    padding-inline: 6vw;
  }

  .brand__name {
    display: block;
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.18em;
  }

  .hero {
    min-height: 820px;
  }

  .hero__fallback {
    object-position: 67% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(1, 2, 2, 0.85) 0%, rgba(1, 2, 2, 0.25) 72%, rgba(1, 2, 2, 0.4) 100%),
      linear-gradient(180deg, rgba(2, 3, 3, 0.58) 0%, transparent 27%, rgba(1, 2, 2, 0.3) 55%, rgba(1, 2, 2, 0.96) 100%);
  }

  .hero__content {
    min-height: 820px;
    padding-top: 120px;
  }

  .hero__eyebrow {
    margin-bottom: 11vh;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .hero__title {
    font-size: clamp(3.55rem, 16.2vw, 6.3rem);
    line-height: 0.84;
    letter-spacing: 0.025em;
    white-space: normal;
  }

  .hero__title-line--offset {
    align-self: flex-start;
    margin-top: 0.12em;
    margin-left: 0;
  }

  .hero__signature {
    top: 49%;
    left: 5vw;
    width: 88vw;
    opacity: 0.4;
    transform: rotate(-3deg);
  }

  .hero__lens {
    --fx-radius: clamp(145px, 46vw, 230px);
    opacity: 0.72;
    background-position: 67% center;
    transform: translate3d(var(--fx-shift-x), var(--fx-shift-y), 0) scale(1.11);
  }

  .hero__lower {
    right: 0;
    bottom: 55px;
    left: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__statement {
    width: 82%;
    font-size: 1rem;
  }

  .hero__actions {
    align-items: flex-start;
  }

  .button {
    min-height: 54px;
    padding-inline: 20px;
  }

  .hero__technique,
  .hero__index,
  .hero__scroll {
    display: none;
  }

  .services,
  .about,
  .contact {
    padding-top: 96px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 76px;
  }

  .section-kicker {
    padding-top: 0;
  }

  .display-title {
    font-size: clamp(2.8rem, 13vw, 5.2rem);
    line-height: 0.95;
  }

  .lede {
    margin-top: 30px;
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 76px;
  }

  .service-card,
  .service-card--wide {
    grid-column: 1;
    min-height: 590px;
    margin-top: 0 !important;
  }

  .service-card__top {
    padding: 20px;
  }

  .service-card__body {
    padding: 25px 20px;
  }

  .editorial-note {
    flex-direction: column;
    margin: 12px 0 90px;
  }

  .case-feature {
    grid-template-columns: 1fr;
  }

  .case-feature__image {
    min-height: auto;
    aspect-ratio: 1 / 1;
  }

  .case-feature__content {
    padding: 42px 26px;
  }

  .case-feature__content h3 {
    margin-top: 38px;
  }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 96px 0;
  }

  .manifesto__quote {
    font-size: clamp(2.35rem, 10vw, 4.4rem);
  }

  .video-feature::before {
    box-shadow: inset 0 0 0 7px rgba(5, 6, 7, 0.48);
  }

  .video-feature__meta {
    top: 15px;
    right: 16px;
    left: 16px;
  }

  .credentials__header {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .credentials__list li {
    grid-template-columns: 38px 1fr;
    gap: 11px 15px;
    padding: 24px 0;
  }

  .credentials__list small {
    grid-column: 2;
  }

  .contact {
    padding-bottom: 0;
  }

  .contact__headline {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 54px 0 90px;
  }

  .contact__circle {
    width: 150px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .location-card {
    min-height: 530px;
  }

  .location-card__content {
    padding: 34px 26px;
  }

  .contact-list {
    padding: 50px 0;
    border-left: 0;
  }

  .contact-list a {
    grid-template-columns: 1fr auto;
    gap: 9px 18px;
    padding: 27px 5px;
  }

  .contact-list strong {
    grid-column: 1;
    grid-row: 2;
  }

  .contact-list b {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 100px;
  }

  .site-footer__disclaimer {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer__legal {
    align-items: flex-start;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 390px) {
  .hero__title { font-size: 3.45rem; }
  .service-card { min-height: 530px; }
  .contact-list strong { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .hero__canvas,
  .hero__lens,
  .cursor { display: none !important; }
  .reveal,
  .reveal-up,
  .reveal-row,
  .reveal-image,
  .reveal-card,
  .split-reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
