:root {
  --fire-1: #ff3d17;
  --fire-2: #ff7a1a;
  --fire-3: #ffb020;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #fbfbfd;
  --paper-2: #f5f5f7;
  --black: #000000;
  --near: #0a0a0c;
  --card: #141416;
  --line-d: rgba(255,255,255,0.10);
  --line-l: rgba(0,0,0,0.10);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", Arial, sans-serif;
  --ease: cubic-bezier(.28,.11,.32,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { font-family: var(--font); color: #f5f5f7; background: var(--black); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--fire-1); color: #fff; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1,h2,h3,h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; }
.flame { background: linear-gradient(96deg, var(--fire-1), var(--fire-2) 55%, var(--fire-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.overline { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fire-2); }

/* ---------- Nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 52px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  background: rgba(10,10,12,0.6); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06); color: #f5f5f7;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.brand .mark { width: 24px; height: 24px; flex: none; object-fit: contain; }
.brand .num { color: var(--fire-2); font-size: 13px; font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #d1d1d6; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-d); transition: background .25s, color .25s; }
.back:hover { background: rgba(255,255,255,0.08); color: #fff; }
.back svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.sub-hero { position: relative; padding: 150px 0 90px; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 20% 0%, #1a0d06 0%, #000 62%); }
.sub-hero .ember { position: absolute; width: 620px; height: 380px; top: -80px; left: -80px; background: radial-gradient(ellipse at center, rgba(255,90,26,0.26), transparent 62%); filter: blur(30px); z-index: 0; pointer-events: none; }
.sub-hero .wrap { position: relative; z-index: 2; }
.crumb { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); margin-bottom: 26px; }
.crumb b { color: #f5f5f7; font-weight: 600; }
.crumb .idx { background: linear-gradient(120deg,var(--fire-1),var(--fire-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.sub-hero .overline { display: block; margin-bottom: 18px; }
.sub-hero h1 { font-size: clamp(46px, 9vw, 92px); font-weight: 600; letter-spacing: -0.04em; margin-bottom: 24px; }
.sub-hero .lead { font-size: clamp(19px, 2.6vw, 26px); font-weight: 500; letter-spacing: -0.02em; color: #f5f5f7; max-width: 720px; }
.sub-hero .lead .muted { color: var(--ink-3); }
.hero-ico { display: none; }

/* ---------- Sections ---------- */
.band { padding: clamp(80px, 11vw, 130px) 0; }
.band.light { background: var(--paper-2); color: var(--ink); }
.band.near { background: var(--near); }
.sec-tag { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fire-2); margin-bottom: 18px; display: block; }
.sec-h { font-size: clamp(28px, 4.6vw, 46px); font-weight: 600; letter-spacing: -0.03em; max-width: 760px; margin-bottom: 20px; }
.sec-h .muted { color: #b0b0b6; }
.band.light .sec-h .muted { color: #adadb3; }
.lead-p { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.band:not(.light) .lead-p { color: var(--ink-3); }

/* responsibilities */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 60px; background: var(--line-l); border: 1px solid var(--line-l); border-radius: 20px; overflow: hidden; }
.band:not(.light) .roles { background: var(--line-d); border-color: var(--line-d); }
.role { background: var(--paper-2); padding: 34px 32px; }
.band.light .role { background: #fff; }
.band:not(.light) .role { background: var(--near); }
.role .rn { font-size: 14px; font-weight: 700; color: var(--fire-2); margin-bottom: 14px; }
.role h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.role p { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.band:not(.light) .role p { color: var(--ink-3); }

/* tools */
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.tools span { font-size: 14px; font-weight: 500; color: #e5e5ea; padding: 9px 17px; border: 1px solid var(--line-d); border-radius: 999px; }
.band.light .tools span { color: var(--ink); border-color: var(--line-l); }

/* stats */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 56px; }
.mini-stats .n { font-size: clamp(34px, 4.6vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.mini-stats .l { font-size: 14.5px; color: var(--ink-2); margin-top: 10px; font-weight: 500; }
.band:not(.light) .mini-stats .l { color: var(--ink-3); }

/* other subteams */
.others-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.others-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.others { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.other {
  background: linear-gradient(165deg, #17171b, #0d0d0f 80%); border: 1px solid var(--line-d);
  border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 150px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.other:hover { border-color: rgba(255,122,26,0.55); transform: translateY(-3px); }
.other .oi { display: none; }
.other .on { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.other h4 { font-size: 18px; font-weight: 600; margin-top: auto; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(32px, 5.5vw, 60px); font-weight: 600; letter-spacing: -0.035em; margin-bottom: 16px; }
.cta p { font-size: clamp(17px, 2.3vw, 20px); color: var(--ink-3); max-width: 480px; margin: 0 auto 32px; }
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 500; padding: 13px 28px; border-radius: 999px; transition: transform .25s var(--ease), filter .25s; cursor: pointer; border: 0; }
.btn-primary { background: linear-gradient(120deg,var(--fire-1),var(--fire-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

/* footer */
footer { background: var(--paper-2); color: var(--ink-2); padding: 50px 0 40px; font-size: 13px; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.foot-row .brand { color: var(--ink); }
.foot-row .brand .num { color: var(--fire-2); }

/* photo slots */
.photo { position: relative; display: grid; place-items: center; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg,#17171b,#0e0e10); border: 1px dashed rgba(255,122,26,0.42); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.photo.filled { border-color: transparent; }
.photo figcaption { position: relative; z-index: 1; text-align: center; padding: 28px 24px; max-width: 460px; }
.photo .ph-ico { display: none; }
.photo .ph-name { font-size: 13px; font-weight: 600; color: var(--fire-2); letter-spacing: .02em; }
.photo .ph-desc { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.band.light .photo { background: #ececef; border-color: rgba(255,122,26,0.5); }
.band.light .photo .ph-desc { color: var(--ink-2); }
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-photo { aspect-ratio: 3 / 2; }
.ratio-tall { aspect-ratio: 3 / 4; }
.feature-photo { margin-top: clamp(48px, 7vw, 72px); }
.feature-portrait { max-width: 540px; margin: clamp(48px,7vw,72px) auto 0; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.feature-portrait img { width: 100%; height: auto; display: block; }
.full-photo { margin-top: clamp(48px,7vw,72px); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.16); }
.full-photo img { width: 100%; height: auto; display: block; }

/* code screenshot */
.code-shot { margin-top: clamp(48px,7vw,72px); border-radius: 14px; overflow: hidden; border: 1px solid var(--line-d); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.code-shot img { width: 100%; height: auto; display: block; }

/* sponsors list */
.sponsors { margin-top: clamp(48px,7vw,76px); }
.sponsor-list { list-style: none; margin-top: 26px; border-top: 1px solid var(--line-l); }
.sponsor-list li { font-size: clamp(24px,3.4vw,34px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); padding: 24px 4px; border-bottom: 1px solid var(--line-l); }

/* financials / business-plan docs */
.fin-docs-wrap { margin-top: clamp(48px,7vw,76px); }
.fin-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.fin-docs figure { margin: 0; border: 1px solid var(--line-l); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 34px rgba(0,0,0,0.08); }
.fin-docs img { width: 100%; height: auto; display: block; }
@media (max-width: 620px) { .fin-docs { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.gallery .photo { border-radius: 16px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: opacity, transform; }

/* photo hover motion */
.photo img, .full-photo img, .feature-portrait img, .code-shot img, .fin-docs img { transition: transform .8s var(--ease); }
.photo:hover img, .full-photo:hover img, .feature-portrait:hover img, .code-shot:hover img, .fin-docs figure:hover img { transform: scale(1.05); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .roles { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .others { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
