/* ============================================================
   KAREN FLORES — Strategic Communications & Marketing
   Editorial design system · brand-locked tokens
   ============================================================ */

/* ---------- self-hosted fonts (single source of truth) ---------- */

@font-face {
  font-family: "Imbue";
  src: url("fonts/imbue-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-v33-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-v33-latin-500italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-v33-latin-600italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-v33-latin-700italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-v33-latin-800italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blush: #F4ECEC;
  --navy: #0a2438;
  --electric: #004AAD;
  --royal: #004AAD;
  --peri: #CCD8F0;

  --ink-60: rgba(10, 36, 56, 0.6);
  --ink-70: rgba(10, 36, 56, 0.7);
  --ink-85: rgba(10, 36, 56, 0.85);
  --rule: rgba(10, 36, 56, 0.16);
  --rule-soft: rgba(10, 36, 56, 0.1);
  --blush-70: rgba(244, 236, 236, 0.7);
  --blush-85: rgba(244, 236, 236, 0.85);

  --serif: "Imbue", serif;
  --garamond: "EB Garamond", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 4.5vw, 72px);
  --section-pad: clamp(80px, 12vh, 150px);
  --header-h: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--blush);
  color: var(--navy);
  font-family: var(--garamond);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--electric);
  color: var(--blush);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---------- type ---------- */

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 100;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

.display .accent,
.display em {
  font-style: normal;
  color: var(--electric);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.55;
  color: var(--ink-85);
  max-width: 55ch;
}

.small-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-60);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--blush);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 15px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover {
  background: var(--electric);
  border-color: var(--electric);
  transform: translateY(-1px);
}

.btn-electric {
  background: var(--electric);
  border-color: var(--electric);
}

.btn-electric:hover {
  background: var(--royal);
  border-color: var(--royal);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10, 36, 56, 0.35);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--blush);
  border-color: var(--navy);
}

.on-dark .btn-ghost {
  color: var(--blush);
  border-color: rgba(244, 236, 236, 0.4);
}

.on-dark .btn-ghost:hover {
  background: var(--blush);
  color: var(--navy);
  border-color: var(--blush);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--royal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: gap 0.25s, color 0.2s;
}

.text-link:hover {
  gap: 14px;
  color: var(--electric);
}

/* ---------- header ---------- */

header.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

header.site-header.scrolled {
  background: var(--blush-85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--rule-soft);
}

header.site-header.hidden {
  transform: translateY(-100%);
}

.site-logo {
  flex: none;
}

.site-logo img {
  height: 25px;
  width: auto;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.site-nav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-70);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}

nav.site-nav a:hover {
  color: var(--navy);
}

nav.site-nav a.active {
  color: var(--navy);
}

nav.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--electric);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a,
.lang-switch span {
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink-60);
}

.lang-switch [aria-current="true"] {
  background: var(--navy);
  color: var(--blush);
}

.lang-switch a:hover {
  color: var(--navy);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 120;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.menu-open .menu-btn span {
  background: var(--blush);
}

.menu-open .menu-btn span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .menu-btn span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* dedicated close (X) inside the overlay replaces the hamburger while open */
.menu-open .menu-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-close {
  position: absolute;
  top: 0;
  right: var(--gutter);
  height: var(--header-h);
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 130;
}

.mobile-close span {
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--blush);
}

.mobile-close span:first-child {
  transform: rotate(45deg);
}

.mobile-close span:last-child {
  transform: rotate(-45deg);
}

/* mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--blush);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(40px, 10vw, 64px);
  line-height: 1.15;
  text-decoration: none;
  color: var(--blush);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

.mobile-menu a.active {
  color: var(--blush);
}

.mobile-menu a.active::before {
  content: "";
  flex: none;
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  background: var(--electric);
  margin-right: 0.36em;
}

.mobile-menu .mobile-menu-foot {
  margin-top: 36px;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 20px;
  color: rgba(244, 236, 236, 0.65);
}

.mobile-menu .mobile-menu-foot a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--peri);
}

@media (max-width: 880px) {
  nav.site-nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .header-actions {
    gap: 10px;
  }

  header .btn {
    font-size: 13px;
    padding: 10px 16px;
  }

  .site-logo img {
    height: 22px;
  }
}

@media (max-width: 560px) {
  .header-actions .lang-switch {
    display: none;
  }
}

/* ---------- shells ---------- */

main {
  position: relative;
}

.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
}

.section>.inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(40px, 7vh, 88px);
}

.section-head h2 {
  font-size: clamp(52px, 6vw, 88px);
  margin-top: 18px;
  color: var(--navy);
  font-variation-settings: "opsz" 90;
}

.section-head .lede {
  margin-top: 20px;
}

.rule-top {
  border-top: 1px solid var(--rule);
}

