/* ============================================================
   CINAB FORUM 2026 — Design tokens & global styles
   Aesthetic: Apple-event / Web-Summit tier, dark navy + orange
   ============================================================ */

:root {
  /* Palette */
  --ivory: #F5F1EA;
  --ivory-warm: #EFE9DE;
  --white: #FFFFFF;
  --navy: #0F1424;          /* deep navy (deeper than requested for premium feel) */
  --navy-2: #171E33;
  --navy-3: #232B44;
  --navy-line: #2A3350;
  --orange: #F47C3C;
  --orange-hot: #E85D1F;
  --orange-glow: rgba(244, 124, 60, 0.18);
  --gold: #E9B872;
  --muted: #7A8199;
  --muted-2: #B8BECF;

  /* Type */
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gutter: clamp(20px, 4.5vw, 72px);
  --section-y: clamp(80px, 12vw, 180px);
  --radius: 4px;
  --radius-lg: 16px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 700ms;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--navy);
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--orange); color: var(--navy); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.no-line::before { display: none; }

.display {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-size: clamp(52px, 9vw, 168px);
}
.display--m { font-size: clamp(40px, 6.5vw, 112px); line-height: 0.92; letter-spacing: -0.04em; }
.display--s { font-size: clamp(32px, 4.5vw, 72px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 600; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(32px, 4.5vw, 68px); font-weight: 700; letter-spacing: -0.035em; }
h3 { font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.02em; }
h4 { font-size: clamp(17px, 1.2vw, 20px); letter-spacing: -0.01em; }

p.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--navy);
  max-width: 62ch;
}

.serif { font-family: var(--sans); font-style: italic; font-weight: 400; }

/* ---------- Layout ---------- */
.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section-tight {
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(56px, 8vw, 120px);
}
.hairline { height: 1px; background: rgba(15, 20, 36, 0.1); border: 0; }
.dark .hairline { background: rgba(255, 255, 255, 0.08); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ---------- Dark section ---------- */
.dark {
  background: var(--navy);
  color: var(--ivory);
}
.dark .eyebrow { color: var(--orange); }
.dark p { color: var(--muted-2); }
.dark .hairline { background: rgba(255,255,255,0.08); }
.dark h2, .dark h3, .dark h4 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), background 200ms, color 200ms, border-color 200ms;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  color: var(--navy);
}
.btn--primary:hover { background: var(--orange-hot); color: var(--white); }

.btn--dark {
  background: var(--navy);
  color: var(--ivory);
}
.btn--dark:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }
.dark .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

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

.btn .arrow {
  display: inline-block;
  transition: transform 250ms var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Top nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 250ms var(--ease-out), backdrop-filter 250ms, border-color 250ms;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(15, 20, 36, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255,255,255,0.06);
}
.nav--light.nav--scrolled {
  background: rgba(245, 241, 234, 0.88);
  border-bottom-color: rgba(15, 20, 36, 0.08);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav--light .nav__brand { color: var(--navy); }
.nav__logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  border-radius: 6px;
}
.nav__brand-text {
  display: flex; flex-direction: column;
  line-height: 1;
}
.nav__brand-text small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,0.72);
  font-size: 13.5px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 180ms, background 180ms;
  letter-spacing: -0.005em;
}
.nav--light .nav__links a { color: rgba(15,20,36,0.72); }
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav--light .nav__links a:hover { color: var(--navy); background: rgba(15,20,36,0.05); }
.nav__links a.active { color: var(--white); }
.nav--light .nav__links a.active { color: var(--navy); font-weight: 500; }

.nav__cta {
  display: flex; align-items: center; gap: 12px;
}
.lang-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav--light .lang-toggle { background: rgba(15,20,36,0.06); }
.lang-toggle button {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.6);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  transition: background 180ms, color 180ms;
}
.nav--light .lang-toggle button { color: rgba(15,20,36,0.6); }
.lang-toggle button.on {
  background: var(--white);
  color: var(--navy);
}

.nav__cta .btn {
  padding: 12px 22px;
  font-size: 13.5px;
}

.nav__menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: currentColor;
  cursor: pointer;
  padding: 8px;
}
.nav--light .nav__menu-btn { color: var(--navy); }
.nav__menu-btn svg { display: block; }

@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: block; color: var(--white); }
  .nav--light .nav__menu-btn { color: var(--navy); }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 200;
  padding: 100px var(--gutter) 40px;
  display: none;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--ivory);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a.active { color: var(--orange); }
.mobile-menu__close {
  position: absolute;
  top: 20px; right: var(--gutter);
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 12px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(80px, 10vw, 140px) var(--gutter) 40px;
  position: relative;
  overflow: hidden;
}
.footer__watermark {
  position: absolute;
  bottom: -60px;
  left: 0; right: 0;
  font-size: clamp(80px, 22vw, 340px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.03);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}
