/* ============ SOLIDSTONE — minimal editorial ============ */
:root {
  --bg: #F4F1EB;
  --bg-2: #EBE7DE;
  --ink: #141414;
  --ink-2: #2A2A2A;
  --muted: #6E6A62;
  --line: #2A2A2A1A;
  --line-strong: #2A2A2A33;
  --stone: #8A8478;
  --paper: #FAF8F3;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --pad-y: clamp(80px, 12vh, 160px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: #14141422; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-section em {
  font-style: italic;
  font-weight: 300;
  color: var(--stone);
}
.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink-2);
}

/* ---------- Top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, padding .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  padding: 12px var(--pad);
}
.nav-logo {
  display: flex; align-items: center;
  height: 40px;
}
.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity .2s ease;
}
.nav.scrolled .nav-logo { height: 32px; }
.nav-logo:hover img { opacity: .75; }
.nav-links {
  display: flex; gap: 36px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav-links a {
  color: var(--ink-2);
  transition: color .2s ease;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 24px; }

.lang-switch {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang-switch button.lang-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  transition: background .2s ease;
}
.lang-switch button.lang-trigger:hover { background: #14141408; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  min-width: 160px;
  padding: 4px 0;
  box-shadow: 0 8px 28px #14141414;
}
.lang-menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lang-menu button:hover { background: #14141408; }
.lang-menu button.active { color: var(--ink); font-weight: 600; }
.lang-menu button.active::before { content: "— "; }

.mobile-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  gap: 60px;
  position: relative;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.hero-mark {
  display: flex;
  align-items: center;
}
.hero-mark img {
  width: clamp(180px, 18vw, 260px);
  height: auto;
  display: block;
}

.hero-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}
.hero-meta strong { color: var(--ink); font-weight: 500; }

.hero-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
}
.hero-headline .row { display: block; }
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--stone);
}
.hero-headline .indent { padding-left: 12vw; }

.hero-main {
  display: contents;
}
.hero-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: clamp(220px, 24vw, 340px);
  justify-self: end;
}
.hero-figure-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
}
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-figure .cap-num { color: var(--ink); font-weight: 500; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero-bottom .hero-lead {
  max-width: 52ch;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-bottom .lead {
  max-width: none;
  font-size: clamp(18px, 1.7vw, 22px);
}
.hero-bottom .lead.lead-soft { color: var(--muted); }
.hero-bottom .lead-close {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.hero-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: clamp(300px, 32vw, 460px);
  justify-self: end;
}
.hero-figure-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
}
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-figure .cap-num { color: var(--ink); font-weight: 500; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ink) 60%);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { transform: scaleY(0.5); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Section shell ---------- */
section.section {
  padding: var(--pad-y) var(--pad);
  border-top: 1px solid var(--line);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 80px;
}
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.section-head .h-section { grid-column: 1; }
.section-head.contact-head {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 22px;
}
.section-head.contact-head .h-section { grid-column: auto; }
.section-head.contact-head .meta {
  text-align: center;
  max-width: 34ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  color: var(--ink-2);
}
.section-head .meta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  max-width: 26ch;
}

/* ---------- Productos ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-card {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  transition: background .35s ease;
  cursor: pointer;
  min-height: 460px;
}
.product-card:hover { background: var(--paper); }
.product-card .ph {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      #14141408 14px 15px
    ),
    var(--bg-2);
  display: flex; align-items: center; justify-content: center;
}
.product-card .ph.ph-img {
  background-image: none; /* slides handle it */
  position: relative;
}
.ph-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.ph-slide.is-on { opacity: 1; }
.product-card:hover .ph-slide.is-on { transform: scale(1.015); }

.ph-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s ease, background .25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ph-nav.prev { left: 12px; }
.ph-nav.next { right: 12px; }
.ph-nav:hover { background: var(--bg); }
.product-card:hover .ph-nav { opacity: 1; }

.ph-dots {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  padding: 6px 10px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}
.ph-dot {
  width: 5px; height: 5px;
  background: var(--ink);
  opacity: 0.25;
  transition: opacity .2s ease, transform .2s ease;
}
.ph-dot.is-on { opacity: 1; transform: scaleX(2.4); }

