/* =========================================================
   The Brand Basics — Design System
   Editorial monochrome · Messina typeface
   ========================================================= */

/* ---------- Fonts ---------- */
/* Messina Sans — full licensed family (static weights, complete punctuation) */
@font-face {
  font-family: "Messina Sans";
  src: url("../fonts/MessinaSans-Book.woff2") format("woff2");
  font-weight: 1 399; font-style: normal; font-display: swap;   /* Book (light text weight) */
}
@font-face {
  font-family: "Messina Sans";
  src: url("../fonts/MessinaSans-Regular.woff2") format("woff2");
  font-weight: 400 450; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Messina Sans";
  src: url("../fonts/MessinaSans-RegularItalic.woff2") format("woff2");
  font-weight: 1 599; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Messina Sans";
  src: url("../fonts/MessinaSans-SemiBold.woff2") format("woff2");
  font-weight: 451 650; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Messina Sans";
  src: url("../fonts/MessinaSans-Bold.woff2") format("woff2");
  font-weight: 651 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Messina Serif";
  src: url("../fonts/MessinaSerif-VF.woff2") format("woff2-variations");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Messina Serif";
  src: url("../fonts/MessinaSerif-Italic-VF.woff2") format("woff2-variations");
  font-weight: 1 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Messina Mono";
  src: url("../fonts/MessinaSansMono-VF.woff2") format("woff2-variations");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}
/* Messina Sans is now the full licensed family (all punctuation included), so it
   needs no Inter fallback. Serif + Mono are still the demo faces (no Serif/Mono
   TTF supplied yet), so Inter is routed under those two families for the marks
   they lack. */