.folio {
  font-family: var(--sans);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

@media (max-width: 640px) {
  .folio {
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
  }

  .folio--sep span {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .folio--sep span::before {
    content: "—";
    color: var(--electric);
  }
}

/* ---------- page opener (subpages) ---------- */

.opener {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 9vh, 110px)) var(--gutter) clamp(48px, 8vh, 96px);
  overflow: clip;
}

.opener .inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
}

.opener h1 {
  font-size: clamp(58px, 11vw, 176px);
  color: var(--navy);
  margin-top: 22px;
}

.opener .lede {
  margin-top: 26px;
}

.opener .folio {
  margin-top: clamp(40px, 7vh, 72px);
}

/* ---------- home hero (layered cover) ---------- */
/* Three layers: gradient field (1) under the headline (2) under the cutout (3).
   Field + cutout live in .hero-stage, a sealed composition whose children are
   sized in % of the stage, so the overlap ratios never drift with viewport.
   .hero-stage itself must NOT get a z-index or opacity: its children need to
   sandwich the headline, which only works while the stage creates no stacking
   context. Animate the children, never the stage. */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) clamp(28px, 4.5vh, 56px);
  overflow: clip;
}

.hero-title-wrap {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(34px, 12.3vw, 96px);
  color: var(--navy);
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  white-space: nowrap;
}

.hero h1 .line>span {
  display: block;
}

/* opener h1s share the hero's masked line-rise, but may wrap on mobile */
.opener h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.opener h1 .line>span {
  display: block;
}

/* ES lines run ~3 characters longer — same composition, smaller optical size */
html[lang="es"] .hero h1 {
  font-size: clamp(30px, 10.6vw, 86px);
}

/* ES headline is shorter (smaller font), so the shared pull-up would sink the
   hair deep into "que" — ES gets a shallower overlap */
html[lang="es"] .hero-stage {
  margin-top: -3.8vw;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1.04;
  /* pulled up so the hair crosses the headline's last line by a sliver —
     the cutout PNG carries ~3% transparent padding above the hair, which
     this margin must swallow before any visual overlap happens */
  margin: -5.4vw 0 clamp(22px, 4vh, 36px);
  pointer-events: none;
}

.hero-field {
  position: absolute;
  z-index: 1;
  inset: 14% 0 0 0;
  border-radius: 2px;
  background: radial-gradient(circle at 50% 100%, var(--royal) 0%, var(--peri) 100%);
  overflow: hidden;
}

/* film grain over the gradient so it reads as material, not screen fill */
.hero-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: soft-light;
  opacity: 0.6;
  pointer-events: none;
}

.hero-cutout {
  position: absolute;
  z-index: 3;
  bottom: 0;
  /* mobile: shifted left of center (was 9%) so she sits off-axis in the field */
  left: -1%;
  width: 82%;
  height: auto;
}

.hero-foot {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-foot .lede strong {
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }
}

@media (min-width: 900px) {

  /* sized so "the" ends just before the hair — at 9vw it hid behind her head
     and read as the/they/their ambiguity; the line still runs onto the field */
  .hero h1 {
    font-size: clamp(64px, 8.55vw, 148px);
  }

  /* ES sized so "…merecen." clears Karen's silhouette — at 8vw the final
     "n." hides behind her and the line reads as bad grammar */
  html[lang="es"] .hero h1 {
    font-size: clamp(56px, 7.4vw, 128px);
  }

  .hero-stage {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(28px, 4.5vh, 56px);
    width: min(38vw, 560px);
    max-width: none;
    aspect-ratio: 5 / 6;
    margin: 0;
  }

  .hero-field {
    inset: 20% 0 0 0;
  }

  .hero-cutout {
    left: 7%;
    width: 86%;
  }

  .hero-foot {
    max-width: 800px;
    margin-top: clamp(32px, 6vh, 72px);
  }
}

.ph-label {
  font-family: var(--sans);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal);
  text-align: center;
  padding: 18px;
}

.ph-label::before {
  content: "";
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

/* ---------- success moments (home) ---------- */

.record {
  background: var(--blush);
}

/* Front-page hierarchy: features (main) left, index rail right.
   Mobile flattens both wrappers with display:contents and interleaves
   cards and rows via order — see the max-width query below. */
.record-grid {
  display: grid;
  /* golden ratio: features 62 / rail 38 */
  grid-template-columns: 62fr 38fr;
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}

.record-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
}

.clip-lead {
  grid-column: 1 / -1;
}

.clip-lead .clip-stat {
  font-size: clamp(72px, 8.4vw, 138px);
}

.clip-lead p {
  font-size: 22px;
  max-width: 44ch;
}

.record-rail {
  display: flex;
  flex-direction: column;
}

.rail-row {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 20px);
  padding: 14px 0;
}

/* the row's rule is a pseudo so motion can wipe it L→R (--rw scrubbed
   by main.js; defaults to full width when JS/motion is off) */
