@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #fffdf6;
  --ink: #090909;
  --muted: #6d6d6d;
  --green: #47b64b;
  --purple: #875cff;
  --pink: #f45aa0;
  --blue: #5bc8ff;
  --yellow: #ffd91f;
  --coral: #ef6351;
  --coral-soft: #ffdcd4;
  --blue-soft: #d7ecfa;
  --radius: 26px;
  --max: 1060px;
  --stroke: 5px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(9, 9, 9, 0.18) 1.15px, transparent 1.15px);
  background-size: 18px 18px;
  font-family: "Nunito", ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.45;
}

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

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.brand:focus,
.brand:focus-visible {
  outline: none;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 58px;
  padding: 0 clamp(14px, 4vw, 36px);
  border-bottom: var(--stroke) solid var(--ink);
  background: rgba(255, 253, 246, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 1000;
}

.site-nav a,
.nav-toggle {
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  box-shadow: 0 3px 0 var(--ink);
}

.site-nav a:nth-child(2) {
  background: var(--coral);
  color: #fff;
}

.site-nav a:nth-child(3) {
  background: var(--pink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 3px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.hero {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 88px) 0 46px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  transform: rotate(-3deg);
  border: 4px solid var(--ink);
  border-radius: 10px;
  padding: 7px 16px;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 5px 0 var(--ink);
  font-size: 0.86rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 6.8rem);
  line-height: 0.88;
  font-weight: 1000;
  letter-spacing: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.12;
}

.hero-title .accent {
  color: var(--coral);
}

.hero-copy {
  max-width: 760px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  font-weight: 700;
}

.hero-tags,
.chip-row,
.rules-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.chip-row span,
.rules-list span {
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  box-shadow: 0 3px 0 var(--ink);
  font-size: 0.88rem;
  font-weight: 1000;
}

.hero-tags span:nth-child(1),
.chip-row span:nth-child(1) {
  background: var(--yellow);
}

.hero-tags span:nth-child(2),
.chip-row span:nth-child(2) {
  background: var(--green);
}

.hero-tags span:nth-child(3),
.chip-row span:nth-child(3) {
  background: var(--purple);
  color: #fff;
}

.action-box {
  width: min(820px, 100%);
  margin: 42px auto 0;
  border: var(--stroke) solid var(--ink);
  border-radius: 32px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 9px 0 var(--ink);
}

.arcade-button {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border: var(--stroke) solid var(--ink);
  border-radius: 18px;
  padding: 14px 22px;
  box-shadow: 0 7px 0 var(--ink);
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 1000;
  line-height: 1.1;
}

.action-box .arcade-button {
  width: min(330px, 100%);
  margin: 0 5px 12px;
}

.arcade-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 0 var(--ink);
}

.arcade-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.arcade-button.primary {
  background: var(--coral);
  color: #fff;
}

.arcade-button.secondary {
  background: #fff;
}

.action-box p {
  max-width: 690px;
  margin: 4px auto 0;
  color: var(--muted);
  font-weight: 800;
}

.action-box p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.section {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 74px) 0;
  text-align: center;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  font-weight: 1000;
}

.category-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border: var(--stroke) solid var(--ink);
  border-radius: 28px;
  padding: 32px;
  text-align: left;
  background: #fff;
  box-shadow: 0 8px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.category-card:nth-child(1) {
  background: var(--coral-soft);
}

.category-card:nth-child(2) {
  background: var(--blue-soft);
}

.step-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 1000;
}

.card-emoji {
  display: block;
  margin-left: 54px;
  font-size: 1.55rem;
}

h3 {
  margin: 16px 0 10px;
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 1000;
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.section-copy,
.contact-box p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-weight: 700;
}

.category-card p {
  color: var(--ink);
  font-weight: 700;
}

.chip-row {
  justify-content: flex-start;
  margin-top: 18px;
}

.chip-row span {
  font-size: 0.78rem;
  padding: 5px 9px;
  border-width: 3px;
  box-shadow: none;
}

.app-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.app-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  background: #fff;
  box-shadow: 0 4px 0 var(--ink);
  font-size: 1.02rem;
  font-weight: 1000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.app-row a::after {
  content: "→";
  font-size: 0.95em;
}

.app-row a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.app-row a:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

.rules-list {
  max-width: 820px;
  margin: 0 auto;
}

.rules-list span:nth-child(3n + 1) {
  background: var(--blue);
}

