:root {
  --bg:        #0d0d0d;
  --bg-2:      #111111;
  --surface:   #161616;
  --surface-2: #1b1b1b;

  --accent:       #c0392b;
  --accent-hi:    #f06856;
  --crimson-mid:  #9b2020;
  --crimson-deep: #6b0f0f;
  --accent-soft:  rgba(192, 57, 43, .15);
  --accent-rgb:   192, 57, 43;

  --gold:   #e8c15a;
  --silver: #c9ced8;
  --bronze: #cd8452;

  --text:  #f0f0f0;
  --muted: #9a9a9a;
  --faint: #5c5c5c;

  --border:        rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .14);

  --body:  "Exo 2", "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --pixel: "Press Start 2P", "JetBrains Mono", monospace;

  --radius:    18px;
  --radius-sm: 12px;
  --container: 1240px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip:focus { left: 16px; }

.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(96px, 12vw, 132px);
  overflow: hidden;
}

.hero__more {
  position: absolute;
  left: var(--pad);
  bottom: clamp(24px, 3.4vw, 38px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  text-decoration: none;
  transition: color .25s var(--ease), opacity .35s var(--ease);
}
.hero__more:hover { color: var(--muted); }

.hero__more-line {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .9), transparent);
  transform-origin: left center;
  animation: nudge 2.8s var(--ease) infinite;
}

.hero__more.is-gone {
  opacity: 0;
  pointer-events: none;
}