@font-face {
  font-family: "Messina Serif";
  src: url("../fonts/Inter.woff2") format("woff2"), local("Arial");
  font-weight: 1 1000;
  unicode-range: U+0021-0026, U+0028-002B, U+002F, U+003A-0040, U+005B-0060, U+007B-007E, U+00A1, U+00B7, U+00BF, U+2010-2027, U+20AC, U+2032-2037, U+2190-21FF;
}
@font-face {
  font-family: "Messina Serif";
  src: url("../fonts/Inter.woff2") format("woff2"), local("Arial");
  font-weight: 1 1000;
  font-style: italic;
  unicode-range: U+0021-0026, U+0028-002B, U+002F, U+003A-0040, U+005B-0060, U+007B-007E, U+00A1, U+00B7, U+00BF, U+2010-2027, U+20AC, U+2032-2037, U+2190-21FF;
}
@font-face {
  font-family: "Messina Mono";
  src: url("../fonts/Inter.woff2") format("woff2"), local("Arial");
  font-weight: 1 1000;
  unicode-range: U+0021-0026, U+0028-002B, U+002F, U+003A-0040, U+005B-0060, U+007B-007E, U+00A1, U+00B7, U+00BF, U+2010-2027, U+20AC, U+2032-2037, U+2190-21FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #2a2a2b;
  --ink-soft: #55545a;
  --ink-mute: #918f96;
  --paper: #f4f3f2;
  --paper-2: #edeceb;   /* block separation tint */
  --surface: #edeceb;
  --white: #ffffff;
  --line: rgba(42, 42, 43, 0.12);
  --line-soft: rgba(42, 42, 43, 0.07);
  --accent: #beb7f1;    /* lavender — main accent */
  --accent-ink: #6a5fd0; /* deeper lavender for small marks needing contrast */

  /* pastel color architecture (flat, no gradients) */
  --lav: #beb7f1;
  --cyan: #bcdfe0;
  --blue: #b9cde8;
  --pink: #f2b8d3;
  --sage: #bcc3ad;
  --mauve: #7c6a72;
  --mint: #bcdfe0;

  --sans: "Messina Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Messina Serif", Georgia, serif;
  --mono: "Messina Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --edge: clamp(1.1rem, 1.8vw, 2rem); /* near-full-width margin for header + hero */
  --nav-h: 76px;

  /* Layout grid (ref: 16" MacBook Pro = 1728pt viewport). Blocks are built on a
     full-bleed 12-column grid aligned to the header edges; toggle overlay with G. */
  --grid-cols: 12;
  --grid-gutter: clamp(1rem, 1.4vw, 1.6rem);
  --grid-max: 2000px;

  /* motto-style easings: expo-out for reveals, smooth in-out for movement */
  --e: cubic-bezier(0.16, 1, 0.3, 1);
  --e2: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 11vw, 11rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.divider { border-top: 1px solid var(--line); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex: none;
}
.eyebrow--plain::before { display: none; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; }

.display {
  font-size: clamp(3.1rem, 9.2vw, 7.6rem);
  font-weight: 350;              /* Messina Book — same weight as the home hero */
  line-height: 0.94;
  letter-spacing: -0.045em;
}
/* thin heading treatment — section headers laid out like the hero */
.thin { font-weight: 350; }
.h-xl { font-size: clamp(2.3rem, 5.8vw, 4.7rem); letter-spacing: -0.04em; line-height: 0.98; }
.h-lg { font-size: clamp(1.8rem, 3.9vw, 3.2rem); letter-spacing: -0.032em; line-height: 1.03; }
.h-md { font-size: clamp(1.35rem, 2.5vw, 1.95rem); letter-spacing: -0.022em; line-height: 1.1; }

.lead {
  font-size: clamp(1.18rem, 1.9vw, 1.6rem);
  line-height: 1.42;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.body { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.6; color: var(--ink-soft); }
.serif-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
/* brand accent dot — circular (Messina's own period is square; the brand mark
   is a round dot, matching the logo). Hide the "." glyph, draw a circle. */
.accent-dot {
  display: inline-block; width: 0.26em; height: 0.26em; border-radius: 50%;
  background: var(--accent); color: transparent;
  overflow: hidden; vertical-align: -0.02em; margin-left: 0.02em;
}

.measure { max-width: 40ch; }

/* ---------- Layout grid (build blocks on columns, centered/full-bleed) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  column-gap: var(--grid-gutter);
  width: 100%; max-width: var(--grid-max);
  margin-inline: auto; padding-inline: var(--edge);
}
/* visual column overlay — toggle with the G key (or ?grid in the URL) */
.grid-overlay { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: none; }
html.grid-on .grid-overlay { display: block; }
.grid-overlay__inner {
  height: 100%; box-sizing: border-box;
  display: grid; grid-template-columns: repeat(var(--grid-cols), 1fr);
  column-gap: var(--grid-gutter);
  width: 100%; max-width: var(--grid-max);
  margin-inline: auto; padding-inline: var(--edge);
}
.grid-overlay__inner > i {
  position: relative;
  background: rgba(226,72,115,0.09); border-inline: 1px solid rgba(226,72,115,0.22);
}
.grid-overlay__inner b {
  position: absolute; top: calc(var(--nav-h) + 10px); left: 0; right: 0;
  text-align: center; font: 600 12px/1 var(--sans); color: rgba(226,72,115,0.9);
}
/* visible toggle button */
.grid-toggle {
  position: fixed; bottom: 16px; left: 16px; z-index: 10000;
  font: 600 12px/1 var(--sans); letter-spacing: 0.04em;
  color: var(--paper); background: var(--ink); border: 0; border-radius: 100px;
  padding: 0.7em 1.1em; cursor: pointer; opacity: 0.5; transition: opacity 0.2s;
}
.grid-toggle:hover { opacity: 1; }
.grid-toggle.is-on { background: #e24873; opacity: 1; }
.measure-wide { max-width: 58ch; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--e), background 0.3s var(--e);
}
.header.is-scrolled { border-bottom-color: var(--line); }
/* during the pinned hero intro the name travels through the header zone,
   so the frosted background/blur must be off or it would blur/hide it */
.header.is-hero {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
}
.header__inner {
  width: 100%; max-width: none;
  margin-inline: 0; padding-inline: var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  white-space: nowrap;
}
.brand b { font-weight: 700; }
/* circular accent dot — always at the end of "The Brand Basics" */
.brand i, .hero__name i {
  font-style: normal; display: inline-block;
  width: 0.16em; height: 0.16em; border-radius: 50%;
  background: var(--accent); color: transparent;
  overflow: hidden; vertical-align: -0.02em; margin-left: 0.04em;
}

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav__links { display: flex; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.nav__links a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0.1rem;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--e);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.82em 1.5em;
  background: var(--bg);
  color: var(--fg);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  border: 1px solid var(--bg);
  transition: transform 0.25s var(--e), background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s var(--e);
}
.arrow svg { display: block; width: 1em; height: 1em; }
.arrow--left { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--accent { --bg: var(--accent); --fg: #fff; }
.btn--sm { padding: 0.62em 1.15em; font-size: 0.85rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1rem; }

.btn-fixed {
  font-size: 0.88rem;
  padding: 0.7em 1.3em;
}
@media (max-width: 620px) { .btn-fixed { display: none; } }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.25s, gap 0.25s var(--e);
}
.tlink:hover { border-color: var(--ink); gap: 0.75em; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 6rem)); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero__eyebrow { margin-bottom: 1.8rem; }
.hero__title { margin-bottom: 1.6rem; max-width: 15ch; }
.hero__sub { margin-bottom: 1.1rem; max-width: 30ch; }
.hero__body { max-width: 46ch; margin-bottom: 2.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* generic intro block */
.intro { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.intro__eyebrow { margin-bottom: 1.4rem; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
}

/* ---------- Showcase (curved coverflow) ---------- */
.showcase { background: var(--white); }  /* full-width white block */
.showcase__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.showcase__head--center { display: block; text-align: center; }
.showcase__head--center .body { margin-inline: auto; max-width: 60ch; }

.coverflow {
  --cf-card: clamp(300px, 66vw, 880px);  /* bigger centred image */
  position: relative;
  /* full-bleed: the slider reaches both page edges, no side margins */
  margin-inline: 0;
  padding-block: clamp(1rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
}
/* dot navigation — one per work */
.coverflow__dots { display: flex; justify-content: center; gap: 0.55rem; }
.coverflow__dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: var(--line); cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--e);
}
.coverflow__dots button:hover { background: var(--ink-mute); }
.coverflow__dots button.is-on { background: var(--ink); transform: scale(1.3); }
.coverflow__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  perspective: 1800px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.coverflow__viewport::-webkit-scrollbar { display: none; }
.coverflow.is-drag .coverflow__viewport { cursor: grabbing; }
.coverflow__track {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  /* side padding = exactly half a card, so first/last cards center precisely */
  padding-inline: max(var(--gutter), calc((100% - var(--cf-card)) / 2));
  transform-style: preserve-3d;
}
.cf-card {
  flex: 0 0 var(--cf-card);
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  box-shadow: 0 10px 30px -18px rgba(27, 26, 24, 0.4);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  /* transform set by JS; smooth catch-up */
  transition: box-shadow 0.4s var(--e);
  user-select: none;
}
.cf-card.is-active { box-shadow: 0 30px 60px -30px rgba(42, 42, 43, 0.5); }
.cf-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.cf-card__cap {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 2;
  color: #fff;
  background: rgba(42, 42, 43, 0.72); /* flat scrim, not a gradient */
  padding: 0.4em 0.7em;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--e) 0.05s, transform 0.5s var(--e) 0.05s;
}
.cf-card.is-active .cf-card__cap { opacity: 1; transform: none; }

.coverflow__controls { display: flex; gap: 0.6rem; }
.coverflow__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  background: var(--paper);
  transition: background 0.3s var(--e), color 0.3s var(--e), border-color 0.3s var(--e), transform 0.3s var(--e);
}
.coverflow__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.coverflow__btn:disabled { opacity: 0.3; pointer-events: none; }
.coverflow__btn .arrow { display: inline-flex; }
.coverflow__progress { margin-top: 1.6rem; height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.coverflow__progress i { display: block; height: 100%; width: 20%; background: var(--ink); border-radius: 2px; transition: transform 0.2s linear; transform-origin: left; }

/* ---------- Feature / list blocks ---------- */
.stack > * + * { margin-top: 1.1rem; }
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

/* Two-column fit / no-fit */
.fitgrid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 860px) { .fitgrid { grid-template-columns: 1fr 1fr; } }
.fitcard {
  background: #b9d4d9;   /* "sí" card */
  border: 0;
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.fitcard--no { background: #b8baae; }  /* "no" card — sage */
.fitcard h3 { margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.6rem; }
.fitcard ul { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.fitcard li { display: flex; gap: 0.75rem; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.fitcard li::before {
  content: "";
  flex: none; margin-top: 0.5em;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
}
.fitcard--no li::before { background: #fff; border-radius: 1px; }
.tick { flex: none; margin-top: 0.15em; }

/* ---------- Process — colored card slider with numbered black circles ---------- */
.procards {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.6rem;
  cursor: grab;
}
.procards::-webkit-scrollbar { display: none; }
.procard {
  flex: 0 0 clamp(258px, 76vw, 372px);
  scroll-snap-align: center;
  border-radius: 24px;
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  min-height: 320px;
}
.procard:nth-child(5n+1) { background: var(--cyan); }
.procard:nth-child(5n+2) { background: var(--lav); }
.procard:nth-child(5n+3) { background: var(--pink); }
.procard:nth-child(5n+4) { background: var(--sage); }
.procard:nth-child(5n+5) { background: var(--blue); }
.procard__num {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 1.95rem; font-weight: 350; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.procard h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -0.02em; margin-top: 0.2rem; }
.procard p { font-size: 0.98rem; line-height: 1.5; color: var(--ink); }
.procard p + p { margin-top: 0.7rem; }
.procards-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.procards-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: var(--line); cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--e);
}
.procards-dots button:hover { background: var(--ink-mute); }
.procards-dots button.is-on { background: var(--ink); transform: scale(1.3); }

/* ---------- Steps (process) ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  padding-top: 0.4rem;
}
.step__body h3 { margin-bottom: 0.9rem; }
.step__body .body { max-width: 60ch; }

/* ---------- Deliverables grid ---------- */
.cards { display: grid; gap: clamp(1rem, 2vw, 1.4rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  display: flex; flex-direction: column; gap: 0.7rem;
  min-height: 190px;
  transition: transform 0.35s var(--e), box-shadow 0.35s var(--e);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(22,19,15,0.35); }
.card__idx { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-mute); }
.card h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.card p { font-size: 0.96rem; line-height: 1.5; color: var(--ink-soft); margin-top: auto; }

/* ---------- Split / compare (TW vs TBB) ---------- */
.compare { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } }
.comparecard {
  background: var(--white);   /* first card: white */
  border-radius: 18px;
  padding: clamp(1.8rem, 3.5vw, 3rem);
  border: 0;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 320px;
}
/* closing line — centered, same voice as the block subs (.body) */
.decide__quote {
  max-width: 60ch;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0; text-align: center;
}
.comparecard--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.comparecard--ink .body { color: rgba(244,241,234,0.72); }
.comparecard__label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.comparecard h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.comparecard .tlink { margin-top: auto; align-self: flex-start; }

/* ---------- CTA band ---------- */
.ctaband { text-align: center; }
.ctaband .h-xl { max-width: 20ch; margin-inline: auto; margin-bottom: 1.2rem; }
.ctaband .lead { max-width: 46ch; margin-inline: auto; margin-bottom: 2.2rem; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); }
.faqgroup { border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.faqgroup__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .faqgroup__grid { grid-template-columns: 0.7fr 1.3fr; align-items: start; } }
.faqgroup__title { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.faqgroup__title .eyebrow { margin-bottom: 0.8rem; }

.acc { border-bottom: 1px solid var(--line-soft); }
.acc__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  text-align: left;
  padding: 1.3rem 0;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s;
}
.acc__q:hover { color: var(--accent-ink); }
.acc__icon { flex: none; position: relative; width: 16px; height: 16px; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.acc__icon::before { width: 16px; height: 1.6px; }
.acc__icon::after { width: 1.6px; height: 16px; transition: transform 0.3s var(--e); }
.acc[open] .acc__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.acc__a { overflow: hidden; }
.acc__a-inner { padding: 0 0 1.5rem; max-width: 62ch; }
.acc__a-inner p { color: var(--ink-soft); line-height: 1.6; margin-bottom: 0.9rem; }
.acc__a-inner p:last-child { margin-bottom: 0; }
.acc__a-inner ul { margin: 0.4rem 0 0.9rem 1.1rem; color: var(--ink-soft); line-height: 1.6; }
.acc__a-inner li { margin-bottom: 0.3rem; }
/* native details animation via grid */
details.acc > .acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--e); }
details.acc[open] > .acc__a { grid-template-rows: 1fr; }
details.acc > .acc__a > div { min-height: 0; }
summary.acc__q { list-style: none; }
summary.acc__q::-webkit-details-marker { display: none; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.05fr; align-items: start; } }
.form { display: flex; flex-direction: column; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em; color: var(--ink); }
.field label .req { color: var(--accent-ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22,19,15,0.08);
}
.field input.invalid, .field textarea.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106, 95, 208,0.1); }
.field__hint { font-size: 0.8rem; color: var(--ink-mute); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.formnote { font-size: 0.82rem; color: var(--ink-mute); max-width: 32ch; }
.form-status { font-size: 0.95rem; padding: 1rem 1.2rem; border-radius: 12px; display: none; }
.form-status.ok { display: block; background: var(--ink); color: var(--paper); }
.form-status.err { display: block; background: rgba(106, 95, 208,0.12); color: var(--accent); border: 1px solid rgba(106, 95, 208,0.3); }

.contact-aside { display: flex; flex-direction: column; gap: 2rem; }
.contact-aside .body { max-width: 40ch; }
.info-row { display: flex; flex-direction: column; gap: 0.3rem; padding-block: 1.1rem; border-top: 1px solid var(--line-soft); }
.info-row .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.info-row .v { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; }
.footer a { color: rgba(244,241,234,0.7); transition: color 0.2s; }
.footer a:hover { color: var(--paper); }
.footer__top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer__brand { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; max-width: 16ch; }
.footer__brand i { font-style: normal; color: var(--accent); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__col .h { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,241,234,0.5); margin-bottom: 0.3rem; }
.footer__bottom {
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.8rem;
  border-top: 1px solid rgba(244,241,234,0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.82rem; color: rgba(244,241,234,0.5);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* ---------- Mobile nav ---------- */
.burger { display: none; width: 30px; height: 30px; position: relative; }
.burger span { position: absolute; left: 3px; right: 3px; height: 1.6px; background: var(--ink); transition: transform 0.3s var(--e), opacity 0.2s; }
.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { bottom: 10px; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transform: translateY(-100%);
  transition: transform 0.45s var(--e);
  visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav a { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.03em; padding-block: 0.6rem; border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 1.5rem; align-self: flex-start; }
body.nav-open { overflow: hidden; }

@media (max-width: 780px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav .btn-fixed { display: none; }
}
@media (min-width: 781px) { .mobile-nav { display: none; } }

/* ---------- Reveal animation (motto-style: longer, connected) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 1.05s var(--e), transform 1.05s var(--e), filter 1.05s var(--e);
  will-change: opacity, transform, filter;
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Bottom depth blur (frosted, colorless — no gradient fill) ---------- */
.fog {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: clamp(80px, 12vh, 130px);
  z-index: 60;
  pointer-events: none;
  transition: opacity 0.4s var(--e);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* the mask is a transparency fade for the blur effect, not a colour gradient */
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent);
  mask-image: linear-gradient(to top, #000 15%, transparent);
}
html.locked .fog { display: none; }
html.hero-lead .fog { display: none; } /* no bottom blur over the huge hero name */

/* ---------- Flat block backgrounds & pastel blocks (full-bleed, no gradients) ---------- */
[class*="block-"] { position: relative; z-index: 0; }
[class*="block-"]::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  z-index: -1;
}
.block-white::before { background: var(--white); }
.block-tint::before { background: var(--paper-2); }
.block-lav::before { background: var(--lav); }
.block-cyan::before { background: var(--cyan); }
.block-blue::before { background: var(--blue); }
.block-pink::before { background: var(--pink); }
.block-sage::before { background: var(--sage); }
.block-mauve::before { background: var(--mauve); }
.block-mauve { color: #fff; }
.block-mauve .body, .block-mauve .lead { color: rgba(255,255,255,0.82); }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3.5rem; }
.mb-s { margin-bottom: 1rem; } .mb-m { margin-bottom: 2rem; }
.text-center { text-align: center; }
.hide { display: none !important; }

/* ---------- Splash / password gate ---------- */
/* When locked, hide the whole site and show only the splash (no content flash). */
html.locked body { overflow: hidden; }
html.locked .header,
html.locked main,
html.locked .footer,
html.locked .mobile-nav { display: none !important; }
.splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: var(--paper);
}
html.locked .splash { display: flex; }
.splash__inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: splashIn 0.7s var(--e) both;
}
@keyframes splashIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.splash__brand {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 0.6rem;
}
.splash__brand .accent-dot { background: var(--accent-ink); }
.splash__tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2.4rem;
}
.splash__form { display: flex; flex-direction: column; gap: 0.8rem; }
.splash__form input {
  font: inherit;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 0.1em;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.splash__form input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22, 19, 15, 0.08);
}
.splash.invalid .splash__form input { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106, 95, 208, 0.12); animation: shake 0.35s var(--e); }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.splash__form .btn { justify-content: center; padding: 0.95em 1.6em; }
.splash__err {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 0.4rem;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.2s;
}
.splash.invalid .splash__err { opacity: 1; }