.rules-list span:nth-child(3n + 2) {
  background: var(--pink);
}

.rules-list span:nth-child(3n + 3) {
  background: var(--green);
}

.policy-section {
  padding-top: clamp(70px, 10vw, 110px);
}

.section-copy {
  max-width: 680px;
  margin: -10px auto 22px;
  font-size: 1.08rem;
}

.policy-links {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.policy-links a {
  min-height: 180px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 5px 0 var(--ink);
  font-weight: 1000;
  text-align: left;
}

.policy-links a:nth-child(2) {
  background: var(--blue);
}

.policy-links a:nth-child(3) {
  background: var(--pink);
}

.policy-links strong,
.policy-links span {
  display: block;
}

.policy-links strong {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1;
}

.policy-links span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 800;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 940px;
  margin: 0 auto;
  text-align: left;
}

.why-item h3 {
  margin: 0 0 8px;
  font-size: 1.32rem;
  color: var(--coral);
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 720px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 420px;
  }
}

.contact-box {
  width: min(860px, calc(100% - 28px));
  margin: 38px auto 76px;
  border: var(--stroke) solid var(--ink);
  border-radius: 32px;
  padding: clamp(22px, 4vw, 34px);
  text-align: center;
  background: #fff;
  box-shadow: 0 9px 0 var(--ink);
}

.notify-box {
  margin-bottom: 38px;
  background: var(--blue-soft);
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 560px;
  margin: 20px auto 0;
}

.notify-input {
  flex: 1 1 260px;
  min-height: 62px;
  border: var(--stroke) solid var(--ink);
  border-radius: 18px;
  padding: 14px 20px;
  background: #fff;
  box-shadow: 0 7px 0 var(--ink);
  font: inherit;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--ink);
}

.notify-input::placeholder {
  color: var(--muted);
}

.notify-input:focus {
  outline: none;
}

.notify-input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.notify-form .arcade-button {
  flex: 0 0 auto;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-sticker {
  display: inline-grid;
  width: 84px;
  height: 84px;
  place-items: center;
  margin-bottom: 18px;
  transform: rotate(-4deg);
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--ink);
  font-size: 2.4rem;
}

.app-sticker.pink {
  background: var(--pink);
}

.app-sticker.blue {
  background: var(--blue);
}

.app-sticker.green {
  background: var(--green);
}

.contact-box h2 {
  margin-bottom: 10px;
}

.contact-box .arcade-button {
  margin-top: 14px;
}

.site-footer {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 30px 0 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  color: var(--muted);
  font-weight: 900;
}

/* The wordmark and the copyright line must not break mid-phrase when the
   footer runs out of room — let the footer wrap instead. */
.footer-brand span,
.site-footer .copyright {
  white-space: nowrap;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-page {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 76px 0;
}

.legal-content {
  border: var(--stroke) solid var(--ink);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  box-shadow: 0 8px 0 var(--ink);
}

.legal-content h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  text-align: left;
}

.legal-content a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.updated {
  margin: 14px 0 24px;
  color: var(--muted);
  font-weight: 900;
}

.legal-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 20px;
}

.legal-content th,
.legal-content td {
  padding: 14px;
  border-bottom: 3px solid var(--ink);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--blue);
}

.legal-content tr:last-child td {
  border-bottom: 0;
}

.notice {
  margin-top: 22px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  background: var(--blue-soft);
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 4px solid var(--ink);
    border-radius: 20px;
    padding: 10px;
    background: #fff;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .category-board {
    grid-template-columns: 1fr;
  }

  .policy-links {
    grid-template-columns: 1fr;
  }

  .policy-links a {
    min-height: 0;
  }

  .category-card:nth-child(2),
  .category-card:nth-child(3) {
    transform: none;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.05rem, 16vw, 4rem);
  }

  .action-box .arcade-button,
  .contact-box .arcade-button {
    width: 100%;
  }

  .site-header {
    height: 62px;
  }

  .brand span:last-child {
    font-size: 0.86rem;
  }
}

/* ---------- Studio pages ---------- */

.arcade-button.small {
  min-height: 52px;
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 5px 0 var(--ink);
  font-size: 1.02rem;
}

.arcade-button.small:hover {
  box-shadow: 0 7px 0 var(--ink);
}

.arcade-button.small:active {
  box-shadow: 0 2px 0 var(--ink);
}

