:root {
  color-scheme: light;
  --ink: #111614;
  --muted: #53605b;
  --paper: #f8faf7;
  --surface: #ffffff;
  --line: #dce4de;
  --teal: #0a6f65;
  --teal-dark: #064c46;
  --coral: #dc633f;
  --lime: #d6f04a;
  --yellow: #f3c94c;
  --soft-line: rgba(17, 22, 20, 0.14);
  --shadow: 0 28px 80px rgba(17, 22, 20, 0.09);
  --max-width: 1120px;
  --look-x: 0px;
  --look-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 111, 101, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 111, 101, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

.custom-cursor-ready,
.custom-cursor-ready a,
.custom-cursor-ready button,
.custom-cursor-ready [role="button"] {
  cursor: none;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-150%);
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--lime);
  padding: 0.7rem 1rem;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(17, 22, 20, 0.09);
  background: rgba(248, 250, 247, 0.94);
  backdrop-filter: blur(18px);
}

.circuit-cursor {
  --cursor-scale: 1;
  position: fixed;
  top: -29px;
  left: -29px;
  z-index: 100;
  display: none;
  width: 58px;
  height: 58px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 160ms ease;
}

.custom-cursor-ready .circuit-cursor {
  display: block;
}

.circuit-cursor.is-link {
  --cursor-scale: 1.08;
}

.circuit-cursor.is-pressed {
  --cursor-scale: 0.92;
}

.cursor-wires {
  position: absolute;
  inset: 0;
  overflow: visible;
  fill: none;
  stroke: var(--teal-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  filter: drop-shadow(1px 1px 0 rgba(214, 240, 74, 0.45));
  transform: scale(var(--cursor-scale));
  transform-origin: center;
  transition: transform 160ms ease;
}

.cursor-wires path {
  stroke-dasharray: 12 10;
  animation: circuit-pulse 1100ms linear infinite;
}

.cursor-wires circle {
  fill: var(--lime);
  stroke: var(--ink);
  stroke-width: 2;
}

.cursor-chip {
  position: absolute;
  top: 21px;
  left: 21px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 43%, rgba(255, 255, 255, 0.35) 43% 57%, transparent 57%),
    var(--teal);
  box-shadow: 0 0 0 3px rgba(10, 111, 101, 0.1);
  transform: scale(var(--cursor-scale));
  transform-origin: center;
  transition: transform 160ms ease;
}

.scroll-meter {
  position: fixed;
  top: 96px;
  right: 21px;
  z-index: 9;
  width: 2px;
  height: calc(100vh - 192px);
  border-radius: 999px;
  background: rgba(17, 22, 20, 0.13);
  overflow: hidden;
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: top;
}

.journey-nav {
  position: fixed;
  top: 50%;
  right: 10px;
  z-index: 10;
  display: grid;
  gap: 0.72rem;
  transform: translateY(-50%);
}

.journey-dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-decoration: none;
}

.journey-dot::before {
  position: absolute;
  inset: 7px;
  border: 1px solid var(--teal-dark);
  border-radius: inherit;
  background: var(--paper);
  content: "";
  transition:
    inset 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.journey-dot span {
  position: absolute;
  top: 50%;
  right: 30px;
  min-width: max-content;
  transform: translateY(-50%) translateX(8px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.25rem 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.journey-dot:hover span,
.journey-dot:focus-visible span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.journey-dot.is-active::before {
  inset: 4px;
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--ink);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--lime);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface);
  color: var(--ink);
  outline: 2px solid transparent;
}

main {
  isolation: isolate;
  overflow: hidden;
}

.story-panel {
  scroll-margin-top: 88px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 3.25rem;
  align-items: center;
  width: min(var(--max-width), calc(100% - 2rem));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
}

.hero::after {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 96px;
  height: 54px;
  border-right: 1px solid rgba(10, 111, 101, 0.16);
  border-bottom: 1px solid rgba(10, 111, 101, 0.16);
  content: "";
  pointer-events: none;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow,
.section-kicker,
.work-label {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.25rem, 5.1vw, 4.55rem);
  text-wrap: balance;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.32rem;
}

.hero-lede,
.section-heading p,
.contact-section p {
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-lede {
  max-width: 64ch;
  margin-bottom: 2rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 22, 20, 0.12);
  outline: 2px solid transparent;
}

.button-primary {
  background: var(--ink);
  color: var(--surface);
}

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

.button-secondary {
  background: var(--surface);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2.4rem 0 0;
}

.signal-strip div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.9rem;
}