.ph-counter {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding: 4px 8px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border: 1px solid var(--line);
}

.product-card .ph-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}

/* "Ver galería" cue */
.card-cue {
  position: absolute;
  top: 24px; left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
  z-index: 3;
}
.card-cue-count { color: var(--muted); }
.product-card:hover .card-cue { opacity: 1; transform: none; }

/* ============ Lightbox ============ */
.lb {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  animation: lb-in .35s cubic-bezier(.2,.7,.2,1);
  /* always dark, whatever the site palette: inner rules use --bg as light text */
  --bg: #F4F1EB;
  --ink: #0B0B0B;
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lb-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--ink) 96%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lb-shell {
  position: relative;
  z-index: 1;
  width: min(100vw, 1600px);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 14px clamp(20px, 4vw, 56px) 16px;
  gap: 14px;
  color: var(--bg);
}
.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lb-titles { display: flex; flex-direction: column; gap: 4px; }
.lb-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}
.lb-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1;
}
.lb-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lb-counter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.lb-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid color-mix(in oklab, var(--bg) 40%, transparent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.lb-close:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.lb-zoom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid color-mix(in oklab, var(--bg) 40%, transparent);
  color: var(--bg);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.lb-zoom:hover, .lb-zoom.is-on {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.lb-stage {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.lb-slide {
  position: absolute; inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  opacity: 0;
  transition: opacity .5s cubic-bezier(.2,.7,.2,1), background-size .35s cubic-bezier(.2,.7,.2,1);
}
.lb-watermark {
  position: absolute;
  right: clamp(12px, 2vw, 26px);
  bottom: clamp(10px, 1.8vw, 22px);
  width: clamp(90px, 11%, 150px);
  height: auto;
  opacity: .8;
  filter: brightness(0) invert(1) drop-shadow(0 1px 5px rgba(0,0,0,.55));
  pointer-events: none;
  z-index: 3;
}
.lb-slide.is-on { opacity: 1; }
.lb-slide.is-zoom { cursor: grab; }
.lb-slide.is-grab { cursor: grabbing; }
.lb-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  font-family: var(--serif);
  font-size: 22px;
  background: color-mix(in oklab, var(--ink) 50%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  transition: background .25s ease, color .25s ease;
}
.lb-arrow:hover { background: var(--bg); color: var(--ink); }
.lb-arrow.prev { left: 16px; }
.lb-arrow.next { right: 16px; }

.lb-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--bg) 40%, transparent) transparent;
}
.lb-thumb {
  flex: 0 0 80px;
  height: 54px;
  background-size: cover;
  background-position: center;
  border: 1px solid color-mix(in oklab, var(--bg) 25%, transparent);
  opacity: 0.55;
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}
.lb-thumb:hover { opacity: 0.85; }
.lb-thumb.is-on { opacity: 1; border-color: var(--bg); transform: translateY(-2px); }

