/* CAYO — single stylesheet, no dependencies, system fonts only. Colours live in the variables below. */
:root {
  --bg: #ffffff; --alt: #f5f5f2; --card: #f5f5f2; --text: #111318; --muted: #5a5f6d;
  --line: rgba(0, 0, 0, .12); --accent: #80600f; --gold: #c9a24a;
  --ink: #0a0f1a; --ink-text: #f4f4f1; --ink-muted: #a9afbd; --ink-card: #161c2a;
  --nav: rgba(255, 255, 255, .72); --btn: #111318; --btn-text: #ffffff;
  --glow-a: rgba(201, 162, 74, .28); --glow-b: rgba(11, 27, 51, .10);
  --r: 28px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --alt: #0c0e13; --card: #15171e; --text: #f4f4f1; --muted: #a9afbd;
    --line: rgba(255, 255, 255, .16); --accent: #dcb95f;
    --ink: #0d121d; --ink-card: #1a2030;
    --nav: rgba(8, 8, 10, .72); --btn: #f4f4f1; --btn-text: #111318;
    --glow-a: rgba(201, 162, 74, .22); --glow-b: rgba(60, 100, 180, .20);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --alt: #0c0e13; --card: #15171e; --text: #f4f4f1; --muted: #a9afbd;
  --line: rgba(255, 255, 255, .16); --accent: #dcb95f;
  --ink: #0d121d; --ink-card: #1a2030;
  --nav: rgba(8, 8, 10, .72); --btn: #f4f4f1; --btn-text: #111318;
  --glow-a: rgba(201, 162, 74, .22); --glow-b: rgba(60, 100, 180, .20);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(100% - 2.5rem, 1080px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--btn); color: var(--btn-text); padding: .7rem 1rem; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }

/* ---------- top bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 52px; }
.brand { color: var(--text); display: inline-flex; align-items: center; padding: .4rem 0; }
.brand svg { width: 74px; height: auto; }
.nav { display: flex; gap: 1.75rem; margin-inline: auto; font-size: .82rem; }
.nav a { color: var(--text); opacity: .8; padding: .4rem 0; }
.nav a:hover, .nav a[aria-current] { opacity: 1; text-decoration: none; }
.nav a[aria-current] { font-weight: 600; }
.tools { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav + .tools { margin-left: 0; }
.langs { display: flex; font-size: .74rem; letter-spacing: .04em; }
.langs a { color: var(--muted); padding: .45rem .38rem; border-radius: 8px; }
.langs a[aria-current] { color: var(--text); font-weight: 700; }
.theme-btn, .menu-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0;
  background: none; border: 0; border-radius: 50%; color: var(--text); cursor: pointer;
}
.theme-btn:hover, .menu-btn:hover { background: var(--line); }
.theme-btn svg, .menu-btn svg { width: 17px; height: 17px; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .js .menu-btn { display: inline-grid; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    padding: .5rem 1.25rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 1.35rem; font-weight: 600;
  }
  .js .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); opacity: 1; letter-spacing: -.02em; }
  .js .nav-open .nav { display: flex; }
  .js .nav + .tools { margin-left: auto; }
  .no-js .bar { flex-wrap: wrap; row-gap: 0; padding-bottom: .4rem; }
  .no-js .nav { order: 3; width: 100%; gap: 1.1rem; flex-wrap: wrap; margin: 0; }
  .no-js .nav + .tools { margin-left: auto; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(4.5rem, 11vw, 8.5rem) 0; text-align: center; background: var(--bg); }
.sec.alt { background: var(--alt); --card: var(--bg); }
.sec.ink {
  --text: var(--ink-text); --muted: var(--ink-muted); --card: var(--ink-card); --accent: #dcb95f; --line: rgba(255, 255, 255, .16);
  background: var(--ink); color: var(--text);
}
.eyebrow { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; color: var(--accent); letter-spacing: -.01em; margin-bottom: .6rem; }
.sec h2 { font-size: clamp(2.5rem, 7.4vw, 5rem); }
.sub { font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.3; color: var(--muted); max-width: 34ch; margin: 1.1rem auto 0; letter-spacing: -.015em; text-wrap: balance; }
.links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1.75rem; margin-top: 1.6rem; font-size: 1.1rem; }
.more::after { content: "\00a0\203A"; display: inline-block; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(3px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.6rem;
  border-radius: 999px; background: var(--btn); color: var(--btn-text); font-weight: 600; font-size: 1.05rem;
  transition: transform .25s var(--ease), opacity .2s;
}
.btn:hover { text-decoration: none; opacity: .86; transform: scale(1.03); }
.ink .btn { background: var(--ink-text); color: #111318; }
.badge {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .32rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-bottom: 1.1rem;
}
.badge.live { color: var(--accent); border-color: currentColor; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; display: grid; place-items: center; text-align: center;
  min-height: min(88vh, 860px); padding: 5rem 0 6rem; background: var(--bg);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero::before { width: min(70vw, 720px); aspect-ratio: 1; left: 50%; top: 52%; translate: -62% -50%; background: var(--glow-a); }
.hero::after { width: min(60vw, 600px); aspect-ratio: 1; left: 50%; top: 46%; translate: -28% -50%; background: var(--glow-b); }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(5.4rem, 25vw, 17rem); font-weight: 800; letter-spacing: -.07em; line-height: .86; padding-right: .04em; }
.hero h1 span { color: var(--gold); }
.hero .sub { font-size: clamp(1.35rem, 3.4vw, 2.25rem); color: var(--text); max-width: 22ch; margin-top: 1.5rem; font-weight: 600; letter-spacing: -.025em; }
.hero.small { min-height: 60vh; }
.hero.small h1 { font-size: clamp(3rem, 12vw, 7rem); letter-spacing: -.05em; line-height: 1; }
.hero.small h2 { font-size: 1.5rem; margin-top: 2rem; }
.hero.small p { color: var(--muted); margin-top: .5rem; }

/* ---------- channel tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: clamp(2.5rem, 6vw, 4rem); }
.ch {
  display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1.6rem .75rem 1.4rem;
  background: var(--card); border-radius: var(--r); color: var(--text); transition: transform .35s var(--ease), background .25s;
}
.ch:hover { text-decoration: none; transform: translateY(-4px) scale(1.02); }
.ch img, .mono { width: 76px; height: 76px; border-radius: 22px; margin-bottom: .8rem; object-fit: cover; }
.mono { display: grid; place-items: center; background: linear-gradient(140deg, #1d2c4c, #0b1b33); color: var(--gold); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.ch-n { font-weight: 650; font-size: .98rem; line-height: 1.2; letter-spacing: -.015em; }
.ch-l { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ch img, .mono { width: 64px; height: 64px; border-radius: 18px; } }

/* ---------- illustrations ---------- */
.art {
  max-width: 880px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; border-radius: clamp(24px, 4vw, 40px); overflow: hidden;
  background: radial-gradient(120% 120% at 20% 0%, var(--glow-a), transparent 60%), radial-gradient(100% 100% at 100% 100%, var(--glow-b), transparent 60%), var(--card);
  color: var(--text);
}
.art svg { width: 100%; height: auto; }
.art .g { stroke: var(--gold); }
.art .gf { fill: var(--gold); stroke: none; }
.art .soft { fill: var(--gold); opacity: .14; stroke: none; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 820px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
.stats b { display: block; font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--gold); }
.stats span { display: block; margin-top: .5rem; color: var(--muted); font-size: .98rem; line-height: 1.3; }
@media (max-width: 560px) { .stats { gap: .75rem; } .stats span { font-size: .85rem; } }