.rail-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform: scaleX(var(--rw, 1));
  transform-origin: left;
}

.rail-num {
  font-family: var(--serif);
  /* low optical size = the sturdy cut; 100 renders hairline-thin at row scale */
  font-variation-settings: "opsz" 10;
  font-weight: 500;
  font-size: clamp(32px, 2.7vw, 44px);
  line-height: 0.9;
  color: var(--royal);
  /* wide enough for "+240%" so every caption's left edge aligns */
  min-width: 5ch;
  flex-shrink: 0;
}

/* same voice as .clip-meta on the cards */
.rail-meta {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 5px;
}

.rail-text p {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-70);
}

.clip {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: clamp(20px, 2.4vw, 34px);
  background: var(--blush);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 230px;
  transition: border-color 0.3s, transform 0.3s;
}

.clip:hover {
  border-color: var(--royal);
  transform: translateY(-3px);
}

.clip .clip-meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--royal);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}

.clip p {
  margin-top: auto;
  font-size: 20px;
  color: var(--ink-70);
  max-width: 34ch;
}

.clip.navy .clip-meta {
  color: var(--peri);
  border-bottom-color: rgba(204, 216, 240, 0.25);
}

.clip.peri .clip-meta {
  color: var(--royal);
  border-bottom-color: rgba(10, 36, 56, 0.15);
}

.clip .clip-stat {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 0.9;
  color: var(--navy);
}

.clip .clip-stat.electric {
  color: var(--electric);
}

.clip .clip-stat.royal {
  color: var(--royal);
}

.clip.navy {
  background: var(--navy);
  border-color: var(--navy);
}

.clip.navy .clip-stat {
  color: var(--blush);
}

.clip.navy p {
  color: rgba(244, 236, 236, 0.75);
}

.clip.peri {
  background: var(--peri);
  border-color: var(--peri);
}

.clip.peri .clip-stat {
  color: var(--royal);
}

.clip p strong {
  font-weight: 600;
  color: var(--navy);
}

.clip.navy p strong {
  color: var(--blush);
}

.clip.peri p strong {
  color: var(--royal);
}

