:root {
  --bg: #0a0e0b;
  --bg-2: #101612;
  --ink: #f4f4f5;
  --mute: #a1a1aa;
  --faint: #71717a;
  --line: rgba(124, 255, 69, 0.12);
  --accent: #7cff45;
  --accent-dim: rgba(124, 255, 69, 0.14);
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --pad: clamp(1.15rem, 4vw, 2rem);
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.ready main {
  animation: rise 0.55s var(--ease) both;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 14, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
}

.logo img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: 0.5rem;
}

.nav a {
  color: var(--mute);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.bar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 0.95rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #071008;
}

.btn-primary:hover { background: #95ff66; }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.drawer {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem var(--pad) 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.drawer.open { display: flex; }

.drawer a {
  padding: 0.7rem 0.2rem;
  color: var(--mute);
  font-weight: 500;
}

.drawer a.is-active { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.2rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

h1, h2, .logo {
  font-family: var(--display);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 11ch;
}

.lede {
  margin-top: 1.15rem;
  max-width: 38rem;
  color: var(--mute);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.net {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-left: auto;
}

.net svg { width: 100%; height: auto; }

.net-line {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 4 6;
  animation: dash 18s linear infinite;
}

.net-node {
  fill: #17171a;
  stroke: rgba(255, 255, 255, 0.16);
}

.net-core {
  fill: #17171a;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.net text {
  fill: #f4f4f5;
  font-family: var(--sans);
  font-size: 11px;
}

.net .core-label {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.sub {
  color: var(--mute);
  max-width: 40rem;
  font-size: 1.05rem;
}

.section-head { margin-bottom: 1.75rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pillar {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.pillar h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.pillar p { color: var(--mute); font-size: 0.95rem; }

.net-grid,
.card-grid,
.project-grid,
.update-grid {
  display: grid;
  gap: 0.8rem;
}

.net-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card-grid,
.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.update-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ncard,
.pcard,
.ucard,
.partner-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 1.05rem 1rem 1.1rem;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.ncard:hover,
.pcard:hover,
.ucard:hover,
.partner-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.ncard {
  position: relative;
}

.ncard::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: 2px;
  height: 18px;
  background: var(--accent);
}

.ncard h3,
.pcard h3,
.ucard h3,
.partner-card h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.ncard p,
.pcard p,
.ucard p,
.partner-card p {
  color: var(--mute);
  font-size: 0.94rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}

.tag.on {
  color: #ffd0dc;
  border-color: rgba(124, 255, 69, 0.45);
  background: var(--accent-dim);
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #101012;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

.pcard .btn { margin-top: 0.95rem; }

.partner-card .actions { margin-top: 0.95rem; }

.partner-card {
  padding: 0;
  overflow: hidden;
}

.partner-card .body {
  padding: 1.05rem 1rem 1.1rem;
}

.partner-card.has-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.8fr);
}

.partner-card .banner,
.partner-card .logo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.partner-card.has-icon {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  color: var(--mute);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.stat span { color: var(--faint); font-size: 0.9rem; }

.band {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--accent-dim), transparent 42%),
    var(--bg-2);
}

.band h2 { margin-bottom: 0.45rem; }

.page-hero {
  padding: clamp(2.6rem, 6vw, 4rem) 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--bg-2);
}

.block h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.block p + p { margin-top: 0.65rem; }
.block p, .legal p, .legal li { color: var(--mute); }
.legal li { margin-left: 1rem; list-style: disc; margin-top: 0.3rem; }
.legal h2 { font-size: 1.15rem; margin-bottom: 0.45rem; color: var(--ink); }

.layout-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.msg-form,
.board-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--bg-2);
}

.msg-form label span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  color: var(--mute);
}

.msg-form input,
.msg-form textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e0e10;
  outline: none;
}

.msg-form input:focus,
.msg-form textarea:focus {
  border-color: rgba(124, 255, 69, 0.55);
}

