/* =============================================================
   MARÍA CATALINA GZ ART — stylesheet
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components
   6. Sections
   7. Effects
   8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — papel roto, piedra, salvia y azul empolvado */
  --bg:        #f7f3ea;
  --bg-2:      #ede5d3;
  --paper:     #fffdf8;
  --ink:       #2a2924;
  --ink-soft:  #4a483e;
  --ink-mute:  #83806f;
  --accent:    #75948a;   /* salvia azulado */
  --accent-2:  #93a7bd;   /* azul empolvado */
  --accent-3:  #b08360;   /* tierra cálida — uso puntual */
  --line:      rgba(42,41,36,0.14);
  --line-soft: rgba(42,41,36,0.08);
  --shadow-c:  42,41,36;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --container: 1320px;
}

@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-weight: 500; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 720px)  { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3.5rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--paper);
  border-radius: 6px; font-weight: 500; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.eyebrow-rule {
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow-rule::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}

section { position: relative; }
.section-pad { padding-block: clamp(4rem, 9vw, 8rem); }

/* =============================================================
   4. Typography
   ============================================================= */
h1, .h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
}
h2, .h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
}
h3, .h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
em, i { font-style: italic; color: var(--accent); }
.serif-italic { font-family: var(--serif); font-style: italic; }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 44ch;
}

.body-text { max-width: 62ch; color: var(--ink-soft); }
.body-text p + p { margin-top: 1.2em; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem;
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  border-radius: 100px;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background-color .35s var(--ease-out), color .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 14px rgba(var(--shadow-c),0.14);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(var(--shadow-c),0.22), 0 8px 18px rgba(117,148,138,0.28);
  background: var(--accent);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(117,148,138,0.08);
  transform: translateY(-2px);
}
.btn-sm { padding: .65rem 1.3rem; font-size: .82rem; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out), backdrop-filter .5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(247,243,234,0.86);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav.is-scrolled { background: rgba(247,243,234,0.98); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { font-family: var(--serif); font-style: italic; font-size: 1.65rem; letter-spacing: .01em; }
.nav-brand span { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; font-size: .93rem; padding: .3rem 0;
  color: var(--ink-soft);
  text-shadow: 0 1px 3px rgba(247,243,234,.6), 0 0 16px rgba(247,243,234,.4);
  transition: color .3s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }

.nav-cart {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; background: none; color: var(--ink-soft); cursor: pointer;
  transition: color .25s var(--ease-out);
  filter: drop-shadow(0 1px 3px rgba(247,243,234,.6)) drop-shadow(0 0 10px rgba(247,243,234,.4));
}
.nav-cart:hover { color: var(--ink); }
.nav-cart-count {
  position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 100px; background: var(--accent); color: var(--paper);
  font-size: .64rem; font-weight: 600; line-height: 16px; text-align: center;
}

.nav-burger {
  display: grid; place-items: center; width: 44px; height: 44px;
  position: relative; z-index: 20;
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease-soft), opacity .3s;
}
.nav-burger span::before { transform: translateY(-7px); }
.nav-burger span::after { transform: translateY(7px); }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile-list { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; }
.nav-mobile-list a { font-family: var(--serif); font-size: 2rem; }
.nav-mobile-foot { position: absolute; bottom: 2.5rem; text-align: center; color: var(--ink-mute); font-size: .85rem; }

/* --- Cards --- */
.art-card {
  position: relative;
  min-width: 0; /* grid items default to min-width:auto, which can force a track (and the whole page) wider than the viewport if content inside — like a row of size pills — doesn't want to shrink */
  border-radius: 4px;
  overflow: visible;
  isolation: isolate;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.art-card[hidden] { display: none; }
.art-card-note {
  margin-top: .6rem; font-size: .82rem; font-style: italic; color: var(--ink-mute);
}
.art-card-frame {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
}
.art-card-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-soft), filter .6s var(--ease-out);
}
/* a handful of artworks are wide, panoramic compositions that a
   4:5 portrait crop would butcher — JS detects those and switches
   just those frames to a padded, uncropped "contain" treatment */
