/* =========================================================
   qrunk — clean minimal redesign
   ========================================================= */
:root {
  /* slate/charcoal base, tuned to the hexagon mark */
  --bg:        #14161a;
  --bg-soft:   #1c1f25;
  --bg-line:   #262a32;
  --bg-rule:   #2f343d;

  --fg:        #e6ecf2;
  --fg-soft:   #b8c2cc;
  --fg-mute:   #7e8893;
  --fg-faint:  #525a64;

  /* primary brand accent — matches the hexagon mark */
  --blue:      #cfeaff;
  --blue-deep: #88b8d8;

  --yellow:    #f0c674;
  --orange:    #f78557;
  --purple:    #c79bd1;
  --green:     #a3be8c;

  --max:       1140px;
  --gutter:    1.5rem;
  --r:         8px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular",
          Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--yellow); color: var(--bg); }

/* =========================================================
   Custom scrollbar
   ========================================================= */
html {
  scrollbar-color: var(--bg-rule) transparent;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-rule);
  border: 2px solid var(--bg);
  border-radius: 999px;
  transition: background 0.2s var(--ease);
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--blue) 45%, var(--bg-rule));
}
::-webkit-scrollbar-thumb:active {
  background: var(--blue-deep);
}
::-webkit-scrollbar-corner { background: var(--bg); }

/* =========================================================
   Top scroll progress bar
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}
.scroll-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-deep) 100%);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  transition: transform 0.08s linear;
  box-shadow: 0 0 10px color-mix(in srgb, var(--blue) 60%, transparent);
}

/* =========================================================
   Scroll-driven reveal (sections fade/lift in)
   ========================================================= */
[data-scroll] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-scroll].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-scroll] { opacity: 1; transform: none; transition: none; }
  .scroll-progress::before { transition: none; }
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted { color: var(--fg-mute); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 32, 33, 0.72);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--bg-line);
  background: rgba(29, 32, 33, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.005em;
  font-size: 0.98rem;
  color: var(--fg);
}
.brand-prompt {
  color: var(--fg-mute);
  opacity: 0;
  transform: translateX(-4px);
  animation: brand-fade 0.5s var(--ease) 0.05s forwards;
}
@keyframes brand-fade {
  to { opacity: 1; transform: none; }
}
.brand-word {
  display: inline-flex;
  overflow: hidden;
  line-height: 1;
  margin-left: -0.15rem;
}
.brand-word span {
  display: inline-block;
  transform: translateY(110%);
  animation: brand-rise 0.6s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.brand:hover .brand-word span {
  animation: brand-bounce 0.5s var(--ease);
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes brand-rise {
  to { transform: translateY(0); }
}
@keyframes brand-bounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-40%); }
  100% { transform: translateY(0); }
}
.brand-caret {
  display: inline-block;
  margin-left: -0.05rem;
  color: var(--blue);
  opacity: 0;
  animation:
    brand-fade 0.3s var(--ease) 0.5s forwards,
    brand-blink 1.05s steps(2, start) 0.8s infinite;
}
@keyframes brand-blink {
  to { visibility: hidden; }
}

/* hexagon brand mark (replaces the legacy dot) */
.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--blue) 35%, transparent));
  animation: brand-mark-in 0.7s var(--ease) both;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(60deg) scale(1.05);
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--blue) 60%, transparent));
}
.brand-mark-outer { fill: var(--blue); }
.brand-mark-inner { fill: var(--bg); }
.brand-mark-core  { fill: var(--blue); }
.brand:hover .brand-mark-core { fill: var(--bg); }
.brand-mark:hover .brand-mark-core { fill: var(--bg); }
@keyframes brand-mark-in {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* legacy dot kept for any other references but unused */
.brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: var(--fg-mute);
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  color: var(--fg-mute);
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.nav a::before {
  content: attr(data-num);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  transition: color 0.2s var(--ease);
}
.nav a:hover {
  color: var(--fg);
  background: color-mix(in srgb, var(--blue) 5%, var(--bg-soft));
}
.nav a:hover::before { color: var(--blue); }
.nav a[aria-current="page"] {
  color: var(--fg);
}
.nav a[aria-current="page"]::before { color: var(--blue); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--blue);
  opacity: 0.7;
}

/* CTA pill at the end of the nav */
.nav-cta {
  margin-left: 0.4rem;
  padding: 0.45rem 0.85rem !important;
  color: var(--fg) !important;
  background: color-mix(in srgb, var(--blue) 8%, var(--bg-soft));
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--bg-line));
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    color 0.25s var(--ease);
}
.nav-cta::before { display: none; }
.nav-cta .nav-cta-arrow {
  display: inline-block;
  margin-left: 0.15rem;
  color: var(--blue);
  transition: transform 0.3s var(--ease);
}
.nav-cta:hover {
  background: color-mix(in srgb, var(--blue) 18%, var(--bg-soft));
  border-color: var(--blue);
  color: var(--fg) !important;
}
.nav-cta:hover .nav-cta-arrow { transform: translateX(3px); }
.nav-cta[aria-current="page"] {
  background: color-mix(in srgb, var(--blue) 22%, var(--bg-soft));
  border-color: var(--blue);
}
.nav-cta[aria-current="page"]::after { display: none; }

