:root {
  --page: #f5f5f7;
  --surface: #ffffff;
  --ink: #0b0b0f;
  --muted: #68686f;
  --soft: #e9e9ed;
  --line: rgba(11, 11, 15, 0.09);
  --blue: #0071e3;
  --blue-light: #e7f2ff;
  --lime: #b8ff5b;
  --radius-xl: 44px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 16px 45px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.story-open {
  position: fixed;
  width: 100%;
  overflow-y: hidden;
}

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

button:focus,
a:focus,
[role="button"]:focus,
input:focus,
textarea:focus {
  outline: none;
}

dialog:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

button,
input {
  font: inherit;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

button {
  color: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.section-shell {
  width: min(1380px, calc(100% - 48px));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  z-index: 1000;
  background: linear-gradient(90deg, #111116, #8d8d96, #b8ff5b);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 0;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.site-header.nav-hidden {
  transform: translate3d(0, -110%, 0);
}

.nav-shell {
  width: min(1380px, calc(100% - 48px));
  min-height: 54px;
  margin-inline: auto;
  padding: 6px 8px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(249, 249, 251, 0.78);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #09090c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.desktop-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #55555d;
  font-size: 12px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

.desktop-nav a:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-contact {
  padding: 11px 16px;
  border-radius: 999px;
  background: #0a0a0d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-contact:hover {
  transform: translateY(-1px);
  background: #000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  position: relative;
}

.menu-button span {
  width: 16px;
  height: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -1px 0 0 -8px;
  border-radius: 2px;
  background: #0a0a0d;
  transition: transform 200ms ease;
}

.menu-button span:first-child {
  transform: translateY(-4px);
}

.menu-button span:last-of-type {
  transform: translateY(4px);
}

.menu-button i {
  display: none;
}

.menu-button.is-open span:first-child {
  transform: rotate(45deg);
}

.menu-button.is-open span:last-of-type {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  background: rgba(249, 249, 251, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.mobile-menu a {
  display: flex;
  padding: 14px 15px;
  border-radius: 16px;
  color: #393940;
  font-size: 14px;
  font-weight: 650;
}

.mobile-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hero {
  min-height: 820px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: 82px 112px;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -100px -6vw auto -6vw;
  height: min(660px, 80%);
  z-index: -1;
  border-radius: 0 0 70px 70px;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(0, 113, 227, 0.13), transparent 34%),
    radial-gradient(ellipse at 52% 36%, rgba(184, 255, 91, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(231, 242, 255, 0.5), rgba(245, 245, 247, 0));
  pointer-events: none;
}

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

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: #777780;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #29c55f;
  box-shadow: 0 0 0 5px rgba(41, 197, 95, 0.1);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(64px, 7.5vw, 126px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  overflow: visible;
  padding-bottom: 0.1em;
}

.hero h1 em {
  display: inline-block;
  color: #777780;
  font-family: ui-serif, "Iowan Old Style", "Baskerville", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
  padding-right: 0.08em;
}

.hero-lead {
  max-width: 660px;
  margin: 36px 0 0;
  color: #5f5f67;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
}

.primary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 12px 0 23px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.primary-button {
  background: #0a0a0d;
  color: #fff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 17px;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.text-button {
  padding-inline: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.hero-footnote {
  max-width: 580px;
  margin-top: 48px;
  padding-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-top: 1px solid var(--line);
  color: #777780;
  font-size: 12px;
  line-height: 1.6;
}

.live-dot {
  display: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #29c55f;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.42; transform: scale(0.72); }
}

.hero-stage {
  min-height: 640px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  margin-top: -40px;
}

.hero-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(79, 163, 255, 0.7), transparent 25%),
    radial-gradient(circle at 68% 70%, rgba(183, 255, 91, 0.36), transparent 27%),
    radial-gradient(circle at 50% 50%, #d7e7ff 0, #e9e9ff 42%, transparent 62%);
  filter: blur(22px);
  opacity: 0.7;
  z-index: -1;
  animation: glow-shift 10s ease-in-out infinite alternate;
}

@keyframes glow-shift {
  to { transform: translate3d(1%, -1%, 0) scale(1.03); filter: blur(26px) hue-rotate(12deg); }
}

.hero-product {
  width: min(100%, 980px);
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 24px;
  background: rgba(8, 8, 11, 0.96);
  color: #fff;
  box-shadow: 0 60px 120px rgba(10, 20, 50, 0.32);
  transform: perspective(1400px) rotateY(-1.6deg) rotateX(0.8deg);
}

.hero-product-bar {
  display: none;
}

.hero-rotator {
  aspect-ratio: 16 / 12;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #15151a;
}

.hero-rotator img,
.rotator-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 700ms ease, transform 1600ms cubic-bezier(.2, .8, .2, 1);
}

.project-media .rotator-image {
  object-fit: cover;
  padding: 0;
  background: transparent;
}

.hero-rotator img.is-active,
.rotator-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-product-copy {
  padding: 23px 20px 20px;
}

.hero-product-copy p {
  margin: 0 0 6px;
  color: #9f9fa8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-product-copy strong {
  display: block;
  max-width: 460px;
  font-size: clamp(20px, 2.2vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.floating-chip {
  position: absolute;
  min-width: 168px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
}

.floating-chip span,
.floating-chip small {
  display: block;
}

.floating-chip span {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.floating-chip small {
  margin-top: 2px;
  color: #707078;
  font-size: 10px;
  font-weight: 650;
}

.chip-one {
  left: -3%;
  bottom: 9%;
  animation: float-one 6s ease-in-out infinite;
}

.chip-two {
  right: -2%;
  top: 14%;
  animation: float-two 7s ease-in-out infinite;
}

@keyframes float-one {
  50% { transform: translateY(-11px) rotate(-1deg); }
}

@keyframes float-two {
  50% { transform: translateY(12px) rotate(1deg); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 130px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.stat {
  min-height: 150px;
  padding: 28px;
  display: grid;
  grid-template-columns: 34px auto 1fr;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.stat svg {
  width: 28px;
  height: 28px;
}

.stat-value {
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.055em;
}

.stat-label {
  color: #777780;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-button,
.growth-card,
.sector-card,
.architecture-card,
.architecture-diagram,
.story-metric {
  appearance: none;
  text-align: left;
  cursor: pointer;
}

.stat-button {
  border: 0;
  transition: transform 240ms ease, background 240ms ease;
}

.stat-button:hover {
  transform: translateY(-2px);
  background: #fff;
}

.growth,
.work-section,
.capabilities,
.writing,
.stack-section,
.contact {
  padding-block: 40px 130px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 45px;
}

.section-heading h2,
.stack-intro h2 {
  margin: 0;
  font-size: clamp(48px, 6.3vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.section-heading > p:last-child,
.heading-row > p,
.stack-intro > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.heading-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.heading-row > p {
  margin: 0 0 7px;
}

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

.growth-card {
  min-height: 360px;
  padding: 27px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  color: inherit;
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1), box-shadow 320ms ease;
  will-change: transform;
}

.growth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
}

.growth-card-primary {
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 156, 255, 0.85), transparent 35%),
    linear-gradient(150deg, #07111f, #0b4a98 70%, #0088ff);
}

.growth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #777780;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.growth-card-primary .growth-card-top {
  color: rgba(255, 255, 255, 0.68);
}

.status-pill {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.growth-card > strong {
  display: block;
  margin-top: 42px;
  font-size: clamp(56px, 5vw, 78px);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.metric-unit {
  font-size: 0.42em;
  letter-spacing: -0.03em;
}

.growth-card > p {
  max-width: 260px;
  margin: auto 0 0;
  color: #777780;
  font-size: 13px;
  line-height: 1.55;
}

.growth-card-primary > p {
  color: rgba(255, 255, 255, 0.7);
}

.micro-chart {
  height: 82px;
  margin-top: 38px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.micro-chart i {
  flex: 1;
  min-width: 8px;
  border-radius: 999px;
  background: linear-gradient(#c2f3ff, #44a6ff);
  opacity: 0.88;
}

.metric-orbit {
  width: 160px;
  height: 160px;
  position: absolute;
  right: -38px;
  bottom: -42px;
  border: 1px solid #d9d9df;
  border-radius: 50%;
}

.metric-orbit::before,
.metric-orbit::after {
  content: "";
  position: absolute;
  inset: 23px;
  border: 1px solid #e6e6ea;
  border-radius: 50%;
}

.metric-orbit::after {
  inset: 50px;
  background: #0a0a0d;
  box-shadow: 0 0 0 10px #fff;
}

.metric-ring {
  --value: 29;
  width: 142px;
  height: 142px;
  position: absolute;
  right: -23px;
  bottom: -27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#0071e3 calc(var(--value) * 1%), #ededf0 0);
}

.metric-ring span {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
}

.signal-lines {
  width: 150px;
  height: 110px;
  position: absolute;
  right: -18px;
  bottom: -10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  transform: rotate(-8deg);
}

.signal-lines i {
  width: 20px;
  border-radius: 999px 999px 0 0;
  background: #0a0a0d;
}

.signal-lines i:nth-child(1) { height: 30%; opacity: 0.22; }
.signal-lines i:nth-child(2) { height: 53%; opacity: 0.38; }
.signal-lines i:nth-child(3) { height: 72%; opacity: 0.66; }
.signal-lines i:nth-child(4) { height: 100%; }

.flagship {
  padding-block: 35px 130px;
}

.flagship-card {
  width: 100%;
  min-height: 680px;
  padding: 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-xl);
  background: #050507;
  color: #fff;
  text-align: left;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.flagship-copy {
  padding: clamp(42px, 6vw, 78px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.kicker-light {
  color: rgba(255, 255, 255, 0.54);
}

.flagship-copy h2 {
  margin: 0;
  font-size: clamp(65px, 7vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.flagship-description {
  max-width: 490px;
  margin: 28px 0 28px;
  color: #fff;
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.flagship-metrics {
  width: 100%;
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.flagship-metrics span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flagship-metrics strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 23px;
  letter-spacing: -0.04em;
  text-transform: none;
}

.open-story {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

.open-story b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 17px;
}

.flagship-media {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  background: #111116;
}

.flagship-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #050507 0, transparent 18%, transparent 90%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}



.flagship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  background: transparent;
}

.work-section {
  scroll-margin-top: 90px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  padding: 10px;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
  transition: transform 400ms cubic-bezier(.2, .8, .2, 1), box-shadow 400ms ease;
}

.project-card:nth-child(5n + 1),
.project-card:nth-child(5n + 4) {
  grid-column: span 7;
}

.project-card:nth-child(5n + 2),
.project-card:nth-child(5n + 5) {
  grid-column: span 5;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 85px rgba(0, 0, 0, 0.13);
}

.project-media {
  height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.16)),
    var(--project-color, #17171c);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.32));
  pointer-events: none;
}

.project-media-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.23);
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(15px);
}

.image-dots {
  position: absolute;
  right: 16px;
  bottom: 15px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.image-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.image-dots i.is-active {
  width: 18px;
  background: #fff;
}

.project-info {
  padding: 23px 17px 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.project-heading h3 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 51px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.project-heading span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0a0a0d;
  color: #fff;
  transition: transform 250ms ease;
}

.project-card:hover .project-heading span {
  transform: rotate(45deg);
}

.project-info > p {
  max-width: 600px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #777780;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-stack-mini {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.project-stack-mini span {
  padding: 7px 8px;
  border-radius: 999px;
  background: #f0f0f3;
  color: #55555d;
  white-space: nowrap;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  gap: 18px;
}

.capability-card {
  min-height: 520px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
}

.capability-card.dark {
  background: #08080b;
}

.capability-card.blue {
  color: #07101c;
  background: linear-gradient(145deg, #eaf5ff, #70c2ff);
}

.capability-card.warm {
  color: #1b0c05;
  background: linear-gradient(145deg, #fff2df, #ffb878);
}

.capability-number {
  color: currentColor;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.capability-card h3 {
  margin: 40px 0 0;
  font-size: clamp(40px, 4.5vw, 66px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.capability-card p {
  max-width: 440px;
  margin: 21px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.6;
}

.capability-card.blue p,
.capability-card.warm p {
  color: rgba(7, 16, 28, 0.63);
}

.capability-visual {
  position: absolute;
  inset: auto 0 0;
  height: 210px;
}

.agent-visual i {
  width: 66px;
  height: 66px;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.agent-visual i:nth-child(1) { left: 8%; bottom: 30px; }
.agent-visual i:nth-child(2) { left: 35%; bottom: 105px; }
.agent-visual i:nth-child(3) { right: 25%; bottom: 25px; }
.agent-visual i:nth-child(4) { right: 7%; bottom: 118px; }

.agent-visual b {
  width: 190px;
  height: 190px;
  position: absolute;
  left: 42%;
  bottom: -95px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 30%, #b8ff5b, #23c86a 45%, #09120d 75%);
  box-shadow: 0 0 80px rgba(92, 255, 121, 0.3);
}

.stack-visual i {
  width: 64%;
  height: 100px;
  position: absolute;
  left: 18%;
  border: 1px solid rgba(7, 16, 28, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 45px rgba(21, 91, 146, 0.13);
}

.stack-visual i:nth-child(1) { bottom: -45px; }
.stack-visual i:nth-child(2) { bottom: 5px; transform: scale(0.88); opacity: 0.78; }
.stack-visual i:nth-child(3) { bottom: 54px; transform: scale(0.72); opacity: 0.54; }

.interface-visual i {
  position: absolute;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 40px rgba(136, 55, 5, 0.15);
}

.interface-visual i:nth-child(1) { width: 42%; height: 150px; left: 8%; bottom: -25px; }
.interface-visual i:nth-child(2) { width: 38%; height: 105px; right: 8%; bottom: 65px; }
.interface-visual i:nth-child(3) { width: 26%; height: 65px; left: 38%; bottom: 18px; background: #1b0c05; }

.founder-journey,
.sector-section,
.engineering-section,
.recognition,
.vision-section {
  padding-block: 40px 130px;
}

.journey-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.journey-track::-webkit-scrollbar {
  display: none;
}

.journey-card {
  min-height: 340px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  appearance: none;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 12%, rgba(0, 113, 227, 0.18), transparent 25%),
    radial-gradient(circle at 14% 88%, rgba(184, 255, 91, 0.24), transparent 27%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 241, 247, 0.94));
  box-shadow: var(--shadow-soft);
  color: inherit;
  transition: transform 300ms cubic-bezier(.2, .8, .2, 1), box-shadow 300ms ease, border-color 300ms ease;
}

.journey-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
}

.journey-card::before {
  content: "";
  position: absolute;
  inset: auto 28px 112px 28px;
  height: 1px;
  background: linear-gradient(90deg, #0a0a0d, rgba(184, 255, 91, 0.65), transparent);
}

.journey-card::after {
  content: "";
  width: 132px;
  height: 132px;
  position: absolute;
  right: -42px;
  bottom: -42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 113, 227, 0.14);
  background: conic-gradient(from 130deg, rgba(0, 113, 227, 0.18), rgba(184, 255, 91, 0.28), transparent 62%);
  box-shadow: inset 0 0 0 22px rgba(255, 255, 255, 0.36);
}

.journey-card span {
  color: #111116;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-card h3 {
  max-width: 270px;
  margin: auto 0 0;
  font-size: 35px;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.journey-card p {
  margin: 17px 0 0;
  color: #66666e;
  font-size: 14px;
  line-height: 1.55;
}

.sector-grid,
.architecture-grid,
.recognition-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sector-card,
.architecture-card,
.recognition-tile {
  min-height: 245px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 15%, rgba(184, 255, 91, 0.17), transparent 26%),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), box-shadow 280ms ease;
}

.sector-card:hover,
.architecture-card:hover,
.recognition-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.11);
}

.sector-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 14%, rgba(0, 113, 227, 0.18), transparent 25%),
    radial-gradient(circle at 8% 92%, rgba(184, 255, 91, 0.24), transparent 27%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 242, 248, 0.94));
  transition: transform 350ms cubic-bezier(.2, .8, .2, 1), box-shadow 350ms ease;
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.1);
}

.sector-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 86px;
  height: 86px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(11, 11, 15, 0.08), transparent 56%),
    rgba(255, 255, 255, 0.58);
  transform: rotate(12deg);
  transition: transform 300ms ease;
}

.sector-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0071e3, #b8ff5b);
  opacity: 0.72;
}

.sector-card:hover::after {
  transform: rotate(18deg) scale(1.08);
}

.sector-card > *,
.recognition-tile > * {
  position: relative;
  z-index: 1;
}

.sector-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.32), transparent 28%),
    #0a0a0d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.sector-card strong,
.architecture-card strong,
.recognition-tile strong {
  display: block;
  margin-top: 34px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sector-card small,
.architecture-card span,
.recognition-tile p {
  display: block;
  margin-top: 12px;
  color: #777780;
  font-size: 12px;
  line-height: 1.5;
}

.architecture-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)),
    var(--project-color, #0a0a0d);
}

.architecture-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.architecture-card strong {
  margin-top: 38px;
  color: #fff;
}

.architecture-mini {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.architecture-mini i {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.tech-universe {
  min-height: 610px;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #07070b;
  color: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.18);
}

.tech-orbits,
.tech-orbits i {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.tech-orbits i:nth-child(1) { inset: 14%; }
.tech-orbits i:nth-child(2) { inset: 26%; }
.tech-orbits i:nth-child(3) { inset: 39%; background: radial-gradient(circle, rgba(0, 113, 227, 0.7), transparent 64%); }

.tech-node {
  width: 160px;
  min-height: 80px;
  padding: 14px;
  position: absolute;
  left: calc(50% + cos((var(--i) * 32.72deg)) * 34%);
  top: calc(50% + sin((var(--i) * 32.72deg)) * 34%);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.tech-node span {
  display: block;
  font-size: 14px;
  font-weight: 760;
}

.tech-node small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  line-height: 1.35;
}

.recognition-tile {
  position: relative;
  overflow: hidden;
}

.recognition-tile::after {
  content: "";
  position: absolute;
  inset: auto 22px 22px 22px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0a0a0d, #b8ff5b);
  opacity: 0.82;
}

.recognition-tile span {
  color: #111116;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.recognition-tile strong {
  margin-top: 42px;
}

.vision-panel {
  min-height: 680px;
  padding: clamp(46px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 16%, rgba(184, 255, 91, 0.34), transparent 24%),
    radial-gradient(circle at 15% 24%, rgba(0, 113, 227, 0.74), transparent 30%),
    #08080b;
  color: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.2);
}

.vision-panel h2 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(54px, 7.4vw, 118px);
  line-height: 1.0;
  letter-spacing: -0.075em;
}

.vision-panel > p:not(.kicker) {
  max-width: 740px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 18px;
  line-height: 1.55;
}

.vision-grid {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vision-grid button,
.story-end button {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.research {
  padding-block: 20px 150px;
  scroll-margin-top: 90px;
}

.research-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 83% 12%, rgba(58, 74, 171, 0.4), transparent 28%),
    #07070b;
  color: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.2);
}

.research-image {
  min-height: 720px;
  padding: 52px 0 0 52px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.research-image img {
  width: min(100%, 510px);
  transform: translateY(85px) rotate(-3deg);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.research-copy {
  padding: clamp(52px, 8vw, 105px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.research-copy h2 {
  max-width: 700px;
  margin: 0;
  font-family: ui-serif, "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(57px, 7vw, 110px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.research-subtitle {
  color: #9fa9ff !important;
  font-size: 16px !important;
  font-weight: 650;
}

.research-copy > p:not(.kicker) {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  line-height: 1.65;
}

.research-toggle {
  min-height: 56px;
  margin-top: 32px;
  padding: 0 10px 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #08080b;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.research-toggle span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0a0a0d;
  color: #fff;
  font-size: 23px;
  font-weight: 300;
  transition: transform 250ms ease;
}

.research-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.research-more {
  grid-column: 1 / -1;
  padding: 0 52px 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.research-more[hidden] {
  display: none;
}

.research-more article {
  min-height: 230px;
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.research-more article span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 750;
}

.research-more article h3 {
  margin: 48px 0 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.research-more article p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
}

.inline-story-button {
  grid-column: 1 / -1;
  min-height: 72px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #09090c;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.writing-column {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.column-title {
  padding-bottom: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #777780;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-list {
  display: grid;
}

.story-row {
  width: 100%;
  padding: 21px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.story-row:last-child {
  border-bottom: 0;
}

.story-row-copy {
  display: grid;
  gap: 7px;
}

.story-row-copy strong {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.story-row-copy span {
  color: #777780;
  font-size: 12px;
  line-height: 1.5;
}

.story-row-meta {
  display: flex;
  align-items: center;
  gap: 13px;
}

.story-row-meta small {
  padding: 7px 9px;
  border-radius: 999px;
  background: #f0f0f3;
  color: #55555d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.story-row-meta b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0a0a0d;
  color: #fff;
  font-size: 14px;
  transition: transform 220ms ease;
}

.story-row:hover .story-row-meta b {
  transform: rotate(45deg);
}

.stack-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
}

.stack-cloud {
  display: grid;
  gap: 12px;
}

.stack-group {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.stack-group strong {
  display: block;
  margin-bottom: 11px;
  color: #111116;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-cloud span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #43434a;
  font-size: 13px;
  font-weight: 680;
  box-shadow: 0 8px 23px rgba(0, 0, 0, 0.03);
}

.stack-cloud span:nth-child(4n + 1) {
  background: #f4f4f7;
  color: #34343b;
}

.stack-cloud span:nth-child(7n + 2) {
  background: var(--blue-light);
  color: #0056ad;
}

.contact-card {
  min-height: 560px;
  padding: clamp(52px, 8vw, 105px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 119, 255, 0.9), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(184, 255, 91, 0.42), transparent 25%),
    #07070a;
  color: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.2);
}

.contact-card::after {
  content: "";
  width: 450px;
  height: 450px;
  position: absolute;
  right: -80px;
  bottom: -180px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.035), 0 0 0 100px rgba(255, 255, 255, 0.025);
}

.contact-card h2 {
  max-width: 960px;
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: clamp(58px, 7.6vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.contact-card > p:not(.kicker) {
  max-width: 700px;
  margin: 28px 0 0;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.58);
  font-size: 18px;
  line-height: 1.55;
}

.email-copy {
  max-width: 100%;
  margin-top: 42px;
  padding: 16px 12px 16px 26px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 220ms ease, border-color 220ms ease;
}

.email-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.email-addr {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(14px, 2.4vw, 18px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.email-copy-tag {
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 220ms ease, color 220ms ease;
}

.email-copy.copied .email-copy-tag {
  background: #b8ff5b;
  color: #07130a;
}

.contact-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.contact-links a {
  min-height: 52px;
  padding: 0 17px 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

/* ---------- video reel ---------- */
.vid-reel {
  margin: clamp(60px, 9vw, 110px) 0 0;
  background: #000;
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
}
.vid-reel iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; pointer-events: none;
  transform: scale(1.35);
  transform-origin: center center;
}
.vid-reel .vid-shield {
  position: absolute; inset: 0; z-index: 5;
  background: transparent; pointer-events: auto;
}
.vid-reel .vid-mute {
  position: absolute; bottom: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  pointer-events: auto;
}
.vid-reel .vid-mute:hover { background: rgba(0,0,0,.7); }
.vid-reel .vid-mute svg { width: 16px; height: 16px; fill: #fff; }

.site-footer {
  padding-block: 0 45px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #777780;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-dialog {
  inset: 0;
  width: 100dvw;
  height: 100dvh;
  max-width: 100dvw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
}
.story-dialog:modal {
  max-width: 100dvw;
  max-height: 100dvh;
}

.story-dialog[open].story-plain-open {
  animation: story-in 500ms cubic-bezier(.22, 1, .36, 1);
}

.story-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdrop-in 600ms cubic-bezier(.4, 0, .0, 1) both;
  transition: opacity 420ms ease;
}

@keyframes story-in {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: none; }
}

@keyframes backdrop-in {
  from { opacity: 0; }
}

.story-dialog.story-morph {
  transition: clip-path 580ms cubic-bezier(.4, 0, .0, 1);
  will-change: clip-path;
  overflow: hidden;
}
.story-dialog.story-morph .story-hero-image,
.story-dialog.story-morph .story-hero-content > * {
  animation-play-state: paused;
}
.story-dialog.story-morph::backdrop {
  animation: none;
  opacity: 0;
}

.story-dialog.story-closing::backdrop {
  opacity: 0;
}

.story-dialog.story-fade-out {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 300ms ease, transform 320ms cubic-bezier(.4, 0, .2, 1);
}

.story-dialog.story-dragging {
  transition: none;
  overflow: hidden;
}

.story-dialog.story-drag-reset {
  transition: transform 340ms cubic-bezier(.22, 1, .36, 1), border-radius 340ms ease;
}

.story-dialog.story-swipe-out {
  transform: translateY(104%) scale(0.96) !important;
  border-radius: 34px !important;
  opacity: 0.6;
  transition: transform 420ms cubic-bezier(.5, 0, .3, 1), opacity 400ms ease;
  overflow: hidden;
}

.story-page {
  min-height: 100%;
  background: var(--page);
}

.story-nav {
  min-height: 0;
  height: 0;
  overflow: visible;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.story-brand {
  display: none;
}

.story-close {
  margin: 14px 14px 0 0;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  pointer-events: all;
  flex-shrink: 0;
}

.story-close span {
  display: none;
}

.story-close b {
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.story-hero {
  width: 100%;
  margin: 0;
  min-height: min(780px, calc(100dvh - 46px));
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--page);
  color: var(--ink);
  isolation: isolate;
}

.story-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 5vw, 68px) clamp(36px, 6vw, 92px);
}

.story-hero-frame {
  width: 100%;
  height: min(68dvh, 700px);
  min-height: 400px;
  position: relative;
  overflow: hidden;
  background: #09090c;
}

.story-hero-image {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  opacity: 1;
  background: transparent;
  z-index: auto;
  animation: story-hero-zoom 1300ms cubic-bezier(.22, .9, .24, 1) both;
}

@keyframes story-hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.story-hero-content > * {
  animation: story-rise 720ms cubic-bezier(.22, .9, .24, 1) both;
}

.story-hero-content > .story-kicker { animation-delay: 180ms; }
.story-hero-content > h1 { animation-delay: 260ms; }
.story-hero-content > p:not(.story-kicker) { animation-delay: 350ms; }
.story-hero-content > .story-hero-metrics { animation-delay: 440ms; }

@keyframes story-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-magnet] {
  transition: transform 220ms cubic-bezier(.22, .9, .34, 1);
  will-change: transform;
}

.story-hero::after {
  display: none;
}

.story-kicker {
  margin: 0 0 18px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.story-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(68px, 9vw, 150px);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.story-hero-content > p:last-of-type {
  max-width: 750px;
  margin: 28px 0 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.story-hero-metrics {
  max-width: 860px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.story-hero-metrics span {
  min-height: 105px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.story-hero-metrics strong {
  color: #000;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: none;
}

.story-scroll-indicator {
  position: absolute;
  right: clamp(28px, 6vw, 80px);
  bottom: clamp(24px, 4vw, 52px);
  z-index: 1;
  color: rgba(0, 0, 0, 0.38);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-body {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 160px;
}

.story-actions {
  margin-bottom: 68px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-actions button,
.story-action-link {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #303037;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(.22, .9, .34, 1), background 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.story-actions button:hover,
.story-action-link:hover {
  transform: translateY(-2px);
  background: #0a0a0d;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.story-action-link-dark {
  background: #0a0a0d;
  color: #fff;
  flex: 1 0 100%;
  border-color: transparent;
}

.story-demo-pill {
  background: #0a0a0d;
  color: #fff;
  border-color: transparent;
}

.story-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.story-quick-links {
  display: flex;
  gap: 12px;
  margin: 20px 0 80px;
  flex-wrap: wrap;
}

.story-metric {
  min-height: 190px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 280ms cubic-bezier(.22, .9, .34, 1), box-shadow 280ms ease;
}

.story-metric:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
}

.story-metric strong {
  font-size: clamp(38px, 4.7vw, 67px);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.story-metric span {
  color: #777780;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-metric i {
  height: 4px;
  width: var(--value, 58%);
  position: absolute;
  left: 27px;
  right: 27px;
  bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0071e3, #b8ff5b);
}

.story-block {
  padding: clamp(64px, 9vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.story-block-label {
  color: #777780;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-block > .story-block-label {
  display: block;
  margin-bottom: 22px;
}

.story-block-content h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.story-block-content p {
  max-width: 800px;
  margin: 24px 0 0;
  color: #62626a;
  font-size: 18px;
  line-height: 1.68;
  letter-spacing: -0.015em;
}

.story-block.compact {
  padding-bottom: 38px;
}

.problem-visual {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.problem-visual span {
  min-height: 52px;
  padding: 0 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #393940;
  font-size: 12px;
  font-weight: 760;
}

.problem-visual i {
  width: 42px;
  height: 1px;
  background: #b9b9c0;
}

.solution-map,
.technical-challenges,
.lessons-grid,
.roadmap-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 85px;
}

.solution-map article,
.technical-challenges article,
.lessons-grid article,
.roadmap-section article,
.doc-grid article {
  min-height: 230px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.solution-map span,
.technical-challenges span,
.lessons-grid span,
.roadmap-section span,
.doc-grid span {
  color: #0071e3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.solution-map strong,
.technical-challenges h3,
.roadmap-section span {
  display: block;
  margin-top: 48px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.solution-map p,
.technical-challenges p,
.lessons-grid p,
.roadmap-section p,
.doc-grid p {
  margin: 14px 0 0;
  color: #696970;
  font-size: 13px;
  line-height: 1.55;
}

.technical-challenges strong {
  display: inline-flex;
  margin-top: 24px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #0a0a0d;
  color: #fff;
  font-size: 10px;
  font-weight: 760;
}

.feature-list {
  margin: 33px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
}

.feature-list li {
  min-height: 76px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: #3f3f46;
  font-size: 13px;
  line-height: 1.45;
}

.feature-list li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0a0a0d;
  color: #fff;
  font-size: 12px;
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 95px;
}

.story-demo {
  margin: 0 0 84px;
  padding: clamp(26px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.story-demo h2 {
  margin: 12px 0 0;
  max-width: 800px;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.story-demo iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 24px;
  background: #09090c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.demo-vid-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.demo-vid-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  pointer-events: auto;
}

.story-gallery figure {
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  border-radius: 30px;
  background: #111116;
}

.story-gallery button {
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.story-gallery figure:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}

.story-gallery img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  padding: 0;
  background: transparent;
  transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.story-gallery button:hover img {
  transform: scale(1.025);
}

.story-proof {
  margin: 0 0 95px;
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 55px;
  border-radius: 38px;
  background: #0b0b0f;
  color: #fff;
}

.story-proof-copy h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.story-proof-copy p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.6;
}

.story-proof-image {
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 28px;
  background: #202126;
}

.story-proof-image img {
  max-height: 580px;
  width: auto;
  border-radius: 15px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.architecture-showcase {
  margin-bottom: 95px;
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.architecture-diagram {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.architecture-diagram strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.architecture-diagram div {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.architecture-diagram span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f1f1f4;
  color: #4a4a52;
  font-size: 11px;
  font-weight: 760;
}

.agent-flow-section,
.documentation-system,
.impact-section {
  margin-bottom: 95px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 36px;
  background: #09090c;
  color: #fff;
}

.agent-flow-section h2,
.documentation-system h2,
.impact-section h2 {
  max-width: 850px;
  margin: 14px 0 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.agent-flow {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.agent-flow span {
  min-width: 132px;
  min-height: 68px;
  padding: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.agent-flow i {
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.28);
}

.story-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.story-stack span {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #45454d;
  font-size: 12px;
  font-weight: 680;
}

.interactive-stack button {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #45454d;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}

.documentation-system {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  background: #fdfdfd;
  color: var(--ink);
  border: 1px solid var(--line);
}

.doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.doc-grid article {
  min-height: 150px;
  box-shadow: none;
  background: #f5f5f7;
}

.doc-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.build-timeline {
  margin-bottom: 95px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.build-timeline article {
  min-height: 160px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.build-timeline span {
  color: #8a8a91;
  font-size: 10px;
  font-weight: 800;
}

.build-timeline strong {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.lessons-grid {
  grid-template-columns: repeat(4, 1fr);
}

.lessons-grid article {
  min-height: 250px;
}

.impact-section p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
  line-height: 1.58;
}

.roadmap-section {
  margin-bottom: 85px;
}

.roadmap-section span {
  color: #0a0a0d;
  text-transform: none;
}

.story-end {
  margin-top: 65px;
  padding: 55px;
  border-radius: 36px;
  background: #09090c;
  color: #fff;
}

.story-end p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-end h2 {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.story-end button {
  margin-top: 28px;
}

.story-end-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.story-end-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 36px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.story-end-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.story-end-live {
  background: #fff;
  color: #0a0a0d;
}

.story-end-github {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.story-end-github:hover {
  background: rgba(255,255,255,0.18);
}

.story-quick-links .story-end-live {
  background: #09090c;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.story-quick-links .story-end-github {
  background: transparent;
  color: #09090c;
  border: 1.5px solid rgba(0,0,0,0.14);
}

.story-quick-links .story-end-github:hover {
  background: rgba(0,0,0,0.05);
}

.story-quick-links .story-end-btn:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.insight-dialog,
.image-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(245, 245, 247, 0.96);
  color: var(--ink);
}

.insight-dialog::backdrop,
.image-viewer::backdrop {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
  animation: backdrop-in 320ms ease both;
  transition: opacity 240ms ease;
}

.insight-dialog[open]:not(.layer-out) {
  animation: layer-rise 420ms cubic-bezier(.22, 1, .36, 1);
}

.image-viewer[open]:not(.layer-out) {
  animation: layer-zoom 360ms cubic-bezier(.22, 1, .36, 1);
}

@keyframes layer-rise {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
}

@keyframes layer-zoom {
  from { opacity: 0; transform: scale(0.955); }
}

.insight-dialog.layer-out,
.image-viewer.layer-out {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 230ms ease, transform 250ms cubic-bezier(.4, 0, .2, 1);
}

.insight-dialog.layer-out::backdrop,
.image-viewer.layer-out::backdrop {
  opacity: 0;
}

.insight-page {
  min-height: 100%;
  padding: 24px max(24px, calc((100vw - 1180px) / 2)) 80px;
  position: relative;
}

.insight-close {
  position: sticky;
  top: 18px;
  left: 100%;
  z-index: 3;
  margin-left: auto;
}

.insight-hero {
  padding: clamp(44px, 8vw, 94px) 0 40px;
}

.insight-hero h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(52px, 7vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.insight-hero p:last-child {
  max-width: 790px;
  margin: 24px 0 0;
  color: #65656d;
  font-size: 18px;
  line-height: 1.6;
}

.metric-dashboard {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}

.metric-dashboard-main,
.metric-proof-image {
  min-height: 560px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border-radius: 38px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.metric-dashboard-main span {
  color: #777780;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-dashboard-main strong {
  display: block;
  margin-top: 70px;
  font-size: clamp(78px, 10vw, 150px);
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.insight-chart {
  height: 190px;
  margin-top: 80px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.insight-chart i {
  flex: 1;
  min-width: 10px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(#44a6ff, #0a0a0d);
}

.metric-proof-image {
  display: grid;
  place-items: center;
  background: #111116;
}

.metric-proof-image img {
  max-height: 100%;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.metric-proof-abstract {
  color: #fff;
  text-align: center;
}

.metric-proof-abstract strong {
  font-size: 82px;
  letter-spacing: -0.07em;
}

.sector-explorer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sector-project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.sector-project-cards button {
  min-height: 430px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.sector-project-cards img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  padding: 0;
  border-radius: 24px;
  background: var(--project-color, #0a0a0d);
}

.sector-project-cards span {
  margin: 18px 12px 0;
  color: #777780;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sector-project-cards strong {
  margin: 8px 12px 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.sector-project-cards p {
  margin: 12px 12px 0;
  color: #66666e;
  font-size: 13px;
  line-height: 1.5;
}

.sector-project-cards small {
  width: fit-content;
  margin: auto 12px 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #0a0a0d;
  color: #fff;
  font-size: 10px;
  font-weight: 760;
}

.sector-explorer-grid article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.sector-explorer-grid article > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0a0a0d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.sector-explorer-grid h3 {
  margin: 48px 0 0;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.sector-explorer-grid p {
  margin: 12px 0 0;
  color: #686870;
  font-size: 13px;
  line-height: 1.55;
}

.sector-explorer-grid div {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sector-explorer-grid button {
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: #f0f0f3;
  color: #3c3c43;
  font-size: 10px;
  font-weight: 760;
  cursor: pointer;
}

.architecture-viewer {
  display: grid;
  gap: 14px;
}

.architecture-viewer > button {
  width: fit-content;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #55555d;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.architecture-viewer > button.is-active {
  background: #0a0a0d;
  color: #fff;
}

.architecture-canvas {
  min-height: 620px;
  padding: clamp(26px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 12px;
  border-radius: 40px;
  background: #08080b;
  color: #fff;
}

.architecture-canvas article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(calc((var(--index) % 2) * 34px));
}

.architecture-canvas span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 800;
}

.architecture-canvas strong {
  display: block;
  margin-top: 38px;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.architecture-canvas p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.55;
}

.image-viewer {
  background: rgba(5, 5, 7, 0.96);
}

.image-viewer-shell {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  padding: 72px 80px;
}

.image-viewer img {
  max-width: min(100%, 1320px);
  max-height: calc(100dvh - 160px);
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.image-viewer-close,
.image-viewer-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.image-viewer-close {
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 28px;
  font-weight: 300;
}

.image-viewer-nav {
  width: 52px;
  height: 52px;
  top: 50%;
  font-size: 42px;
  line-height: 1;
}

.image-viewer-prev { left: 24px; }
.image-viewer-next { right: 24px; }

.image-viewer-caption {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
}

.assistant-orb {
  width: 68px;
  height: 68px;
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.assistant-orb span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  box-shadow:
    inset 0 16px 22px rgba(255, 255, 255, 0.86),
    inset 0 -10px 30px rgba(0, 0, 50, 0.22),
    0 22px 60px rgba(37, 99, 235, 0.24);
}

.assistant-orb:hover {
  transform: translateY(-2px) scale(1.03);
}

.assistant-orb span::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 40% 40%, #ffffff 0%, #a5f3fc 25%, #3b82f6 55%, #1e3a8a 90%);
  animation: assistant-spin 8s linear infinite;
}

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

.assistant-orb b {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.assistant-orb small {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #33333a;
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  animation: wake-word-fade 6s ease-in-out infinite;
}

@keyframes wake-word-fade {
  0%, 35%, 100% { opacity: 0.92; transform: translateY(0); }
  48%, 86% { opacity: 0; transform: translateY(4px); }
}

.assistant-panel {
  width: min(430px, calc(100vw - 28px));
  min-height: 620px;
  max-height: min(760px, calc(100dvh - 112px));
  margin-bottom: 14px;
  padding: 18px;
  position: absolute;
  right: 0;
  bottom: 76px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 34%, rgba(59, 130, 246, 0.11), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(184, 255, 91, 0.1), transparent 30%),
    rgba(250, 250, 252, 0.95);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(26px);
  overflow: hidden;
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-panel.assistant-open {
  animation: assistant-panel-in 340ms cubic-bezier(.22, 1, .36, 1) both;
}

.assistant-panel.assistant-closing {
  animation: assistant-panel-out 280ms cubic-bezier(.4, 0, .2, 1) both;
  pointer-events: none;
}

@keyframes assistant-panel-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes assistant-panel-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(14px) scale(0.97); }
}

.assistant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.assistant-top strong,
.assistant-top span {
  display: block;
}

.assistant-top strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.assistant-top span {
  margin-top: 2px;
  color: #777780;
  font-size: 11px;
  font-weight: 650;
}

.assistant-top button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #0a0a0d;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
}

.assistant-core {
  flex: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
}

.assistant-core p {
  width: 100%;
  min-height: 58px;
  max-height: 82px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #2d2d33;
  font-size: 18px;
  font-weight: 640;
  line-height: 1.42;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
}

.assistant-sphere {
  width: 196px;
  height: 196px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  box-shadow:
    inset 0 22px 34px rgba(255, 255, 255, 0.86),
    inset 0 -16px 45px rgba(0, 0, 50, 0.22),
    0 30px 70px rgba(37, 99, 235, 0.22);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.assistant-sphere span {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 40% 40%, #ffffff 0%, #a5f3fc 25%, #3b82f6 55%, #1e3a8a 90%);
  animation: assistant-spin 8s linear infinite;
}

.assistant-sphere::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.38);
  opacity: 0;
  pointer-events: none;
}

.assistant-panel[data-state="listening"] .assistant-sphere {
  box-shadow:
    inset 0 22px 34px rgba(255, 255, 255, 0.72),
    inset 0 -16px 45px rgba(0, 0, 0, 0.22),
    0 0 0 12px rgba(59, 130, 246, 0.1),
    0 34px 80px rgba(0, 0, 0, 0.18);
}

.assistant-panel[data-state="listening"] .assistant-sphere::before {
  opacity: 1;
  animation: assistant-ripple 1.5s cubic-bezier(.2, .8, .4, 1) infinite;
}

.assistant-panel[data-state="listening"] .assistant-sphere span {
  animation-duration: 4s;
  filter: brightness(1.1);
}

.assistant-panel[data-state="processing"] .assistant-sphere span {
  animation-duration: 1.5s;
}

.assistant-panel[data-state="speaking"] .assistant-sphere {
  transform: scale(1.02);
  box-shadow:
    inset 0 22px 34px rgba(255, 255, 255, 0.86),
    inset 0 -16px 45px rgba(0, 0, 50, 0.22),
    0 0 52px rgba(59, 130, 246, 0.34),
    0 30px 70px rgba(37, 99, 235, 0.2);
}

.assistant-panel[data-state="speaking"] .assistant-sphere span {
  animation-duration: 6s;
  filter: brightness(1.18);
}

@keyframes assistant-ripple {
  0% { transform: scale(1); opacity: 0.8; border-width: 4px; }
  100% { transform: scale(1.38); opacity: 0; border-width: 1px; }
}

.assistant-suggestions {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.assistant-suggestions::-webkit-scrollbar {
  display: none;
}

.assistant-suggestions button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #45454d;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  white-space: nowrap;
}

.assistant-contact-pills {
  display: flex;
  gap: 8px;
  padding: 3px;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(231, 242, 255, 0.78)),
    rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 35px rgba(0, 113, 227, 0.1);
}

.assistant-contact-pills[hidden] {
  display: none;
}

.assistant-contact-pills a {
  min-height: 38px;
  flex: 1;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #0a0a0d;
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.assistant-contact-pills a:last-child {
  background: #0071e3;
}

.assistant-contact-pills span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
  font-weight: 800;
}

.assistant-form {
  margin-top: auto;
  padding: 6px;
  display: flex;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transform: translate3d(0, 0, 0);
}

.assistant-form input {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 9px 0 13px;
  border-radius: 999px;
  color: #111116;
  font-size: 14px;
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-form button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #0a0a0d;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.assistant-form button:disabled {
  background: #ececf0;
  color: #9b9ba3;
  cursor: default;
}

.noscript {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 1000;
  padding: 14px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 500ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

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

  .hero-stage {
    width: min(100%, 820px);
    margin-inline: auto;
  }

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

  .flagship-card {
    grid-template-columns: 1fr;
  }

  .flagship-media {
    min-height: 560px;
    order: -1;
  }

  .flagship-media::after {
    background: linear-gradient(180deg, transparent 70%, #050507);
  }

  .flagship-copy {
    min-height: 520px;
  }

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

  .capability-card:first-child {
    grid-column: 1 / -1;
  }

  .research-card {
    grid-template-columns: 1fr 1fr;
  }

  .sector-grid,
  .architecture-grid,
  .recognition-wall,
  .sector-explorer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-dashboard,
  .documentation-system {
    grid-template-columns: 1fr;
  }

  .build-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .section-shell,
  .nav-shell {
    width: min(100% - 28px, 1380px);
  }
  .story-dialog .story-hero,
  .story-dialog .story-body {
    width: 100%;
  }

  .brand-copy small,
  .nav-contact {
    display: none;
  }

  .hero {
    padding-block: 55px 90px;
  }

  .hero h1 {
    font-size: clamp(60px, 14vw, 105px);
  }

  .hero-stage {
    min-height: 590px;
  }

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

  .stat {
    min-height: 135px;
  }

  .heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card,
  .project-card:nth-child(5n + 1),
  .project-card:nth-child(5n + 2),
  .project-card:nth-child(5n + 4),
  .project-card:nth-child(5n + 5) {
    grid-column: span 12;
  }

  .capability-grid,
  .writing-grid,
  .stack-section {
    grid-template-columns: 1fr;
  }

  .capability-card:first-child {
    grid-column: auto;
  }

  .research-card {
    grid-template-columns: 1fr;
  }

  .research-image {
    min-height: 560px;
    padding: 45px 45px 0;
    justify-content: center;
  }

  .research-copy {
    padding-top: 35px;
  }

  .research-more {
    grid-template-columns: 1fr;
  }

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

  .story-block {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .story-proof {
    grid-template-columns: 1fr;
  }

  .sector-grid,
  .architecture-grid,
  .recognition-wall,
  .sector-explorer-grid,
  .sector-project-cards,
  .diagram-grid,
  .solution-map,
  .technical-challenges,
  .roadmap-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lessons-grid,
  .architecture-canvas {
    grid-template-columns: 1fr 1fr;
  }

  .tech-universe {
    min-height: auto;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tech-orbits {
    display: none;
  }

  .tech-node {
    width: auto;
    min-height: 94px;
    position: static;
    transform: none;
  }
}

@media (max-width: 620px) {
  :root {
    --radius-xl: 32px;
    --radius-lg: 26px;
  }

  .site-header {
    padding-top: 8px;
  }

  .nav-shell {
    min-height: 58px;
    padding: 7px 7px 7px 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 43px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(55px, 18vw, 78px);
  }

  .hero-lead {
    margin-top: 26px;
    font-size: 17px;
  }

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

  .primary-button,
  .text-button {
    width: 100%;
  }

  .hero-stage {
    min-height: 430px;
  }

  .hero-product {
    border-radius: 27px;
    transform: none;
  }

  .hero-rotator {
    border-radius: 20px;
  }

  .hero-product-copy {
    padding: 18px 14px 15px;
  }

  .floating-chip {
    min-width: 140px;
    padding: 11px 13px;
  }

  .floating-chip span {
    font-size: 18px;
  }

  .chip-one {
    left: -2%;
    bottom: 4%;
  }

  .chip-two {
    right: -1%;
    top: 10%;
  }

  .stats {
    margin-bottom: 85px;
    border-radius: 25px;
  }

  .stat {
    min-height: 122px;
    padding: 17px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat svg {
    width: 22px;
    height: 22px;
  }

  .stat-value {
    font-size: 34px;
  }

  .section-heading h2,
  .stack-intro h2 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .section-heading > p:last-child,
  .heading-row > p,
  .stack-intro > p:last-child {
    font-size: 15px;
  }

  .growth,
  .work-section,
  .capabilities,
  .writing,
  .stack-section,
  .contact,
  .founder-journey,
  .sector-section,
  .engineering-section,
  .recognition,
  .vision-section {
    padding-bottom: 90px;
  }

  .journey-track {
    grid-auto-columns: minmax(270px, 86vw);
  }

  .journey-card {
    min-height: 300px;
  }

  .sector-grid,
  .architecture-grid,
  .recognition-wall,
  .sector-explorer-grid,
  .sector-project-cards,
  .diagram-grid,
  .solution-map,
  .technical-challenges,
  .roadmap-section,
  .lessons-grid,
  .architecture-canvas,
  .metric-dashboard,
  .tech-universe {
    grid-template-columns: 1fr;
  }

  .sector-card,
  .architecture-card,
  .recognition-tile {
    min-height: 220px;
    border-radius: 26px;
  }

  .vision-panel {
    min-height: 620px;
    padding: 40px 28px;
  }

  .vision-panel h2 {
    font-size: 54px;
  }

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

  .growth-card {
    min-height: 330px;
  }

  .flagship {
    padding-bottom: 90px;
  }

  .flagship-media {
    min-height: 380px;
  }

  .flagship-copy {
    min-height: auto;
    padding: 33px 27px;
  }

  .flagship-copy h2 {
    font-size: 64px;
  }

  .flagship-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
  }

  .project-card {
    min-height: 500px;
    border-radius: 29px;
  }

  .project-media {
    height: 240px;
    border-radius: 22px;
  }

  .project-heading h3 {
    font-size: 37px;
  }

  .project-stack-mini span:nth-child(n + 3) {
    display: none;
  }

  .capability-card {
    min-height: 470px;
    padding: 27px;
  }

  .research {
    padding-bottom: 90px;
  }

  .research-image {
    min-height: 410px;
    padding: 35px 28px 0;
  }

  .research-image img {
    transform: translateY(65px) rotate(-2deg);
  }

  .research-copy {
    padding: 39px 28px 45px;
  }

  .research-copy h2 {
    font-size: 55px;
  }

  .research-more {
    padding: 0 20px 20px;
  }

  .writing-column {
    padding: 20px;
    border-radius: 28px;
  }

  .story-row {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .story-row-meta {
    justify-content: space-between;
  }

  .contact-card {
    min-height: 530px;
    padding: 40px 28px;
  }

  .contact-card h2 {
    font-size: 58px;
  }

  .contact-links {
    width: 100%;
    flex-direction: column;
  }

  .contact-links a {
    justify-content: space-between;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-nav {
    padding-inline: 14px;
  }

  .story-brand > span:last-child,
  .story-close > span {
    display: none;
  }

  .story-hero {
    min-height: 610px;
    padding: 0;
    background: #ffffff;
    color: #000000;
  }

  .story-hero-frame {
    height: 360px;
    min-height: 300px;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
  }

  .story-hero-image {
    object-position: left center;
  }

  .story-hero-content {
    padding: 28px 24px 34px;
    background: #ffffff;
  }

  .story-kicker {
    color: #a1a1a6;
  }

  .story-hero h1 {
    font-size: clamp(48px, 16vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #000000;
  }

  .story-hero-content > p:last-of-type {
    font-size: 17px;
    color: #6e6e73;
  }

  .story-hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 10px;
  }

  .story-hero-metrics span {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 28px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    color: #000000;
  }

  .story-hero-metrics strong {
    color: #000000;
  }

  .story-actions {
    gap: 7px;
  }

  .story-actions button {
    flex: 1 1 calc(50% - 7px);
  }

  .story-dialog[open].story-plain-open {
    animation: story-in 500ms cubic-bezier(.22, 1, .36, 1);
  }
  .story-dialog[open] {
    background: #ffffff;
  }

  .project-card:active {
    transform: scale(0.97);
    transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .story-scroll-indicator {
    color: #a1a1a6;
  }

  .story-body {
    padding-top: 55px;
  }

  .story-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 60px;
  }

  .story-metric {
    min-height: 145px;
    padding: 20px 20px 36px;
  }

  .story-metric strong {
    font-size: 38px;
  }

  .story-metric span {
    padding-right: 4px;
    line-height: 1.35;
  }

  .story-metric i {
    left: 20px;
    right: 20px;
    bottom: 17px;
    max-width: calc(100% - 40px);
  }

  .story-block {
    padding: 55px 0;
  }

  .story-block-content h2 {
    font-size: 43px;
  }

  .story-block-content p {
    font-size: 16px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .story-gallery {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 60px;
  }

  .story-demo {
    grid-template-columns: 1fr;
    margin-bottom: 60px;
    padding: 24px 0;
    border-radius: 28px;
  }

  .story-demo > div:first-child {
    padding: 0 24px;
  }

  .story-demo iframe {
    width: 100%;
    border-radius: 0;
  }

  .story-gallery figure,
  .story-gallery img {
    min-height: 240px;
    border-radius: 22px;
  }

  .story-gallery figure:first-child:nth-last-child(odd) {
    grid-column: auto;
  }

  .story-proof {
    margin-bottom: 60px;
    padding: 25px;
    gap: 28px;
    border-radius: 28px;
  }

  .story-end {
    padding: 35px 27px;
  }

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

  .problem-visual i {
    width: 1px;
    height: 24px;
    margin-inline: auto;
  }

  .architecture-diagram div {
    grid-template-columns: 1fr 1fr;
  }

  .build-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .agent-flow-section,
  .documentation-system,
  .impact-section {
    margin-bottom: 60px;
    padding: 26px;
    border-radius: 28px;
  }

  .insight-page {
    padding: 14px 14px 58px;
  }

  .metric-dashboard-main,
  .metric-proof-image {
    min-height: 390px;
    border-radius: 28px;
  }

  .architecture-canvas {
    min-height: auto;
    border-radius: 28px;
  }

  .architecture-canvas article {
    transform: none;
  }

  .image-viewer-shell {
    padding: 72px 14px;
  }

  .image-viewer-nav {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: 24px;
  }

  .image-viewer-prev { left: 18px; }
  .image-viewer-next { right: 18px; }

  .image-viewer-caption {
    bottom: 82px;
    width: 100%;
    text-align: center;
  }

  .portfolio-assistant {
    right: 14px;
    bottom: 14px;
  }

  .assistant-panel {
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 96px);
    min-height: min(610px, calc(100dvh - 96px));
    overflow-y: auto;
    transform: translate3d(0, 0, 0);
  }

  .assistant-core {
    min-height: 300px;
    gap: 20px;
  }

  .assistant-sphere {
    width: 166px;
    height: 166px;
  }

  .assistant-core p {
    min-height: 48px;
    max-height: 70px;
    font-size: 16px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   OPEN GAMBIT — featured case study
   ============================================================ */

.gambit-section {
  padding-block: 40px 60px;
  scroll-margin-top: 90px;
}

.gambit-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(44px, 6vw, 92px) clamp(24px, 5vw, 84px) clamp(36px, 4.5vw, 72px);
  border-radius: var(--radius-xl);
  background: #050507;
  color: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.gambit-atmosphere {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 78% 8%, rgba(140, 60, 30, 0.2), transparent 42%),
    radial-gradient(ellipse at 12% 30%, rgba(0, 113, 227, 0.13), transparent 46%),
    radial-gradient(ellipse at 55% 105%, rgba(184, 255, 91, 0.05), transparent 44%);
  will-change: transform;
}

@keyframes gambit-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
}

.gambit-live .gambit-atmosphere {
  animation: gambit-drift 26s ease-in-out infinite;
}

.gambit-intro {
  max-width: 780px;
}

.gambit-title {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.24em;
  font-size: clamp(58px, 8.4vw, 138px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.gambit-word {
  display: inline-flex;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.gambit-word i {
  display: inline-block;
  font-style: normal;
  transform: translateY(112%);
  transition: transform 850ms cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--letter, 0) * 42ms);
}

.gambit-word i:nth-child(1) { --letter: 0; }
.gambit-word i:nth-child(2) { --letter: 1; }
.gambit-word i:nth-child(3) { --letter: 2; }
.gambit-word i:nth-child(4) { --letter: 3; }
.gambit-word i:nth-child(5) { --letter: 4; }
.gambit-word i:nth-child(6) { --letter: 5; }

.gambit-word-serif i {
  transition-delay: calc((var(--letter) + 4) * 42ms);
}

.gambit-live .gambit-word i {
  transform: translateY(0);
}

.gambit-word-serif {
  font-family: inherit;
  font-weight: inherit;
  font-style: normal;
  letter-spacing: -0.06em;
  color: #fff;
}

.gambit-tagline {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-serif, "Iowan Old Style", "Baskerville", Georgia, serif;
  font-style: italic;
  font-size: clamp(19px, 2vw, 26px);
  letter-spacing: -0.01em;
}

.gambit-lead {
  margin: 18px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.gambit-surfaces {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}

.gambit-surface {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  color: #0a0a0d;
  overflow: hidden;
  transition: transform 450ms cubic-bezier(.2, .8, .2, 1), border-color 450ms ease, box-shadow 450ms ease;
}

.gambit-surface:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.gambit-surface-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.gambit-surface-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(5, 5, 7, 0.55));
  pointer-events: none;
}

.gambit-surface-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.06);
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1), filter 500ms ease;
  filter: saturate(0.96);
  will-change: transform;
}

.gambit-surface:hover .gambit-surface-media img {
  filter: saturate(1.08);
}

.gambit-surface-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
  padding: 22px 24px 24px;
}

.gambit-surface-index {
  color: rgba(0, 0, 0, 0.4);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gambit-surface-copy strong {
  font-size: 24px;
  letter-spacing: -0.04em;
  color: #0a0a0d;
}

.gambit-surface-copy p {
  margin: 0;
  color: rgba(0, 0, 0, 0.58);
  font-size: 14px;
  line-height: 1.6;
}

.gambit-surface-cta {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0a0a0d;
}

.gambit-surface-cta b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0a0a0d;
  color: #fff;
  font-size: 14px;
  transition: transform 250ms ease;
}

.gambit-surface:hover .gambit-surface-cta b {
  transform: rotate(45deg);
}

.gambit-capabilities {
  margin-top: clamp(30px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gambit-capabilities span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: border-color 250ms ease, color 250ms ease, background 250ms ease;
}

.gambit-capabilities span:hover {
  border-color: rgba(184, 255, 91, 0.45);
  color: #fff;
  background: rgba(184, 255, 91, 0.06);
}

.gambit-footer {
  margin-top: clamp(28px, 3.5vw, 46px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.gambit-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.gambit-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gambit-links a {
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.gambit-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.14);
}

/* ============================================================
   PRODUCT SHELF — beyond the ecosystem
   ============================================================ */

.beyond-section {
  padding-block: 70px 40px;
  scroll-margin-top: 90px;
}

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.beyond-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  transition: transform 400ms cubic-bezier(.2, .8, .2, 1), box-shadow 400ms ease;
}

.beyond-card:hover {
  box-shadow: 0 34px 85px rgba(0, 0, 0, 0.13);
}

.beyond-card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.beyond-card:first-child .beyond-media {
  flex: 1.15;
  min-height: 420px;
  aspect-ratio: auto;
}

.beyond-card:first-child .beyond-info {
  flex: 0.85;
  align-self: center;
}

.beyond-media {
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  background: #0c0c10;
}

.beyond-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.beyond-card:hover .beyond-media > img {
  transform: scale(1.07);
}

.beyond-cover {
  display: grid;
  place-items: center;
  position: relative;
}

.beyond-cover-vanaja {
  background:
    radial-gradient(ellipse at 24% 18%, rgba(0, 113, 227, 0.34), transparent 52%),
    radial-gradient(ellipse at 82% 88%, rgba(231, 242, 255, 0.14), transparent 46%),
    linear-gradient(160deg, #0b1220, #060810);
}

.beyond-cover-graviton {
  background:
    radial-gradient(ellipse at 74% 16%, rgba(184, 255, 91, 0.13), transparent 46%),
    radial-gradient(ellipse at 20% 90%, rgba(0, 113, 227, 0.2), transparent 52%),
    linear-gradient(200deg, #0c0f14, #05070b);
}

.beyond-cover-mark {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(72px, 8vw, 128px);
  font-weight: 800;
  letter-spacing: -0.06em;
  font-family: ui-serif, "Iowan Old Style", "Baskerville", Georgia, serif;
  font-style: italic;
}

.beyond-cover-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.beyond-cover-rings i {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  width: 34%;
  aspect-ratio: 1;
}

.beyond-cover-rings i:nth-child(2) { width: 56%; border-color: rgba(255, 255, 255, 0.06); }
.beyond-cover-rings i:nth-child(3) { width: 80%; border-color: rgba(255, 255, 255, 0.04); }

.beyond-card:hover .beyond-cover-rings i {
  transform: scale(1.05);
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.beyond-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 18px 18px;
}

.beyond-category {
  color: #777780;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.beyond-info h3 {
  margin: 12px 0 0;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.beyond-positioning {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: ui-serif, "Iowan Old Style", "Baskerville", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.beyond-description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
  max-width: 560px;
}

.beyond-stack {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.beyond-stack span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0f0f3;
  color: #55555d;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   LINK PILLS (shared)
   ============================================================ */

.link-row {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}

.link-pill b {
  font-weight: 700;
  transition: transform 200ms ease;
}

.link-pill:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.link-pill:hover b {
  transform: translate(1px, -1px);
}

.link-pill-primary {
  background: #0a0a0d;
  border-color: #0a0a0d;
  color: #fff;
}

.link-pill-muted {
  background: transparent;
  color: #777780;
  cursor: default;
}

/* ============================================================
   THE LAB — creative experiments
   ============================================================ */

.playground-section {
  padding-block: 70px 40px;
  scroll-margin-top: 90px;
}

.playground-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.lab-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  transition: transform 400ms cubic-bezier(.2, .8, .2, 1), box-shadow 400ms ease;
}

.lab-card:hover {
  box-shadow: 0 34px 85px rgba(0, 0, 0, 0.13);
}

.lab-card-wide { grid-column: span 7; }
.lab-card-tall { grid-column: span 5; }
.lab-card-normal { grid-column: span 6; }
.lab-card-text { grid-column: span 6; }
.lab-card-banner { grid-column: 1 / -1; }

.lab-card-banner .lab-media {
  aspect-ratio: 21 / 7;
}

.lab-card-banner .lab-media img {
  object-position: center 38%;
}

.lab-card-banner .lab-info {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 8px 40px;
}

.lab-card-banner .lab-info > p {
  margin-top: 4px;
}

.lab-card-banner .link-row {
  grid-column: 1 / -1;
}

.lab-media {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9.6;
  background: #0c0c10;
}

.lab-card-tall .lab-media {
  aspect-ratio: 16 / 11.4;
}

.lab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1100ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.lab-card:hover .lab-media img {
  transform: scale(1.09);
}

.lab-overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.lab-card:hover .lab-overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .lab-overlay {
    opacity: 1;
    transform: none;
  }
}

.lab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lab-overlay .lab-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lab-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 17px 16px;
}

.lab-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.lab-info h3,
.lab-text-body h3 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.lab-subtitle {
  color: #777780;
  font-family: ui-serif, "Iowan Old Style", "Baskerville", Georgia, serif;
  font-style: italic;
  font-size: 15px;
}

.lab-info > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
}

.lab-card-text {
  justify-content: space-between;
  background: #0a0a0d;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.06);
  padding: 34px 30px 24px;
}

.lab-card-text .lab-quote {
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.5);
  font-family: ui-serif, "Iowan Old Style", "Baskerville", Georgia, serif;
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lab-card-text .lab-subtitle {
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 8px;
}

.lab-card-text .lab-text-body > p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.62;
  max-width: 560px;
}

.lab-card-text .lab-meta {
  margin-top: 22px;
}

.lab-card-text .lab-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lab-card-text .link-pill {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* ============================================================
   Responsive + reduced motion for new sections
   ============================================================ */

@media (max-width: 1180px) {
  .lab-card-wide,
  .lab-card-tall,
  .lab-card-normal,
  .lab-card-text {
    grid-column: span 6;
  }

  .lab-card-banner .lab-media {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 900px) {
  .gambit-surfaces {
    grid-template-columns: 1fr;
  }

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

  .beyond-card:first-child {
    flex-direction: column;
  }

  .beyond-card:first-child .beyond-media {
    min-height: 0;
    aspect-ratio: 16 / 9.4;
  }

  .lab-card-wide,
  .lab-card-tall,
  .lab-card-normal,
  .lab-card-text {
    grid-column: span 12;
  }

  .lab-card-banner .lab-media {
    aspect-ratio: 16 / 9.6;
  }

  .lab-card-banner .lab-info {
    grid-template-columns: 1fr;
  }

  .gambit-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .gambit-panel {
    border-radius: var(--radius-lg);
  }

  .gambit-title {
    font-size: clamp(44px, 15vw, 64px);
  }

  .beyond-card,
  .lab-card {
    border-radius: 30px;
  }

  .beyond-media,
  .lab-media {
    border-radius: 22px;
  }

  .lab-card-text {
    padding: 26px 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gambit-word i {
    transform: none;
    transition: none;
  }

  .gambit-live .gambit-atmosphere {
    animation: none;
  }

  .gambit-surface-media img,
  .beyond-media > img,
  .lab-media img {
    transform: none;
    transition: none;
  }

  .lab-overlay {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   MOTION SYSTEM — word reveals, parallax, spotlight, glare
   ============================================================ */

h1.split .w,
h2.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.25em;
  margin-bottom: -0.25em;
}

h1.split.words-in .w,
h2.split.words-in .w {
  overflow: visible;
}

h1.split .w i,
h2.split .w i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(118%);
  transition: transform 950ms cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--w, 0) * 55ms);
  will-change: transform;
}

h1.split.words-in .w i,
h2.split.words-in .w i {
  transform: translateY(0);
}

/* Parallax depth — media drifts inside its frame */
.flagship-media img {
  transform: translateY(var(--par, 0px)) scale(1.14);
  transition: opacity 700ms ease;
}

.research-image img {
  transform: translateY(var(--par, 0px)) scale(1.12);
}

/* Cursor spotlight on dark panels */
.has-spotlight {
  position: relative;
}

.has-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.055), transparent 62%);
  opacity: var(--spot-o, 0);
  transition: opacity 450ms ease;
  pointer-events: none;
}

/* Glare highlight following the cursor across card media */
.project-media::before,
.beyond-media::before,
.lab-media::before,
.gambit-surface-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(430px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.13), transparent 58%);
  opacity: var(--glare-o, 0);
  transition: opacity 350ms ease;
  pointer-events: none;
}

/* Scrollspy */
.desktop-nav a.is-active {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}

/* Journey track — drag physics */
.journey-track {
  cursor: grab;
}

.journey-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

/* Hero entrance choreography */
.hero-copy.reveal .hero-lead,
.hero-copy.reveal .hero-actions,
.hero-copy.reveal .hero-footnote {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease, transform 500ms cubic-bezier(.2, .8, .2, 1);
}

.hero-copy.reveal .hero-lead { transition-delay: 180ms; }
.hero-copy.reveal .hero-actions { transition-delay: 300ms; }
.hero-copy.reveal .hero-footnote { transition-delay: 420ms; }

.hero-copy.reveal.is-visible .hero-lead,
.hero-copy.reveal.is-visible .hero-actions,
.hero-copy.reveal.is-visible .hero-footnote {
  opacity: 1;
  transform: translateY(0);
}

/* Floating hero chips — slow drift */
@keyframes chip-float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-9px) rotate(-1.2deg); }
}

.floating-chip {
  animation: chip-float 6.5s ease-in-out infinite alternate;
}

.chip-two {
  animation-duration: 8s;
  animation-delay: 1.2s;
}

/* Gambit capability chips — staggered entrance */
.gambit-capabilities span {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1), border-color 250ms ease, color 250ms ease, background 250ms ease;
}

.gambit-capabilities span:nth-child(1) { transition-delay: 40ms; }
.gambit-capabilities span:nth-child(2) { transition-delay: 90ms; }
.gambit-capabilities span:nth-child(3) { transition-delay: 140ms; }
.gambit-capabilities span:nth-child(4) { transition-delay: 190ms; }
.gambit-capabilities span:nth-child(5) { transition-delay: 240ms; }
.gambit-capabilities span:nth-child(6) { transition-delay: 290ms; }
.gambit-capabilities span:nth-child(7) { transition-delay: 340ms; }
.gambit-capabilities span:nth-child(8) { transition-delay: 390ms; }
.gambit-capabilities span:nth-child(9) { transition-delay: 440ms; }

.gambit-live .gambit-capabilities span {
  opacity: 1;
  transform: translateY(0);
}

/* Working stack chips — per-group stagger */
.stack-cloud.reveal .stack-group span {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 600ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(min(var(--i, 0) * 26ms, 480ms) + 120ms);
}

.stack-cloud.reveal.is-visible .stack-group span {
  opacity: 1;
  transform: translateY(0);
}

/* Press states */
.stat-button:active,
.journey-card:active,
.sector-card:active,
.growth-card:active,
.story-row:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .flagship-media img,
  .research-image img {
    transform: none;
  }

  .floating-chip {
    animation: none;
  }

  .hero-copy.reveal .hero-lead,
  .hero-copy.reveal .hero-actions,
  .hero-copy.reveal .hero-footnote,
  .gambit-capabilities span,
  .stack-cloud.reveal .stack-group span {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Story-openable cards
   ============================================================ */

.card-openable {
  cursor: pointer;
}

.card-openable:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.12);
}

.link-pill-story {
  background: #0a0a0d;
  border-color: #0a0a0d;
  color: #fff;
}

.link-pill-story b {
  transition: transform 250ms ease;
}

.card-openable:hover .link-pill-story b {
  transform: translateX(3px);
}

.lab-card-text .link-pill-story {
  background: #0a0a0d;
  border-color: #0a0a0d;
  color: #fff;
}

.gambit-story-cta {
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: #fff;
  color: #0a0a0d;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.gambit-story-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.gambit-story-cta span {
  display: inline-block;
  transition: transform 250ms ease;
}

.gambit-story-cta:hover span {
  transform: translateX(3px);
}

/* ============================================================
   PREMIUM VISUAL LAYER — marquee, grain, editorial footer
   ============================================================ */

/* Editorial marquee ticker */
.marquee-strip {
  margin: clamp(20px, 3vw, 40px) 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #1c1c21;
}

.marquee-track span:nth-child(4n + 3) {
  font-family: ui-serif, "Iowan Old Style", Baskerville, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #8a8a92;
}

.marquee-track i {
  font-style: normal;
  font-size: 12px;
  color: #b8b8c0;
}

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

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

/* Film grain on dark panels */
.gambit-panel::before,
.vision-panel::before,
.contact-card::before,
.lab-card-text::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}

/* Editorial footer */
.site-footer {
  display: block;
  padding-block: 0 34px;
  text-transform: none;
  letter-spacing: normal;
}

.footer-top {
  padding: 30px 0 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #1c1c21;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fbf5f;
  box-shadow: 0 0 0 0 rgba(47, 191, 95, 0.5);
  animation: pulse-ring 2.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(47, 191, 95, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(47, 191, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 191, 95, 0); }
}

.footer-clock {
  color: #777780;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.footer-clock b {
  color: #1c1c21;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.footer-links {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #62626a;
  font-size: 12px;
  font-weight: 700;
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: #0a0a0d;
}

.footer-reel {
  position: relative;
  overflow: hidden;
  margin: 26px 0 10px;
  border-radius: var(--radius-lg);
  background: #0a0a0d;
}
.footer-reel-vid {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 600ms ease;
}
.footer-reel.reel-playing .footer-reel-vid {
  opacity: 0.8;
}
.footer-reel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 13, 0.1);
  pointer-events: none;
}
.footer-wordmark {
  position: relative;
  z-index: 2;
  padding: 32px 24px;
  font-size: clamp(58px, 10.6vw, 178px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.5);
  user-select: none;
  white-space: nowrap;
  transition: -webkit-text-stroke-color 600ms ease;
}

.footer-wordmark em {
  font-style: normal;
  margin-left: 0.18em;
}

.footer-wordmark:hover {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.8);
}

.footer-base {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #777780;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-base a {
  color: #1c1c21;
}

@media (max-width: 620px) {
  .footer-wordmark {
    white-space: normal;
    line-height: 0.9;
    padding: 20px 14px;
  }

  .footer-wordmark em {
    margin-left: 0;
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  .pulse-dot {
    animation: none;
  }
}

/* ============================================================
   ILLUSTRATION LAYER — chessboard, orbits, satellite
   ============================================================ */

/* Open Gambit — perspective board + knight */
.gambit-illustration {
  position: absolute;
  top: clamp(40px, 5vw, 84px);
  right: clamp(20px, 4.5vw, 76px);
  width: clamp(300px, 26vw, 400px);
  z-index: 0;
  pointer-events: none;
}

.gambit-board {
  width: 100%;
  height: auto;
  display: block;
}

.gambit-board line {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1400ms cubic-bezier(.2, .8, .2, 1);
}

.gambit-board line:nth-of-type(1) { transition-delay: 200ms; }
.gambit-board line:nth-of-type(2) { transition-delay: 260ms; }
.gambit-board line:nth-of-type(3) { transition-delay: 320ms; }
.gambit-board line:nth-of-type(4) { transition-delay: 380ms; }
.gambit-board line:nth-of-type(5) { transition-delay: 440ms; }
.gambit-board line:nth-of-type(6) { transition-delay: 500ms; }
.gambit-board line:nth-of-type(7) { transition-delay: 620ms; }
.gambit-board line:nth-of-type(8) { transition-delay: 665ms; }
.gambit-board line:nth-of-type(9) { transition-delay: 710ms; }
.gambit-board line:nth-of-type(10) { transition-delay: 755ms; }
.gambit-board line:nth-of-type(11) { transition-delay: 800ms; }
.gambit-board line:nth-of-type(12) { transition-delay: 845ms; }
.gambit-board line:nth-of-type(13) { transition-delay: 890ms; }
.gambit-board line:nth-of-type(14) { transition-delay: 935ms; }
.gambit-board line:nth-of-type(15) { transition-delay: 980ms; }

.gambit-live .gambit-board line {
  stroke-dashoffset: 0;
}

.gambit-move-square {
  fill: rgba(184, 255, 91, 0.13);
  opacity: 0;
  transition: opacity 900ms ease 1500ms;
}

.gambit-live .gambit-move-square {
  opacity: 1;
  animation: move-square-pulse 4s ease-in-out 2400ms infinite;
}

@keyframes move-square-pulse {
  0%, 100% { fill: rgba(184, 255, 91, 0.13); }
  50% { fill: rgba(184, 255, 91, 0.28); }
}

.gambit-knight {
  position: absolute;
  left: 47%;
  top: -12%;
  font-size: clamp(84px, 8vw, 122px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 34px rgba(184, 255, 91, 0.35), 0 22px 44px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 800ms ease 1600ms, transform 1000ms cubic-bezier(.2, .8, .2, 1) 1600ms;
}

.gambit-live .gambit-knight {
  opacity: 1;
  transform: translate(-50%, 0);
  animation: knight-hover 7s ease-in-out 2800ms infinite;
}

@keyframes knight-hover {
  0%, 100% { transform: translate(-50%, 0) rotate(0deg); }
  50% { transform: translate(-50%, -12px) rotate(-2.5deg); }
}

@media (max-width: 1180px) {
  .gambit-illustration { display: none; }
}

/* Vision — orbiting ecosystem */
.vision-orbits {
  position: absolute;
  top: 50%;
  right: clamp(-60px, 2vw, 90px);
  width: clamp(360px, 34vw, 520px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.vision-orbits .orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.vision-orbits .orbit b {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
}

.orbit-a { width: 100%; height: 100%; animation: orbit-spin 44s linear infinite; }
.orbit-b { width: 68%; height: 68%; animation: orbit-spin 30s linear infinite reverse; }
.orbit-c { width: 38%; height: 38%; animation: orbit-spin 18s linear infinite; }

.orbit-a b { background: #0071e3; box-shadow: 0 0 16px rgba(0, 113, 227, 0.8); }
.orbit-b b { background: #b8ff5b; box-shadow: 0 0 16px rgba(184, 255, 91, 0.7); }
.orbit-c b { background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, 0.8); }

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06), 0 0 30px rgba(255, 255, 255, 0.5);
  animation: core-breathe 5s ease-in-out infinite;
}

@keyframes core-breathe {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06), 0 0 30px rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.04), 0 0 44px rgba(255, 255, 255, 0.65); }
}

.vision-panel > .kicker,
.vision-panel > h2,
.vision-panel > p,
.vision-panel > .vision-grid {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .vision-orbits { display: none; }
}

/* Contact — satellite traveling the rings */
.contact-orbit {
  position: absolute;
  right: -80px;
  bottom: -180px;
  width: 450px;
  height: 450px;
  pointer-events: none;
  animation: orbit-spin-plain 26s linear infinite;
}

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

.contact-orbit b {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #b8ff5b;
  box-shadow: 0 0 18px rgba(184, 255, 91, 0.85);
}

@media (max-width: 900px) {
  .contact-orbit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gambit-board line { stroke-dashoffset: 0; transition: none; }
  .gambit-move-square { opacity: 1; animation: none; }
  .gambit-knight { opacity: 1; transform: translate(-50%, 0); transition: none; animation: none; }
  .orbit-a, .orbit-b, .orbit-c, .orbit-core, .contact-orbit { animation: none; }
}

/* ============================================================
   INTRO VEIL · CUSTOM CURSOR · STORY MORPH
   ============================================================ */

/* Page load intro */
.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: #0a0a0d;
  transition: background-color 700ms cubic-bezier(.4, 0, .2, 1);
}

.intro-skip .intro-veil {
  display: none;
}

body.intro-lock {
  overflow: hidden;
}

.intro-veil.intro-out {
  background: transparent;
  pointer-events: none;
}

.intro-word {
  margin: 0;
  font-size: clamp(34px, 8.2vw, 128px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.92);
  transform-origin: top left;
  will-change: transform, opacity;
  animation: intro-word-in 950ms cubic-bezier(.22, .9, .24, 1) 120ms both;
}

@keyframes intro-word-in {
  from { opacity: 0; letter-spacing: 0.05em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: -0.06em; filter: blur(0); }
}

.intro-veil.intro-morph .intro-word {
  animation: none;
  opacity: 1;
  transition:
    transform 850ms cubic-bezier(.76, 0, .24, 1),
    color 850ms cubic-bezier(.76, 0, .24, 1),
    -webkit-text-stroke-color 480ms ease 120ms,
    opacity 200ms ease;
  color: var(--ink, #0a0a0d);
  -webkit-text-stroke-color: rgba(255, 255, 255, 0);
}

.intro-veil.intro-morph .intro-word.intro-word-done {
  opacity: 0;
}

html.intro-run .brand-copy strong {
  opacity: 0;
}

.brand-copy strong {
  transition: opacity 280ms ease;
}

html.intro-run:not(.intro-go) .hero-copy.reveal,
html.intro-run:not(.intro-go) .hero-stage.reveal {
  opacity: 0;
  transform: translateY(26px);
}

html.intro-run:not(.intro-go) .hero-copy.reveal .hero-lead,
html.intro-run:not(.intro-go) .hero-copy.reveal .hero-actions,
html.intro-run:not(.intro-go) .hero-copy.reveal .hero-footnote {
  opacity: 0;
  transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
  .intro-veil { display: none; }
}

/* Custom cursor */
@media (pointer: fine) {
  html.cursor-on,
  html.cursor-on * {
    cursor: none !important;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #0a0a0d;
  outline: 1.5px solid rgba(255, 255, 255, 0.9);
  transition: width 300ms cubic-bezier(.2, .8, .2, 1), height 300ms cubic-bezier(.2, .8, .2, 1), margin 300ms cubic-bezier(.2, .8, .2, 1), background 300ms ease, outline-color 300ms ease;
}

.cursor-dot.cursor-visible {
  opacity: 1;
}

.cursor-dot.cursor-ring::before {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: rgba(10, 10, 13, 0.06);
  outline: 1.5px solid rgba(10, 10, 13, 0.7);
  backdrop-filter: blur(1px);
}

.cursor-dot.cursor-view::before {
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  background: rgba(10, 10, 13, 0.88);
  outline-color: transparent;
}

.cursor-dot span {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 250ms ease;
}

.cursor-dot.cursor-view span {
  opacity: 1;
}

.cursor-dot.cursor-press::before {
  transform: scale(0.82);
}

/* View Transition rules removed — using clean story-in animation only */

/* ============================================================
   DEVICE MOCKUP MEDIA — composites sit on soft stages
   ============================================================ */

.media-device {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 113, 227, 0.10), transparent 55%),
    radial-gradient(ellipse at 78% 85%, rgba(184, 255, 91, 0.10), transparent 50%),
    linear-gradient(165deg, #eef0f4, #e3e6ec);
}

.media-device > img {
  width: 88%;
  height: 88%;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 24px 40px rgba(10, 10, 13, 0.22));
}

.media-device-phone img {
  width: 100%;
  height: 94%;
}

.media-device-desktop img {
  width: 80%;
}

.beyond-media.media-device {
  aspect-ratio: 16 / 9.4;
}

.media-device-imac {
  background: linear-gradient(160deg, #f0f1f5, #e4e7ee);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.imac-wrap {
  position: relative;
  width: 88%;
  aspect-ratio: 4760 / 4050;
  overflow: hidden;
  align-self: flex-start;
}

.imac-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
  pointer-events: none;
}

.imac-screen-img {
  position: absolute;
  left: 2.94%;
  top: 3.7%;
  width: 94.1%;
  height: 62.2%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  border-radius: 4px;
}

.card-openable:hover .media-device > img {
  transform: translateY(-6px) scale(1.02);
  transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.media-device > img {
  transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}

/* ============================================================
   LIBRARY SHOWCASE — portfolio section linking to library.html
   ============================================================ */

.library-panel {
  position: relative; display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  overflow: hidden; border-radius: 32px;
  background: #08080b; color: #fff; text-decoration: none;
  padding: clamp(40px, 6vw, 84px) clamp(28px, 5vw, 72px);
  transition: transform 600ms cubic-bezier(.2,.8,.2,1), box-shadow 600ms ease;
}
.library-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 90px rgba(10,10,13,.35);
}

.library-aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 620px 420px at 18% 12%, rgba(0,113,227,.28), transparent 58%),
    radial-gradient(ellipse 520px 380px at 85% 88%, rgba(184,255,91,.12), transparent 52%),
    radial-gradient(ellipse 400px 300px at 60% 40%, rgba(120,80,255,.1), transparent 60%);
  animation: lib-aurora 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes lib-aurora {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(2%, -2%) scale(1.05); }
  100% { transform: translate(-2%, 2%) scale(1.02); }
}

.library-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 100% 120px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 120px 100%;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}

.library-content { position: relative; z-index: 2; }
.kicker.light { color: rgba(255,255,255,.5); }

.library-headline {
  display: flex; align-items: flex-start; gap: 18px;
  margin: 14px 0 0; line-height: .95;
  font-size: clamp(40px, 6vw, 84px); font-weight: 800; letter-spacing: -0.05em;
}
.library-headline .lh-num {
  font-size: clamp(72px, 11vw, 170px);
  color: transparent; -webkit-text-stroke: 2px var(--lime, #b8ff5b);
  font-variant-numeric: tabular-nums; line-height: .85;
  text-shadow: 0 0 60px rgba(184,255,91,.25);
}
.library-headline .lh-rest { padding-top: .18em; }
.library-headline em {
  font-family: ui-serif, "Iowan Old Style", Baskerville, Georgia, serif;
  font-style: italic; font-weight: 500; color: rgba(255,255,255,.85);
}

.library-copy {
  margin: 22px 0 0; max-width: 460px;
  font-size: clamp(14px, 1.5vw, 16.5px); line-height: 1.65; color: rgba(255,255,255,.58);
}

.library-stats {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 26px; font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,.45); letter-spacing: .04em; text-transform: uppercase;
}
.library-stats b { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; margin-right: 3px; }

.library-cta { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.lib-enter {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--lime, #b8ff5b); color: #0a0a0d;
  font-size: 14.5px; font-weight: 750;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms ease;
}
.lib-enter i { font-style: normal; transition: transform 350ms cubic-bezier(.2,.8,.2,1); }
.library-panel:hover .lib-enter {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(184,255,91,.35);
}
.library-panel:hover .lib-enter i { transform: translateX(5px); }
.lib-gh {
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85);
  font-size: 13.5px; font-weight: 650;
  transition: background 350ms ease, border-color 350ms ease;
}
.library-panel:hover .lib-gh { border-color: rgba(255,255,255,.4); }

/* device visual */
.library-device {
  position: relative; z-index: 2;
  animation: lib-float 7s ease-in-out infinite;
}
@keyframes lib-float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-12px) rotate(0.4deg); }
}
.library-frame {
  position: relative; z-index: 2; width: 100%; display: block;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55));
}
.library-screen {
  position: absolute; z-index: 1;
  left: 2.94%; top: 3.7%; width: 94.1%; height: 62.2%;
  overflow: hidden; border-radius: 6px;
  background: #101014;
}
.ls-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.05);
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(.2,.8,.2,1);
}
.ls-shot.active { opacity: 1; transform: scale(1); }

/* floating category chips */
.lib-chip {
  position: absolute; z-index: 3;
  padding: 8px 16px; border-radius: 999px;
  font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: chip-bob 5s ease-in-out infinite;
}
.lib-chip.c1 { top: -4%; left: 4%; background: rgba(184,255,91,.92); color: #0a0a0d; animation-delay: 0s; }
.lib-chip.c2 { top: 16%; right: -3%; background: rgba(0,113,227,.92); color: #fff; animation-delay: 1.2s; }
.lib-chip.c3 { top: 70%; left: -4%; background: rgba(255,255,255,.94); color: #0a0a0d; animation-delay: 2.4s; }
.lib-chip.c4 { top: 78%; right: 6%; background: rgba(10,10,13,.85); color: #fff; border: 1px solid rgba(255,255,255,.25); animation-delay: 3.4s; }
@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .library-panel { grid-template-columns: 1fr; }
  .library-device { max-width: 520px; margin: 10px auto 0; }
  .library-headline { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .library-aurora, .library-device, .lib-chip { animation: none; }
  .ls-shot { transition: none; }
}

/* ============================================================
   MOTION LAYER — particles, magnetic, kicker dash, wordmark
   ============================================================ */

/* hero particle constellation */
.hero { position: relative; }
.hero-particles {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-copy, .hero-stage { position: relative; z-index: 1; }

/* magnetic buttons — transform is driven by JS, keep transitions smooth */
.magnetic {
  transition: transform 350ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

/* kicker dash — draws in when its section reveals */
.kicker::before {
  content: "";
  display: inline-block;
  width: 20px; height: 2px;
  margin-right: 9px;
  vertical-align: middle;
  background: var(--blue, #0071e3);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1) 150ms;
}
.kicker.light::before { background: #b8ff5b; }
.reveal.in .kicker::before,
p.kicker.reveal.in::before {
  transform: scaleX(1);
}

/* footer wordmark letter stagger */
.footer-wordmark i {
  display: inline-block;
  font-style: inherit;
  opacity: 0;
  transform: translateY(0.35em) rotate(2deg);
  transition: opacity 600ms ease, transform 800ms cubic-bezier(.22, 1, .36, 1);
}
.footer-wordmark.wordmark-in i {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* velocity marquee — skew applied to strip wrapper by JS */
.marquee-strip { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero-particles { display: none; }
  .footer-wordmark i { opacity: 1; transform: none; transition: none; }
  .kicker::before { transform: scaleX(1); transition: none; }
}

/* ── shimmer loading skeleton ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-frame {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #1a1a1f 25%, #2a2a30 37%, #1a1a1f 63%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: inherit;
  pointer-events: none;
}
.shimmer-frame.loaded { opacity: 0; transition: opacity 400ms ease; pointer-events: none; }
.project-media { position: relative; overflow: hidden; }
.beyond-media { position: relative; overflow: hidden; }
.lab-media { position: relative; overflow: hidden; }

/* ── project filter bar ── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
}
.filter-pill {
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid rgba(10,10,13,.12);
  background: transparent; color: #555;
  font-size: .8125rem; font-weight: 500;
  cursor: pointer; transition: all 250ms ease;
  font-family: inherit; line-height: 1.4;
}
.filter-pill:hover { border-color: #0a0a0d; color: #0a0a0d; }
.filter-pill.active {
  background: #0a0a0d; color: #fff;
  border-color: #0a0a0d;
}
.project-card.filter-hidden {
  display: none;
}

/* ── testimonials section ── */
.testimonials-section { padding: 100px 0 60px; }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px;
}
.testimonial-card {
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px; padding: 32px 28px;
  transition: transform 400ms cubic-bezier(.22,1,.36,1), box-shadow 400ms ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
.testimonial-stars {
  display: flex; gap: 2px; margin-bottom: 16px;
  color: #f5a623; font-size: 14px;
}
.testimonial-text {
  font-size: .9375rem; line-height: 1.7; color: #333;
  margin-bottom: 20px; font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #0a0a0d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.testimonial-meta strong {
  display: block; font-size: .8125rem; color: #0a0a0d;
}
.testimonial-meta span {
  font-size: .75rem; color: #888;
}
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ── blog articles section ── */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px;
}
.blog-card {
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px; overflow: hidden;
  transition: transform 400ms cubic-bezier(.22,1,.36,1), box-shadow 400ms ease;
  cursor: pointer; text-align: left; font-family: inherit;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
.blog-card-cover {
  height: 160px; background: linear-gradient(135deg, #0a0a0d, #1a1a2e);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-card-cover .blog-icon {
  font-size: 2.5rem; opacity: .25; color: #fff;
}
.blog-card-cover .blog-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: .6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.blog-card-body {
  padding: 24px; flex: 1; display: flex; flex-direction: column;
}
.blog-card-body h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px;
  color: #0a0a0d; line-height: 1.4;
}
.blog-card-body p {
  font-size: .8125rem; color: #666; line-height: 1.6;
  flex: 1;
}
.blog-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px 20px;
  font-size: .75rem; color: #999;
}
.blog-card-footer span { display: flex; align-items: center; gap: 4px; }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── resume download button ── */
.resume-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 100px;
  background: #0a0a0d; color: #fff;
  font-size: .8125rem; font-weight: 600;
  text-decoration: none; transition: all 300ms ease;
  border: none; cursor: pointer; font-family: inherit;
}
.resume-pill:hover { background: #222; transform: translateY(-1px); }
.resume-pill svg { width: 14px; height: 14px; }

/* ============================================================
   MOBILE OPTIMIZATION — compact, polished small-screen experience
   ============================================================ */

/* ── Mobile menu: compact items ── */
@media (max-width: 1180px) {
  .mobile-menu {
    padding: 8px;
  }
  .mobile-menu a {
    padding: 10px 13px;
    font-size: 13px;
    border-radius: 12px;
  }
}

/* ── Desktop nav: tighter spacing ── */
@media (min-width: 1181px) {
  .desktop-nav {
    gap: 2px;
  }
  .desktop-nav a {
    padding: 7px 9px;
    font-size: 11.5px;
  }
}

/* ── 620px: full mobile treatment ── */
@media (max-width: 620px) {

  /* Flagship Nexbook card: smaller, better proportioned */
  .flagship-card {
    border-radius: 24px;
  }
  .flagship-media {
    min-height: 260px;
    border-radius: 18px;
  }
  .flagship-media img,
  .flagship-media .rotator-image {
    border-radius: 18px;
  }
  .flagship-copy {
    padding: 24px 22px;
  }
  .flagship-copy h2 {
    font-size: 48px;
  }
  .flagship-description {
    font-size: 15px;
  }
  .flagship-metrics {
    gap: 12px;
  }
  .flagship-metrics span strong {
    font-size: 22px;
  }
  .open-story {
    font-size: 13px;
  }

  /* Beyond cards: compact for mobile */
  .beyond-card {
    border-radius: 24px;
  }
  .beyond-media {
    border-radius: 18px;
    min-height: 200px;
  }
  .beyond-info {
    padding: 16px 14px 18px;
  }
  .beyond-info h3 {
    font-size: 28px;
  }
  .beyond-positioning {
    font-size: 14px;
  }
  .beyond-description {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }
  .beyond-stack span {
    font-size: 10px;
    padding: 5px 9px;
  }
  .link-pill {
    padding: 8px 12px;
    font-size: 11px;
  }

  /* Lab cards: mobile compact */
  .lab-card {
    border-radius: 24px;
    padding: 8px;
  }
  .lab-media {
    border-radius: 18px;
  }
  .lab-info {
    padding: 14px 10px 16px;
  }
  .lab-info h3 {
    font-size: 26px;
  }
  .lab-card-text {
    padding: 22px 18px;
    border-radius: 24px;
  }

  /* Project cards: images fully visible, no crop */
  .project-media img,
  .project-media .rotator-image {
    object-fit: contain;
    object-position: center center;
  }

  /* Library / 107 Interfaces: mobile responsive */
  .library-panel {
    grid-template-columns: 1fr;
    border-radius: 24px;
    padding: 28px 22px;
  }
  .library-headline {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .library-headline .lh-num {
    font-size: 64px;
  }
  .library-headline .lh-rest {
    font-size: 28px;
    padding-top: 0;
  }
  .library-copy {
    font-size: 14px;
  }
  .library-stats {
    gap: 12px;
    font-size: 11px;
  }
  .library-cta {
    margin-top: 24px;
    gap: 8px;
  }
  .lib-enter {
    padding: 12px 20px;
    font-size: 13px;
  }
  .lib-gh {
    padding: 12px 18px;
    font-size: 12px;
  }
  .library-device {
    max-width: 100%;
    margin: 16px auto 0;
  }

  /* Gambit section: mobile polish */
  .gambit-panel {
    border-radius: 24px;
    padding: 28px 20px;
  }
  .gambit-title {
    font-size: clamp(42px, 14vw, 60px);
  }
  .gambit-surfaces {
    gap: 10px;
  }
  .gambit-surface {
    padding: 16px;
    border-radius: 16px;
    min-height: auto;
  }
  .gambit-footer {
    gap: 14px;
  }
  .gambit-stack {
    gap: 6px;
  }
  .gambit-stack span {
    font-size: 10px;
    padding: 5px 9px;
  }
  .gambit-links {
    gap: 8px;
    flex-wrap: wrap;
  }
  .gambit-links a,
  .gambit-story-cta {
    font-size: 11px;
    padding: 9px 14px;
  }

  /* Testimonial cards: mobile compact */
  .testimonial-card {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .testimonial-card p {
    font-size: 14px;
  }

  /* Blog cards: mobile compact */
  .blog-card {
    border-radius: 22px;
  }
  .blog-card-cover {
    border-radius: 16px;
  }
  .blog-card-body h3 {
    font-size: 18px;
  }
  .blog-card-body p {
    font-size: 13px;
  }

  /* Story gallery images: fully visible, not cropped */
  .story-gallery img {
    object-fit: contain;
    object-position: center center;
    background: #f5f5f7;
    border-radius: 18px;
  }

  /* iMac wrap: scale down for mobile */
  .imac-wrap {
    width: 100%;
  }

  /* Contact card: tighter */
  .contact-card {
    min-height: 420px;
    padding: 32px 22px;
    border-radius: 24px;
  }
  .contact-card h2 {
    font-size: 46px;
  }
  .contact-links a {
    font-size: 15px;
    padding: 14px 18px;
  }

  /* Vision panel: compact */
  .vision-panel {
    min-height: 500px;
    padding: 32px 22px;
    border-radius: 24px;
  }
  .vision-panel h2 {
    font-size: 44px;
  }

  /* Section headings: tighter spacing */
  .section-heading {
    margin-bottom: 28px;
  }
  .heading-row {
    gap: 8px;
  }

  /* Growth cards: compact */
  .growth-card {
    min-height: 260px;
    border-radius: 24px;
    padding: 22px;
  }

  /* Capability cards: compact */
  .capability-card {
    min-height: 380px;
    padding: 22px;
    border-radius: 24px;
  }

  /* Journey cards: compact */
  .journey-card {
    min-height: 240px;
    padding: 20px;
    border-radius: 22px;
  }

  /* Stat cells: tighter */
  .stat {
    min-height: 105px;
    padding: 14px;
  }
  .stat-value {
    font-size: 30px;
  }
  .stat-label {
    font-size: 10px;
  }

  /* Research card: compact */
  .research-card {
    border-radius: 24px;
  }
  .research-image {
    min-height: 320px;
    border-radius: 24px;
  }
  .research-copy h2 {
    font-size: 44px;
  }

  /* Sector/Architecture cards: compact */
  .sector-card,
  .architecture-card {
    min-height: 180px;
    padding: 18px;
    border-radius: 22px;
  }

  /* Recognition tiles: compact */
  .recognition-tile {
    min-height: 180px;
    padding: 18px;
    border-radius: 22px;
  }

  /* Writing column: compact */
  .writing-column {
    padding: 16px;
    border-radius: 22px;
  }

  /* Footer: mobile polish */
  .site-footer {
    gap: 20px;
    padding-block: 40px 32px;
  }

  /* Story dialog actions: stack on narrow phones */
  .story-actions {
    flex-wrap: wrap;
  }
  .story-actions button {
    flex: 1 1 100%;
    min-width: 0;
  }

  /* Fix story demo iframes: proper containment */
  .demo-vid-wrap {
    border-radius: 18px;
  }
  .demo-vid-wrap iframe {
    border-radius: 18px !important;
  }

  /* Agent flow / documentation: mobile compact */
  .agent-flow-section,
  .documentation-system,
  .impact-section {
    padding: 20px;
    border-radius: 22px;
  }

  /* Hero product card: no black bar space */
  .hero-product {
    border-radius: 20px;
  }
  .hero-product-copy {
    padding: 14px 12px 12px;
  }
  .hero-product-copy strong {
    font-size: 14px;
  }
  .hero-product-copy p {
    font-size: 10px;
  }

  /* Assistant sphere: smaller on mobile */
  .assistant-sphere {
    width: 140px;
    height: 140px;
  }

  /* Insight page: mobile spacing */
  .insight-page {
    padding: 10px 10px 48px;
  }

  /* Mobile menu: even more compact */
  .mobile-menu {
    padding: 6px;
    border-radius: 20px;
  }
  .mobile-menu a {
    padding: 9px 12px;
    font-size: 12.5px;
    border-radius: 10px;
  }
}

/* ── how I think · process ── */
.process-section { padding: 100px 0 60px; }
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 400ms cubic-bezier(.22,1,.36,1), box-shadow 400ms ease;
}
.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}
.process-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
}
.process-step h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.process-do {
  margin: 0;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted);
}
.process-think {
  margin: 0;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ink);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-style: italic;
}
@media (max-width: 1100px) {
  .process-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-track { grid-template-columns: 1fr; }
}

/* ── work with me · services ── */
.services-section { padding: 80px 0 60px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 420ms cubic-bezier(.22,1,.36,1), box-shadow 420ms ease, border-color 420ms ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(11,11,15,.16);
}
.service-card-feature {
  background: linear-gradient(160deg, #0a0a0d, #16161d);
  border-color: transparent;
  color: #fff;
}
.service-card-feature h3,
.service-card-feature .service-desc { color: #fff; }
.service-card-feature .service-desc { opacity: .82; }
.service-card-feature .service-deliverables li { color: rgba(255,255,255,.86); }
.service-card-feature .service-deliverables li::before { color: var(--lime); }
.service-card-feature .service-best { color: rgba(255,255,255,.55); border-top-color: rgba(255,255,255,.14); }
.service-card-feature .service-index { color: var(--lime); }
.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
}
.service-timeline {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
}
.service-timeline-hot {
  background: var(--lime);
  color: #0a0a0d;
}
.service-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}
.service-desc {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--muted);
}
.service-deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-deliverables li {
  position: relative;
  padding-left: 24px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink);
}
.service-deliverables li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}
.service-best {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.service-price {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.service-card-feature .service-price {
  background: rgba(184,255,91,.14);
  color: var(--lime);
}
.services-flow {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.6fr auto;
  align-items: center;
  gap: 32px;
}
.services-flow-copy h3 {
  margin: 8px 0 0;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.services-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.services-flow-steps article { display: flex; flex-direction: column; gap: 6px; }
.services-flow-steps span {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .1em;
}
.services-flow-steps strong { font-size: .98rem; }
.services-flow-steps p { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.services-cta { white-space: nowrap; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-flow { grid-template-columns: 1fr; gap: 24px; padding: 30px; text-align: left; }
  .services-flow-steps { grid-template-columns: 1fr; gap: 16px; }
  .services-cta { width: 100%; justify-content: center; }
}

/* ── testimonial result badge ── */
.testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.testimonial-top .testimonial-stars { margin-bottom: 0; }
.testimonial-result {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  white-space: nowrap;
}

/* ── deep case study · design process ── */
.design-process {
  margin: 8px 0 12px;
}
.design-process-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em;
}
.design-process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
  counter-reset: dp;
}
.design-process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.design-process-step::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: rgba(11,11,15,.25);
  z-index: 2;
}
.design-process-step:last-child::after { display: none; }
.dp-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dp-phase {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.dp-index {
  font-size: 12px;
  font-weight: 700;
  color: rgba(11,11,15,.28);
}
.design-process-step h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.design-process-step p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--muted);
}
.dp-note {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 900px) {
  .design-process-track { grid-template-columns: repeat(2, 1fr); }
  .design-process-step::after { display: none; }
}
@media (max-width: 520px) {
  .design-process-track { grid-template-columns: 1fr; }
}

/* ============================================================
   Proof strip — horizontal infinite scroll
   ============================================================ */
.proof-section {
  overflow: hidden;
}
.proof-scroll {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 24px 0 8px;
}
.proof-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: proof-scroll 40s linear infinite;
}
.proof-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  min-width: 160px;
  text-align: center;
}
.proof-card strong {
  font-size: 1.6rem;
  letter-spacing: -.03em;
  color: var(--ink);
}
.proof-card span {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 550;
}
@keyframes proof-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.proof-scroll:hover .proof-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .proof-track { animation: none; }
}

/* ============================================================
   View all projects button
   ============================================================ */
.project-view-all-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 0;
}
.view-all-btn {
  padding: 14px 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.view-all-btn:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.view-all-btn span {
  display: inline-block;
  transition: transform 200ms ease;
}
.view-all-btn:hover span {
  transform: translateY(2px);
}
