:root {
  --ink: #0b1014;
  --ink-soft: #111920;
  --panel: #151e25;
  --line: rgba(212, 224, 232, 0.16);
  --line-strong: rgba(212, 224, 232, 0.34);
  --cloud: #e7edf0;
  --mist: #aebcc5;
  --sky: #8fb8cd;
  --khaki: #c8b78f;
  --forest: #718d7d;
  --display: "Newsreader", Georgia, serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(1220px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--cloud);
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--ink);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 33%, rgba(98, 134, 153, 0.08), transparent 28rem),
    var(--ink);
  color: var(--cloud);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

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

::selection {
  background: var(--khaki);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--cloud);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 84px;
  padding: 0 max(32px, calc((100vw - 1360px) / 2));
  background: linear-gradient(rgba(11, 16, 20, 0.55), transparent);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, height 240ms ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(11, 16, 20, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark > span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--cloud);
  font-weight: 500;
}

.wordmark__name {
  color: rgba(231, 237, 240, 0.82);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  color: rgba(231, 237, 240, 0.74);
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--cloud);
}

.site-nav .nav-social {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line-strong);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  background: url("assets/jose-hero.webp") center center / cover no-repeat;
  transform: scale(1.015);
  animation: hero-settle 1.6s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 11, 14, 0.94) 0%, rgba(7, 11, 14, 0.76) 33%, rgba(7, 11, 14, 0.12) 66%, rgba(7, 11, 14, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 11, 14, 0.72) 0%, transparent 32%, rgba(7, 11, 14, 0.2) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.hero__content {
  align-self: center;
  width: min(760px, 64vw);
  margin-left: max(32px, calc((100vw - 1360px) / 2));
  padding-top: 58px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  color: rgba(231, 237, 240, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: rise-in 700ms 180ms ease both;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 5px rgba(113, 141, 125, 0.14);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--body);
  font-size: clamp(52px, 6.25vw, 96px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
  animation: rise-in 850ms 280ms ease both;
}

.hero h1 em,
.venture h2 em,
.examples h2 em,
.intro h2 em,
.work__heading h2 em,
.stack__title h2 em,
.connect h2 em {
  color: var(--khaki);
  font-family: var(--display);
  font-weight: 400;
}

.hero__intro {
  max-width: 600px;
  margin: 30px 0 0;
  color: rgba(231, 237, 240, 0.77);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
  animation: rise-in 850ms 390ms ease both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  animation: rise-in 850ms 500ms ease both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 205px;
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary:hover {
  background: var(--khaki);
  border-color: var(--khaki);
}

.button--quiet:hover {
  color: var(--ink);
  background: var(--khaki);
  border-color: var(--khaki);
}

.hero__coordinates {
  position: absolute;
  right: max(32px, calc((100vw - 1360px) / 2));
  bottom: 30px;
  display: flex;
  gap: 30px;
  color: rgba(231, 237, 240, 0.64);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__index {
  position: absolute;
  right: -14px;
  top: 50%;
  display: flex;
  flex-direction: column;
  color: rgba(231, 237, 240, 0.12);
  font-family: var(--body);
  font-size: 22vh;
  font-weight: 700;
  line-height: 0.58;
  letter-spacing: -0.12em;
  transform: translateY(-30%) rotate(90deg);
  transform-origin: center;
  pointer-events: none;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.venture {
  padding: 132px 0 156px;
}

.venture__dossier {
  position: relative;
  margin-top: 64px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 25, 32, 0.92);
  overflow: hidden;
}

.venture__dossier::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(115deg, #000, transparent 58%);
  pointer-events: none;
}

.venture__brandline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}

.venture__brandline img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.venture__brandline > div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.venture__brandline > div span {
  font-size: 13px;
  font-weight: 600;
}

.venture__brandline small,
.venture__status {
  color: var(--mist);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.venture__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.venture__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 4px rgba(113, 141, 125, 0.12);
}

.venture__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  min-height: 600px;
}

.venture__copy {
  align-self: center;
  padding: clamp(52px, 7vw, 96px);
}

.venture h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(50px, 6.2vw, 88px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.venture__lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--cloud);
  font-size: clamp(16px, 1.4vw, 19px);
}

.venture__proof {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--mist);
  font-size: 13px;
}

.venture__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.venture__portrait {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  margin: 0;
  border-left: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
}

