/* Home page. Layout: full-height hero with a live canvas phoenix on the right,
   then alternating plain and banded sections. */

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 900px);
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

#phoenix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Darkens the left side so the headline stays readable over the animation. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11, 6, 18, 0.9) 34%, rgba(11, 6, 18, 0.25) 62%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}

.hero-inner {
  width: 100%;
  padding-top: 70px;
  padding-bottom: 90px;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 0.45em;
}

.hero .lead {
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.proofbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 44px 0 0;
  max-width: 760px;
  border-top: 1px solid var(--line-soft);
}

.proofbar > div {
  padding: 16px 16px 0 0;
}

.proofbar dt {
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.proofbar dd {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 24px;
  height: 38px;
  margin-left: -12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 1.8s infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Bands ---------- */
section.band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.narrow {
  max-width: 820px;
}

/* ---------- Live proof ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 10px;
}

.checks li {
  padding-left: 30px;
  position: relative;
  color: var(--ink-soft);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(-45deg) scale(0.8);
  transform-origin: left;
}

.mini {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 194, 61, 0.3);
  box-shadow: var(--shadow), 0 0 70px rgba(255, 122, 47, 0.14);
}

.mini-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.mini-head .muted {
  margin-left: auto;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(127, 214, 194, 0.6);
  animation: live 2s infinite;
}

@keyframes live {
  70% { box-shadow: 0 0 0 9px rgba(127, 214, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 214, 194, 0); }
}

.mini-log {
  height: 300px;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-2);
}

.bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.94rem;
  line-height: 1.5;
  animation: pop 0.25s ease;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px); }
}

.bubble.user {
  align-self: flex-end;
  background: var(--fire);
  color: #1c0d05;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.bubble .tag {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-mute);
}

.bubble .tag.good {
  color: var(--ok);
}

.bubble .tag.stop {
  color: var(--danger);
}

.bubble .tag.hand {
  color: var(--gold);
}

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 18px 0;
}

.mini-chips button,
.filters button {
  font: inherit;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.mini-chips button:hover,
.filters button:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.mini-form {
  display: flex;
  gap: 8px;
  padding: 12px 18px 18px;
}

.mini-form input {
  flex: 1;
  min-width: 0;
}

/* ---------- Work ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 22px;
}

.filters button[aria-pressed="true"] {
  background: var(--fire);
  color: #1c0d05;
  border-color: transparent;
  font-weight: 700;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 154, 60, 0.13), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--surface);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}

a.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 194, 61, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 122, 47, 0.16);
}

.work-card[hidden] {
  display: none;
}

.glyph {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
}

.glyph svg {
  width: 100%;
  height: 100%;
}

.work-card .area {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.work-card h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.work-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.work-card .metric {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--line-soft);
}

.work-card .metric b {
  color: var(--gold-pale);
  font-family: var(--mono);
}

.work-card .tags {
  margin-bottom: 18px;
}

.work-card .go {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent-ink);
  font-size: 0.95rem;
}

.work-card .go.muted {
  font-weight: 500;
  color: var(--ink-mute);
  font-size: 0.84rem;
}

.work-card.client {
  background: transparent;
  border-style: dashed;
}

.work-card.client h3 {
  font-size: 1.2rem;
}

/* ---------- Skills table ---------- */
.proof-table {
  margin-top: 26px;
  padding: 8px 12px;
}

.proof-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  min-width: 240px;
}

.proof-table td {
  color: var(--ink-soft);
}

.proof-table tr:last-child td {
  border-bottom: 0;
}

.proof-table tbody tr {
  transition: background 0.15s;
}

.proof-table tbody tr:hover {
  background: var(--accent-soft);
}

/* ---------- Process ---------- */
.process {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 19px;
  height: 2px;
  background: linear-gradient(90deg, #f0553f, #ff9a3c, #ffd66b);
  opacity: 0.5;
}

.process li {
  counter-increment: step;
  padding: 0 16px 0 0;
  position: relative;
}

.process li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ember);
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}

.process b {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.process span {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.promises > div {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.promises b {
  display: block;
  color: var(--gold-pale);
  margin-bottom: 4px;
}

.promises span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.about h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.emblem {
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 22px rgba(255, 122, 47, 0.55));
}

.portrait {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 194, 61, 0.4);
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 500;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--gold);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  color: var(--ink-soft);
  padding: 0 2px 18px;
  margin: 0;
  max-width: 68ch;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  padding: 110px 0 120px;
  background: radial-gradient(60% 80% at 50% 110%, rgba(255, 122, 47, 0.22), transparent 70%);
}

.contact h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.contact .lead {
  margin: 0 auto;
}

.contact .hero-actions {
  justify-content: center;
}

.contact .links {
  font-size: 0.93rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .process::before {
    left: 19px;
    right: auto;
    top: 20px;
    bottom: 20px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #f0553f, #ff9a3c, #ffd66b);
  }
  .process li {
    padding: 0 0 0 58px;
  }
  .process li::before {
    position: absolute;
    left: 0;
    top: 0;
  }
  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .proof-grid,
  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(11, 6, 18, 0.55) 0%, rgba(11, 6, 18, 0.86) 45%, var(--bg) 100%);
  }
  .hero-inner {
    padding-top: 46px;
  }
  .proofbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav a:not(.cta):not([href="#work"]) {
    display: none;
  }
  section {
    padding: 64px 0;
  }
}

@media (max-width: 620px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .promises {
    grid-template-columns: 1fr;
  }
  .scroll-cue {
    display: none;
  }
}

/* lab:start (added by 11_Project_Lab/tools/publish.mjs) */
.lab-banner {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(240, 85, 63, 0.16), rgba(255, 214, 107, 0.08));
  color: var(--ink);
  text-decoration: none;
}
.lab-banner strong { font-family: var(--display); font-size: 1.35rem; }
.lab-banner .lab-text { color: var(--ink-soft); }
.lab-banner:hover, .lab-banner:focus-visible { border-color: var(--fire); }
/* lab:end */