@media (max-width: 640px) {
  .nav { gap: 0; font-size: 0.78rem; }
  .nav a { padding: 0.35rem 0.55rem; }
  .nav a::before { display: none; }
  .nav-cta { margin-left: 0.2rem; padding: 0.35rem 0.65rem !important; }
  .nav-cta .nav-cta-arrow { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero .wrap { position: relative; z-index: 1; }

/* =========================================================
   Hero logo rain
   ========================================================= */
.logo-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
}
.logo-rain-drop {
  position: absolute;
  top: -8%;
  left: var(--x, 50%);
  width: var(--size, 28px);
  height: var(--size, 28px);
  color: var(--blue);
  opacity: 0;
  transform: translate3d(-50%, 0, 0) rotate(0deg);
  animation: logo-rain-fall var(--duration, 14s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--blue) 35%, transparent));
}
.logo-rain-drop svg { width: 100%; height: 100%; display: block; }
.logo-rain-drop polygon { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }

@keyframes logo-rain-fall {
  0%   { transform: translate3d(-50%, -20vh, 0) rotate(0deg);   opacity: 0; }
  8%   { opacity: var(--opacity, 0.5); }
  92%  { opacity: var(--opacity, 0.5); }
  100% { transform: translate3d(-50%, 120vh, 0) rotate(360deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-rain { display: none; }
}
.kicker {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--fg-faint);
}
.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--fg);
  max-width: 22ch;
}
.hero-lead {
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--fg-soft);
  margin: 0 0 2.25rem;
}
.hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-hint {
  margin: 1.75rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.hero-hint kbd {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  margin-right: 0.45rem;
  background: var(--bg-soft);
  border: 1px solid var(--bg-rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-soft);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.15rem;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.25s var(--ease),
              color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              transform 0.25s var(--ease);
  white-space: nowrap;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn:hover [aria-hidden="true"].btn-arrow:is([data-down]) {
  transform: translateY(3px);
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--yellow);
  color: var(--bg);
}

.btn-outline {
  border-color: var(--bg-rule);
  color: var(--fg);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--fg);
  background: var(--bg-soft);
}

.btn-link {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  color: var(--fg-soft);
  border-radius: 0;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0.25rem; right: 0.25rem; bottom: 0.55rem;
  height: 1px;
  background: var(--fg-faint);
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: transform 0.4s var(--ease), background 0.25s var(--ease);
}
.btn-link:hover { color: var(--fg); }
.btn-link:hover::after {
  transform: scaleX(1);
  background: var(--fg);
}

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-mute);
  margin-left: -0.2rem;
}
.btn-price {
  margin-left: 0.25rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--mono);
  background: var(--bg-line);
  color: var(--fg-soft);
}

/* =========================================================
   Section primitives
   ========================================================= */
.section-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 0.75rem;
}
.section-title {
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  color: var(--fg);
  max-width: 22ch;
}
.section-head { margin-bottom: 3rem; }

/* =========================================================
   About
   ========================================================= */
.about {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--bg-line);
}
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: start;
}
.about-body p {
  margin: 0 0 1.25rem;
  color: var(--fg-soft);
}
.about-body p:last-child { margin-bottom: 0; }

.text-link {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--orange);
  text-decoration-thickness: 2px;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* =========================================================
   Projects
   ========================================================= */
.projects {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--bg-line);
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--bg-line);
}

.project {
  --accent: var(--fg);
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "meta    meta"
    "title   actions"
    "desc    actions";
  gap: 0.75rem 2rem;
  align-items: end;
  padding: 2.25rem 1.25rem;
  margin: 0 -1.25rem;
  border-radius: var(--r);
  border-bottom: 1px solid var(--bg-line);
  transition:
    background 0.5s var(--ease),
    color 0.5s var(--ease),
    padding 0.4s var(--ease);
  isolation: isolate;
}
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -2;
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--accent) 30%, transparent),
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  z-index: -1;
}
.project:hover::before { opacity: 1; }
.project:hover::after  { opacity: 1; }

.project:hover .project-title { color: var(--accent); }
.project:hover .project-desc  { color: var(--fg); }
.project:hover .project-desc em { color: var(--fg-soft); }
.project:hover .project-meta {
  color: color-mix(in srgb, var(--accent) 70%, var(--fg));
}
.project:hover .project-tag {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--bg-rule));
  color: var(--fg);
}
.project:hover .btn-outline {
  border-color: var(--accent);
  color: var(--fg);
}
.project:hover .btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}
.project:hover .btn-link { color: var(--accent); }
.project-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  transition: color 0.4s var(--ease);
}
.project-index { color: var(--accent); }
.project-tag {
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--bg-rule);
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}

.project-title {
  grid-area: title;
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--fg);
  transition: color 0.3s var(--ease);
}

.project-desc {
  grid-area: desc;
  margin: 0;
  color: var(--fg-soft);
  max-width: 52ch;
  transition: color 0.4s var(--ease);
}
.project-desc em { color: var(--fg-mute); font-style: normal; }

