:root {
  --bg: #07090e;
  --bg-soft: #0d1119;
  --panel: rgba(17, 22, 33, 0.72);
  --panel-strong: rgba(17, 23, 35, 0.94);
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(255, 255, 255, 0.22);
  --text: #f4f6fb;
  --muted: #a3adbd;
  --dim: #667084;
  --violet: #9b7cff;
  --cyan: #55dff8;
  --green: #84f6bd;
  --orange: #ff9b70;
  --max: 1240px;
  --header: 72px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background:
    radial-gradient(circle at 12% -10%, rgba(117, 85, 255, 0.16), transparent 33rem),
    radial-gradient(circle at 92% 35%, rgba(39, 203, 230, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

::selection {
  background: rgba(155, 124, 255, 0.4);
  color: #fff;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: #05070b;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

#field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.68;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, #fff 0 0.5px, transparent 0.7px 3px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}

.cursor-glow {
  position: fixed;
  z-index: 2;
  width: 28rem;
  height: 28rem;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 102, 255, 0.12), rgba(70, 202, 255, 0.045) 32%, transparent 68%);
  filter: blur(12px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 240ms ease;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green));
  box-shadow: 0 0 16px rgba(85, 223, 248, 0.7);
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 50%;
  width: min(calc(100% - 2rem), var(--max));
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, width 240ms ease;
}

.site-header.is-scrolled {
  width: 100%;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  border-color: var(--line);
  background: rgba(7, 9, 14, 0.76);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  justify-self: start;
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 0.65rem;
  background: linear-gradient(145deg, rgba(155, 124, 255, 0.28), rgba(85, 223, 248, 0.08));
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.25rem);
  font-size: 0.76rem;
  color: var(--muted);
}

