/* ==========================================================================
   Panel, dark — design tokens
   One family (Libre Franklin). Weight and size carry the hierarchy.
   Palette: matte black #131416, silkscreen white #E9E7E0, muted #9D9B93,
   hairlines #2C2D31 and #5E5D59. Kinds: orange #EE8A4E agents,
   green #5CBF8A models, blue #7AA7E6 delivery, white product.
   Yellow #EBC44F is only the door for agent readers.
   ========================================================================== */
:root {
  --ink: #131416;
  --paper: #E9E7E0;
  --muted: #9D9B93;
  --line: #2C2D31;
  --line-strong: #5E5D59;
  --agents: #EE8A4E;
  --models: #5CBF8A;
  --delivery: #7AA7E6;
  --product: #E9E7E0;
  --door: #EBC44F;
  --door-hover: #F6D66E;
  --door-active: #D3AE3B;
  --raised: #1E1F23;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ink);
}

body {
  color: var(--paper);
  font-family: 'Libre Franklin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-inline: var(--gutter);
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

fieldset { min-width: 0; }

.page { max-width: 1152px; margin-inline: auto; }

.vh {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px 20px;
  border-bottom: 1px solid var(--line-strong);
}

.masthead-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 14px;
}
.masthead-id .name { font-weight: 700; }
.sep { color: var(--line-strong); }
.masthead-id .role { color: var(--muted); }

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}
.navkey {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
}
.navkey + .navkey { border-left: 1px solid var(--line-strong); }
.navkey:hover { background: var(--raised); }
.navkey:active { background: #2C2D31; }
.navkey:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }

.reader {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reader-label { font-size: 14px; color: var(--muted); }
.reader-toggle {
  display: flex;
  border: 1px solid var(--paper);
  border-radius: 3px;
  overflow: hidden;
}
.reader-human {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 44px;
  background: var(--raised);
  font-size: 14px;
  font-weight: 600;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
}
.key {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 44px;
  background: var(--door);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.key .key-sub { font-weight: 500; }
.key:hover { background: var(--door-hover); color: var(--ink); }
.key:active { background: var(--door-active); color: var(--ink); transform: translateY(1px); }
.key:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 48px 64px;
  padding-block: 80px 72px;
}
.hero-lead { flex: 999 1 560px; min-width: 0; }
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-sub {
  margin: 32px 0 0;
  max-width: 540px;
  font-size: 19px;
  color: var(--muted);
}

/* Shared panel / fieldset chrome */
.panel {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  margin: 0;
  padding: 0;
}
.panel-legend {
  margin-left: 16px;
  padding-inline: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.working { flex: 1 1 340px; max-width: 460px; }
.work-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 14px;
}
.work-row + .work-row { border-top: 1px solid var(--line); padding: 14px 18px; }
.swatch {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
}
.swatch--agents { background: var(--agents); }
.swatch--models { background: var(--models); }
.swatch--delivery { background: var(--delivery); }
.swatch--product { background: var(--product); }

.legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-item .swatch { margin: 0; }

/* ==========================================================================
   Send a request (CSS-only routing sketch)
   ========================================================================== */
.block { padding-block: 0 72px; }
.request-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  padding: 28px;
}

.chips, .lanes {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lanes { flex: 1 1 360px; }

.hint { font-size: 15px; font-style: italic; color: var(--muted); }

.chip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--line-strong); }
.mk {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border: 1.5px solid var(--muted);
  transition: background-color .15s, border-color .15s;
}

.lane {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  opacity: .4;
  transition: opacity .15s, border-color .15s;
}
.lane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}
.lane-kind { font-size: 14px; font-weight: 600; }
.lane-title { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.lane--agents .lane-kind { color: var(--agents); }
.lane--models .lane-kind { color: var(--models); }
.lane--delivery .lane-kind { color: var(--delivery); }
.dt { display: none; }
.dt-desc { margin: 10px 0 0 24px; font-size: 16px; color: var(--muted); }

/* radio-driven state */
#q1:checked ~ .lanes .l1,
#q2:checked ~ .lanes .l2,
#q3:checked ~ .lanes .l3 { opacity: 1; }
#q1:checked ~ .lanes .l1 { border-color: var(--models); }
#q2:checked ~ .lanes .l2 { border-color: var(--agents); }
#q3:checked ~ .lanes .l3 { border-color: var(--delivery); }

#q1:checked ~ .chips .c1,
#q2:checked ~ .chips .c2,
#q3:checked ~ .chips .c3 {
  background: var(--raised);
  border-color: var(--paper);
}
#q1:checked ~ .chips .c1 .mk,
#q2:checked ~ .chips .c2 .mk,
#q3:checked ~ .chips .c3 .mk {
  background: var(--paper);
  border-color: var(--paper);
}
#q1:checked ~ .lanes .l1 .dt,
#q2:checked ~ .lanes .l2 .dt,
#q3:checked ~ .lanes .l3 .dt { display: block; }

#q1:focus-visible ~ .chips .c1,
#q2:focus-visible ~ .chips .c2,
#q3:focus-visible ~ .chips .c3 {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.request-foot { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.request-foot a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Signal path
   ========================================================================== */
.path { padding-block: 56px 72px; border-top: 1px solid var(--line-strong); }
.path-inner { padding: 28px; }
.path-intro {
  margin: 0 0 32px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}