@media (max-width: 720px) {
  .lb-shell { padding: 16px; gap: 12px; }
  .lb-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lb-arrow { width: 40px; height: 40px; }
  .lb-thumb { flex: 0 0 64px; height: 48px; }
}
.product-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.product-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}
.product-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.product-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 32ch;
  line-height: 1.5;
}
.product-card .arrow {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.product-card:hover .arrow { transform: translateX(8px); }

/* ---------- Partners ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partner {
  background: var(--bg);
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  min-height: 240px;
}
.partner-logo {
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.partner-logo img {
  max-height: 100%;
  max-width: 88%;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: opacity .25s ease;
  opacity: 0.92;
}
.partner:hover .partner-logo img { opacity: 1; }
.partner-logo-fallback {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
}
.partner-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--ink);
}
.partner-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Quiénes somos ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-text p {
  font-family: var(--serif);
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 22px;
  font-weight: 400;
}
.about-text p + p { color: var(--muted); }
.about-text p.closer {
  color: var(--ink);
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 8px;
}
.about-portrait-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
  justify-content: center;
}
.about-portrait-img {
  width: 100%;
  height: auto;
  display: block;
}
.about-portrait-cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 2px;
}
.about-portrait-cap .name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.about-portrait-cap .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.designer-title {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  flex-wrap: wrap;
}
.designer-title-logo {
  height: clamp(48px, 5vw, 78px);
  width: auto;
  display: block;
}
.about-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.2) contrast(0.95);
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-portrait-wrap { max-width: 420px; }
}
.about-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  font-weight: 300;
}
.stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.about-portrait-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 100px;
  max-width: 220px;
}
.about-portrait {
  aspect-ratio: 3 / 4;
  background:
    var(--bg-2);
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  position: relative;
  filter: grayscale(1) contrast(1.05);
}
.about-portrait-cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.about-portrait-cap .name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
  font-weight: 400;
}
.about-portrait-cap .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-portrait .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 6px 10px;
  border: 1px solid var(--line);
}
.about-portrait .corner {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ---------- Proceso productivo ---------- */
.process {
  margin-top: 120px;
}
.process-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.process-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1;
}
.process-intro {
  margin: 0 0 64px;
  max-width: 58ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-2);
}
.process-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.process-stage {
  background: var(--bg);
  padding: 38px 30px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.process-stage-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.process-stage-desc {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process-step {
  background: var(--bg);
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 340px;
}
.process-step .step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
/* ============ Process reel ============ */
.reel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
}
.reel-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.reel-frame {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 6s linear;
  transform: scale(1);
}
.reel-frame.is-on {
  opacity: 1;
  transform: scale(1.04);
}
.reel-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--ink) 80%, transparent) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}
.reel-caption {
  position: absolute;
  left: clamp(20px, 3vw, 48px);
  bottom: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 48px);
  z-index: 2;
  color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 60ch;
}
.reel-caption-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
}
.reel-caption-name {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.reel-caption-desc {
  font-size: 14px;
  line-height: 1.5;
  max-width: 52ch;
  color: color-mix(in oklab, var(--bg) 85%, transparent);
}

.reel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.reel-step {
  background: var(--bg);
  text-align: left;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border: 0;
  color: var(--muted);
  transition: color .3s ease, background .3s ease;
  position: relative;
}
.reel-step:hover { color: var(--ink-2); }
.reel-step.is-on { color: var(--ink); }
.reel-step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.reel-step.is-on .reel-step-num { color: var(--ink); }
.reel-step-name {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.1;
  font-weight: 400;
}
.reel-step-bar {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--line);
  position: relative;
  margin-top: 6px;
  overflow: hidden;
}
.reel-step-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width .12s linear;
}

@media (max-width: 720px) {
  .reel-track { grid-template-columns: repeat(2, 1fr); }
  .reel-caption-name { font-size: 28px; }
  .reel-caption-desc { display: none; }
}
  flex: 1;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 12px,
      #14141408 12px 13px
    ),
    var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 160px;
  overflow: hidden;
}
.process-step .step-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1);
}
.process-step .step-img.is-on { opacity: 1; }
.process-step .step-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px;
  padding: 5px 8px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  z-index: 2;
}
.process-step .step-dot {
  width: 4px; height: 4px;
  background: var(--ink);
  opacity: 0.25;
  transition: opacity .2s ease, transform .2s ease;
}
.process-step .step-dot.is-on { opacity: 1; transform: scaleX(2.4); }
.process-step .step-glyph {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.process-step h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  line-height: 1.1;
}
.process-step p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.contact-info { margin-top: clamp(-150px, -9vw, -100px); }
.contact-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.contact-logo {
  height: 100px;
  width: auto;
  align-self: flex-start;
}
.contact-slogan {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.contact-info dl {
  margin: 0;
  display: grid;
  gap: 28px;
}
.contact-info dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-info dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
}
.contact-info dd a {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .2s ease;
}
.contact-info dd a:hover { border-color: var(--ink); }

.map-link {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}
.map-link:hover { background: var(--ink); color: var(--bg); }
.map-link .arr { font-family: var(--serif); font-size: 16px; }

