/* Talaria public site. Ported from the Claude Design file Hermes.dc.html. */
:root {
  --bg: #050607;
  --panel: #08090b;
  --panel-2: #07080a;
  --fg: #e9ecef;
  --white: #ffffff;
  --muted: #7d858e;
  --muted-2: #9aa1a8;
  --dim: #4f555c;
  --dim-2: #6d747c;
  --body: #a8aeb4;
  --body-2: #b4bac0;
  --line: rgba(233, 236, 239, 0.14);
  --line-soft: rgba(233, 236, 239, 0.1);
  --err: #c9846f;
  --display: 'Michroma', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --nav-h: 68px;
}
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
* { box-sizing: border-box; }
body { font-family: var(--display); min-height: 100vh; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--white); }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--fg); color: var(--bg); }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 96px 96px;
}
.wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 100px 28px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(5,6,7,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-in { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-in > a img { height: 20px; display: block; }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; }
.nav-links a { padding: 8px 12px; color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--white); }
.nav-links a.on { border-bottom-color: var(--fg); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(233,236,239,0.3); padding: 8px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; }
@media (max-width: 1320px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: rgba(5,6,7,0.97); border-bottom: 1px solid var(--line-soft); padding: 8px 16px 16px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line-soft); }
}

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; }
.hero-drone { position: absolute; inset: 0; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #050607 0%, rgba(5,6,7,0.82) 34%, rgba(5,6,7,0) 64%); pointer-events: none; }
.hero-in { position: relative; max-width: 1280px; width: 100%; margin: 0 auto; padding: 80px 28px; display: flex; flex-direction: column; gap: 32px; pointer-events: none; }
.hero-in .logo { width: min(620px, 86vw); display: block; }
.rule { width: 120px; height: 2px; background: var(--fg); }
.rule.s { width: 100px; }
.tagline { font-size: clamp(16px, 2vw, 24px); letter-spacing: 0.14em; line-height: 1.6; max-width: 640px; }
.stats { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 8px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat .v { display: flex; align-items: baseline; gap: 10px; }
.stat .v b { font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1; }
.stat .v span { font-size: 18px; }
.stat .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted-2); }
.stat.old .v { color: #5d646b; }
.stat.old .k { color: var(--dim-2); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; pointer-events: auto; }
.btn { display: inline-block; padding: 16px 26px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; border: 1px solid rgba(233,236,239,0.4); background: transparent; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { border-color: var(--white); }
.btn.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.solid:hover { background: var(--white); color: var(--bg); }
.btn.line { border-color: var(--fg); }
.btn.line:hover { background: var(--fg); color: var(--bg); }
.hero-foot { position: absolute; bottom: 28px; left: 0; right: 0; max-width: 1280px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--dim); pointer-events: none; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.28em; color: var(--muted); }

/* ---------- section heads ---------- */
.head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.head .eyebrow { letter-spacing: 0.24em; }
h2 { margin: 0; font-weight: 400; font-size: clamp(30px, 4.6vw, 56px); letter-spacing: 0.04em; line-height: 1.15; }
h3 { margin: 0; font-weight: 400; }

/* ---------- progress ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; margin-bottom: 28px; }
.chip { padding: 10px 16px; background: transparent; color: var(--muted-2); border: 1px solid rgba(233,236,239,0.2); transition: all .2s; }
.chip:hover { border-color: var(--fg); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.post { border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.post:hover { border-color: rgba(233,236,239,0.55); transform: translateY(-4px); }
.post .pic { aspect-ratio: 16/10; background: #0d0e10; border-bottom: 1px solid var(--line-soft); overflow: hidden; padding: 0; border-width: 0 0 1px; cursor: zoom-in; display: block; width: 100%; }
.post .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .in { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post .meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.post .meta b { font-weight: 400; color: var(--fg); }
.post h3 { font-size: 18px; line-height: 1.45; letter-spacing: 0.03em; }
.post p { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--body); text-wrap: pretty; white-space: pre-line; }
.post .more { margin-top: auto; padding-top: 8px; background: none; border: none; padding-left: 0; text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--fg); }
.post .more:hover { color: var(--white); }
.empty { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 40px 0; }

/* ---------- prototypes ---------- */
.ptabs { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border: 1px solid var(--line); }
.ptab { padding: 22px 20px; background: var(--panel); color: var(--muted-2); border: none; border-right: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 8px; transition: background .25s, color .25s; }
.ptab:last-child { border-right: none; }
.ptab:hover { background: #111316; }
.ptab.on { background: var(--fg); color: var(--bg); }
.ptab span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; opacity: 0.7; }
.ptab span:last-child { font-size: clamp(11px, 1.4vw, 16px); letter-spacing: 0.06em; }
.pbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; border: 1px solid var(--line); border-top: none; padding: 32px; background: var(--panel-2); }
.pviz { position: relative; aspect-ratio: 2/1; width: 100%; }
.pviz > * { position: absolute; inset: 0; }
.pviz > img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.thumb { aspect-ratio: 4/3; padding: 0; border: 1px solid rgba(233,236,239,0.16); background: #0b0c0e; cursor: zoom-in; overflow: hidden; transition: border-color .2s; }
.thumb:hover { border-color: var(--fg); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pkicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 10px; }
.pname { font-size: clamp(20px, 2.4vw, 30px); letter-spacing: 0.04em; margin-bottom: 20px; }
.spec { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(233,236,239,0.12); }
.spec span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.spec span:last-child { font-size: 15px; text-align: right; }
.note { margin: 24px 0 0; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--body); text-wrap: pretty; }

