/* ------------------------------------------------------------------
   Meet the Team — orange accent, Satoshi, soft blends (Better Lyrics)
   on a Bitchord-dark base. Light theme via html[data-theme="light"].
   Edit tokens on :root; nothing below hard-codes a colour.
------------------------------------------------------------------- */

:root {
  --orange: #ff5a1f;
  --orange-2: #ff8a5b;
  --peach: #ffb38a;
  --rose: #ff6b8a;
  --orange-glow: rgb(255 90 31 / .28);
  --orange-soft: rgb(255 90 31 / .12);

  --bg: #0c0b0a;
  --panel: rgb(255 255 255 / .04);
  --panel-2: rgb(255 255 255 / .05);
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .16);
  --ink: #f7f2ee;
  --ink-2: #b8afa8;
  --ink-3: #847a73;
  --shadow: 0 24px 60px -28px rgb(0 0 0 / .8);
  --shadow-hover: 0 32px 70px -28px rgb(0 0 0 / .85), 0 20px 60px -30px var(--orange-glow);
  --blend-opacity: .55;
  --overlay: 12 11 10;          /* rgb triplet behind the name on the photo */
  --bar: rgb(12 11 10 / .72);

  --radius: 1.5rem;             /* Better Lyrics' card radius */
  --radius-sm: 1.1rem;
  --font: Satoshi, Avenir, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 280ms;
}

html[data-theme="light"] {
  --bg: #fdfbfa;
  --panel: rgb(255 255 255 / .78);
  --panel-2: rgb(22 18 15 / .035);
  --line: rgb(22 18 15 / .07);
  --line-2: rgb(22 18 15 / .14);
  --ink: #16120f;
  --ink-2: #5f5650;
  --ink-3: #958b84;
  --orange-glow: rgb(255 90 31 / .22);
  --shadow: 0 18px 50px -24px rgb(22 18 15 / .18);
  --shadow-hover: 0 28px 60px -24px rgb(22 18 15 / .22), 0 18px 50px -24px var(--orange-glow);
  --blend-opacity: .5;
  --bar: rgb(253 251 250 / .72);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); font-weight: 500; color: var(--ink); background: var(--bg);
  line-height: 1.5; -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden;
}
/* soft blends: three blurred colour fields drifting slowly, like Better Lyrics' hero */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px);
  opacity: var(--blend-opacity); pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
body::before { width: 62vw; height: 62vw; left: -18vw; top: -22vw; background: radial-gradient(closest-side, var(--orange-glow), transparent); }
body::after  { width: 48vw; height: 48vw; right: -16vw; top: 18vh; background: radial-gradient(closest-side, rgb(255 179 138 / .18), transparent); animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(5%, 6%, 0); } }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10; padding: 8px 12px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 700; text-decoration: none; transition: top var(--t) var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */

.top {
  position: sticky; top: 0; z-index: 5; background: var(--bar);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-block; padding: 7px 13px; border-radius: 999px; color: var(--ink-2); font-size: 14px;
  text-decoration: none; transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--ink); background: var(--panel-2); }
