:root {
  --editorial-bg: #0d0b0c;
  --editorial-panel: #151215;
  --editorial-panel-soft: #1b171a;
  --editorial-ink: #f1e8e1;
  --editorial-muted: #a79ca0;
  --editorial-line: rgba(241, 232, 225, .14);
  --editorial-line-strong: rgba(241, 232, 225, .28);
  --editorial-accent: #9e3e54;
  --editorial-accent-light: #d2afa9;
  --editorial-green: #8fb7a2;
  --editorial-width: 1220px;
}

* {
  box-sizing: border-box;
}

body {
  --fondo: var(--editorial-bg);
  --tinta: var(--editorial-ink);
  --tinta2: var(--editorial-muted);
  margin: 0;
  background: var(--editorial-bg);
  color: var(--editorial-ink);
  transition: none;
}

html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}

body::selection {
  color: #100d0e;
  background: var(--editorial-accent-light);
}

.portfolio-shell {
  position: relative;
  overflow: hidden;
  color: var(--editorial-ink);
  background:
    radial-gradient(circle at 82% 15%, rgba(109, 39, 57, .11), transparent 28%),
    var(--editorial-bg);
}

.portfolio-shell::before {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--editorial-accent), var(--editorial-accent-light), transparent);
}

.skip-link {
  position: fixed;
  z-index: 150;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--editorial-bg);
  background: var(--editorial-ink);
  transform: translateY(-160%);
}

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

