:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-2: #090d10;
  --ink: #fffaf0;
  --soft: #d7d0c3;
  --muted: #a8a094;
  --line: rgba(255, 250, 240, 0.16);
  --line-strong: rgba(255, 250, 240, 0.32);
  --green: #5cff9d;
  --magenta: #ff4fd8;
  --cyan: #4fe8ff;
  --orange: #ff7a3d;
  --yellow: #fff06a;
  --max: 1180px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(92, 255, 157, 0.08), transparent 30%),
    linear-gradient(245deg, rgba(255, 79, 216, 0.08), transparent 34%),
    linear-gradient(180deg, #050607 0%, #090d10 44%, #050607 100%);
  color: var(--ink);
  font-family:
    "Space Grotesk",
    "Aptos",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

p {
  color: var(--muted);
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

::selection {
  background: var(--green);
  color: #06100a;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: var(--radius);
  background: var(--green);
  color: #06100a;
  padding: 0.7rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--green), var(--magenta), var(--orange), var(--cyan));
}

.cursor {
  position: fixed;
  z-index: 120;
  display: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: width 160ms ease, height 160ms ease, border-color 160ms ease, background 160ms ease;
  mix-blend-mode: difference;
}

.cursor.is-link {
  width: 3rem;
  height: 3rem;
  border-color: var(--ink);
  background: rgba(255, 250, 240, 0.08);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 1rem 3rem;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-elevated {
  border-color: var(--line);
  background: rgba(5, 6, 7, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  width: max-content;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 0.34rem);
  gap: 0.16rem;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--green);
}

.brand-mark span {
  display: block;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 1px;
  background: currentColor;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(6),
.brand-mark span:nth-child(8) {
  color: var(--magenta);
  background: currentColor;
}

.brand-mark span:nth-child(4),
.brand-mark span:nth-child(9) {
  color: var(--cyan);
  background: currentColor;
}

.site-nav {
  display: flex;
  gap: 1.35rem;
  color: var(--soft);
  font-size: 0.9rem;
}

.site-nav a,
.footer-links a {
  opacity: 0.76;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green);
  opacity: 1;
}

.nav-cta {
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.66rem 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.hero,
.section-panel,
.statement-panel,
.contact-panel {
  position: relative;
  padding: 8rem 3rem;
}

.hero {
  min-height: 96dvh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: clip;
}

#motion-canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.74;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.97) 0%, rgba(5, 6, 7, 0.72) 48%, rgba(5, 6, 7, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0) 70%, #050607 100%);
}

.light-sheet {
  position: absolute;
  z-index: -1;
  width: min(42rem, 86vw);
  height: 8rem;
  border: 1px solid rgba(255, 250, 240, 0.08);
  opacity: 0.5;
  transform: rotate(-18deg);
  filter: blur(0.4px);
}

.sheet-a {
  top: 18%;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(92, 255, 157, 0.18), transparent);
}

.sheet-b {
  right: 8rem;
  bottom: 13%;
  background: linear-gradient(90deg, transparent, rgba(255, 79, 216, 0.16), transparent);
}

.hero-grid,
.statement-grid,
.section-heading,
.expertise-list,
.outcomes-intro,
.outcome-grid,
.proof-copy,
.proof-stack,
.contact-card,
.site-footer {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: 4rem;
  align-items: end;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 14ch;
  margin-top: 1rem;
  color: var(--ink);
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  max-width: 13ch;
  font-size: 3.35rem;
}

h3 {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 42rem;
  margin-top: 1.45rem;
  color: var(--soft);
  font-size: 1.22rem;
}

.kinetic-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: baseline;
  min-height: 3rem;
  margin-top: 1.55rem;
  color: var(--soft);
  font-size: 1.45rem;
}

.kinetic-line strong {
  display: inline-block;
  color: var(--green);
  font-size: 2.1rem;
  line-height: 1;
  transform-origin: bottom left;
}

.kinetic-line strong.is-swapping {
  animation: wordSwap 520ms ease;
}

