:root {
  --bg: #F5F6F8;
  --white: #FFFFFF;
  --ink: #0E1116;
  --text: #2A303A;
  --muted: #3A414C;
  --soft: #4A5260;
  --line: #DDE1E7;
  --line-2: #CDD3DC;
  --accent: #1A47B8;
  --accent-dk: #0F2F80;
  --stage: #EEF1F5;
  --ground: #E3E7ED;
  --dark: #0E1116;
  --dark-2: #181C23;
  --dark-line: #2A303A;
  --on-dark: #F5F6F8;
  --on-dark-muted: #B7BFCC;
  --link-dark: #8FB0FF;
  --bug: #C2410C;
  --bug-dk: #7C2D12;
  --bug-txt: #9A3412;
  --tag-ok: #DCFCE7;
  --tag-ok-txt: #166534;
  --tag-warn: #FFEDD5;
  --tag-info: #E0E7FF;
  --shot-hi: #F3F6FF;
  --ok: #6EE7A0;
  --fur: #7C4A2D;
  --face: #E8C39E;
  --sans: 'Commissioner', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); overflow-x: clip; }
a { color: var(--accent); }
a:hover { color: var(--accent-dk); }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.muted { color: var(--soft); }
.bug-txt { color: var(--bug-txt); font-weight: 700; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 12px 24px; border-radius: 999px; border: 0; font: 600 16px var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px -10px rgba(14,17,22,.5); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 16px 28px; font-size: 18px; }
.btn-mono { font: 700 14px var(--mono); padding: 10px 18px; }