/* ============================================================
   HEADER MODULE — pinned hero intro, logo morph, tooltips
   ============================================================ */

/* ---- Logo morph: The Brand Basics <-> TBB ---- */
.brand[data-brand]{ display:inline-flex; align-items:baseline; white-space:nowrap; }
.brand[data-brand] .x{
  display:inline-block; overflow:hidden; white-space:pre; max-width:3.2em; opacity:1;
  /* EXPAND (TBB -> The Brand Basics): symmetric ease so it opens at the same
     pace it closed, instead of snapping open (--e is a fast-start expo-out). */
  transition:max-width .55s cubic-bezier(.45,.05,.35,1), opacity .5s cubic-bezier(.45,.05,.35,1);
  vertical-align:baseline;
}
/* COLLAPSE (The Brand Basics -> TBB): keep the original timing that felt right */
.brand[data-brand].is-short .x{
  max-width:0; opacity:0;
  transition:max-width .55s var(--e), opacity .38s var(--e);
}

/* ---- Hero intro (full-bleed, pinned) — home only (has data-hero) ---- */
.hero[data-hero]{ position:relative; padding:0; }
.hero__pin{ position:relative; min-height:100vh; min-height:100svh; overflow:hidden; }

/* start phrase — sits in the nav row, top-left, aligned with the menu */
.hero__small{
  position:absolute; top:0; left:var(--edge); height:var(--nav-h);
  display:flex; align-items:center; z-index:110;
  margin:0; font-family:var(--sans); font-weight:600; letter-spacing:-.02em;
  font-size:1.06rem; color:var(--ink); overflow:hidden; pointer-events:none;
}
.hero__small-in{ display:inline-block; will-change:transform; }

