/* ============================================================
   Cassis + Kankana — Design System
   Aesthetic: Theatrical / Editorial / Playbill
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── PALETTE ─────────────────────────────────────── */
  --ink:           oklch(13% 0.012 30);     /* warm near-black */
  --ink-soft:      oklch(22% 0.012 30);
  --ash:          oklch(38% 0.008 30);
  --smoke:        oklch(60% 0.006 30);
  --paper:        oklch(95% 0.018 80);      /* warm cream */
  --paper-warm:   oklch(89% 0.028 78);      /* parchment */
  --paper-deep:   oklch(84% 0.038 76);      /* tan-paper */
  --curtain:      oklch(32% 0.10 260);     /* Kankana navy */
  --curtain-lit:  oklch(44% 0.12 260);     /* spotlit navy */
  --curtain-deep: oklch(20% 0.08 260);     /* shadow navy */
  --brass:        oklch(76% 0.08 75);       /* Kankana tan/brass */
  --brass-deep:   oklch(62% 0.09 70);
  --navy:         oklch(24% 0.08 260);      /* Kankana navy */
  --navy-lit:     oklch(34% 0.10 260);
  --line:         oklch(13% 0.012 30 / 0.18);
  --line-soft:    oklch(13% 0.012 30 / 0.08);
  --line-on-dark: oklch(95% 0.018 80 / 0.18);

  /* ── TYPE ────────────────────────────────────────── */
  --serif:  'Spectral', 'Times New Roman', serif;
  --sans:   'Fira Sans', system-ui, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;

  /* ── SCALE & RHYTHM ──────────────────────────────── */
  --col: min(1280px, 100% - 48px);
  --col-narrow: min(880px, 100% - 48px);
  --col-wide: min(1560px, 100% - 32px);
  --gutter: clamp(16px, 3vw, 28px);

  --pad-section: clamp(56px, 7.5vw, 112px);
  --pad-hero:    clamp(80px, 12vw, 200px);

  /* ── MOTION ──────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-fast: 160ms var(--ease-out);
  --t-med:  320ms var(--ease-out);
  --t-slow: 720ms var(--ease-out);

  --motion-scale: 1;  /* tweakable */
  --density: 1;       /* tweakable: padding multiplier */
}

/* ── DARK THEME (default for hero/footer) ─────────── */
.on-dark {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-muted: oklch(80% 0.025 80 / 0.7);
  --line-c: var(--line-on-dark);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.68;
}

.on-paper {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--ash);
  --line-c: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.on-curtain {
  --bg: var(--curtain-deep);
  --fg: var(--paper);
  --fg-muted: oklch(85% 0.04 260 / 0.75);
  --line-c: oklch(95% 0.018 80 / 0.22);
  background: var(--curtain-deep);
  color: var(--paper);
}

/* ── BASE ────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--curtain); color: var(--paper); }

img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ── TYPE SCALE ──────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted, var(--ash));
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.no-rule::before { display: none; }

.eyebrow .roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--curtain);
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display em, .display i, .display .it {
  font-style: italic;
  font-weight: 500;
  color: var(--curtain);
}

h1.display { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 600; line-height: 1.0; }
h2.display { font-size: clamp(2.25rem, 5.5vw, 4.5rem); line-height: 1.04; }
h3.display { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; line-height: 1.1; }
h4.display { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; line-height: 1.2; }

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg, var(--ink));
  max-width: 50ch;
  text-wrap: pretty;
}

p { max-width: 64ch; text-wrap: pretty; }

.numeral {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

/* ── LAYOUT ──────────────────────────────────────── */
.wrap { width: var(--col); margin-inline: auto; }
.wrap-narrow { width: var(--col-narrow); margin-inline: auto; }
.wrap-wide   { width: var(--col-wide);   margin-inline: auto; }

.section {
  padding-block: calc(var(--pad-section) * var(--density));
}

.section.tight {
  padding-block: clamp(48px, 6vw, 96px);
}

