:root {
  --bg: #07090f;
  --bg-elev: #10141f;
  --panel: #151a28;
  --ink: #f4f6fb;
  --muted: #9aa3b8;
  --line: rgba(244, 246, 251, 0.1);
  --line-strong: rgba(244, 246, 251, 0.2);
  --teal: #2dd4bf;
  --teal-ink: #042f2e;
  --coral: #fb7185;
  --violet: #a78bfa;
  --focus: #a3e635;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 72rem;
  --gutter: 1.5rem;

  --step-display: clamp(3.5rem, 9vw, 5.5rem);
  --step-h1: clamp(2.5rem, 5vw, 3.25rem);
  --step-h2: 2rem;
  --step-h3: 1.5rem;
  --step-body: 1.125rem;
  --step-meta: 0.875rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(45, 212, 191, 0.35) var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Archivo, system-ui, sans-serif;
  font-size: var(--step-body);
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--teal);
}

::selection {
  background: rgba(45, 212, 191, 0.28);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

a {
  color: var(--teal);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(45, 212, 191, 0.14), transparent 55%),
    radial-gradient(900px 520px at 92% 8%, rgba(167, 139, 250, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0d16 0%, var(--bg) 42%, #06080d 100%);
}

/* Header — the wordmark is permanent; the breadcrumb is a separate row below it. */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
}

.wordmark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.55rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 320ms var(--ease);
}

.wordmark:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.25rem;
}

.top-nav a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: var(--step-meta);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--ink);
}

.top-nav a:hover::after,
.top-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.crumb {
  max-width: var(--shell);
  width: 100%;
  margin: 0 auto;
  padding: 0.25rem var(--gutter) 0;
  font-size: var(--step-meta);
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.crumb li + li::before {
  content: "/";
  color: rgba(154, 163, 184, 0.55);
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.crumb a:hover {
  color: var(--teal);
}

.crumb [aria-current="page"] {
  color: var(--ink);
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 3.5rem 0 3rem;
}

.hero-copy {
  animation: rise 700ms var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.brand {
  margin: 0 0 1.15rem;
  font-family: Fraunces, Georgia, serif;
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: var(--step-body);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero .lede {
  font-size: 1.3rem;
  color: #c3cad9;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--step-meta);
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-facts li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--teal);
}

/* The one authored moment: the gem cuts itself, then a single glint crosses it. */

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 2rem 2.5rem rgba(0, 0, 0, 0.55));
}

.facet {
  stroke: rgba(244, 246, 251, 0.42);
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  fill-opacity: 0;
  animation:
    cut 1400ms var(--ease) forwards,
    fill-in 900ms var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms), calc(500ms + var(--i, 0) * 70ms);
}

@keyframes cut {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fill-in {
  to {
    fill-opacity: 1;
  }
}

.glint {
  transform: translateX(-260px) skewX(-18deg);
  animation: glint 1500ms var(--ease) 1500ms forwards;
}

@keyframes glint {
  to {
    transform: translateX(300px) skewX(-18deg);
  }
}

.hero-art .floor {
  fill: rgba(45, 212, 191, 0.16);
  filter: blur(14px);
}

/* Sections */

.section {
  padding: 3rem 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin: 0 0 1.25rem;
}

.section-label {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: var(--step-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--step-body);
}

/* Product cards */

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(21, 26, 40, 0.92), rgba(16, 20, 31, 0.78));
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 220ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.product::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    420px 220px at var(--mx, 80%) var(--my, 0%),
    rgba(45, 212, 191, 0.13),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 260ms var(--ease);
}

.product:hover {
  border-color: rgba(45, 212, 191, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(0, 0, 0, 0.7);
}

.product:hover::before {
  opacity: 1;
}

.product h2,
.product h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.product h2 {
  font-size: var(--step-h2);
}

.product h3 {
  font-size: var(--step-h3);
}

.product p {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
}

.product .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--muted);
  font-size: var(--step-meta);
}

.product .meta-row strong {
  color: var(--ink);
  font-weight: 600;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: var(--teal);
  font-size: var(--step-meta);
  font-weight: 600;
}

.go svg {
  width: 1rem;
  height: 1rem;
  transition: transform 220ms var(--ease);
}

.product:hover .go svg {
  transform: translateX(4px);
}

.portal-card {
  padding: 2rem 2rem 1.75rem;
  border-color: rgba(45, 212, 191, 0.22);
}

.portal-card h3 {
  font-size: 2.5rem;
}

.portal-card p {
  max-width: 46ch;
  font-size: var(--step-body);
}

.desk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.desk-list li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: #c3cad9;
  font-size: var(--step-meta);
}

/* Children of Stats hang off a hairline branch so the hierarchy is visible. */

.branch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0 1.5rem;
  padding-top: 1rem;
}

.branch::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: -1rem;
  bottom: 50%;
  width: 1px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.5), rgba(45, 212, 191, 0.12));
}