/* the name — huge, pinned to the BOTTOM. It does not travel: it retracts in
   place with per-word masks while the real header logo appears up top. */
.hero__name{
  position:absolute; left:0; right:0; bottom:-.02em; text-align:center;
  padding:0 var(--edge); pointer-events:none;
  font-weight:700; font-size:clamp(3rem, 11.6vw, 11rem); line-height:.9;
  letter-spacing:-.045em; white-space:nowrap; color:var(--ink); z-index:30;
}
.hero__name .w{ display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.1em; }
.hero__name .w > span{ display:inline-block; will-change:transform; }
.hero--static .hero__name, .hero--static .hero__small{ display:none; }

/* resting content — a vertically-centred block built on the 12-col grid */
.hero__stage{
  position:absolute; inset:0; z-index:4;
  padding:var(--nav-h) 0 var(--edge);
  display:flex; flex-direction:column; justify-content:center;
}
.hero__grid{ width:100%; align-items:start; row-gap:clamp(1.6rem, 4.5vh, 3.2rem); }
.hero__grid > *{ min-width:0; }  /* never let a giant word blow the grid wider than the viewport */

/* big headline: columns 4 → edge, giant, breaks into two balanced lines */
.hero__big{
  grid-column:4 / 12; margin:0; align-self:end;
  font-size:clamp(2.4rem, 7.4vw, 8.4rem); font-weight:350; /* Messina Book */
  line-height:.86; letter-spacing:-.035em; will-change:transform;
}
/* mask keeps descender room via padding, and the negative margin cancels it out
   of the line stride — otherwise the padding silently ADDS to the leading */