.fams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.fam { border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; transition: border-color .25s; }
.fam:hover { border-color: rgba(233,236,239,0.5); }
.fam .pic { aspect-ratio: 16/9; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fam .pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fam .in { padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fam .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.fam .name { font-size: 18px; letter-spacing: 0.04em; }
.tag-dash { padding: 8px 12px; border: 1px dashed rgba(233,236,239,0.35); font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted-2); }
.ph { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--dim); text-align: center; padding: 16px; }

/* ---------- timeline ---------- */
.tl-scroll { overflow-x: auto; padding-bottom: 12px; }
.tl { position: relative; min-width: 880px; }
.tl .track, .tl .fill { position: absolute; left: 0; top: 9px; height: 2px; }
.tl .track { right: 0; background: rgba(233,236,239,0.12); }
.tl .fill { background: var(--fg); transition: width .6s cubic-bezier(.16,1,.3,1); }
.tl .steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); }
.step { background: none; border: none; padding: 0 8px 0 0; text-align: left; display: flex; flex-direction: column; gap: 16px; color: var(--fg); }
.step .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(233,236,239,0.3); transition: all .3s; }
.step.done .dot, .step.now .dot { background: var(--fg); border-color: var(--fg); }
.step.now .dot { box-shadow: 0 0 18px rgba(233,236,239,0.5); }
.step.sel .dot { border-color: var(--white); box-shadow: 0 0 0 6px rgba(233,236,239,0.15); }
.step .st { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.step.now .st { color: var(--white); }
.step .tt { font-size: 13px; line-height: 1.5; letter-spacing: 0.03em; color: var(--dim-2); }
.step.done .tt, .step.now .tt { color: #c9ced3; }
.step.sel .tt { color: var(--white); }
.phase { margin-top: 40px; border: 1px solid rgba(233,236,239,0.18); background: var(--panel); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: start; }
.phase .l { display: flex; flex-direction: column; gap: 14px; }
.phase .l span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.phase .l span:last-child { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.04em; line-height: 1.3; }
.phase .r { display: flex; flex-direction: column; gap: 20px; }
.phase p { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.75; color: var(--body-2); text-wrap: pretty; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 48px; height: 48px; background: transparent; border: 1px solid rgba(233,236,239,0.3); font-size: 16px; }
.arrows button:hover { border-color: var(--fg); }

/* ---------- instagram ---------- */
.ig-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.ig-head .head { margin-bottom: 0; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.ig-tile { aspect-ratio: 1; border: 1px solid var(--line); transition: transform .25s, border-color .25s; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--panel); }
.ig-tile:hover { transform: scale(1.03); border-color: var(--fg); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-tile.empty-tile { border-style: dashed; border-color: rgba(233,236,239,0.18); }
.ig-frame { width: 100%; height: 640px; border: 1px solid var(--line); background: var(--panel); }

/* ---------- sponsors ---------- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.slot { aspect-ratio: 3/2; border: 1px dashed rgba(233,236,239,0.22); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: all .3s; padding: 20px; text-align: center; }
.slot:hover { border-color: var(--fg); background: rgba(233,236,239,0.04); }
.slot .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
.slot .w { font-size: 13px; letter-spacing: 0.14em; color: var(--muted); }
.slot.filled { border-style: solid; border-color: rgba(233,236,239,0.3); background: var(--panel); }
.slot.filled img { max-width: 80%; max-height: 64%; object-fit: contain; }
.slot.filled .w { color: var(--fg); }
.pitch { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border: 1px solid rgba(233,236,239,0.18); background: var(--panel); }
.pitch span { font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--body-2); max-width: 640px; }

/* ---------- merch ---------- */
.merch { position: relative; z-index: 1; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--panel); overflow: hidden; }
.merch-in { max-width: 1280px; margin: 0 auto; padding: 120px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.merch-l { display: flex; flex-direction: column; gap: 24px; }
.merch-l .big { font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: 0.02em; }
.merch-l .soon { font-size: clamp(18px, 2.6vw, 32px); letter-spacing: 0.16em; color: var(--muted-2); }
.merch-r { display: flex; flex-direction: column; gap: 16px; }
.merch-r > span { font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--body-2); }
.notify { display: flex; flex-wrap: wrap; }
.notify input[type=email] { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid rgba(233,236,239,0.3); border-right: none; padding: 16px 18px; font-family: var(--mono); font-size: 14px; outline: none; }
.notify input[type=email]:focus { border-color: var(--fg); }
.notify button { padding: 16px 24px; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; }
.notify button:hover { background: var(--white); }
.notify button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { font-family: var(--mono); font-size: 12px; color: var(--err); min-height: 18px; }
.ok { padding: 18px 20px; border: 1px solid var(--fg); font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; }

/* ---------- mission ---------- */
.lede { margin: -16px 0 40px; max-width: 760px; font-family: var(--mono); font-size: 15px; line-height: 1.8; color: var(--body-2); text-wrap: pretty; }
.mphases { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; align-items: stretch; }
.mphase { border: 1px solid var(--line); background: var(--panel); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.mphase:last-child { border-color: rgba(233,236,239,0.3); }
.mk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--muted); }
.mn { font-size: clamp(30px, 4vw, 52px); letter-spacing: 0.06em; line-height: 1; }
.mphase p { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--body); text-wrap: pretty; flex: 1; }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.mstats div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mstats span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.mstats b { font-weight: 400; font-size: 12px; letter-spacing: 0.02em; line-height: 1.45; overflow-wrap: break-word; }
.marrow { display: flex; align-items: center; justify-content: center; padding: 0 18px; font-size: 22px; color: var(--muted); }
.mpoints { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mpoints > div { background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.mpoints .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
.mpoints b { font-weight: 400; font-size: 14px; letter-spacing: 0.08em; }
.mpoints p { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--body); }
@media (max-width: 900px) {
  .mphases { grid-template-columns: 1fr; }
  .marrow { padding: 10px 0; transform: rotate(90deg); }
}

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gal figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gal figure.wide { grid-column: span 2; grid-row: span 2; }
.gal button { padding: 0; border: 1px solid var(--line); background: #e9eaec; cursor: zoom-in; overflow: hidden; display: block; width: 100%; aspect-ratio: 1800/1070; transition: border-color .25s; flex: 1; }
.gal button:hover { border-color: var(--fg); }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.gal button:hover img { transform: scale(1.04); }
.gal figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
@media (max-width: 760px) { .gal { grid-template-columns: 1fr 1fr; } .gal figure.wide { grid-column: span 2; grid-row: auto; } }

/* ---------- challenges ---------- */
.chal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.chcard { border: 1px solid var(--line); background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s; }
.chcard:hover { border-color: rgba(233,236,239,0.45); }
.chtop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; }
.chtop .n { color: var(--dim); }
.chtop .st { color: var(--fg); text-align: right; }
.chcard h3 { font-size: 17px; letter-spacing: 0.06em; line-height: 1.4; }
.chcard p { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--body); text-wrap: pretty; }
.chhow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.chcard ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.chcard li { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--body-2); padding-left: 18px; position: relative; }
.chcard li::before { content: '→'; position: absolute; left: 0; color: var(--muted); }

