:root {
  --bg: #070910;
  --panel: #0d111a;
  --line: #1b2230;
  --ink: #ccd5e3;
  --dim: #77839a;
  --ember: #5ee7ff;
  --gold: #ffd54a;
  --term: #57e07a;
}

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

body {
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 20% -10%, #101726 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 10%, #12101f 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  padding: clamp(24px, 6vw, 72px) clamp(16px, 5vw, 48px) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.top { text-align: center; max-width: 640px; }

.mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  background: conic-gradient(from 20deg, var(--ember), #b45cff, var(--gold), var(--ember));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.9;
}

h1 {
  font-size: clamp(26px, 5vw, 38px);
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: lowercase;
}

.sub { color: var(--dim); margin-top: 8px; font-size: 13px; }

.grid {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f1420 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: #2c3546;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.card__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.card--ember:hover { border-color: #2a5d6b; }
.card--inject:hover { border-color: #2c5d3c; }

.art {
  position: relative;
  height: 132px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.art--ember {
  background:
    radial-gradient(420px 120px at 50% 130%, rgba(94, 231, 255, 0.18), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, 0.02) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.02) 22px 23px),
    #0a0d14;
}

.orb {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9fbff, var(--ember) 45%, #1d6d80 100%);
  animation: bob 3.2s ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e05a6a;
  opacity: 0.85;
}

.s1 { left: 22%; top: 34%; animation: drift 4.1s ease-in-out infinite; }
.s2 { left: 74%; top: 58%; animation: drift 3.4s ease-in-out infinite reverse; }
.s3 { left: 62%; top: 26%; animation: drift 5s ease-in-out infinite; }

.art--inject {
  background:
    linear-gradient(180deg, rgba(87, 224, 122, 0.06), transparent 60%),
    #080b0c;
  padding: 22px 20px;
}

.line {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(87, 224, 122, 0.55), rgba(87, 224, 122, 0.08));
  margin-bottom: 10px;
}

.l1 { width: 62%; animation: type 3s steps(24) infinite; }
.l2 { width: 84%; opacity: 0.65; }
.l3 { width: 44%; opacity: 0.4; }

.caret {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--term);
  animation: blink 1.05s steps(1) infinite;
  vertical-align: middle;
}

.body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

h2 { font-size: 20px; letter-spacing: 0.04em; font-weight: 600; }

.card--ember h2 { color: var(--ember); }
.card--inject h2 { color: var(--term); }

.tag { color: var(--dim); font-size: 12px; letter-spacing: 0.05em; }

.desc { font-size: 13.5px; color: #a9b4c6; flex: 1; }

.cta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.foot { color: #4d5768; font-size: 12px; text-align: center; max-width: 560px; }

@keyframes bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.05); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 10px); } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes type { 0% { width: 12%; } 60%, 100% { width: 62%; } }

@media (prefers-reduced-motion: reduce) {
  .orb, .spark, .caret, .l1 { animation: none; }
}


.made {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
}

.made > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 12px 22px;
  cursor: pointer;
  color: var(--dim);
  list-style: none;
  transition: color 140ms ease;
}

.made > summary::-webkit-details-marker { display: none; }

.made > summary::before {
  content: '+';
  width: 12px;
  color: var(--gold);
  font-weight: 600;
}

.made[open] > summary::before { content: '−'; }
.made > summary:hover { color: var(--ink); }
.made > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

.made__label { letter-spacing: 0.06em; text-transform: lowercase; }
.made__stats { color: #6a7688; margin-left: auto; }
.made__stats b { color: var(--ink); font-weight: 600; }

.made__body { padding: 0 22px 20px; display: flex; flex-direction: column; gap: 8px; }

.made__step {
  color: #5d6779;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.made blockquote {
  margin: 0;
  padding: 10px 14px;
  border-left: 2px solid #2c3546;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 6px 6px 0;
  color: #a9b4c6;
  line-height: 1.55;
}

.made__note { color: var(--dim); line-height: 1.55; margin-top: 6px; }

.lab {
  width: 100%;
  max-width: 980px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px clamp(18px, 4vw, 32px);
  background: linear-gradient(180deg, rgba(180, 92, 255, 0.05), transparent 60%), var(--panel);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lab h3 {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b45cff;
  font-weight: 600;
}

.lab p { font-size: 13.5px; color: #a9b4c6; line-height: 1.6; max-width: 70ch; }
.lab b { color: var(--ink); }

.lab__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 6px 0;
}

.lab__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.lab__stats b { font-size: 20px; color: var(--ember); font-weight: 600; }
.lab__stats span { font-size: 11px; color: var(--dim); letter-spacing: 0.04em; }

.lab__fine { font-size: 11.5px; color: #55607a; }

.made__tok {
  flex-basis: 100%;
  text-align: right;
  color: #5d6779;
  font-size: 11px;
}

.made__tok b { color: #8a94a8; font-weight: 600; }

.lab__contact { font-size: 12.5px; color: var(--dim); }

.lab__contact a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 213, 74, 0.35);
}

.lab__contact a:hover,
.lab__contact a:focus-visible { border-bottom-color: var(--gold); outline: none; }
