@font-face {
  font-family: "Anonymous Pro";
  src: url("fonts/AnonymousPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-var.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0c0f1d;
  --panel: #131830;
  --line: #29315a;
  --text: #e4e8f6;
  --muted: #a3acd0;
  --amber: #ffb23e;
  --amber-soft: rgba(255, 178, 62, 0.12);
  --amber-line: rgba(255, 178, 62, 0.5);
  --plate: #f1f3fa;
  --display: "Anonymous Pro", "Courier New", monospace;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 84rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 100%;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}


* {
  touch-action: pan-x pan-y;
}

body {
  margin: 0;
  font-size: 1.125rem;
}

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


@media (hover: hover) {
  a:hover {
    color: var(--amber);
  }
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 2px;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--amber);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 10;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

@media (hover: hover) {
  .brand:hover {
    color: var(--text);
  }
}


.prompt {
  color: var(--amber);
  white-space: nowrap;
}

.prompt::before {
  content: ">";
}

.prompt::after {
  content: "_";
}

.brand .prompt {
  margin-left: 0.08em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  font-size: 1rem;
}


.nav a {
  padding: 0.6rem 0.3rem;
  margin: -0.6rem -0.3rem;
  color: var(--muted);
  text-decoration: none;
}

@media (hover: hover) {
  .nav a:hover {
    color: var(--amber);
  }
}

.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem 3rem;
}

.section-title {
  text-wrap: balance;
  font-size: clamp(1.7rem, 3.4vw, 2.1rem);
}

.section-title-wide {
  margin-bottom: 2rem;
}

.measure {
  max-width: 62ch;
}