.venture__portrait::after {
  content: "NC / 01";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 7px;
  color: var(--cloud);
  background: rgba(11, 16, 20, 0.72);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.venture__portrait img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 50% 24%;
  filter: saturate(0.8) contrast(1.04);
}

.venture__portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: rgba(231, 237, 240, 0.78);
  background: rgba(11, 16, 20, 0.86);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.venture__ledger {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.venture__ledger > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 86px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  font-size: 12px;
}

.venture__ledger > span:last-child {
  border-right: 0;
}

.venture__ledger small {
  color: var(--sky);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.examples {
  padding-bottom: 156px;
}

.examples__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.6fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: end;
  padding: 76px 0 82px;
}

.examples__heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.examples__heading > p {
  margin: 0 0 5px;
  color: var(--mist);
  font-size: 14px;
}

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

.engagement-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 36px;
  border: 1px solid var(--line);
  background: rgba(17, 25, 32, 0.72);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.engagement-card:hover {
  border-color: var(--line-strong);
  background: rgba(21, 30, 37, 0.94);
  transform: translateY(-3px);
}

.engagement-card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  min-height: 0;
  padding: 0;
}

.engagement-card--half {
  grid-column: span 6;
}

.engagement-card--third {
  grid-column: span 4;
}

.engagement-card__image {
  position: relative;
  min-height: 570px;
  overflow: hidden;
}

.engagement-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 16, 20, 0.76), transparent 42%);
  pointer-events: none;
}

.engagement-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.engagement-card--feature:hover .engagement-card__image img {
  transform: scale(1.025);
}

.engagement-card__image > span {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: rgba(231, 237, 240, 0.76);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engagement-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(38px, 5vw, 70px);
}

.engagement-card__type {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engagement-card__type span:last-child {
  color: var(--mist);
  text-align: right;
}

.engagement-card h3 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.engagement-card--third h3 {
  font-size: clamp(28px, 2.6vw, 38px);
}

.engagement-card > p,
.engagement-card__body > p {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
}

.deliverable-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 30px 0 34px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.deliverable-list li {
  position: relative;
  padding: 10px 8px 10px 22px;
  border-bottom: 1px solid var(--line);
  color: rgba(231, 237, 240, 0.82);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.035em;
}

.deliverable-list li::before {
  content: "↳";
  position: absolute;
  left: 2px;
  color: var(--khaki);
}

.engagement-card .engagement-card__outcome,
.engagement-card__body .engagement-card__outcome {
  margin-top: auto;
  padding-top: 20px;
  color: rgba(231, 237, 240, 0.78);
  border-top: 1px solid var(--line-strong);
  font-size: 12px;
}

.engagement-card__outcome span {
  display: block;
  margin-bottom: 7px;
  color: var(--khaki);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro {
  padding: 132px 0 156px;
}

.intro__grid {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: clamp(60px, 9vw, 150px);
  padding-top: 80px;
}

.portrait-card {
  align-self: start;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.portrait-card__caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portrait-card__caption span:first-child {
  color: var(--cloud);
}

.kicker {
  margin: 0 0 26px;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro h2,
.stack__title h2 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 66px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.intro__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 15px;
}

.intro__body p {
  margin: 0;
}

.work {
  padding-bottom: 160px;
}

.work__heading {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 60px;
  align-items: end;
  padding: 74px 0 90px;
}

.work__heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.work__heading p {
  max-width: 300px;
  margin: 0 0 6px auto;
  color: var(--mist);
  font-size: 14px;
}

.route {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.route__line {
  position: absolute;
  top: 58px;
  left: 0;
  z-index: 0;
  width: 100%;
  height: calc(100% - 116px);
  overflow: visible;
  pointer-events: none;
}

.route__track,
.route__progress {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.route__track {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}

.route__progress {
  stroke: var(--khaki);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px rgba(200, 183, 143, 0.3));
}

.project {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.46fr 1.05fr 0.78fr;
  gap: clamp(28px, 5vw, 82px);
  min-height: 410px;
  padding: 56px;
  background: rgba(17, 25, 32, 0.96);
  border: 1px solid var(--line);
  overflow: hidden;
}

.project:nth-of-type(odd) {
  margin-right: 8%;
}

.project:nth-of-type(even) {
  margin-left: 8%;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 45%, #000 100%);
  pointer-events: none;
}

.project__marker {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid var(--khaki);
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}

.project__marker span {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--khaki);
}

.project:nth-of-type(odd) .project__marker {
  left: calc(8.7% - 13px);
}

.project:nth-of-type(even) .project__marker {
  right: calc(8.7% - 13px);
}

.project__meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project__meta span:first-child {
  color: var(--sky);
}

.project__content {
  align-self: center;
}

.project__command {
  color: var(--khaki);
  font-family: var(--mono);
  font-size: 10px;
}

.project h3 {
  margin: 8px 0 16px;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.project__content > p {
  max-width: 540px;
  margin: 0;
  color: var(--mist);
  font-size: 14px;
}

.project__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.project__features li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: rgba(231, 237, 240, 0.74);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.memory-visual,
.terminal-visual,
.agents-visual,
.infra-visual {
  position: relative;
  align-self: center;
  height: 210px;
}

.memory-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--mist);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 8px;
}

.memory-node--one { left: 8%; top: 12%; }
.memory-node--two { right: 2%; top: 44%; }
.memory-node--three { left: 20%; bottom: 0; }

.memory-link {
  position: absolute;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
}

.memory-link--one { width: 105px; left: 28%; top: 36%; transform: rotate(22deg); }
.memory-link--two { width: 75px; left: 38%; top: 65%; transform: rotate(-28deg); }

.memory-pulse {
  position: absolute;
  left: 52%;
  top: 47%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--khaki);
  box-shadow: 0 0 0 8px rgba(200, 183, 143, 0.08), 0 0 28px rgba(200, 183, 143, 0.4);
  animation: memory-pulse 2.4s ease-in-out infinite;
}

.terminal-visual {
  height: auto;
  padding: 18px 20px 22px;
  border: 1px solid var(--line-strong);
  background: #090d10;
  box-shadow: 18px 18px 0 rgba(143, 184, 205, 0.04);
}

.terminal-visual__top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.terminal-visual__top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mist);
  opacity: 0.35;
}

