/* Syncretic — homepage adaptation of the Punto Kardinal engine. Palette from syncretic.mx (plum / coral / cream),  Aeonik + DraftB (the client's own licensed fonts).
 * Motion engine: in-house. */
/* Instrument Sans (condensed, caps) is kept ONLY for the hero marquee and the giant "Explore" word, as in the Punto Kardinal build */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(fonts/instrument-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "Aeonik"; src: url(fonts/Aeonik-Regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url(fonts/Aeonik-Medium.woff) format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url(fonts/Aeonik-Bold.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DraftB"; src: url(fonts/DraftB-Medium.woff) format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "DraftB"; src: url(fonts/DraftB-Bold.woff) format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ground: #f2f2ed;   /* Syncretic cream */
  --ink: #340c29;      /* Syncretic deep plum */
  --plum2: #61164b;    /* Syncretic mid plum (Decoding Consumption / cases) */
  --accent: #f05365;   /* Syncretic coral */
  --menu-bg: var(--accent);
  --display: "DraftB", "Aeonik", system-ui, sans-serif;
  --ease: cubic-bezier(0.7, 0.6, 0, 1);
  /* set by JS (and inline in <head> for first paint) */
  --vw: 1vw;
  --svh: 1svh;
  --s: 1;
  --stamp-k: 1;
  --pad: calc(var(--vw) * 4.5 * var(--s));
  --gap: calc(var(--vw) * 2.601 * var(--s));
  --hero-box: calc(var(--vw) * 20 * var(--s));
  --fs-stamp: max(11.5px, calc(var(--vw) * 1.05 * var(--s) * var(--stamp-k)));
  --fs-body: max(13px, calc(var(--vw) * 1.25 * var(--s) * var(--stamp-k)));
  --fs-display: calc(var(--vw) * 16.5 * var(--s));
  --fs-quote: calc(var(--vw) * 6.2 * var(--s));
  --sec: calc(var(--vw) * 8 * var(--s));
  --nav-h: calc(var(--vw) * 5.6 * var(--s));
  --btn-h: max(34px, calc(var(--vw) * 3.356 * var(--s)));
  --btn-b: calc(var(--pad) * 0.8);
  --btn-w: calc(var(--vw) * 10.6 * var(--s));
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }

html { background: var(--ground); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.preloader-pending,
html.preloader-pending body { background: var(--ink); }
html.preloader-pending body.preloader-exit { background: var(--ground); }

html, body {
  margin: 0;
  color: var(--ink);
  font-family: "Aeonik", system-ui, sans-serif;
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body { overflow: hidden; } /* the page is scrolled by the in-house smooth scroller, never natively */
body.native-scroll { overflow-x: hidden; overflow-y: auto; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
p, h1, h2, h3, ul, blockquote, address { margin: 0; padding: 0; font-style: normal; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.foot :focus-visible { outline-color: currentColor; }

/* ---------- hide chrome until the opening hands off ---------- */
body:not(.is-ready) .logo,
body:not(.is-ready) .nav-link,
body:not(.is-ready) .lang-btn,
body:not(.is-ready) .site-nav__actions,
body:not(.is-ready) .hero-content,
body:not(.is-ready) .marquee-reveal { visibility: hidden; }
body:not(.is-ready) .hero-visual { clip-path: inset(50% 50% 50% 50%); }

/* ---------- preloader ---------- */
#site-preloader { position: fixed; inset: 0; z-index: 1200; pointer-events: none; color: var(--ground); }
html:not(.preloader-pending) #site-preloader { display: none; }
.site-preloader__bg { position: absolute; inset: 0; background: var(--ink); z-index: 1; }
.site-preloader__stage { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.site-preloader__frames { position: relative; width: var(--hero-box); height: var(--hero-box); overflow: hidden; }
.site-preloader__frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(50% 50% 50% 50%); }
.site-preloader__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform-origin: center; }
.site-preloader__counter {
  --digit: calc(var(--vw) * 1.736 * var(--s));
  position: absolute; left: 50%; bottom: max(6.5vh, 2.5rem); transform: translateX(-50%); z-index: 4; visibility: hidden;
}
html.counter-init .site-preloader__counter { visibility: visible; }
.site-preloader__counter-mask { display: flex; overflow: hidden; clip-path: inset(0); line-height: 1; height: var(--digit); }
.site-preloader__number-wrapper { display: flex; }
.site-preloader__digit {
  width: 0.65em; height: var(--digit); overflow: hidden;
  font: 500 var(--digit) / 1 "DraftB", sans-serif;
  letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--ground);
}
.site-preloader__digit-inner { display: flex; flex-direction: column; }
.site-preloader__number { display: flex; align-items: center; justify-content: center; height: var(--digit); flex: 0 0 var(--digit); }
@media (max-width: 650px) and (orientation: portrait) {
  .site-preloader__counter { bottom: max(8vh, 2rem); }
  .site-preloader__digit { --digit: 5.5vw; }
}

/* ---------- shell / stage ---------- */
#selection-shell { position: relative; width: 100%; }
#page-stage { position: relative; width: 100%; background: var(--ground); z-index: 2; }
#page-flow { position: relative; width: 100%; }

/* ---------- nav (fixed to the viewport) ---------- */
.site-nav { position: absolute; inset: 0 0 auto 0; z-index: 10; height: var(--nav-h); pointer-events: none; } /* part of the hero: it leaves with it */
.site-nav > * { pointer-events: auto; }
.logo { position: absolute; top: calc(var(--pad) * 0.5); left: 0; right: 0; margin-inline: auto; /* centred without transform: GSAP owns the transform (intro) and would freeze a translateX(-50%) as px */ width: calc(var(--vw) * 17 * var(--s)); line-height: 0; transition: top 0.5s var(--ease), width 0.5s var(--ease); }
.logo a { display: block; }
.logo img { width: 100%; height: auto; }
.nav-link { font-size: var(--fs-stamp); line-height: 1; white-space: nowrap; }
.nav-left { position: absolute; left: var(--pad); top: calc(var(--pad) * 0.62 + var(--vw) * 0.7 * var(--s)); display: flex; align-items: baseline; gap: 2em; font-size: var(--fs-stamp); line-height: 1; transition: top 0.5s var(--ease); }
.nav-cta { border: 1px solid currentColor; padding: 0.95em 1.5em; margin: -0.95em 0; }
.nav-right { position: absolute; right: var(--pad); top: calc(var(--pad) * 0.62 + var(--vw) * 0.7 * var(--s)); display: flex; align-items: baseline; gap: 2em; font-size: var(--fs-stamp); line-height: 1; transition: top 0.5s var(--ease); }
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.3em; border-bottom: 1px solid currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.65s var(--ease);
}
.link-underline:hover::after, .link-underline:focus-visible::after { transform: scaleX(1); transform-origin: 0% 50%; }


.site-nav__actions {
  position: fixed; right: var(--pad); bottom: var(--btn-b); z-index: 100;
  display: flex; align-items: stretch; gap: 0.4em;
}
.our-selection-btn {
  display: inline-flex; align-items: center; gap: 0.9em; height: var(--btn-h); padding: 0 1.5em;
  border: 1px solid var(--ink); font-size: var(--fs-stamp); line-height: 1; white-space: nowrap; color: var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, var(--ground) 50%) 100% 0 / 200% 100% no-repeat;
  transition: background-position 0.75s var(--ease), color 0.75s var(--ease);
}
.our-selection-btn:hover, .our-selection-btn:focus-visible { background-position: 0 0; color: var(--ground); }
.our-selection-btn svg { width: 0.9em; height: 0.9em; flex: none; }

/* ---------- hero stage (pinned by transform, grows on scroll) ---------- */
.hero-stage { position: relative; height: calc(var(--svh) * 300); z-index: 1; }
.hero-pin { position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--svh) * 100); overflow: clip; will-change: transform; }
.hero-visual {
  position: absolute; z-index: 5; left: 50%; top: calc(var(--svh) * 41.4);
  width: var(--hero-box); height: var(--hero-box); overflow: hidden;
}
.hero-visual img, .hero-visual video { width: 100%; height: 100%; object-fit: cover; object-position: center; transform-origin: 46% 24%; transform: scale(1.2); object-position: 38% 50%; }
.marquee {
  position: absolute; z-index: 0; left: 0; width: 100vw; top: calc(var(--svh) * 41.4); transform: translateY(-50%);
  pointer-events: none; overflow: visible; overflow-y: clip; padding: calc(var(--fs-display) * 0.3) 0; /* room for descenders (g) and the roll of the intro reveal; symmetric so the text stays centred on the square */
}
.marquee-reveal { transform-origin: 50% 100%; }
.marquee-scroll { display: flex; width: max-content; will-change: transform; }
.marquee-collection { flex-shrink: 0; padding-right: var(--gap); }
.marquee-text {
  display: block; white-space: nowrap; font-size: var(--fs-display); line-height: 1.08;
  font-weight: 500; font-stretch: 100%; letter-spacing: -0.04em; word-spacing: 0.1em; padding-right: var(--gap);
}
.marquee-text em, .quote__text em, .closing__text em, .tile__title em { font-style: italic; }
.hero-content {
  position: absolute; z-index: 1; left: 50%; bottom: calc(var(--svh) * 15); transform: translateX(-50%);
  width: min(42vw, 100% - 2 * var(--pad)); max-width: 35vw; text-align: center;
}
.hero-sub { font-size: var(--fs-body); line-height: 1.3; letter-spacing: 0.02em; text-wrap: balance; }
.hero-sub a, .hero-sub span { display: block; }
.hero-price {
  display: inline-block; margin: 2em 0 0; padding: 0.55em 1em 0.5em; font-size: max(11px, calc(var(--fs-body) * 0.62)); letter-spacing: 0.08em; line-height: 1;
  --b-t: 1; --b-r: 1; --b-b: 1; --b-l: 1;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / calc(100% * var(--b-t)) 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 0 / 1px calc(100% * var(--b-r)) no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 100% / calc(100% * var(--b-b)) 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 1px calc(100% * var(--b-l)) no-repeat;
}
.tile__title, .quote__text, .studies__title, .studies__list li, .closing__text, .foot__big, .selection-card__title { word-spacing: 0.12em; }
.split-line { display: block; line-height: inherit; transform-origin: 50% 100%; }

