:root {
  --bg: #ffffff;
  --tile: #f4f4f3;
  --tile-2: #ebebea;
  --ink: #2b2b2b;
  --ink-strong: #111111;
  --muted: #8a8a8a;
  --line: #dededc;
  --accent: #e5484d;
  --accent-soft: #fde8e8;
  --a: #2f5bea;
  --b: #b9c4e8;
  --radius: 36px;
  --gap: 14px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { color: var(--ink-strong); font-weight: 500; letter-spacing: -0.015em; margin: 0 0 10px; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.25; }
p { margin: 0 0 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── floating pill nav ── */
.nav {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 4px; padding: 6px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.nav a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 9px 22px; border-radius: 999px; transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav a:hover { color: var(--ink-strong); }
.nav a.is-active { background: var(--tile-2); color: var(--ink-strong); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── bento grid ── */
.grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  max-width: 1240px; margin: 0 auto; padding: 104px 20px 40px;
}
.tile {
  background: var(--tile); border-radius: var(--radius);
  padding: 34px 36px; min-width: 0; position: relative;
  scroll-margin-top: 96px;
}
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.eyebrow { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.small { font-size: 14.5px; color: #555; }
.fine { font-size: 12.5px; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }

/* ── hero ── */
.hero-text h1 { font-size: 30px; line-height: 1.25; }
.hero-text h1 u { text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-text hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.lede { font-family: var(--serif); font-size: 27px; line-height: 1.25; color: var(--ink-strong); margin-bottom: 22px; }
.beliefs { list-style: none; padding: 0; margin: 0 0 26px; }
.beliefs li { color: #555; margin-bottom: 14px; font-size: 16.5px; }
.meta { font-size: 13px; color: var(--muted); margin: 0; }

.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 18px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* ── photos ── */
.photos { display: grid; gap: 10px; margin: 18px 0; }
.photos.two { grid-template-columns: 1.4fr 1fr; }
.photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: var(--tile-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos.two .photo { aspect-ratio: 4 / 3; }
.photos.two .photo.wide { aspect-ratio: auto; }
.sport-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 340px; }
.sport-photos .tall { grid-row: span 2; }
.sport-photos .tall img { object-position: 50% 0; }
.sport-photos .photo:not(.tall) { grid-row: span 2; }
.photo figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; font-weight: 500; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px; }

/* ── chat ── */
.chat { display: flex; flex-direction: column; background: var(--ink-strong); color: #e9e9e9; min-height: 560px; }
.chat h2 { color: #fff; }
.chat .eyebrow { color: #9a9a9a; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.badge { font-size: 11.5px; padding: 6px 11px; border-radius: 999px; background: #2a2a2a; color: #bdbdbd; white-space: nowrap; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px 0 14px; max-height: 380px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: #262626; align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.user { background: #fff; color: var(--ink-strong); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.error { background: #3a1d1e; color: #ffb4b4; }
.msg.typing::after { content: "▍"; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips button {
  font: 500 13px var(--sans); color: #d6d6d6; background: transparent;
  border: 1px solid #3a3a3a; border-radius: 999px; padding: 7px 13px; cursor: pointer;
}
.chips button:hover { border-color: #777; color: #fff; }
.chat-form { display: flex; gap: 8px; background: #262626; border-radius: 999px; padding: 6px 6px 6px 18px; }
.chat-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: 15px var(--sans); outline: none; }
.chat-form input::placeholder { color: #8a8a8a; }
.chat-form button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 18px; cursor: pointer; }
.chat-form button:disabled { opacity: .4; cursor: default; }

/* ── research ── */
.research h2 { font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.1; max-width: 760px; margin-bottom: 22px; }
.research-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.research-side { display: grid; gap: 14px; }
.origin { background: var(--bg); border-radius: 26px; padding: 22px; border: 1px solid var(--line); }
.origin .ticker { border: 0; padding: 4px 0 0; margin: 0 0 12px; background: transparent; }
.channels { padding-left: 20px; margin: 0 0 14px; }
.channels li { margin-bottom: 8px; }
.calc { background: var(--bg); border-radius: 26px; padding: 22px; border: 1px solid var(--line); }
.calc-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.calc-row output { font-weight: 600; color: var(--ink-strong); }
input[type="range"] { width: 100%; accent-color: var(--ink-strong); }
.toggle { display: inline-flex; background: var(--tile); border-radius: 999px; padding: 4px; margin: 6px 0 16px; }
.toggle button { font: 500 13px var(--sans); border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-checked="true"] { background: #fff; color: var(--ink-strong); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.bars { display: grid; gap: 8px; }
.bar { position: relative; height: 38px; background: var(--tile); border-radius: 12px; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 12px; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.bar-fill.a { background: var(--a); }
.bar-fill.b { background: var(--b); }
.bar-label { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: #fff; mix-blend-mode: difference; }
.calc-gap { font-size: 14px; margin: 14px 0 8px; color: var(--ink-strong); }

/* ── invest ── */
.ticker { position: relative; background: var(--bg); border-radius: 22px; padding: 18px; margin: 4px 0 18px; border: 1px solid var(--line); }
.ticker svg { width: 100%; height: 90px; display: block; }
.ticker polyline { fill: none; stroke: var(--ink-strong); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tick-low, .tick-high { position: absolute; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; }
.tick-low { left: 30%; bottom: 10px; background: var(--accent-soft); color: var(--accent); }
.tick-high { right: 14px; top: 10px; background: #e6f4ea; color: #1e7b3a; }

/* ── summit ── */
.org { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 18px 0; }
.org-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 14px 12px; font-size: 13px; color: #555; line-height: 1.4; }
.org-card span { display: block; font-weight: 600; color: var(--ink-strong); font-size: 14px; margin-bottom: 6px; }
.path { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin: 16px 0 0; }

/* ── kiosk ── */
.kiosk-screen { position: relative; background: #1c1c1c; border-radius: 22px; padding: 18px; margin: 4px 0 18px; }
.ks-title { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.ks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ks-grid span { background: #333; color: #ccc; font-size: 12px; text-align: center; padding: 16px 0; border-radius: 12px; }
.sticker {
  position: absolute; right: -10px; top: -14px; width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-content: center; text-align: center;
  font-weight: 600; font-size: 19px; line-height: 1; transform: rotate(10deg); box-shadow: 0 6px 16px rgba(229,72,77,.35);
}
.sticker small { font-size: 11px; font-weight: 500; }

.kiosk-photos { grid-template-columns: 1fr 150px; align-items: end; margin-top: 8px; }
.kiosk-photos .guide { grid-column: 1 / -1; }
.kiosk-photos .sticker-art { grid-column: 2; margin-top: -86px; transform: rotate(4deg); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.kiosk-photos .photo { overflow: visible; background: #fff; border: 1px solid var(--line); }
.kiosk-photos .photo img { border-radius: 22px; object-fit: contain; }
.kiosk-photos .sticker { right: -8px; top: -12px; }
.credit { margin: -6px 0 14px; }

/* ── vox / speech / ad ── */
.masthead { font-family: var(--serif); font-size: 34px; color: var(--ink-strong); border-top: 3px double var(--ink-strong); border-bottom: 1px solid var(--ink-strong); padding: 8px 0; margin-bottom: 16px; line-height: 1; }
.masthead small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; color: var(--muted); }
.speech h3 { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.15; }
.cake { position: relative; height: 110px; background: var(--bg); border-radius: 22px; margin-bottom: 16px; border: 1px solid var(--line); overflow: hidden; }
.cake::after { content: "🎂"; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 40px; filter: grayscale(.4); }
.bubble { position: absolute; background: #2f7cf6; color: #fff; font-size: 11.5px; padding: 5px 10px; border-radius: 14px; left: 12px; top: 12px; }
.bubble.two { left: auto; right: 14px; top: 26px; }
.bubble.three { left: 24px; top: 52px; }

/* ── lists ── */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li:last-child { border-bottom: 0; }
.list time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.scoreboard { display: flex; justify-content: space-between; align-items: center; background: #111; color: #f6c445; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; font-size: 12px; letter-spacing: .06em; }
.scoreboard strong { font-size: 20px; letter-spacing: .12em; }

/* ── contact ── */
.contact { text-align: center; padding: 56px 24px; }
.contact h2 { font-family: var(--serif); font-size: 44px; font-weight: 400; }
.contact a { font-size: 17px; }

/* ── responsive ── */
@media (max-width: 1020px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .research-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .photos.two { grid-template-columns: 1fr; }
  .kiosk-photos { grid-template-columns: 1fr 110px; }
  .kiosk-photos .sticker-art { margin-top: -60px; }
  .sport-photos { height: 260px; }
  .grid { padding: 84px 16px 28px; gap: 12px; }
  .tile { padding: 26px 22px; border-radius: 28px; }
  .nav { top: 12px; }
  .nav a { padding: 8px 13px; font-size: 13px; }
  .hero-text h1 { font-size: 25px; }
  .lede { font-size: 23px; }
  .research h2 { font-size: 28px; }
  .chat { min-height: 500px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar-fill { transition: none; }
}