.terminal-visual__top span {
  margin-left: auto;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 8px;
}

.terminal-visual code {
  display: block;
  margin: 9px 0;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 10px;
}

.terminal-visual code b {
  color: var(--khaki);
  font-weight: 400;
}

.terminal-cursor {
  color: var(--sky);
  animation: cursor 1s steps(1) infinite;
}

.agents-visual {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  place-content: center;
  gap: 24px;
}

.agents-visual span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--mist);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 9px;
}

.agents-visual span:nth-child(4) { grid-column: 1 / 2; transform: translateX(38px); }
.agents-visual span:nth-child(5) { grid-column: 3 / 4; transform: translateX(-38px); }

.agents-visual i {
  position: absolute;
  inset: 28% 20%;
  border: 1px solid var(--line);
  transform: rotate(28deg);
}

.infra-visual {
  display: grid;
  grid-template-columns: repeat(2, 86px);
  place-content: center;
  gap: 26px 34px;
}

.infra-box {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  height: 58px;
  border: 1px solid var(--line-strong);
  color: var(--mist);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 8px;
}

.infra-box:nth-child(3) {
  grid-column: 1 / 3;
  justify-self: center;
}

.infra-visual i {
  position: absolute;
  width: 1px;
  height: 88px;
  top: 61px;
  background: var(--khaki);
  transform-origin: top;
}

.infra-visual i:nth-of-type(1) { left: 38%; transform: rotate(20deg); }
.infra-visual i:nth-of-type(2) { right: 38%; transform: rotate(-20deg); }

.stack {
  padding: 0 0 156px;
}

.stack__grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(60px, 10vw, 160px);
  padding-top: 80px;
}

.stack__title {
  position: sticky;
  top: 110px;
  align-self: start;
}

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

.stack-group {
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 108px;
  border-bottom: 1px solid var(--line);
}