/* ---------- funding tracker ---------- */
.ftotal { border: 1px solid rgba(233,236,239,0.3); background: var(--panel); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.fnums { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.fnums > div { display: flex; flex-direction: column; gap: 8px; }
.fnums .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--muted); }
.fnums b { font-weight: 400; font-size: clamp(32px, 5vw, 60px); line-height: 1; letter-spacing: 0.02em; }
.fnums .of b { color: #5d646b; }
.fnums .pc { margin-left: auto; }
.fnums .pc b { font-size: clamp(22px, 3vw, 34px); color: var(--muted-2); }
.fbar { position: relative; height: 12px; background: rgba(233,236,239,0.08); border: 1px solid var(--line); display: flex; overflow: visible; }
.fbar .r { background: var(--fg); height: 100%; transition: width 1.2s cubic-bezier(.16,1,.3,1); }
.fbar .p { height: 100%; background: repeating-linear-gradient(-45deg, rgba(233,236,239,0.45) 0 4px, transparent 4px 8px); }
.fbar i { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--white); box-shadow: 0 0 0 2px var(--bg); }
.flegend { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.flegend span { display: inline-flex; align-items: center; gap: 8px; }
.flegend i { width: 14px; height: 8px; display: inline-block; border: 1px solid var(--line); }
.flegend i.r { background: var(--fg); }
.flegend i.p { background: repeating-linear-gradient(-45deg, rgba(233,236,239,0.6) 0 3px, transparent 3px 6px); }
.fstages { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.fstage { border: 1px solid var(--line); background: var(--panel); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.fsn { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: 0.06em; }
.fsv b { font-weight: 400; font-size: 22px; }
.fsv span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-left: 6px; }
.fmin { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.fmin i { width: 2px; height: 12px; background: var(--white); display: inline-block; }
.fstage p { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--body); }
.fsources { margin-top: 16px; border: 1px solid var(--line); padding: 20px 24px; display: flex; flex-direction: column; }
.fsources .mk { margin-bottom: 8px; }
.fsrc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(233,236,239,0.08); font-family: var(--mono); font-size: 13px; }
.fsrc:last-child { border-bottom: none; }
.fsrc .sg { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; }
.fsrc b { font-weight: 400; text-align: right; min-width: 90px; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; padding: 5px 8px; border: 1px solid rgba(233,236,239,0.3); color: var(--muted-2); white-space: nowrap; }
.chip.committed, .chip.received { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.applied { border-style: dashed; }
@media (max-width: 640px) {
  .ftotal, .fstage { padding: 22px; }
  .fnums { gap: 24px; }
  .fnums .pc { margin-left: 0; }
  .fsrc { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .fsrc .sg { grid-column: 1; }
}

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.member { border: 1px solid var(--line); background: var(--panel); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.mtop { display: flex; align-items: center; gap: 18px; }
.av { width: 64px; height: 64px; flex: none; border-radius: 50%; border: 1px solid rgba(233,236,239,0.35); display: flex; align-items: center; justify-content: center; font-size: 24px; object-fit: cover; background: var(--bg); }
.member .nm { font-size: 20px; letter-spacing: 0.08em; }
.member .rl { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); line-height: 1.5; }
.member p { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--body); text-wrap: pretty; }

/* ---------- footer, lightbox, reveal ---------- */
footer { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 56px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; }
footer img { height: 40px; display: block; }
footer span { color: var(--dim); }
footer a { color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5,6,7,0.94); display: flex; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; border: none; width: 100%; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; background: #0b0c0e; }
.lightbox span { position: absolute; top: 24px; right: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted-2); }
.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; color: var(--muted); z-index: 0; }