/* ---------- sections that slide over the hero ---------- */
.tiles, .quote, .band, .studies, .closing, .foot { position: relative; z-index: 2; background: var(--ground); }

/* tiles (the three hero tiles of the current site) */
.tiles { padding: calc(var(--sec) * 0.9) var(--pad) calc(var(--sec) * 0.6); }
.tile {
  position: relative; display: grid; grid-template-columns: 1fr 5fr auto; align-items: baseline; gap: var(--gap);
  padding: calc(var(--vw) * 2 * var(--s)) calc(var(--vw) * 2.2 * var(--s)); border-top: 1px solid var(--ink); overflow: hidden; isolation: isolate;
}
.tile:last-child { border-bottom: 1px solid var(--ink); }
.tile__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.8s cubic-bezier(0.18, 0.13, 0, 0.99); z-index: -1; }
.tile__kicker { font-size: var(--fs-stamp); display: block; }
.tile__title { display: block; font-size: calc(var(--vw) * 3.5 * var(--s)); text-wrap: balance; line-height: 1; font-weight: 500; font-stretch: 100%; letter-spacing: -0.04em; }
.tile__go { font-size: calc(var(--vw) * 3 * var(--s)); line-height: 1; font-weight: 500; font-stretch: 100%; transition: transform 0.65s var(--ease); }
@media (hover: hover) {
  .tile:hover .tile__fill { transform: scaleY(1); }
  .tile:hover .tile__go { transform: rotate(90deg); }
}