.editorial-nav {
  position: fixed;
  z-index: 80;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(calc(100% - 24px), 1080px);
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 8px 7px 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(12, 10, 11, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.nav-signature {
  flex: 0 0 auto;
  color: #f7efe8 !important;
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 auto;
}

.nav-links a,
.nav-contact {
  flex: 0 0 auto;
  padding: 9px 11px;
  border-radius: 999px;
  color: rgba(247, 239, 232, .78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
  transition: color .25s, background .25s;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-contact:hover,
.nav-contact:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.nav-tool {
  display: inline-flex;
  min-width: 54px;
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f7efe8;
  cursor: pointer;
  font: 700 11px/1 "Karla", sans-serif;
  letter-spacing: .06em;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color .25s, background .25s, border-color .25s;
}

.nav-tool:hover {
  border-color: var(--editorial-accent-light);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.nav-contact {
  border: 0;
  background: rgba(255, 255, 255, .08);
  color: #f7efe8;
}

.editorial-main {
  position: relative;
  isolation: isolate;
}

#sobre-mi,
#proyectos,
#cv,
.portfolio-shell > footer,
.portfolio-shell > sc-if {
  display: none !important;
}

.editorial-main::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .25;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 28%, #000 55%, transparent);
}

.editorial-section {
  position: relative;
  padding: 118px 24px;
  border-top: 1px solid var(--editorial-line);
}

.section-inner {
  width: min(100%, var(--editorial-width));
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--editorial-accent-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 38px;
  height: 1px;
  content: "";
  background: currentColor;
}

.display-title {
  max-width: 860px;
  margin: 0;
  color: var(--editorial-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7.2vw, 102px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .88;
}

.display-title em {
  color: var(--editorial-accent-light);
  font-weight: 500;
}

.section-title {
  max-width: 760px;
  margin: 0;
  color: var(--editorial-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 5.5vw, 74px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .96;
}

.section-copy {
  max-width: 610px;
  margin: 0;
  color: var(--editorial-muted);
  font-size: 16px;
  line-height: 1.75;
}

.intro-section {
  min-height: 92vh;
  padding-top: 142px;
  background:
    linear-gradient(110deg, rgba(158, 62, 84, .08), transparent 42%),
    var(--editorial-bg) !important;
}

.intro-meta {
  display: grid;
  align-items: end;
  margin-top: 64px;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  gap: 72px;
}

.intro-copy {
  max-width: 760px;
  margin: 0;
  color: #c6bbbd;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.32;
}

.intro-copy strong {
  color: var(--editorial-ink);
  font-weight: 600;
}

.availability {
  padding: 22px 0 0 24px;
  border-top: 1px solid var(--editorial-line-strong);
  border-left: 1px solid var(--editorial-line-strong);
}

.availability p {
  margin: 0 0 8px;
  color: var(--editorial-muted);
  font-size: 13px;
  line-height: 1.6;
}

.availability strong {
  display: block;
  margin-bottom: 5px;
  color: var(--editorial-ink);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  margin-top: 100px;
  border-top: 1px solid var(--editorial-line);
  border-bottom: 1px solid var(--editorial-line);
  grid-template-columns: repeat(3, 1fr);
}

.metric {
  min-height: 150px;
  padding: 28px 26px;
  border-right: 1px solid var(--editorial-line);
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  display: block;
  color: #a8ff60;
  font-family: "Karla", sans-serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}

.metric-label {
  display: block;
  max-width: 150px;
  margin-top: 14px;
  color: var(--editorial-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tech-loop-band {
  position: relative;
  overflow: hidden;
  padding: 28px 0 34px;
  border-top: 1px solid var(--editorial-line);
  border-bottom: 1px solid var(--editorial-line);
  background:
    linear-gradient(180deg, rgba(158, 62, 84, .06), transparent 70%),
    #100d0f;
}

.tech-loop-kicker {
  margin: 0 0 18px;
  color: var(--editorial-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
}

.tech-loop {
  position: relative;
  overflow: hidden;
}

.tech-loop::before,
.tech-loop::after {
  position: absolute;
  z-index: 2;
  top: 0;
  width: min(140px, 18vw);
  height: 100%;
  pointer-events: none;
  content: "";
}

.tech-loop::before {
  left: 0;
  background: linear-gradient(90deg, #100d0f, transparent);
}

.tech-loop::after {
  right: 0;
  background: linear-gradient(270deg, #100d0f, transparent);
}

.tech-loop__track {
  display: flex;
  width: max-content;
  animation: tech-loop-scroll 38s linear infinite;
}

.tech-loop:hover .tech-loop__track {
  animation-play-state: paused;
}

.tech-loop__seq {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-loop__item {
  display: flex;
  min-width: 148px;
  padding: 0 28px;
  color: #c6bbbd;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tech-loop__item img {
  display: block;
  width: 36px;
  height: 36px;
  opacity: .82;
  transition: transform .35s ease, opacity .35s ease, filter .35s ease;
}

.tech-loop__item span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tech-loop__item:hover img {
  opacity: 1;
  filter: brightness(1.25);
  transform: scale(1.12);
}

@keyframes tech-loop-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-loop__track {
    animation: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .tech-loop__seq:last-child {
    display: none;
  }
}

.expertise-header,
.work-header,
.gallery-header {
  display: grid;
  align-items: end;
  margin-bottom: 68px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 70px;
}

.expertise-grid {
  display: grid;
  border-top: 1px solid var(--editorial-line);
  border-left: 1px solid var(--editorial-line);
  grid-template-columns: repeat(3, 1fr);
}

.expertise-card {
  position: relative;
  min-height: 360px;
  padding: 38px;
  overflow: hidden;
  border-right: 1px solid var(--editorial-line);
  border-bottom: 1px solid var(--editorial-line);
  background: rgba(255, 255, 255, .012);
  transition: background .35s, transform .35s;
}

.expertise-card:hover {
  z-index: 1;
  background: var(--editorial-panel-soft);
  transform: translateY(-4px);
}

.card-number {
  display: block;
  margin-bottom: 78px;
  color: var(--editorial-accent-light);
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-style: italic;
}

.expertise-card h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.expertise-card p {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 14px;
  line-height: 1.7;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.expertise-tags span,
.project-tags span {
  padding: 6px 10px;
  border: 1px solid var(--editorial-line);
  color: #c7bdc0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.systems-section {
  background: #110e10 !important;
}

.system-block {
  display: grid;
  align-items: center;
  padding: 54px 0;
  border-top: 1px solid var(--editorial-line);
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 76px;
}

.system-block:last-child {
  border-bottom: 1px solid var(--editorial-line);
}

.system-block--reverse .system-visual {
  order: -1;
}

.system-copy h3 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 500;
  line-height: .98;
}

.system-copy p {
  margin: 0 0 24px;
  color: var(--editorial-muted);
  font-size: 15px;
  line-height: 1.75;
}

.system-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.system-list li {
  display: flex;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--editorial-line);
  color: #cfc4c6;
  font-size: 13px;
}

.system-list li::before {
  color: var(--editorial-accent-light);
  content: "0" counter(item);
  counter-increment: item;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
}

.system-visual {
  position: relative;
}

.system-visual img {
  display: block;
  width: 100%;
  border: 1px solid var(--editorial-line);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .32);
}

.products-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(143, 51, 71, .14), transparent 30%),
    #0c0a0b !important;
}

.product-story {
  display: grid;
  min-height: 760px;
  align-items: center;
  padding: 74px 0;
  border-top: 1px solid var(--editorial-line);
  grid-template-columns: minmax(0, .78fr) minmax(360px, 1.22fr);
  gap: 80px;
}

.product-story:last-child {
  border-bottom: 1px solid var(--editorial-line);
}

.product-story--reverse .product-copy {
  order: 2;
}

.product-story--reverse .product-media {
  order: 1;
}

.product-copy h3 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .9;
}

.product-copy > p {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--editorial-muted);
  font-size: 16px;
  line-height: 1.75;
}

.product-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--editorial-accent-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.product-facts {
  display: grid;
  margin: 34px 0 0;
  border-top: 1px solid var(--editorial-line);
  grid-template-columns: repeat(2, 1fr);
}

.product-fact {
  padding: 18px 12px 0 0;
}

.product-fact strong,
.product-fact span {
  display: block;
}

.product-fact strong {
  color: var(--editorial-ink);
  font-size: 12px;
}

.product-fact span {
  margin-top: 4px;
  color: var(--editorial-muted);
  font-size: 12px;
}

.product-media {
  position: relative;
  display: grid;
  min-height: 660px;
  place-items: center;
}

.product-media::before {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid rgba(210, 175, 169, .16);
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 90px rgba(158, 62, 84, .08);
}

.product-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 520px);
  max-height: 700px;
  object-fit: contain;
  filter: drop-shadow(0 38px 55px rgba(0, 0, 0, .52));
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.web-case {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  background: var(--editorial-panel);
  grid-column: span 6;
}

.work-grid--three .web-case {
  min-height: 570px;
  grid-column: span 4;
}

.work-grid--three .web-case__image {
  height: 310px;
}

.web-case__image {
  position: relative;
  height: 390px;
  overflow: hidden;
  background: #ece9e3;
}

.web-case__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .8s cubic-bezier(.2, .8, .3, 1);
}

.web-case:hover .web-case__image img {
  transform: scale(1.035);
}

.web-case__body {
  padding: 28px 30px 32px;
}

.web-case__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--editorial-accent-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.web-case h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.web-case p {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 14px;
  line-height: 1.65;
}

.web-case a {
  position: absolute;
  inset: 0;
  color: transparent;
}

.secondary-projects {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--editorial-line);
  border-left: 1px solid var(--editorial-line);
  grid-template-columns: repeat(3, 1fr);
}

.secondary-project {
  min-height: 270px;
  padding: 30px;
  border-right: 1px solid var(--editorial-line);
  border-bottom: 1px solid var(--editorial-line);
}

.secondary-project h3 {
  margin: 36px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 500;
}

.secondary-project p {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 13px;
  line-height: 1.65;
}

.secondary-project .project-tags {
  margin-top: 22px;
}

.project-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--editorial-accent-light) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-section {
  display: block !important;
  background: #100d0f !important;
}

.compdes-feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.gallery-figure {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  background: var(--editorial-panel);
  grid-column: span 4;
}

.gallery-figure:first-child {
  grid-column: span 7;
  grid-row: span 2;
}

.gallery-figure:nth-child(2),
.gallery-figure:nth-child(3) {
  min-height: 315px;
  grid-column: span 5;
}

.gallery-figure img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: filter .45s, transform .7s;
}

.gallery-figure:first-child img {
  object-position: center;
}

.gallery-figure:nth-child(2) img {
  object-position: center 34%;
}

.gallery-figure:hover img {
  filter: saturate(.78);
  transform: scale(1.025);
}

.gallery-figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 55px 22px 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  background: linear-gradient(transparent, rgba(7, 6, 7, .9));
}

