/* ============ Nosara Studio — golden-hour Guanacaste ============ */

:root {
  --paper: oklch(0.975 0.004 95);
  --ink: oklch(0.235 0.012 255);
  --ink-soft: oklch(0.44 0.014 255);
  --palm: oklch(0.265 0.018 255);
  --palm-deep: oklch(0.215 0.016 255);
  --gold: oklch(0.60 0.125 62);
  --gold-deep: oklch(0.465 0.11 62);
  --paper-on-palm: oklch(0.955 0.005 250);
  --soft-on-palm: oklch(0.80 0.012 250);
  --line: oklch(0.235 0.012 255 / 0.14);
  --line-on-palm: oklch(0.955 0.005 250 / 0.18);

  --font-display: "Outfit", "Hanken Grotesk", sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);

  --z-nav: 100;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { text-wrap: balance; }

.work, .services, .about, .cta { scroll-margin-top: 74px; }

/* ---- language switching: both languages live in the DOM ---- */
.l-es { display: none; }
html.es .l-en { display: none; }
html.es .l-es { display: inline; }

/* ---- shared atoms ---- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dot { color: var(--gold); }

.bracket-link {
  color: var(--gold-deep);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.bracket-link:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  min-height: 44px;
  transition: transform 0.4s var(--ease-out), background-color 0.3s var(--ease-out);
}
.btn-wa { background: var(--ink); color: var(--paper); }
.btn-wa:hover { background: var(--palm); transform: translateY(-2px); }
.wa-ico { width: 1.15em; height: 1.15em; fill: #4fce5d; flex-shrink: 0; }

.section-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.photo-tag {
  color: var(--paper-on-palm);
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  text-shadow: 0 1px 14px oklch(0 0 0 / 0.55);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem var(--gutter);
  background: oklch(0.975 0.004 95 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--line); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--gold-deep); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 36px;
  transition: border-color 0.3s var(--ease-out);
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-toggle .lt-sep { color: var(--gold); }
.lang-toggle .lt-en { font-weight: 700; }
html.es .lang-toggle .lt-en { font-weight: 400; }
html.es .lang-toggle .lt-es { font-weight: 700; }

.btn-nav { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

/* ============ HERO — scroll-driven picture sequence ============ */
.hseq { height: 210vh; position: relative; }

.hseq-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(62px + 1.25rem) var(--gutter) clamp(1.5rem, 4vh, 2.75rem);
}

.hseq-bg { position: absolute; inset: 0; z-index: 0; }
.hseq-bg .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease-out;
}
.hseq-bg .frame.active { opacity: 1; }
.hseq-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, oklch(0.2 0.012 255 / 0.42), transparent 22%),
    linear-gradient(to top, oklch(0.18 0.012 255 / 0.62), transparent 55%);
}

.hseq-util {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--paper-on-palm);
  text-shadow: 0 1px 10px oklch(0 0 0 / 0.35);
}
.hseq-util-right { display: flex; gap: 0.6rem; }
.hseq-util .sep { color: var(--gold); }

.hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(2.9rem, 8.8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.008em;
  text-transform: uppercase;
  color: var(--paper-on-palm);
  text-shadow: 0 2px 26px oklch(0 0 0 / 0.35);
  margin-top: auto;
  margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.05em; margin-bottom: -0.05em; }
.hero-title .line-inner { display: block; }
.hero-title .line-2 { padding-left: clamp(1.25rem, 7vw, 6.5rem); }
.hero-title .line-3 { padding-left: clamp(0.5rem, 3vw, 2.75rem); }
.hero-title em { font-style: normal; font-weight: 480; letter-spacing: 0.01em; }

/* scroll-driven line shift (JS sets --shift on the outer .line) */
.hero-title .line { transform: translateX(var(--shift, 0)); will-change: transform; }

/* "better websites." waits inside its mask until the second frame (html.s2) */
html.js .gate { transform: translateY(112%); transition: transform 1s var(--ease-out); }
html.js.s2 .gate { transform: none; }

.hseq-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--paper-on-palm);
  text-shadow: 0 1px 10px oklch(0 0 0 / 0.4);
  border-top: 1px solid oklch(0.955 0.005 250 / 0.28);
  padding-top: 0.9rem;
}
.hseq-caption { position: relative; display: block; height: 1.2em; flex: 1; overflow: hidden; }
.hseq-caption .cap {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  white-space: nowrap;
}
.hseq-caption .cap.active { opacity: 1; transform: none; }
.hseq-count { font-variant-numeric: tabular-nums; }