.page-head {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 76px) 0 10px;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1.04;
}

.page-lede {
  max-width: 730px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 700;
}

.pillar-card .app-sticker {
  margin-bottom: 16px;
}

.pillar-card .chip-row {
  margin-bottom: 26px;
}

.pillar-card .arcade-button {
  margin-top: auto;
  align-self: flex-start;
}

.service {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) 0;
  text-align: left;
}

.service + .service {
  border-top: var(--stroke) solid var(--ink);
}

.service h2 {
  margin-bottom: 14px;
}

.service-lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.service .chip-row {
  justify-content: flex-start;
  margin-top: 20px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.pipeline-step {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 62px 18px 18px;
  background: #fff;
  box-shadow: 0 5px 0 var(--ink);
}

.pipeline-step .step-badge {
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

.pipeline-step strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.15;
}

.pipeline-step span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.stat {
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 18px;
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--ink);
}

.stat strong {
  display: block;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.work-empty {
  margin-top: 26px;
  border: 4px dashed var(--ink);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 46px);
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

.work-empty p {
  max-width: 540px;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 700;
}

.work-empty .arcade-button {
  margin-top: 22px;
}

/* ---------- Motion ---------- */

.site-header {
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 0 rgba(9, 9, 9, 0.09);
}

/* Scroll reveal. Gated on .js so content still shows if the script fails. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .hero > *,
.js .page-head > * {
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js .hero > *:nth-child(1),
.js .page-head > *:nth-child(1) {
  animation-delay: 0.05s;
}

.js .hero > *:nth-child(2),
.js .page-head > *:nth-child(2) {
  animation-delay: 0.16s;
}

.js .hero > *:nth-child(3),
.js .page-head > *:nth-child(3) {
  animation-delay: 0.27s;
}

.js .hero > *:nth-child(4) {
  animation-delay: 0.38s;
}

/* Cards get the same press feel as the buttons */
.category-card,
.stat,
.legal-content {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 0 var(--ink);
}

.stat:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 8px 0 var(--ink);
}

