/* Senarix Labs · site styles */
:root {
  --bg: #0B0B0C;
  --bg-2: #0F0F11;
  --bg-3: #121215;
  --ink: #EDEAE3;
  --ink-2: #CFCBC3;
  --muted: #8F8D88;
  --faint: #6E6C68;
  --line: #222226;
  --line-2: #2A2A30;
  --line-3: #3A3A40;
  --gold: #D8B878;
  --gold-2: #C2A574;
  --paper: #EDEAE3;
  --paper-ink: #121214;
  --paper-muted: #4E4C48;
  --wrap: 1320px;
  --pad: 32px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400; line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
a { color: var(--ink); }
a:hover { color: var(--gold); }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.label { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--gold); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; }

/* nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand-word { font-size: 15px; font-weight: 500; letter-spacing: .24em; color: var(--ink); }
.brand-word span { font-weight: 400; color: var(--muted); }
.clock { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 30px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 13px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.cta { color: var(--ink); border-bottom: 1px solid var(--gold); }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-mark { position: absolute; right: -150px; top: 10px; width: 620px; height: 620px; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 120px 0 64px; display: flex; flex-direction: column; gap: 72px; }
h1 { margin: 0; max-width: 1100px; font-size: clamp(3.2rem, 8.4vw, 8.4rem); font-weight: 400; line-height: .94; letter-spacing: -.045em; text-wrap: balance; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-meta { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.hero-lead { flex: 2 1 420px; margin: 0; max-width: 560px; font-size: 1.3rem; line-height: 1.5; letter-spacing: -.01em; color: var(--ink-2); text-wrap: pretty; }
.round { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid var(--line-3); border-radius: 50%; color: var(--ink); text-decoration: none; transition: border-color .25s ease; }
.round:hover { border-color: var(--gold); color: var(--ink); }

/* generic section */
.section { padding-top: 120px; padding-bottom: 120px; }
.split { display: flex; flex-wrap: wrap; gap: 32px; }
.split > .side { flex: 1 1 220px; font-size: 14px; color: var(--muted); }
.split > .main { flex: 999 1 640px; min-width: 0; }
.statement { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.9rem); font-weight: 400; line-height: 1.18; letter-spacing: -.03em; text-wrap: pretty; }
.statement span { color: var(--muted); }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 72px; }
.trio > div { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.trio b { font-size: 15px; font-weight: 500; }
.trio p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.8rem); font-weight: 400; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
h2 span { color: var(--muted); }

