/* =========================================================
   CMA — Design Tokens
   Modern boutique • quiet luxury • editorial serif
   ========================================================= */

:root {
  /* ---- Color: Brand ---- */
  --ink-900: #0a1a33;        /* primary navy — deepened from CMA blue */
  --ink-800: #0f2547;
  --ink-700: #1a3461;
  --ink-600: #2c4877;
  --ink-500: #4a6694;

  /* ---- Color: Accent (warm champagne / sand) ---- */
  --sand-600: #b08543;       /* deep brass — for emphasis */
  --sand-500: #c9a86a;       /* primary accent */
  --sand-400: #d9bf8a;
  --sand-300: #e6d3ac;
  --sand-200: #f1e4c9;
  --sand-100: #faf2e0;

  /* ---- Color: Neutrals (warm) ---- */
  --bone-50:  #faf7f0;       /* ivory page bg */
  --bone-100: #f3eee2;       /* card / band */
  --bone-200: #e8e0cd;       /* hairline on warm */
  --bone-300: #d3c8ae;

  --paper:    #ffffff;
  --char-900: #14161a;
  --char-800: #22262e;
  --char-700: #353a44;
  --char-600: #525864;
  --char-500: #6b7280;
  --char-400: #98a0ac;
  --char-300: #c4cad3;
  --char-200: #e4e7eb;
  --char-100: #f1f3f6;

  /* ---- Type ---- */
  --font-display: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --font-sans:    "Geist", "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Type scale */
  --fs-display-xl: clamp(64px, 8.5vw, 152px);
  --fs-display-l:  clamp(52px, 6.4vw, 108px);
  --fs-display-m:  clamp(40px, 4.6vw, 76px);
  --fs-display-s:  clamp(32px, 3.4vw, 56px);
  --fs-h1:         clamp(36px, 4vw, 64px);
  --fs-h2:         clamp(28px, 2.6vw, 44px);
  --fs-h3:         clamp(22px, 1.6vw, 28px);
  --fs-h4:         18px;
  --fs-body-lg:    19px;
  --fs-body:       16px;
  --fs-body-sm:    14px;
  --fs-eyebrow:    12px;

  /* Spacing — 4pt scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px; --sp-40: 160px;

  /* Radii */
  --r-xs: 2px; --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 20px; --r-pill: 999px;

  /* Shadows — refined, not glowy */
  --shadow-sm: 0 1px 2px rgba(10,26,51,.06), 0 1px 1px rgba(10,26,51,.04);
  --shadow-md: 0 4px 12px rgba(10,26,51,.08), 0 2px 4px rgba(10,26,51,.04);
  --shadow-lg: 0 24px 48px -16px rgba(10,26,51,.18), 0 8px 16px -8px rgba(10,26,51,.08);
  --shadow-xl: 0 40px 80px -24px rgba(10,26,51,.28);

  /* Layout */
  --max-w: 1440px;
  --gutter: clamp(24px, 4vw, 64px);
  --nav-h: 84px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 200ms;
  --t-med: 400ms;
  --t-slow: 800ms;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--char-800);
  background: var(--bone-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; }

/* ===== Typography classes ===== */
.display-xl { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-display-xl);
  line-height: 0.92; letter-spacing: -0.025em; font-style: normal; }
.display-l  { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-display-l);
  line-height: 1.04; letter-spacing: -0.022em; padding-bottom: 0.08em; }
.display-m  { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-display-m);
  line-height: 1.02; letter-spacing: -0.02em; }
.display-s  { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display-s);
  line-height: 1.08; letter-spacing: -0.015em; }
.h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1);
  line-height: 1.08; letter-spacing: -0.015em; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2);
  line-height: 1.12; letter-spacing: -0.01em; }
.h3 { font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-h3);
  line-height: 1.25; letter-spacing: -0.005em; }
.h4 { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-h4);
  line-height: 1.4; letter-spacing: 0; }
.lead { font-size: var(--fs-body-lg); line-height: 1.55; color: var(--char-700); font-weight: 400; }
.body { font-size: var(--fs-body); line-height: 1.65; color: var(--char-700); }
.body-sm { font-size: var(--fs-body-sm); line-height: 1.55; color: var(--char-600); }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-600);
}

.italic-soft { font-style: italic; font-weight: 300; color: var(--ink-700); }

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(80px, 10vw, 160px); }
.section-sm { padding-block: clamp(56px, 7vw, 96px); }

.hairline { background: var(--bone-200); height: 1px; width: 100%; }
.hairline-dark { background: rgba(255,255,255,.12); height: 1px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  transition: all var(--t-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-900); color: var(--bone-50);
  border: 1px solid var(--ink-900);
}
.btn-primary:hover { background: var(--ink-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--sand-500); color: var(--ink-900);
  border: 1px solid var(--sand-500);
}
.btn-accent:hover { background: var(--sand-600); color: var(--bone-50); }
.btn-ghost {
  background: transparent; color: var(--ink-900);
  border: 1px solid var(--ink-900);
}
.btn-ghost:hover { background: var(--ink-900); color: var(--bone-50); }
.btn-ghost-light {
  background: transparent; color: var(--bone-50);
  border: 1px solid rgba(255,255,255,.4);
}
.btn-ghost-light:hover { background: var(--bone-50); color: var(--ink-900); border-color: var(--bone-50); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 0;
  color: var(--ink-900);
  border-bottom: 1px solid var(--ink-900);
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  transition: gap var(--t-fast) var(--ease-out);
}
.btn-link:hover { gap: 14px; }
.btn-link .arrow { transition: transform var(--t-fast) var(--ease-out); }
.btn-link:hover .arrow { transform: translateX(4px); }

/* ===== Logo (refined wordmark) ===== */
.cma-mark { display: inline-flex; align-items: center; gap: 12px; }
.cma-mark__sym {
  width: 32px; height: 32px; flex: 0 0 32px;
}
.cma-mark__word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.42em;
  color: var(--ink-900);
  padding-left: 4px;
}

/* ===== Reveal animations — currently disabled, content renders immediately ===== */
[data-reveal] { /* no-op; using IntersectionObserver-driven approach in components/reveal.js */ }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }

/* ===== Selection ===== */
::selection { background: var(--sand-300); color: var(--ink-900); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bone-100); }
::-webkit-scrollbar-thumb { background: var(--char-300); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--char-400); }