.gallery-figure figcaption span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.archive-header {
  display: grid;
  align-items: end;
  margin: 110px 0 36px;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .45fr);
  gap: 30px 70px;
}

.archive-header .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.archive-header h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: .95;
}

.archive-header > p:last-child {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 14px;
  line-height: 1.7;
}

.gallery-archive {
  columns: 3 280px;
  column-gap: 14px;
}

.archive-figure {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  background: var(--editorial-panel);
  break-inside: avoid;
}

.archive-figure a {
  display: block;
  overflow: hidden;
}

.archive-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(.78);
  transition: filter .4s, transform .65s;
}

.archive-figure:hover img {
  filter: saturate(1);
  transform: scale(1.025);
}

.archive-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  color: #d6cbcd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.archive-figure figcaption span {
  color: var(--editorial-accent-light);
}

.archive-figure figcaption small {
  color: var(--editorial-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(244, 161, 180, .22);
  border-radius: 2px;
  background: #100d0f;
  color: var(--editorial-ink);
  box-shadow: 0 40px 110px rgba(0, 0, 0, .72);
}

.gallery-lightbox[open] {
  animation: lightbox-in .24s ease-out both;
}

.gallery-lightbox::backdrop {
  background: rgba(5, 4, 5, .86);
  backdrop-filter: blur(12px);
}

.lightbox-shell {
  display: grid;
  min-height: min(720px, calc(100dvh - 42px));
  grid-template-columns: minmax(0, 1fr) 330px;
}

.lightbox-media {
  display: grid;
  min-width: 0;
  padding: 28px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(158, 62, 84, .12), transparent 58%),
    #090708;
}