@media (max-width: 640px) {
  .wrap { padding: 72px 16px; }
  .nav-in, .hero-in, .hero-foot, .merch-in, footer { padding-left: 16px; padding-right: 16px; }
  .pbody { padding: 20px; }
  .phase { padding: 22px; }
  .stats { gap: 28px; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,6,7,0.55) 0%, rgba(5,6,7,0.8) 100%); }
  .ptab { padding: 16px 12px; }
  .ptab span:last-child { font-size: 9.5px; letter-spacing: 0; overflow-wrap: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- scroll-driven motion (driven from site.js; only with html.motion) ---------- */
html, body { overflow-x: clip; }
.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--fg); transform-origin: 0 50%; scale: 0 1; z-index: 40; pointer-events: none; }
.ghost { position: absolute; top: 20px; left: -1vw; z-index: -1; pointer-events: none; white-space: nowrap; font-family: var(--display); font-size: clamp(110px, 21vw, 330px); line-height: 1; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1px rgba(233,236,239,0.075); user-select: none; }
.head .rule { transform-origin: 0 50%; }
.motion .fbar .r, .motion .tl .fill { transition: none; }
.motion .post .pic img, .motion .fam .pic img, .motion .ig-tile img, .motion .thumb img { scale: 1.2; }
.motion .merch-l .big { transform-origin: 0 50%; }

@keyframes hiIn { from { opacity: 0; translate: 0 60px; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: none; } }
.motion .hero [data-hi] { animation: hiIn 1.3s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }

/* gallery: pinned, horizontally scrolling track on wide screens */
.gal-pin { position: relative; }
.gal figcaption span { color: var(--dim); margin-right: 10px; }
@media (min-width: 900px) {
  #gallery { max-width: none; padding-left: 0; padding-right: 0; }
  .gal-sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 max(28px, calc((100vw - 1224px) / 2)); }
  .gal-sticky .head { margin-bottom: 28px; }
  .gal { display: flex; gap: 20px; width: max-content; will-change: translate; }
  .gal figure { width: min(52vw, 700px); }
  .gal figure.wide { width: min(66vw, 900px); }
  .gal button { max-height: 62vh; }
}