/* ---------- Form ---------- */
form.contact-form {
  display: grid;
  gap: 28px;
}
.form-row { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.field {
  display: flex; flex-direction: column;
  position: relative;
}
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 14px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  outline: none;
  transition: border-color .25s ease;
  border-radius: 0;
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--ink); }
.field select option,
.field select optgroup {
  color: #141414;
  background: #FAF8F3;
}
.field.error input,
.field.error textarea,
.field.error select { border-bottom-color: #B23A3A; }
.field .err-msg {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B23A3A;
  margin-top: 6px;
  min-height: 14px;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.form-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 36ch;
}
.form-note.is-error {
  color: #B4452F;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn-submit:hover { background: transparent; color: var(--ink); }
.btn-submit:disabled { opacity: 0.55; cursor: progress; }
.btn-submit:disabled:hover { background: var(--ink); color: var(--bg); }
.btn-submit .arr { font-family: var(--serif); font-size: 16px; transition: transform .25s ease; }
.btn-submit:hover .arr { transform: translateX(4px); }

.form-success {
  border: 1px solid var(--ink);
  padding: 28px 32px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-success .title {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.form-success .text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.form-success button {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  align-self: flex-start;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- Footer ---------- */
footer.foot {
  padding: 64px var(--pad) 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
footer.foot .col strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.foot-logo { display: inline-block; margin-bottom: 18px; }
.foot-logo img { display: block; height: 46px; width: auto; transition: opacity .2s ease; }
.foot-logo:hover img { opacity: .7; }
footer.foot .bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}
.foot-sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.foot-sign-logo {
  height: 34px;
  width: auto;
  display: block;
}
.col-social { align-content: start; }
.foot-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.foot-linkedin svg { flex: none; }
.foot-linkedin:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Dark mode adjustments ---------- */
body.is-dark .nav-logo img,
body.is-dark .foot-logo img,
body.is-dark .foot-sign-logo,
body.is-dark .designer-title-logo,
body.is-dark .contact-logo,
body.is-dark .hero-mark img {
  filter: invert(1) brightness(1.05);
}
body.is-dark .partner-logo img {
  /* logos with white text on dark/colored brand bg: leave them.
     logos that were black on cream (porcelanosa, xtone, akemi): invert. */
}
body.is-dark .partner-logo img[src*="porcelanosa"],
body.is-dark .partner-logo img[src*="xtone"] {
  filter: invert(1) brightness(1.05);
}
body.is-dark .about-portrait { filter: grayscale(1) contrast(1) brightness(0.95); }

/* ============ Designer (embedded) ============ */
.designer-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.designer-embed {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  background: #BFBDB8;
  overflow: hidden;
}
.designer-iframe {
  display: block;
  width: 100%;
  height: clamp(720px, 82vh, 900px);
  border: 0;
}
.designer-fallback {
  margin-top: 18px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.designer-fallback a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color .25s ease, border-color .25s ease;
}
.designer-fallback a:hover { color: var(--ink); border-color: var(--ink); }
.designer-fallback .arr { font-family: var(--serif); }

.designer-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: end;
}
.designer-intro .lead {
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.3;
  color: var(--ink-2);
  margin: 0;
}
.designer-disclaimer {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  color: var(--ink);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.designer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-primary .arr, .btn-secondary .arr {
  font-family: var(--serif);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .designer-intro { grid-template-columns: 1fr; gap: 18px; }
  .designer-iframe { height: clamp(680px, 86vh, 860px); }
}
.reveal {
  opacity: 1;
}

/* While the theme variables are being swapped, kill transitions so
   var()-dependent properties recompute instantly instead of freezing. */
[data-theming] * { transition: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-figure { width: 60%; max-width: 280px; justify-self: end; }
  .product-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; }
  .contact-info { margin-top: 0; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-stages { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .meta { display: none; }
  .section-head.contact-head { grid-template-columns: 1fr; }
  .section-head.contact-head .meta { display: block; font-size: 22px; }
  footer.foot { grid-template-columns: 1fr 1fr; }
  .hero-mark img { width: 140px; }
}
@media (max-width: 540px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-stages { grid-template-columns: 1fr; }
  footer.foot { grid-template-columns: 1fr; }
  .hero-top { flex-direction: column; }
  .hero-meta { text-align: left; }
}

/* ============ MULTIPAGE ADDITIONS ============ */

/* ---- Active nav + mobile menu ---- */
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { transform: scaleX(1); }

.scroll-cue { cursor: pointer; transition: opacity .25s ease; }
.scroll-cue:hover { opacity: .65; }

.mobile-toggle {
  width: 30px; height: 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav.menu-open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .mobile-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  padding: 8px var(--pad) 20px;
  animation: menu-in .25s ease;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu a {
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.is-active { color: var(--ink); }
.mobile-menu a.is-active::before { content: "— "; color: var(--stone); }

/* ---- Page shell: clear the fixed nav on inner pages ---- */
.page { min-height: 72vh; }
.page > .section:first-child {
  border-top: none;
  padding-top: clamp(120px, 16vh, 200px);
}

/* ---- Project cards as links ---- */
a.product-card { text-decoration: none; }
a.product-card .ph { min-height: 300px; }

/* ---- Home: about teaser ---- */
.about-teaser .teaser-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.about-teaser .teaser-title { margin-bottom: 34px; }
.about-teaser .teaser-cta { margin-top: 34px; align-self: flex-start; }

/* ---- Product detail page ---- */
.detail-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 64px;
  max-width: 70ch;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease;
  width: fit-content;
}
.detail-back:hover { color: var(--ink); }
.detail-back .arr { font-family: var(--serif); font-size: 16px; transition: transform .25s ease; }
.detail-back:hover .arr { transform: translateX(-5px); }
.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
}
.detail-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-title { margin: 0; }
.detail-desc {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  color: var(--ink-2);
  margin: 0;
  max-width: 48ch;
}

/* ---- editorial mosaic: real proportions, caption on hover ---- */
.gallery {
  columns: 3 300px;
  column-gap: clamp(10px, 1.4vw, 20px);
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(10px, 1.4vw, 20px);
  break-inside: avoid;
  text-align: left;
  background: var(--bg-2);
  border: 0;
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
}
.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.gallery-img.is-loaded { opacity: 1; }
.gallery-item:hover .gallery-img { transform: scale(1.035); }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: block;
  padding: 44px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0));
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: #F4F1EB;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.gallery-num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(244,241,235,.7);
}
.gallery-item:hover .gallery-cap,
.gallery-item:focus-visible .gallery-cap { opacity: 1; transform: none; }
/* touch screens have no hover: keep the caption visible */
@media (hover: none) {
  .gallery-cap { opacity: 1; transform: none; }
}

/* ---- lightbox caption ---- */
.lb-caption {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 4px 2px 0;
  color: var(--bg);
}
.lb-caption-num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
}
.lb-caption-text {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--bg) 88%, transparent);
  max-width: 70ch;
  text-wrap: pretty;
}