.hero__big .w{ display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.2em; margin-bottom:-.2em; }
.hero__big .w > span{ display:inline-block; will-change:transform; }
.hero__br{ display:inline; } /* forced break: "El primer paso" / "de una gran marca" */

/* supporting copy + CTAs — columns 2 → 8 (buttons stack below the paragraph) */
.hero__rest{ grid-column:2 / 9; }
.hero__copy{
  font-size:clamp(1.2rem, 1.7vw, 1.7rem); line-height:1.4; color:var(--ink);
  margin-bottom:clamp(1.6rem, 3vh, 2.4rem);
}
.hero__copy strong{ color:var(--ink); font-weight:700; }
.hero__cta{ display:flex; flex-wrap:nowrap; gap:.9rem; }
.hero__cta .btn{ white-space:nowrap; }

/* ---- Button tooltips (cursor-follower bubbles with the real MATS arrow) ---- */
.tip{
  position:fixed; top:0; left:0; width:78px; height:78px; margin:-39px 0 0 -39px;
  border-radius:50%; display:grid; place-items:center; z-index:9000; pointer-events:none;
  color:var(--ink); opacity:0; transform:scale(0); will-change:transform;
}
.tip--lav{ background:var(--lav); }
.tip--mint{ background:#b9d4d9; }
.tip--pink{ background:#eca6c3; }
.tip__arrow{ width:56%; height:56%; display:block; will-change:transform; overflow:visible; }

/* ---- "scroll" custom cursor: only at the very top, only while not scrolling ---- */
.scroll-cursor{
  position:fixed; top:0; left:0; width:104px; height:104px; margin:-52px 0 0 -52px;
  border-radius:50%; background:#b8baae; display:grid; place-items:center;
  pointer-events:none; z-index:9000; opacity:0; will-change:transform;
}
.scroll-cursor__in{
  font-family:var(--sans); font-weight:500; font-size:.82rem; letter-spacing:.02em; color:var(--ink);
}
.scroll-cursor--woork{ background:#effb98; }
html.has-scroll-cursor, html.has-scroll-cursor *{ cursor:none; }
/* emoji tips over the sí/no card titles — the hand floats just above the cursor,
   and its tilt pivots from the base of the hand */
.emoji-tip{
  position:fixed; top:0; left:0; z-index:9000; pointer-events:none;
  margin:-106px 0 0 -48px;
  opacity:0; transform:scale(0); will-change:transform;
}
.emoji-tip__in{ display:block; font-size:96px; line-height:1; }
img.emoji-tip__in{ width:96px; height:96px; }
@media (max-width:780px), (hover:none){ .scroll-cursor, .tip, .emoji-tip{ display:none !important; } }
.tip__arrow line, .tip__arrow polyline{
  stroke:currentColor; stroke-width:4px; stroke-miterlimit:10; fill:none;
}

/* ---------- Card block: rounded colour card on a white frame ---------- */
.cardblock{ background:var(--white); padding-bottom:var(--edge); overflow:clip; }
/* the card sits ON the global grid, spanning columns 2-11: one blank white
   column of margin on each side, at every monitor size */
.cardblock__outer > .cardblock__card{ grid-column:2 / 12; }
.cardblock__card{
  background:#eca6c3; border-radius:clamp(18px, 2.2vw, 30px);
  padding:clamp(1.6rem, 3vw, 2.6rem);   /* same as the fit cards */
  margin-top:clamp(2.5rem, 6vw, 5rem);  /* separation from the block above — editable via the editor's margin */
}
/* the inner 12 columns are computed on the card itself (no padding, no cap), so
   the content always keeps exactly one column of pink margin per side */
.cardblock__grid{ padding-inline:0; max-width:none; }
.cardblock__grid > *{ min-width:0; }
.cardblock__title{
  grid-column:1 / 6; margin:0; padding-right:clamp(1.5rem, 4vw, 4.5rem); /* breathe before the paragraph */
  font-size:clamp(1.5rem, 2.3vw, 2.4rem); font-weight:600; line-height:1.1; letter-spacing:-.02em;
  color:var(--ink);
}
.cardblock__body{
  grid-column:6 / -1; color:var(--ink);
  font-size:clamp(1rem, 1.25vw, 1.25rem); line-height:1.4;
}
.cardblock__body p + p{ margin-top:1em; }
@media (max-width:780px){
  .cardblock__outer{ display:block; }
  .cardblock__grid{ display:block; }
  .cardblock__card{ padding-inline:1.4rem; }
  .cardblock__title{ padding-right:0; margin-bottom:1.4rem; }
}

/* mobile: plain hero (no pin, normal flow) */
@media (max-width:780px){
  .hero__pin{ min-height:auto; overflow:visible; }
  .hero__name, .hero__small{ display:none; }
  .hero__stage{ position:static; padding:calc(var(--nav-h) + 2.5rem) 0 2rem; display:block; }
  .hero__grid{ display:block; }
  .hero__big{ grid-column:auto; margin:0 0 1.4rem; font-size:clamp(2.4rem,11vw,3.6rem); }
  .hero__br{ display:none; }
  .hero__rest{ grid-column:auto; }
  .hero__cta{ flex-wrap:wrap; }
  .tip{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .hero__name, .hero__small{ display:none; }
}