.art-card-frame.is-wide { background: var(--paper); padding: 6%; }
.art-card-frame.is-wide img { object-fit: contain; }
.art-card-frame-btn {
  display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: none; text-align: inherit; cursor: pointer;
}
.art-card:hover .art-card-frame img {
  transform: scale(1.08);
  filter: saturate(1.12) brightness(1.02);
}
.art-card-meta { padding-top: .9rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.art-card-title { font-family: var(--serif); font-size: 1.15rem; }
.art-card-cat { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.art-card:hover {
  box-shadow: none;
}
.art-card-frame::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 40px 70px -30px rgba(var(--shadow-c),0.35);
  opacity: 0; transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.art-card:hover .art-card-frame::after { opacity: 1; }

/* sketch corners: four hand-drawn brackets that sketch themselves
   at the corners of the artwork before it fades into view */
.sketch-corner {
  position: absolute; width: 34px; height: 34px; z-index: 2; pointer-events: none; overflow: visible;
}
.sketch-corner.tl { top: -9px; left: -9px; }
.sketch-corner.tr { top: -9px; right: -9px; transform: scaleX(-1); }
.sketch-corner.bl { bottom: -9px; left: -9px; transform: scaleY(-1); }
.sketch-corner.br { bottom: -9px; right: -9px; transform: scale(-1,-1); }
.sketch-corner path {
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 60; stroke-dashoffset: 60;
}
[data-reveal="sketch"].is-revealed .sketch-corner path {
  transition: stroke-dashoffset .8s var(--ease-soft);
  stroke-dashoffset: 0;
}
[data-reveal="sketch"].is-revealed .sketch-corner.tr path { transition-delay: .08s; }
[data-reveal="sketch"].is-revealed .sketch-corner.bl path { transition-delay: .14s; }
[data-reveal="sketch"].is-revealed .sketch-corner.br path { transition-delay: .2s; }
[data-reveal="sketch"] .art-card-frame img {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .9s var(--ease-out) .2s, transform 1.1s var(--ease-soft) .2s, filter .6s var(--ease-out);
}
[data-reveal="sketch"].is-revealed .art-card-frame img {
  opacity: 1; transform: scale(1);
}

/* --- Marquee --- */
.marquee { overflow: hidden; position: relative; border-block: 1px solid var(--line); white-space: nowrap; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; will-change: transform; padding-block: 1.4rem; }
.marquee-track span {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem); color: var(--ink-mute);
}
.marquee-track span.is-dot { color: var(--accent); font-style: normal; }

/* --- Reveal (universal) --- */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal="sketch"] { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* --- Cursor --- */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--paper); border-radius: 50%; }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px; border: 1px solid var(--paper); border-radius: 50%;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 54px; height: 54px; margin: -27px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* --- Forms --- */
.field { position: relative; margin-bottom: 1.4rem; }
.field label {
  display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .5rem;
}
.field input, .field textarea, .field select {
  width: 100%; padding: .9rem 1rem; border: 1px solid var(--line);
  border-radius: 6px; background: var(--paper); color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(117,148,138,0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.form-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 40px 90px -50px rgba(var(--shadow-c),0.4);
}
.form-card.is-sent .contact-form { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.contact-form { transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft); }

.form-submit { position: relative; overflow: hidden; }
.form-submit-label { display: inline-block; transition: opacity .3s; }
.form-submit-spinner {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none;
}
.is-sending .form-submit-label { opacity: 0; }
.is-sending .form-submit-spinner { opacity: 1; }
.form-submit-spinner::after {
  content: ""; width: 16px; height: 16px;
  border: 1.5px solid rgba(255,255,255,0.35); border-top-color: var(--paper);
  border-radius: 50%; animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .7s var(--ease-out) .2s;
}
.form-success.is-visible { opacity: 1; pointer-events: auto; }
.form-success-check {
  width: 46px; height: 46px; margin-inline: auto 1rem; color: var(--accent);
}
.form-success-check path {
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1; pathLength: 1;
  transition: stroke-dashoffset .6s var(--ease-out) .1s;
}
.form-success.is-visible .form-success-check path { stroke-dashoffset: 0; }

/* --- Filter tabs (galería) --- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-btn {
  padding: .55rem 1.15rem; border-radius: 100px; border: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-soft);
  transition: all .35s var(--ease-out);
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --- Gallery grid --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem;
}
/* Phones: one card per row — two cramped columns were forcing content
   (size pills, etc.) wider than the track, blowing out past the screen
   edge with no way to scroll to it. Tablet/desktop tiers untouched. */
@media (max-width: 479px)  { .gallery-grid { grid-template-columns: 1fr; } }
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(24,23,20,0.94);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease-out);
  padding: 4vh 4vw;
}
.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }
.lightbox-inner { max-width: 1100px; width: 100%; text-align: center; }
.lightbox-inner img {
  max-height: 78vh; margin-inline: auto; border-radius: 6px;
  box-shadow: 0 60px 120px rgba(0,0,0,0.5);
}
.lightbox-caption { color: var(--cream, #f2ebda); margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #f2ebda;
  display: grid; place-items: center; font-size: 1.4rem;
}
.lightbox-close:hover { background: rgba(255,255,255,0.16); }

/* --- Product photo gallery (main photo + "in a room" mockups) ---
   the frame's aspect-ratio is adjusted per slide in main.js
   (bindProductGalleries) — full 4:5 for the main photo, closer to
   each mockup's own shape so `cover` crops less of the room --- */
.product-gallery { position: relative; transition: aspect-ratio .4s var(--ease-out); }
.product-gallery-track {
  display: flex; width: 100%; height: 100%;
  transition: transform .5s var(--ease-out);
}
.product-gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute; top: 50%; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255,253,248,.85); color: var(--ink);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  cursor: pointer; opacity: .9; transform: translateY(-50%);
  transition: opacity .25s var(--ease-out), background .25s var(--ease-out);
}
.gallery-arrow:hover, .gallery-arrow:focus-visible { opacity: 1; background: var(--paper); }
.gallery-arrow-prev { left: .6rem; }
.gallery-arrow-next { right: .6rem; }
.gallery-dots {
  position: absolute; bottom: .7rem; left: 50%; z-index: 3;
  transform: translateX(-50%);
  display: flex; gap: .4rem;
}
.gallery-dot {
  width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,253,248,.55); cursor: pointer;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.gallery-dot.is-active { background: var(--paper); transform: scale(1.4); }