.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(48px, 7vh, 96px);
}
.detail-nav-link {
  background: var(--bg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .3s ease;
}
.detail-nav-link:hover { background: var(--paper); }
.detail-nav-link.next { text-align: right; align-items: flex-end; }
.detail-nav-link .dir {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-nav-link .name {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---- Projects: photoless accordion ---- */
.cat-list {
  border-top: 1px solid var(--line-strong);
}
.cat-item {
  border-bottom: 1px solid var(--line-strong);
}
.cat-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  width: 100%;
  text-align: left;
  padding: clamp(26px, 3.4vw, 44px) 4px;
}
.cat-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  flex: 0 0 auto;
  width: 36px;
  transition: color .3s ease;
}
.cat-name {
  flex: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color .3s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.cat-row:hover .cat-name { color: var(--stone); transform: translateX(8px); }
.cat-row:hover .cat-num { color: var(--ink); }
.cat-item.open .cat-name { color: var(--stone); }
.cat-toggle {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  color: var(--muted);
  transition: color .3s ease, transform .3s ease;
}
.cat-row:hover .cat-toggle, .cat-item.open .cat-toggle { color: var(--ink); }

.cat-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1);
}
.cat-item.open .cat-panel { grid-template-rows: 1fr; }
.cat-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.cat-desc {
  margin: 0 0 24px;
  padding-left: calc(36px + clamp(18px, 3vw, 40px));
  max-width: 64ch;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
}
.cat-cta {
  margin: 0 0 clamp(30px, 4vw, 48px);
  margin-left: calc(36px + clamp(18px, 3vw, 40px));
}