/* ---------- cards / inner pages ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; text-align: left; }
.sec .grid { margin-top: clamp(2.5rem, 6vw, 4rem); }
.card { background: var(--card); border-radius: var(--r); padding: 2rem 1.75rem; display: flex; flex-direction: column; align-items: flex-start; }
.card h2, .card h3 { font-size: 1.55rem; letter-spacing: -.03em; line-height: 1.12; }
.card p { color: var(--muted); margin-top: .7rem; }
.card ul { margin: 1rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.card li { margin: .3rem 0; }
.card .more { margin-top: auto; padding-top: 1.4rem; font-weight: 600; }
.card .badge { margin-bottom: 1rem; }
.channel-top { display: flex; align-items: center; gap: 1rem; }
.channel-top img, .channel-top .mono { width: 68px; height: 68px; border-radius: 20px; margin: 0; flex: none; }
.channel-top .badge { margin: .45rem 0 0; }

.page-head { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2.7rem, 8vw, 5rem); }
.page-head .lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.35; color: var(--muted); max-width: 40ch; margin: 1.2rem auto 0; letter-spacing: -.015em; text-wrap: balance; }
.page-body { padding-bottom: clamp(4.5rem, 10vw, 7.5rem); }
.prose { max-width: 720px; font-size: 1.12rem; }
.prose h2 { font-size: 1.7rem; margin: 2.6rem 0 .7rem; }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose p.note { margin-top: 2rem; font-size: .95rem; }
.prose .links { justify-content: flex-start; margin-top: 2.2rem; }
.facts { margin: 0; background: var(--alt); border-radius: var(--r); padding: .6rem 1.75rem; }
.facts dt { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 1.1rem; }
.facts dd { margin: .15rem 0 0; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.facts dd:last-child { border-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--alt); border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); padding: 1.6rem 0 2rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- reveal on scroll (only with JS, and only if motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(30px) scale(.985); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .site-header, .theme-btn { display: none; } .js .rv { opacity: 1; transform: none; } }
