/* tonime.com — monochrome, dark-first, light theme by system or by choice */

@font-face { font-family: "Hind"; src: url("assets/fonts/Hind-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* dark only. Text, charts and logo are a touch warm (a small blue-light filter), never pure white. */
:root {
  --bg: #0e0e0e;
  --panel: #161616;
  --card: #1c1c1c;
  --line: #2a2a2a;
  --hair: rgba(255, 248, 238, .12);
  --grid: rgba(255, 248, 238, .085);
  --text: #ebe8e2;
  --muted: #8c8a85;
  --faint: #5f5d59;
  --accent: #c2453c;
  --s1: #ebe8e2;            /* YouTube */
  --s2: #9c9a94;            /* TikTok */
  --s3: #5b5955;            /* Instagram */
  --h0: #1f1f1e; --h1: #3d3c3a; --h2: #7d7b77; --h3: #e1ded7;
  --warm: sepia(.12) saturate(.9);   /* the same small warm tint for the grey logo and icons */
  --shadow: none;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin-bottom: 32px; }
h3.sub { font-size: 20px; margin: 56px 0 16px; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.num { font-family: var(--mono); font-weight: 300; letter-spacing: -.02em; }
.logo { filter: var(--warm); }
.card { background: var(--card); border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow); }

/* ---------- bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hair);
}
.bar-in { display: flex; align-items: center; gap: 20px; height: 56px; }
.bar-brand { display: flex; align-items: center; gap: 8px; flex: none; }
.bar-brand:hover { text-decoration: none; }
.bar-brand img { height: 26px; width: auto; }
.bar-brand .bar-word { height: 18px; }
.bar-nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); margin-right: auto; }
.bar-nav a:hover { color: var(--text); text-decoration: none; }
.bar-tools { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 860px) { .bar-nav { display: none; } }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); border: 1px solid var(--hair); }
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 12px var(--sans);
  letter-spacing: .04em; height: 26px; min-width: 32px; padding: 0 9px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--hair); }
.seg svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.seg svg .fill { fill: currentColor; stroke: none; }
.seg button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 500 14px var(--sans); cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { opacity: .88; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }

/* ---------- hero: centred lockup on graph paper */
.hero { position: relative; isolation: isolate; text-align: center; padding: clamp(72px, 12vw, 136px) 0 24px; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, #000 30%, transparent 80%);
}
.lockup { display: inline-flex; align-items: center; gap: calc(var(--wm) * 0.075); margin: 0; --wm: min(340px, 58vw); }
.lockup img { filter: var(--warm); }
.lockup-word { width: var(--wm); height: auto; margin-top: calc(var(--wm) * 0.012); }
.lockup-mark { height: calc(var(--wm) / 3.97 * 1.42); width: auto; }
.hero-line { font: 400 clamp(17px, 2vw, 20px)/1.45 "Hind", var(--sans); letter-spacing: .02em; color: var(--muted); margin: 22px auto 0; max-width: 560px; }
.hero .kpis, .hero .updated { text-align: left; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 7vw, 72px); }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 18px 20px 20px; }
.kpi .v { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 2px 0 6px; }
.kpi .d { font-size: 13px; color: var(--muted); }
.kpi .d b { font-weight: 600; color: var(--text); }
.updated { font-size: 12px; color: var(--faint); margin-top: 14px; }

/* ---------- sections */
.sec { padding-top: clamp(72px, 11vw, 128px); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 18px 18px 20px; position: relative; }
.step .n { font-family: var(--mono); font-weight: 300; font-size: 28px; color: var(--faint); line-height: 1; }
.step h3 { font-size: 16px; margin: 14px 0 6px; letter-spacing: -.01em; }
.step p { font-size: 14px; color: var(--muted); }
.loop-note { font-size: 13px; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; align-items: center; }
.loop-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; } }
.role { padding: 20px; }
.role p:last-child { font-size: 15px; }