.app-sticker {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service:hover .app-sticker,
.pillar-card:hover .app-sticker {
  transform: rotate(5deg) scale(1.07);
}

/* Ticker band */
.marquee {
  display: flex;
  overflow: hidden;
  margin: 0;
  border-top: var(--stroke) solid var(--ink);
  border-bottom: var(--stroke) solid var(--ink);
  background: var(--coral);
  color: #fff;
  padding: 13px 0;
  user-select: none;
}

.marquee-inner {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  animation: marquee 30s linear infinite;
}

.marquee span {
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* Pipeline illustration *//* Scroll-driven run. The section is tall; the panel pins and the steps advance
   with scroll position, so the animation tracks the finger rather than a clock. */
.runner {
  margin-top: 30px;
}

.runner.is-scroll-driven {
  height: 260vh;
  margin-top: 40px;
}

.runner-panel {
  border: var(--stroke) solid var(--ink);
  border-radius: 26px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 8px 0 var(--ink);
}

.runner.is-scroll-driven .runner-panel {
  position: sticky;
  top: 84px;
}

.runner-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.runner-caption b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.runner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.runner-step {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 58px 18px 18px;
  background: #fff;
  box-shadow: 0 5px 0 var(--ink);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Dimming only kicks in once the scroll driver is confirmed live, so a JS
   failure leaves every step plainly readable. */
.runner.is-scroll-driven .runner-step {
  opacity: 0.38;
}

.runner.is-scroll-driven .runner-step.is-done {
  opacity: 1;
}

.runner.is-scroll-driven .runner-step.is-active {
  opacity: 1;
  transform: translateY(-6px);
  background: var(--yellow);
  box-shadow: 0 12px 0 var(--ink);
}

.runner-step .step-badge {
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  transition: background-color 0.35s ease;
}

.runner-step.is-done .step-badge {
  background: var(--green);
}

.runner-step strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.15;
}

.runner-step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.runner-step.is-active p {
  color: var(--ink);
}

.runner-code {
  position: relative;
  display: block;
  margin-top: 9px;
  min-height: 1.3em;
}

.runner-code span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.runner-code span:last-child {
  position: absolute;
  inset: 0;
  color: var(--ink);
  opacity: 0;
}

.runner.is-scroll-driven .runner-step.is-active .runner-code span:first-child,
.runner.is-scroll-driven .runner-step.is-done .runner-code span:first-child {
  opacity: 0;
}

.runner.is-scroll-driven .runner-step.is-active .runner-code span:last-child,
.runner.is-scroll-driven .runner-step.is-done .runner-code span:last-child {
  opacity: 1;
}

/* Without the driver the finished name is the useful one to show. */
.runner:not(.is-scroll-driven) .runner-code span:first-child {
  opacity: 0;
}

.runner:not(.is-scroll-driven) .runner-code span:last-child {
  opacity: 1;
}

.runner-out {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.runner-out span {
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 9px 17px;
  background: #fff;
  box-shadow: 0 4px 0 var(--ink);
  font-size: 0.88rem;
  font-weight: 1000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.runner-out span.is-live {
  transform: translateY(-3px) scale(1.04);
  background: var(--green);
}

.runner-rail {
  overflow: hidden;
  margin-top: 20px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  height: 12px;
  background: var(--paper);
}

.runner-rail span {
  display: block;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.runner:not(.is-scroll-driven) .runner-rail {
  display: none;
}

/* The step counter is meaningless without the scroll driver — it would sit
   at "0 / 3" forever on phones. */
.runner:not(.is-scroll-driven) .runner-caption span:last-child {
  display: none;
}

/* Header scroll-progress hairline, sitting on the header's bottom border */
.scroll-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--stroke) * -1);
  height: var(--stroke);
  overflow: hidden;
  pointer-events: none;
}

.scroll-bar span {
  display: block;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Headline lines rise out of a mask */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .line > span {
  display: block;
}

@keyframes lineUp {
  from {
    transform: translateY(106%);
  }
  to {
    transform: none;
  }
}

.js .hero-title {
  animation: none;
}

.js .hero-title .line > span {
  animation: lineUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js .hero-title .line:nth-child(1) > span {
  animation-delay: 0.08s;
}

.js .hero-title .line:nth-child(2) > span {
  animation-delay: 0.22s;
}

.stat strong {
  font-variant-numeric: tabular-nums;
}

/* Cross-page transitions where the browser supports them */
@view-transition {
  navigation: auto;
}

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .hero > *,
  .js .page-head > *,
  .js .hero-title .line > span,
  .marquee-inner {
    animation: none;
  }

  .category-card:hover,
  .stat:hover,
  .service:hover .app-sticker,
  .pillar-card:hover .app-sticker {
    transform: none;
  }

  @view-transition {
    navigation: none;
  }
}

/* ---------- Icons (Lucide, ISC — see assets/icons/) ---------- */

.icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.app-sticker .icon {
  width: 44px;
  height: 44px;
  color: var(--ink);
}

.arcade-button .icon {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.55em;
}

/* ---------- Custom cursor ----------

   Drawn in the site's own language: a chunky sticker arrow, coral fill, heavy
   black outline. Earlier attempts used a generic black ring with a dot chasing
   it — a stock "designer site" cursor that had nothing to do with this brand,
   covered the content, and hid what you were pointing at.

   An arrow still reads as a cursor, so precision is intact; the label appears
   beside it rather than replacing it. */

/* Only engaged by JS on a real pointer, so touch and no-JS keep the native one. */
.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor .arcade-button {
  cursor: none;
}

.has-cursor input,
.has-cursor textarea {
  cursor: text;
}

.cursor {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

/* The arrow tip sits on the pointer, so the whole thing is nudged up and left
   by the tip's offset inside the SVG. */
.cursor-arrow {
  display: block;
  width: 30px;
  height: 30px;
  margin: -3px 0 0 -6px;
  transform-origin: 6px 3px;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cursor.is-hot .cursor-arrow {
  transform: scale(1.18) rotate(-8deg);
}

.cursor.is-pressed .cursor-arrow {
  transform: scale(0.86);
}

/* Sticker tag that pops out beside the arrow over a card */
.cursor-tag {
  position: absolute;
  top: 24px;
  left: 20px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 11px;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.6) rotate(-6deg);
  transform-origin: 0 0;
  transition: opacity 0.16s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cursor.is-labelled .cursor-tag {
  opacity: 1;
  transform: scale(1) rotate(-4deg);
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor {
    display: none;
  }

  .has-cursor,
  .has-cursor a,
  .has-cursor button,
  .has-cursor .arcade-button {
    cursor: auto;
  }
}