.clip.peri p {
  color: rgba(10, 36, 56, 0.75);
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

@media (max-width: 980px) {

  /* Interleave: card → 3 rows → card → 3 rows → card. The wrappers
     dissolve (display:contents) so cards and rows become siblings of
     one flex column, then order restacks them. */
  .record-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .record-main,
  .record-rail {
    display: contents;
  }

  .record-main .clip:nth-child(1) {
    order: 1;
  }

  .record-main .clip:nth-child(2) {
    order: 5;
  }

  .record-main .clip:nth-child(3) {
    order: 9;
  }

  .record-rail .rail-row:nth-child(1) {
    order: 2;
  }

  .record-rail .rail-row:nth-child(2) {
    order: 3;
  }

  .record-rail .rail-row:nth-child(3) {
    order: 4;
  }

  .record-rail .rail-row:nth-child(4) {
    order: 6;
  }

  .record-rail .rail-row:nth-child(5) {
    order: 7;
  }

  .record-rail .rail-row:nth-child(6) {
    order: 8;
  }

  .clip {
    min-height: 150px;
  }

  .clip-lead .clip-stat {
    font-size: clamp(72px, 17vw, 120px);
  }

  .clip-lead p {
    font-size: 20px;
  }

  /* cards get breathing room from the row stacks; rows keep their rules */
  .record-main .clip {
    margin-bottom: 22px;
  }

  .record-main .clip:nth-child(2),
  .record-main .clip:nth-child(3) {
    margin-top: 22px;
  }

  .rail-row {
    padding: 16px 0;
  }

  .rail-row:nth-child(3),
  .rail-row:nth-child(6) {
    border-bottom: 1px solid var(--rule);
  }
}

/* ---------- outlet marquee (standalone band after hero) ---------- */

.marquee-band {
  padding: clamp(20px, 4vh, 40px) 0;
}

.marquee-band .marquee-label {
  padding-right: var(--gutter);
}

.marquee {
  overflow: clip;
  white-space: nowrap;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}

.marquee-track {
  display: inline-flex;
  align-items: baseline;
  gap: 32px;
  padding-right: 52px;
  animation: marquee 30s linear infinite;
  font-family: var(--serif);
  font-variation-settings: "opsz" 40;
  font-weight: 500;
  font-size: clamp(29px, 2.86vw, 37.4px);
  color: var(--navy);
}

.marquee-track .dot {
  color: var(--electric);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

.marquee-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-top: 10px;
  text-align: right;
}

@media (max-width: 640px) {
  .marquee-track {
    gap: 18px;
    padding-right: 38px;
    font-variation-settings: "opsz" 25;
    font-size: 29px;
  }
}

/* mini marquee for case studies */
.marquee.mini {
  padding: 16px 0;
  margin-top: 22px;
}

.marquee.mini .marquee-track {
  gap: 32px;
  padding-right: 32px;
  font-size: clamp(26px, 2.6vw, 31px);
  animation-duration: 20s;
}

/* ---------- case teasers (home) ---------- */

.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

@media (max-width: 900px) {
  .teasers {
    grid-template-columns: 1fr;
  }
}

.teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.teaser:hover {
  border-color: var(--royal);
}

.teaser-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  overflow: hidden;
  transition: background 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.teaser:hover .teaser-media {
  background: var(--royal);
}

/* corner arrow slides in diagonally on hover, riding with the logo */
.teaser-media::after {
  content: "↗";
  position: absolute;
  right: clamp(16px, 1.8vw, 24px);
  bottom: clamp(12px, 1.5vw, 20px);
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  color: var(--blush);
  opacity: 0;
  transform: translate(-12px, 12px);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.teaser:hover .teaser-media::after {
  opacity: 1;
  transform: none;
}

/* Case-study logos rendered as blush marks via CSS mask, so every logo
   reads in a single brand colour regardless of its source artwork. */
.teaser-logo {
  position: absolute;
  inset: 0;
  background-color: var(--blush);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  /* per-logo width set below; height auto-derives to keep proportions */
}

/* Widths tuned individually so the three marks feel visually equal. */
.teaser-logo--sikwa {
  -webkit-mask-image: url("img/sikwa-logo.png");
  mask-image: url("img/sikwa-logo.png");
  -webkit-mask-size: 46% auto;
  mask-size: 46% auto;
}

.teaser-logo--conserva {
  -webkit-mask-image: url("img/conserva-logo.png");
  mask-image: url("img/conserva-logo.png");
  -webkit-mask-size: 74% auto;
  mask-size: 74% auto;
}

.teaser-logo--ocaso {
  -webkit-mask-image: url("img/ocaso-logo.png");
  mask-image: url("img/ocaso-logo.png");
  -webkit-mask-size: 70% auto;
  mask-size: 70% auto;
}

.teaser-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.teaser-body .idx {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
}

.teaser-body h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  color: var(--navy);
}

.teaser-body p {
  font-size: 20px;
  color: var(--ink-70);
}

.teaser-body .teaser-stat {
  font-family: var(--sans);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 13px;
  color: var(--ink-60);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.teaser-body .teaser-stat b {
  color: var(--royal);
  font-weight: 600;
}

.teaser .arrow {
  color: var(--electric);
  transition: transform 0.25s;
}

.teaser:hover .arrow {
  transform: translateX(5px);
}

.teaser-body .text-link {
  margin-top: auto;
}

.teaser:hover .text-link {
  gap: 14px;
  color: var(--electric);
}

/* ---------- service cards ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

@media (max-width: 800px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: clamp(24px, 3vw, 40px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  transition: border-color 0.35s;
}

/* navy invert: a wipe rises from the bottom on hover */
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.pillar>* {
  position: relative;
  z-index: 1;
}

.pillar:hover {
  border-color: var(--navy);
}

.pillar:hover::before {
  transform: scaleY(1);
}

/* ghost numeral, top-right */
.pillar .num {
  position: absolute;
  top: clamp(10px, 1.4vw, 18px);
  right: clamp(18px, 2.2vw, 30px);
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(72px, 9vw, 140px);
  line-height: 0.9;
  color: var(--peri);
  transition: color 0.35s;
}

.pillar h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 0.98;
  color: var(--navy);
  transition: color 0.35s;
}

.pillar p {
  font-size: 20px;
  color: var(--ink-70);
  max-width: 44ch;
  transition: color 0.35s;
}

.pillar .text-link {
  margin-top: auto;
}

.pillar:hover h3 {
  color: var(--blush);
}

.pillar:hover p {
  color: var(--blush-70);
}

.pillar:hover .text-link {
  color: var(--peri);
}

/* corner arrow slides in diagonally on hover */
.pillar::after {
  content: "↗";
  position: absolute;
  right: clamp(20px, 2.4vw, 32px);
  bottom: clamp(16px, 2vw, 26px);
  z-index: 1;
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  color: var(--peri);
  opacity: 0;
  transform: translate(-12px, 12px);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.pillar:hover::after {
  opacity: 1;
  transform: none;
}

/* broken symmetry: right column rides lower on desktop */
@media (min-width: 801px) {
  .pillars {
    padding-bottom: clamp(40px, 4vw, 56px);
  }

  .pillars .pillar:nth-child(even) {
    transform: translateY(clamp(40px, 4vw, 56px));
  }
}

/* ---------- services page chapters ---------- */

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 96px);
  padding: clamp(52px, 9vh, 110px) 0;
  border-top: 1px solid var(--rule);
}

@media (max-width: 880px) {
  .chapter {
    grid-template-columns: 1fr;
  }
}