/* ---------- account cards */
.accounts { display: grid; gap: 16px; }
.acc { padding: 24px; display: grid; gap: 22px; }
.acc-head { display: flex; gap: 18px; align-items: flex-start; }
.acc-icon { width: 64px; height: 64px; flex: none; object-fit: contain; }
.icon-invert, .icon-keep { filter: var(--warm); }
.acc-name { font-size: 22px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-topic { color: var(--muted); font-size: 15px; }
.chip { font: 600 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text); margin-right: 6px; vertical-align: 1px; }
.links { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--text); }
.links .paused { color: var(--accent); }
.acc-blurb { font-size: 15px; color: var(--muted); max-width: 720px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
@media (max-width: 720px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric { padding: 16px 16px 4px 0; }
.metric .v { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
.metric .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.metric .d b { color: var(--text); font-weight: 600; }
.split { font-size: 12px; color: var(--faint); margin-top: 4px; line-height: 1.4; }

.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 820px) { .acc-grid { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border-radius: 14px; padding: 18px; }
.panel .eyebrow { margin-bottom: 12px; }
.facts { display: grid; gap: 10px; font-size: 14px; }
.fact { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.fact span:first-child { color: var(--muted); }
.fact .num { font-size: 15px; text-align: right; }
.note { font-size: 12px; color: var(--faint); margin-top: 12px; line-height: 1.45; }
.meter { margin-top: 12px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; gap: 8px; }
.meter-top span:first-child { color: var(--muted); }
.meter-bar { height: 6px; border-radius: 999px; background: var(--line); margin-top: 6px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; min-width: 3px; border-radius: 999px; background: var(--text); }
.acc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.spark-wrap { flex: 1; min-width: 200px; }
.acc.setup { grid-template-columns: auto 1fr; align-items: center; }
.acc.setup .acc-blurb { margin-top: 6px; }

/* ---------- exhibits */
.exhibits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .exhibits { grid-template-columns: 1fr; } }
.ex { padding: 22px 22px 18px; min-width: 0; }
.ex.wide { grid-column: 1 / -1; }
.ex .take { font-size: 15px; color: var(--muted); margin: -8px 0 16px; line-height: 1.45; }
.ex h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 14px; min-height: 1.3em; }
.ex .chart { position: relative; width: 100%; }
.ex svg.c { display: block; width: 100%; overflow: visible; }
.ex-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 14px; height: 10px; }
.src { font-size: 11.5px; color: var(--faint); margin-top: 8px; }
.tbl-toggle { appearance: none; background: none; border: 0; color: var(--muted); font: 500 12.5px var(--sans); cursor: pointer; padding: 4px 0; }
.tbl-toggle:hover { color: var(--text); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
table.t td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--hair); }
table.t td.r, table.t th.r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }

svg .grid line { stroke: var(--hair); stroke-width: 1; }
svg .axis text, svg text.axis { fill: var(--faint); font: 11px var(--sans); }
svg text.lab { fill: var(--muted); font: 500 11.5px var(--sans); }
svg text.lab-strong { fill: var(--text); font: 600 11.5px var(--sans); }
svg .hit { fill: transparent; cursor: crosshair; }
svg .cross { stroke: var(--muted); stroke-width: 1; }

.tip {
  position: fixed; z-index: 50; pointer-events: none; background: var(--card); color: var(--text);
  border: 1px solid var(--hair); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18); max-width: 260px;
}
.tip b { font-weight: 600; }
.tip .row { display: flex; justify-content: space-between; gap: 14px; }
.tip .row span:last-child { font-family: var(--mono); }
.tip .k { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.tip .k i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- top videos */
.top { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 860px) { .top { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .top { grid-template-columns: repeat(2, 1fr); } }
.vid { display: block; }
.vid:hover { text-decoration: none; }
.vid .cov { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--hair); }
.vid .cov img { width: 100%; height: 100%; object-fit: cover; }
.vid .t { font-size: 13.5px; font-weight: 600; margin-top: 8px; letter-spacing: -.01em; }
.vid .s { font-size: 12.5px; color: var(--muted); }

/* ---------- lab */
.lab { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.lab li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
@media (max-width: 640px) { .lab li { grid-template-columns: 1fr; gap: 6px; } }
.lab time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lab .kind { display: block; font: 600 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.lab h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.lab p { color: var(--muted); font-size: 15px; max-width: 760px; }

/* ---------- contact & footer */
.contact { padding: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.contact-name { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.contact-lines { margin-top: 8px; font-size: 17px; color: var(--muted); line-height: 1.7; }
.contact-lines a { color: var(--text); }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.foot { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 96px; padding-bottom: 40px; }
.foot a:hover { color: var(--text); }
.foot .muted { margin-left: auto; color: var(--faint); }

/* ---------- account sheet */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-in { padding-top: 20px; padding-bottom: 64px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: 0; background: var(--bg); padding: 10px 0 16px; z-index: 2; border-bottom: 1px solid var(--hair); margin-bottom: 24px; }
.sheet-id { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.sheet-id img { width: 40px; height: 40px; object-fit: contain; }
.vt td:first-child { width: 44px; }
.vt img { width: 32px; height: 57px; object-fit: cover; border-radius: 6px; }
.vt .ttl { font-weight: 600; }
.vt .sub { color: var(--muted); font-size: 12px; }
.missing { color: var(--accent); }

/* ---------- legal pages */
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 64px; }
.legal h1 { font-size: 34px; margin-bottom: 24px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal p + p { margin-top: 10px; }
.legal strong { color: var(--text); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
