@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --accent { syntax: "<color>"; inherits: true; initial-value: #f4efe6; }

:root {
  --ink: #0b0a09;
  --ink-2: #14120f;
  --ink-3: #1e1b17;
  --line: rgba(244, 239, 230, .12);
  --bone: #f4efe6;
  --mute: #a39c90;
  --ember: #ff5a1f;
  --ember-2: #ffb23e;
  --sprout: #b6ff3c;
  --sprout-2: #3ddc84;
  --danger: #ff8a6a;
  --accent: var(--bone);
  --bar: calc(56px + env(safe-area-inset-top));
  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: max(16px, env(safe-area-inset-left));
  --padr: max(16px, env(safe-area-inset-right));
  --badge-w: min(380px, calc(100vw - 32px));
}

body[data-track="builder"] { --accent: var(--ember); }
body[data-track="grower"] { --accent: var(--sprout); }
[data-track="builder"] { --accent: var(--ember); --accent-2: var(--ember-2); }
[data-track="grower"] { --accent: var(--sprout); --accent-2: var(--sprout-2); }

* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 16px/1.5 var(--ui); padding-top: var(--bar);
  transition: --accent .45s ease;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent, var(--bone)); outline-offset: 3px; }
::selection { background: var(--bone); color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--padr); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: .95; }
.mono, .label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.label { color: var(--mute); }

/* top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar);
  padding: env(safe-area-inset-top) var(--padr) 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font: 600 12px/1 var(--mono); letter-spacing: .14em; min-height: 44px; }
.split-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(90deg, var(--ember) 50%, var(--sprout) 50%); }
.pill {
  min-height: 40px; padding: 0 18px; border-radius: 999px; background: transparent;
  border: 1px solid rgba(244, 239, 230, .35); font: 500 14px/1 var(--ui);
  transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1 var(--ui); text-decoration: none;
  transition: transform .15s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-bone { background: var(--bone); color: var(--ink); }
.btn-bone:hover { background: #fff; }
.btn-line { background: transparent; border-color: rgba(244, 239, 230, .3); color: var(--bone); }
.btn-line:hover { border-color: rgba(244, 239, 230, .6); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* hero */
.hero { position: relative; min-height: calc(100svh - var(--bar)); display: flex; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.on { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--ink) 0, rgba(11, 10, 9, 0) 28%),
    linear-gradient(to bottom, rgba(11, 10, 9, .55) 0, rgba(11, 10, 9, 0) 35%);
}
.hero-inner { padding-top: clamp(40px, 9svh, 110px); padding-bottom: 40px; }
.hero-title { font-size: clamp(56px, 19vw, 140px); font-weight: 800; line-height: .92; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .rise { display: inline-block; }
.hero-sub { margin-top: 22px; max-width: 28ch; font-size: clamp(18px, 4.6vw, 24px); line-height: 1.3; color: var(--bone); text-shadow: 0 1px 18px rgba(0, 0, 0, .7); }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--bone); text-decoration: underline; text-decoration-color: rgba(244, 239, 230, .4); text-underline-offset: 5px; font-size: 16px; text-shadow: 0 1px 12px #000; }
.hero-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-link:hover { text-decoration-color: var(--bone); }
.hero-counts { margin-top: 20px; display: inline-flex; flex-wrap: wrap; gap: 8px 24px; padding: 10px 16px; border-radius: 999px; background: rgba(11, 10, 9, .78); color: var(--bone); font-size: 13px; }
.hero-counts b { font-weight: 600; }
.count-item { display: inline-flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-builder { background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.dot-grower { background: var(--sprout); box-shadow: 0 0 10px var(--sprout); }

@media (min-width: 900px) {
  .hero-title { font-size: clamp(100px, 10.5vw, 150px); }
  .hero-inner { padding-top: clamp(60px, 12svh, 140px); }
  .hero-media img, .hero-media video { object-position: 50% 85%; }
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.go) .rise { opacity: 0; }
  .hero-title .rise { transform: translateY(105%); }
  .hero-sub.rise, .hero-cta.rise, .hero-counts.rise { transform: translateY(16px); }
  body.go .rise { opacity: 1; transform: none; transition: transform .7s cubic-bezier(.2, .8, .2, 1) var(--d), opacity .5s ease var(--d); }
  .reveal { opacity: 0; transform: translateY(14px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease var(--rd, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1) var(--rd, 0ms); }
}

/* sides */
.sides { display: grid; gap: 14px; padding-top: 24px; padding-bottom: 24px; }
.side { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.side-media { position: relative; height: 150px; overflow: hidden; background: #000; }
.side-media img, .side-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.side-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.side-media video.on { opacity: 1; }
.side-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink-2) 0, rgba(20, 18, 15, 0) 70%); }
.side-num { position: absolute; z-index: 1; right: 20px; bottom: 4px; font-size: 96px; line-height: .85; color: var(--accent); }
.side-body { padding: 0 20px 20px; }
.side-title { font-size: clamp(44px, 13vw, 64px); color: var(--accent); }
.side-desc { margin-top: 6px; font-size: 17px; color: var(--bone); }
.side-lists { margin-top: 16px; display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (min-width: 900px) {
  .sides { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
  .side-media { height: auto; aspect-ratio: 16 / 9; }
  .side-num { left: 20px; right: auto; bottom: 6px; font-size: 150px; }
  .side-body { padding: 4px 28px 30px; }
  .side-title { font-size: 72px; }
  .side-lists { gap: 20px; margin-top: 22px; }
  button.chip { min-height: 32px; }
}

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bone); white-space: nowrap;
}
button.chip { position: relative; min-height: 36px; padding: 0 14px; transition: border-color .2s, background .2s, color .2s; }
button.chip::after { content: ""; position: absolute; inset: -4px -2px; }
button.chip:hover { border-color: var(--accent); }
button.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.chip em { font-style: normal; color: var(--mute); }
button.chip[aria-pressed="true"] em { color: rgba(11, 10, 9, .7); }
.chip[aria-disabled="true"] { opacity: .35; }

/* avatars */
.ph { object-fit: cover; background: var(--ink-3); }
.av {
  display: grid; place-items: center; overflow: hidden;
  font: 700 22px/1 var(--display); letter-spacing: -.02em; color: var(--bone);
  background: radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--accent) 34%, #0b0a09), #0b0a09 72%);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
}