.path-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 0;
}
.stage {
  flex: 1 1 190px;
  min-width: 0;
  position: relative;
  padding: 24px 20px 0 0;
  border-top: 1px solid var(--line-strong);
}
.stage:last-child { padding-right: 0; }
.stage-num {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.stage-title { font-size: 18px; font-weight: 600; }
.stage-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}
.stage-note { font-size: 13px; color: var(--muted); }
.stage-desc {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.an {
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.lit {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  animation-name: lit;
}
.jk {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  animation-name: jk;
}
.ink {
  animation-name: ink;
}
.path:hover .an { animation-play-state: paused; }

.stage:nth-child(1) .lit { background: var(--paper); animation-delay: 0s; }
.stage:nth-child(1) .jk { background: var(--paper); animation-delay: 0s; }
.stage:nth-child(1) .ink { animation-delay: 0s; }
.stage:nth-child(2) .lit { background: var(--agents); animation-delay: 2s; }
.stage:nth-child(2) .jk {
  border: 1.5px solid var(--paper);
  background: var(--ink);
  animation-delay: 2s;
}
.stage:nth-child(2) .ink { animation-delay: 2s; }
.stage:nth-child(3) .lit { background: var(--agents); animation-delay: 4s; }
.stage:nth-child(3) .jk { background: var(--paper); animation-delay: 4s; }
.stage:nth-child(3) .ink { animation-delay: 4s; }
.stage:nth-child(4) .lit { background: var(--delivery); animation-delay: 6s; }
.stage:nth-child(4) .jk { background: var(--paper); animation-delay: 6s; }
.stage:nth-child(4) .ink { animation-delay: 6s; }
.stage:nth-child(5) .lit { background: var(--delivery); animation-delay: 8s; }
.stage:nth-child(5) .jk { background: var(--paper); animation-delay: 8s; }
.stage:nth-child(5) .ink { animation-delay: 8s; }

@keyframes lit { 0% { opacity: 0 } 3% { opacity: 1 } 19% { opacity: 1 } 22% { opacity: 0 } 100% { opacity: 0 } }
@keyframes jk { 0% { transform: scale(1) } 3% { transform: scale(1.6) } 19% { transform: scale(1.6) } 22% { transform: scale(1) } 100% { transform: scale(1) } }
@keyframes ink { 0% { color: var(--muted) } 3% { color: var(--paper) } 19% { color: var(--paper) } 22% { color: var(--muted) } 100% { color: var(--muted) } }

/* ==========================================================================
   Numbered sections: Can do / Good at / Likes / Contact
   ========================================================================== */
.section {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  padding-block: 72px;
  border-top: 1px solid var(--line-strong);
}
.section-head {
  flex: 1 1 200px;
  max-width: 240px;
  min-width: 0;
}
.section-head h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.section-head p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.section-body {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-body--tight { gap: 0; }

/* Group fieldsets */
.group { border: 1px solid var(--line-strong); border-radius: 4px; margin: 0; padding: 0; }
.group--agents { border-color: var(--agents); }
.group--models { border-color: var(--models); }
.group--delivery { border-color: var(--delivery); }
.group--product { border-color: var(--product); }
.group-legend {
  margin-left: 16px;
  padding-inline: 8px;
  font-size: 14px;
  font-weight: 600;
}
.group--agents .group-legend { color: var(--agents); }
.group--models .group-legend { color: var(--models); }
.group--delivery .group-legend { color: var(--delivery); }
.group--product .group-legend { color: var(--product); }
.group-note {
  margin: 0;
  padding: 18px 24px 14px;
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 32px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  transition: background-color .15s;
}
.row:hover { background: var(--raised); }
.row h3 {
  flex: 1 1 220px;
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}
.row p {
  flex: 2 1 300px;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.row-title {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
}
.row-title h3 { flex: none; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.badge .ring {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
}

/* Good at */
.asset {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 32px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.asset h3 {
  flex: 1 1 220px;
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
}
.asset p {
  flex: 2 1 280px;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.asset:last-child { border-bottom: 1px solid var(--line); }

/* Likes */
.like {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.like:last-child { border-bottom: 1px solid var(--line); }
.like-lead { flex: 1 1 240px; min-width: 0; }
.like-kicker { font-size: 14px; font-style: italic; color: var(--muted); }
.like h3 {
  margin: 2px 0 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.like p {
  flex: 2 1 280px;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-lead {
  margin: 0;
  max-width: 17em;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.contact-list {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  max-width: 460px;
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row .label { font-size: 14px; color: var(--muted); }
.contact-row .value { font-size: 16px; }

/* Turnstile-gated contact details */
.value--masked { color: var(--muted); letter-spacing: .08em; }
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.contact-actions[hidden] { display: none; }
.email-caption { font-size: 13px; color: var(--muted); }
.reveal-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--paper);
  border-radius: 3px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.reveal-btn:hover { background: var(--paper); color: var(--ink); }
.reveal-btn:active { transform: translateY(1px); }
.reveal-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.turnstile-slot { min-height: 0; }
.turnstile-slot:empty { display: none; }
.reveal-status { font-size: 13px; color: var(--muted); }
.reveal-status[data-state="error"] { color: var(--agents); }
.detail-out {
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

/* ==========================================================================
   Agent band
   ========================================================================== */
.agentband {
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  background: var(--door);
  color: var(--ink);
}
.agentband-inner {
  max-width: 1152px;
  margin-inline: auto;
  padding-block: 64px 28px;
}
.agentband-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}
.agentband-copy { flex: 999 1 420px; min-width: 0; }
.agentband-kicker { font-size: 14px; font-weight: 600; }
.agentband-title {
  margin: 12px 0 0;
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.agentband-sub {
  margin: 20px 0 0;
  max-width: 540px;
  font-size: 19px;
}
.keyband {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  min-height: 72px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.keyband .keyband-sub { font-weight: 500; }
.keyband .arrow { font-size: 22px; }
.keyband:hover { background: var(--paper); color: var(--ink); }
.keyband:active { background: #B9B7B0; color: var(--ink); transform: translateY(1px); }
.keyband:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.agentband-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Motion preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .an { animation: none !important; }
  .lane, .chip, .row { transition: none; }
}