/* the intro stays put while its service list scrolls past (desktop) */
@media (min-width: 881px) {
  .chapter-intro {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
  }
}

.chapter-intro .num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 1;
  color: var(--electric);
}

.chapter-intro h2 {
  font-size: clamp(38px, 4.6vw, 72px);
  color: var(--navy);
  margin-top: 12px;
}

.chapter-intro .lede {
  margin-top: 18px;
  font-size: clamp(20px, 1.7vw, 23px);
}

.chapter-intro .chapter-note {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--royal);
  border-left: 2px solid var(--royal);
  padding-left: 14px;
  max-width: 40ch;
}

/* single column: rows expand without disturbing a neighbor, and the
   list stays tall enough for the sticky intro to earn its keep */
.svc-list {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
}

/* svc rows: headline menu — the description folds open on hover/tap */
.svc {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 0fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  outline-offset: 4px;
  transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.svc.open {
  grid-template-rows: auto auto 1fr;
}

@media (hover: hover) {
  .svc:hover {
    grid-template-rows: auto auto 1fr;
  }
}

/* plus signifier, aligned with the headline; rotates to × when open */
.svc::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 2px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--royal);
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.svc.open::after {
  transform: rotate(45deg);
}

@media (hover: hover) {
  .svc:hover::after {
    transform: rotate(45deg);
  }
}

.svc .svc-kind {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--royal);
}

.svc h4 {
  font-family: var(--garamond);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 4px;
}

.svc p {
  font-size: 20px;
  color: var(--ink-70);
  max-width: 58ch;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  transition: opacity 0.3s, padding-top 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.svc.open p {
  opacity: 1;
  padding-top: 6px;
}

@media (hover: hover) {
  .svc:hover p {
    opacity: 1;
    padding-top: 6px;
  }
}

/* ---------- the KF way (metro line) ---------- */

.kf-way {
  background: var(--navy);
  color: var(--blush);
  padding: clamp(58px, 8.5vh, 100px) var(--gutter);
}

.kf-way .eyebrow {
  color: var(--peri);
}

.kf-way .section-head {
  margin-bottom: clamp(20px, 3.5vh, 40px);
}

.kf-way .section-head h2 {
  color: var(--blush);
}

.kf-way .lede {
  color: rgba(244, 236, 236, 0.8);
}

.kf-map-wrap {
  margin-top: clamp(10px, 2vh, 26px);
}

.kf-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  font-family: var(--garamond);
}

.kf-map .kf-rail {
  fill: none;
  stroke: var(--peri);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.7;
}

.kf-map .kf-node,
.kf-map .kf-label {
  transform-box: fill-box;
  transform-origin: center;
}

/* mobile vertical version */
.kf-vertical {
  display: none;
}

@media (max-width: 860px) {
  .kf-map-wrap {
    display: none;
  }

  .kf-vertical {
    display: grid;
    gap: 0;
    list-style: none;
    margin-top: clamp(20px, 4vh, 36px);
    position: relative;
  }

  /* the vertical rail: one line from first to last dot center.
     JS measures --rail-h exactly; the calc is the no-JS fallback
     (≈ full height minus the goal item). GSAP scrubs --rail-scale. */
  .kf-vertical::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 33px;
    height: var(--rail-h, calc(100% - 72px));
    width: 2px;
    background: var(--peri);
    opacity: 0.4;
    transform: scaleY(var(--rail-scale, 1));
    transform-origin: top;
  }

  .kf-v {
    position: relative;
    padding: 13px 0 13px 40px;
  }

  /* the node dot */
  .kf-v::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 26px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--peri);
  }

  .kf-v-start::after {
    background: var(--navy);
    border: 1.5px dashed var(--peri);
  }

  .kf-v-strategy::after,
  .kf-v-goal::after {
    width: 18px;
    height: 18px;
    left: 1px;
    top: 24px;
    background: var(--electric);
    box-shadow: 0 0 0 4px rgba(204, 216, 240, 0.18);
  }

  .kf-v-body h4 {
    font-family: var(--garamond);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.15;
    color: var(--blush);
  }

  /* secondary lines match the desktop map's sub-labels: small caps, peri */
  .kf-v-body p {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    color: var(--peri);
    margin-top: 3px;
  }

  .kf-v-num {
    font-family: var(--garamond);
    font-weight: 700;
    font-size: 20px;
    color: var(--blush);
    margin-right: 8px;
  }

  /* metro animation states — only when JS adds .kf-animate, so
     reduced-motion / no-JS renders the list fully static.
     .lit is toggled by the rail-tip scrub in main.js; dots pop with a
     back-out overshoot, labels rise 0.06s behind their dot. */
  .kf-animate .kf-v::after {
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .kf-animate .kf-v-body {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.42s ease 0.06s, transform 0.42s cubic-bezier(0.215, 0.61, 0.355, 1) 0.06s;
  }

  .kf-animate .kf-v.lit::after {
    transform: scale(1);
  }

  .kf-animate .kf-v.lit .kf-v-body {
    opacity: 1;
    transform: none;
  }
}