/* nav goes transparent + light while over the hero sequence */
.nav { transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out); }
.nav.over { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.over .wordmark, .nav.over .nav-links a, .nav.over .lang-toggle { color: var(--paper-on-palm); }
.nav.over .wordmark, .nav.over .nav-links a { text-shadow: 0 1px 10px oklch(0 0 0 / 0.35); }
.nav.over .lang-toggle { border-color: oklch(0.955 0.005 250 / 0.4); }

/* ============ INTRO ============ */
.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--gutter);
}
.intro-sub {
  max-width: 34rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
}
.hero-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* ---- hero entrance choreography (JS adds html.loaded) ---- */
html.js .h-rise { transform: translateY(112%); transition: transform 1.1s var(--ease-out); }
html.js .h-fade { opacity: 0; transform: translateY(0.9rem); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
html.js .h-unveil { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); }
html.js .h-unveil img { transform: scale(1.1); transition: transform 2.4s var(--ease-out); }

html.loaded .h-rise { transform: none; }
html.loaded .h-fade { opacity: 1; transform: none; }
html.loaded .h-unveil { clip-path: inset(0 0 0 0); }
html.loaded .h-unveil img { transform: scale(1); }

.h-d1 { transition-delay: 0.05s; }
.h-d2 { transition-delay: 0.12s; }
.h-d3 { transition-delay: 0.24s; }
.h-d4 { transition-delay: 0.36s; }
.h-d5 { transition-delay: 0.6s; }
.h-d6 { transition-delay: 0.85s; }
.h-unveil img { transition-delay: 0.6s; }

/* ============ TICKER ============ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  user-select: none;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set {
  display: flex;
  align-items: baseline;
  gap: 2.25rem;
  padding-right: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ WORK — continuous film-strip rows ============ */
.work { padding-top: clamp(4rem, 10vh, 7rem); }
.work-head { padding: 0 var(--gutter) clamp(2rem, 5vh, 3.5rem); }

/* one unbroken dark surface; images slide past on the left */
.wrows { background: var(--palm-deep); }

.wrow {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  min-height: 100svh;
}

.wrow-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 7vh, 5rem) clamp(1.25rem, 3.5vw, 3.5rem);
}
/* the mounted frame: inset on the dark wall, opens toward the right as the row centers */
.wframe {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: min(72svh, 44rem);
  clip-path: inset(0 calc((1 - var(--rp, 1)) * 22%) 0 0);
}
.wframe img {
  width: 108%;
  max-width: none;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

/* the actual work, floating on the photo backdrop */
.wshot {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.9rem, 3.5%, 2.25rem);
}
.wshot img, .wshot-win {
  border-radius: 4px;
  box-shadow: 0 22px 60px oklch(0 0 0 / 0.45), 0 4px 14px oklch(0 0 0 / 0.3);
}
.wshot > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
/* screenshot window: section shots crossfade on a loop, Roshan-style */
.wshot-win {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 800;
  overflow: hidden;
}
.wshot-win img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.wshot-win img.active { opacity: 1; }

/* clickable rows */
.wrow-media { cursor: pointer; }

/* ============ PROJECT OVERLAY ============ */
.pmodal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: clamp(0.75rem, 3vh, 2.5rem); }
.pmodal[hidden] { display: none; }
.pmodal-scrim { position: absolute; inset: 0; background: oklch(0.13 0.012 255 / 0.88); }
.pmodal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  width: min(76rem, 96vw);
  height: min(84svh, 52rem);
  background: var(--paper);
  overflow: hidden;
  animation: pm-in 0.5s var(--ease-out);
}
@keyframes pm-in { from { opacity: 0; transform: translateY(1.5rem); } }
.pmodal-media { position: relative; overflow: hidden; background: var(--palm-deep); min-height: 24rem; }
.pmodal-media .wrow-media { cursor: default; position: relative; padding: clamp(1.25rem, 3vw, 2.5rem); height: 100%; display: flex; align-items: center; }
.pmodal-media .wframe { height: 100%; max-height: 100%; clip-path: none !important; width: 100%; }
/* cloned frames arrive with scroll-state inline transforms: neutralize them */
.pmodal .wframe img { transform: none !important; width: 100%; height: 100%; }
.pmodal .wshot { padding: clamp(1.5rem, 8%, 3.5rem); }
.pmodal-media .wframe-ledger { height: 100%; }
.pmodal .ledger { max-width: none; }
.pmodal-panel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  overflow-y: auto;
}
.pmodal-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; cursor: pointer; color: var(--gold-deep); font-size: 0.9rem; padding: 0.5rem; z-index: 2; }
.pmodal-close:hover { color: var(--ink); }
.pmodal-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  padding-right: 2.5rem;
}
.pmodal-copy { color: var(--ink-soft); max-width: 32rem; }
.pmodal-tags { color: var(--ink-soft); line-height: 2; }
.pmodal-link a { color: var(--gold-deep); text-decoration: none; }
.pmodal-link a:hover { color: var(--ink); }
.pmodal-nav { margin-top: auto; display: flex; justify-content: flex-end; gap: 1rem; padding-top: 1rem; }
.pmodal-arrow { background: none; border: none; cursor: pointer; color: var(--gold-deep); font-size: 0.9rem; padding: 0.5rem; }
.pmodal-arrow:hover { color: var(--ink); }