/* ── SECTION HEADER ──────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

@media (min-width: 900px) {
  .section-head.split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: end;
  }
}

.section-head .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-c, var(--line));
}

/* ── HEADER / NAV ────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: oklch(13% 0.012 30 / 0.88);
  color: var(--paper);
  border-bottom: 1px solid oklch(95% 0.018 80 / 0.06);
  transition: background var(--t-med), padding var(--t-med), border-color var(--t-med);
}

.site-header.is-scrolled {
  background: oklch(13% 0.012 30 / 0.97);
  padding-block: 12px;
  border-bottom-color: oklch(95% 0.018 80 / 0.12);
}

.site-header.theme-paper {
  background: oklch(95% 0.018 80 / 0.94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header.theme-paper.is-scrolled {
  background: oklch(95% 0.018 80 / 0.98);
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.brand .amp {
  font-style: italic;
  color: var(--curtain-lit);
  font-weight: 500;
}
.brand .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  padding-left: 10px;
  border-left: 1px solid currentColor;
  border-left-color: oklch(95% 0.018 80 / 0.3);
}
.site-header.theme-paper .brand .sub { border-left-color: var(--line); }

.nav {
  display: none;
  align-items: center;
  gap: 6px;
}
@media (min-width: 880px) { .nav { display: flex; } }

.nav a, .nav .nav-trigger {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  color: inherit;
  background: none;
  border: none;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav a:hover, .nav .nav-trigger:hover { color: var(--curtain-lit); }
.site-header.theme-paper .nav a:hover,
.site-header.theme-paper .nav-trigger:hover { color: var(--curtain); }

.nav a[aria-current="page"]::after,
.nav .nav-trigger.is-active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--curtain-lit);
}
.site-header.theme-paper .nav a[aria-current="page"]::after { background: var(--curtain); }

.nav-cta {
  margin-left: 10px;
  padding: 10px 18px !important;
  background: var(--curtain) !important;
  color: var(--paper) !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--curtain-lit) !important; color: var(--paper) !important; }

/* dropdown */
.nav-group { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--ink);
  border: 1px solid var(--line-on-dark);
  border-radius: 12px;
  padding: 8px;
  min-width: 280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.site-header.theme-paper .nav-menu {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 12px 40px oklch(13% 0.012 30 / 0.12);
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: block;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  border-radius: 8px;
}
.nav-menu a:hover { background: oklch(95% 0.018 80 / 0.08); }
.site-header.theme-paper .nav-menu a:hover { background: var(--paper-deep); }
.nav-menu a .desc {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  opacity: 0.55;
  margin-top: 2px;
  letter-spacing: 0;
}

/* right utilities */
.header-utils { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
}
.site-header.theme-paper .lang-switch { border-color: var(--line); }
.lang-switch button {
  background: none;
  border: none;
  padding: 6px 10px;
  color: inherit;
  opacity: 0.55;
  text-transform: uppercase;
  transition: all var(--t-fast);
}
.lang-switch button[aria-pressed="true"] {
  opacity: 1;
  background: var(--curtain);
  color: var(--paper);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: 0 10px;
}
.site-header.theme-paper .menu-toggle { border-color: var(--line); }
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
@media (min-width: 880px) { .menu-toggle { display: none; } }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-3.25px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--paper);
  padding: 80px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform var(--t-med);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-on-dark);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  text-decoration: none;
}
.mobile-menu a .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0.5;
  width: 32px;
}
.mobile-menu a:hover { color: var(--curtain-lit); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  --bg: var(--curtain);
  --fg-: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--bg);
  color: var(--fg-);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: var(--curtain-lit);
  transform: translateY(-1px);
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  --bg: transparent;
  --fg-: inherit;
  border-color: currentColor;
}
.btn-ghost:hover {
  background: currentColor;
  color: var(--paper);
}
.on-dark .btn-ghost:hover { color: var(--ink); }

.btn-ink {
  --bg: var(--ink);
  --fg-: var(--paper);
}
.btn-ink:hover { background: var(--ink-soft); }

/* Underline link */
.u-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--curtain);
  transition: color var(--t-fast), gap var(--t-fast);
}
.u-link:hover { gap: 14px; color: var(--curtain-lit); }
.on-dark .u-link { color: var(--brass); }
.on-dark .u-link:hover { color: var(--paper); }

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(20px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.card .card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--curtain);
}

.card .card-bot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* image card */
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
  isolation: isolate;
}
.image-card .img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.image-card:hover .img { transform: scale(1.04); }
.image-card .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(13% 0.012 30 / 0) 35%, oklch(13% 0.012 30 / 0.85) 100%),
    linear-gradient(180deg, oklch(13% 0.012 30 / 0.25) 0%, oklch(13% 0.012 30 / 0) 30%);
  pointer-events: none;
}
.image-card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 2.4vw, 32px);
  color: var(--paper);
  z-index: 1;
}
.image-card .meta .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-on-dark);
  background: oklch(13% 0.012 30 / 0.5);
  border-radius: 999px;
  display: inline-block;
}
.image-card .meta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  margin-top: 16px;
  line-height: 1.1;
}
.image-card .meta .sub {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 6px;
}

