/* NodeForEdge landing */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 9vw, 120px);
}
.hero h1 {
  margin: 0; font-weight: 760; font-size: clamp(2.5rem, 4.9vw, 4.6rem);
  line-height: 1; letter-spacing: -.035em; text-wrap: balance;
  overflow-wrap: break-word;
}
.lede { margin: 28px 0 0; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--muted); font-weight: 350; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; }

.btn {
  --cut: 12px;
  display: inline-block; padding: 13px 24px; font-weight: 550; font-size: 1rem; text-decoration: none;
  color: var(--ink); background: var(--surface-2);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background .15s, color .15s;
}
.btn:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--ink) 12%); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.btn:focus-visible { outline-offset: 4px; }

/* topology */
.topology { margin: 0; }
.topology svg { display: block; width: 100%; height: auto; overflow: visible; }
.topology text { font-family: var(--font); }
.wires path { stroke: var(--line); stroke-width: 1.6; }
.wires path:nth-child(-n+4) { stroke-dasharray: 5 6; }
.wire-label { fill: var(--muted); font-size: 12.5px; font-weight: 400; }
.node rect, .svc rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.node .t1 { fill: var(--ink); font-size: 18px; font-weight: 650; }
.svc .t1 { fill: var(--ink); font-size: 16px; font-weight: 650; }
.node .t2, .svc .t2 { fill: var(--muted); font-size: 13.5px; font-weight: 400; }
.core path { fill: var(--accent); }
.core .t1 { fill: var(--accent-ink); font-size: 18px; font-weight: 650; }
.core .t1.big { font-size: 30px; font-weight: 760; letter-spacing: -.02em; }
.core .t2 { fill: var(--accent-ink); font-size: 15px; font-weight: 450; }
.core .t3 { fill: var(--accent-ink); opacity: .78; font-size: 13.5px; font-weight: 400; }
.topology svg .dot { width: auto; height: auto; background: none; fill: var(--idle); transition: fill .3s; }
.topology svg .dot[data-state="up"] { fill: var(--ok); }
.topology svg .dot[data-state="degraded"] { fill: var(--warn); }
.topology svg .dot[data-state="down"] { fill: var(--down); }
.core .dot { stroke: var(--accent-ink); stroke-width: 2; }

.pk { fill: var(--accent); opacity: 0; offset-rotate: 0deg; animation: send 1.7s cubic-bezier(.55, 0, .25, 1) both; }
.pk1 { offset-path: path("M85 118V176H260V232"); animation-delay: .6s; }
.pk2 { offset-path: path("M260 118V232"); animation-delay: .95s; }
.pk3 { offset-path: path("M435 118V176H260V232"); animation-delay: 1.3s; }
@keyframes send {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.topology figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: .92rem; }
.topology figcaption .dot { width: 9px; height: 9px; }

/* sections: label column + content column */
.projects, .about {
  display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 16px clamp(24px, 5vw, 72px);
  padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line);
}
.projects h2, .about h2 { margin: 0; font-size: 1.2rem; font-weight: 620; letter-spacing: -.01em; line-height: 1.3; align-self: start; position: sticky; top: 24px; }

.project-list { list-style: none; margin: 0; padding: 0; }
.project-list li + li { border-top: 1px solid var(--line); }
.project-list a {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1.7fr); gap: 4px 32px;
  padding: 26px 16px; margin: 0 -16px; text-decoration: none; border-radius: 4px;
  transition: background .15s;
}
.project-list a:hover { background: var(--surface); }
.p-name { grid-row: 1 / span 2; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; transition: color .15s; }
.project-list a:hover .p-name { color: var(--accent); }
.p-desc { color: var(--muted); max-width: 52ch; }
.p-stack { font-family: var(--mono); font-size: .82rem; color: var(--muted); opacity: .85; }

.about-text { margin: 0; max-width: 24em; font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 480; line-height: 1.22; letter-spacing: -.02em; text-wrap: balance; }
.about-more { margin: 24px 0 0; max-width: 52ch; color: var(--muted); }
.about-more a { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .topology { max-width: 560px; }
  .projects, .about { grid-template-columns: 1fr; }
  .projects h2, .about h2 { position: static; }
}
@media (max-width: 620px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .project-list a { grid-template-columns: 1fr; padding: 22px 12px; margin: 0 -12px; }
  .p-name { grid-row: auto; }
}