.footer__brand h3 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.footer__brand p {
  color: var(--muted-2);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.55;
}
.footer__col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 12px; }
.footer__col a {
  color: var(--muted-2);
  font-size: 14px;
  transition: color 180ms;
}
.footer__col a:hover { color: var(--white); }

.footer__contact li {
  display: flex; align-items: start; gap: 10px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.5;
}
.footer__contact li span:first-child { font-size: 15px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  color: var(--muted);
  font-size: 12px;
  position: relative;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom p { color: var(--muted); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 100ms; }
.reveal.delay-2 { transition-delay: 200ms; }
.reveal.delay-3 { transition-delay: 300ms; }
.reveal.delay-4 { transition-delay: 400ms; }
.reveal.delay-5 { transition-delay: 500ms; }

/* Character stagger (used on display heros) */
.split-line { display: block; overflow: hidden; }
.split-word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1100ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.hero .split-word { will-change: transform; }
.hero.in .split-word { transform: translateY(0); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat {
  padding: 44px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat__num .plus { color: var(--orange); }
.stat__label {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted-2);
  letter-spacing: -0.005em;
  line-height: 1.35;
  max-width: 220px;
}
.stat__idx {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid rgba(15,20,36,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 400ms var(--ease-out), box-shadow 400ms;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -30px rgba(15,20,36,0.18);
}

.dark .card {
  background: var(--navy-2);
  border-color: rgba(255,255,255,0.06);
}
.dark .card:hover { box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5); }

/* ---------- CMS-rendered sponsor & partner cards ----------
   Rendered on public pages by assets/cms-render.js from
   admin-managed content in localStorage. */
.cms-sponsors, .cms-partners { padding-top: 0; }
.cms-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 900px) { .cms-sponsors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cms-sponsors-grid { grid-template-columns: 1fr; } }

.cms-sponsor-card {
  background: var(--white);
  border: 1px solid rgba(15,20,36,0.08);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 250ms, box-shadow 250ms, transform 250ms;
}
.cms-sponsor-card:hover {
  border-color: rgba(15,20,36,0.2);
  box-shadow: 0 20px 40px -24px rgba(15,20,36,0.15);
  transform: translateY(-2px);
}
.cms-sponsor-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: var(--ivory-warm);
  border-radius: 4px;
  padding: 20px;
  overflow: hidden;
}
.cms-sponsor-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cms-sponsor-card__logo--placeholder {
  font-family: var(--mono);
  font-size: 44px;
  color: var(--muted);
  font-weight: 500;
}
.cms-sponsor-card__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.2;
}
.cms-sponsor-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}

.cms-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 700px) { .cms-partners-grid { grid-template-columns: 1fr; } }
.cms-partner-card {
  background: var(--white);
  border: 1px solid rgba(15,20,36,0.08);
  padding: 24px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: center;
  transition: border-color 250ms, box-shadow 250ms;
}
.cms-partner-card:hover {
  border-color: rgba(15,20,36,0.2);
  box-shadow: 0 20px 40px -24px rgba(15,20,36,0.15);
}
@media (max-width: 500px) {
  .cms-partner-card { grid-template-columns: 72px 1fr; gap: 16px; padding: 20px; }
}
.cms-partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: var(--ivory-warm);
  border-radius: 4px;
  padding: 12px;
  overflow: hidden;
}
@media (max-width: 500px) {
  .cms-partner-card__logo { height: 72px; padding: 8px; }
}
.cms-partner-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cms-partner-card__logo--placeholder {
  font-family: var(--mono);
  font-size: 36px;
  color: var(--muted);
  font-weight: 500;
}
.cms-partner-card__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 8px;
}
.cms-partner-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}

/* CMS grid empty state — spans the full grid width */
.cms-sponsors-grid.cms-grid--empty { grid-template-columns: 1fr; }
.cms-empty-state {
  padding: 56px 40px;
  background: var(--white);
  border: 1px dashed rgba(15,20,36,0.18);
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cms-empty-state__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(244,124,60,0.10);
  color: var(--orange-hot, #E85D1F);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.cms-empty-state__msg {
  font-size: 17px;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 42ch;
  line-height: 1.45;
}

/* ---------- i18n visibility ----------
   Scoped to <span> so translation targets stay inline
   without forcing block-level elements (h1, p, div) inline. */
span[data-en], span[data-fr] { display: inline; }
html[lang="fr"] [data-en]:not([data-fr]) { }
html[lang="en"] [data-fr]:not([data-en]) { }
html[lang="en"] .fr-only { display: none !important; }
html[lang="fr"] .en-only { display: none !important; }

/* Marquee */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 45s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section header block reused */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}
.section-head__title { font-size: clamp(40px, 5.5vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }
.section-head__lede { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--navy); max-width: 46ch; }
.dark .section-head__lede { color: var(--muted-2); }

/* Number decorative */
.num-decor {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  margin-bottom: 16px;
}

/* Utility */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