/* differentiator quotes (the slider quotes of the current site) */
.quote { padding: var(--sec) var(--pad); min-height: calc(var(--svh) * 78); display: flex; flex-direction: column; justify-content: center; }
.quote__n { font-size: var(--fs-stamp); margin-bottom: 2em; display: flex; gap: 1em; align-items: center; }
.quote__n::after { content: ""; width: calc(var(--vw) * 4 * var(--s)); border-top: 1px solid currentColor; }
.quote__text { font-size: var(--fs-quote); line-height: 1.02; font-weight: 500; font-stretch: 100%; letter-spacing: -0.04em; max-width: 86vw; text-wrap: balance; }

/* full-bleed parallax photo bands */
.band { height: calc(var(--svh) * 85); overflow: hidden; margin: 0; background: var(--ink); }
.band img, .band video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; will-change: transform; transform-origin: 50% 50%; }

/* tipos de estudios */
.studies { padding: var(--sec) var(--pad); display: grid; grid-template-columns: 7fr 5fr; gap: calc(var(--gap) * 2); align-items: start; }
.studies > * { min-width: 0; }
.studies__title { font-size: calc(var(--vw) * 9 * var(--s)); line-height: 0.95; font-weight: 500; font-stretch: 100%; letter-spacing: -0.04em; text-wrap: balance; }
.studies__p { font-size: var(--fs-body); line-height: 1.3; letter-spacing: 0.02em; text-wrap: pretty; }
.studies__list { margin: calc(var(--vw) * 2.4 * var(--s)) 0; border-top: 1px solid var(--ink); }
.studies__list li { display: grid; grid-template-columns: auto 1fr; gap: 1.2em; align-items: baseline; padding: 0.9em 0; border-bottom: 1px solid var(--ink); font-size: calc(var(--vw) * 2.2 * var(--s)); line-height: 1; font-weight: 500; font-stretch: 100%; letter-spacing: -0.03em; }
.studies__list li span:first-child { font-size: var(--fs-stamp); font-weight: 600; font-stretch: 100%; letter-spacing: 0.03em; }
.studies__list li > span { display: block; }
.studies__cta { font-size: var(--fs-body); display: inline-block; }
body.reduced .hero-stage { height: calc(var(--svh) * 100); }
body.reduced .hero-visual { top: calc(var(--svh) * 41.4); }

/* (newsletter block removed per client) */
/* closing quote band */
.closing { background: var(--accent); padding: calc(var(--sec) * 1.2) var(--pad); height: calc(var(--svh) * 100); min-height: calc(var(--svh) * 100); display: flex; align-items: center; }
/* with scroll motion on, the stage background itself morphs cream -> coral -> plum; these sections go transparent so the wash shows through */
body.wash .closing, body.wash .foot { background: transparent; }
.closing__text { font-size: calc(var(--vw) * 7.4 * var(--s)); line-height: 1; font-weight: 500; font-stretch: 100%; letter-spacing: -0.04em; text-wrap: balance; max-width: 90vw; }

/* footer = the "next" zone (the pull zone), one full viewport */
.foot { position: relative; background: var(--ink); color: var(--ground); height: calc(var(--svh) * 100); min-height: calc(var(--svh) * 100); padding: calc(var(--pad) * 1.5) var(--pad) calc(var(--btn-b) + var(--btn-h) + var(--pad) * 0.6); display: flex; flex-direction: column; justify-content: center; --pull: 0%; }
.foot__next { position: relative; display: flex; flex-direction: column; gap: calc(var(--vw) * 1.2 * var(--s)); }
.foot__kicker { font-size: var(--fs-stamp); opacity: 0.8; display: flex; align-items: center; gap: 1em; }
.foot__kicker::after { content: ""; width: calc(var(--vw) * 4 * var(--s)); border-top: 1px solid currentColor; }
/* the giant word fills with lime as the visitor keeps scrolling: the progress is readable at a glance */
.foot__big { position: relative; font-size: calc(var(--vw) * 35 * var(--s)); line-height: 0.92; font-weight: 500; font-stretch: 100%; letter-spacing: -0.04em; word-spacing: 0.12em; margin: 0 0 0 -0.04em; white-space: nowrap; }
.foot__word { display: block; color: rgba(242, 242, 237, 0.28); }
.foot__word--fill { position: absolute; inset: 0; color: var(--accent); clip-path: inset(0 calc(100% - var(--pull)) 0 0); }
/* copyright + privacy sit on the exact horizontal axis of the floating Explorar button */
.foot__bottom { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--btn-b) + (var(--btn-h) - var(--fs-stamp)) / 2); display: flex; justify-content: space-between; align-items: center; gap: var(--gap); padding-right: calc(var(--btn-w) + var(--gap)); font-size: var(--fs-stamp); line-height: 1; }