/* matches */
.matches { padding-top: 24px; padding-bottom: 8px; }
.m-block + .m-block { margin-top: 28px; }
.m-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.m-title { font-size: clamp(28px, 7vw, 40px); }
.strip { display: flex; gap: 12px; margin: 14px calc(var(--padr) * -1) 0 calc(var(--pad) * -1); padding: 0 20px 6px var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-left: var(--pad); }
.strip::-webkit-scrollbar { display: none; }
.mcard { flex: 0 0 min(280px, 78vw); scroll-snap-align: start; text-align: left; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 14px; background: var(--ink-2); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 12px; }
.mcard .ph { width: 48px; height: 48px; border-radius: 12px; font-size: 19px; }
.mcard .nm { display: block; font: 700 18px/1.1 var(--display); letter-spacing: -.02em; }
.mcard .why { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--mute); }

/* directory */
.directory { padding-top: 32px; }
.filters { position: sticky; top: var(--bar); z-index: 30; background: var(--ink); border-bottom: 1px solid var(--line); }
.filters-inner { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { position: relative; flex: 1 1 0; min-width: 0; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--mute); stroke-width: 1.8; stroke-linecap: round; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 42px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; font-size: 16px; }
.search input::placeholder { color: #8a8478; }
.search input:focus { outline: none; border-color: var(--accent); }
.filters-btn, .star-toggle { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.filters-btn svg, .star-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.filters-btn[aria-expanded="true"], .filters-btn.active { border-color: var(--bone); }
.star-toggle[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.star-toggle[aria-pressed="true"] svg { fill: currentColor; }
.seg { display: flex; padding: 3px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; }
.seg button { flex: 1; min-height: 38px; padding: 0 14px; border: 0; background: transparent; border-radius: 9px; font: 500 14px/1 var(--ui); color: var(--mute); transition: background .2s, color .2s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
#trackSeg { flex: 1 1 100%; }
.seg-mini { flex: 1 1 100%; }
.seg-mini button { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; min-height: 36px; padding: 0 10px; }
.seg-mini button[aria-pressed="true"] { background: var(--ink-3); color: var(--bone); box-shadow: inset 0 0 0 1px var(--accent); }
.fpanel { display: none; flex: 1 1 100%; gap: 8px; }
.fpanel.open { display: grid; padding-top: 2px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 20px 2px 0; margin-right: calc(var(--padr) * -1); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chip { flex: none; }
.filters-btn { min-width: 0; }
@media (min-width: 900px) {
  .filters-btn { display: none; }
  .fpanel, .fpanel.open { display: contents; }
  #trackSeg { flex: 0 0 320px; }
  .seg-mini { flex: 0 0 auto; }
  .star-toggle { order: 2; }
  .seg-mini { order: 3; }
  .chip-row { order: 4; flex: 1 1 100%; flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
  .chip-row .chip { min-height: 32px; }
}
.dir-meta { margin: 18px 0 12px; color: var(--mute); }
.grid { display: grid; gap: 10px; padding-bottom: 48px; }

.pcard {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; width: 100%;
  padding: 14px 14px 14px 16px; text-align: left; background: var(--ink-2);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.pcard:hover { background: var(--ink-3); border-color: rgba(244, 239, 230, .25); border-left-color: var(--accent); }
.pcard .ph { width: 56px; height: 56px; border-radius: 12px; }
.pcard > span { min-width: 0; }
.pcard .row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pcard .nm, .pcard .hl, .pcard .skills { display: block; }
.pcard .nm { font: 700 21px/1.05 var(--display); letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .tag { flex: none; color: var(--accent); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pcard .hl { margin-top: 4px; font-size: 14px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .skills { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--bone); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .proj, .mcard .proj { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .proj::before, .mcard .proj::before { content: "Project"; margin-right: 8px; color: var(--mute); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pcard .starred { position: absolute; right: 12px; bottom: 12px; width: 16px; height: 16px; fill: var(--bone); }
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pcard { grid-template-columns: 1fr; gap: 14px; padding: 18px 18px 18px 20px; border-left-width: 1px; border-top: 3px solid var(--accent); }
  .pcard:hover { border-left-color: rgba(244, 239, 230, .25); }
  .pcard .ph { width: 72px; height: 72px; border-radius: 16px; font-size: 28px; }
  .pcard .nm { font-size: 26px; white-space: normal; }
  .pcard .hl { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.8em; }
  .pcard .row1 { flex-direction: column-reverse; gap: 8px; }
  .pcard .skills { white-space: normal; }
}
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.empty { padding: 56px 0 72px; max-width: 520px; }
.empty .display { font-size: clamp(40px, 10vw, 72px); }
.empty p { margin-top: 14px; color: var(--mute); font-size: 17px; }
.empty .label { margin-top: 0; font-size: 12px; }
.empty .btn { margin-top: 24px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); background: var(--ink); }
.foot-inner { display: grid; gap: 28px; }
.foot-title { margin-top: 10px; font-size: clamp(40px, 11vw, 80px); }
.foot-line { margin-top: 18px; color: var(--bone); }
.foot-note { margin-top: 10px; color: var(--mute); font-size: 14px; max-width: 40ch; }
.qr-tile { width: 192px; padding: 16px; background: var(--bone); border-radius: 12px; }
.qr-tile img { width: 100%; height: auto; }
@media (min-width: 700px) { .foot-inner { grid-template-columns: 1fr auto; align-items: end; } }

/* toast */
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 90; transform: translate(-50%, -20px); padding: 12px 18px; background: var(--bone); color: var(--ink); border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(11, 10, 9, .985); display: flex; overflow: hidden; }
.overlay-join { z-index: 70; background: var(--ink); }
.overlay-gate { z-index: 80; background: var(--ink); }
.overlay-sheet { flex-direction: column; align-items: center; overflow-y: auto; overscroll-behavior: contain; }
.sheet-scroll { width: 100%; margin: auto 0; padding: 0 var(--padr) calc(32px + env(safe-area-inset-bottom)) var(--pad); }
.sheet-in { width: var(--badge-w); margin: 0 auto; }
.sheet-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; padding: max(12px, env(safe-area-inset-top)) 0 10px; pointer-events: none; }
.close { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(244, 239, 230, .25); border-radius: 999px; background: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* badge */
.stage { perspective: 1000px; }
@media (prefers-reduced-motion: no-preference) {
  .badge-wrap { animation: settle .75s cubic-bezier(.2, 1.15, .3, 1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(56px) scale(.96); } to { opacity: 1; transform: none; } }
}
.badge {
  position: relative; width: 100%; min-height: calc(var(--badge-w) * 4 / 3); padding: 40px 22px 24px; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; isolation: isolate;
  background: #0b0a09 center / cover no-repeat; border: 1px solid rgba(244, 239, 230, .3);
  box-shadow: 0 0 0 1px #0b0a09, 0 30px 70px rgba(0, 0, 0, .65), 0 0 60px -24px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .15s ease-out; will-change: transform;
}
.badge[data-track="builder"] { background-image: url(/media/card-builder.jpg); }
.badge[data-track="grower"] { background-image: url(/media/card-grower.jpg); }
.badge::before { content: ""; position: absolute; inset: 6px; border-radius: 17px; border: 1px solid rgba(244, 239, 230, .09); pointer-events: none; z-index: 1; }
.hole { position: absolute; top: 14px; left: 50%; width: 24px; height: 8px; margin-left: -12px; border-radius: 999px; background: #000; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .95), 0 1px 0 rgba(244, 239, 230, .22); z-index: 1; }
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.streak { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 42%, rgba(255, 255, 255, .02) 50%, transparent 58%); }
.b-top { position: relative; z-index: 2; display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.b-top span:first-child { color: #c9c2b5; }
.b-top span:last-child { color: var(--accent); }
.b-id { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 20px; }
.b-photo { width: 112px; height: 112px; border-radius: 24px; border: 1px solid var(--accent); padding: 3px; background-clip: content-box; font-size: 44px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
img.b-photo { object-fit: cover; background-color: #0b0a09; }
.b-serial { color: #c9c2b5; font: 500 12px/1 var(--mono); letter-spacing: .12em; }
.b-name { position: relative; z-index: 2; margin-top: 18px; font-size: clamp(34px, 10.5vw, 46px); font-weight: 700; overflow-wrap: anywhere; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.b-name.long { font-size: clamp(28px, 8.4vw, 34px); }
.b-headline { position: relative; z-index: 2; margin-top: 10px; color: #cfc8bb; font-size: 15px; line-height: 1.35; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); overflow-wrap: anywhere; }
.b-project { position: relative; z-index: 2; margin-top: 16px; }
.b-project-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.b-project .label { color: #cfc8bb; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.stage-tag { padding: 3px 7px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); background: rgba(11, 10, 9, .6); font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.b-project-name { margin-top: 6px; font-size: 21px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.b-project-about { margin-top: 4px; color: #cfc8bb; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.b-ask { position: relative; z-index: 2; margin-top: 20px; }
.b-ask p:last-child { margin-top: 6px; font-size: 16px; line-height: 1.35; color: var(--bone); overflow-wrap: anywhere; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.b-ask .label, .b-groups .label { color: #cfc8bb; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.b-groups { position: relative; z-index: 2; margin-top: auto; padding-top: 22px; display: grid; gap: 14px; }
.b-groups .chips { margin-top: 8px; gap: 6px; }
.b-groups .chip { background: rgba(11, 10, 9, .72); min-height: 28px; }
.b-groups .chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity .3s; border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .5), transparent 42%),
    conic-gradient(from 200deg at var(--mx, 50%) var(--my, 30%), rgba(255, 90, 31, .55), rgba(255, 178, 62, .4), rgba(182, 255, 60, .5), rgba(61, 220, 132, .4), rgba(255, 90, 31, .55)); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .badge:hover .sheen { opacity: .2; }
}

/* actions */
.acts { margin-top: 14px; padding: 0 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; }
.acts > * + *, .acts > .act + .act { border-top: 1px solid var(--line); }
.act { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 16px; width: 100%; min-height: 52px; padding: 0; background: none; border: 0; color: var(--bone); text-align: left; text-decoration: none; font: 500 16px/1 var(--ui); }
.act svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.act[aria-pressed="true"] svg.star { fill: var(--accent); }
.act-link > span { min-width: 0; padding: 8px 0; }
.act-sub { display: block; margin-top: 4px; color: var(--mute); font: 400 13px/1.2 var(--mono); overflow-wrap: anywhere; }
.act-danger { color: var(--danger); }
.act-danger svg { stroke: var(--danger); }
.act-pair { display: grid; grid-template-columns: 1fr 1fr; }
.act-pair .act + .act { border-left: 1px solid var(--line); padding-left: 16px; }
.act-num { padding: 0 0 14px; color: var(--bone); font: 500 14px/1 var(--mono); letter-spacing: .06em; }
.my-name { margin: 4px 0 18px; text-align: center; }
.my-name .display { font-size: 40px; overflow-wrap: anywhere; }
.my-name .label { margin-top: 10px; color: var(--accent); }
.my-qr { padding: 28px 20px 20px; background: var(--bone); border-radius: 18px; text-align: center; color: var(--ink); }
.my-qr img { width: min(100%, 280px); aspect-ratio: 1; margin: 0 auto; height: auto; }
.my-qr .mono { margin-top: 14px; font-weight: 600; }
.view-seg { margin-bottom: 14px; }
.hint { margin-top: 10px; color: var(--mute); font-size: 14px; }
.confirm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; }
.confirm p { grid-column: 1 / -1; color: var(--bone); font-size: 15px; }
.copy-box { display: flex; gap: 8px; margin-top: 12px; }
.copy-box input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; background: var(--ink); color: var(--bone); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.copy-box .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* join */
.join-scroll { width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--padr) 0 var(--pad); }
.join-in { max-width: 560px; margin: 0 auto; padding-bottom: 16px; }
.join-top { display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 0 8px; min-height: 56px; }
.join-top .close { margin-left: auto; }
.join-h { font-size: clamp(36px, 10vw, 56px); margin: 10px 0 18px; }
.join-h2 { font-size: 26px; margin: 30px 0 6px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: block; height: 140px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; z-index: 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .2s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 10, 9, .92) 5%, rgba(11, 10, 9, 0) 65%); }
.tile .t-body { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; display: block; }
.tile .t-name { display: block; font: 700 26px/1 var(--display); letter-spacing: -.03em; color: var(--accent); }
.tile .t-sub { display: block; margin-top: 4px; font-size: 14px; color: var(--bone); }
.tile .t-sel { position: absolute; z-index: 1; top: 10px; right: 10px; display: none; align-items: center; gap: 6px; padding: 5px 9px 5px 6px; background: var(--accent); color: var(--ink); border-radius: 999px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tile .t-sel svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tile:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 36px -8px var(--accent); }
.tile:has(input:checked) img { opacity: 1; }
.tile:has(input:checked) .t-sel { display: inline-flex; }
.tile:has(input:focus-visible) { outline: 2px solid var(--bone); outline-offset: 3px; }
.field { display: block; margin-top: 16px; }
.field > .label { display: block; margin-bottom: 8px; }
.field input[type="text"], .field input[type="tel"], .field input:not([type]), .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; font-size: 16px;
}
.field textarea { font: inherit; color: var(--bone); padding: 14px 16px; min-height: 84px; resize: vertical; line-height: 1.4; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bone); }
.field input::placeholder, .field textarea::placeholder { color: #8a8478; }
.field [aria-invalid="true"] { border-color: #ff6a4a; }
.ferr { margin-top: 6px; color: var(--danger); font-size: 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; min-height: 44px; font-size: 14px; color: var(--mute); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--bone); }
.join-bar { position: sticky; bottom: 0; margin: 28px calc(var(--padr) * -1) 0 calc(var(--pad) * -1); padding: 14px var(--padr) calc(14px + env(safe-area-inset-bottom)) var(--pad); background: var(--ink); border-top: 1px solid var(--line); }
.join-bar-in { max-width: 560px; margin: 0 auto; display: grid; gap: 10px; }
.join-bar .btn { width: 100%; }
.summary { color: var(--danger); font-size: 14px; }
.summary:empty { display: none; }
.photo-pick { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.photo-pick .ph { width: 80px; height: 80px; border-radius: 20px; border: 1px solid var(--line); font-size: 30px; }
.pg { margin-top: 24px; }
.pg > .hint { margin-top: 4px; }
.pcount { float: right; }
.seg-stage button { min-height: 44px; }
.cg { margin-top: 24px; }
.cg-head { display: flex; justify-content: space-between; }
.success { margin: 6px 0 28px; }
.success .mono { color: var(--accent); }
.success .display { font-size: clamp(56px, 16vw, 96px); margin-top: 8px; }
.join-badge { width: var(--badge-w); margin: 0 auto 8px; }
.recover { margin-top: 20px; padding: 16px; border: 1px solid var(--ember-2); border-radius: 12px; background: var(--ink-2); }
.recover strong { display: block; font-weight: 600; }
.recover p { margin-top: 6px; font-size: 14px; color: var(--mute); }

/* gate */
.overlay-gate { align-items: center; justify-content: center; padding: 24px var(--padr) 24px var(--pad); isolation: isolate; }
.gate-bg { position: absolute; inset: 0; z-index: -2; }
.gate-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.gate-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 10, 9, .55), rgba(11, 10, 9, .92) 60%); }
.gate-in { width: 100%; max-width: 480px; }
.gate-h { margin: 14px 0 28px; font-size: clamp(44px, 12vw, 76px); font-weight: 800; }
.gate-in form { display: grid; gap: 12px; }
.gate-in input { width: 100%; min-height: 56px; padding: 0 18px; background: rgba(11, 10, 9, .8); border: 1px solid rgba(244, 239, 230, .3); border-radius: 12px; font: 500 20px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.gate-in input:focus { outline: none; border-color: var(--bone); }
.gate-in .btn { width: 100%; }
.gate-err { min-height: 22px; margin-top: 12px; color: var(--danger); font-size: 14px; }

@media (min-width: 700px) {
  .overlay-join { background: rgba(11, 10, 9, .985); align-items: center; justify-content: center; }
  .join-scroll { max-width: 640px; background: var(--ink); border: 1px solid var(--line); border-radius: 22px; max-height: 94svh; height: auto; padding: 0 32px; }
  .join-bar { margin: 28px -32px 0; padding: 14px 32px; }
}