.navlink { position: relative; padding: 12px 14px; font-size: 15px; color: var(--muted); text-decoration: none; }
.navlink:hover { color: var(--ink); }
.navlink::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.navlink:hover::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--accent); z-index: 30;
  transform: scaleX(0); transform-origin: left;
}
.site-header {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: rgba(245,246,248,.88); backdrop-filter: blur(10px);
}
.nav { padding-block: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font: 500 16px var(--mono); color: var(--ink); text-decoration: none; padding: 10px 0; }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.lang-toggle {
  margin-right: 8px; padding: 9px 12px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: transparent; font: 700 13px var(--mono); color: var(--muted); cursor: pointer;
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); }
.lang-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.deco { position: absolute; border-radius: 50%; }
.deco-ring { top: 60px; left: -80px; width: 260px; height: 260px; border: 2px dashed var(--line-2); }
.deco-blob { bottom: 40px; right: 6%; width: 120px; height: 120px; background: var(--accent); opacity: .08; }
.hero-inner { position: relative; padding-block: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 14px var(--mono); color: var(--soft); letter-spacing: .04em; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
h1 { min-height: 2.1em; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.typed { color: var(--soft); }
.lead { max-width: 580px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.caret { display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: currentColor; animation: blink 1s steps(1) infinite; }
.logo .caret { width: 2px; }

.hero-photo { flex: 1 1 300px; display: flex; justify-content: center; }
.photo { position: relative; width: 320px; max-width: 100%; aspect-ratio: 4 / 5; }
.photo-ring { position: absolute; inset: -28px; border-radius: 50%; border: 2px dotted var(--accent); opacity: .35; }
.photo-float { position: absolute; inset: 0; }
.photo-shadow { position: absolute; inset: 20px -20px -20px 20px; border-radius: 28px; background: var(--accent); opacity: .14; }
.photo-frame {
  position: absolute; inset: 0; border-radius: 28px; background: var(--ground); border: 1px solid var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--soft);
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.scroll-hint { position: absolute; left: 50%; bottom: 16px; margin-left: -22px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--soft); }

/* ---------- Sections ---------- */
.section { padding-block: 96px; display: flex; flex-direction: column; gap: 40px; }
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.split { padding-block: 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.split-head { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.split-body { flex: 999 1 520px; min-width: 0; }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: var(--text); }
.kicker { font: 14px var(--mono); color: var(--accent); margin-bottom: 8px; }
.kicker-dark { color: var(--link-dark); }
h2 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.h2-sm { font-size: 32px; }
.h2-xl { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
.h3 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding-top: 16px; }
.stat { padding: 20px; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.stat-label { font-size: 14px; line-height: 1.4; color: var(--soft); }

.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(14,17,22,.45); }

/* ---------- Text timeline ---------- */
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 36px 36px; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.timeline .tl-dot { position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline .tl-year { flex: 0 0 140px; font: 15px var(--mono); color: var(--soft); padding-top: 4px; }
.timeline .tl-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.timeline h4 { font-size: 21px; font-weight: 600; }
.timeline p { font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Work ---------- */
.band-dark { background: var(--dark); color: var(--on-dark); }
.band-dark .section { padding-bottom: 64px; }
.band-dark + .section { padding-top: 64px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { padding: 28px; border-radius: 20px; background: var(--dark-2); border: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 14px; color: var(--link-dark); }
.card h3 { font-size: 21px; font-weight: 600; color: var(--on-dark); }
.card p { font-size: 16px; line-height: 1.6; color: var(--on-dark-muted); }
.card:hover { border-color: var(--link-dark); background-color: #1D222B; }
.marquee { overflow: hidden; border-block: 1px solid var(--dark-line); padding: 20px 0; margin-bottom: 96px; }
.track { display: flex; gap: 12px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.chip { flex: none; padding: 10px 18px; border-radius: 999px; border: 1px solid #3A414C; font: 15px var(--mono); color: var(--line); white-space: nowrap; }

/* ---------- Education & courses ---------- */
.creds { display: flex; flex-direction: column; gap: 14px; }
.creds-head { font-weight: 500; letter-spacing: .04em; }
.creds-head:not(:first-child) { margin-top: 18px; }
.cred-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cred { padding: 20px 22px; border-radius: 16px; background: var(--bg); border-left: 4px solid var(--accent); display: flex; flex-direction: column; gap: 4px; }
.cred-title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.cred-org { font-size: 16px; color: var(--muted); }
.cred-meta { padding-top: 4px; font-size: 13px; color: var(--soft); }
.cred-link { align-self: flex-start; padding: 8px 0 2px; font-size: 13px; font-weight: 700; text-decoration: none; }
.cred-link:hover { text-decoration: underline; }

/* ---------- Contact & footer ---------- */
.contact { padding-block: 112px 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.contact .lead { font-size: 18px; max-width: 520px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 8px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Journey runner ---------- */
.journey { position: relative; }
.journey-sticky { position: sticky; top: 76px; padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.journey-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.journey-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.stage { position: relative; height: 420px; border-radius: 20px; overflow: hidden; background: var(--stage); border: 1px solid var(--line-2); font-family: var(--mono); }
.hud { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 18px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.layer { position: absolute; inset: 0; }
.plane { position: absolute; top: 0; left: 0; bottom: 0; will-change: transform; }
.cloud { position: absolute; }

.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; border-top: 2px solid var(--ink); background: var(--ground); overflow: hidden; }
.pebbles { height: 3px; margin-top: 12px; background: repeating-linear-gradient(90deg, #9AA3B0 0 6px, transparent 6px 38px); }
.pebbles-2 { margin-top: 16px; margin-left: 17px; background: repeating-linear-gradient(90deg, #B7BFCC 0 10px, transparent 10px 56px); }

.start-sign { position: absolute; left: 30px; bottom: 86px; padding: 6px 10px; border: 2px solid var(--ink); background: var(--white); font-size: 12px; font-weight: 700; }
.bug-label { position: absolute; bottom: 120px; width: 200px; text-align: center; }
.bug-label span, .obs-label span { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--white); border: 1px solid var(--line-2); font-size: 11px; color: var(--bug-txt); white-space: nowrap; }
.bug { position: absolute; bottom: 72px; }

.coin { position: absolute; bottom: 214px; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--white); border: 2px solid var(--accent); font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: opacity .3s ease, transform .3s ease; }
.coin.got { opacity: 0; transform: translateY(-28px); }
.coin-face { width: 18px; height: 18px; border-radius: 50%; background: #E9B949; border: 2px solid #8A6410; animation: coinSpin 1.2s ease-in-out infinite; }

.pole { position: absolute; bottom: 72px; width: 4px; height: 132px; background: var(--ink); }
.flag { position: absolute; bottom: 176px; transform: translateY(88px); transition: transform .45s cubic-bezier(.2,.8,.2,1.2); }
.flag-cloth { width: 40px; height: 26px; background: #9AA3B0; transform-origin: left center; animation: wave 1.4s ease-in-out infinite; transition: background-color .3s ease; }
.flag.up { transform: none; }
.flag.up .flag-cloth { background: var(--accent); }

.ms-card { position: absolute; bottom: 214px; width: 250px; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1.2); }
.ms-card.on { opacity: 1; transform: none; }
.ms-year { font-size: 12px; font-weight: 700; color: var(--accent); }
.ms-title { margin-top: 4px; font: 600 16px/1.3 var(--sans); color: var(--ink); }

.banner { position: absolute; bottom: 90px; width: 300px; padding: 16px 18px; border-radius: 14px; background: var(--dark); color: var(--on-dark); box-shadow: 6px 6px 0 var(--accent); }
.banner-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ok); }
.banner-sub { margin-top: 6px; font-size: 12px; color: var(--on-dark-muted); }
.banner-next { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--white); }

.dino { position: absolute; bottom: 72px; width: 64px; height: 64px; }
.dino svg { display: block; }
.obs { position: absolute; bottom: 72px; width: 48px; }
.obs-label { position: absolute; left: -76px; bottom: 46px; width: 200px; text-align: center; }

.pad { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 4; }
.pad:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 20px; }
.over {
  position: absolute; left: 50%; top: 50%; z-index: 5; width: 320px; max-width: calc(100% - 32px); transform: translate(-50%, -50%);
  padding: 20px; border-radius: 14px; background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  text-align: center; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted);
}
.over-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.over-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 6px; }

/* ---------- Home (app picker) ---------- */
.page-fill { min-height: 100vh; display: flex; flex-direction: column; }
.page-fill > main { flex: 1; }
.h1-auto { min-height: 0; }
.dot-bug { background: var(--bug); }
.home { position: relative; padding-block: 88px 72px; display: flex; flex-direction: column; gap: 48px; }
.home-head { display: flex; flex-direction: column; gap: 20px; }
.dests { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.dest {
  height: 100%; padding: 28px; border-radius: 20px; background: var(--white); border: 1.5px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none;
}
.dest:hover { color: var(--ink); border-color: var(--ink); box-shadow: 6px 6px 0 var(--accent); }
.dest:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dest-top { display: flex; align-items: center; justify-content: space-between; }
.dest-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--stage); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: background-color .25s ease, color .25s ease; }
.dest:hover .dest-icon { background: var(--accent); color: var(--white); }
.dest-num { font-size: 13px; color: var(--soft); }
.dest-name { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.dest-text { flex: 1; font-size: 16px; line-height: 1.6; color: var(--muted); }
.dest-go { padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--accent); }
.dest-arrow { display: inline-block; transition: transform .25s ease; }
.dest:hover .dest-arrow { transform: translateX(6px); }
.dest-tags { font-size: 12px; color: var(--muted); }
.dest-live { color: var(--tag-ok-txt); font-weight: 700; }
.projects-lead { margin-top: 12px; }
.dest-why { font-size: 14px; line-height: 1.5; font-style: italic; color: var(--accent-dk); }
.app-story { max-width: 580px; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--white); display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.55; color: var(--text); }
.app-story-label { font-size: 12px; color: var(--accent); }
.server-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dot-ok { width: 8px; height: 8px; flex: none; background: var(--tag-ok-txt); }
.dest-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { padding: 3px 9px; border-radius: 999px; background: var(--stage); white-space: nowrap; }
.home-cv { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 16px; color: var(--muted); }
.cv-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 22px 6px 6px;
  border-radius: 999px; background: var(--white); border: 1.5px solid var(--ink); color: var(--ink);
  font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.cv-btn:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--accent); }
.cv-btn:active { transform: none; box-shadow: 0 0 0 var(--accent); }
.cv-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cv-btn-face { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; }
.cv-btn:hover .cv-btn-face { animation: nod .6s ease; }
.cv-btn-arrow { display: inline-block; transition: transform .25s ease; }
.cv-btn:hover .cv-btn-arrow { transform: translateX(5px); }

/* ---------- App presentation (/rentflow/, /cashflow/, /insureoffice/) ---------- */
.h1-app { min-height: 0; font-size: clamp(36px, 5vw, 60px); }
.btn-soon { background: var(--white); color: var(--soft); border: 1.5px dashed var(--line-2); cursor: default; }
.btn-soon:hover { transform: none; box-shadow: none; }
#nav-open { margin-left: 8px; }
#others { align-items: center; }

.app-shot { position: relative; flex: 1 1 420px; min-width: 0; max-width: 540px; }
.shot { position: relative; border-radius: 18px; background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; font-size: 13px; color: var(--ink); }
.shot-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1.5px solid var(--line); background: var(--bg); }
.shot-dots { display: flex; gap: 6px; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot-dots i:first-child { background: var(--accent); }
.shot-url { flex: 1; min-width: 0; padding: 4px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 11px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-body { display: flex; min-height: 280px; }
.shot-nav { flex: 0 0 108px; margin: 0; padding: 14px 10px; list-style: none; display: flex; flex-direction: column; gap: 4px; border-right: 1.5px solid var(--line); background: var(--bg); }
.shot-nav li { padding: 7px 10px; border-radius: 8px; color: var(--soft); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-nav li.on { background: var(--accent); color: var(--white); font-weight: 600; }
.shot-main { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.shot-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.shot-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shot-stat { min-width: 0; padding: 10px; border-radius: 10px; background: var(--stage); display: flex; flex-direction: column; gap: 2px; }
.shot-k { font-size: 11px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-v { font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.shot-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.shot-rows li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 10px; border: 1px solid var(--line); opacity: 0;
  animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) forwards, scan 6s ease-in-out infinite;
}
.shot-rows li:nth-child(1) { animation-delay: 1s, 2s; }
.shot-rows li:nth-child(2) { animation-delay: 1.2s, 4s; }
.shot-rows li:nth-child(3) { animation-delay: 1.4s, 6s; }
.shot-name { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-amt { font-size: 12px; color: var(--text); }
.tag { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tag-ok { background: var(--tag-ok); color: var(--tag-ok-txt); }
.tag-warn { background: var(--tag-warn); color: var(--bug-txt); }
.tag-info { background: var(--tag-info); color: var(--accent-dk); }

.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.who-card { padding: 28px; border-radius: 20px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.who-num { font-size: 13px; font-weight: 700; color: var(--accent); }
.who-card h3, .feat h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.who-card p, .feat p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feat { padding: 28px; border-radius: 20px; background: var(--white); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.feat:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--accent); transform: translateY(-3px); }
.feat-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--stage); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: background-color .25s ease, color .25s ease; }
.feat:hover .feat-icon { background: var(--accent); color: var(--white); }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { padding: 28px; border-radius: 20px; background: var(--dark-2); border: 1px solid var(--dark-line); display: flex; gap: 18px; }
.step-num { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--link-dark); color: var(--link-dark); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.step-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.step h3 { font-size: 20px; font-weight: 600; color: var(--on-dark); }
.step p { font-size: 16px; line-height: 1.6; color: var(--on-dark-muted); }

/* ---------- 404: the monkeys are on strike ---------- */
.nf { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.nf-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.nf-reply { min-height: 1.4em; }
.strike {
  position: relative; flex: 1 1 460px; min-width: 0; height: 400px; border-radius: 20px; overflow: hidden;
  background: var(--stage); border: 1px solid var(--line-2);
}
.strike-hud { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 18px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.strike-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; border-top: 2px solid var(--ink); background: var(--ground); }
.strike-crowd { position: absolute; left: 4%; bottom: 62px; z-index: 2; display: flex; gap: 28px; }
.striker { position: relative; width: 80px; height: 80px; animation: march .7s ease-in-out calc(var(--i) * -.23s) infinite alternate; }
.striker svg { display: block; }
.picket { position: absolute; left: 67px; bottom: 30px; width: 0; height: 0; transform-origin: 0 0; animation: wobble 1.4s ease-in-out calc(var(--i) * -.45s) infinite alternate; }
.picket-pole { position: absolute; left: -2px; bottom: 0; width: 5px; height: 130px; background: var(--fur); }
.sign {
  position: absolute; left: 0; bottom: 124px; width: 112px; transform: translateX(-50%); padding: 10px 8px;
  background: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-size: 11px; font-weight: 700; line-height: 1.3; text-align: center; color: var(--bug-txt);
}
.strike-crowd.cheer .striker { animation: cheer .5s ease-out; }
.strike-ai { position: absolute; right: 5%; bottom: 62px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.strike-ai #robot svg { display: block; }
.bubble {
  position: relative; width: 190px; min-height: 64px; padding: 10px 12px; border-radius: 12px;
  background: var(--white); border: 2px solid var(--ink); font-size: 12px; line-height: 1.4; color: var(--ink);
}
.bubble::after { content: ""; position: absolute; right: 40px; bottom: -9px; width: 14px; height: 14px; background: var(--white); border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Extras the moods switch on (data-mood on .strike, picked per status code in error.js) */
.strike-fx { position: absolute; left: 44%; top: 72px; z-index: 3; display: none; font-size: 28px; font-weight: 700; color: var(--accent); letter-spacing: .2em; animation: float 2.4s ease-in-out infinite; }
.strike-rope { position: absolute; right: calc(5% + 210px); bottom: 62px; z-index: 2; display: none; width: 96px; height: 64px; }
.strike-rope::before { content: ""; position: absolute; left: 0; bottom: 0; width: 8px; height: 64px; background: var(--ink); box-shadow: 88px 0 0 var(--ink); }
.strike-rope::after { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 22px; border-bottom: 5px solid var(--bug); border-radius: 0 0 50% 50%; }
.strike-smoke { position: absolute; z-index: -1; left: 70px; bottom: 50px; display: none; width: 40px; height: 0; }
.strike-smoke span { position: absolute; left: 0; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--soft); opacity: 0; animation: puff 2.4s ease-out calc(var(--p, 0) * -.8s) infinite; }
.strike-smoke span:nth-child(2) { --p: 1; left: 12px; }
.strike-smoke span:nth-child(3) { --p: 2; left: 4px; }

.strike[data-mood="confused"] .strike-fx,
.strike[data-mood="sleep"] .strike-fx,
.strike[data-mood="think"] .strike-fx { display: block; }
.strike[data-mood="confused"] .strike-fx { left: 12%; color: var(--bug-txt); }
.strike[data-mood="confused"] .picket { animation-duration: .6s; }
.strike[data-mood="bouncer"] .strike-rope { display: block; }
.strike[data-mood="bouncer"] { --robot-eye: var(--ink); }
.strike[data-mood="broken"], .strike[data-mood="teapot"] { --robot-eye: var(--bug); }
.strike[data-mood="broken"] .strike-smoke, .strike[data-mood="teapot"] .strike-smoke { display: block; }
.strike[data-mood="broken"] #robot { animation: shake .25s linear infinite; }
.strike[data-mood="broken"] .striker { animation-duration: 1.6s; }
.strike[data-mood="teapot"] .strike-smoke span { background: var(--white); border: 2px solid var(--line-2); }
.strike[data-mood="teapot"] #robot { animation: tilt 2s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.strike[data-mood="sleep"] { --robot-eye: var(--soft); }
.strike[data-mood="sleep"] .strike-fx { left: auto; right: calc(5% + 210px); top: auto; bottom: 150px; font-size: 22px; animation-duration: 3.2s; }
.strike[data-mood="sleep"] #robot { opacity: .6; }
.strike[data-mood="sleep"] .striker { animation-duration: 2.4s; }
.strike[data-mood="sleep"] .picket { animation-duration: 4s; }
.strike[data-mood="think"] { --robot-eye: var(--accent); }
.strike[data-mood="think"] .strike-fx { left: auto; right: calc(5% + 210px); top: auto; bottom: 150px; animation: blink 1.2s steps(1) infinite; }
.strike[data-mood="think"] #robot { animation: float 3s ease-in-out infinite; }
.strike[data-mood="think"] .striker { animation-duration: 2s; }
.strike[data-mood="panic"] .striker { animation-duration: .18s; }
.strike[data-mood="panic"] .picket { animation-duration: .3s; }
.strike[data-mood="panic"] #robot { animation: shake .12s linear infinite; }

@keyframes puff { 0% { opacity: 0; transform: translateY(0) scale(.5); } 20% { opacity: .7; } 100% { opacity: 0; transform: translateY(-70px) scale(1.6); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px) rotate(-1deg); } 75% { transform: translateX(2px) rotate(1deg); } }
@keyframes tilt { from { transform: rotate(0); } to { transform: rotate(-12deg); } }
@keyframes march { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes wobble { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes cheer { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-36px); } }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -24px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(48px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-40px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26,71,184,.45); } 100% { box-shadow: 0 0 0 14px rgba(26,71,184,0); } }
@keyframes coinSpin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.25); } }
@keyframes scan { 0%, 30%, 100% { border-color: var(--line); background: var(--white); } 10%, 20% { border-color: var(--accent); background: var(--shot-hi); } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 65% { transform: rotate(10deg); } }
@keyframes wave { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-6deg); } }

.in { opacity: 0; animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .35s; } .d3 { animation-delay: .55s; } .d4 { animation-delay: .75s; } .d5 { animation-delay: .95s; }
.pop { opacity: 0; animation: popIn .9s .4s cubic-bezier(.2,.8,.2,1.2) forwards; }
.float { animation: float 5s ease-in-out infinite; }
.spin { animation: spin 24s linear infinite; }
.drift { animation: drift 9s ease-in-out infinite; }
.drift2 { animation: drift 12s ease-in-out -4s infinite reverse; }
.pulse { animation: pulse 1.8s ease-out infinite; }

@supports (animation-timeline: view()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .slide { animation: slideIn linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .in, .pop, .shot-rows li { opacity: 1; }
}

/* Phones and small tablets: the long navs fold behind a menu button. */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-toggle + .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-bottom: 8px; }
  .nav.open .nav-toggle + .nav-links { display: flex; }
  .nav-toggle + .nav-links .lang-toggle,
  .nav-toggle + .nav-links .btn,
  .nav-toggle + .nav-links #nav-open { align-self: flex-start; margin: 6px 0 0; }
}

@media (max-width: 640px) {
  h2 { font-size: 32px; }
  .h2-sm { font-size: 26px; }
  .hero-inner { padding-block: 56px 80px; }
  .journey-sticky { top: 64px; }
  .stage { height: 380px; }
  .home { padding-block: 56px; }
  .shot-nav { display: none; }
  .nf { padding-block: 48px; }
  .strike { flex-basis: 100%; height: 380px; }
  .strike-crowd { left: 12px; gap: 14px; }
  .striker:nth-child(3) { display: none; }
  .strike-ai { right: 12px; }
  .bubble { width: 150px; }
  .strike-rope { right: 120px; }
  .strike[data-mood] .strike-fx { left: auto; right: 170px; }
}

@media (max-width: 460px) {
  .striker:nth-child(2) { display: none; }
}