@keyframes nudge {
  0%, 100% { transform: scaleX(1);   opacity: .7; }
  50%      { transform: scaleX(1.5); opacity: 1; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(42% 46% at 72% 50%, rgba(120, 26, 26, .22), transparent 72%);
  pointer-events: none;
}

.hero__inner {
  --mark-fs: clamp(34px, 7.4vw, 74px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas:
    "mark atom"
    "copy atom";
  column-gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.wordmark   { grid-area: mark; align-self: end; }
.hero__copy { grid-area: copy; align-self: start; }
.hero__atom { grid-area: atom; }

.wordmark {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: var(--mark-fs);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--text);
  text-shadow: 0 0 26px rgba(var(--accent-rgb), .3);
}

.hero__lead {
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 500;
  line-height: 1.38;
  text-wrap: balance;
}

.hero__sub {
  margin-top: 16px;
  color: var(--muted);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn--solid {
  background: var(--accent);
  color: #fff;
}
.btn--solid:hover { background: var(--accent-hi); }

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: rgba(var(--accent-rgb), .7);
  background: var(--accent-soft);
}

.hero__atom {
  display: flex;
  justify-content: center;
}

.atom {
  width: min(100%, 460px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 22px rgba(192, 57, 43, .3));
}

.atom__field {
  opacity: 0;
  animation: field-in 1.4s var(--ease) .5s forwards;
}

.atom__orbit path {
  fill: none;
  stroke: url(#orbit-grad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 1040;
  stroke-dashoffset: 1040;
  animation: draw 1.5s var(--ease) forwards;
}
.atom__orbit:nth-of-type(2) path { animation-delay: .16s; }
.atom__orbit:nth-of-type(3) path { animation-delay: .32s; }

.e {
  fill: #db5646;
  opacity: 0;
  animation: fade-in .7s var(--ease) 1.5s forwards;
}
.e--dim { fill: #b8493c; opacity: 0; animation-delay: 1.7s; }

.atom__core-shape {
  fill: url(#core-grad);
  stroke: #e05a48;
  stroke-width: 1.2;
}
.atom__core-halo {
  fill: none;
  stroke: #b8392c;
  stroke-width: 2;
  transform-origin: 200px 200px;
  animation: breathe 4.6s ease-in-out infinite;
}
.atom__core-dot { fill: #ffcfc4; }

.atom__core {
  opacity: 0;
  animation: pop .8s var(--ease) 1.1s forwards;
  transform-origin: 200px 200px;
}

@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes pop     { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes field-in { to { opacity: 1; } }
@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: .8; }
  50%      { transform: scale(1.17); opacity: .25; }
}

.section { padding-block: clamp(44px, 5vw, 68px) clamp(48px, 5.5vw, 76px); }

.section__head {
  --title-fs: clamp(26px, 3.4vw, 40px);
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

.section__title {
  font-size: var(--title-fs);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  flex: none;
}

.section__rule {
  flex: 1;
  height: 1px;
  min-width: 40px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  transform: translateY(calc(var(--title-fs) * .1));
}

.section__intro {
  margin-top: -18px;
  margin-bottom: clamp(26px, 3vw, 38px);
  color: var(--muted);
  max-width: 62ch;
}

.axiom__text {
  color: var(--muted);
  max-width: 62ch;
}

.axiom__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.work__row:last-child { border-bottom: none; }

.work__row {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 48px);
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.work__row:first-child { padding-top: 0; }

.work__row dt {
  font-size: 19px;
  font-weight: 600;
}

.work__row dd {
  color: var(--muted);
  max-width: 62ch;
}

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.member {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.member::before {
  content: "";
  position: absolute;
  inset: auto 0 0 26px;
  width: 44px;
  height: 2px;
  background: var(--crimson-deep);
  transition: background .25s var(--ease), width .3s var(--ease);
}

.member:hover {
  border-color: rgba(var(--accent-rgb), .45);
  background: var(--surface-2);
}
.member:hover::before { background: var(--accent); width: 78px; }

.member--lead {
  background:
    linear-gradient(120deg, rgba(var(--accent-rgb), .1), transparent 55%),
    var(--surface);
  border-color: rgba(var(--accent-rgb), .3);
}

@media (min-width: 1101px) {
  .member--lead {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-areas:
      "top  bio"
      "tags links";
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 18px;
    align-content: space-between;
  }

  .member--lead .member__top   { grid-area: top; }
  .member--lead .member__bio   { grid-area: bio;   margin-top: 6px; font-size: 17px; max-width: 44ch; }
  .member--lead .member__tags  { grid-area: tags;  align-self: end; }
  .member--lead .member__links { grid-area: links; align-self: end; margin-top: 18px; }
}

.member__top { position: relative; padding-right: 34px; }

.member__idx {
  position: absolute;
  top: 2px;
  right: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--crimson-mid);
}

.member__nick {
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

.member--lead .member__nick { font-size: clamp(23px, 2.6vw, 34px); }

.member__role {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-hi);
}

.member__bio {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
}

.member__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.member__tags li {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 10px;
}

.member__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
}

.member__links a {
  color: var(--faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.member__links a:hover {
  color: var(--accent-hi);
  border-bottom-color: rgba(var(--accent-rgb), .5);
}

.roster__note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
}
.roster__note a { color: var(--muted); }
.roster__note a:hover { color: var(--accent-hi); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact__copy h2 {
  font-size: clamp(27px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.16;
}

.contact__copy h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 18px;
  background: var(--accent);
  border-radius: 2px;
}
.contact__copy p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 48ch;
}

.contact__mail {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: clamp(18px, 2.4vw, 25px);
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: color .2s var(--ease);
}
.contact__mail:hover { color: var(--accent-hi); }

.contact__links li:last-child { border-bottom: none; }

.contact__links li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact__links li:first-child { padding-top: 0; }

.contact__links a {
  text-decoration: none;
  font-weight: 500;
  transition: color .2s var(--ease);
}
.contact__links a:hover { color: var(--accent-hi); }

.contact__links span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  text-align: right;
}

.foot {
  border-top: 1px solid var(--border);
  padding-block: 26px;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
}

.term {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: var(--pad);
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}

.term:not([hidden]) { display: grid; }

.term__win {
  width: min(100%, 720px);
  height: min(74vh, 540px);
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}

.term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #131313;
  border-bottom: 1px solid var(--border);
}

.term__title, .term__out, .term__prompt, .term__in, .term__close {
  font-family: var(--mono);
  font-size: 13.5px;
}

.term__title { color: var(--accent-hi); }

.term__close {
  color: var(--faint);
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 9px;
  cursor: pointer;
}
.term__close:hover { color: var(--text); }

.term__out {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #3a2220 transparent;
  padding: 16px 14px 6px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.term__out::-webkit-scrollbar { width: 8px; }
.term__out::-webkit-scrollbar-thumb {
  background: #3a2220;
  border-radius: 4px;
}

.term__echo { color: var(--accent); }

.term__out b { color: var(--text); font-weight: 500; }
.term__out i { color: var(--accent-hi); font-style: normal; }
.term__out a { color: var(--accent-hi); }

.term__form {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px 14px;
}

.term__prompt { color: var(--accent); flex: none; }

.term__in {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  caret-color: var(--accent-hi);
}
.term__in:focus { outline: none; }

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

@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding-top: clamp(40px, 11vw, 64px);
    padding-bottom: clamp(30px, 7vw, 44px);
  }
  .hero__more { display: none; }

  .hero::before { display: none; }

  .hero__atom {
    position: relative;
    display: flex;
    align-items: center;
  }

  .hero__atom::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--mark-fs) * 3.2);
    height: calc(var(--mark-fs) * 3.2);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(var(--accent-rgb), .15), transparent 66%);
    pointer-events: none;
  }

  .atom { position: relative; }

  .hero__inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "mark atom"
      "copy copy";
    column-gap: calc(var(--mark-fs) * .3);
    row-gap: 24px;
    align-items: center;
  }
  .wordmark { align-self: center; }
  .hero__atom { justify-self: start; }

  .atom {
    width: calc(var(--mark-fs) * 1.45);
    filter: none;
  }
  .atom__field { display: none; }

  .wordmark { text-shadow: 0 0 16px rgba(var(--accent-rgb), .11); }

  .work__row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 620px) {
  .member {
    padding: 20px 18px 18px;
    border-radius: var(--radius-sm);
  }
  .member__idx { top: 1px; font-size: 11px; }
  .member__nick,
  .member--lead .member__nick { font-size: 21px; }
  .member__bio,
  .member--lead .member__bio { margin-top: 12px; font-size: 15.5px; }
  .member__tags { gap: 6px; margin-top: 14px; }
  .member__tags li { font-size: 11px; padding: 2px 9px; }
  .member__links,
  .member--lead .member__links {
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
  }
  .member::before { inset: auto 0 0 18px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .atom__orbit path { stroke-dashoffset: 0; }
  .atom__field, .e, .atom__core { opacity: 1; }
}
