:root {
  /* Black stage, ivory type, her lilac only where it matters */
  --bg: #0c0b0c;
  --surface: #171417;
  --ink: #eeebea;
  --muted: #b5aaa4;
  --accent: #c9a2e0;
  --accent-ink: #0c0b0c;
  --light: #e9e6e5;
  --light-ink: #0c0b0c;
  --light-muted: #5a4f55;

  --display: "Zodiak", Georgia, serif;
  --text: "Satoshi", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem);
  --step-display: clamp(2.6rem, 0.9rem + 4.4vw, 4.75rem);

  --edge: clamp(16px, 3vw, 40px);
  --gap: clamp(96px, 10vw, 160px);
  --bar: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-family: var(--text); font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
button { font: inherit; color: inherit; }

/* Buttons: square, one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none;
  transition: background-color .25s ease, transform .45s var(--ease-out);
}
.btn:hover { background: var(--ink); transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: var(--step-small); }
.btn--dark { background: var(--light-ink); color: var(--light); }
.btn--dark:hover { background: #3a2f36; }
.link { text-decoration: underline; font-weight: 500; padding: 12px 0; }
.link:hover { color: var(--accent); }

/* ---------- Bar ---------- */
.bar {
  position: relative; z-index: 20;
  height: var(--bar); padding: 0 var(--edge);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  background: var(--bg);
}
.bar__mark { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.02em; text-decoration: none; }
.bar__nav { display: flex; gap: 32px; font-size: var(--step-small); }
.bar__nav a { text-decoration: none; color: var(--muted); padding: 10px 0; transition: color .2s ease; }
.bar__nav a:hover { color: var(--ink); }
.bar__end { justify-self: end; display: flex; align-items: center; gap: 20px; }
.lang { font-size: var(--step-small); font-weight: 700; letter-spacing: 0.04em; text-decoration: none; padding: 10px 4px; color: var(--muted); transition: color .2s ease; }
.lang:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - var(--bar));
  padding: 24px var(--edge) 32px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  align-items: stretch;
}
.hero__copy {
  grid-column: 1 / 9;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 36px;
  padding: 40px 0 16px;
}
.hero h1 { font-size: var(--step-display); }
.hero__lead { max-width: 44ch; font-size: var(--step-lead); line-height: 1.45; margin-top: -8px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero__services { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); }

.stage {
  grid-column: 9 / 13;
  position: relative; overflow: hidden;
  min-height: 520px;
  background: var(--surface);
}
.stage__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1.2s ease; }
.stage__canvas:active { cursor: grabbing; }
.stage.is-3d .stage__canvas { opacity: 1; }
.stage.is-3d .stage__fallback { opacity: 0; }
.stage__ui {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px; display: grid; gap: 14px; pointer-events: none;
}
.stage__shade { font-family: var(--display); font-size: var(--step-lead); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; pointer-events: auto; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px 0 10px;
  border: 0; background: var(--bg); color: var(--ink); cursor: pointer;
  font-size: var(--step-small);
  transition: background-color .25s ease, color .25s ease, transform .4s var(--ease-out);
}
.swatch::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--c); transition: transform .4s var(--ease-out); }
.swatch:hover::before { transform: scale(1.2); }
.swatch[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.swatch:active { transform: scale(.96); }

/* ---------- Portfolio reel: a filmstrip the vertical scroll pulls sideways ---------- */
.reel { padding-top: var(--gap); }
.reel__stage { padding: 40px 0 var(--gap); display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.reel__head { padding: 0 var(--edge); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 20px; align-items: end; }
.reel__head h2 { grid-column: 1 / 7; font-size: var(--step-display); }
.reel__head p { grid-column: 7 / 11; color: var(--muted); }
.filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 44px; padding: 0 18px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink);
  transition: background-color .25s ease, color .25s ease;
}
.filters button:hover { background: #2a252a; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
/* Small screens and reduced motion: a plain two-column grid */
.reel__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 40vw), 1fr)); gap: 24px 16px; padding: 0 var(--edge); align-items: start; }
.card { display: grid; gap: 12px; overflow: hidden; }
.card[hidden] { display: none; }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease-expo); }
.card--wide { grid-column: span 2; }
.card--wide img { aspect-ratio: 2 / 1; }
.card:hover img { transform: scale(1.03); }
.card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.card__title { font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.02em; }
.card__tag { color: var(--muted); font-size: var(--step-small); }
.card__link { color: var(--accent); font-size: var(--step-small); font-weight: 500; padding: 10px 0; }