/* --- Shop configurator (embedded in each purchasable art-card) --- */
.product-options { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.opt-group .opt-label {
  display: block; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .4rem;
}
.opt-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt-pill {
  padding: .4rem .85rem; border-radius: 100px; border: 1px solid var(--line);
  font-size: .8rem; transition: all .25s var(--ease-out);
}
.opt-pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.opt-pill:hover:not(.is-active):not(.is-soon) { border-color: var(--accent); }
.opt-pill.is-soon {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  color: var(--ink-mute); border-style: dashed; cursor: not-allowed; opacity: .7;
}
.opt-pill-tag { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; font-style: italic; }
.product-foot {
  margin-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.product-price { font-family: var(--serif); font-size: 1.5rem; }
.product-price small { font-family: var(--sans); font-size: .7rem; color: var(--ink-mute); display: block; letter-spacing: .06em; text-transform: uppercase; }
.product-frame-note { font-size: .78rem; color: var(--ink-mute); margin: -.1rem 0 .2rem; }
.product-options--soon { align-items: center; min-height: 3.4rem; justify-content: center; }
.product-soon {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: var(--ink-mute); text-align: center; width: 100%;
}

/* --- Cart drawer --- */
.cart-drawer { position: fixed; inset: 0; z-index: 3100; pointer-events: none; }
.cart-drawer-scrim {
  position: absolute; inset: 0; background: rgba(42,41,36,0.5);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.cart-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--paper); box-shadow: -30px 0 60px rgba(42,41,36,0.18);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease-out);
}
.cart-drawer[data-open="true"] { pointer-events: auto; }
.cart-drawer[data-open="true"] .cart-drawer-scrim { opacity: 1; }
.cart-drawer[data-open="true"] .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 1.6rem 1.2rem; border-bottom: 1px solid var(--line);
}
.cart-drawer-x {
  width: 36px; height: 36px; border: 0; background: none; font-size: 1.4rem;
  color: var(--ink-mute); cursor: pointer; line-height: 1;
}
.cart-drawer-x:hover { color: var(--ink); }
.cart-drawer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.2rem 1.6rem; }
.cart-drawer-foot { padding: 1.2rem 1.6rem 1.6rem; border-top: 1px solid var(--line); }
.cart-empty { color: var(--ink-mute); text-align: center; padding: 2rem 0; }

.cart-line { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.cart-line:first-child { padding-top: 0; }
.cart-line-img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-title { font-family: var(--serif); font-size: 1.05rem; }
.cart-line-size { font-size: .78rem; color: var(--ink-mute); margin-top: .1rem; }
.cart-line-qty { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.cart-line-qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
  background: none; cursor: pointer; line-height: 1; color: var(--ink);
}
.cart-line-qty button:hover { border-color: var(--accent); color: var(--accent); }
.cart-line-qty span { min-width: 1.2rem; text-align: center; font-size: .88rem; }
.cart-line-end { text-align: right; flex-shrink: 0; }
.cart-line-price { font-family: var(--serif); font-size: 1.05rem; }
.cart-line-remove {
  border: 0; background: none; color: var(--ink-mute); font-size: .72rem;
  text-decoration: underline; cursor: pointer; margin-top: .5rem;
}
.cart-line-remove:hover { color: var(--ink); }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-size: 1.3rem; margin-bottom: 1rem;
}
.cart-total-row small, .checkout-summary-total small {
  font-family: var(--sans); font-size: .68rem; color: var(--ink-mute); font-style: normal; margin-left: .3rem;
}
.cart-note { font-size: .74rem; color: var(--ink-mute); text-align: center; margin-top: .8rem; }