@keyframes wordSwap {
  0% {
    opacity: 0;
    transform: translateY(0.6rem) skewY(4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: #06100a;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--yellow);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--magenta);
  color: var(--magenta);
}

.hero-art {
  display: grid;
  gap: 1.25rem;
  align-self: center;
}

.glyph {
  display: grid;
  grid-template-columns: repeat(4, minmax(3.2rem, 1fr));
  gap: 0.55rem;
  transform: rotate(-7deg);
}

.glyph span {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.04);
}

.glyph span:nth-child(4n + 1) {
  background: rgba(92, 255, 157, 0.2);
}

.glyph span:nth-child(4n + 2) {
  background: rgba(255, 79, 216, 0.16);
}

.glyph span:nth-child(4n + 3) {
  background: rgba(79, 232, 255, 0.16);
}

.glyph span:nth-child(4n) {
  background: rgba(255, 122, 61, 0.15);
}

.art-copy {
  border-left: 1px solid var(--line-strong);
  padding-left: 1rem;
}

.art-copy span {
  color: var(--ink);
  font-weight: 850;
}

.art-copy p {
  max-width: 20rem;
  margin-top: 0.4rem;
}

.proof-strip {
  position: absolute;
  right: 3rem;
  bottom: 1.5rem;
  left: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statement-panel {
  min-height: 88dvh;
  display: grid;
  align-items: center;
  background: #050607;
}

.statement-grid {
  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 2rem;
}

.statement-grid p:not(.section-kicker),
.proof-copy p,
.contact-card p {
  max-width: 46rem;
  margin-top: 1.4rem;
  color: var(--soft);
  font-size: 1.2rem;
}

.section-panel {
  min-height: 100dvh;
}

.expertise-panel {
  background:
    linear-gradient(150deg, rgba(79, 232, 255, 0.08), transparent 30%),
    #090d10;
}

.section-heading {
  margin-bottom: 2.4rem;
}

.expertise-list {
  border-top: 1px solid var(--line);
}

.expertise-list details {
  border-bottom: 1px solid var(--line);
}

.expertise-list summary {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  min-height: 6.5rem;
  cursor: pointer;
  list-style: none;
}

.expertise-list summary::-webkit-details-marker {
  display: none;
}

.expertise-list summary span,
.outcome-grid span,
.proof-stack span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.expertise-list summary strong {
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
}

.expertise-list details p {
  max-width: 48rem;
  margin: 0 0 1rem 4rem;
  color: var(--soft);
  font-size: 1.08rem;
}

.expertise-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2rem 4rem;
}

.expertise-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.outcomes-panel {
  background:
    linear-gradient(35deg, rgba(255, 122, 61, 0.08), transparent 26%),
    linear-gradient(225deg, rgba(255, 79, 216, 0.08), transparent 32%),
    #050607;
}

.outcomes-intro {
  margin-bottom: 2.4rem;
}

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

.outcome-grid article {
  min-height: 18rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 250, 240, 0.035);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.outcome-grid article:hover {
  border-color: var(--line-strong);
  background: rgba(255, 250, 240, 0.055);
  transform: translateY(-3px);
}

.outcome-grid h3 {
  margin-top: 3.2rem;
  font-size: 1.55rem;
}

.proof-panel {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  background:
    linear-gradient(90deg, rgba(92, 255, 157, 0.08), transparent 35%),
    #090d10;
}

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

.proof-stack div {
  min-height: 15rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
}

.proof-stack p {
  margin-top: 1.2rem;
  font-size: 1.05rem;
}

.contact-panel {
  min-height: 86dvh;
  display: grid;
  place-items: center;
  overflow: clip;
  background: #050607;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background:
    linear-gradient(120deg, rgba(92, 255, 157, 0.1), transparent 50%),
    linear-gradient(250deg, rgba(255, 79, 216, 0.08), transparent 45%),
    rgba(255, 250, 240, 0.035);
}

.contact-card h2 {
  max-width: 12ch;
}

.contact-card .button {
  margin-top: 2rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 2rem 3rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 720ms ease, transform 720ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js details:not([open]) p,
.js details:not([open]) ul {
  display: none;
}

@media (min-width: 1180px) {
  h1 {
    font-size: 7.1rem;
  }

  h2 {
    font-size: 5.6rem;
  }
}

@media (min-width: 900px) and (max-width: 1179px) {
  h1 {
    font-size: 5.5rem;
  }

  h2 {
    font-size: 4.35rem;
  }

  .site-header,
  .hero,
  .section-panel,
  .statement-panel,
  .contact-panel {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .proof-strip {
    right: 2rem;
    left: 2rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
}

@media (max-width: 899px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0.85rem 1rem;
  }

  .site-nav {
    display: none;
  }

  .nav-cta {
    padding: 0.58rem 0.78rem;
    font-size: 0.82rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand span:last-child {
    max-width: 8.5rem;
    white-space: nowrap;
  }

  .hero,
  .section-panel,
  .statement-panel,
  .contact-panel {
    padding: 6.5rem 1rem;
  }

  .hero {
    min-height: 100dvh;
    padding-bottom: 8rem;
  }

  .light-sheet {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  h1 {
    font-size: 3.2rem;
    line-height: 0.94;
  }

  h2 {
    font-size: 2.72rem;
    line-height: 0.96;
  }

  .hero-lede,
  .statement-grid p:not(.section-kicker),
  .proof-copy p,
  .contact-card p {
    font-size: 1.05rem;
  }

  .kinetic-line {
    font-size: 1.1rem;
  }

  .kinetic-line strong {
    font-size: 1.55rem;
  }

  .hero-art {
    max-width: 17rem;
  }

  .glyph {
    grid-template-columns: repeat(4, 3rem);
  }

  .proof-strip {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    gap: 0.6rem 1rem;
    font-size: 0.7rem;
  }

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

  .expertise-list summary {
    grid-template-columns: 3rem 1fr;
    min-height: 5.8rem;
  }

  .expertise-list summary strong {
    font-size: 1.65rem;
  }

  .expertise-list details p,
  .expertise-list ul {
    margin-left: 3rem;
  }

  .outcome-grid,
  .proof-stack {
    grid-template-columns: 1fr;
  }

  .outcome-grid article,
  .proof-stack div {
    min-height: 12rem;
  }

  .outcome-grid h3 {
    margin-top: 2.2rem;
    font-size: 1.35rem;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 2rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2.34rem;
  }

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

  .button {
    width: 100%;
  }

  .glyph {
    grid-template-columns: repeat(4, 2.55rem);
    gap: 0.42rem;
  }

  .expertise-list summary strong {
    font-size: 1.42rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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