/* ---------- when to choose what ---------- */

.choose {
  background: var(--navy);
  color: var(--blush);
}

.choose .section-head h2 {
  color: var(--blush);
}

.choose .eyebrow {
  color: var(--peri);
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

@media (max-width: 800px) {
  .choose-grid {
    grid-template-columns: 1fr;
  }
}

.choose-card {
  border: 1px solid rgba(204, 216, 240, 0.28);
  border-radius: 2px;
  padding: clamp(22px, 2.6vw, 36px);
  transition: border-color 0.3s, background 0.3s;
}

.choose-card:hover {
  border-color: var(--peri);
  background: rgba(204, 216, 240, 0.06);
}

.choose-card h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(39px, 3.9vw, 60px);
  color: var(--peri);
}

.choose-card .when {
  font-weight: 600;
  color: var(--blush);
  margin-top: 12px;
  font-size: 22px;
}

.choose-card p {
  font-size: 20px;
  color: rgba(244, 236, 236, 0.75);
  margin-top: 8px;
}

.choose-close {
  margin-top: clamp(36px, 6vh, 64px);
  font-family: var(--garamond);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.12;
  color: var(--blush);
}

.choose-close em {
  font-style: italic;
  color: var(--peri);
}

/* ---------- case study spreads ---------- */

.spread {
  padding: clamp(56px, 10vh, 130px) 0;
  border-top: 1px solid var(--rule);
}

.spread-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 20px);
}

.spread-head h2 {
  font-size: clamp(52px, 8vw, 130px);
  color: var(--navy);
}

.spread-head .spread-meta {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.spread-head div.spread-meta {
  line-height: 1.55;
}

.spread-head div.spread-meta span:not(:first-child)::before {
  content: " · ";
  margin: 0 0.25em;
}

.spread-cols {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 96px);
  margin-top: clamp(28px, 5vh, 56px);
}