.stack-group__label {
  color: var(--sky);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-group p {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
}

.connect {
  padding-bottom: 80px;
}

.connect__card {
  position: relative;
  padding: clamp(46px, 8vw, 110px);
  overflow: hidden;
  color: var(--ink);
  background: var(--cloud);
}

.connect__card::after {
  content: "JM";
  position: absolute;
  right: -28px;
  bottom: -82px;
  color: rgba(11, 16, 20, 0.055);
  font-size: clamp(180px, 30vw, 430px);
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: -0.12em;
  pointer-events: none;
}

.connect__prelude {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.connect h2 {
  position: relative;
  z-index: 1;
  max-width: 830px;
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.connect h2 em {
  color: #6b5e3e;
}

.connect__card > p:not(.connect__prelude) {
  position: relative;
  z-index: 1;
  max-width: 510px;
  margin: 32px 0 46px;
  color: #48545c;
}

.connect__link {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  max-width: 560px;
  padding: 22px 0;
  border-top: 1px solid rgba(11, 16, 20, 0.28);
  border-bottom: 1px solid rgba(11, 16, 20, 0.28);
  font-family: var(--mono);
  font-size: 14px;
  transition: gap 180ms ease;
}

.connect__link:hover {
  gap: 28px;
}

.connect__x {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--cloud);
  background: var(--ink);
  font-size: 17px;
}

.connect__link small {
  display: block;
  margin-bottom: 2px;
  color: #525d66;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connect__arrow {
  font-size: 22px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@keyframes hero-settle {
  from { opacity: 0; transform: scale(1.055); }
  to { opacity: 1; transform: scale(1.015); }
}

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

@keyframes memory-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes cursor {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 1000px) {
  :root { --shell: min(100% - 40px, 760px); }

  .site-nav { gap: 20px; }

  .hero__content { width: min(630px, calc(100vw - 50px)); margin-left: 26px; }
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(7, 11, 14, 0.92) 0%, rgba(7, 11, 14, 0.7) 55%, rgba(7, 11, 14, 0.14) 100%),
      linear-gradient(0deg, rgba(7, 11, 14, 0.72) 0%, transparent 45%);
  }
  .hero__coordinates { right: 26px; }
  .hero__index { display: none; }

  .venture__main { grid-template-columns: minmax(0, 1fr) 280px; }
  .venture__copy { padding: 54px 44px; }
  .venture h2 { font-size: 58px; }
  .venture__portrait,
  .venture__portrait img { min-height: 620px; }
  .venture__ledger { grid-template-columns: repeat(2, 1fr); }
  .venture__ledger > span:nth-child(2) { border-right: 0; }
  .venture__ledger > span:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .examples__heading { grid-template-columns: 1fr; gap: 28px; }
  .examples__heading > p { max-width: 560px; }
  .engagement-card--feature { grid-template-columns: 0.8fr 1.2fr; }
  .engagement-card__image { min-height: 620px; }
  .engagement-card--third { grid-column: span 6; }
  .engagement-card--third:last-child { grid-column: 1 / -1; min-height: 430px; }

  .intro__grid { grid-template-columns: 260px 1fr; gap: 50px; }
  .intro__body { grid-template-columns: 1fr; gap: 20px; }
  .work__heading { grid-template-columns: 1fr; }
  .work__heading p { margin-left: 0; }

  .project,
  .project:nth-of-type(odd),
  .project:nth-of-type(even) {
    grid-template-columns: 0.35fr 1fr;
    margin: 0;
    padding: 44px;
  }
  .project__marker,
  .route__line { display: none; }
  .memory-visual,
  .terminal-visual,
  .agents-visual,
  .infra-visual { grid-column: 2; width: min(100%, 340px); }

  .stack__grid { grid-template-columns: 1fr; }
  .stack__title { position: static; max-width: 560px; }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 36px); }

  .site-header,
  .site-header.is-scrolled {
    height: 66px;
    padding: 0 18px;
  }

  .wordmark__name { display: none; }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    position: absolute;
    left: 9px;
    width: 22px;
    height: 1px;
    background: var(--cloud);
    transition: transform 180ms ease, top 180ms ease;
  }

  .menu-toggle span:nth-child(2) { top: 16px; }
  .menu-toggle span:nth-child(3) { top: 24px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 72px 32px;
    background: rgba(11, 16, 20, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav > a { font-size: 18px; }
  .site-nav .nav-social { margin-top: 20px; font-size: 11px; }

  .hero {
    align-items: flex-end;
    min-height: 720px;
    height: 100svh;
  }

  .hero__image {
    background-position: 66% center;
  }

  .hero__veil {
    background:
      linear-gradient(0deg, rgba(7, 11, 14, 0.97) 0%, rgba(7, 11, 14, 0.78) 44%, rgba(7, 11, 14, 0.12) 76%),
      linear-gradient(90deg, rgba(7, 11, 14, 0.25), rgba(7, 11, 14, 0.02));
  }

  .hero__content {
    align-self: flex-end;
    width: auto;
    margin: 0;
    padding: 0 18px 86px;
  }

  .hero__eyebrow { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(44px, 13.5vw, 62px); }
  .hero__intro { margin-top: 20px; font-size: 14px; line-height: 1.55; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 10px; margin-top: 24px; }
  .button { width: 100%; }
  .hero__coordinates { right: auto; left: 18px; bottom: 18px; }
  .hero__coordinates span:last-child { display: none; }

  .section-label { align-items: flex-start; gap: 20px; }
  .section-label span:last-child { max-width: 150px; text-align: right; }

  .venture { padding: 88px 0 108px; }
  .venture__dossier { margin-top: 44px; }
  .venture__brandline { align-items: flex-start; min-height: 72px; padding: 12px 14px; }
  .venture__brandline img { width: 42px; height: 42px; }
  .venture__status { display: none; }
  .venture__main { grid-template-columns: 1fr; }
  .venture__copy { padding: 44px 22px 52px; }
  .venture h2 { font-size: 48px; }
  .venture__lead { font-size: 15px; }
  .venture__actions { flex-direction: column; }
  .venture__portrait { border-top: 1px solid var(--line); border-left: 0; }
  .venture__portrait,
  .venture__portrait img { min-height: 470px; }
  .venture__ledger { grid-template-columns: 1fr 1fr; }
  .venture__ledger > span { min-height: 80px; padding: 17px 14px; font-size: 11px; }

  .examples { padding-bottom: 108px; }
  .examples__heading { padding: 52px 0 58px; }
  .examples__heading h2 { font-size: 50px; }
  .engagement-grid { grid-template-columns: 1fr; gap: 12px; }
  .engagement-card,
  .engagement-card--feature,
  .engagement-card--half,
  .engagement-card--third,
  .engagement-card--third:last-child {
    grid-column: 1;
    min-height: 0;
  }
  .engagement-card { padding: 28px 22px; }
  .engagement-card--feature { display: flex; padding: 0; }
  .engagement-card__image { min-height: 280px; }
  .engagement-card__body { padding: 32px 22px; }
  .engagement-card__type { margin-bottom: 28px; }
  .engagement-card h3,
  .engagement-card--third h3 { font-size: 34px; }
  .engagement-card .engagement-card__outcome,
  .engagement-card__body .engagement-card__outcome { margin-top: 18px; }

  .intro { padding: 88px 0 108px; }
  .intro__grid { grid-template-columns: 1fr; gap: 56px; padding-top: 48px; }
  .portrait-card { width: min(100%, 340px); }
  .intro h2, .stack__title h2 { font-size: 40px; }
  .intro__body { margin-top: 38px; }

  .work { padding-bottom: 108px; }
  .work__heading { gap: 24px; padding: 52px 0 56px; }
  .work__heading h2 { font-size: 52px; }

  .route { gap: 16px; }
  .project,
  .project:nth-of-type(odd),
  .project:nth-of-type(even) {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding: 30px 24px;
  }
  .project__meta { flex-direction: row; min-height: 0; }
  .project h3 { font-size: 42px; }
  .memory-visual,
  .terminal-visual,
  .agents-visual,
  .infra-visual { grid-column: 1; justify-self: center; }

  .stack { padding-bottom: 108px; }
  .stack__grid { padding-top: 54px; gap: 54px; }
  .stack-group { grid-template-columns: 1fr 1fr; padding: 22px 0; }
  .stack-group__label { grid-column: 1 / -1; }

  .connect { width: 100%; padding-bottom: 0; }
  .connect__card { padding: 64px 18px; }
  .connect h2 { font-size: 52px; }
  .connect__link { gap: 14px; }

  .site-footer {
    grid-template-columns: 1fr auto;
    row-gap: 14px;
    padding-top: 24px;
  }
  .site-footer span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Product deep-link on build cards */
.project__product-link {
  margin: 0.75rem 0 0;
  font-family: var(--mono, "DM Mono", monospace);
  font-size: 0.85rem;
}
.project__product-link a {
  color: var(--accent, #c7a34a);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent, #c7a34a) 40%, transparent);
}
.project__product-link a:hover {
  border-bottom-color: currentColor;
}

/* Mobile legibility floor (phones) — informational micro-labels */
@media (max-width: 720px) {
  .section-label { font-size: 11px; }
  .kicker { font-size: 11px; }
  .venture__ledger small { font-size: 11px; }
  .connect__link small { font-size: 11px; }
}

@media (max-width: 720px) {
  .project__command { font-size: 11px; }
  .stack-group__label { font-size: 11px; }
  .connect__prelude { font-size: 12px; }
}
