:root {
  --navy: #010a16;
  --navy-2: #0b1b2b;
  --navy-line: #22354a;
  --ink: #0f1b2d;
  --text: #2d3748;
  --muted: #5a6778;
  --line: #d9e0ea;
  --card: #f3f6fb;
  --paper: #ffffff;
  --bronze: #cd7f32;
  --bronze-dark: #b0621a;
  --bronze-light: #e6a45a;
  --cream: #fff6ec;
  --teal: #148f84;
  --red: #d14343;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bronze-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink); padding: 10px 16px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

/* navigation */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(1, 10, 22, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { color: #f7fafc; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.3px; }
.brand span { color: var(--bronze-light); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav li a { color: #cbd5e0; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav li a:hover, .nav li a:focus-visible { color: #fff; }
@media (max-width: 960px) { .nav ul { display: none; } }

/* shared pieces */

.kicker {
  font-family: var(--mono); font-weight: 700; font-size: 12.5px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--bronze-dark);
  margin: 0 0 14px;
}
.dark .kicker { color: var(--bronze-light); }

h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.6px; margin: 0; }
.dark h1, .dark h2, .dark h3 { color: #f7fafc; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.2px; }

.bar { width: 120px; height: 6px; background: var(--bronze); border-radius: 3px; margin: 22px 0 0; }

.lead { font-size: 20px; color: var(--text); max-width: 760px; margin: 22px 0 0; }
.dark .lead { color: #e2e8f0; }

section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.dark { background: var(--navy); color: #e2e8f0; }
.soft { background: var(--card); }

.btn {
  display: inline-block; padding: 14px 24px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent;
}
.btn.primary { background: var(--bronze); color: #fff; }
.btn.primary:hover { background: var(--bronze-dark); }
.btn.ghost { border-color: #4a5d75; color: #f7fafc; }
.btn.ghost:hover { border-color: #cbd5e0; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--bronze-light); outline-offset: 3px; }

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.c4, .grid.c2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 26px;
}
.card.hot { background: var(--cream); border-color: var(--bronze); }
.card p { margin: 10px 0 0; }
.card svg { width: 64px; height: 64px; margin-bottom: 18px; }
.adv .card > b { display: block; font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -1.5px; color: var(--bronze); margin-bottom: 18px; }
.adv .card h3 { margin: 0; }

.figure {
  margin: 36px 0 0; border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--paper); padding: 20px; overflow-x: auto;
}
.figure img { min-width: 760px; width: 100%; }
.figure figcaption, .plain figcaption { font-size: 15px; color: var(--muted); margin-top: 14px; }
.plain { margin: 0; }

/* hero */

.hero { padding: 84px 0 80px; }
.hero .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(54px, 8vw, 96px); font-weight: 800; letter-spacing: -2px; }
.hero .sub { font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--bronze-light); margin: 6px 0 0; }
.hero .pitch .lead { margin: 0; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px) { .hero { padding: 56px 0 64px; } .hero .head { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.schema { margin-top: 72px; }
.schema svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.schema .tall { display: none; max-width: 380px; }
.schema .n rect { fill: var(--navy-2); stroke: #35506e; stroke-width: 1.6; }
.schema .n.in rect { fill: #f7fafc; stroke: #f7fafc; }
.schema .n.out rect { fill: var(--bronze); stroke: var(--bronze); }
.schema .n.run rect { stroke: #4fd1c5; }
.schema .t { font-weight: 700; fill: #f7fafc; text-anchor: middle; }
.schema .d { fill: #a0aec0; text-anchor: middle; }
.schema .n.in .t { fill: var(--ink); }
.schema .n.in .d { fill: var(--muted); }
.schema .n.out .d { fill: #fff; }
.schema .c { stroke: var(--bronze-light); stroke-width: 2; fill: none; stroke-linecap: round; }
.schema .g { fill: var(--navy); stroke: var(--bronze-light); stroke-width: 2; }
.schema .tr { stroke: #4fd1c5; stroke-width: 1.6; stroke-dasharray: 5 6; fill: none; }
.schema .bg { fill: var(--navy); }
.schema .tl { fill: #4fd1c5; text-anchor: middle; font-weight: 600; }
.schema .lg { fill: #cbd5e0; }
@media (max-width: 900px) { .schema { margin-top: 48px; } .schema .wide { display: none; } .schema .tall { display: block; } }

/* flows */

.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; background: var(--paper); }
.flow + .flow { margin-top: 20px; }
.flow .words { padding: 30px 32px; align-self: center; }
.flow .pic { background: var(--paper); border-left: 1.5px solid var(--line); display: flex; align-items: center; padding: 12px; }
.flow .tag { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--bronze-dark); margin: 0 0 8px; }
.flow .when { font-size: 19px; color: var(--ink); font-weight: 600; margin: 12px 0 0; }
.flow ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.flow li { position: relative; padding-left: 26px; font-size: 16px; }
.flow li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal);
}
.flow li::after {
  content: ""; position: absolute; left: 4.5px; top: calc(.42em + 4px); width: 6px; height: 3.5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow .pic { border-left: 0; border-top: 1.5px solid var(--line); }
  .flow ul { grid-template-columns: 1fr; }
}

/* the flow */

.pipe {
  list-style: none; margin: 44px 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: 0.78fr 1fr 52px 1fr 52px 1fr 52px 1fr 52px 0.86fr; align-items: stretch;
}
.pipe::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 3px; margin-top: -1.5px;
  background: var(--bronze); opacity: .55;
}
.pipe > li { position: relative; }
.pipe .end, .pipe .stage {
  border-radius: 14px; padding: 20px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.pipe .end { background: var(--navy-2); color: #cbd5e0; margin-right: 22px; }
.pipe .end.out { margin: 0 0 0 0; }
.pipe .end b { color: #fff; font-size: 19px; }
.pipe .end span, .pipe .stage span { font-size: 14.5px; line-height: 1.35; }
.pipe .stage { background: var(--card); border: 1.5px solid var(--line); }
.pipe .stage.hot { background: var(--cream); border-color: var(--bronze); }
.pipe .stage b { color: var(--ink); font-size: 18px; letter-spacing: -.2px; }
.pipe .stage span { color: var(--muted); }
.pipe .stage i {
  font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 14px; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; background: var(--bronze);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.pipe .gate { display: flex; align-items: center; justify-content: center; }
.pipe .gate::before {
  content: ""; width: 24px; height: 24px; border-radius: 5px; transform: rotate(45deg);
  background: var(--ink); border: 3px solid var(--bronze);
}
.pipe .gate span {
  position: absolute; top: calc(50% + 24px); left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; color: var(--bronze-dark);
  background: var(--paper); padding: 0 4px;
}
.outside {
  margin: 20px 0 0; padding: 16px 22px; border-radius: 12px;
  background: var(--cream); border: 1.5px solid var(--bronze); color: var(--text);
}
.outside b { color: var(--ink); }
@media (max-width: 980px) {
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 460px; }
  .pipe::before { left: 50%; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; margin: 0 0 0 -1.5px; }
  .pipe .end { margin: 0 0 22px; }
  .pipe .end.out { margin: 0; }
  .pipe .gate { height: 64px; }
  .pipe .gate span { top: 50%; left: calc(50% + 28px); transform: translateY(-50%); }
  .pipe .stage + .stage { margin-top: 22px; }
}

.loop { margin-top: 28px; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 20px; background: var(--paper); }
.loop svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.loop .tall { display: none; max-width: 380px; margin: 0 auto; }
.loop .node rect { stroke-width: 2; }
.loop .agent rect { fill: var(--cream); stroke: var(--bronze); }
.loop .rule rect { fill: var(--card); stroke: var(--ink); }
.loop .next rect { fill: #eaf7f5; stroke: #0f766e; }
.loop .fix rect { fill: #fdeeee; stroke: #c0392b; }
.loop .t { font-size: 23px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.loop .d { font-size: 16.5px; fill: var(--muted); text-anchor: middle; }
.loop .l { font-size: 18px; font-weight: 700; }
.loop .tall .t { font-size: 21px; }
.loop .tall .d { font-size: 15.5px; }
.loop .tall .l { font-size: 16px; }
@media (max-width: 760px) { .loop .wide { display: none; } .loop .tall { display: block; } }

/* numbers */

.numbers { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.chart { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.chart .cap { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--bronze-dark); margin: 0 0 4px; }
.chart .row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 190px; gap: 14px; align-items: center; }
.chart .r { font-weight: 700; color: var(--ink); }
.chart .track { background: var(--card); border-radius: 8px; height: 40px; }
.chart .bars { display: flex; height: 40px; min-width: 10px; border-radius: 8px; overflow: hidden; }
.chart .bars i { font-style: normal; font-weight: 700; font-size: 15px; color: #fff; display: flex; align-items: center; justify-content: center; min-width: 2px; }
.chart i.red { background: #c0392b; }
.chart i.green { background: #0f766e; }
.chart i.blk { background: #5a6778; }
.chart .v { color: var(--muted); font-size: 15.5px; }
.chart .v b { color: var(--ink); }
.legend { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; color: var(--text); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: #5a6778; }
.legend li.red::before { background: #c0392b; }
.legend li.green::before { background: #0f766e; }

.stats { display: grid; grid-template-columns: 1fr; gap: 20px; }
.stat { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 22px 26px; }
.stat b { display: block; font-size: 46px; line-height: 1; font-weight: 800; color: #c0392b; letter-spacing: -1.5px; }
.stat.good b { color: #0f766e; }
.stat.plain b { color: var(--ink); }
.stat span { display: block; margin-top: 10px; color: var(--ink); font-weight: 600; }
.stat small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.note { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
@media (max-width: 960px) { .numbers { grid-template-columns: minmax(0, 1fr); } .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .chart { padding: 22px 18px; }
  .chart .row { grid-template-columns: 70px minmax(0, 1fr); row-gap: 4px; }
  .chart .v { grid-column: 2; }
}

/* output */

.pair { display: grid; grid-template-columns: 1.16fr 1fr; gap: 20px; margin-top: 40px; align-items: stretch; }
.pair .figure { margin: 0; }
.pair .figure.narrow img { min-width: 0; }
@media (max-width: 960px) { .pair { grid-template-columns: 1fr; } }

/* the act */

.banner { position: relative; padding: 0; overflow: hidden; }
.banner .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; align-items: center; }
.banner .art {
  position: absolute; right: 0; top: 0; bottom: 0; width: 56%;
  background: url("assets/judge.jpg") center 58% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.banner .words { position: relative; padding: 72px 0; }
.banner .punch { color: var(--bronze-light); font-weight: 700; font-size: 21px; margin: 18px 0 0; }
.banner .credit { position: absolute; left: 24px; bottom: 16px; font-family: var(--mono); font-size: 12px; color: #a0aec0; margin: 0; }
@media (max-width: 860px) {
  .banner .wrap { grid-template-columns: 1fr; min-height: 0; }
  .banner .art { position: static; width: auto; height: 260px; -webkit-mask-image: none; mask-image: none; }
  .banner .credit { position: static; padding: 12px 0 20px; }
}

.maps { margin-top: 40px; display: grid; gap: 12px; }
.maps .head, .maps .row { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 0; align-items: stretch; }
.maps .head p { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 2px; color: var(--bronze-dark); margin: 0; }
.maps .ask, .maps .give { border-radius: 12px; padding: 18px 22px; font-weight: 700; color: var(--ink); font-size: 18px; }
.maps .ask { background: var(--card); border: 1.5px solid var(--line); }
.maps .ask small { display: block; font-family: var(--mono); font-weight: 700; font-size: 13.5px; color: var(--bronze-dark); margin-top: 4px; }
.maps .give { background: var(--cream); border: 1.5px solid var(--bronze); display: flex; align-items: center; }
.maps .to { display: flex; align-items: center; justify-content: center; color: var(--bronze); font-size: 24px; font-weight: 700; }
@media (max-width: 760px) {
  .maps .head { display: none; }
  .maps .row { grid-template-columns: 1fr; }
  .maps .to { transform: rotate(90deg); height: 30px; }
}

.times { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 3px solid var(--line); }
.times li { position: relative; padding-top: 30px; }
.times li::before { content: ""; position: absolute; top: -12px; left: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--bronze); }
.times li.past::before { background: var(--muted); width: 16px; height: 16px; top: -9.5px; }
.times time { display: block; font-size: 32px; font-weight: 800; color: var(--bronze-dark); letter-spacing: -.8px; line-height: 1.1; }
.times li.past time { color: var(--muted); font-size: 24px; }
.times b { display: block; color: var(--ink); font-size: 19px; margin-top: 10px; }
.times span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) {
  .times { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--line); padding-left: 26px; }
  .times li { padding-top: 0; }
  .times li::before { left: -38px; top: 6px; }
  .times li.past::before { left: -35.5px; top: 6px; }
}

/* stack */

.stack { margin: 40px 0 0; display: grid; gap: 8px; }
.stack div { display: grid; grid-template-columns: 190px 1fr 1.2fr; gap: 16px; align-items: baseline; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 20px; }
.stack dt { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: 2px; color: var(--bronze-dark); text-transform: uppercase; }
.stack dd { margin: 0; }
.stack dd.what { font-weight: 700; color: var(--ink); }
.stack dd.why { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .stack div { grid-template-columns: 1fr; gap: 2px; } }

/* summary */

.take { list-style: none; counter-reset: take; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.take li {
  counter-increment: take; display: grid; grid-template-columns: 56px 300px 1fr; align-items: center; gap: 8px;
  background: var(--navy-2); border: 1.5px solid var(--navy-line); border-radius: 12px; padding: 20px 24px;
}
.take li:first-child { background: #2a1d10; border-color: var(--bronze); }
.take li::before {
  content: counter(take); width: 42px; height: 42px; border-radius: 50%; background: var(--bronze); color: #fff;
  font-family: var(--mono); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.take b { color: #f7fafc; font-size: 20px; }
.take span { color: #cbd5e0; }
@media (max-width: 860px) { .take li { grid-template-columns: 56px 1fr; } .take span { grid-column: 2; } }

/* contact and footer */

.contact { display: grid; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; max-width: 640px; }
.contact li { display: grid; grid-template-columns: 130px 1fr; align-items: baseline; }
.contact .k { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: 2px; color: var(--bronze-dark); }
.contact a { color: var(--ink); font-weight: 700; font-size: 19px; text-decoration-color: var(--bronze); text-underline-offset: 4px; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 640px) { .contact li { grid-template-columns: 1fr; gap: 2px; } .contact a { font-size: 17px; } }

footer { background: var(--navy); color: #a0aec0; padding: 40px 0 48px; font-size: 14.5px; }
footer .wrap { display: grid; gap: 18px; }
footer .maker { display: flex; align-items: center; gap: 12px; color: #e2e8f0; }
footer .maker img { width: 40px; height: auto; }
footer a { color: #e2e8f0; }
footer .credits { font-family: var(--mono); font-size: 12px; line-height: 1.7; margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