/* projects */
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 28px; }
.flagship { border: 1px solid var(--line-2); background: var(--bg-2); display: flex; flex-wrap: wrap; }
.flag-main { flex: 999 1 520px; min-width: 0; padding: 44px 40px; display: flex; flex-direction: column; gap: 26px; }
.flag-side { flex: 1 1 300px; padding: 44px 40px; background: var(--bg-3); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.badge { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--bg); background: var(--gold); padding: 5px 10px; }
.flag-title { display: flex; align-items: center; gap: 20px; }
.flag-title h3 { margin: 0; font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.flag-lead { margin: 0; max-width: 620px; font-size: 1.15rem; line-height: 1.55; letter-spacing: -.01em; color: var(--ink-2); text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; color: var(--ink-2); border: 1px solid #333338; padding: 6px 11px; }
.kv { display: flex; flex-direction: column; gap: 6px; }
.kv small { font-size: 13px; color: var(--muted); }
.kv span { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; color: var(--ink-2); }
.seek { border-top: 1px solid var(--line-2); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.seek strong { font-size: 1.3rem; font-weight: 400; line-height: 1.3; letter-spacing: -.02em; }
.btn-gold { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 18px; min-height: 48px; padding: 14px 24px; background: var(--gold); color: var(--bg); font-size: 15px; font-weight: 500; text-decoration: none; align-self: flex-start; }
.btn-gold:hover { color: var(--bg); filter: brightness(1.07); }
.btn-gold .arr, .row .arr, .cta-block .arr { display: inline-block; transition: transform .25s ease; }
.btn-gold:hover .arr, .row:hover .arr, .cta-block:hover .arr { transform: translateX(6px); }
.link-line { appearance: none; background: none; border: 0; border-bottom: 1px solid var(--gold); cursor: pointer; align-self: flex-start; padding: 12px 0 4px; font-size: 15px; color: var(--ink); }
.link-line:hover { color: var(--gold); }
.also { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding: 72px 0 24px; }
.also span:first-child { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.rows { border-bottom: 1px solid var(--line); }
.row { appearance: none; background: none; border: 0; border-top: 1px solid var(--line); width: 100%; text-align: left; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: 36px 0; color: var(--ink); }
.row .num { flex: 0 0 56px; font-size: 14px; color: var(--muted); }
.row .name { flex: 1 1 280px; display: flex; align-items: center; gap: 18px; }
.row .name b { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; transition: color .25s ease; }
.row:hover .name b { color: var(--gold); }
.row .desc { flex: 2 1 340px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.row .meta { flex: 0 1 180px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.row .meta em { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.row .meta em b { font-weight: 400; color: var(--ink); }
.row .arr { color: var(--gold); font-size: 18px; }
.row.dim .name b { color: var(--faint); }
.dash-tile { width: 44px; height: 44px; border: 1px dashed #4A4A50; border-radius: 12px; }

/* process */
.band { border-top: 1px solid var(--line); background: var(--bg-2); }
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px 24px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #2E2E34; padding-top: 18px; }
.steps li.now { border-top: 2px solid var(--gold); padding-top: 17px; }
.steps small { font-size: 13px; color: var(--muted); }
.steps li.now small { color: var(--gold); }
.steps b { font-size: 1.35rem; font-weight: 400; letter-spacing: -.02em; }
.steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips span { font-size: 12px; color: var(--ink); border: 1px solid var(--line-3); border-radius: 4px; padding: 4px 8px; }

/* principles */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .side { color: #5E5C57; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px 40px; }
.pgrid b { display: block; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.pgrid p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--paper-muted); }

/* founder */
.founder { display: flex; flex-wrap: wrap; gap: 40px; }
.portrait { flex: 0 0 260px; height: 320px; }
.founder img { width: 100%; height: 320px; object-fit: cover; object-position: center 30%; border-radius: 2px; filter: grayscale(.15) contrast(1.03); }
.founder-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 22px; }
.founder-text .quote { margin: 0; max-width: none; color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.22; letter-spacing: -.03em; text-wrap: pretty; }
.founder-text p { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.who b { display: block; font-size: 16px; font-weight: 500; }
.who span { font-size: 14px; color: var(--muted); }
.underline { align-self: flex-start; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--gold); padding: 12px 0 4px; }

/* contact */
.contact { padding-top: 140px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.contact h2 { font-size: clamp(2.6rem, 6vw, 6rem); line-height: .98; letter-spacing: -.045em; max-width: 1000px; }
.contact h2 span { color: var(--gold); }
.mail-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.mail-big { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 4px; overflow-wrap: anywhere; }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.topic { appearance: none; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 26px 0; color: var(--ink); }
.topic span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topic b { font-size: 1.5rem; font-weight: 400; letter-spacing: -.025em; transition: color .25s ease; }
.topic i { font-style: normal; font-size: 22px; font-weight: 300; color: var(--gold); transition: transform .3s ease; }
.topic small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.topic:hover b { color: var(--gold); }
.topic:hover i { transform: rotate(90deg); }

/* footer */
.footer { padding-bottom: 28px; }
.wordmark { width: 100%; height: auto; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-row a { color: var(--ink); text-decoration: none; }
.foot-row nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* dialog */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; }
.overlay[hidden] { display: none; }
.backdrop { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; background: rgba(6, 6, 7, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; animation: fade .35s ease; }
.panel { position: relative; width: 100%; max-width: 640px; height: 100%; overflow-y: auto; background: var(--bg-2); border-left: 1px solid #26262B; animation: slide .5s cubic-bezier(.2,.7,.1,1); overscroll-behavior: contain; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 36px; border-bottom: 1px solid var(--line); }
.close { appearance: none; background: none; cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--line-3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.close:hover { border-color: var(--gold); }
.panel-body { padding: 40px 36px 56px; display: flex; flex-direction: column; gap: 36px; }
.stagger > * { animation: up .6s cubic-bezier(.2,.7,.1,1) both; }
.stagger > *:nth-child(2) { animation-delay: .06s; } .stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .18s; } .stagger > *:nth-child(5) { animation-delay: .24s; }
.stagger > *:nth-child(n+6) { animation-delay: .3s; }
.p-head { position: relative; display: flex; flex-direction: column; gap: 18px; }
.p-num { position: absolute; right: 0; top: -18px; font-size: 7.5rem; font-weight: 300; line-height: 1; letter-spacing: -.05em; color: #1C1C20; }
.p-head h2 { position: relative; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .98; letter-spacing: -.045em; }
.p-head p { position: relative; margin: 0; font-size: 1.12rem; line-height: 1.55; letter-spacing: -.01em; color: var(--ink-2); }
.p-meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 20px; }
.p-meta div { border-top: 1px solid #26262B; padding: 14px 0; display: flex; flex-direction: column; gap: 5px; }
.p-meta dt { font-size: 12px; color: var(--muted); }
.p-meta dd { margin: 0; font-size: 15px; }
.p-sec > span { display: block; font-size: 13px; color: var(--gold); padding-bottom: 10px; }
.p-item { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.p-item small { flex: 0 0 26px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.p-item div { display: flex; flex-direction: column; gap: 5px; }
.p-item b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.p-item p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cta-block { appearance: none; border: 0; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; background: var(--gold); color: var(--bg); font-size: 17px; font-weight: 500; letter-spacing: -.01em; text-align: left; text-decoration: none; }
.cta-block:hover { color: var(--bg); filter: brightness(1.07); }
.cta-block[disabled] { opacity: .6; cursor: progress; }
.note { font-size: 13px; line-height: 1.55; color: var(--muted); }
.note a { color: var(--ink); }

/* form */
.progress { height: 2px; background: var(--line); }
.progress div { height: 2px; background: var(--gold); transition: width .45s cubic-bezier(.2,.7,.1,1); }
.counter { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.step { display: flex; flex-direction: column; gap: 26px; animation: up .45s cubic-bezier(.2,.7,.1,1); }
.step .n { font-size: 14px; color: var(--gold); }
.q { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.03em; line-height: 1.15; }
.q .opt { color: var(--faint); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.in { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-3); border-radius: 0; color: var(--ink); font: inherit; font-size: 1.45rem; letter-spacing: -.02em; padding: 10px 0 12px; outline: none; }
.in.sm { font-size: 1.3rem; }
textarea.in { font-size: 1.2rem; line-height: 1.5; letter-spacing: -.01em; resize: vertical; }
.in:focus { border-bottom-color: var(--gold); }
.in::placeholder { color: var(--faint); }
.err { font-size: 14px; color: #E8A27A; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ok { appearance: none; border: 0; cursor: pointer; min-height: 44px; padding: 12px 24px; background: var(--gold); color: var(--bg); font-size: 15px; font-weight: 500; }
.ok:hover { filter: brightness(1.07); }
.ok.ghost { background: none; border: 1px solid var(--line-3); color: var(--ink); }
.hint { font-size: 13px; color: var(--faint); }
.back { appearance: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 12px 0; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--ink); }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { appearance: none; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-3); color: var(--ink); font-size: 16px; text-align: left; }
.choice:hover { border-color: var(--muted); }
.choice[aria-pressed="true"] { border-color: var(--gold); background: #1A1813; }
.choice .k { width: 24px; height: 24px; border: 1px solid #4A4A50; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.choice .t { flex: 1; }
.choice .tick { color: var(--gold); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 170px; padding: 24px; border: 1px dashed var(--line-3); text-align: center; cursor: pointer; transition: border-color .25s ease; }
.drop:hover, .drop:focus-within, .drop.over { border-color: var(--gold); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop b { font-size: 16px; font-weight: 400; }
.drop small { font-size: 13px; color: var(--muted); }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #3A3426; background: #15140F; }
.file span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file b { font-size: 15px; font-weight: 400; overflow-wrap: anywhere; }
.file small { font-size: 12px; color: var(--muted); }
.review { margin: 0; display: flex; flex-direction: column; }
.review div { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.review dt { flex: 0 0 120px; font-size: 13px; color: var(--muted); }
.review dd { flex: 1 1 240px; margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.done-title { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.045em; line-height: 1; }
.done-title span { color: var(--gold); }
.copybox { border: 1px solid #26262B; background: #131316; padding: 16px 18px; font-size: 14px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 96px var(--pad) 120px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 18px; }
.legal .draft { display: inline-block; margin: 0 0 40px; font-size: 13px; color: var(--bg); background: var(--gold); padding: 6px 10px; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.025em; margin: 56px 0 14px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal .updated { font-size: 14px; color: var(--muted); margin-top: 64px; }
.panel .legal-in { max-width: none; margin: 0; padding: 40px 36px 56px; display: block; }
.panel .legal-in h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.panel .legal-in h2 { margin-top: 40px; }

/* ---------- site-wide motion ---------- */
.site-head { position: sticky; top: 0; z-index: 40; transition: background-color .35s ease, backdrop-filter .35s ease; }
.site-head.scrolled { background: rgba(11, 11, 12, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.site-head .nav { transition: padding .35s ease; }
.site-head.scrolled .nav { padding: 12px 0; }
#mission, #projects, #process, #principles, #founder, #contact { scroll-margin-top: 72px; }

/* hero */
h1 .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
h1 .hw > span { display: inline-block; animation: wordUp 1.1s cubic-bezier(.2,.7,.1,1) both; animation-delay: calc(var(--d) * 90ms + 120ms); }
.hero-foot { animation: up 1s cubic-bezier(.2,.7,.1,1) .75s both; }
.hero-mark { animation: float 10s ease-in-out infinite; }
.hm-arms { animation: fade 1.8s ease .2s both; }
.hm-hex, .hm-hex2 { transform-box: fill-box; transform-origin: center; stroke-dasharray: 100; }
.hm-hex { animation: draw 2.4s cubic-bezier(.6,0,.2,1) .4s both, spin 70s linear 2.8s infinite; }
.hm-hex2 { animation: draw 2.4s cubic-bezier(.6,0,.2,1) .9s both, spin 50s linear 3.3s infinite reverse; }
.round { animation: bob 2.6s ease-in-out 1.6s infinite; }
@keyframes wordUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.ticker-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: tick 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -.035em; line-height: 1; color: transparent; -webkit-text-stroke: 1px #4A4A50; white-space: nowrap; transition: color .3s ease; }
.ticker span:hover { color: var(--ink); -webkit-text-stroke-color: transparent; }
.ticker i { width: 10px; height: 11px; flex: 0 0 auto; background: var(--gold); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); opacity: .8; }
@keyframes tick { to { transform: translateX(-50%); } }

/* scroll reveals (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.1,1), transform 1s cubic-bezier(.2,.7,.1,1); }
.js [data-reveal].in-view { opacity: 1; transform: none; }
.js [data-reveal="stagger"] { opacity: 1; transform: none; }
.js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.1,1), transform .9s cubic-bezier(.2,.7,.1,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="stagger"].in-view > * { opacity: 1; transform: none; }
.js [data-reveal="curtain"] { opacity: 1; transform: none; }
.js [data-reveal="curtain"] > img { clip-path: inset(0 0 100% 0); transform: scale(1.08); transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), transform 1.8s cubic-bezier(.2,.7,.1,1); }
.js [data-reveal="curtain"].in-view > img { clip-path: inset(0 0 0 0); transform: none; }
.js [data-reveal="rise"] { opacity: 1; transform: none; overflow: hidden; }
.js [data-reveal="rise"] > svg { transform: translateY(75%); transition: transform 1.5s cubic-bezier(.2,.7,.1,1); }
.js [data-reveal="rise"].in-view > svg { transform: none; }

/* small live details */
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 9px; vertical-align: middle; position: relative; top: -1px; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(216,184,120,.55); } 100% { box-shadow: 0 0 0 10px rgba(216,184,120,0); } }
.flagship { transition: border-color .5s ease, box-shadow .5s ease; }
.flagship:hover { border-color: #4A4232; box-shadow: 0 30px 80px -40px rgba(216,184,120,.25); }
.steps li { position: relative; }
.steps li.now::after { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: linear-gradient(90deg, transparent, #FFF3D6, transparent); animation: sweep 3s ease-in-out infinite; }
@keyframes sweep { 0% { left: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { left: calc(100% - 48px); opacity: 0; } }
.rings .orbit { inset: 0; border: 0 !important; animation: spin 9s linear infinite; }
.rings .orbit::before { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(216,184,120,.8); }
.rings .orbit.o2 { inset: 18px; animation-duration: 6s; animation-direction: reverse; }
.rings .orbit.o2::before { width: 4px; height: 4px; top: -2px; margin-left: -2px; background: var(--ink-2); box-shadow: none; }
.rings .logo { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  h1 .hw > span, .hero-foot, .hero-mark, .hm-arms, .hm-hex, .hm-hex2, .round, .ticker-track, .live, .steps li.now::after, .rings .orbit, .rings .logo { animation: none !important; }
  .hm-hex, .hm-hex2 { stroke-dasharray: none; }
  .js [data-reveal], .js [data-reveal] > *, .js [data-reveal] > svg, .js [data-reveal] > img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; padding: 0 var(--pad); }
}

/* animated "how it works" flow inside project panels */
.flow-box { border: 1px solid var(--line-2); background: #0C0C0E; padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.flow-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted); }
.flow-title b { font-weight: 400; color: var(--gold); }
.flow-video { width: 100%; display: block; border: 1px solid var(--line-2); background: #000; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 30px 148px 30px minmax(0, 1fr); align-items: center; }
.flow-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow-col > small { font-size: 11.5px; color: var(--muted); padding-bottom: 2px; }
.fi { display: flex; align-items: center; gap: 9px; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); min-width: 0; }
.fi .ic { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-3); background: #141417; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.flow-col.fout .fi .ic { border-radius: 50%; background: #1A1813; border-color: #3A3426; color: var(--gold); }
.flow-col .fi .ic { animation: lit 4.8s ease-in-out infinite; }
.flow-col .fi:nth-of-type(2) .ic { animation-delay: 1.2s; } .flow-col .fi:nth-of-type(3) .ic { animation-delay: 2.4s; } .flow-col .fi:nth-of-type(4) .ic { animation-delay: 3.6s; }
.flow-col.fout .fi .ic { animation-delay: .6s; } .flow-col.fout .fi:nth-of-type(2) .ic { animation-delay: 1.8s; } .flow-col.fout .fi:nth-of-type(3) .ic { animation-delay: 3s; } .flow-col.fout .fi:nth-of-type(4) .ic { animation-delay: 4.2s; }
.wire { position: relative; height: 1px; background: repeating-linear-gradient(90deg, #3A3A40 0 4px, transparent 4px 8px); }
.wire i, .vwire i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(216,184,120,.6); }
.wire i { top: -2px; animation: runx 2.4s linear infinite; }
.wire i:nth-child(2) { animation-delay: .8s; } .wire i:nth-child(3) { animation-delay: 1.6s; }
.core { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; }
.core-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.core-tags span { font-size: 11px; line-height: 1; padding: 6px 9px; border-radius: 999px; background: #1C1C20; border: 1px solid #2E2E34; color: var(--ink); white-space: nowrap; }
.core-cap { font-size: 11px; color: var(--muted); text-align: center; margin: 0 0 6px; }
.core-cap.b { margin: 6px 0 0; }
.vwire { position: relative; width: 1px; height: 22px; margin: 6px 0; background: repeating-linear-gradient(180deg, #3A3A40 0 3px, transparent 3px 6px); }
.vwire i { left: -2px; animation: runy 1.8s linear infinite; }
.vwire.up i { animation-name: runyu; }
.rings { position: relative; width: 148px; height: 148px; display: flex; align-items: center; justify-content: center; }
.rings span { position: absolute; border-radius: 50%; border: 1px solid #26262B; }
.rings span:nth-child(1) { inset: 0; } .rings span:nth-child(2) { inset: 18px; } .rings span:nth-child(3) { inset: 36px; }
.rings .pulse { inset: 30px; border-color: var(--gold); opacity: 0; animation: pulse 3s ease-out infinite; }
.rings .pulse.p2 { animation-delay: 1.5s; }
.rings .logo { position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #0C0C0E; box-shadow: 0 0 0 6px #0C0C0E; }
.core-name { margin-top: 6px; font-size: 12px; color: var(--ink); text-align: center; }
@keyframes runx { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
@keyframes runy { 0% { top: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: calc(100% - 5px); opacity: 0; } }
@keyframes runyu { 0% { top: calc(100% - 5px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@keyframes pulse { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes lit { 0%, 70%, 100% { border-color: var(--line-3); } 10%, 30% { border-color: var(--gold); color: var(--gold); } }
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .flow-col { width: 100%; }
  .flow .wire { width: 1px; height: 26px; margin: 8px 0; background: repeating-linear-gradient(180deg, #3A3A40 0 3px, transparent 3px 6px); }
  .flow .wire i { top: 0; left: -2px; animation-name: runy; }
}
@media (prefers-reduced-motion: reduce) {
  .wire i, .vwire i, .rings .pulse { display: none; }
  .flow-col .fi .ic { animation: none; }
}

@keyframes slide { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .backdrop, .panel, .stagger > *, .step { animation: none !important; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .hero-inner { padding: 72px 0 48px; gap: 48px; }
  .hero-mark { width: 420px; height: 420px; right: -200px; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .flag-main, .flag-side { padding: 32px 24px; }
  .flag-side { border-left: 0; border-top: 1px solid var(--line-2); }
  .panel-top { padding: 16px 20px; }
  .panel-body { padding: 32px 20px 48px; }
  .portrait { flex-basis: 100%; height: 380px; }
  .founder img { height: 380px; }
  .row .num { flex-basis: 100%; }
  .clock { display: none; }
}