@media (max-width: 720px) {
  .cat-desc, .cat-cta { padding-left: 0; margin-left: 0; }
}

/* ---- Footer nav ---- */
.foot-nav { display: flex; flex-direction: column; gap: 10px; }
.foot-nav a { color: var(--muted); transition: color .2s ease; width: fit-content; }
.foot-nav a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .detail-nav { grid-template-columns: 1fr; }
  .detail-nav-link.next { text-align: left; align-items: flex-start; }
}

/* ---- Legal pages ---- */
.legal-page .section { max-width: 860px; }
.legal-back { margin-bottom: clamp(28px, 4vw, 44px); }
.legal-doc { max-width: 760px; }
.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.legal-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  padding-bottom: 26px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  text-wrap: pretty;
}
.legal-section { margin-top: 34px; }
.legal-h {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 14px;
}
.legal-p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.legal-ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.legal-ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.legal-ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--stone);
}
.legal-data {
  display: grid;
  gap: 0;
  margin: 4px 0 8px;
  border-top: 1px solid var(--line);
}
.legal-data > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.legal-data dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-data dd { font-size: 15px; color: var(--ink); line-height: 1.5; }
.legal-updated {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 560px) {
  .legal-data > div { grid-template-columns: 1fr; gap: 3px; padding: 11px 0; }
}

/* ---- Footer legal row ---- */
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.foot-legal a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: color .2s ease;
}
.foot-legal a:hover { color: var(--ink); }

/* ---- Consent checkbox ---- */
.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  cursor: pointer;
}
.field-consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  position: relative;
}
.field-consent input:checked {
  background: var(--stone);
  border-color: var(--stone);
}
.field-consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.field-consent.error input { border-color: #d98c6a; }
.field-consent .consent-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.field-consent .consent-text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-legal {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 14px;
  max-width: 62ch;
}

/* ---------- Home: featured categories ---------- */
.home-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
}
.home-featured .section-head .btn-secondary { justify-self: start; }
.home-cat { display: flex; flex-direction: column; gap: 14px; }
.home-cat-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); }
.home-cat-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.home-cat:hover .home-cat-img img { transform: scale(1.05); }
.home-cat-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  transition: border-color .3s ease;
}
.home-cat:hover .home-cat-foot { border-color: var(--ink); }
.home-cat-name { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.home-cat-count { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }

/* ---------- Home: 3D designer call ---------- */
.home-designer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.home-designer .lead { margin: 20px 0 0; max-width: 46ch; color: var(--ink-2); }

/* ---------- Gallery: call to action ---------- */
.gallery-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: center;
  margin-top: clamp(48px, 8vh, 96px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-strong);
}
.gallery-cta-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; margin: 0;
}
.gallery-cta-text { margin: 12px 0 0; color: var(--muted); max-width: 52ch; }
.gallery-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Process: assembly video ---------- */
.process-video {
  margin: clamp(28px, 4vw, 48px) auto;
  width: min(100%, 1100px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.process-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #26282B;   /* same carbon as the video and the dark site background */
  border: 0;
  display: block;
  cursor: pointer;
}
.process-video-frame { position: relative; }
.process-video-sound {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F4F1EB;
  background: rgba(20, 20, 20, .62);
  border: 1px solid rgba(244, 241, 235, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .25s ease, border-color .25s ease;
}
.process-video-sound:hover { background: rgba(20, 20, 20, .85); border-color: #F4F1EB; }
.process-video-sound.is-on { opacity: .75; }
.process-video figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer social icons ---------- */
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; }
.foot a[href^="tel:"], .foot a[href^="mailto:"], .foot a[href*="wa.me"] { transition: color .2s ease; }
.foot a[href^="tel:"]:hover, .foot a[href^="mailto:"]:hover, .foot a[href*="wa.me"]:hover { color: var(--ink); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 150;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.34); }

@media (max-width: 900px) {
  .home-cats { grid-template-columns: repeat(2, 1fr); }
  .home-designer-inner, .gallery-cta { grid-template-columns: 1fr; }
}