.site-header nav a {
  position: relative;
  padding-block: 0.5rem;
  transition: color 180ms ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a.is-active {
  color: var(--text);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.site-header nav a.is-active::after {
  transform: scaleX(1);
}

.lang-toggle {
  justify-self: end;
  border: 0;
  padding: 0.45rem 0;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

.lang-toggle .lang-current {
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
}

.section,
.hero {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding: calc(var(--header) + 4rem) 0 6rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.kicker {
  margin: 0 0 1.2rem;
  color: var(--cyan);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
}

.signal {
  position: relative;
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.signal::after {
  content: "";
  position: absolute;
  inset: -0.35rem;
  border: 1px solid rgba(132, 246, 189, 0.3);
  border-radius: 50%;
  animation: ping 2.2s ease-out infinite;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.35rem, 7.5vw, 7.8rem);
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
}

.gradient-word {
  padding-bottom: 0.12em;
  background: linear-gradient(100deg, #fff 5%, var(--violet) 35%, var(--cyan) 68%, var(--green) 95%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease-in-out infinite alternate;
}

.hero-lede {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

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

.button {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 620;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  border-color: rgba(155, 124, 255, 0.42);
  background: linear-gradient(135deg, rgba(155, 124, 255, 0.88), rgba(94, 99, 240, 0.82));
  box-shadow: 0 12px 38px rgba(93, 65, 206, 0.22), inset 0 1px rgba(255, 255, 255, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 15px 48px rgba(93, 65, 206, 0.38), inset 0 1px rgba(255, 255, 255, 0.24);
}

.button-ghost {
  color: var(--muted);
  backdrop-filter: blur(8px);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--line-bright);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.hero-stats {
  max-width: 37rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 3.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  padding: 1rem 1rem 0 0;
}

.hero-stats dt {
  font-size: 1.15rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.hero-stats dd {
  margin: 0.1rem 0 0;
  color: var(--dim);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-system {
  position: relative;
  width: min(39vw, 32rem);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  filter: drop-shadow(0 0 52px rgba(117, 91, 246, 0.11));
}

.hero-system::before,
.hero-system::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-system::before {
  inset: 13%;
  background: radial-gradient(circle, rgba(155, 124, 255, 0.13), transparent 64%);
  filter: blur(22px);
}

.hero-system::after {
  inset: -8%;
  border: 1px solid rgba(255, 255, 255, 0.035);
  background: repeating-radial-gradient(circle, transparent 0 2.65rem, rgba(255, 255, 255, 0.025) 2.7rem 2.76rem);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(180, 192, 219, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 26px rgba(106, 82, 203, 0.04);
}

.orbit::before {
  content: "";
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  top: -0.23rem;
  left: calc(50% - 0.23rem);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.orbit-outer {
  inset: 3%;
  animation: spin 24s linear infinite;
}

.orbit-middle {
  inset: 19%;
  border-style: dashed;
  animation: spin-reverse 18s linear infinite;
}

.orbit-middle::before {
  background: var(--violet);
  box-shadow: 0 0 14px var(--violet);
}

.orbit-inner {
  inset: 33%;
  animation: spin 12s linear infinite;
}

.orbit-inner::before {
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.orbit-core {
  position: absolute;
  inset: 39%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(187, 170, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(145deg, rgba(114, 80, 238, 0.54), rgba(22, 31, 50, 0.86));
  box-shadow: 0 0 45px rgba(116, 81, 245, 0.3), inset 0 0 25px rgba(255, 255, 255, 0.08);
  text-align: center;
}

.orbit-core small {
  color: rgba(255, 255, 255, 0.62);
  font-family: ui-monospace, monospace;
  font-size: clamp(0.38rem, 0.55vw, 0.54rem);
  letter-spacing: 0.15em;
}

.orbit-core strong {
  font-size: clamp(0.78rem, 1.3vw, 1.2rem);
  font-weight: 620;
}

.core-pulse {
  position: absolute;
  inset: -22%;
  border: 1px solid rgba(155, 124, 255, 0.18);
  border-radius: 50%;
  animation: core-pulse 2.8s ease-out infinite;
}

.orbit-node {
  position: absolute;
  z-index: 2;
  min-width: 7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(11, 14, 22, 0.76);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.orbit-node span {
  color: var(--cyan);
  font-family: ui-monospace, monospace;
  font-size: 0.55rem;
}

.orbit-node b {
  display: block;
  font-size: 0.75rem;
  font-weight: 560;
}

.node-intent { top: 4%; left: 12%; }
.node-structure { top: 25%; right: -3%; }
.node-evidence { right: 4%; bottom: 12%; }
.node-recovery { bottom: 3%; left: 8%; }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 3.5rem;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: var(--cyan);
  animation: scroll-line 2.4s ease-in-out infinite;
}

.section {
  padding-block: clamp(6rem, 11vw, 10rem);
}

.section-heading {
  max-width: 58rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading.compact {
  max-width: 44rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.65rem, 5.8vw, 5.75rem);
  font-weight: 530;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.section-heading > p:last-child:not(.kicker) {
  max-width: 43rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.native-contract {
  position: relative;
}

.native-contract::before {
  content: "";
  position: absolute;
  top: 15%;
  right: -20%;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: rgba(82, 74, 234, 0.08);
  filter: blur(100px);
  pointer-events: none;
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  position: relative;
  min-height: 20rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 60%);
  transform-style: preserve-3d;
  transition: background 220ms ease, border-color 220ms ease;
}

.principle:hover {
  border-color: var(--line-bright);
  background: linear-gradient(155deg, rgba(155, 124, 255, 0.105), rgba(255, 255, 255, 0.02) 60%);
}

.principle > span {
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
}

.principle h3 {
  margin: 7rem 0 0.8rem;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.featured {
  width: 100%;
  padding-bottom: 0;
}

.featured > .section-heading {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
}

.case-study {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  padding: clamp(5rem, 9vw, 8rem) max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.case-study::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 50%, var(--case-glow), transparent 35rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 45%);
}

.case-moment { --case-glow: rgba(116, 78, 232, 0.16); }
.case-productdev { --case-glow: rgba(33, 171, 211, 0.12); }
.case-timwork { --case-glow: rgba(72, 214, 155, 0.1); }

.case-copy {
  max-width: 34rem;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-meta span:first-child {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--cyan);
}

.case-copy h3 {
  margin: 0;
  font-size: clamp(3.4rem, 7.5vw, 7.5rem);
  font-weight: 540;
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.case-copy h3.timwork-title {
  display: grid;
  width: fit-content;
  gap: 0.04em;
  font-size: clamp(3.2rem, 6vw, 6.25rem);
  line-height: 0.86;
}

.timwork-title span:last-child {
  margin-left: 0.42em;
  color: var(--cyan);
}

.case-thesis {
  margin: 1.5rem 0 1rem;
  color: var(--text) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.025em;
}

.case-copy > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.case-role {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.case-role span {
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.case-role strong {
  font-size: 0.78rem;
  font-weight: 550;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-family: ui-monospace, monospace;
  font-size: 0.58rem;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin-top: 1.5rem;
}

.case-links a {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line-bright);
  color: var(--muted);
  font-size: 0.7rem;
  transition: color 180ms ease, border-color 180ms ease;
}

.case-links a:hover,
.case-links a:focus-visible {
  border-color: var(--cyan);
  color: var(--text);
}

.case-visual {
  min-width: 0;
  perspective: 1200px;
}

.mock-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: clamp(1.1rem, 2.2vw, 1.75rem);
  background: rgba(10, 14, 23, 0.84);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}

.case-study:hover .mock-window {
  transform: rotateY(0) rotateX(0) translateY(-0.25rem);
}

.mock-bar {
  height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.mock-bar i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--dim);
}

.mock-bar i:first-child { background: #ff6e67; }
.mock-bar i:nth-child(2) { background: #ffca55; }
.mock-bar i:nth-child(3) { background: #56d67b; }

.mock-bar span {
  margin-left: auto;
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.moment-ui .mock-window {
  padding-bottom: 1rem;
  background:
    radial-gradient(circle at 70% 20%, rgba(144, 101, 255, 0.16), transparent 28rem),
    rgba(9, 12, 20, 0.91);
}

.moment-prompt {
  position: relative;
  margin: clamp(1.2rem, 3vw, 2.2rem);
  padding: clamp(1.2rem, 2vw, 1.7rem);
  border: 1px solid rgba(155, 124, 255, 0.3);
  border-radius: 1.2rem;
  background: rgba(155, 124, 255, 0.06);
}

.moment-prompt small {
  color: var(--violet);
  font-family: ui-monospace, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.13em;
}

.moment-prompt p {
  max-width: 25rem;
  margin: 0.55rem 2.5rem 0 0;
  font-size: clamp(0.95rem, 1.45vw, 1.25rem);
  letter-spacing: -0.025em;
}

.moment-prompt b {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 24px rgba(155, 124, 255, 0.4);
}

.moment-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0 clamp(1.2rem, 3vw, 2.2rem);
}

.moment-flow > div {
  min-height: 8.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.moment-flow span {
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.52rem;
}

.moment-flow p {
  margin: 2rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 620;
}

.moment-flow small {
  color: var(--dim);
  font-size: 0.58rem;
}

.truth-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.8rem clamp(1.2rem, 3vw, 2.2rem) 0;
  padding: 0.75rem 0;
  color: var(--muted);
  font-size: 0.62rem;
}

.truth-row b {
  margin-left: auto;
  color: var(--green);
  font-weight: 540;
}

.truth-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px var(--green);
}

.productdev-ui .mock-window {
  background:
    radial-gradient(circle at 75% 30%, rgba(48, 193, 229, 0.11), transparent 25rem),
    rgba(8, 13, 21, 0.94);
}

.dev-shell {
  min-height: 28rem;
  display: grid;
  grid-template-columns: 9rem 1fr;
}

.dev-shell aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.2rem 0.9rem;
  border-right: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.6rem;
}

.dev-shell aside b {
  padding: 0.55rem;
  border-radius: 0.5rem;
  background: rgba(85, 223, 248, 0.1);
  color: var(--cyan);
  font-weight: 560;
}

.dev-shell aside span {
  padding-inline: 0.55rem;
}

.dev-main {
  padding: clamp(1rem, 2.5vw, 1.7rem);
}

.health {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.55rem;
}

.health span {
  color: var(--green);
}

.health i {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.health b {
  font-weight: 480;
}

.run {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  margin-bottom: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.018);
}

.run.active {
  border-color: rgba(85, 223, 248, 0.25);
  background: rgba(85, 223, 248, 0.045);
}

.run span {
  font-size: 0.72rem;
  font-weight: 560;
}

.run b {
  color: var(--cyan);
  font-family: ui-monospace, monospace;
  font-size: 0.5rem;
  font-weight: 500;
}

.run small {
  grid-column: 1 / -1;
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.52rem;
}

.receipt {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 2px solid var(--green);
  background: rgba(132, 246, 189, 0.035);
}

.receipt span {
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

.receipt code {
  color: var(--muted);
  font-size: 0.6rem;
}

.system-map {
  position: relative;
  min-height: 36rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    radial-gradient(circle at center, rgba(61, 223, 160, 0.09), transparent 16rem),
    rgba(9, 14, 19, 0.7);
  overflow: hidden;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.32);
}

.system-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.7px);
  background-size: 17px 17px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  pointer-events: none;
}

.system-map svg {
  position: absolute;
  inset: 9%;
  z-index: 0;
  width: 82%;
  height: 82%;
  overflow: visible;
}

.system-map path {
  fill: none;
  stroke: rgba(132, 246, 189, 0.34);
  stroke-width: 1.2;
  stroke-dasharray: 7 8;
  animation: dash 18s linear infinite;
}

.map-node {
  position: absolute;
  z-index: 2;
  width: min(42%, 13rem);
  padding: 1rem;
  border: 1px solid var(--line-bright);
  border-radius: 1rem;
  background: rgba(8, 13, 18, 0.86);
  backdrop-filter: blur(12px);
}

.map-node small {
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.map-node b {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.map-node span {
  display: block;
  margin-top: 1rem;
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.52rem;
}

.map-context { top: 8%; left: 7%; }
.map-work { top: 21%; right: 5%; }
.map-pace { bottom: 8%; left: 10%; }

.map-core {
  position: absolute;
  z-index: 3;
  top: 51%;
  left: 51%;
  width: 9rem;
  height: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 246, 189, 0.34);
  border-radius: 50%;
  background: rgba(12, 28, 24, 0.88);
  box-shadow: 0 0 50px rgba(78, 215, 158, 0.15);
  transform: translate(-50%, -50%);
  text-align: center;
}

.map-core > span {
  position: absolute;
  inset: -15%;
  border: 1px solid rgba(132, 246, 189, 0.12);
  border-radius: 50%;
  animation: core-pulse 3.4s ease-out infinite;
}

.map-core b {
  font-size: 0.78rem;
}

.map-core small {
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.5rem;
}

.scale {
  position: relative;
}

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

.scale-card {
  position: relative;
  min-height: 35rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  transform-style: preserve-3d;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.scale-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 20rem;
  height: 20rem;
  top: -9rem;
  right: -8rem;
  border-radius: 50%;
  background: var(--card-glow);
  filter: blur(45px);
  opacity: 0.6;
}

.scale-card:hover {
  border-color: var(--line-bright);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.onchain { --card-glow: rgba(94, 74, 240, 0.26); }
.sporty { --card-glow: rgba(255, 77, 88, 0.22); }
.kinto { --card-glow: rgba(53, 173, 220, 0.22); }

.card-index {
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.product-symbol {
  width: 4rem;
  height: 4rem;
  display: block;
  margin: 5rem 0 1.5rem;
  border: 1px solid var(--line-bright);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.1);
}

.scale-card h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  font-weight: 550;
  letter-spacing: -0.045em;
}

.scale-card > p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.scale-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: auto 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.scale-card dl div {
  min-width: 0;
}

.scale-card dt {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-card dd {
  margin: 0.2rem 0 0;
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.48rem;
  text-transform: uppercase;
}

.scale-card > a {
  align-self: flex-start;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-bright);
  color: var(--muted);
  font-size: 0.68rem;
  transition: color 180ms ease, border-color 180ms ease;
}

.scale-card > a:hover,
.scale-card > a:focus-visible {
  border-color: var(--cyan);
  color: var(--text);
}

.method {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.method .section-heading {
  position: sticky;
  top: calc(var(--header) + 3rem);
}

.method-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: clamp(1.6rem, 3.2vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.method-list li > span {
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
}

.method-list h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 540;
  letter-spacing: -0.04em;
}

.method-list p {
  max-width: 34rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact {
  position: relative;
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 15% 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(100, 75, 220, 0.14), transparent 65%);
  filter: blur(40px);
}

.contact h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 7rem);
  font-weight: 530;
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.contact-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-bright);
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
}

.contact-email:hover,
.contact-email:focus-visible {
  border-color: var(--cyan);
}

.contact-actions > div {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-actions > div a:hover,
.contact-actions > div a:focus-visible {
  color: var(--text);
}

footer {
  width: min(calc(100% - 2.5rem), var(--max));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  margin-inline: auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: ui-monospace, monospace;
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

footer span:nth-child(2) {
  text-align: center;
}

footer .legal {
  text-align: right;
}

.magnetic {
  will-change: transform;
}

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

@keyframes ping {
  from { transform: scale(0.5); opacity: 0.9; }
  to { transform: scale(1.7); opacity: 0; }
}

@keyframes gradient-shift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes core-pulse {
  from { transform: scale(0.8); opacity: 0.85; }
  to { transform: scale(1.35); opacity: 0; }
}

@keyframes scroll-line {
  0% { transform: translateX(-120%); }
  50%, 100% { transform: translateX(260%); }
}

@keyframes dash {
  to { stroke-dashoffset: -150; }
}


/* Project media */
.project-shot {
  margin: 0;
  min-width: 0;
}

.project-shot-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.35rem;
  background: #0b0e16;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  isolation: isolate;
  transform: translateZ(0);
}

.project-shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.project-shot-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 560ms cubic-bezier(.2,.72,.18,1);
  transform: translateZ(0);
}

.project-shot-frame-phone {
  width: min(100%, 21rem);
  aspect-ratio: auto;
  margin-inline: auto;
  background: #f7f5f0;
}

.project-shot-frame-phone .project-shot-image {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
}

.project-shot figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font: 500 0.72rem/1.45 var(--mono);
  letter-spacing: 0.025em;
}

@media (hover: hover) and (pointer: fine) {
  .case-study:hover .project-shot-image {
    transform: scale(1.018);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-bottom: 8rem;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-system {
    width: min(76vw, 32rem);
  }

  .scroll-cue {
    display: none;
  }

  .contract-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .case-copy {
    max-width: 48rem;
  }

  .case-visual {
    max-width: 54rem;
    width: 100%;
    margin-inline: auto;
  }

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

  .scale-card {
    min-height: 27rem;
  }

  .product-symbol {
    margin-top: 3rem;
  }

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

  .method .section-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --header: 64px;
  }

  .section,
  .hero,
  footer {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .site-header {
    width: 100%;
    padding-inline: 0.75rem;
    grid-template-columns: 1fr auto;
    transition: background 160ms ease, border-color 160ms ease;
  }

  .site-header.is-scrolled {
    padding-inline: 0.75rem;
  }

  .site-header nav {
    display: none;
  }

  .brand-name {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header) + 4.5rem);
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-stats dd {
    font-size: 0.53rem;
  }

  .hero-system {
    width: min(88vw, 28rem);
  }

  .orbit-node {
    min-width: 5.4rem;
    padding: 0.45rem 0.55rem;
  }

  .orbit-node b {
    font-size: 0.62rem;
  }

  .section-heading h2 {
    font-size: clamp(2.7rem, 13vw, 4.5rem);
  }

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

  .principle {
    min-height: 15rem;
  }

  .principle h3 {
    margin-top: 4.5rem;
  }

  .case-study {
    padding-inline: 0.75rem;
  }

  .case-copy h3 {
    font-size: clamp(3.5rem, 18vw, 5.4rem);
  }

  .case-copy h3.timwork-title {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .moment-flow {
    grid-template-columns: 1fr;
  }

  .moment-flow > div {
    min-height: 6.3rem;
  }

  .moment-flow p {
    margin-top: 1rem;
  }

  .dev-shell {
    grid-template-columns: 5.6rem 1fr;
    min-height: 24rem;
  }

  .dev-shell aside {
    padding-inline: 0.5rem;
  }

  .dev-shell aside span,
  .dev-shell aside b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .run {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .run b {
    display: none;
  }

  .system-map {
    min-height: 31rem;
  }

  .map-node {
    width: 48%;
  }

  .map-core {
    width: 7rem;
    height: 7rem;
  }

  .scale-card {
    min-height: 32rem;
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-email {
    font-size: 0.8rem;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer span:nth-child(2),
  footer .legal {
    text-align: left;
  }

  .cursor-glow,
  .grain {
    display: none;
  }

  #field {
    display: none;
  }

  .site-header.is-scrolled {
    background: rgba(7, 9, 14, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .button-ghost,
  .orbit-node,
  .mock-window,
  .map-node {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-system,
  .hero-system::before,
  .scale-card::before,
  .contact::before {
    filter: none;
  }

  .native-contract::before {
    display: none;
  }

  .scale-card::before {
    opacity: 0.2;
  }

  .mock-window,
  .case-study:hover .mock-window,
  .project-shot-image,
  .case-study:hover .project-shot-image {
    transform: none;
  }

  .project-shot-frame {
    border-radius: 1rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  }

}

@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;
  }

  #field,
  .cursor-glow {
    display: none;
  }

  .mock-window,
  .tilt,
  .magnetic {
    transform: none !important;
  }
}