.msg-form input::placeholder,
.msg-form textarea::placeholder { color: #5c5c66; }

.msg-status { min-height: 1.2em; color: var(--mute); font-size: 0.92rem; }
.msg-status.is-ok { color: #d7f5df; }
.msg-status.is-err { color: #ffb4c4; }

.hint {
  color: var(--mute);
  font-size: 0.86rem;
  margin-top: -0.15rem;
}

.side-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.side-link:hover { border-color: rgba(255, 255, 255, 0.24); }
.side-link span { color: var(--faint); font-size: 0.82rem; }

.board-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-refresh {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.board-item {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.board-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--faint);
  margin-bottom: 0.3rem;
}

.board-item__name { color: var(--ink); font-weight: 600; }
.board-empty { color: var(--mute); padding: 0.4rem 0; }

.steps { display: flex; flex-direction: column; gap: 0.6rem; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.steps .n { font-family: var(--mono); color: var(--accent); font-size: 0.78rem; }
.steps p { color: var(--mute); }

code {
  font-family: var(--mono);
  font-size: 0.84em;
  color: #ffd0dc;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 1.4rem;
  margin-top: 1rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}

.foot-brand p { color: var(--mute); margin-top: 0.65rem; max-width: 26rem; font-size: 0.95rem; }

.site-footer h3 {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  color: var(--faint);
}

.site-footer li + li { margin-top: 0.4rem; }
.site-footer li a { color: var(--mute); }
.site-footer li a:hover { color: var(--ink); }

.foot-socials { display: flex; gap: 0.45rem; margin-top: 0.9rem; }

.legal-line {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s var(--ease) forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes dash {
  to { stroke-dashoffset: -120; }
}

@media (max-width: 1100px) {
  .nav { gap: 0.75rem; }
  .nav a { font-size: 0.88rem; }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .layout-2,
  .foot-grid { grid-template-columns: 1fr; }
  .net { margin: 0 auto; max-width: 380px; }
  .net-grid { grid-template-columns: 1fr 1fr; }
  .card-grid,
  .project-grid,
  .update-grid,
  .stats { grid-template-columns: 1fr 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav, .bar-end .btn, .bar-end .icon-btn { display: none; }
  .burger { display: flex; margin-left: auto; }
  .pillars,
  .net-grid,
  .card-grid,
  .project-grid,
  .update-grid,
  .stats { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .partner-card.has-banner,
  .partner-card.has-icon { grid-template-columns: 1fr; }
  .partner-card .banner,
  .partner-card .logo { height: 180px; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.ready main,
  .reveal,
  .net-line {
    animation: none;
  }
  .reveal { opacity: 1; transform: none; }
  .ncard:hover,
  .pcard:hover,
  .ucard:hover,
  .partner-card:hover { transform: none; }
}

.dw {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, #17171a 0%, var(--bg-2) 100%);
  overflow: hidden;
}

.dw-banner {
  height: 88px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.dw-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.1rem 0.95rem;
}

.dw-icon,
.dw-skel {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
  object-fit: cover;
  background: #1f1f23;
  border: 1px solid var(--line);
  margin-top: -28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.dw:not(:has(.dw-banner)) .dw-icon,
.dw:not(:has(.dw-banner)) .dw-skel { margin-top: 0; }

.dw-skel { background: linear-gradient(90deg, #1a1a1e, #242428, #1a1a1e); }

.dw-titles { min-width: 0; flex: 1; }

.dw-titles h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.dw-titles p {
  margin: 0.25rem 0 0;
  color: var(--mute);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  line-height: 1.35;
}

.dw-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23a559;
  box-shadow: 0 0 0 3px rgba(35, 165, 89, 0.18);
  flex-shrink: 0;
}

.dw-join { flex-shrink: 0; }

.dw-people {
  padding: 0 0.85rem 0.85rem;
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dw-group-head {
  --role: #a1a1aa;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.25rem 0.4rem;
  color: color-mix(in srgb, var(--role) 75%, #fff);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dw-role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dw-role-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.dw-role-emoji { font-size: 0.78rem; line-height: 1; }

.dw-list {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.dw-member {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dw-member:last-child { border-bottom: 0; }
.dw-member:hover { background: rgba(255, 255, 255, 0.03); }

.dw-av-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.dw-av-wrap img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}

.dw-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #141416;
  background: #23a559;
}

.dw-dot.dw-idle { background: #f0b232; }
.dw-dot.dw-dnd { background: #f23f43; }
.dw-dot.dw-offline { background: #80848e; }

.dw-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.dw-name {
  font-size: 0.92rem;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dw-game {
  color: var(--faint);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dw-empty {
  color: var(--mute);
  padding: 0.9rem 0.8rem;
  font-size: 0.92rem;
}

.dw-footer {
  display: block;
  text-align: center;
  padding: 0.8rem 1rem 0.95rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.dw-footer:hover { color: var(--ink); }

.dw-mount { max-width: 480px; }

@media (max-width: 760px) {
  .dw-head { flex-wrap: wrap; }
  .dw-join { width: 100%; text-align: center; }
  .dw-icon { margin-top: 0; }
}