/* pull-to-continue ring (cursor loader) */
.cursor-loader {
  --size: calc(var(--vw) * 7.5 * var(--s));
  --p: 0%;
  position: fixed; left: 0; top: 0; z-index: 400; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  display: grid; place-items: center; pointer-events: none; color: var(--ring, #fff); opacity: 0; transform: scale(0);
  transition: opacity 0.5s cubic-bezier(0.15, 0.32, 0.2, 0.99), transform 0.5s cubic-bezier(0.15, 0.32, 0.2, 0.99);
  will-change: transform, opacity;
}
.cursor-loader.is-active { opacity: 1; transform: scale(1); }
.cursor-loader.is-exiting { opacity: 0; transform: scale(0); transition-duration: 0.75s; }
.cursor-loader::before {
  content: ""; position: absolute; inset: 0; border-radius: 50% !important;
  background: conic-gradient(from -90deg, var(--ring, #fff) var(--p), color-mix(in srgb, var(--ring, #fff) 28%, transparent) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
}
.cursor-loader span { font-size: max(11px, calc(var(--vw) * 1 * var(--s))); letter-spacing: 0.03em; }

/* ---------- selection menu ---------- */
#selection-menu:focus { outline: none; }
#selection-menu {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--menu-bg); visibility: hidden; pointer-events: none;
}
.selection-cards {
  position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  height: calc(var(--svh) * 75); padding: 0 var(--pad) var(--pad); pointer-events: none;
}
.selection-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: var(--ground); background: var(--ink); letter-spacing: -0.01em; }
.selection-card__panel {
  position: relative; flex: 1.85 1 0; min-height: 0; display: grid; grid-template: minmax(0, 1fr) auto / auto 1fr auto;
  padding: calc(var(--vw) * 1.85 * var(--s)); overflow: hidden; transition: color 0.8s cubic-bezier(0.18, 0.13, 0, 0.99);
}
.selection-card__panel::before {
  content: ""; position: absolute; inset: 0; background: var(--ground); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.8s cubic-bezier(0.18, 0.13, 0, 0.99); z-index: 0;
}
.selection-card__panel > * { position: relative; z-index: 1; }
.selection-card__symbol { grid-column: 1; grid-row: 1; position: relative; display: block; width: calc(var(--vw) * 2.9 * var(--s)); align-self: start; }
.selection-card__symbol img { display: block; width: 100%; height: auto; }
.selection-card__symbol .sym-b { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.8s cubic-bezier(0.18, 0.13, 0, 0.99); }
.selection-card__symbol .sym-a { transition: opacity 0.8s cubic-bezier(0.18, 0.13, 0, 0.99); }
.selection-card__title {
  /* anchored to the SAME baseline in all four cards: the bottom edge of the last line of the left paragraph
     (= panel padding), so the title no longer floats when the paragraph is longer or shorter */
  position: absolute; right: calc(var(--vw) * 1.85 * var(--s)); bottom: calc(var(--vw) * 1.85 * var(--s));
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: calc(var(--vw) * 3.4 * var(--s)); line-height: 1; font-weight: 500; font-stretch: 100%; letter-spacing: -0.04em;
}
.selection-card__desc { grid-column: 1; grid-row: 3; align-self: end; max-width: calc(var(--vw) * 10.5 * var(--s)); font-size: calc(var(--vw) * 0.85 * var(--s)); line-height: 1.3; font-weight: 600; letter-spacing: 0.02em; opacity: 0.85; }
.selection-card__cover { position: relative; height: calc(var(--svh) * 20); width: 100%; overflow: hidden; flex: none; background: var(--ink); }
.selection-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.18, 0.13, 0, 0.99); }
@media (hover: hover) {
  .selection-card:hover .selection-card__panel { color: var(--ink); }
  .selection-card:hover .selection-card__panel::before { transform: scaleY(1); }
  .selection-card:hover .selection-card__cover img { transform: scale(1.045); }
  .selection-card:hover .selection-card__symbol .sym-a { opacity: 0; }
  .selection-card:hover .selection-card__symbol .sym-b { opacity: 1; }
}

body.selection-open #selection-menu { visibility: visible; pointer-events: auto; }
body.selection-open .selection-cards { pointer-events: auto; }
body.selection-open #page-stage {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 100svh; overflow: clip; z-index: 3; cursor: pointer; background: var(--ground);
}
body.selection-open #page-stage * { cursor: inherit; }