@media (max-width: 880px) {
  .spread-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

.spread-story .lede {
  font-size: clamp(20px, 1.9vw, 25px);
  max-width: none;
  padding-right: 5%;
}

.spread-story .role {
  margin-top: 22px;
  font-size: 20px;
  color: var(--ink-70);
  border-left: 2px solid var(--electric);
  padding-left: 14px;
  max-width: 52ch;
}

.spread-story .role b {
  color: var(--navy);
}

.spread-media {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  height: clamp(340px, 44vw, 560px);
}

.spread-media .media-slot {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  height: 100%;
  background: var(--peri);
}

.spread-media .media-slot:nth-child(2) {
  background: color-mix(in srgb, var(--peri) 72%, var(--blush));
}

.spread-media .media-slot.phone {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spread-media .media-slot.phone img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.spread-media .media-slot.video {
  background: var(--navy);
}

.spread-media .media-slot.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spread-results .eyebrow {
  margin-bottom: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.stat {
  background: var(--blush);
  padding: 18px 20px;
}

.stat b {
  display: block;
  font-family: var(--serif);
  /* sturdy cut, same as the record rail numbers */
  font-variation-settings: "opsz" 10;
  font-weight: 500;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  color: var(--royal);
  margin-bottom: 6px;
}

.stat.hi b {
  color: var(--electric);
}

.stat span {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-70);
  display: block;
  line-height: 1.45;
}

.outlet-row {
  margin-top: 22px;
  font-size: 20px;
  color: var(--ink-70);
  line-height: 1.7;
}

.outlet-row b {
  color: var(--navy);
  font-weight: 600;
}

.testimonial-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.testimonial-card-wrapper .quote-slot {
  width: 100%;
}

.quote-slot {
  margin-top: 26px;
  border: 1px dashed var(--navy);
  border-radius: 2px;
  padding: 0;
  font-size: 20px;
  color: var(--ink-60);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quote-body {
  padding: 22px;
}

.quote-slot .q-mark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: 40px;
  line-height: 0.6;
  color: var(--peri);
  display: block;
  margin-bottom: 10px;
}

.dropcap {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: 80px;
  line-height: 0.1;
  color: var(--electric);
  float: left;
  margin: 20px 8px 0 0;
  height: 9px;
  font-style: normal;
}

.quote-slot p {
  margin-bottom: 0;
  line-height: 1.5;
  color: var(--ink-85);
}

.quote-slot p em {
  font-style: italic;
  font-weight: 600;
}

.quote-body .text-link {
  margin-top: 16px;
}

.quote-footer {
  display: flex;
  align-items: center;
  border-top: 1px dashed var(--navy);
  padding: 8px;
  gap: 12px;
}

.quote-footer:not(:has(.quote-logo-mark)):not(:has(.quote-portrait)) {
  padding-left: 22px;
}

.quote-portrait {
  width: 60px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.quote-logo-mark {
  width: 60px;
  height: 60px;
  background: var(--navy);
  position: relative;
  flex-shrink: 0;
}

.quote-logo-mark .client-logo--sikwa {
  -webkit-mask-size: 70% auto;
  mask-size: 70% auto;
}

.quote-logo-mark .client-logo--conserva {
  -webkit-mask-size: auto 72%;
  mask-size: auto 72%;
}

.quote-logo-mark .client-logo--ocaso {
  -webkit-mask-size: 68% auto;
  mask-size: 68% auto;
}

.quote-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.quote-info cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.quote-info cite .author-name {
  display: block;
  font-size: 11.5px;
  color: var(--navy);
  font-weight: 600;
}

.quote-info cite .author-title {
  display: block;
  font-size: 11.5px;
  color: var(--ink-60);
  font-weight: 400;
}

/* ---------- selected clients band ---------- */

.clients-band {
  border-top: 1px solid var(--rule);
  padding-top: clamp(48px, 8vh, 90px);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2vw, 32px);
  margin-top: clamp(30px, 5vh, 54px);
}

@media (max-width: 720px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

.client-slot {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.3s;
}

.client-slot:hover {
  border-color: var(--royal);
}

/* Navy square holding the brand mark, bled to the card's left edge. */
.client-mark {
  position: relative;
  flex: 0 0 clamp(132px, 20%, 190px);
  aspect-ratio: 1 / 1;
  background: var(--navy);
}

/* Brand marks rendered as small, centred blush silhouettes via CSS mask,
   so every logo reads in one brand colour regardless of its source art. */
.client-logo {
  position: absolute;
  inset: 0;
  background-color: var(--blush);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Sizes tuned per mark so the seven feel visually equal at a small,
   boutique scale inside the generous navy field. Tall marks are sized by
   height (auto N%), wide/square marks by width (N% auto). */
.client-logo--recupe {
  -webkit-mask-image: url("img/logo-recupe-tiny.png");
  mask-image: url("img/logo-recupe-tiny.png");
  -webkit-mask-size: auto 46%;
  mask-size: auto 46%;
}

.client-logo--entierra {
  -webkit-mask-image: url("img/entierra-tiny.png");
  mask-image: url("img/entierra-tiny.png");
  -webkit-mask-size: 46% auto;
  mask-size: 46% auto;
}

.client-logo--juicylucy {
  -webkit-mask-image: url("img/juicylucy-logo-tiny.png");
  mask-image: url("img/juicylucy-logo-tiny.png");
  -webkit-mask-size: 50% auto;
  mask-size: 50% auto;
}

.client-logo--villas {
  -webkit-mask-image: url("img/villas-logo-tiny.png");
  mask-image: url("img/villas-logo-tiny.png");
  -webkit-mask-size: auto 50%;
  mask-size: auto 50%;
}

.client-logo--conserva {
  -webkit-mask-image: url("img/conservatorium-logo-tiny.png");
  mask-image: url("img/conservatorium-logo-tiny.png");
  -webkit-mask-size: auto 52%;
  mask-size: auto 52%;
}

.client-logo--ocaso {
  -webkit-mask-image: url("img/ocaso-logo-tiny.png");
  mask-image: url("img/ocaso-logo-tiny.png");
  -webkit-mask-size: 48% auto;
  mask-size: 48% auto;
}

.client-logo--sikwa {
  -webkit-mask-image: url("img/sikwa-jaguar-tiny.png");
  mask-image: url("img/sikwa-jaguar-tiny.png");
  -webkit-mask-size: 50% auto;
  mask-size: 50% auto;
}

.client-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 34px);
}

.client-slot .client-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1.02;
  color: var(--navy);
}

.client-slot p {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  line-height: 1.4;
  /* Always reserve two lines so a one-line subtitle occupies the same
     height as a two-line one — a wrap never reflows the card or its row. */
  min-height: calc(1.4em * 2);
}

/* Invitation card — completes the grid and invites the next client. */
.client-slot--invite {
  border-style: dashed;
}

.client-slot--invite:hover {
  border-style: solid;
}

.client-slot--invite .invite-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: clamp(30px, 3.4vw, 46px);
  color: var(--blush);
  transition: transform 0.3s;
}

.client-slot--invite:hover .invite-arrow {
  transform: translateX(6px);
}

.client-slot--invite .client-name {
  color: var(--royal);
}

.client-slot.featured {
  grid-column: span 2;
  background: var(--peri);
  border-color: var(--peri);
}

.client-slot.featured .client-name {
  font-size: clamp(26px, 2.6vw, 36px);
  color: var(--royal);
}

.client-slot.featured p {
  color: rgba(10, 36, 56, 0.7);
}

.client-slot.placeholder {
  border-style: dashed;
}