.lightbox-media img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 98px);
  object-fit: contain;
  box-shadow: 0 18px 58px rgba(0, 0, 0, .38);
}

.lightbox-copy {
  display: flex;
  min-width: 0;
  padding: 82px 34px 32px;
  border-left: 1px solid var(--editorial-line);
  flex-direction: column;
}

.lightbox-count {
  margin: 0 0 24px;
  color: var(--editorial-accent-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.lightbox-copy h2 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: .96;
}

.lightbox-copy > p:not(.lightbox-count) {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 14px;
  line-height: 1.7;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--editorial-line);
  border-radius: 50%;
  background: rgba(16, 13, 15, .86);
  color: var(--editorial-ink);
  cursor: pointer;
  font: 300 28px/1 sans-serif;
  place-items: center;
  transition: border-color .2s, transform .2s;
}

.lightbox-close:hover {
  border-color: var(--editorial-accent);
  transform: rotate(6deg);
}

.lightbox-controls {
  display: flex;
  margin-top: auto;
  padding-top: 34px;
  border-top: 1px solid var(--editorial-line);
  justify-content: space-between;
  gap: 12px;
}

.lightbox-controls button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d9ced0;
  cursor: pointer;
  font: 700 10px/1.2 "Manrope", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
}

.lightbox-controls button:hover {
  color: var(--editorial-accent-light);
}

.lightbox-close:focus-visible,
.lightbox-controls button:focus-visible {
  outline: 2px solid var(--editorial-accent-light);
  outline-offset: 4px;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.credentials {
  display: grid;
  margin-top: 100px;
  border-top: 1px solid var(--editorial-line);
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
}

.credentials-heading {
  padding: 48px 48px 48px 0;
  border-right: 1px solid var(--editorial-line);
}

.credentials-heading h2 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: .96;
}

.credentials-heading p {
  color: var(--editorial-muted);
  font-size: 14px;
  line-height: 1.7;
}

.credentials-content {
  padding: 48px 0 48px 48px;
}

.credential-row {
  display: grid;
  padding: 22px 0;
  border-bottom: 1px solid var(--editorial-line);
  grid-template-columns: 150px 1fr;
  gap: 28px;
}

.credential-row:first-child {
  border-top: 1px solid var(--editorial-line);
}

.credential-row strong {
  color: var(--editorial-accent-light);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.credential-row span {
  color: #d1c7c8;
  font-size: 14px;
  line-height: 1.55;
}

.cv-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 13px 18px;
  border: 1px solid var(--editorial-line-strong);
  color: var(--editorial-ink) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: border-color .25s, background .25s;
}

.cv-link:hover,
.primary-link:hover {
  border-color: var(--editorial-accent-light);
  background: rgba(210, 175, 169, .08);
}

.contact-section {
  padding-top: 104px;
  padding-bottom: 104px;
  background:
    linear-gradient(115deg, rgba(143, 51, 71, .3), transparent 44%),
    #171114 !important;
}

.contact-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 80px;
}

.contact-title {
  max-width: 780px;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .82;
}

.contact-title em {
  color: var(--editorial-accent-light);
}

.contact-details {
  padding: 30px 0 0 30px;
  border-top: 1px solid var(--editorial-line-strong);
  border-left: 1px solid var(--editorial-line-strong);
}