#page-stage-incoming {
  position: fixed; left: 0; right: 0; top: 0; width: 100%; height: 100svh; overflow: clip; z-index: 6; pointer-events: none;
  background: var(--ink); color: var(--ground); display: grid; place-items: center;
}
#page-stage-incoming .incoming-title { white-space: nowrap; font-size: var(--fs-display); line-height: 1; font-weight: 500; font-stretch: 100%; letter-spacing: -0.04em; text-align: center; }
.selection-swap-separator { position: fixed; left: 0; right: 0; top: 0; height: 100svh; z-index: 5; background: #000; opacity: 0; pointer-events: none; }

/* "close" cue centered on the strip of the shrunk page (production menu only: body.has-strip is set by JS) */
.menu-close { position: fixed; left: 0; right: 0; top: 0; height: var(--strip-h, 0px); z-index: 5; display: none; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 0.4s ease 0.9s; }
body.selection-open.has-strip .menu-close { display: flex; opacity: 1; }
.menu-close span { background: var(--accent); color: var(--ink); padding: 0.65em 1.2em 0.6em; font-size: var(--fs-stamp); letter-spacing: 0.08em; line-height: 1; }

/* ---------- tablet ---------- */
@media (min-width: 651px) and (max-width: 1024px) {
  .selection-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 33.5svh); gap: 2svh; padding: 0 3.6svh 3.6svh; height: auto; }
  .selection-card__cover { height: auto; flex: 1 1 0; }
  .selection-card__panel { flex: 1 1 0; }
  .selection-card__title { position: static; writing-mode: horizontal-tb; transform: none; grid-column: 1 / -1; grid-row: 2; align-self: end; justify-self: start; font-size: 2.8svh; }
  .selection-card__desc { grid-row: 1; max-width: 58%; font-size: 1.5svh; }
}

/* ---------- mobile ---------- */
@media (max-width: 650px) {
  :root { --stamp-k: 1.25; --sec: calc(var(--vw) * 14); --nav-h: calc(var(--vw) * 24); --fs-quote: calc(var(--vw) * 11); --fs-display: calc(var(--vw) * 30); }
  .site-nav { display: flex; align-items: center; justify-content: space-between; height: auto; padding: calc(var(--vw) * 6) var(--pad) 0; }
  .logo { position: static; margin: 0; width: calc(var(--vw) * 31); }
  .nav-right { position: static; gap: 0; }
  .nav-right > .nav-link:not(.nav-cta) { display: none; }
  .nav-cta { padding: 0.85em 1.2em; margin: 0; }
  .hero-visual { top: calc(var(--svh) * 28); }
  .marquee { top: calc(var(--svh) * 53); }
  .hero-content { max-width: 80vw; width: 80vw; bottom: calc(var(--vw) * 30); }
  :root { --btn-h: calc(var(--vw) * 11.3); --btn-b: calc(var(--vw) * 13); }
  .site-nav__actions { left: 0; right: 0; justify-content: center; }
  .our-selection-btn, .btn { height: var(--btn-h); }
  .foot { height: auto; min-height: calc(var(--svh) * 86); justify-content: flex-start; padding: 24vw var(--pad) calc(var(--btn-b) + var(--btn-h) + 40vw); }
  .closing { height: auto; min-height: calc(var(--svh) * 50); padding: 20vw var(--pad); }
  .tile { grid-template-columns: 1fr auto; gap: 2vw; padding: 5vw 4vw; }
  .tile__kicker { grid-column: 1 / -1; }
  .tile__title { font-size: 6.6vw; }
  .tile__go { font-size: 8vw; }
  .quote { min-height: 46svh; }
  .quote__text { max-width: 100%; }
  .band { height: 70svh; }
  .studies { grid-template-columns: 1fr; gap: 8vw; }
  .studies__title { font-size: 18vw; }
  .studies__list li { font-size: 6.4vw; }
  .closing__text { font-size: 8.4vw; line-height: 1.06; max-width: 100%; text-wrap: pretty; }
  .foot__big { font-size: 30vw; }
  .foot__bottom { left: 3vw; right: 3vw; bottom: calc(var(--btn-b) + var(--btn-h) + 7vw); flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 2.4vw; padding-right: 0; text-align: center; line-height: 1; white-space: nowrap; font-size: 2.55vw; }
  .cursor-loader { --size: clamp(7rem, 30vw, 9rem); left: 50%; top: calc(50% + 125px); }
  .cursor-loader span { font-size: 12px; }
  .selection-cards { grid-template-columns: 1fr; grid-template-rows: repeat(4, min(18svh, calc((100svh - var(--pad) - var(--gap) * 4 - max(88px, 13svh)) / 4))); height: auto; }
  .selection-card { flex-direction: row; }
  .selection-card__panel { flex: 1.6 1 0; padding: calc(var(--vw) * 4); grid-template: auto 1fr / 1fr; }
  .selection-card__symbol { display: none; }
  .selection-card__title { position: static; writing-mode: horizontal-tb; transform: none; grid-column: 1; grid-row: 1; justify-self: start; align-self: start; margin: 0; font-size: calc(var(--vw) * 7.2); }
  .selection-card__desc { grid-column: 1; grid-row: 2; align-self: end; max-width: 33.9vw; font-size: max(11px, 3.1vw); }
  .selection-card__cover { height: auto; flex: 1 1 0; width: auto; }
  .hero-price { font-size: max(11px, 2.9vw); }
}

@media (max-width: 650px) and (max-height: 700px) {
  .selection-card__title { font-size: calc(var(--vw) * 6); }
  .selection-card__panel { padding: calc(var(--vw) * 3); }
}