/* placeholder tile (when no image) */
.placeholder-tile {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, oklch(32% 0.10 260 / 0.4), transparent 60%),
    radial-gradient(circle at 70% 80%, oklch(72% 0.13 78 / 0.25), transparent 55%),
    var(--ink);
  display: grid;
  place-items: center;
}
.placeholder-tile .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 12vw, 140px);
  color: oklch(95% 0.018 80 / 0.18);
  font-weight: 400;
}
.placeholder-tile.warm {
  background:
    radial-gradient(circle at 25% 30%, oklch(72% 0.13 78 / 0.35), transparent 55%),
    radial-gradient(circle at 75% 75%, oklch(32% 0.10 260 / 0.45), transparent 55%),
    var(--ink-soft);
}
.placeholder-tile.cool {
  background:
    radial-gradient(circle at 30% 70%, oklch(40% 0.08 220 / 0.45), transparent 55%),
    radial-gradient(circle at 80% 20%, oklch(32% 0.10 260 / 0.4), transparent 55%),
    var(--ink);
}

/* ── MARQUEE BAND ────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line-c, var(--line));
  overflow: hidden;
  padding-block: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee-scroll calc(50s / var(--motion-scale)) linear infinite;
  will-change: transform;
}
.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--curtain);
  display: inline-block;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── CTA BAND & CONTACT STRIP ─────────────────────── */
.cta-band {
  background: var(--curtain);
  color: var(--paper);
  padding-block: clamp(80px, 12vh, 140px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid oklch(95% 0.018 80 / 0.15);
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 160px;
  background: radial-gradient(ellipse at 50% 0%, oklch(76% 0.09 70 / 0.28), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(0deg, oklch(13% 0.012 30 / 0.4), transparent);
  pointer-events: none;
  z-index: 1;
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-inner .eyebrow {
  justify-content: center;
  color: var(--brass);
  font-family: var(--mono);
  letter-spacing: 0.22em;
  margin-bottom: 8px;
}
.cta-inner .cta-h,
.cta-h {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.06;
  font-weight: 400;
  margin-block: 16px 20px;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}
.cta-inner .cta-h em,
.cta-h em {
  font-style: italic;
  color: var(--brass);
  font-weight: 400;
}
.cta-band .lede {
  color: var(--paper);
  opacity: 0.92;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  max-width: 56ch;
  margin-inline: auto;
}
.cta-band .row {
  gap: 16px;
  margin-top: 36px;
  justify-content: center;
}
.cta-band .btn-ink {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid oklch(95% 0.018 80 / 0.2);
  box-shadow: 0 8px 24px oklch(13% 0.012 30 / 0.35);
}
.cta-band .btn-ink:hover {
  background: var(--ink-soft);
  border-color: var(--brass);
  transform: translateY(-2px);
}
.cta-band .btn-ghost {
  background: oklch(95% 0.018 80 / 0.08);
  border-color: oklch(95% 0.018 80 / 0.35);
  color: var(--paper);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cta-band .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-2px);
}
.cta-contact-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px 20px !important;
  margin-top: 36px !important;
  padding-top: 24px !important;
  border-top: 1px solid oklch(95% 0.018 80 / 0.18) !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}
.cta-contact-strip a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--paper) !important;
  text-decoration: none !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  background: oklch(13% 0.012 30 / 0.3) !important;
  border: 1px solid oklch(95% 0.018 80 / 0.18) !important;
  transition: all var(--t-fast) !important;
  line-height: 1 !important;
}
.cta-contact-strip a:hover {
  background: oklch(95% 0.018 80 / 0.18) !important;
  border-color: var(--brass) !important;
  color: var(--brass) !important;
  transform: translateY(-1px) !important;
}
.cta-contact-strip svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  fill: currentColor !important;
}
.cta-contact-strip .cta-loc {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  opacity: 0.65 !important;
  color: var(--paper) !important;
  font-size: 11px !important;
  padding: 4px 8px !important;
}
.cta-contact-strip .cta-loc svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
}

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 120px) 28px 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -10%;
  right: -10%;
  height: 140px;
  background: radial-gradient(ellipse at center top, oklch(32% 0.10 260 / 0.35), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  width: var(--col);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a {
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.footer-grid a:hover { opacity: 1; color: var(--brass); }
.footer-grid p { opacity: 0.7; font-size: 14px; max-width: 32ch; }

.footer-brand .logomark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.footer-brand .logomark em { color: var(--curtain-lit); font-weight: 500; }

.footer-bottom {
  width: var(--col);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ── REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 600ms var(--ease-out) calc(var(--reveal-d, 0) * 70ms),
    transform 600ms var(--ease-out) calc(var(--reveal-d, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.is-visible { transition: none; }
  .marquee-track { animation: none; }
}

/* ── CURTAIN DECORATION ──────────────────────────── */
.curtain-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg,
      oklch(24% 0.08 260 / 0) 0,
      oklch(24% 0.08 260 / 0) 18px,
      oklch(16% 0.06 260 / 0.6) 36px,
      oklch(16% 0.06 260 / 0) 60px);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.spotlight {
  position: absolute;
  pointer-events: none;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle at center, oklch(72% 0.13 78 / 0.25), oklch(72% 0.13 78 / 0) 60%);
  filter: blur(20px);
}

/* ── PROCESS / STEPS ─────────────────────────────── */
.steps {
  display: grid;
  gap: 1px;
  background: var(--line-c, var(--line));
  border: 1px solid var(--line-c, var(--line));
}
@media (min-width: 720px) {
  .steps.cols-5 { grid-template-columns: repeat(5, 1fr); }
  .steps.cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.step {
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--bg, var(--paper));
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--t-med);
}
.step:hover { background: var(--paper-warm); }
.on-dark .step { background: var(--ink); }
.on-dark .step:hover { background: var(--ink-soft); }
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  color: var(--curtain);
  font-weight: 400;
  line-height: 1;
}
.step h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}
.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ── TICKER (small horizontal logo row) ─────────── */
.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  justify-content: center;
  padding-block: 48px;
}
.ticker .client {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.6;
  transition: opacity var(--t-fast);
}
.ticker .client:hover { opacity: 1; }
.ticker .client.italic { font-style: italic; }
.ticker .sep {
  font-family: var(--serif);
  color: var(--curtain);
  opacity: 0.6;
}