/* ---------- tabs ---------- */
[data-off] { display: none !important; }
.mphase.solo { margin-top: -8px; }
.mphase.solo p { font-size: 14px; max-width: 900px; }

/* ---------- sponsor banners ---------- */
.sbanners { display: flex; flex-direction: column; gap: 16px; }
.sbanner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 36px 40px; border: 1px solid rgba(233,236,239,0.3); background: linear-gradient(90deg, rgba(233,236,239,0.06), var(--panel) 45%); transition: border-color .3s; }
.sbanner:hover { border-color: var(--fg); }
.sb-id { display: flex; flex-direction: column; gap: 14px; }
.sb-id img { max-width: 220px; max-height: 64px; object-fit: contain; object-position: left; }
.sb-name { font-size: clamp(24px, 3vw, 38px); letter-spacing: 0.08em; line-height: 1.1; white-space: nowrap; }
.sbanner p { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: var(--body-2); text-wrap: pretty; }
.sbanners + .slots { margin-top: 16px; }
@media (max-width: 860px) { .sbanner { grid-template-columns: 1fr; gap: 18px; padding: 26px; } .sbanner .btn { justify-self: start; } }

/* budget: targets only */
.fsv span, .fask span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin-right: 10px; }
.fask { display: flex; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fask b { font-weight: 400; font-size: 18px; color: var(--fg); }

/* ---------- software design ---------- */
.pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 32px; }
.pc { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); animation: pcPulse 6s infinite; animation-delay: calc(var(--i) * 0.6s); }
.pa { color: var(--muted); }
@keyframes pcPulse { 0%, 12%, 100% { border-color: var(--line); color: var(--fg); } 4% { border-color: var(--white); color: var(--white); box-shadow: 0 0 18px rgba(233,236,239,0.25); } }
.swnote { margin: 22px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.7; }
.swblock { margin-top: 88px; }
.swh { font-size: clamp(22px, 3vw, 36px); letter-spacing: 0.04em; margin: 0 0 14px; line-height: 1.2; }
.swlead { font-size: clamp(14px, 1.6vw, 18px); letter-spacing: 0.06em; color: var(--body-2); margin: 0 0 26px; }
.smap { border: 1px solid rgba(233,236,239,0.3); background: #07080a; }
.smap-top { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted-2); flex-wrap: wrap; }
.smap-top .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5bd28a; margin-right: 8px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.smap-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.smap-svg { position: relative; padding: 10px; }
.smap-svg svg { width: 100%; height: auto; display: block; }
.smap-tip { position: absolute; right: 18px; bottom: 54px; background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; padding: 8px 10px; }
.smap-side { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.smap-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--muted); margin-top: 4px; }
.feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.feed { aspect-ratio: 16/9; border: 1px solid var(--line); background: repeating-linear-gradient(-45deg, rgba(233,236,239,0.05) 0 6px, transparent 6px 12px); display: flex; align-items: flex-end; gap: 6px; padding: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; }
.feed i { width: 7px; height: 7px; display: inline-block; margin-bottom: 3px; }
.feed.on { border-color: var(--fg); }
.find { border: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.find b { font-weight: 400; font-size: 13px; letter-spacing: 0.04em; }
.find span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.find.on { border-color: var(--fg); }
.pf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pfq { border-top: 1px solid rgba(233,236,239,0.25); padding: 18px 0 20px; display: flex; flex-direction: column; gap: 8px; }
.pfq span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.pfq b { font-weight: 400; font-size: 20px; letter-spacing: 0.04em; }
.pfq p { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--body-2); line-height: 1.6; }
.pf-panel { border: 1px solid rgba(233,236,239,0.35); background: var(--panel); padding: 22px 24px; }
.pf-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pf-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pf-row i { font-style: normal; width: 28px; height: 28px; flex: none; border: 1px solid #5bd28a; color: #5bd28a; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.pf-row span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 6px; }
.pf-row b { font-weight: 400; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.02em; }
.pf-row em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: #5bd28a; margin-left: 8px; vertical-align: middle; }
.pf-go { margin-top: 20px; background: var(--fg); color: var(--bg); text-align: center; padding: 14px; font-size: 15px; letter-spacing: 0.22em; }
.hw { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: 48px; }
@media (max-width: 900px) {
  .smap-body { grid-template-columns: 1fr; }
  .smap-side { border-left: none; border-top: 1px solid var(--line); }
  .smap-tip { position: static; display: inline-block; margin: 8px 0 0; }
  .pf { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pc, .smap-top .live { animation: none; } }