@media (pointer: coarse) {
  .nav-left .nav-link, .nav-right > .nav-link, .studies__cta, .quote__cta, .closing__cta, .foot__bottom a { padding: 14px 10px; margin: -14px -10px; }
  .nav-link.link-underline::after, .studies__cta::after, .quote__cta::after, .closing__cta::after, .foot__bottom a::after { left: 10px; right: 10px; bottom: calc(14px - 0.3em); }
  .hero-sub a { padding: 6px 0; margin: -6px 0; }
  .logo a { padding: 6px 0; margin: -6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  #site-preloader { display: none !important; }
  .link-underline::after, .our-selection-btn, .btn, .selection-card__cover img, .selection-card__panel::before, .tile__fill, }

.quote__cta, .closing__cta { font-size: var(--fs-body); display: inline-block; margin-top: 2.4em; }
.closing__cta { color: inherit; }

/* hover roll (letters masked per-char; see rollify in app.js). The incoming copy is a ::after so the text exists once in the DOM */
.rw { display: inline-block; white-space: nowrap; }
.rc { position: relative; display: inline-block; clip-path: inset(-0.18em -0.1em -0.12em); }
.rc__a, .rc::after { display: inline-block; transition: transform 0.6s var(--ease) calc(var(--i, 0) * 16ms); }
.rc::after { content: attr(data-c); position: absolute; left: 0; top: 0; transform: translateY(125%); pointer-events: none; }
:is(a, button, .tile):is(:focus-visible) .rc__a { transform: translateY(-125%); }
:is(a, button, .tile):is(:focus-visible) .rc::after { transform: translateY(0); }
@media (hover: hover) {
  :is(a, button, .tile):hover .rc__a { transform: translateY(-125%); }
  :is(a, button, .tile):hover .rc::after { transform: translateY(0); }
}
.quote__cta, .closing__cta { align-self: flex-start; }

/* =====================================================================
   SYNCRETIC SECTIONS
   ===================================================================== */
h1, h2, h3, blockquote { text-wrap: balance; }
p { text-wrap: pretty; }
.tile__kicker, .quote__n, .foot__kicker, .hero-price, .our-selection-btn, .menu-close span, .cursor-loader span,
.studies__cta, .quote__cta, .closing__cta, .case__btn, .studies__list li span:first-child, .partners__eyebrow, .proof__by, .step__t, .cases__ctrl {
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
em { font-style: normal; color: var(--accent); }

/* partners: plum panel + brand marquee */
.partners { background: var(--ground); padding: var(--sec) var(--pad) calc(var(--sec) * 0.6); }
.partners__panel { background: var(--ink); color: var(--ground); padding: calc(var(--sec) * 1.1) 0 calc(var(--sec) * 1.05); text-align: center; overflow: clip; }
.partners__eyebrow { font-size: calc(var(--vw) * 1.7 * var(--s)); color: var(--accent); line-height: 1; }
.partners__p { max-width: 34em; margin: 1.6em auto 0; padding: 0 var(--pad); font-size: var(--fs-body); line-height: 1.55; }
.logos { margin-top: calc(var(--sec) * 0.95); overflow: clip; }
.logos__track { display: flex; width: max-content; animation: logos 42s linear infinite; }
.logos__set { display: flex; align-items: center; flex: none; }
.logos img { height: calc(var(--vw) * 3.4 * var(--s)); width: auto; max-width: none; margin-right: calc(var(--vw) * 6.5 * var(--s)); }
.logos img[src*="cafe-ole"], .logos img[src*="doritos"], .logos img[src*="gatorade"], .logos img[src*="pepsi"], .logos img[src*="fud"] { height: calc(var(--vw) * 4.8 * var(--s)); }
@keyframes logos { to { transform: translateX(-50%); } }

/* big text strip */
.strip { background: var(--ground); overflow: clip; padding: calc(var(--sec) * 0.5) 0; position: relative; z-index: 2; }
.strip__track { display: flex; width: max-content; font-size: calc(var(--vw) * 11.5 * var(--s)); line-height: 1.05; letter-spacing: -0.05em; white-space: nowrap; animation: strip 50s linear infinite; }
.strip__track span { padding-right: 0.5em; }
@keyframes strip { to { transform: translateX(-33.3333%); } }

/* breaking into LATAM */
.intro { position: relative; z-index: 2; background: var(--ground); padding: var(--sec) var(--pad); display: grid; grid-template-columns: 5fr 6fr; gap: calc(var(--gap) * 2); align-items: center; }
.intro > * { min-width: 0; }
.intro__fig { margin: 0; width: 72%; justify-self: center; aspect-ratio: 900 / 1747; max-height: calc(var(--svh) * 94); overflow: hidden; background: #f0e8d9; }
.intro__fig img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform-origin: 50% 50%; }
.intro__title { font-size: calc(var(--vw) * 5.4 * var(--s)); line-height: 1.02; color: var(--accent); }
.intro__p { margin-top: 1.5em; max-width: 34em; font-size: var(--fs-body); line-height: 1.55; }
.intro__p:first-of-type { margin-top: calc(var(--vw) * 2.6 * var(--s)); }

/* decoding consumption */
.decode { position: relative; z-index: 2; background: var(--plum2); color: var(--ground); padding: calc(var(--sec) * 1.3) var(--pad) 0; text-align: center; overflow: clip; }
.decode__title { font-size: calc(var(--vw) * 8.6 * var(--s)); line-height: 0.98; color: var(--accent); max-width: 7.4em; margin: 0 auto; }
.decode__copy { max-width: 36em; margin: calc(var(--vw) * 2.6 * var(--s)) auto 0; font-size: var(--fs-body); line-height: 1.6; }
.decode__copy p + p { margin-top: 1.1em; }
/* the artwork's own shadows fade into #61164b (its edge colour = this section's background): full-bleed, no box, no mask, no parallax */
.decode__fig { position: relative; z-index: 0; margin: calc(var(--vw) * -15 * var(--s)) calc(var(--pad) * -1) calc(var(--vw) * -9 * var(--s)); width: calc(100% + var(--pad) * 2); }
.decode__title, .decode__copy { position: relative; z-index: 1; }
.decode__fig img { display: block; width: 100%; height: auto; }

/* case studies carousel: one full viewport, edge to edge; arrows at the sides, mid-height */
/* the outer .cases gets its height from app.js (slide + hold distance); .cases__pin is held by transform for that distance, then scrolls away revealing Services */
.cases { --cases-bg: var(--plum2); position: relative; z-index: 2; background: var(--cases-bg); color: var(--ground); } /* --cases-bg is scrubbed plum -> cream while the slide is held (app.js), so Services follows with no seam */
.cases__pin { position: relative; min-height: calc(var(--svh) * 100); box-sizing: border-box; padding: calc(var(--pad) * 0.6) 0; display: flex; will-change: transform; }
body.native-scroll .cases { height: auto !important; }
.cases__viewport { flex: 1; min-width: 0; overflow: clip; margin: 0 var(--pad); }
.cases__track { display: flex; height: 100%; will-change: transform; }
.case { position: relative; flex: 0 0 100%; min-height: calc(var(--svh) * 100 - var(--pad) * 1.2); display: grid; align-items: center; overflow: hidden; background: var(--accent); }
.case__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.case__body { position: relative; z-index: 1; width: 56%; padding-left: calc(var(--vw) * 11 * var(--s)); }
.case__title { font-size: calc(var(--vw) * 4.6 * var(--s)); line-height: 1.04; color: var(--ground); }
.case__p { margin-top: 1.1em; max-width: 34em; font-size: var(--fs-body); line-height: 1.55; color: var(--ground); }
.case__title + .case__p { margin-top: calc(var(--vw) * 1.8 * var(--s)); }
.case__btn { display: inline-block; margin-top: 2.2em; background: var(--ground); color: var(--accent); padding: 1.05em 1.7em; font-size: var(--fs-stamp); line-height: 1; }
.cases__ctrl { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-size: var(--fs-stamp); }
.cases__arrow { position: absolute; top: 50%; translate: -50% -50%; pointer-events: auto; width: 3.6em; height: 3.6em; border: 0; background: var(--accent);  display: grid; place-items: center; font-size: 1.6em; line-height: 1; color: var(--ground); overflow: clip; isolation: isolate; transition: color 0.55s var(--ease); }
.cases__arrow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ground); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.6s var(--ease); }
.cases__arrow[data-case="-1"] { left: var(--pad); }
.cases__arrow[data-case="1"] { left: auto; right: var(--pad); translate: 50% -50%; }
@media (hover: hover) { .cases__arrow:hover, .cases__arrow:focus-visible { color: var(--accent); } .cases__arrow:hover::before, .cases__arrow:focus-visible::before { transform: scaleX(1); transform-origin: 0% 50%; } }