/* ── PILL TAGS ───────────────────────────────────── */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-c, var(--line));
  border-radius: 999px;
}

/* ── WHATSAPP FLOAT ──────────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 32px oklch(13% 0.012 30 / 0.25);
  color: white;
  transition: transform var(--t-fast);
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 26px; height: 26px; }

/* ── i18n hide swap ──────────────────────────────── */
[data-i18n-en] [lang="en"]:not(.show),
html[lang="es"] [data-when="en"] { display: none; }
html[lang="en"] [data-when="es"] { display: none; }

@media (max-width: 600px) {
  .wa-float { right: 12px; bottom: 22px; }
}

/* ── HORIZONTAL RULE WITH FLOURISH ───────────────── */
.flourish {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block: 32px;
}
.flourish::before, .flourish::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-c, var(--line));
}
.flourish .ornament {
  font-family: var(--serif);
  font-style: italic;
  color: var(--curtain);
}

/* ── UTILITIES ───────────────────────────────────── */
.center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.muted { color: var(--fg-muted); }
.italic { font-style: italic; }
.no-wrap { white-space: nowrap; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-md { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row.gap-sm { gap: 8px; }
.row.gap-lg { gap: 32px; }

/* aspect ratios */
.ar-4-3 { aspect-ratio: 4/3; }
.ar-3-4 { aspect-ratio: 3/4; }
.ar-1   { aspect-ratio: 1/1; }
.ar-16-9 { aspect-ratio: 16/9; }
.ar-3-2 { aspect-ratio: 3/2; }
.ar-2-3 { aspect-ratio: 2/3; }
.ar-21-9 { aspect-ratio: 21/9; }

/* hide while js loads */
html.no-js .reveal { opacity: 1; transform: none; }

/* ── CAROUSEL ────────────────────────────────────── */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}
.carousel-slide image-slot {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}
/* Hide carousel scrollbars in every browser — older Chrome/Safari ignore the
   inline scrollbar-width and would show a dark line under the card photo */
.carousel-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  justify-content: space-between;
  width: 100%;
  pointer-events: none;
  padding: 0 12px;
}
.carousel-btn {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 12px oklch(13% 0.012 30 / 0.15);
  transition: transform var(--t-fast), background var(--t-fast);
  z-index: 25;
}
.carousel-btn:hover {
  transform: scale(1.08);
  background: var(--paper-warm);
}
.carousel-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── CAROUSEL DOTS ──────────────────────────────── */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: oklch(13% 0.012 30 / 0.45);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  pointer-events: auto;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: oklch(95% 0.018 80 / 0.45);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), width var(--t-fast);
  flex-shrink: 0;
  padding: 0;
}
.carousel-dot.is-on {
  background: var(--paper);
  width: 14px;
  border-radius: 999px;
}
.carousel-dot:hover {
  background: oklch(95% 0.018 80 / 0.85);
}

/* ── CAROUSEL COUNTER (for cards with > 6 images) ── */
.carousel-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 25;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: oklch(13% 0.012 30 / 0.65);
  backdrop-filter: blur(6px);
  color: var(--paper);
  pointer-events: none;
}