.page-head {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.page-title {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-intro {
  max-width: 52ch;
  text-wrap: balance;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.5;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.foot a {
  padding: 0.5rem 0;
  margin: -0.5rem 0;
  color: var(--muted);
}

@media (hover: hover) {
  .foot a:hover {
    color: var(--amber);
  }
}

.nf {
  padding: clamp(4rem, 12vw, 9rem) 0;
}

.nf-title {
  font-size: clamp(3rem, 14vw, 7rem);
}

.lead {
  text-wrap: balance;
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 600;
}

.more {
  margin: 1.75rem 0 0;
}

.bullets li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--amber);
}

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

.card {
  border-top: 2px solid var(--amber);
  padding-top: 1rem;
}

.card-title {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}


.certs li {
  padding: 0.5rem 0;
}

.certs li:first-child {
  padding-top: 0;
}


.platform-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.platform-logos + .platform-logos {
  margin-top: 0.75rem;
}

.platform-logos li {
  height: 4rem;
  overflow: hidden;
  border-radius: 4px;
}


.platform-logos-small li {
  height: 3rem;
}

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

.client-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.client {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  min-height: 3.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.client:focus-visible {
  border-color: var(--amber);
  background: var(--panel);
}

@media (hover: hover) {
  .client:hover {
    border-color: var(--amber);
    background: var(--panel);
  }
}


.client-grid-home {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
}

.client-more {
  justify-content: center;
  border-style: dashed;
  font-weight: 600;
}

.client-logo {
  display: flex;
  flex: 0 0 4.5rem;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 2.5rem;
  padding: 0.3rem 0.4rem;
  background: var(--plate);
  border-radius: 4px;
}

.client-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.client-mono {
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

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

.ref-intro {
  color: var(--muted);
  margin-bottom: 2rem;
}

.ref {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--amber);
}


.ref-text {
  margin: 0 0 0.75rem;
  font-style: italic;
  text-indent: -0.37em;
}

.ref-who {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.ref-who strong {
  color: var(--text);
  font-weight: 600;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-list {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.contact-list dt {
  color: var(--muted);
  font-size: 1rem;
}

.contact-list dd {
  margin: 0.15rem 0 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3rem 3rem;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-title {
  font-size: clamp(2.8rem, 15.5vw, 12.5rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero-title .prompt {
  display: block;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem 3rem;
  align-items: start;
  margin-top: 2.25rem;
}

.hero-lede {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  line-height: 1.3;
  font-weight: 600;
  max-width: 24ch;
}

.hero-sub {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

.boundary {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: 2rem 1.25rem 1.25rem;
  border: 1px dashed var(--amber-line);
  border-radius: 6px;
}

.boundary-label {
  position: absolute;
  top: -0.85rem;
  left: 1.25rem;
  margin: 0;
  padding: 0 0.6rem;
  background: var(--ink);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: balance;
}

.flow {
  display: flex;
  align-items: stretch;
}

.node {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--amber);
  border-radius: 4px;
  box-shadow: 0 0 0 4px var(--amber-soft);
}


.node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: rgba(255, 178, 62, 0.03);
  box-shadow: 0 0 22px 2px rgba(255, 178, 62, 0.22);
  opacity: 0;
  pointer-events: none;
}

.node-name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
}

.node-note {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
  text-wrap: balance;
}


.trace {
  margin: 1.25rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid transparent;
  background:
    linear-gradient(90deg, transparent, var(--amber), transparent) -50% 0 / 30% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat;
  background-origin: border-box;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
  text-wrap: balance;
}

.wire {
  position: relative;
  flex: 0 0 clamp(2.5rem, 7vw, 6rem);
  align-self: center;
  height: 2px;
  margin: 0 0.5rem;
  background: var(--line);
}

.wire::before {
  content: "";
  position: absolute;
  right: 2px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: rotate(45deg);
}

.wire::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
}

@media (min-width: 62rem) {
  .hero .hero-title {
    font-size: clamp(5.5rem, 10vw, 9rem);
  }
}



@media (max-width: 52rem) {
  .hero-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-grid,
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards,
  .refs {
    grid-template-columns: minmax(0, 1fr);
  }

  .about .portrait {
    max-width: 14rem;
  }
}

@media (max-width: 52rem) {
  .client-grid-home {
    column-gap: 0.75rem;
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 1.0625rem;
  }

  .client-grid-home {
    grid-template-columns: minmax(0, 1fr);
  }

  
  .top {
    column-gap: 0.75rem;
  }

  .nav {
    column-gap: 0.95rem;
  }

  .brand .prompt {
    letter-spacing: -0.06em;
  }

  .boundary {
    padding: 1rem 0.9rem 0.9rem;
  }

  .boundary-label {
    position: static;
    padding: 0;
    margin: 0 0 0.9rem;
    background: none;
  }

  .flow {
    flex-direction: column;
    align-items: stretch;
  }

  .wire {
    flex-basis: 2.75rem;
    align-self: flex-start;
    width: 2px;
    height: 2.75rem;
    margin: 0.5rem 0 0.5rem 1.5rem;
  }

  .wire::before {
    right: auto;
    top: auto;
    left: -4px;
    bottom: 2px;
    transform: rotate(135deg);
  }

  .wire::after {
    left: -4px;
    top: 0;
  }

  .contact-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .prompt::after {
    animation: prompt-breathe 3.2s ease-in-out infinite;
  }

  @keyframes prompt-breathe {
    0%,
    100% {
      opacity: 0.15;
    }
    50% {
      opacity: 1;
    }
  }

  .node {
    animation: node-on 0.5s ease-out both;
  }

  .node:nth-of-type(1) {
    animation-delay: 0.2s;
  }

  .node:nth-of-type(2) {
    animation-delay: 1.35s;
  }

  .node:nth-of-type(3) {
    animation-delay: 2.45s;
  }

  .node::after {
    animation: node-glow 10s ease-in-out infinite;
  }

  .node:nth-of-type(1)::after {
    animation-delay: 5s;
  }

  .node:nth-of-type(2)::after {
    animation-delay: 6.3s;
  }

  .node:nth-of-type(3)::after {
    animation-delay: 7.6s;
  }

  .wire::after {
    animation: packet-x 0.9s ease-in-out both, packet-loop-x 10s linear infinite;
  }

  .wire:nth-of-type(1)::after {
    animation-delay: 0.45s, 5.6s;
  }

  .wire:nth-of-type(2)::after {
    animation-delay: 1.55s, 6.9s;
  }

  .trace {
    animation: trace-sweep 10s ease-in-out 8.3s infinite;
  }

  @keyframes node-on {
    from {
      border-color: var(--line);
      box-shadow: 0 0 0 0 transparent;
    }
    to {
      border-color: var(--amber);
      box-shadow: 0 0 0 4px var(--amber-soft);
    }
  }

  @keyframes node-glow {
    0% {
      opacity: 0;
    }
    5% {
      opacity: 1;
    }
    14%,
    100% {
      opacity: 0;
    }
  }

  @keyframes packet-x {
    0% {
      left: 0;
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    88% {
      opacity: 1;
    }
    100% {
      left: calc(100% - 10px);
      opacity: 0;
    }
  }

  @keyframes packet-loop-x {
    0% {
      left: 0;
      opacity: 0;
    }
    1.5% {
      left: 0;
      opacity: 1;
      animation-timing-function: ease-in-out;
    }
    7.5% {
      left: calc(100% - 10px);
      opacity: 1;
    }
    9%,
    100% {
      left: calc(100% - 10px);
      opacity: 0;
    }
  }

  @keyframes trace-sweep {
    0% {
      background-position: -50% 0, 0 0;
    }
    12%,
    100% {
      background-position: 160% 0, 0 0;
    }
  }

  @media (max-width: 40rem) {
    .wire::after {
      animation-name: packet-y, packet-loop-y;
    }

    @keyframes packet-y {
      0% {
        top: 0;
        opacity: 0;
      }
      12% {
        opacity: 1;
      }
      88% {
        opacity: 1;
      }
      100% {
        top: calc(100% - 10px);
        opacity: 0;
      }
    }

    @keyframes packet-loop-y {
      0% {
        top: 0;
        opacity: 0;
      }
      1.5% {
        top: 0;
        opacity: 1;
        animation-timing-function: ease-in-out;
      }
      7.5% {
        top: calc(100% - 10px);
        opacity: 1;
      }
      9%,
      100% {
        top: calc(100% - 10px);
        opacity: 0;
      }
    }
  }
}
