/* LOCVS — tokens */
@font-face { font-family: 'Campton'; src: url('../assets/fonts/CamptonLight.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Campton'; src: url('../assets/fonts/CamptonBook.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Campton'; src: url('../assets/fonts/CamptonBookItalic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Campton'; src: url('../assets/fonts/CamptonMedium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Campton'; src: url('../assets/fonts/CamptonSemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --paper: #F2F0EB;
  --paper-2: #EAE8E3;
  /* Anthracite — the LOCVS "black". Never pure #000. */
  --ink: #1F2428;
  --ink-deep: #141820;    /* used sparingly for max contrast */
  --ink-2: #5C6268;
  --ink-3: #8E9298;
  --ink-4: #C8C5BE;
  --rule: #D8D5CE;
  --rule-soft: #E5E2DC;
  --white: #FFFFFF;
  --coty: #F2F0EB;

  /* OrbAI-style shadow architecture — 6 progressive layers + white inset specular */
  --shadow-card:
    rgba(31, 36, 40, 0.07) 0 0.7px 0.7px -0.67px,
    rgba(31, 36, 40, 0.07) 0 1.8px 1.8px -1.33px,
    rgba(31, 36, 40, 0.065) 0 3.6px 3.6px -2px,
    rgba(31, 36, 40, 0.06) 0 6.9px 6.9px -2.67px,
    rgba(31, 36, 40, 0.05) 0 13.6px 13.6px -3.33px,
    rgba(31, 36, 40, 0.03) 0 30px 30px -4px,
    rgba(255, 255, 255, 1) 0 1.5px 0.5px 0 inset;

  --shadow-lifted:
    rgba(31, 36, 40, 0.09) 0 0.7px 0.7px -0.54px,
    rgba(31, 36, 40, 0.085) 0 1.8px 1.8px -1.08px,
    rgba(31, 36, 40, 0.08) 0 3.6px 3.6px -1.63px,
    rgba(31, 36, 40, 0.08) 0 6.9px 6.9px -2.17px,
    rgba(31, 36, 40, 0.07) 0 13.6px 13.6px -2.71px,
    rgba(31, 36, 40, 0.05) 0 30px 30px -3.25px,
    rgba(255, 255, 255, 0.95) 0 1.5px 0.5px 0 inset;

  --shadow-button:
    rgba(20, 24, 32, 0.65) 0 0.6px 1.1px -1.25px,
    rgba(20, 24, 32, 0.55) 0 2.3px 4.1px -2.5px,
    rgba(20, 24, 32, 0.22) 0 10px 18px -3.75px,
    rgba(255, 255, 255, 0.08) 0 0.5px 0 0 inset;

  --shadow-badge:
    rgba(31, 36, 40, 0.08) 0 0.7px 0.7px -0.54px,
    rgba(31, 36, 40, 0.07) 0 1.8px 1.8px -1.08px,
    rgba(31, 36, 40, 0.06) 0 3.6px 3.6px -1.63px,
    rgba(255, 255, 255, 0.9) 0 1px 0.5px 0 inset;

  --font-sans: 'Campton', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --t-hero:    clamp(3rem, 8.5vw, 7.5rem);
  --t-display: clamp(2.5rem, 6vw, 5rem);
  --t-h1:      clamp(1.75rem, 3vw, 2.5rem);
  --t-h2:      clamp(1.25rem, 1.9vw, 1.625rem);
  --t-body:    clamp(1rem, 1.1vw, 1.0625rem);
  --t-body-lg: clamp(1.0625rem, 1.2vw, 1.1875rem);
  --t-caption: 0.8125rem;
  --t-overline:0.6875rem;
  --t-serif-q: clamp(1.375rem, 2.2vw, 1.875rem);
  --t-serif-e: clamp(1.875rem, 3.4vw, 3rem);

  --e-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --e-default:cubic-bezier(0.25, 0, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; }

.t-hero    { font-size: var(--t-hero);    font-weight: 200; letter-spacing: -0.03em; line-height: 0.92; }
.t-display { font-size: var(--t-display); font-weight: 200; letter-spacing: -0.02em; line-height: 1;    }
.t-h1      { font-size: var(--t-h1);      font-weight: 300; letter-spacing: -0.015em; line-height: 1.08; }
.t-h2      { font-size: var(--t-h2);      font-weight: 400; letter-spacing: -0.005em; line-height: 1.25; }
.t-body    { font-size: var(--t-body);    font-weight: 300; line-height: 1.65; }
.t-body-lg { font-size: var(--t-body-lg); font-weight: 300; line-height: 1.55; }
.t-caption { font-size: var(--t-caption); font-weight: 400; letter-spacing: 0.08em; line-height: 1.45; }
.t-overline{ font-size: var(--t-overline);font-weight: 500; letter-spacing: 0.22em; line-height: 1.4; text-transform: uppercase; }
.t-serif-q { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: var(--t-serif-q); line-height: 1.35; }
.t-serif-e { font-family: var(--font-serif); font-weight: 300; font-size: var(--t-serif-e); line-height: 1.15; letter-spacing: -0.005em; }
.t-mono    { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }

.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }
.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 300; }

.btn {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 12px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; min-height: 48px;
  transition: transform 250ms var(--e-out), background 200ms, color 200ms, border-color 200ms, opacity 200ms, box-shadow 300ms var(--e-out);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-button); }
.btn-primary:hover { background: var(--ink-deep); }
.btn-ghost   { background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 12px; }
.btn-ghost:hover   { background: var(--ink); color: var(--paper); }
.btn-quiet   { background: var(--paper); color: var(--ink); border: 1px solid transparent; box-shadow: var(--shadow-badge); }
.btn-quiet:hover   { box-shadow: var(--shadow-lifted); }
.btn .arrow  { transition: transform 250ms var(--e-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* OrbAI-style pill badge — used as every section's overline label */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-radius: 999px;
  box-shadow:
    rgba(31, 36, 40, 0.10) 0 0.8px 0.8px -0.6px,
    rgba(31, 36, 40, 0.09) 0 2.2px 2.2px -1.2px,
    rgba(31, 36, 40, 0.08) 0 5px 5px -1.8px,
    rgba(31, 36, 40, 0.06) 0 10px 10px -2.5px,
    rgba(31, 36, 40, 0.04) 0 22px 22px -3.3px,
    rgba(255, 255, 255, 1) 0 1.2px 0.4px 0 inset,
    rgba(31, 36, 40, 0.04) 0 -0.5px 0.4px 0 inset;
  border-radius: 999px;
  box-shadow: var(--shadow-badge);
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; stroke: var(--ink-2); flex-shrink: 0; }
.pill .pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.pill-on-dark {
  background: rgba(255,255,255,0.06);
  box-shadow: rgba(255,255,255,0.08) 0 0.5px 0 0 inset, rgba(0,0,0,0.3) 0 6px 14px -4px;
  color: rgba(242,240,235,0.85);
}
.pill-on-dark svg { stroke: rgba(242,240,235,0.85); }
.pill-on-dark .pill-dot { background: var(--paper); }

/* Unified card — OrbAI rhythm: same-bg-as-page + progressive shadow + white inset highlight */
.card-s {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 400ms var(--e-out), transform 400ms var(--e-out);
}
.card-s:hover { box-shadow: var(--shadow-lifted); transform: translateY(-2px); }
.card-s-plain { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-card); }

/* Centered section heading block */
.sec-head {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center; margin: 0 auto 56px; max-width: 720px;
}
.sec-head h2 { margin: 0; text-wrap: balance; }
.sec-head p { margin: 0; max-width: 620px; }
.sec-head-wide { max-width: 860px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 760px) { .wrap { padding: 0 20px; } }

/* .label — legacy alias mapped to OrbAI pill treatment */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-radius: 999px;
  box-shadow:
    rgba(31, 36, 40, 0.10) 0 0.8px 0.8px -0.6px,
    rgba(31, 36, 40, 0.09) 0 2.2px 2.2px -1.2px,
    rgba(31, 36, 40, 0.08) 0 5px 5px -1.8px,
    rgba(31, 36, 40, 0.06) 0 10px 10px -2.5px,
    rgba(31, 36, 40, 0.04) 0 22px 22px -3.3px,
    rgba(255, 255, 255, 1) 0 1.2px 0.4px 0 inset,
    rgba(31, 36, 40, 0.04) 0 -0.5px 0.4px 0 inset;
  border-radius: 999px;
  box-shadow: var(--shadow-badge);
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  align-self: flex-start;
}
.label .tick { width: 10px; height: 10px; display: inline-block; position: relative; }
.label .tick::before, .label .tick::after { content: ''; position: absolute; background: var(--ink); }
.label .tick::before { left: 4px; top: 0; width: 2px; height: 10px; }
.label .tick::after  { left: 0; top: 4px; width: 10px; height: 2px; }
.label .dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); display: inline-block; }
.label-on-dark {
  background: rgba(255,255,255,0.06);
  box-shadow: rgba(255,255,255,0.08) 0 0.5px 0 0 inset, rgba(0,0,0,0.3) 0 6px 14px -4px;
  color: rgba(242,240,235,0.85);
}
.label-on-dark .tick::before, .label-on-dark .tick::after { background: var(--paper); }

hr.rule { border: 0; height: 1px; background: var(--rule); margin: 0; }

.rise { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--e-out), transform 900ms var(--e-out); }
.rise.in { opacity: 1; transform: none; }
/* Fallback: if JS/observer never marks .in (e.g. html-to-image snapshot), still render content */
html.no-rise .rise { opacity: 1 !important; transform: none !important; }
.rise-d1 { transition-delay: 80ms; }
.rise-d2 { transition-delay: 160ms; }
.rise-d3 { transition-delay: 240ms; }
.rise-d4 { transition-delay: 320ms; }

*:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.glass-frost {
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  border: 1px solid rgba(10,10,10,0.06);
  border-top-color: rgba(255,255,255,0.75);
}
.glass-dense {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px) saturate(1.15);
  -webkit-backdrop-filter: blur(40px) saturate(1.15);
  border: 1px solid rgba(10,10,10,0.06);
}
@supports not (backdrop-filter: blur(8px)) {
  .glass-frost { background: rgba(255,255,255,0.92); }
  .glass-dense { background: rgba(255,255,255,0.96); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