.client-slot.placeholder .client-name {
  color: var(--ink-60);
  font-size: 18px;
}

/* ---------- about page ---------- */

.bio-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 880px) {
  .bio-cols {
    grid-template-columns: 1fr;
  }
}

/* index teaser: single portrait, centered pair with the text */
.bio-cols.solo {
  grid-template-columns: minmax(0, 620px) auto;
  justify-content: center;
}

@media (max-width: 880px) {
  .bio-cols.solo {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

.bio-text p+p {
  margin-top: 18px;
}

.bio-text .lede+p {
  margin-top: 26px;
}

.bio-text p {
  color: var(--ink-85);
  max-width: 62ch;
}

.bio-text p b {
  font-weight: 600;
}

.bio-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.bio-media .media-slot {
  border-radius: 2px;
  overflow: hidden;
  background: var(--peri);
}

.bio-media .media-slot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  .bio-media {
    grid-template-columns: 1fr;
  }
}

/* index teaser: single portrait centered against the text */
.bio-cols.solo .bio-media {
  grid-template-columns: 1fr;
  align-self: center;
}

.bio-cols.solo .bio-media .media-slot {
  width: 100%;
  max-width: 480px;
}

.timeline {
  margin-top: clamp(52px, 9vh, 100px);
  border-top: 1px solid var(--rule);
}

.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(90px, 180px) 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: 26px 0;
}

/* bottom rule as a wipeable element; --tlw defaults to 1 so no-JS stays static */
.tl-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule-soft);
  transform: scaleX(var(--tlw, 1));
  transform-origin: left;
}

@media (max-width: 600px) {
  .tl-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
}

.tl-row .tl-year {
  font-family: var(--serif);
  font-variation-settings: "opsz" 50;
  font-weight: 500;
  font-size: clamp(39px, 4.2vw, 60px);
  line-height: 1.1;
  color: var(--electric);
}

.tl-row h3 {
  font-family: var(--garamond);
  font-size: 23px;
  font-weight: 600;
  color: var(--navy);
}

.tl-row p {
  font-size: 20px;
  color: var(--ink-70);
  margin-top: 4px;
  max-width: 66ch;
}

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}

.contact-card:hover {
  border-color: var(--royal);
  transform: translateY(-3px);
}

.contact-card .contact-kind {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
}

.contact-card h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 500;
  font-size: clamp(37.5px, 4.5vw, 66px);
  line-height: 1;
  color: var(--navy);
}

.contact-card p {
  font-size: 20px;
  color: var(--ink-70);
}

.contact-card .contact-value {
  font-family: var(--sans);
  margin-top: auto;
  font-weight: 500;
  color: var(--royal);
  font-size: 15.5px;
}

.contact-card.primary {
  background: var(--navy);
  border-color: var(--navy);
}

.contact-card.primary h3,
.contact-card.primary .contact-value {
  color: var(--blush);
}

.contact-card.primary .contact-kind {
  color: var(--peri);
}

.contact-card.primary p {
  color: rgba(244, 236, 236, 0.75);
}

.contact-card.primary:hover {
  border-color: var(--electric);
}

/* ---------- testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
}

@media (max-width: 960px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- closing CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--navy);
  color: var(--blush);
  padding: clamp(80px, 14vh, 170px) var(--gutter);
  text-align: center;
  overflow: clip;
}

.cta-band .inner {
  position: relative;
  z-index: 1;
}

.cta-band .eyebrow {
  color: var(--peri);
}

.cta-band .eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.cta-band h2 {
  font-size: clamp(46px, 7.6vw, 120px);
  color: var(--blush);
  max-width: 16ch;
  margin: 18px auto 0;
}

.cta-band p {
  max-width: 48ch;
  margin: 22px auto 0;
  color: rgba(244, 236, 236, 0.78);
}

.cta-band .hero-ctas,
.cta-band .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
}

/* ---------- footer ---------- */

footer.site-footer {
  background: var(--navy);
  color: var(--blush);
  padding: clamp(48px, 8vh, 80px) var(--gutter) 32px;
  border-top: 1px solid rgba(204, 216, 240, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid .f-logo img {
  height: 23px;
}

.footer-grid p {
  font-size: 20px;
  color: rgba(244, 236, 236, 0.6);
  margin-top: 16px;
  max-width: 34ch;
}

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peri);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  font-family: var(--sans);
  color: rgba(244, 236, 236, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--blush);
}

.footer-bottom {
  font-family: var(--sans);
  max-width: 1440px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(204, 216, 240, 0.15);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(244, 236, 236, 0.45);
}

/* ---------- reveal defaults (JS enhances) ---------- */
/* NOTE: will-change is intentionally NOT set here. A permanent will-change
   keeps every revealed element on its own compositor layer, which makes any
   residual sub-pixel transform from GSAP "stick" and misaligns grid rows.
   GSAP adds/removes will-change per tween on its own. */