@media (max-width: 860px) {
  .pmodal-card { grid-template-columns: 1fr; height: auto; max-height: 92svh; overflow-y: auto; }
  .pmodal-media { min-height: 16rem; height: 40svh; }
  .pmodal-media .wrow-media { padding: 1rem; }
}

.wrow-meta {
  color: var(--paper-on-palm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  opacity: 0.22;
  transition: opacity 0.6s var(--ease-out);
}
.wrow.open .wrow-meta { opacity: 1; }

.wrow-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.wrow-open {
  color: var(--gold);
  vertical-align: super;
  font-size: 0.65rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  white-space: nowrap;
}
.wrow.open .wrow-open { opacity: 1; }
.wrow-tags { color: var(--soft-on-palm); line-height: 2; }
.wrow-copy { color: var(--soft-on-palm); max-width: 30rem; }
.wrow-link a { color: var(--gold); }
.wrow-link a:hover { color: var(--paper-on-palm); }

/* El Ruco: typographic ledger fills the media area.
   Selectors keyed to .wframe-ledger/.ledger (not .wrow-ledger) because the
   modal clones only the figure's inner HTML, dropping the figure's classes. */
.wframe-ledger { background: var(--palm); height: min(72svh, 44rem); }
.ledger {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  max-width: 34rem;
  color: var(--soft-on-palm);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--line-on-palm);
  padding-bottom: 0.6rem;
}
.ledger-total {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 450;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--paper-on-palm);
  margin-top: 0.75rem;
}

/* ============ CLIENTS ============ */
.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
  padding: clamp(1.75rem, 4vh, 2.75rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.clients-label { color: var(--ink-soft); }
.clients-names {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}
.clients-names .dot { padding: 0 0.35rem; }

/* ============ MANIFESTO ============ */
.manifesto {
  background: var(--palm);
  padding: clamp(5rem, 14vh, 9rem) var(--gutter);
}
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--paper-on-palm);
  max-width: 62rem;
}
.manifesto-text .w {
  display: inline-block;
  opacity: 0.28;
  transform: translateY(0.15em);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.manifesto-text .w.on { opacity: 1; transform: none; }

/* ============ DIVIDER ============ */
.divider { position: relative; overflow: hidden; height: clamp(16rem, 55vh, 34rem); }
.divider img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

/* ============ SERVICES — Dentsu-scale rows ============ */
.services { padding: clamp(4rem, 10vh, 7.5rem) var(--gutter); }
.services .section-title { margin-bottom: clamp(3rem, 7vh, 5rem); }

.service-list { list-style: none; }
.service {
  border-top: 1px solid var(--line);
  padding: clamp(1.5rem, 3.5vh, 2.5rem) 0;
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service-row {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.service-num { color: var(--gold-deep); }
.service-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  transition: transform 0.5s var(--ease-out), color 0.4s var(--ease-out);
}
.service-arrow {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--gold);
  opacity: 0;
  transform: translateX(-0.6em);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.service:hover .service-name { transform: translateX(0.35rem); color: var(--gold-deep); }
.service:hover .service-arrow { opacity: 1; transform: none; }

.service-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2.5rem;
  padding-top: 1rem;
  padding-left: calc(0.75rem + clamp(1rem, 3vw, 2.5rem));
}
.service-detail > p:first-child { max-width: 38rem; color: var(--ink-soft); }
.service-price { color: var(--ink); white-space: nowrap; }

/* slide-in from the sides as you scroll */
html.js .slide-l, html.js .slide-r {
  opacity: 0.01;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js .slide-l { transform: translateX(-3.5rem); }
html.js .slide-r { transform: translateX(3.5rem); }
html.js .slide-l.in, html.js .slide-r.in { opacity: 1; transform: none; }

.services-note {
  margin-top: 2.25rem;
  color: var(--ink-soft);
}

/* ============ ABOUT ============ */
.about {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 10vh, 7.5rem) var(--gutter);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about-body p { max-width: 34rem; margin-bottom: 1.4rem; }
.about-body p + p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem;
}
.about-facts {
  list-style: none;
  margin-top: 2.25rem;
  color: var(--ink-soft);
}
.about-facts li {
  padding: 0.7rem 0;
  border-top: 1px dashed var(--line);
}

/* ============ FAQ ============ */
.faq {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 10vh, 7.5rem) var(--gutter);
}
.faq .section-title { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.faq-list { max-width: 46rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.5vh, 1.5rem) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.15rem;
  transition: color 0.4s var(--ease-out);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--gold-deep); }