/* --- Checkout modal (order summary + PayPal buttons) --- */
.note-modal {
  position: fixed; inset: 0; z-index: 3200; display: grid; place-items: center;
  background: rgba(42,41,36,0.5);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out);
  padding: 1.5rem;
}
.note-modal[data-open="true"] { opacity: 1; pointer-events: auto; }
.note-modal-card {
  background: var(--paper); border-radius: 16px; padding: 2.4rem; max-width: 420px; text-align: center;
  transform: translateY(16px); transition: transform .4s var(--ease-soft);
}
.note-modal[data-open="true"] .note-modal-card { transform: translateY(0); }
.note-modal-card h3 { margin-bottom: .8rem; }
.note-modal-card p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.note-modal-card .field { margin-bottom: 1rem; }

.checkout-summary { text-align: left; margin-bottom: 1.4rem; }
.checkout-summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .85rem; color: var(--ink-soft); padding: .4rem 0; border-bottom: 1px solid var(--line-soft);
}
.checkout-summary-total {
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink); border-bottom: none;
  margin-top: .3rem; padding-top: .7rem; border-top: 1px solid var(--line);
}
.paypal-buttons-wrap { min-height: 45px; }
.checkout-status {
  font-size: .85rem; color: var(--accent); text-align: center; margin-top: 1rem; margin-bottom: 0;
}
.checkout-status.is-error { color: #b5543f; }

/* --- Process / steps --- */
.steps { display: grid; gap: 2.4rem; }
@media (min-width: 720px) { .steps.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .steps.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.step-num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent); line-height: 1; margin-bottom: .8rem; }
.step-title { font-size: 1.15rem; margin-bottom: .5rem; font-weight: 600; }
.step-text { color: var(--ink-soft); font-size: .95rem; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: rgba(247,243,234,0.86); padding-block: 4.5rem 2.5rem; }
.footer-grid {
  display: grid; gap: 2.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--paper); }
.footer-tag { margin-top: .8rem; color: rgba(247,243,234,0.6); max-width: 32ch; font-size: .92rem; }
.footer-col h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,243,234,0.5); margin-bottom: 1rem; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: rgba(247,243,234,0.82); font-size: .92rem; margin-bottom: .6rem; }
.footer-col a:hover { color: var(--accent-2); }
.footer-signature { width: 130px; margin-top: 1.4rem; }
.footer-bottom {
  margin-top: 3.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(247,243,234,0.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8rem; color: rgba(247,243,234,0.5);
}
.footer-social { display: flex; gap: 1rem; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
}
.hero-bg img.ambient-on { animation: heroAmbient 30s ease-in-out infinite; }
@keyframes heroAmbient {
  0%, 100% { transform: scale(1.06) translate3d(0,0,0); }
  50%      { transform: scale(1.14) translate3d(-1.2%,-1%,0); }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,19,16,0.88) 0%, rgba(20,19,16,0.6) 32%, rgba(20,19,16,0.34) 58%, rgba(20,19,16,0.12) 80%, rgba(20,19,16,0.02) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 8rem 5rem; color: var(--paper); width: 100%; }
.hero-kicker { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5); }
.hero-title { color: var(--paper); margin-top: 1.1rem; max-width: 16ch; text-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.hero-title em { color: var(--accent-2); font-style: italic; }
.hero-sub { margin-top: 1.3rem; color: rgba(247,243,234,0.92); text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn-ghost { border-color: rgba(247,243,234,0.4); color: var(--paper); }
.hero .btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.1); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(247,243,234,0.7); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 34px; background: rgba(247,243,234,0.5);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { transform: scaleY(1); opacity: .6; } 50% { transform: scaleY(.4); opacity: 1; } }

/* --- Intro / manifesto strip --- */
.intro {
  display: grid; gap: 2.4rem; align-items: start;
}
@media (min-width: 860px) { .intro { grid-template-columns: 0.9fr 1.4fr; gap: 4rem; } }