/* services list (reuses the studies layout) */
.studies { background: var(--ground); }

/* syncretic method: ONE row of six cards that travels sideways while you scroll (section height + pin are set in app.js; pin = transform, like the hero) */
.method { position: relative; z-index: 2; background: var(--ground); text-align: center; }
.method__pin { position: relative; height: calc(var(--svh) * 100); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: calc(var(--svh) * 4); overflow: clip; will-change: transform; }
.method__logo { display: block; align-self: center; width: min(32vw, 440px); height: auto; }
.steps { --card-h: calc(var(--svh) * 66); display: flex; gap: calc(var(--vw) * 5.5 * var(--s)); width: max-content; padding: 0 var(--pad); text-align: left; will-change: transform; }
.step { position: relative; flex: none; height: var(--card-h); width: calc(var(--card-h) * 640 / 1117); }
.step__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.step__n { position: absolute; left: 12%; top: 6%; font-size: calc(var(--vw) * 3.8 * var(--s)); line-height: 1; color: var(--ink); }
.step__n::after { content: ""; display: block; width: 0.35em; margin-top: 0.22em; border-top: 0.07em solid var(--accent); }
.step__body { position: absolute; left: 12%; right: 10%; bottom: 11%; }
.step__t { font-size: calc(var(--vw) * 1.55 * var(--s)); line-height: 1.1; color: var(--ink); }
.step__p { margin-top: 0.7em; font-size: var(--fs-body); line-height: 1.5; }
body.native-scroll .method { height: auto !important; }
body.native-scroll .method__pin { height: auto; overflow-x: auto; padding: var(--sec) 0; }

/* testimonial */
.proof { position: relative; z-index: 2; background: var(--ground); padding: calc(var(--sec) * 1.3) var(--pad); display: grid; grid-template-columns: auto 1fr; gap: calc(var(--gap) * 1.2); align-items: start; }
.proof__icon { width: calc(var(--vw) * 9 * var(--s)); height: auto; }
.proof__fig { margin: 0; min-width: 0; }
.proof__text { font-size: calc(var(--vw) * 3.4 * var(--s)); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; max-width: 21em; }
.proof__by { margin-top: 1.8em; color: var(--accent); font-size: calc(var(--vw) * 1.4 * var(--s)); line-height: 1.25; max-width: 30em; }

