@font-face {
  font-family: 'Bricolage';
  src: url('fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: 'Instrument';
  src: url('fonts/instrument.woff2') format('woff2');
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-2: #55555c;
  --accent: #000000;
  --display: 'Bricolage', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Instrument', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: #fff; color: #000;
  display: grid; place-content: center; gap: 1.1rem; justify-items: center;
}
.loader-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); font-stretch: 85%; letter-spacing: -0.02em; }
.loader-track { width: min(240px, 50vw); height: 2px; background: #ececef; overflow: hidden; border-radius: 2px; }
.loader-bar { display: block; height: 100%; background: #000; transform-origin: left; }

/* ---------- 3D layers ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.avatar {
  --h: min(88vh, 900px);
  position: fixed; z-index: 2; bottom: 0;
  height: var(--h); width: calc(var(--h) * 0.5316);
  left: calc(50% - var(--h) * 0.5316 / 2);
  perspective: 1400px; transform-origin: 50% 100%;
  pointer-events: none; will-change: transform, opacity;
}
.avatar-inner { position: relative; width: 100%; height: 100%; transform-origin: 50% 80%; filter: drop-shadow(0 36px 44px rgba(0,0,0,.20)) drop-shadow(0 4px 8px rgba(0,0,0,.14)); }
.avatar img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.avatar-shadow { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 2rem; padding: 1.1rem var(--pad);
  color: var(--ink);
}
.nav-mark { font-family: var(--display); font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.04em; }
.nav-links {
  display: flex; gap: 1.5rem; margin-left: auto; font-size: .92rem; padding: .55rem 1.2rem; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav-mark { padding: .3rem .55rem; border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-links a { text-decoration: none; opacity: .62; transition: opacity .3s; }
.nav-links a:hover, .nav-links a.is-on { opacity: 1; }
.nav-cta {
  text-decoration: none; font-size: .95rem; font-weight: 600;
  padding: .55rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--bg);
}

main { position: relative; }
section { position: relative; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 3; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding: clamp(5rem, 13vh, 7.5rem) var(--pad) 3rem; display: grid; align-content: space-between; }
.hero-name {
  margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 78%;
  font-variation-settings: "wdth" 78, "wght" 800, "opsz" 96;
  font-size: clamp(4.5rem, min(18vw, 36vh), 20rem); line-height: .8; letter-spacing: -0.012em;
  position: relative; z-index: 1;
}
.hero-name .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-name .ln span { display: inline-block; font-variation-settings: "wdth" 78, "wght" 800, "opsz" 96; }
.hero-name .ln { line-height: .86; }
.hero-name .ln:nth-child(2) { padding-left: .55em; }
.hero-meta { position: relative; z-index: 3; max-width: 26rem; display: grid; gap: 1.2rem; justify-items: start; }
.hero-role { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; }
.hero-scroll { margin: 0; font-size: .875rem; color: var(--ink-2); }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600;
  padding: .85rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--bg);
  transition: transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- about ---------- */
.about { min-height: 100vh; padding: 10rem var(--pad); display: grid; align-items: center; }
.about-grid { position: relative; z-index: 3; margin-left: auto; width: min(44rem, 100%); display: grid; gap: 2.4rem; }
.about-lede { margin: 0; font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 88, "opsz" 48; font-size: clamp(1.7rem, 3.1vw, 2.7rem); line-height: 1.12; letter-spacing: -0.02em; }
.about-body p { margin: 0 0 2rem; max-width: 36rem; color: var(--ink-2); }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); }

