:root {
  --bg: #f2f6fb;
  --surface: #ffffff;
  --surface-2: #e8f0f9;
  --line: #d3dfec;
  --fg: #0a1a2f;
  --muted: #55687f;
  --accent: #0b7fd4;
  --accent-2: #0aaec4;
  --accent-3: #1a5ed6;
  --accent-soft: rgba(11, 127, 212, .10);
  --on-accent: #ffffff;
  --danger: #c23b3b;
  --danger-soft: rgba(194, 59, 59, .10);
  --ok: #138a5b;
  --band-bg: #071426;
  --band-bg-2: #0b1f3a;
  --band-fg: #eaf4ff;
  --band-muted: #8fa8c6;
  --band-line: rgba(64, 196, 255, .35);
  --root-a: #0b4f9e;
  --root-b: #19a9e6;
  --shadow: 0 1px 2px rgba(10, 26, 47, .06), 0 8px 24px -12px rgba(10, 26, 47, .18);
  --ring: 0 0 0 3px rgba(11, 127, 212, .35);

  --f-display: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --f-body: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --t-xs: .78rem; --t-sm: .88rem; --t-md: 1rem; --t-lg: 1.2rem; --t-xl: 1.55rem; --t-2xl: 2.1rem; --t-3xl: clamp(2rem, 5vw, 3.2rem);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050b15; --surface: #0b1625; --surface-2: #0f1f35; --line: #1a2d47;
    --fg: #e6f0fb; --muted: #8ba0bb; --accent: #27b4ff; --accent-2: #2ee0ee; --accent-3: #2f86ff;
    --accent-soft: rgba(39, 180, 255, .12); --on-accent: #03111f; --danger: #ff6b6b; --danger-soft: rgba(255, 107, 107, .12); --ok: #3ddc97;
    --band-bg: #040a14; --band-bg-2: #0a1a31;
    --root-a: #f4f9ff; --root-b: #29b6ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #050b15; --surface: #0b1625; --surface-2: #0f1f35; --line: #1a2d47;
  --fg: #e6f0fb; --muted: #8ba0bb; --accent: #27b4ff; --accent-2: #2ee0ee; --accent-3: #2f86ff;
  --accent-soft: rgba(39, 180, 255, .12); --on-accent: #03111f; --danger: #ff6b6b; --danger-soft: rgba(255, 107, 107, .12); --ok: #3ddc97;
  --band-bg: #040a14; --band-bg-2: #0a1a31;
  --root-a: #f4f9ff; --root-b: #29b6ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

.img-light { display: inline-block; } .img-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .img-light { display: none; } :root:not([data-theme="light"]) .img-dark { display: inline-block; } }
:root[data-theme="dark"] .img-light { display: none; } :root[data-theme="dark"] .img-dark { display: inline-block; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.7;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band-bg); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.3; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { flex: 1; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--band-bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--band-line); color: var(--band-fg);
}
.nav__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--band-line); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__crc { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .14em; direction: ltr; }
.brand__crc b { color: #29b6ff; font-weight: 700; }
.brand__sub { font-size: .62rem; letter-spacing: .32em; color: var(--band-muted); direction: ltr; text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav__links a { padding: 8px 12px; border-radius: 999px; font-size: var(--t-sm); color: var(--band-muted); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--band-fg); background: rgba(255, 255, 255, .06); }
.nav__links a.is-active { color: var(--band-fg); background: rgba(41, 182, 255, .16); }
.nav__tools { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--band-line); background: transparent; color: var(--band-fg); cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.nav__menu { display: none; }
@media (max-width: 860px) {
  .nav__menu { display: inline-grid; }
  .nav__links {
    position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--band-bg); border-bottom: 1px solid var(--band-line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { border-radius: 10px; padding: 12px 14px; font-size: var(--t-md); }
  .nav__tools { margin-inline-start: auto; }
}

.band {
  position: relative; overflow: hidden; color: var(--band-fg);
  background:
    radial-gradient(ellipse 60% 80% at 75% 40%, rgba(41, 182, 255, .14), transparent 70%),
    linear-gradient(180deg, var(--band-bg), var(--band-bg-2));
  isolation: isolate;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(64, 196, 255, .35) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
}
.band__traces { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.band__traces path { fill: none; stroke: #29b6ff; stroke-width: 1.4; opacity: .55; }
.band__traces circle { fill: none; stroke: #2ee0ee; stroke-width: 1.4; opacity: .8; }

.hero { padding-block: 56px 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); letter-spacing: .26em; color: #2ee0ee; direction: ltr; text-transform: uppercase; font-family: var(--f-display); }
.hero__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: var(--t-3xl); margin-top: 14px; font-weight: 700; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #2ee0ee, #29b6ff 50%, #3a7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--band-muted); max-width: 52ch; margin-top: 14px; font-size: var(--t-lg); line-height: 1.8; }
.hero__art { justify-self: center; width: min(100%, 360px); filter: drop-shadow(0 0 40px rgba(41, 182, 255, .25)); }
.hero__art img { width: 100%; height: auto; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { filter: drop-shadow(0 0 18px rgba(46, 224, 238, .35)); transform: translateY(-4px); } }
.hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 700; color: var(--band-fg); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: var(--t-xs); color: var(--band-muted); letter-spacing: .04em; }
@media (max-width: 760px) {
  .hero { padding-block: 32px 40px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: 190px; }
}

.search { position: relative; margin-top: 26px; max-width: 560px; }
.search input {
  width: 100%; height: 54px; border-radius: 14px; padding-inline: 48px 16px;
  border: 1px solid var(--band-line); background: rgba(255, 255, 255, .06); color: var(--band-fg);
  font-size: var(--t-md); transition: border-color .2s, background .2s;
}
.search input::placeholder { color: var(--band-muted); }
.search input:focus { outline: none; border-color: #29b6ff; background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(41, 182, 255, .18); }
.search > .icon { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--band-muted); }
.search__results {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 20; max-height: 340px; overflow: auto;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
}
.search__item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.search__item:hover, .search__item:focus-visible { background: var(--surface-2); }
.search__item small { color: var(--muted); display: block; font-size: var(--t-xs); }
.search__empty { padding: 14px; color: var(--muted); font-size: var(--t-sm); }

.phead { padding-block: 34px 38px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--t-sm); color: var(--band-muted); }
.crumbs a:hover { color: var(--band-fg); }
.crumbs .sep { opacity: .5; }
.phead h1 { font-size: var(--t-2xl); margin-top: 10px; }
.phead p { color: var(--band-muted); margin-top: 8px; max-width: 64ch; }
.phead__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.code-chip { font-family: var(--f-mono); font-size: var(--t-sm); padding: 3px 10px; border: 1px solid var(--band-line); border-radius: 6px; color: #2ee0ee; direction: ltr; }

.section { padding-block: 48px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section__head h2 { font-size: var(--t-xl); }
.section__head p { color: var(--muted); font-size: var(--t-sm); margin-top: 4px; }
.label { font-size: var(--t-xs); letter-spacing: .12em; color: var(--accent); font-weight: 700; text-transform: uppercase; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
a.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { font-size: var(--t-lg); }
.card p { color: var(--muted); font-size: var(--t-sm); line-height: 1.75; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--t-sm); color: var(--muted); padding-top: 6px; border-top: 1px dashed var(--line); }
.card__foot .go { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.card--pad::after {
  content: ""; position: absolute; top: 18px; inset-inline-end: 18px; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--accent-2); opacity: .55; transition: opacity .25s, transform .25s;
}
a.card--pad:hover::after { opacity: 1; transform: scale(1.25); }

.course-code { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--accent); letter-spacing: .05em; direction: ltr; align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font-weight: 500; transition: all .2s;
}
.tab .count { font-size: var(--t-xs); font-family: var(--f-mono); min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-align: center; }
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tab[aria-selected="true"] .count { background: rgba(255, 255, 255, .22); color: inherit; }
.res-group + .res-group { margin-top: 28px; }
.res-group h3 { font-size: var(--t-md); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-weight: 500; }
.res-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.res-list { display: grid; gap: 10px; }
.res {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, transform .2s;
}
.res:hover { border-color: var(--accent); transform: translateX(-2px); }
.res__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--accent); }
.res__ico.is-yt { color: #e53935; }
.res__ico.is-course { color: var(--accent-2); }
.res__body { min-width: 0; flex: 1; }
.res__title { font-weight: 500; overflow-wrap: anywhere; }
.res__meta { font-size: var(--t-xs); color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.res__host { font-family: var(--f-mono); direction: ltr; }
.res__go { color: var(--accent); flex: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

.empty {
  text-align: center; padding: 44px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty .icon { width: 36px; height: 36px; color: var(--accent); opacity: .7; }

.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: start; }
.prose p { font-size: var(--t-lg); line-height: 1.95; max-width: 65ch; }
.prose h2 { font-size: var(--t-xl); margin: 32px 0 12px; }
.goals { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.goals li { display: flex; gap: 12px; align-items: flex-start; }
.goals li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent-2); margin-top: .65em; flex: none; }
.about__side { display: grid; gap: 16px; }
.committee-list { display: grid; gap: 10px; }
.committee-list .row { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); }
.committee-list .row b { display: block; font-family: var(--f-display); font-weight: 500; }
.committee-list .row span { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.tree-wrap { padding-block: 10px 64px; }
.tree { position: relative; }
.tree__roots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.tree__roots path { fill: none; stroke: url(#rootGrad); stroke-linecap: round; }
.tree__roots .r1 { stroke-width: 5; }
.tree__roots .r2 { stroke-width: 3; }
.tree__roots .r3 { stroke-width: 1.6; opacity: .85; }
.tree__roots .tip { fill: var(--root-b); }
.tree__canopy { display: flex; justify-content: center; margin-bottom: -6px; position: relative; z-index: 1; }
.tree__canopy img { width: min(440px, 86%); height: auto; }
.tier-label { width: max-content; max-width: 100%; margin-inline: auto; padding: 2px 12px; border-radius: 999px; background: var(--bg); text-align: center; font-size: var(--t-xs); letter-spacing: .18em; color: var(--muted); font-weight: 700; margin-block: 14px 12px; position: relative; z-index: 1; }
.tree__founders { display: flex; justify-content: center; gap: clamp(18px, 5vw, 56px); flex-wrap: wrap; position: relative; z-index: 1; }
.tree__ground { height: 2px; margin: 26px auto 0; width: min(560px, 90%); background: linear-gradient(90deg, transparent, var(--root-b), transparent); opacity: .6; position: relative; z-index: 1; }
.tree__committees { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 18px; margin-top: 110px; position: relative; z-index: 1; }
.cmt { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.cmt__name { font-family: var(--f-display); font-size: var(--t-sm); font-weight: 500; text-align: center; color: var(--accent); margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); position: relative; }
.cmt__members { display: flex; flex-direction: column; gap: 10px; margin-top: 44px; width: 100%; padding-inline-start: 26px; }

.node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; max-width: 170px; min-width: 0; }
.node__txt { display: flex; flex-direction: column; align-items: inherit; min-width: 0; }
.node__name { font-family: var(--f-display); font-weight: 500; font-size: var(--t-md); line-height: 1.35; overflow-wrap: anywhere; }
.node__role { font-size: var(--t-xs); color: var(--muted); }
.avatar {
  --size: 76px; display: inline-block; width: var(--size); height: var(--size); border-radius: 50%; flex: none; position: relative;
  padding: 3px; background: conic-gradient(from 200deg, var(--accent-2), var(--accent-3), var(--accent-2));
}
.avatar > * { width: 100%; height: 100%; border-radius: 50%; background: var(--surface-2); object-fit: cover; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--bg); }
.avatar svg { width: 72%; height: 72%; color: var(--accent); margin-top: 18%; }
.avatar--f svg { color: var(--accent-2); }
.node--founder .avatar { --size: 96px; box-shadow: 0 0 0 6px var(--accent-soft), 0 0 30px -4px color-mix(in srgb, var(--accent-2) 60%, transparent); }
.node--head .avatar { --size: 80px; }
.mchip {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 999px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s;
}
.mchip:hover { border-color: var(--accent); }
.mchip .avatar { --size: 36px; padding: 2px; }
.mchip .avatar > * { border-width: 1px; }
.mchip__name { font-size: var(--t-sm); overflow-wrap: anywhere; line-height: 1.4; }
.mchip__role { display: block; font-size: .7rem; color: var(--muted); }
.node, .mchip { animation: grow .6s ease both; }
@keyframes grow { from { opacity: .001; transform: translateY(6px); } }

@media (max-width: 560px) {
  .tree__founders { gap: 10px; flex-wrap: nowrap; }
  .node--founder { max-width: 110px; }
  .node--founder .avatar { --size: 72px; box-shadow: 0 0 0 4px var(--accent-soft); }
  .node--founder .node__name { font-size: var(--t-sm); }
}
@media (max-width: 980px) {
  .tree__committees { grid-template-columns: minmax(0, 1fr); margin-top: 56px; gap: 34px; padding-inline-start: 40px; }
  .cmt { align-items: flex-start; }
  .cmt__members { padding-inline-start: 34px; margin-top: 18px; align-items: flex-start; }
  .cmt__members .mchip { max-width: 100%; }
  .node--head { flex-direction: row; text-align: start; max-width: none; gap: 14px; }
  .node--head .node__txt { display: flex; flex-direction: column; }
}

.footer { background: var(--band-bg); color: var(--band-muted); margin-top: 40px; border-top: 1px solid var(--band-line); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 44px 28px; }
.footer h4 { color: var(--band-fg); font-size: var(--t-sm); margin-bottom: 12px; letter-spacing: .04em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.footer a:hover { color: var(--band-fg); }
.footer__about p { font-size: var(--t-sm); max-width: 44ch; margin-top: 14px; line-height: 1.85; }
.socials { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--band-line); color: var(--band-fg); }
.socials a:hover { background: rgba(255, 255, 255, .07); }
.socials--page { margin-top: 0; }
.socials--page a { width: 42px; height: 42px; color: var(--fg); border-color: var(--line); }
.socials--page a:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.dev-credit a { color: var(--band-fg); font-weight: 700; text-decoration: underline; text-decoration-color: var(--band-line); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.dev-credit a:hover { color: #2ee0ee; text-decoration-color: #2ee0ee; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .07); padding-block: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--t-xs); }
.fb-fab {
  position: fixed; z-index: 40;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(18px, env(safe-area-inset-left, 0px));
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding-inline: 16px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: var(--band-bg); color: var(--band-fg);
  font-weight: 700; font-size: var(--t-sm); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .55), 0 0 0 4px var(--accent-soft);
  transition: transform .2s, box-shadow .2s;
}
.fb-fab .icon { color: #2ee0ee; }
.fb-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .6), 0 0 0 6px var(--accent-soft); }
@media (max-width: 560px) { .fb-fab { width: 52px; height: 52px; padding: 0; justify-content: center; } .fb-fab span { display: none; } .fb-fab .icon { width: 22px; height: 22px; } }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-align: start; }
.link-btn:hover { color: var(--band-fg); }
.visits-pill { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.visits-pill b { color: var(--band-fg); font-weight: 700; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding-inline: 18px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-weight: 500; font-size: var(--t-sm);
  transition: background .2s, border-color .2s, opacity .2s; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--fg)); }
.btn--ghost { background: var(--surface); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--sm { height: 34px; padding-inline: 12px; border-radius: 10px; font-size: var(--t-xs); }
.btn[disabled] { opacity: .55; cursor: progress; }
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--t-sm); font-weight: 500; }
.field small { color: var(--muted); font-size: var(--t-xs); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  transition: border-color .2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input[dir="ltr"] { text-align: left; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.seg input { accent-color: var(--accent); }
.seg--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg--grid label { min-width: 0; white-space: nowrap; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.ann { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(3, 9, 18, .66); backdrop-filter: blur(4px); animation: annFade .25s ease both; }
.ann__card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); animation: annRise .35s cubic-bezier(.2, .8, .2, 1) both; }
.ann__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, .25); background: rgba(4, 10, 20, .55); color: #fff; backdrop-filter: blur(6px); }
.ann__media img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.ann__band { height: 120px; display: grid; place-items: center; color: #2ee0ee; background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(41, 182, 255, .25), transparent 70%), linear-gradient(180deg, var(--band-bg), var(--band-bg-2)); }
.ann__band .icon { width: 44px; height: 44px; }
.ann__body { padding: 22px 24px 24px; display: grid; gap: 10px; }
.ann__eyebrow { font-size: var(--t-xs); letter-spacing: .14em; color: var(--accent); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.ann__body h2 { font-size: var(--t-xl); }
.ann__body p { color: var(--muted); line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.ann__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ann__nav { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.ann__nav .icon-btn { color: var(--fg); border-color: var(--line); width: 36px; height: 36px; }
.ann__dots { display: inline-flex; gap: 5px; }
.ann__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.ann__dots span.is-on { width: 18px; border-radius: 4px; background: var(--accent); }
@keyframes annFade { from { opacity: 0; } }
@keyframes annRise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(3, 9, 18, .62); backdrop-filter: blur(3px); }
.modal__box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal__head h3 { font-size: var(--t-lg); }
.modal__head .icon-btn { color: var(--fg); border-color: var(--line); }
.modal__body { padding: 20px; display: grid; gap: 14px; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); }

.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 50%; transform: translateX(50%); z-index: 120; background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: var(--t-sm); box-shadow: var(--shadow); }

.loader { display: grid; place-items: center; padding: 80px 0; color: var(--muted); }
.loader span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.intro-open, .intro-open body { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow: hidden; color: var(--band-fg);
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(ellipse 55% 45% at 50% 42%, rgba(41,140,255,.22), transparent 70%), linear-gradient(180deg, var(--band-bg), var(--band-bg-2));
  animation: introIn .35s ease both;
}
.intro.is-out { animation: introOut .65s cubic-bezier(.6,0,.4,1) forwards; }
.intro__dots { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(64,196,255,.32) 1px, transparent 1.3px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, transparent 30%, #000 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, transparent 30%, #000 75%); }
.intro__glow { position: absolute; left: 50%; top: 40%; width: 520px; height: 520px; max-width: 120vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(46,224,238,.22), transparent 62%); animation: introPulse 2.8s ease-in-out .9s infinite; }
.intro__stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; max-width: 560px; }
.intro__tree img { width: min(52vw, 230px); height: auto; clip-path: inset(48% 0 48% 0); filter: drop-shadow(0 0 26px rgba(41,182,255,.45)); animation: introGrow 1.5s cubic-bezier(.2,.8,.2,1) .25s forwards; }
.intro__crc { display: flex; gap: .16em; direction: ltr; font-family: var(--f-display); font-weight: 900; font-size: clamp(54px, 13vw, 104px); line-height: 1; margin-top: 6px; }
.intro__crc span { opacity: 0; transform: translateY(18px); animation: introUp .6s cubic-bezier(.2,.8,.2,1) forwards; }
.intro__crc span:nth-child(1) { animation-delay: 1s; }
.intro__crc span:nth-child(2) { animation-delay: 1.1s; color: #29b6ff; text-shadow: 0 0 24px rgba(41,182,255,.6); }
.intro__crc span:nth-child(3) { animation-delay: 1.2s; }
.intro__title { font-family: var(--f-mono); font-size: clamp(12px, 3.2vw, 15px); letter-spacing: .6em; text-transform: uppercase; color: #2ee0ee; direction: ltr; opacity: 0; animation: introTrack .9s ease 1.35s forwards; }
.intro__sub { font-size: clamp(17px, 4.4vw, 22px); font-weight: 700; color: var(--band-fg); opacity: 0; animation: introUp .6s ease 1.6s forwards; }
.intro__msg { max-width: 46ch; color: var(--band-muted); line-height: 1.8; opacity: 0; animation: introUp .6s ease 1.75s forwards; white-space: pre-line; }
.intro__enter { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding-inline: 26px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 17px; color: #03111f; background: linear-gradient(135deg, #2ee0ee, #29b6ff); box-shadow: 0 12px 30px -10px rgba(46,224,238,.7); opacity: 0; animation: introUp .6s ease 1.9s forwards; }
.intro__enter:hover { filter: brightness(1.08); }
.intro__skip { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); inset-inline-start: max(18px, env(safe-area-inset-left, 0px)); height: 38px; padding-inline: 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: var(--band-muted); background: rgba(255,255,255,.05); border: 1px solid var(--band-line); }
.intro__skip:hover { color: var(--band-fg); }
.intro__bar { position: absolute; left: 50%; bottom: calc(34px + env(safe-area-inset-bottom, 0px)); width: min(220px, 60vw); height: 2px; transform: translateX(-50%); border-radius: 2px; background: rgba(64,196,255,.18); overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 100%; transform-origin: right; transform: scaleX(0); background: linear-gradient(90deg, #29b6ff, #2ee0ee); animation: introBar linear forwards; }
@keyframes introIn { from { opacity: 0; } }
@keyframes introOut { to { opacity: 0; transform: scale(1.04); filter: blur(4px); } }
@keyframes introGrow { to { clip-path: inset(0 0 0 0); } }
@keyframes introUp { to { opacity: 1; transform: none; } }
@keyframes introTrack { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .32em; } }
@keyframes introPulse { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .7; } }
@keyframes introBar { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .intro__tree img { clip-path: none; }
  .intro__crc span, .intro__title, .intro__sub, .intro__msg, .intro__enter { opacity: 1; transform: none; }
}