/* --- Featured / bento section --- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

/* --- Split CTA --- */
.split-cta { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split-cta { grid-template-columns: 1fr 1fr; } }
.split-cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 46vh; display: flex; align-items: flex-end; padding: 3rem;
  color: var(--paper);
}
.split-cta-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease-soft); }
.split-cta-panel::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(0deg, rgba(42,41,36,.78), rgba(42,41,36,.18)); }
.split-cta-panel:hover img { transform: scale(1.08); }
.split-cta-panel h3 { color: var(--paper); font-size: clamp(1.6rem,3vw,2.3rem); max-width: 18ch; }
.split-cta-panel p { color: rgba(247,243,234,0.85); margin-top: .6rem; max-width: 30ch; }
.split-cta-panel .btn { margin-top: 1.4rem; }

/* --- Page hero (inner pages) --- */
.page-hero { padding-block: calc(var(--nav-h) + 4.5rem) 3.5rem; }
.page-hero .kicker { margin-bottom: 1rem; }

/* --- About narrative --- */
.narrative-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .narrative-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .narrative-figure { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.narrative-figure img { border-radius: 8px; aspect-ratio: 4/5; object-fit: cover; }
.pull-quote {
  font-family: var(--serif); font-style: italic; color: var(--ink);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.4;
  padding-left: 1.6rem; border-left: 2px solid var(--accent);
  margin-block: 2.4rem;
}

/* --- Process video placeholder grid --- */
.video-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 720px) { .video-grid { grid-template-columns: repeat(3,1fr); } }
.video-card {
  position: relative; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden;
  background: var(--bg-2); display: grid; place-items: center;
}
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: grayscale(.3); }
.video-card.is-ready video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: none; cursor: pointer; }
.video-card.is-playing .video-card-play { opacity: 0; pointer-events: none; }
.video-card-play {
  position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.85); display: grid; place-items: center;
  transition: transform .4s var(--ease-soft);
}
.video-card:hover .video-card-play { transform: scale(1.1); }
.video-card-play svg { width: 18px; height: 18px; margin-left: 3px; color: var(--ink); }
.video-card-badge {
  position: absolute; bottom: .9rem; left: .9rem; z-index: 1;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(42,41,36,0.7); color: var(--paper); padding: .3rem .7rem; border-radius: 100px;
}

/* --- Unfinished-piece story block --- */
.story-block {
  display: grid; gap: 2.2rem;
}
@media (min-width: 860px) { .story-block { grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; } }
.story-block img { border-radius: 8px; }

/* --- Commission examples strip --- */
.commission-examples .gallery-grid { grid-template-columns: repeat(2,1fr); }
@media (min-width: 720px) { .commission-examples .gallery-grid { grid-template-columns: repeat(4,1fr); } }

/* --- Contact split --- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; } }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2);
  display: grid; place-items: center; flex-shrink: 0; color: var(--accent);
}

/* =============================================================
   7. Effects
   ============================================================= */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .18s; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; gap: inherit; will-change: transform; transition: transform .8s var(--ease-soft); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img.ambient-on { animation: none; }
  .hero-scroll::after { animation: none; }
}

/* =============================================================
   8. Responsive helpers
   ============================================================= */
@media (max-width: 959px) {
  .hero-content { padding-block: 7rem 4rem; }
}
@media (max-width: 479px) {
  /* On narrow phones the two hero buttons wrap onto two lines, leaving
     less room than the "Descubre" scroll hint needs — they end up
     overlapping. The hint is decorative, so hide it here instead. */
  .hero-scroll { display: none; }

  /* Martín pescador photo reads too tight on phones — it's a wide,
     two-bird composition being `cover`-cropped into much taller boxes
     than on desktop. Dial back the hero's extra ambient zoom, and
     give its card/product frames a touch less height so `cover`
     needs less scale — still fills the box completely, just a bit
     less magnified. Targeted by src so no other photo is affected. */
  .hero-bg img { transform: scale(1); object-position: 39% 50%; }
  @keyframes heroAmbient {
    0%, 100% { transform: scale(1) translate3d(0,0,0); }
    50%      { transform: scale(1.04) translate3d(-1.2%,-1%,0); }
  }
  /* The hero box itself is what's forcing such a tight crop (near
     full-screen height against a wide landscape photo) — easing its
     height a little widens the visible slice enough for the left
     kingfisher to start showing, while still reading as a full-bleed
     hero. */
  .hero { min-height: 76svh; }
  .art-card-frame:has(img[src*="hero-martin-pescador"]) { aspect-ratio: 1; object-position: 46% 50%; }
}

/* =============================================================
   9. Reduced motion — ONLY intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}