.branch > .product:first-child::after {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  width: 1.5rem;
  height: 1px;
  background: rgba(45, 212, 191, 0.3);
}

.branch > .product {
  overflow: visible;
}

.branch-note {
  margin: 0 0 0.75rem 1.5rem;
  color: var(--muted);
  font-size: var(--step-meta);
}

/* Benefits */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 1.75rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.benefits li {
  display: grid;
  gap: 0.35rem;
}

.benefits strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.benefits span {
  color: var(--muted);
}

/* Agent endpoint ledger */

.endpoints {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(16, 20, 31, 0.7);
  overflow: hidden;
}

.endpoint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 0.95rem 1.15rem;
}

.endpoint + .endpoint {
  border-top: 1px solid var(--line);
}

.endpoint code {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--ink);
  scrollbar-width: none;
}

.endpoint code b {
  margin-right: 0.6rem;
  color: var(--teal);
  font-weight: 600;
}

.endpoint span {
  grid-column: 1;
  color: var(--muted);
  font-size: var(--step-meta);
}

.copy {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 4.75rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--step-meta);
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.copy:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.copy[data-state="done"] {
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.08);
}

.fine {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: var(--step-meta);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--teal-ink);
  box-shadow: 0 0.5rem 1.25rem -0.5rem rgba(0, 0, 0, 0.6);
}

.btn.primary:hover {
  background: #5eead4;
  border-color: #5eead4;
}

.btn.ghost:hover {
  background: rgba(244, 246, 251, 0.05);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Footer */

.site-footer {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
}

.site-footer .org {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.site-footer .meta,
.site-footer .disclaimer {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: var(--step-meta);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.15rem;
  margin-bottom: 1rem;
}

.legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--step-meta);
}

.legal a:hover {
  color: var(--teal);
}

/* Content pages */

.page {
  max-width: 44rem;
  padding-top: 3rem;
  animation: rise 550ms var(--ease) both;
}

.page.wide {
  max-width: var(--shell);
}

.page h1 {
  margin: 0 0 0.85rem;
  font-family: Fraunces, Georgia, serif;
  font-size: var(--step-h1);
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

.page h2 {
  margin: 2.75rem 0 0.65rem;
  font-family: Fraunces, Georgia, serif;
  font-size: var(--step-h2);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page h3 {
  margin: 0 0 0.35rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.page .lede {
  max-width: 36rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: #c3cad9;
}

.page p,
.page li {
  max-width: 68ch;
  color: var(--muted);
}

.page strong {
  color: var(--ink);
  font-weight: 600;
}

.audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.audience > div {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(21, 26, 40, 0.6);
}

.audience p {
  margin: 0;
}

.steps {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0 1rem 3rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 50%;
  color: var(--teal);
  font-size: var(--step-meta);
  font-weight: 600;
}

.steps strong {
  font-size: var(--step-body);
}

.callout {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(167, 139, 250, 0.05));
}

.callout p {
  margin: 0 0 1rem;
  color: #c3cad9;
}

/* Places */

.place-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(21, 26, 40, 0.92), rgba(16, 20, 31, 0.78));
}

.place-card h2 {
  margin: 0 0 0.5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.place-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.place-card h2 a:hover {
  color: var(--teal);
}

.place-card > div > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.place-gems {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-gems .product {
  padding: 1.15rem 1.25rem;
}

.place-gems .soon {
  padding: 1.15rem 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0.9rem;
  color: var(--muted);
}

.place-gems .soon strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #c3cad9;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.next-places {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Contact */

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--panel);
}

.contact-field {
  display: grid;
  gap: 0.4rem;
}

.contact-field span {
  font-size: var(--step-meta);
  font-weight: 600;
  color: var(--ink);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(45, 212, 191, 0.55);
  outline: none;
  box-shadow: 0 1px 0 rgba(45, 212, 191, 0.55);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-status {
  margin: 0;
  color: var(--teal);
  font-size: var(--step-meta);
}

.contact-status.error {
  color: var(--coral);
}

.direct {
  margin: 0 0 0.25rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .hero-art {
    order: -1;
    justify-self: start;
    width: 9rem;
  }

  .benefits,
  .place-card,
  .audience {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 1.15rem;
  }

  .top-inner {
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }

  .top-nav {
    gap: 0.25rem 1rem;
  }

  .branch {
    grid-template-columns: 1fr;
  }

  .branch > .product::after {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 50%;
    width: 1.5rem;
    height: 1px;
    background: rgba(45, 212, 191, 0.3);
  }

  .endpoint code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .branch::before {
    bottom: 1.5rem;
  }

  .portal-card,
  .place-card {
    padding: 1.5rem;
  }

  .portal-card h3,
  .place-card h2 {
    font-size: 2rem;
  }

  .hero .lede {
    font-size: 1.15rem;
  }
}