.faq-mark { color: var(--gold-deep); font-size: 0.78rem; white-space: nowrap; }
.faq-mark::after { content: '[ + ]'; }
.faq-item[open] .faq-mark::after { content: '[ − ]'; }
.faq-a {
  color: var(--ink-soft);
  max-width: 38rem;
  padding: 0 0 clamp(1.25rem, 2.5vh, 1.75rem);
}

/* ============ CTA / FOOTER ============ */
.cta {
  background: var(--palm);
  color: var(--paper-on-palm);
  padding: clamp(5rem, 14vh, 9rem) var(--gutter) 1.75rem;
  text-align: center;
}
.cta-kicker { color: var(--soft-on-palm); margin-bottom: 1.5rem; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(3.2rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.cta .btn-wa { background: var(--paper); color: var(--ink); }
.cta .btn-wa:hover { background: var(--paper-on-palm); }
.btn-lg { font-size: 1.15rem; padding: 1.05rem 2rem; }
.cta-hint { color: var(--soft-on-palm); font-size: 0.95rem; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(4rem, 10vh, 7rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-palm);
  color: var(--soft-on-palm);
}
.footer .locale-line { display: flex; gap: 0.6rem; }
.footer .locale-line .sep { color: var(--gold); }

/* ============ REVEALS ============ */
html.js .reveal {
  opacity: 0.01;
  transform: translateY(1.4rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .slide-l, html.js .slide-r { opacity: 1; transform: none; transition: none; }
  .manifesto-text .w { opacity: 1; transform: none; transition: none; }
  .btn, .service-name, .service-arrow { transition: none; }
  html.js .h-rise, html.js .h-fade { opacity: 1; transform: none; transition: none; }
  html.js .gate { transform: none; transition: none; }
  .ticker-track { animation: none; }
  .hero-title .line { transform: none !important; }
  .case-media img, .divider img { transform: none !important; height: 100%; }
  .work-track { scroll-behavior: auto; }
  .hseq { height: auto; }
  .hseq-pin { position: relative; height: 100svh; }
  .hseq-bg .frame, .hseq-caption .cap { transition: none; }
  .wrow-meta, .wrow-open { transition: none; }
  .wframe { clip-path: none !important; }
  .wframe img { width: 100%; }
  .wshot-win img { transition: none; }
  .pmodal-card { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .wrow { grid-template-columns: 1fr; min-height: 0; }
  .wrow-media { padding: 1.5rem var(--gutter); }
  .wframe { height: 44svh; }
  .wrow-meta { padding: 2rem var(--gutter) 2.75rem; }
  .wrow-copy { font-size: 0.95rem; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hseq { height: 240vh; }
  .hseq-util-right span:not(#clock):not(.sep) { display: none; }
  .hero-title { font-size: clamp(2.4rem, 10.6vw, 4rem); }
  html.es .hero-title { font-size: clamp(2.2rem, 9.6vw, 3.6rem); }
  .hero-title .line-2 { padding-left: clamp(1rem, 6vw, 2rem); }
  .hero-title .line-3 { padding-left: 0; }
  .hseq-caption .cap { font-size: 0.65rem; }
  .service-detail { padding-left: 0; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 460px) {
  .btn-nav span.l-en, .btn-nav span.l-es { display: none; }
  html.es .btn-nav span.l-es { display: none; }
  .btn-nav { padding: 0.55rem 0.8rem; }
}