.theme {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.theme:hover { color: var(--ink); border-color: var(--line-2); }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; }
html[data-theme="light"] .theme .sun { display: block; }
html[data-theme="light"] .theme .moon { display: none; }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--orange); transform-origin: bottom; animation: eq 1.2s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -.3s; }
.eq i:nth-child(2) { animation-delay: -.6s; }
.eq i:nth-child(3) { animation-delay: -.15s; }
.eq i:nth-child(4) { animation-delay: -.45s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- Hero ---------- */

.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(32px, 5vw, 56px); }
.kicker { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }
h1 { margin: 0 0 16px; font-size: clamp(40px, 6.6vw, 80px); line-height: 1; letter-spacing: -.035em; font-weight: 900; max-width: 14ch; }
h1 .dim { color: var(--ink-3); font-weight: 700; }
.lede { margin: 0; max-width: 40ch; color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 24px 0 0; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.stats b { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: clamp(36px, 5vw, 64px) 0 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.track { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.section-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.025em; }
.section-head .desc { color: var(--ink-3); font-size: 14px; }
.section-head .count { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

.grid { display: grid; margin: 0; padding: 0; list-style: none; }

/* ---------- Card ----------
   Same height for every card: the only variable content lives in .more,
   which is revealed over the photo on hover / focus / .open (tap). */

.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }

.card { opacity: 0; transform: translateY(12px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.card.in { opacity: 1; transform: none; }

.card-in {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: 10px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t);
}
.card-in:hover, .card-in:focus-within, .card-in.open { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.card-in:focus-visible { outline-offset: 4px; }

.photo { position: relative; margin: 0; aspect-ratio: 1 / 1.12; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.92); transition: transform 700ms var(--ease), filter var(--t); }
.card-in:hover .photo img, .card-in:focus-within .photo img, .card-in.open .photo img { transform: scale(1.04); filter: saturate(1.05); }
.initials { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange-2); font-weight: 900; font-size: 40px; }
.photo.has-img .initials { display: none; }

.badge {
  opacity: 0;
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap; color: #fff;
  background: var(--orange); box-shadow: 0 4px 14px -4px var(--orange-glow);
  transition: opacity var(--t), transform var(--t) var(--ease);
}
/* badge steps aside while the detail sheet is up */
.card-in:hover .badge, .card-in:focus-within .badge, .card-in.open .badge { opacity: 0; transform: translateY(-6px); }

/* sheet: name + city always; .more expands beneath them on reveal */
.sheet {
  position: absolute; inset: auto 0 0; z-index: 1; margin: 0; padding: 40px 14px 12px; max-height: 100%; color: #fff;
  background: linear-gradient(to top, rgb(var(--overlay) / .94) 0%, rgb(var(--overlay) / .6) 60%, transparent 100%);
  transition: background var(--t);
}
.card-in:hover .sheet, .card-in:focus-within .sheet, .card-in.open .sheet {
  background: linear-gradient(to top, rgb(var(--overlay) / .96) 0%, rgb(var(--overlay) / .86) 70%, transparent 100%);
}
.name { margin: 0; font-size: 18px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-shadow: 0 1px 10px rgb(0 0 0 / .45); }
.city { margin: 3px 0 0; display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: rgb(255 255 255 / .75); }
.city svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; flex: none; }
.city:has(span:empty) { display: none; }

.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease); }
.more-in { overflow: hidden; min-height: 0; opacity: 0; transition: opacity 260ms var(--ease); }
.card-in:hover .more, .card-in:focus-within .more, .card-in.open .more { grid-template-rows: 1fr; }
.card-in:hover .more-in, .card-in:focus-within .more-in, .card-in.open .more-in { opacity: 1; transition-delay: 80ms; }

.fav { margin: 10px 0 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.fav .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .55); }
.fav .v { font-weight: 700; }
.fav:has(.v:empty) { display: none; }

.lyric { margin: 8px 0 0; padding: 0; }
.lines { display: block; font-size: 13.5px; line-height: 1.35; font-weight: 700; }
.lines span { display: block; color: rgb(255 255 255 / .55); transition: color 380ms var(--ease); transition-delay: calc(120ms + var(--i) * 140ms); }
.card-in:hover .lines span, .card-in:focus-within .lines span, .card-in.open .lines span { color: #fff; }
.card-in:hover .lines span:last-child, .card-in:focus-within .lines span:last-child, .card-in.open .lines span:last-child { color: var(--orange-2); }
.cite { margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: rgb(255 255 255 / .5); }
.cite::before { content: "— "; }
.cite:empty { display: none; }

.foot-row { margin: 10px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.since { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .55); }
.socials { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; color: rgb(255 255 255 / .8);
  border: 1px solid rgb(255 255 255 / .18); transition: color var(--t), border-color var(--t), background var(--t);
}
.socials a:hover { color: #fff; border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .1); }
.socials a:focus-visible { outline-color: var(--orange-2); }
.socials svg { width: 13px; height: 13px; fill: currentColor; }

/* the one row under the photo: role + languages */
.row { margin: 10px 4px 2px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 22px; }
.role { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.langs { display: flex; gap: 4px; }
.langs span { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; padding: 2px 6px; border-radius: 999px; color: var(--ink-2); border: 1px solid var(--line); }

/* touch: show a hint that the card opens */
@media (hover: none) {
  .card-in::after { content: ""; position: absolute; right: 18px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); opacity: .9; }
  .card-in.open::after { opacity: 0; }
}

/* ---------- Footer ---------- */

.foot { margin-top: clamp(56px, 8vw, 96px); padding: 24px 0 44px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.foot .wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.stamp { font-family: var(--mono); color: var(--orange); font-variant-numeric: tabular-nums; }

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
  .lines span { color: var(--ink); }
}
@media print {
  .top, .skip, .socials, .foot .stamp, body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
  .card { opacity: 1; transform: none; break-inside: avoid; }
}