/* Wide screens: pin the reel and let the page scroll pull the filmstrip sideways */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .reel__stage { height: calc(100svh + var(--travel, 0px)); padding: 0; display: block; overflow: visible; overflow-x: clip; }
  .reel__stage > .reel__track {
    position: sticky; top: 0; height: 100svh;
    display: flex; align-items: center; gap: clamp(16px, 2vw, 32px);
    will-change: transform;
  }
  .card { flex: none; }
  .card img, .card--wide img { height: min(62svh, 640px); width: auto; aspect-ratio: auto; }
}

/* ---------- Before / after ---------- */
.compare {
  padding: var(--gap) var(--edge);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: center;
  background: var(--surface);
}
.compare__text { grid-column: 1 / 6; display: grid; gap: 28px; justify-items: start; }
.compare__text > p:first-of-type { max-width: 36ch; font-size: var(--step-lead); line-height: 1.45; }
.compare__caption { color: var(--muted); min-height: 3.2em; }
.chooser { display: flex; flex-wrap: wrap; gap: 8px; }
.chooser button {
  min-height: 44px; padding: 0 16px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--ink);
  transition: background-color .25s ease, color .25s ease;
}
.chooser button:hover { background: #2a252a; }
.chooser button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ba {
  grid-column: 7 / 13; justify-self: center;
  position: relative; width: min(100%, 520px); aspect-ratio: 4 / 5; overflow: hidden;
  --pos: 50%; touch-action: pan-y; background: var(--bg);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.ba.is-swapping img { opacity: 0; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.ba::before {
  content: "‹ ›"; position: absolute; z-index: 2; top: 50%; left: var(--pos);
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font-size: 20px; pointer-events: none; transition: transform .35s var(--ease-out);
}
.ba:hover::before { transform: scale(1.1); }
.ba__tag { position: absolute; z-index: 1; top: 14px; padding: 4px 10px; background: var(--bg); font-size: var(--step-small); }
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- Novias: the ivory field ---------- */
.novias {
  background: var(--light); color: var(--light-ink);
  padding: var(--gap) var(--edge);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: center;
}
.novias :focus-visible { outline-color: var(--light-ink); }
.novias__photo { grid-column: 1 / 7; }
.novias__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.novias__text { grid-column: 8 / 13; display: grid; gap: 28px; justify-items: start; }
.novias__lead { font-size: var(--step-lead); line-height: 1.45; max-width: 34ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.tabs button {
  border: 0; background: none; padding: 10px 0; cursor: pointer;
  font-weight: 500; color: var(--light-muted); transition: color .2s ease;
}
.tabs button:hover { color: var(--light-ink); }
.tabs button[aria-selected="true"] { color: var(--light-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.tabs__panels p { max-width: 40ch; min-height: 5em; }
.tabs__panels p:not([hidden]) { animation: rise .5s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Services ---------- */
.services { padding: var(--gap) var(--edge); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: start; }
.services__head { grid-column: 1 / 5; position: sticky; top: calc(var(--bar) + 32px); display: grid; gap: 24px; }
.services__head p { color: var(--muted); max-width: 32ch; }
.launch { background: var(--surface); padding: 24px; display: grid; gap: 10px; justify-items: start; }
.launch h3 { color: var(--accent); }
.launch p { color: var(--ink); max-width: 36ch; }
.services__photo { width: 100%; aspect-ratio: 4 / 5; max-height: 50svh; object-fit: cover; object-position: 30% 30%; }
.services__groups { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 64px 48px; }
.group__link { display: inline-block; margin-top: 20px; }
.group h3 { margin-bottom: 24px; color: var(--accent); }
.menu { display: grid; gap: 18px; }
.menu li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; }
.menu small { display: block; color: var(--muted); font-size: var(--step-small); }
.menu b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu li { transition: transform .35s var(--ease-out); }
.menu li:hover { transform: translateX(6px); }

/* ---------- Class: half and half ---------- */
.clase { padding: 0 var(--edge) var(--gap); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: center; }
.half { grid-column: 1 / 6; position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.half__yours { clip-path: inset(0 50% 0 0); }
.half::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--accent); }
.half figcaption { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 14px; }
.half figcaption span { background: var(--bg); padding: 4px 10px; font-size: var(--step-small); }
.clase__text { grid-column: 7 / 13; display: grid; gap: 32px; justify-items: start; }
.clase__lead { font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; }
.steps { width: 100%; max-width: 560px; display: grid; gap: 4px; }
.steps div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 18px; background: var(--surface); transition: background-color .25s ease; }
.steps div:hover { background: #221e22; }
.steps dd { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Testimonials (section is commented out in the HTML until there are real quotes) ---------- */
.quotes { padding: var(--gap) var(--edge); display: grid; gap: 48px; }
.quotes__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.quotes blockquote { margin: 0; padding: 32px; background: var(--surface); display: grid; gap: 20px; align-content: space-between; }
.quotes blockquote p { font-family: var(--display); font-size: var(--step-lead); line-height: 1.35; }
.quotes blockquote footer { color: var(--muted); font-size: var(--step-small); }

/* ---------- FAQ ---------- */
.faq { padding: var(--gap) var(--edge); background: var(--surface); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: start; }
.faq h2 { grid-column: 1 / 5; }
.qa { grid-column: 6 / 13; display: grid; gap: 8px; }
.qa details { background: var(--bg); padding: 0 24px; }
.qa summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 40px 22px 0; font-size: var(--step-lead); line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .35s var(--ease-out);
}
.qa details[open] summary::after { transform: translateY(4px) rotate(225deg); }
.qa details p { padding: 0 0 24px; color: var(--muted); max-width: 52ch; }
.qa details[open] p { animation: rise .45s var(--ease-out); }

/* ---------- Booking over the street ---------- */
.book { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-items: end; padding: var(--gap) var(--edge); }
.book__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.5);
  transform: scale(var(--zoom, 1.12)); transform-origin: 60% 60%;
}
.book__panel {
  position: relative; width: min(560px, 100%);
  background: var(--bg); padding: clamp(28px, 4vw, 48px);
  display: grid; gap: 24px; justify-items: start;
}
.book__panel > p:first-of-type { font-size: var(--step-lead); line-height: 1.45; }
.hours { width: 100%; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt { color: var(--muted); }
.book__contact a:hover { color: var(--accent); }
.book__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* WhatsApp: always one tap away */
.wa {
  position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
  transition: background-color .25s ease, transform .45s var(--ease-out);
}
.wa:hover { background: var(--ink); transform: translateY(-2px); }
.wa:active { transform: scale(.97); }

/* ---------- Footer: the name returns at full width ---------- */
.foot { padding: var(--gap) var(--edge) 28px; overflow: hidden; }
.foot__name {
  font-family: var(--display); font-size: 23vw; line-height: .8; letter-spacing: -0.05em;
  margin: 0 0 40px -0.04em; color: var(--ink);
}
.foot__line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 24px; align-items: baseline; font-size: var(--step-small); color: var(--muted); }
.foot__line nav { display: flex; gap: 24px; }
.foot__line a { color: var(--ink); }
.foot__line p:last-child { text-align: right; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-expo) var(--d, 0ms), transform 1s var(--ease-expo) var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; }
  .js [data-reveal].is-in { transition: opacity .4s ease; }
  .book__photo { transform: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  :root { --bar: 56px; }
  .bar { grid-template-columns: 1fr auto; }
  .bar__nav { display: none; }
  .hero { grid-template-columns: 1fr; row-gap: 12px; padding-top: 8px; }
  .hero__copy { grid-column: 1; padding: 24px 0 0; gap: 24px; order: 2; }
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 4rem); max-width: none; }
  .stage { grid-column: 1; min-height: 0; height: 44svh; order: 1; }
  .reel__head h2, .reel__head p, .compare__text, .ba, .novias__photo, .novias__text,
  .services__head, .services__groups, .half, .clase__text, .faq h2, .qa { grid-column: 1 / -1; }
  .reel__head { grid-template-columns: 1fr; }
  .services__head { position: static; }
  .services__groups { grid-template-columns: 1fr; gap: 48px; }
  .half { max-width: 520px; width: 100%; }
  .novias__lead, .tabs__panels p { max-width: none; }
  .foot__line { grid-template-columns: 1fr; }
  .foot__line p:last-child { text-align: left; }
}
@media (max-width: 480px) {
  .stage__ui { padding: 14px; gap: 10px; }
  .swatch { padding: 0 10px 0 8px; gap: 8px; }
  .book { padding: 45svh 0 0; }
  .book__panel { width: 100%; }
}