.signal-strip dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-strip dd {
  margin: 0.2rem 0 0;
  font-weight: 900;
}

.system-board {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translate3d(calc(var(--look-x) * -0.12), calc(var(--look-y) * -0.12), 0);
  transition: transform 220ms ease-out;
}

.board-header,
.board-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  font-size: 0.84rem;
  font-weight: 900;
}

.board-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--teal-dark);
  color: var(--surface);
}

.status-dot {
  position: relative;
  padding-left: 1rem;
}

.status-dot::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(10, 111, 101, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 111, 101, 0.075) 1px, transparent 1px),
    #f4f8f3;
  background-size: 28px 28px;
}

.flow-node {
  min-height: 138px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.flow-node:hover,
.flow-node:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(17, 22, 20, 0.1);
}

.flow-node span,
.card-number {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.flow-node strong,
.flow-node small {
  display: block;
}

.flow-node strong {
  font-size: 1.08rem;
}

.flow-node small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 750;
}

.quality span {
  background: var(--yellow);
}

.platform span {
  background: var(--coral);
  color: var(--surface);
}

.mlops span {
  background: var(--teal);
  color: var(--surface);
}

.board-footer {
  border-top: 1px solid rgba(17, 22, 20, 0.12);
  background: var(--lime);
  flex-wrap: wrap;
}

.logo-band,
.section,
.quote-section,
.contact-section,
.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.logo-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 0;
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.client-strip span {
  display: grid;
  place-items: center;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.8rem;
  font-size: 1.05rem;
  font-weight: 950;
  text-align: center;
}

.section,
.quote-section,
.contact-section {
  padding: 6rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading.compact {
  max-width: 680px;
}

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

.expertise-card,
.work-item,
.principles article,
.quote-grid figure {
  border: 1px solid rgba(17, 22, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.expertise-card {
  padding: 1.2rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.expertise-card:hover,
.expertise-card:focus-within {
  border-color: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(17, 22, 20, 0.1);
}

.expertise-card p,
.work-item p,
.principles p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-list {
  display: grid;
  gap: 0.9rem;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.work-item:hover,
.work-item:focus-within {
  border-color: var(--ink);
  transform: translateX(4px);
  box-shadow: -3px 0 0 var(--lime);
}

.work-item h3 {
  margin-bottom: 0;
}

.quote-section {
  padding-bottom: 3rem;
}

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

.quote-grid figure {
  margin: 0;
  padding: 1.35rem;
}

blockquote {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.42;
}

figcaption {
  color: var(--teal);
  font-weight: 900;
}

.approach-section {
  padding-top: 3rem;
}

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

.principles article {
  padding: 1.2rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  border: 1px solid rgba(17, 22, 20, 0.18);
  border-radius: 8px;
  background: var(--teal-dark);
  color: var(--surface);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-section .eyebrow,
.contact-section p {
  color: #ccece5;
}

.contact-section h2 {
  margin-bottom: 0.7rem;
}

.contact-section p {
  margin-bottom: 0;
}

.contact-actions {
  justify-content: flex-end;
}

.contact-section .button-primary {
  background: var(--lime);
  color: var(--ink);
}

.contact-section .button-secondary {
  background: transparent;
  color: var(--surface);
  border-color: var(--surface);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

@keyframes circuit-pulse {
  to {
    stroke-dashoffset: -22;
  }
}

@media (min-width: 981px) {
  body {
    scroll-snap-type: none;
  }

  .story-panel {
    scroll-snap-align: none;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    padding-top: 4rem;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(3rem, 8vw, 4rem);
  }

  h2 {
    font-size: 2.2rem;
  }

  .expertise-grid,
  .client-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .scroll-meter,
  .journey-nav,
  .circuit-cursor {
    display: none;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-links a {
    padding-left: 0;
  }

  .hero {
    padding-top: 3rem;
  }

  h1 {
    max-width: 100%;
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .hero-lede,
  .section-heading p,
  .contact-section p {
    font-size: 1rem;
  }

  .signal-strip,
  .flow-grid,
  .expertise-grid,
  .client-strip,
  .quote-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .system-board,
  .contact-section {
    box-shadow: 0 18px 42px rgba(17, 22, 20, 0.1);
  }

  .work-item {
    grid-template-columns: 1fr;
  }

  .section,
  .quote-section,
  .contact-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .contact-section {
    padding: 1.25rem;
  }

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

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

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

  .system-board {
    transform: none;
  }

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

@media (max-width: 430px) {
  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .board-header,
  .board-footer {
    flex-direction: column;
    gap: 0.35rem;
  }
}