/* ---------- brand chapters ---------- */
.chapter { min-height: 108vh; padding: 9rem var(--pad) 6rem; display: grid; align-content: center; overflow: hidden; }
.chapter-mark {
  position: absolute; left: 0; bottom: 4vh; white-space: nowrap; pointer-events: none;
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96;
  font-size: clamp(5rem, min(20vw, 42vh), 24rem); line-height: .8; letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--ink) 13%, transparent); z-index: 0;
}
.chapter-mark.is-serif { font-family: 'Didot', 'Bodoni 72', 'Playfair Display', Georgia, serif; font-weight: 400; letter-spacing: 0.02em; }
.chapter-mark.is-silver { background: linear-gradient(100deg, #5e6168, #e9eaec 40%, #8d9096 60%, #f4f4f5); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; }
.chapter-mark.is-round { font-variation-settings: "wdth" 100, "opsz" 96; letter-spacing: -0.03em; }
.chapter-head { position: relative; z-index: 3; width: min(36rem, 100%); }
.chapter-head.is-right { margin-left: auto; }
.chapter-when { margin: 0 0 1.4rem; font-size: .95rem; color: var(--ink-2); }
.chapter-role {
  margin: 0; font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 85, "opsz" 72;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: .98; letter-spacing: -0.03em;
}
.chapter-co { margin: 1.2rem 0 0; font-size: 1.15rem; font-weight: 600; }
.chapter-note { margin: 1.6rem 0 0; color: var(--ink-2); max-width: 30rem; }
.chapter-figure { margin-top: 2.2rem; display: grid; gap: .3rem; }

/* ---------- stats ---------- */
.data { padding: 2rem 0 9rem; }
.stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1px; margin-bottom: 1.5rem; border-radius: 22px; overflow: hidden; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.stat { display: grid; gap: .45rem; align-content: start; padding: 1.6rem 1.5rem; background: color-mix(in srgb, var(--bg) 88%, var(--ink) 12%); }
.stat-label { font-size: .9rem; color: var(--ink-2); }
.stat-value { font-family: var(--text); font-weight: 600; font-size: clamp(1.35rem, 1.9vw, 1.85rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.stat-hero .stat-value { font-size: clamp(3rem, 6vw, 5.2rem); letter-spacing: -0.03em; }
.stat-delta { font-size: .9rem; color: var(--ink-2); }

/* ---------- cards & charts (light surface in every brand) ---------- */
.card {
  --viz-surface: #ffffff;
  background: #ffffff; color: #17171a; border-radius: 22px; padding: clamp(1.25rem, 2.4vw, 2rem);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -30px rgba(0,0,0,.35);
  margin-bottom: 1.5rem; position: relative;
}
.card-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card-pair .card { margin-bottom: 1.5rem; }
.card-head h3 { margin: 0; font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 90; font-size: 1.45rem; letter-spacing: -0.015em; }
.card-head p { margin: .35rem 0 1.2rem; color: #5c5c66; font-size: .95rem; max-width: 46rem; }

.viz { position: relative; }
.viz-plot { position: relative; width: 100%; }
.viz-plot svg { display: block; overflow: visible; }
.viz-grid { stroke: #ececf0; stroke-width: 1; }
.viz-axis { fill: #6b6b75; font-size: 12px; font-family: var(--text); font-variant-numeric: tabular-nums; }
.viz-end { fill: #17171a; font-size: 12.5px; font-weight: 600; font-family: var(--text); }
.viz-cross { stroke: #b9b9c2; stroke-width: 1; }
.viz-ref { stroke: #17171a; stroke-width: 1.25; }
.viz-ref-label { fill: #3b3b44; font-size: 12px; font-weight: 600; font-family: var(--text); }
.viz-bar { transition: filter .2s; }
.viz-hit { cursor: crosshair; outline: none; }
.viz-hit:focus-visible { stroke: #17171a; stroke-width: 1; }
.viz-legend { display: flex; gap: 1.2rem; margin-top: .6rem; font-size: .9rem; color: #3b3b44; }
.viz-legend-item { display: inline-flex; align-items: center; gap: .45rem; }
.viz-sw-rect { width: 12px; height: 12px; border-radius: 3px; }
.viz-sw-line { width: 16px; height: 2px; border-radius: 2px; }
.viz-tip {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; min-width: 10rem;
  background: #17171a; color: #fff; border-radius: 12px; padding: .65rem .8rem; font-size: .85rem;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
.viz-tip-title { color: #b9b9c2; margin-bottom: .3rem; }
.viz-tip-row { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: .45rem; }
.viz-tip-key { width: 14px; height: 2px; border-radius: 2px; }
.viz-tip-row strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.viz-tip-label { color: #b9b9c2; }

.viz-table, .card-tables details { margin-top: 1rem; border-top: 1px solid #ececf0; }
.viz-table summary { cursor: pointer; padding: .9rem 0 .2rem; font-weight: 600; font-size: .95rem; color: #17171a; }
.viz-table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: .6rem .5rem; border-bottom: 1px solid #f0f0f3; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { font-weight: 600; color: #5c5c66; font-size: .85rem; }
tfoot td { font-weight: 700; border-bottom: 0; }
.summary-scroll { overflow-x: auto; margin-bottom: .5rem; }
.summary td:last-child { font-weight: 700; }

/* ---------- campaigns ---------- */
.campaigns { padding: 10rem 0 8rem; }
.sec-head { max-width: 46rem; margin-bottom: 2.5rem; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 82, "opsz" 72; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -0.035em; }
.sec-head p { margin: 1.2rem 0 0; color: var(--ink-2); max-width: 38rem; }
.camp-wrap { background: #fff; border-radius: 24px; padding: clamp(1rem, 2.4vw, 2rem); box-shadow: 0 0 0 1px #ececf0, 0 40px 80px -50px rgba(0,0,0,.35); color: #17171a; }
.camp-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { font: inherit; font-size: .9rem; padding: .45rem .95rem; border-radius: 999px; border: 0; cursor: pointer; background: #f2f2f5; color: #17171a; transition: background .25s, color .25s; }
.chip[aria-pressed="true"] { background: #17171a; color: #fff; }
.camp-legend { display: flex; gap: 1.2rem; font-size: .9rem; margin-bottom: .6rem; color: #3b3b44; }
.camp-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.lg-dot, .camp-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.is-before { background: #a1a1aa; }
.is-after { background: #2a78d6; }
.camp-head, .camp summary { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr 7.5rem; gap: 1.2rem; align-items: center; }
.camp-head { font-size: .8rem; color: #6b6b75; padding: .4rem 0; border-bottom: 1px solid #ececf0; }
.camp-head > span:last-child { text-align: right; }
.camp-scale { position: relative; height: 1em; }
.camp-scale span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.camp { border-bottom: 1px solid #f0f0f3; }
.camp summary { list-style: none; cursor: pointer; padding: .75rem 0; }
.camp summary::-webkit-details-marker { display: none; }
.camp summary:hover { background: #fafafb; }
.camp-name { display: grid; line-height: 1.25; }
.camp-name strong { font-weight: 600; }
.camp-name span { font-size: .8rem; color: #6b6b75; }
.camp-track { position: relative; height: 24px; }
.camp-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #f0f0f3; }
.camp-bar { position: absolute; top: calc(50% - 1px); height: 2px; background: #2a78d6; opacity: .45; border-radius: 2px; }
.camp-bar.is-down { background: #a1a1aa; }
.camp-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff; }
.camp-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.camp-detail { margin: 0 0 1rem; background: #fafafb; border-radius: 12px; }
.camp-detail td, .camp-detail th { border-color: #ececf0; }

/* ---------- training ---------- */
.training { padding: 9rem 0; }
.train-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.train-list li { display: grid; gap: .15rem; padding: 1.15rem 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.train-list strong { font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 90; font-size: 1.3rem; letter-spacing: -0.01em; }
.train-list span { color: var(--ink-2); }

/* ---------- contact ---------- */
.contact { min-height: 100vh; padding: 9rem var(--pad) 2rem; display: grid; align-content: space-between; }
.contact-title { margin: 0; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 76, "opsz" 96; font-size: clamp(4rem, min(14vw, 30vh), 15rem); line-height: .84; letter-spacing: -0.015em; position: relative; z-index: 1; }
.contact-title span { display: block; }
.contact-links { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; z-index: 3; margin: 2.5rem 0 4rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--ink-2); position: relative; z-index: 3; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .card-pair { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 1rem; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .avatar { --h: 50vh; }
  .hero { padding-top: 5.5rem; align-content: start; gap: 1.4rem; }
  .hero-name { font-size: 24vw; }
  .hero-name .ln:nth-child(2) { padding-left: 0; }
  .hero-meta { gap: .9rem; }
  .hero-scroll { display: none; }
  .about { padding: 7rem var(--pad); }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
  .chapter { min-height: 90vh; padding: 7rem var(--pad) 9rem; }
  .stats { grid-template-columns: 1fr; }
  .camp-head, .camp summary { grid-template-columns: 1fr 5.5rem; }
  .camp-head .camp-scale, .camp-head > span:first-child { display: none; }
  .camp-track { grid-column: 1 / -1; order: 3; }
  .train-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