.project-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .project {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "title"
      "desc"
      "actions";
    gap: 0.65rem;
  }
  .project-actions { justify-content: flex-start; }
}

/* =========================================================
   Team
   ========================================================= */
.team {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--bg-line);
}

.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.member {
  --accent: var(--fg);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.85rem;
  padding: 1.35rem;
  background: var(--bg-soft);
  border: 1px solid var(--bg-line);
  border-radius: var(--r);
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.member::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--accent) 9%, var(--bg-soft));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.member:hover,
.member:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--bg-line));
  transform: translateY(-3px);
}
.member:hover::before,
.member:focus-within::before { opacity: 1; }
.member > * { position: relative; }

/* row 1: avatar + name/pronouns/location */
.member-pfp {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 22%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  flex-shrink: 0;
  align-self: start;
  grid-row: 1;
}
.member-initials {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.member-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* legacy lanyard dot — kept hidden so old markup stays safe */
.member-status { display: none; }

.member-head {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.member-headline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}
.member-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.25;
}
.member-handle {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.member-pronouns {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--fg-mute);
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--bg-line);
  border-radius: 999px;
}
.member-location {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--fg-mute);
}
.member-airport {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.member-airport::after {
  content: "·";
  margin-left: 0.5rem;
  color: var(--bg-rule);
}
.member-time {
  color: var(--fg-soft);
  font-variant-numeric: tabular-nums;
}

/* row 2: full-width body */
.member-body {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.member-role {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.member-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.member-links li { display: flex; }

.member-link {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  color: var(--fg-mute);
  cursor: pointer;
  font: inherit;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
  position: relative;
}
.member-link svg { width: 14px; height: 14px; }
.member-link:hover,
.member-link:focus-visible {
  outline: none;
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-1px);
}

/* now playing (Last.fm) */
.member-np {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  background: var(--bg);
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  color: var(--fg-soft);
  text-decoration: none;
  max-width: 100%;
  align-self: flex-start;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.member-np:hover,
.member-np:focus-visible {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.member-np-art {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 5px;
  background: var(--bg-soft) center/cover no-repeat;
  border: 1px solid var(--bg-line);
}
.member-np-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.member-np-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.member-np-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg-rule);
}
.member-np[data-playing="true"] .member-np-pulse {
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  animation: np-pulse 1.6s var(--ease) infinite;
}
@keyframes np-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}
.member-np-track {
  font-size: 0.8rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22ch;
}
.member-links li { display: flex; }

.member-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  color: var(--fg-mute);
  cursor: pointer;
  font: inherit;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
  position: relative;
}
.member-link svg { width: 16px; height: 16px; }
.member-link:hover,
.member-link:focus-visible {
  outline: none;
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateY(-1px);
}

.member-link[data-copied="true"]::after {
  content: "copied!";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

.team-note {
  margin: 2rem 0 0;
  font-size: 0.8rem;
}
.team-note code {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.1rem 0.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--bg-line);
  border-radius: 4px;
}

@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--bg-line);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--fg-soft);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr;
  gap: 3rem;
  align-items: flex-start;
  padding-bottom: 3rem;
}

.footer-col { min-width: 0; }

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--fg);
}
.footer-mark svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--blue) 30%, transparent));
  transition: transform 0.4s var(--ease);
}
.footer-mark:hover svg { transform: rotate(60deg) scale(1.05); }
.footer-wordmark {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-tagline {
  margin: 0.85rem 0 1rem;
  color: var(--fg-mute);
  font-size: 0.88rem;
  max-width: 32ch;
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}
.footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  color: var(--fg-mute);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.footer-social-link svg { width: 15px; height: 15px; }
.footer-social-link:hover,
.footer-social-link:focus-visible {
  outline: none;
  color: var(--blue);
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  transform: translateY(-1px);
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}

.footer-text {
  margin: 0 0 1rem;
  color: var(--fg-mute);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 38ch;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--bg-rule);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.footer-cta:hover,
.footer-cta:focus-visible {
  outline: none;
  color: var(--blue);
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  transform: translateY(-1px);
}
.footer-cta .btn-arrow {
  transition: transform 0.25s var(--ease);
}
.footer-cta:hover .btn-arrow,
.footer-cta:focus-visible .btn-arrow {
  transform: translateX(3px);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-list a {
  color: var(--fg-mute);
  font-size: 0.88rem;
  transition: color 0.2s var(--ease);
  position: relative;
  padding-left: 0;
}
.footer-list a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--blue);
  margin-right: 0;
  vertical-align: middle;
  transition: width 0.25s var(--ease), margin-right 0.25s var(--ease);
}
.footer-list a:hover {
  color: var(--fg);
}
.footer-list a:hover::before {
  width: 12px;
  margin-right: 8px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-line);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy,
.footer-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
}
.footer-aka { color: var(--fg-mute); }

@media (max-width: 880px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
[data-anim] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--anim-delay, 0ms);
  will-change: opacity, transform;
}
[data-anim].is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  [data-anim] { opacity: 1; transform: none; }
}
