/* Ionise story: every selector is prefixed io-. One accent (violet), one near-black ground, one motion idea (state on the root). */
.io { background: #07070a; color: #f2f2f4; --io-acc: #b99cf5; --io-ink: #14141a; --io-grad: linear-gradient(120deg, #7fd8ee, #b99cf5 55%, #f08fb4); }
.story:has(.io) .story-scene, .io.story-scene { background: #07070a; }
.story:has(.io) .story-line, .story:has(.io) .story-hint { color: #f2f2f4; background: #07070a; }
.story:has(.io) .story-prog { background: #07070a; color: #f2f2f4; }
.io { container-type: inline-size; }
.io-layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; opacity: 0; transform: translateY(14px); pointer-events: none; visibility: hidden; transition: transform 420ms var(--ease), opacity 420ms var(--ease), visibility 0s linear 420ms; }
.story[data-layer="strategy"] .io-strategy, .story[data-layer="identity"] .io-identity, .story[data-layer="system"] .io-system, .story[data-layer="site"] .io-site { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.io button, .io .io-btn { font: inherit; }

/* strategy */
.io-pos { max-width: 34rem; display: grid; gap: 1rem; }
.io-kick { margin: 0; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--io-acc); }
.io-big { margin: 0; font-size: clamp(1.5rem, 6.2cqw, 2.6rem); line-height: 1.2; font-weight: 500; text-wrap: balance; }

/* identity: the mark is two soft blocks, as on the screen */
.io-mark { display: block; width: 1em; height: 1em; font-size: 1rem; object-fit: contain; }
.io-id { display: grid; justify-items: center; gap: 1.1rem; }
.io-id .io-mark { font-size: clamp(5rem, 24cqw, 9rem); }
.io-word { display: block; height: clamp(1.4rem, 6cqw, 2.2rem); width: auto; }
.io-band { width: clamp(9rem, 40cqw, 16rem); height: 4px; border-radius: 4px; background: var(--io-grad); }
.io-sm { font-size: 1.4rem; }

/* design system: the dashboard, light by default */
.io-wrap { width: 100%; max-width: 40rem; display: grid; gap: .6rem; justify-items: end; }
.io-dash { --bg: #f4f5fb; --pn: #fff; --tx: #14141a; --mu: #6c6c78; --ln: #e3e3ee; width: 100%; display: grid; grid-template-columns: auto 1fr; border-radius: 14px; overflow: hidden; background: var(--bg); color: var(--tx); transition: background 420ms var(--ease), color 420ms var(--ease); text-align: left; }
.io-dash[data-theme="dark"] { --bg: #101015; --pn: #1a1a22; --tx: #f2f2f4; --mu: #9a9aa8; --ln: #2a2a34; }
.io-side { display: grid; align-content: start; gap: .5rem; padding: .8rem .7rem; font-size: .72rem; color: var(--mu); }
.io-nav.io-on { color: var(--tx); font-weight: 600; }
.io-main { padding: .8rem .8rem .8rem 0; display: grid; gap: .6rem; min-width: 0; }
.io-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.io-h { margin: 0; font-size: .95rem; font-weight: 600; }
.io-btn { display: inline-block; padding: .3rem .7rem; border: 1px solid currentColor; border-radius: 8px; font-size: .75rem; }
.io-btn-hot { border: 0; color: #14141a; background: var(--io-grad); }
.io-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.io-stats > div { background: var(--pn); border-radius: 10px; padding: .5rem .55rem; display: grid; gap: .15rem; min-width: 0; transition: background 420ms var(--ease); }
.io-stats small { font-size: .62rem; color: var(--mu); }
.io-stats b { font-size: .9rem; }
.io-net b { font-size: 1.3rem; color: var(--io-acc); }
.io-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.io-card { background: var(--pn); border-radius: 10px; padding: .55rem; display: grid; gap: .3rem; min-width: 0; transition: background 420ms var(--ease); }
.io-ct { margin: 0; font-size: .78rem; font-weight: 600; }
.io-tr { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; font-size: .7rem; padding: .25rem 0; border-top: 1px solid var(--ln); }
.io-th { color: var(--mu); border-top: 0; font-size: .62rem; }
.io-asset { font-weight: 600; }
.io-theme { min-height: 44px; padding: 0 1rem; color: #f2f2f4; background: none; border: 1px solid #3a3a46; border-radius: 22px; cursor: pointer; }
.io-theme:hover, .io-theme:focus-visible { border-color: var(--io-acc); }

/* the site: a light landing page */
.io-page { width: 100%; max-width: 38rem; background: #f7f7fc; color: #14141a; border-radius: 14px; padding: .9rem 1rem 1.2rem; display: grid; justify-items: center; gap: .7rem; text-align: center; }
.io-nbar { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.io-logo { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; letter-spacing: .12em; }
.io-title { margin: .4rem 0 0; font-size: clamp(1.2rem, 5cqw, 1.8rem); font-weight: 500; line-height: 1.15; text-wrap: balance; }
.io-sub { margin: 0; font-size: .8rem; color: #50505c; max-width: 24rem; text-wrap: balance; }
.io-cta { border-width: 2px; border-radius: 20px; padding: .35rem 1rem; }
.io-stat3 { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .6rem; }
.io-stat { display: grid; gap: .25rem; font-size: .72rem; justify-items: center; }
.io-rule { width: 70%; height: 2px; background: var(--io-grad); border-radius: 2px; }
.io-stat b { font-size: .85rem; font-weight: 500; }

@container (max-width: 460px) {
  .io-stats { grid-template-columns: 1fr 1fr; }
  .io-tabs { grid-template-columns: 1fr; }
  .io-side { display: none; }
  .io-main { padding: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .io-layer, .io-dash, .io-stats > div, .io-card { transition: none; } }


/* 4. the real landing page: Story.shot fills a view a little inside the scene */
.io-view { position: absolute; inset: 5%; }