.contact-details p {
  margin: 0 0 24px;
  color: #b9adb0;
  font-size: 14px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--editorial-line);
  color: var(--editorial-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.editorial-footer {
  padding: 34px 24px;
  border-top: 1px solid var(--editorial-line);
  background: #090708;
}

.footer-inner {
  display: flex;
  width: min(100%, var(--editorial-width));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  color: #756d70;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-inner a {
  color: #a79ca0;
}

@media (max-width: 900px) {
  .editorial-nav {
    width: min(calc(100% - 20px), 100%);
    padding: 6px 7px 6px 14px;
    gap: 8px;
  }

  .nav-links a,
  .nav-contact {
    padding: 8px 8px;
    font-size: 10px;
    letter-spacing: .05em;
  }

  .editorial-section {
    padding: 90px 20px;
  }

  .intro-meta,
  .expertise-header,
  .work-header,
  .gallery-header,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-archive {
    columns: 2;
  }

  .expertise-grid,
  .secondary-projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-block,
  .product-story {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .system-block--reverse .system-visual,
  .product-story--reverse .product-copy,
  .product-story--reverse .product-media {
    order: initial;
  }

  .product-media {
    min-height: 570px;
  }

  .web-case {
    grid-column: span 12;
  }

  .work-grid--three .web-case {
    grid-column: span 12;
  }

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

  .credentials-heading {
    padding-right: 0;
    border-right: 0;
  }

  .credentials-content {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .editorial-nav {
    top: 10px !important;
    right: auto !important;
    left: 12px !important;
    width: calc(100% - 24px) !important;
    min-height: 48px;
    padding: 6px 6px 6px 12px !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    background: rgba(12, 10, 11, .18) !important;
    transform: none !important;
  }

  .editorial-nav > .nav-signature {
    display: inline-flex !important;
    font-size: 18px;
  }

  .nav-links {
    display: none;
  }

  .nav-contact,
  .nav-tool {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 10px;
  }

  #inicio {
    height: 100svh !important;
    min-height: auto !important;
  }

  #inicio h1 {
    font-size: clamp(58px, 19vw, 92px) !important;
  }

  .editorial-section {
    padding: 76px 16px !important;
    background-color: var(--editorial-bg) !important;
  }

  .intro-section {
    min-height: auto;
    padding-top: 104px !important;
  }

  .display-title {
    font-size: clamp(44px, 14vw, 64px);
  }

  .intro-meta {
    margin-top: 44px;
  }

  .intro-copy {
    font-size: 22px;
  }

  .tech-loop-band {
    padding: 22px 0 26px;
  }

  .tech-loop::before,
  .tech-loop::after {
    width: 48px;
  }

  .tech-loop__item {
    min-width: 122px;
    padding: 0 18px;
  }

  .metrics {
    margin-top: 64px;
  }

  .metric {
    min-height: 128px;
    padding: 22px 16px;
  }

  .metric-value {
    font-size: 42px;
  }

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

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--editorial-line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .expertise-grid,
  .secondary-projects {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: 290px;
    padding: 28px 24px;
  }

  .card-number {
    margin-bottom: 56px;
  }

  .system-block {
    padding: 42px 0;
  }

  .product-story {
    padding: 52px 0;
  }

  .product-story--reverse .product-copy,
  .product-story--reverse .product-media {
    order: initial;
  }

  .product-media {
    min-height: 460px;
  }

  .product-media img {
    max-height: 520px;
  }

  .web-case {
    min-height: 540px;
  }

  .web-case__image {
    height: 315px;
  }

  .compdes-feature {
    display: block;
  }

  .archive-header {
    grid-template-columns: 1fr;
    margin-top: 78px;
  }

  .archive-header .eyebrow {
    grid-column: auto;
  }

  .gallery-archive {
    columns: 1;
  }

  .gallery-lightbox {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }

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

  .lightbox-media {
    min-height: 52dvh;
    padding: 18px;
  }

  .lightbox-media img {
    max-height: 52dvh;
  }

  .lightbox-copy {
    min-height: 230px;
    padding: 28px 22px 22px;
    border-top: 1px solid var(--editorial-line);
    border-left: 0;
  }

  .lightbox-copy h2 {
    padding-right: 44px;
    font-size: 38px;
  }

  .lightbox-count {
    margin-bottom: 14px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-controls {
    margin-top: 28px;
  }

  .gallery-figure,
  .gallery-figure:first-child,
  .gallery-figure:nth-child(2),
  .gallery-figure:nth-child(3) {
    min-height: 360px;
    margin-bottom: 14px;
  }

  .credential-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-title {
    font-size: clamp(54px, 17vw, 78px);
  }

  .contact-details {
    padding-left: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