.foot__links { display: flex; gap: calc(var(--vw) * 2.4 * var(--s)); }

@media (max-width: 650px) {
  .intro { grid-template-columns: 1fr; gap: 10vw; }
  .intro__fig { width: 78%; }
  .decode__title { font-size: 12vw; }
  .decode__fig { width: calc(100% + var(--pad) * 2); margin-top: -9vw; margin-bottom: -7vw; }
  /* phones: the slide is exactly one screen tall (so it holds like on desktop and the colour change finishes before Services shows); text centred, no picture (it cropped badly) */
  .cases__pin { height: calc(var(--svh) * 100); min-height: 0; }
  .case { display: flex; flex-direction: column; justify-content: center; align-items: stretch; min-height: 0; }
  .case__bg { display: none; }
  .case__body { width: 100%; padding: 0 12vw; }
  .case__title { font-size: 8.6vw; }
  .case__p { font-size: 3.7vw; }
  .cases__arrow { top: 50%; width: 11vw; height: 11vw; font-size: 4.4vw; }
    .studies { padding-top: 30vw; }
  .steps { --card-h: calc(var(--svh) * 62); gap: 9vw; }
  .method__logo { width: 60vw; }
  .step__t { font-size: 5.2vw; }
  .proof { grid-template-columns: 1fr; gap: 8vw; }
  .proof__icon { width: 22vw; }
  .proof__text { font-size: 7.4vw; }
  .proof__by { font-size: 3.6vw; }
  .foot__links { flex-direction: row; align-items: center; gap: 2.4vw; }
  .partners__eyebrow { font-size: 4.2vw; }
}
@media (prefers-reduced-motion: reduce) { .logos__track, .strip__track { animation: none; } }

/* header over the full-bleed video: logo + links go cream */
.logo a { display: grid; }
.logo a > img { grid-area: 1 / 1; }
.logo img { height: auto; }
.logo__w { opacity: 0; }
.logo__p, .logo__w { transition: opacity 0.4s var(--ease); }
.site-nav { transition: color 0.4s var(--ease); }
body.hero-dark .site-nav { color: var(--ground); }
body.hero-dark .logo__p { opacity: 0; }
body.hero-dark .logo__w { opacity: 1; }

/* =====================================================================
   TYPE ROLES (mirrors syncretic.mx custom.css): body/p Aeonik 400 · links/nav Aeonik 500 · buttons Aeonik 700 caps · h1 DraftB 500 · h2/h3 DraftB 700
   ===================================================================== */
.tile__title, .studies__title, .closing__text, .selection-card__title,
#page-stage-incoming .incoming-title, .stub h1 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; }
.intro__title, .case__title, .proof__text { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.decode__title { font-family: "Aeonik", sans-serif; font-weight: 500; letter-spacing: -0.02em; }
.partners__eyebrow, .step__t, .proof__by { font-family: var(--display); font-weight: 700; }
.nav-link, .studies__list li, .tile__kicker { font-family: "Aeonik", sans-serif; font-weight: 500; }
.tile__kicker, .quote__n, .foot__kicker, .hero-price, .our-selection-btn, .menu-close span, .cursor-loader span,
.studies__cta, .quote__cta, .closing__cta, .case__btn, .studies__list li span:first-child, .cases__ctrl { font-family: "Aeonik", sans-serif; font-weight: 700; }
.step__n { font-family: var(--display); font-weight: 700; }

/* DraftB/Aeonik are not condensed: drop the engine's extra word spacing */
.tile__title, .quote__text, .studies__title, .studies__list li, .closing__text, .foot__big, .selection-card__title, .marquee-text { word-spacing: 0; }

/* hero marquee + giant EXPLORE: the condensed caps face of the Punto Kardinal build (Instrument Sans, width 75%) */
.marquee-text, .strip__track, .foot__big { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 476; font-stretch: 75%; text-transform: uppercase; letter-spacing: -0.05em; }
.marquee-text, .strip__track { word-spacing: 0.1em; }
.foot__big { word-spacing: 0.12em; }

/* ES / EN switch (header, right) */
.lang-btn { display: inline-flex; gap: 0.35em; font-family: "Aeonik", sans-serif; font-weight: 500; font-size: inherit; line-height: 1; }
.lang-btn i { font-style: normal; opacity: 0.45; }
.lang-btn [data-l] { opacity: 0.45; transition: opacity 0.3s; position: relative; }
html[lang="es"] .lang-btn [data-l="es"], html[lang="en"] .lang-btn [data-l="en"] { opacity: 1; }
html[lang="es"] .lang-btn [data-l="es"]::after, html[lang="en"] .lang-btn [data-l="en"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.3em; border-bottom: 1px solid currentColor; }
.lang-btn:hover [data-l] { opacity: 1; }
.nav-right { gap: 3em; align-items: center; }
@media (max-width: 650px) { .nav-right { gap: 5vw; } .lang-btn { font-size: 3.4vw; } }
@media (pointer: coarse) { .lang-btn { padding: 14px 4px; margin: -14px -4px; } }

body.native-scroll .cases { --cases-bg: var(--ground); }

@media (max-width: 650px) { .nav-cta { padding: 0.8em 1em; } .site-nav { gap: 3vw; } .nav-left { position: static; order: 2; margin-left: auto; margin-right: 11vw; display: flex; } .nav-right { order: 3; } }
