/* ==========================================================
   Amanamabasi Akpan — Portfolio
   ========================================================== */
:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1d1d21;
  --paper: #f1efe9;
  --muted: #a8a6a0;
  --line: rgba(241, 239, 233, 0.12);
  --acid: #d4ff3a;
  --cobalt: #4d6bff;
  --coral: #ff6a3d;
  --violet: #b38cff;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden would turn body into a scroll container and break position: sticky */
}
body.is-loading, body.case-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; font-family: var(--display); color: var(--acid); }
code { font-family: var(--mono); font-size: 0.85em; color: var(--acid); }
::selection { background: var(--acid); color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 90;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -6%); } 60% { transform: translate(-7%, 2%); }
  80% { transform: translate(4%, 5%); } 100% { transform: translate(0, 0); }
}

/* ---------- cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 200;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 38px; height: 38px;
  border: 1px solid rgba(241, 239, 233, 0.5);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), background .3s, border-color .3s;
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: var(--acid); }
.cursor__label {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink); opacity: 0; transform: scale(.6); transition: .3s var(--ease-out);
}
.cursor.is-hover { width: 64px; height: 64px; background: var(--paper); border-color: transparent; }
.cursor.is-label { width: 96px; height: 96px; background: var(--acid); border-color: transparent; mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad);
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__console {
  font-family: var(--mono); font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--muted); line-height: 1.8; margin-bottom: auto; padding-top: 2rem;
  white-space: pre-wrap; word-break: break-word;
}
.loader__console .ok { color: var(--acid); }
.loader__count {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(6rem, 22vw, 20rem); line-height: .8; letter-spacing: -0.04em;
}
.loader__count sup { font-size: .25em; vertical-align: top; color: var(--acid); }
.loader__bar { height: 2px; background: var(--line); margin-top: 1.5rem; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--acid); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad);
  mix-blend-mode: difference;
}
.nav__logo { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav__logo span { font-size: .6em; vertical-align: super; }
.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav__links a { font-size: .9rem; position: relative; overflow: hidden; display: inline-block; }
.nav__links a span { font-family: var(--mono); font-size: .65rem; opacity: .5; margin-right: .3rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__status { display: flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .75rem; }
.nav__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- reveal ---------- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal-up.is-in { opacity: 1; transform: none; }
.split .ch, .split-scroll .ch {
  display: inline-block; transform: translateY(135%) rotate(6deg);
  transition: transform 1.1s var(--ease-out);
}
.is-in .ch, .split-scroll.is-in .ch { transform: none; }
.word { display: inline-block; white-space: nowrap; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.split-scroll { display: inline; }
.split-scroll .word { overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--pad) 2.5rem;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__meta {
  position: relative; display: flex; gap: 2rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero__meta span::before { content: "↳ "; color: var(--acid); }
.hero__title {
  position: relative;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 9.4vw, 13rem);
  line-height: .88; letter-spacing: -0.045em; text-transform: uppercase;
}
.hero__title .line--indent { padding-left: 18vw; }
.hero__title em { color: var(--acid); font-style: normal; }
.hero__bottom {
  position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: 2.5rem;
}
.hero__lede { max-width: 36rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #dedcd5; }
.hero__lede em { font-family: var(--body); font-style: italic; color: var(--paper); }
.hero__scroll { position: relative; width: 120px; height: 120px; flex: none; display: grid; place-items: center; }
.hero__scroll svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.hero__scroll text { font-family: var(--mono); font-size: 8.4px; letter-spacing: 2px; fill: var(--paper); }
.hero__scroll b { font-size: 1.6rem; color: var(--acid); animation: bob 2s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(6px); } }
@media (max-width: 760px) {
  .hero__title .line--indent { padding-left: 8vw; }
  .hero__scroll { display: none; }
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--acid); color: var(--ink);
  overflow: hidden; padding: 1.1rem 0;
  transform: rotate(-1.5deg) scale(1.03);
  margin: 3rem 0;
}
.marquee__track {
  display: flex; gap: 2.5rem; width: max-content; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 3rem);
  text-transform: uppercase; letter-spacing: -0.02em;
  animation: marquee 32s linear infinite;
}
.marquee__track i { font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- featured ---------- */
.featured { padding: 8rem var(--pad) 6rem; }
.featured__head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 3rem; }
.featured__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; }
.featured__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5.2vw, 5rem); line-height: .95; letter-spacing: -0.04em; margin-bottom: 2rem; }
.featured__copy p { color: #d2d0c9; font-size: 1.1rem; max-width: 30rem; margin-bottom: 2.5rem; }
.featured__stage {
  position: relative; aspect-ratio: 16/11;
  background: radial-gradient(120% 80% at 50% 0%, #1b1c22 0%, var(--ink-2) 60%);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
.featured__stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .35;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
}
@media (max-width: 900px) { .featured__grid { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: 1.1rem 1.8rem; border-radius: 100px;
  border: 1px solid var(--paper);
  font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acid);
  transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover { color: var(--ink); border-color: var(--acid); }
.btn:hover::before { transform: none; border-radius: 0; }
.btn span { transition: transform .5s var(--ease); }
.btn:hover span { transform: translateX(6px); }
.btn--solid { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.btn--solid::before { background: var(--paper); }

/* ---------- section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 10vw, 10rem); line-height: .85; letter-spacing: -0.05em;
}
.section-note { max-width: 26rem; color: var(--muted); font-size: 1rem; }

/* ---------- work list ---------- */
.work { padding: 6rem var(--pad); position: relative; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters button {
  padding: .55rem 1.1rem; border-radius: 100px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  transition: .3s;
}
.filters button:hover { color: var(--paper); border-color: var(--paper); }
.filters button.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.work__list { list-style: none; border-top: 1px solid var(--line); }
.work__row {
  position: relative; display: grid;
  grid-template-columns: 4rem 1fr auto 6rem;
  align-items: center; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
  transition: opacity .5s, padding .6s var(--ease);
  isolation: isolate;
}
.work__row::before {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1;
}
.work__row:hover::before { transform: scaleY(1); transform-origin: top; }
.work__row:hover { color: var(--ink); padding-inline: 1.5rem; }
.work__row.is-hidden { display: none; }
.work__list:hover .work__row:not(:hover) { opacity: .35; }
.work__num { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.work__row:hover .work__num { color: var(--ink); }
.work__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.work__title small { display: block; font-family: var(--body); font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--muted); margin-top: .5rem; transition: color .4s; }
.work__row:hover .work__title small { color: #555; }
.work__tags { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.work__tags span { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; border: 1px solid currentColor; border-radius: 100px; padding: .25rem .6rem; opacity: .7; }
.work__arrow { justify-self: end; font-size: 2rem; transform: rotate(-45deg); transition: transform .5s var(--ease); }
.work__row:hover .work__arrow { transform: rotate(0); }
@media (max-width: 760px) {
  .work__row { grid-template-columns: 2.5rem 1fr 2rem; }
  .work__tags { display: none; }
}

.preview {
  position: fixed; top: 0; left: 0; z-index: 70; pointer-events: none;
  width: 380px; aspect-ratio: 4/3;
  border-radius: 18px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  transform: translate(-50%, -50%) scale(0); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview__inner { position: absolute; inset: 0; }
@media (hover: none) { .preview { display: none; } }

/* ---------- topology SVG ---------- */
.topo { width: 100%; height: 100%; display: block; }
.topo .link { fill: none; stroke: rgba(241,239,233,.28); stroke-width: 1.6; }
.topo .link--trunk { stroke: var(--acid); stroke-width: 2.4; }
.topo .link--wan { stroke: var(--coral); stroke-dasharray: 8 6; stroke-width: 2; }
.topo .link--wifi { stroke: var(--cobalt); stroke-dasharray: 2 6; stroke-width: 2; stroke-linecap: round; }
.topo .link--bundle { stroke: var(--acid); stroke-width: 1.6; }
.topo .link--plain { stroke: var(--coral); stroke-width: 2; }
.topo .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
.topo .fade { opacity: 0; animation: drawfade 1.2s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawfade { to { opacity: 1; } }
.topo .node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .8s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.topo .node .body { fill: var(--ink-3); stroke: var(--paper); stroke-width: 1.4; }
.topo .node .glyph { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topo .node .label { font-family: var(--mono); font-size: 13px; fill: var(--paper); text-anchor: middle; }
.topo .node .sub { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); text-anchor: middle; }
.topo .node--router .body { stroke: var(--acid); }
.topo .node--router .glyph { stroke: var(--acid); }
.topo .node--ap .glyph { stroke: var(--cobalt); }
.topo .node--cloud .body { fill: none; stroke: var(--muted); stroke-dasharray: 3 4; }
.topo .zone { fill: rgba(241,239,233,.025); stroke-width: 1; stroke-dasharray: 4 5; }
.topo .zone-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; }
.topo .packet { filter: drop-shadow(0 0 6px currentColor); }
.topo .halo { fill: none; stroke: var(--acid); opacity: .5; animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(.6); opacity: .6; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- about ---------- */
.about { padding: 8rem var(--pad); }
.manifesto {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 4.2vw, 4.2rem); line-height: 1.08; letter-spacing: -0.03em;
  margin: 1.5rem 0 6rem; max-width: 1200px;
}
.manifesto .w { color: rgba(241,239,233,.22); transition: color .4s; }
.manifesto .w.is-lit { color: var(--paper); }
.manifesto .w.is-acc.is-lit { color: var(--acid); }
.about__grid { display: grid; grid-template-columns: 4fr 7fr; gap: 5rem; align-items: start; }
.about__portrait small { display: block; margin-top: 1rem; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.portrait {
  position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #23252d, #0f0f12);
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .6s; }
.portrait:hover img { filter: none; }
.portrait__initials { font-family: var(--display); font-weight: 800; font-size: 7rem; letter-spacing: -0.06em; color: var(--acid); }
.portrait__orbit { position: absolute; width: 90%; animation: spin 20s linear infinite; }
.portrait__orbit circle { fill: none; stroke: var(--line); }
.portrait__orbit .sat { fill: var(--acid); stroke: none; }
.about__text p { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: #dedcd5; margin-bottom: 1.5rem; }
.about__text strong { color: var(--paper); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.chips span { border: 1px solid rgba(241,239,233,.25); border-radius: 100px; padding: .5rem 1rem; font-family: var(--mono); font-size: .8rem; transition: .3s; }
.chips span:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; gap: 3rem; } .portrait { max-width: 360px; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 3rem var(--pad) 3rem 2rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; letter-spacing: -0.05em; color: var(--acid); }
.stat span { display: block; margin-top: .8rem; color: var(--muted); font-size: 1rem; max-width: 14rem; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- process (horizontal pinned) ---------- */
.process { position: relative; height: 100vh; } /* real height is set in JS from the rail overflow */
.process__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); }
.process__rail { display: flex; gap: 2rem; will-change: transform; }
.process__progress { position: relative; height: 2px; background: var(--line); margin-top: 2.5rem; border-radius: 2px; overflow: hidden; }
.process__progress i { position: absolute; inset: 0; background: var(--acid); transform-origin: left; transform: scaleX(0); }
.pcard {
  flex: none; width: min(78vw, 440px); min-height: 440px;
  border-radius: 24px; padding: 2.2rem;
  background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: background .5s, color .5s;
}
.pcard:hover { background: var(--acid); color: var(--ink); }
.pcard__n { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.pcard:hover .pcard__n, .pcard:hover p { color: var(--ink); }
.pcard h3 { font-family: var(--display); font-weight: 800; font-size: 3.2rem; letter-spacing: -0.04em; margin: 1rem 0; }
.pcard p { color: #d2d0c9; font-size: 1.05rem; transition: color .5s; }
.pcard p code { color: inherit; text-decoration: underline; }
.pcard svg { width: 120px; margin-top: auto; align-self: flex-end; }
.pcard svg * { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard .ring { animation: ripple 3s ease-out infinite; transform-origin: 60px 60px; }
.pcard .r2 { animation-delay: 1s; }
@keyframes ripple { from { opacity: 1; } to { opacity: .1; } }
.pcard .blink { animation: pulse 1s steps(1) infinite; }
.pcard .check { stroke-dasharray: 70; stroke-dashoffset: 70; transition: stroke-dashoffset 1s var(--ease-out); }
.pcard:hover .check { stroke-dashoffset: 0; }
@media (max-width: 760px) {
  .process { height: auto; }
  .process__sticky { position: static; height: auto; padding-block: 6rem; }
  .process__rail { flex-direction: column; transform: none !important; }
  .process__progress { display: none; }
  .pcard { width: 100%; min-height: 0; }
}

/* ---------- ventures ---------- */
.ventures { padding: 8rem var(--pad); }
.ventures__list { border-top: 1px solid var(--line); }
.venture {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: center;
  padding: 1.8rem 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), color .4s;
}
.venture span { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.6rem); letter-spacing: -0.03em; }
.venture small { color: var(--muted); font-size: 1rem; }
.venture b { font-size: 1.4rem; color: var(--acid); }
.venture:hover { padding-left: 1.5rem; color: var(--acid); }
@media (max-width: 760px) { .venture { grid-template-columns: 1fr auto; } .venture small { grid-column: 1; grid-row: 2; } }

/* ---------- contact ---------- */
.contact { padding: 10rem var(--pad) 2rem; min-height: 100svh; display: flex; flex-direction: column; }
.contact__title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.8rem, 9vw, 9.5rem); line-height: .88; letter-spacing: -0.05em;
  margin: 2rem 0 4rem;
}
.contact__mail {
  align-self: flex-start;
  width: clamp(180px, 22vw, 280px); aspect-ratio: 1; border-radius: 50%;
  background: var(--acid); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.8rem); text-transform: uppercase;
  transition: transform .4s var(--ease-out), background .4s;
  margin-left: auto; margin-right: 10vw;
}
.contact__mail:hover { background: var(--paper); }
.footer {
  margin-top: auto; padding-top: 4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.footer__links { display: flex; gap: 1.5rem; }
.footer a:hover { color: var(--acid); }

/* ---------- case study overlay ---------- */
.case {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper); color: var(--ink);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .9s var(--ease);
  visibility: hidden;
}
.case.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.case__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.case__close {
  position: fixed; top: 1.4rem; right: var(--pad); z-index: 5;
  padding: .7rem 1.3rem; border-radius: 100px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
}
.case__inner { padding: 6rem var(--pad) 4rem; }
.case em { color: var(--cobalt); }
.case code { color: var(--cobalt); }
.case__eyebrow { display: flex; gap: .6rem 1.5rem; flex-wrap: wrap; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #4f4e4a; }
.case__title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 8rem); line-height: .88; letter-spacing: -0.05em;
  margin: 1.5rem 0 3rem; max-width: 14ch;
}
.case__hero {
  border-radius: 24px; overflow: hidden; background: var(--ink); color: var(--paper);
  aspect-ratio: 16/9; position: relative; margin-bottom: 1.2rem;
}
.case__hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .3;
}
.case__legend { display: flex; gap: .6rem 1.5rem; flex-wrap: wrap; font-family: var(--mono); font-size: .8rem; color: #4f4e4a; margin-bottom: 5rem; }
.case__legend i { display: inline-block; width: 22px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: .4rem; }
.case__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem 5rem; margin-bottom: 5rem; }
.case__grid h3 { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #4f4e4a; padding-top: .6rem; border-top: 1px solid rgba(0,0,0,.15); }
.case__grid .txt { font-size: clamp(1.1rem, 1.8vw, 1.6rem); line-height: 1.4; padding-top: .4rem; border-top: 1px solid rgba(0,0,0,.15); }
.case__grid ul { list-style: none; }
.case__grid li { padding: .5rem 0 .5rem 1.8rem; position: relative; }
.case__grid li::before { content: "→"; position: absolute; left: 0; color: var(--cobalt); }
.case__cli {
  background: var(--ink); color: var(--paper); border-radius: 20px; overflow: hidden; margin-bottom: 5rem;
}
.case__cli header { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.case__cli header i { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.case__cli header i:nth-child(1) { background: var(--coral); } .case__cli header i:nth-child(2) { background: #ffc53d; } .case__cli header i:nth-child(3) { background: var(--acid); }
.case__cli header span { margin-left: auto; }
.case__cli pre { padding: 1.6rem 1.4rem 2rem; font-family: var(--mono); font-size: clamp(.78rem, 1.1vw, .92rem); line-height: 1.75; overflow-x: auto; min-height: 12rem; }
.case__cli .c { color: var(--muted); } .case__cli .k { color: var(--acid); } .case__cli .p { color: var(--cobalt); }
.case__cli .caret { display: inline-block; width: .6em; height: 1.1em; background: var(--acid); vertical-align: text-bottom; animation: pulse 1s steps(1) infinite; }
.case__download {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding: 3rem; border-radius: 24px; background: var(--acid); margin-bottom: 4rem;
}
.case__download h4 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; }
.case__download p { font-family: var(--mono); font-size: .8rem; margin-top: .6rem; }
.case__download .btn { border-color: var(--ink); color: var(--ink); }
.case__download .btn::before { background: var(--ink); }
.case__download .btn:hover { color: var(--acid); }
.case__next {
  display: block; border-top: 1px solid rgba(0,0,0,.15); padding-top: 2rem;
}
.case__next small { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #4f4e4a; }
.case__next span { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 6vw, 6rem); letter-spacing: -0.05em; line-height: .95; transition: color .3s, transform .6s var(--ease); }
.case__next:hover span { color: var(--cobalt); transform: translateX(1.5rem); }
.case .r { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.case.is-open .r { opacity: 1; transform: none; }
.case.is-open .r:nth-child(2) { transition-delay: .35s; } .case.is-open .r:nth-child(3) { transition-delay: .45s; } .case.is-open .r:nth-child(4) { transition-delay: .55s; }
@media (max-width: 760px) { .case__grid { grid-template-columns: 1fr; gap: 1rem; } .case__grid .txt { border-top: 0; margin-bottom: 2rem; } .case__hero { aspect-ratio: 4/3; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   Responsive + readability refinements
   ========================================================== */
.nav__menu { display: none; font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; padding: .55rem 1.1rem; border: 1px solid currentColor; border-radius: 100px; }
.mmenu {
  position: fixed; inset: 0; z-index: 79; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.mmenu.is-open { clip-path: inset(0); visibility: visible; }
.mmenu a { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 13vw, 4.5rem); text-transform: uppercase; letter-spacing: -0.04em; line-height: 1.05; border-bottom: 1px solid var(--line); padding: .4rem 0; }
.mmenu a span { font-family: var(--mono); font-weight: 400; font-size: .8rem; color: var(--acid); vertical-align: top; margin-right: .6rem; letter-spacing: 0; }
body.menu-open { overflow: hidden; }

/* diagrams: on narrow screens keep them legible and let them swipe sideways */
.featured__stage, .case__hero { -webkit-overflow-scrolling: touch; }

@media (max-width: 900px) {
  .featured { padding-top: 5rem; }
  .featured__grid { gap: 2.5rem; }
  .featured__stage { aspect-ratio: auto; overflow-x: auto; }
  .featured__stage .topo { min-width: 640px; height: auto; aspect-ratio: 16/9; }
  .case__hero { aspect-ratio: auto; overflow-x: auto; }
  .case__hero .topo { min-width: 660px; height: auto; aspect-ratio: 16/9; position: relative; }
  .featured__stage::after, .case__hero::after {
    content: "← swipe →"; position: sticky; left: 0; display: block; text-align: center;
    font-family: var(--mono); font-size: .75rem; color: var(--muted); padding: .2rem 0 .8rem;
  }
  .stats .stat { padding: 2rem 1.2rem; }
}

@media (max-width: 760px) {
  :root { --pad: 1.25rem; }
  body { font-size: 16px; }
  .nav { padding: 1rem var(--pad); }
  .nav__status { display: none; }
  .nav__menu { display: inline-block; }
  .hero { padding-top: 6rem; padding-bottom: 2rem; }
  .hero__meta { gap: .3rem 1.2rem; font-size: .72rem; margin-bottom: 1rem; }
  .hero__bottom { margin-top: 1.6rem; }
  .marquee { margin: 1.5rem 0; padding: .8rem 0; }
  .marquee__track { font-size: 1.4rem; gap: 1.5rem; }
  .featured__head { margin-bottom: 2rem; }
  .featured__title { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .section-title { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .section-head { margin-bottom: 2rem; }
  .work, .about, .ventures { padding-block: 4.5rem; }
  .work__row { padding: 1.4rem 0; gap: .8rem; }
  .work__row:hover { padding-inline: .8rem; }
  .work__title { font-size: clamp(1.4rem, 6.4vw, 2rem); }
  .work__title small { font-size: .92rem; }
  .work__list:hover .work__row:not(:hover) { opacity: 1; }
  .work__arrow { font-size: 1.5rem; }
  .manifesto { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 3.5rem; }
  .portrait__initials { font-size: 5rem; }
  .pcard { padding: 1.6rem; }
  .pcard h3 { font-size: 2.4rem; }
  .pcard svg { width: 80px; }
  .venture { gap: .3rem 1rem; padding: 1.3rem 0; }
  .contact { padding-top: 6rem; min-height: auto; }
  .contact__title { font-size: clamp(2.3rem, 11vw, 3.6rem); margin-bottom: 2.5rem; }
  .contact__mail { margin: 0 auto; width: 180px; }
  .footer { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .case__close { top: 1rem; }
  .case__inner { padding-top: 5rem; }
  .case__title { font-size: clamp(2.2rem, 11vw, 3.6rem); margin: 1rem 0 2rem; }
  .case__legend { margin-bottom: 3rem; font-size: .75rem; }
  .case__grid { margin-bottom: 3rem; }
  .case__grid .txt { font-size: 1.08rem; }
  .case__cli { margin-bottom: 3rem; border-radius: 14px; }
  .case__cli pre { font-size: .8rem; padding: 1.2rem 1rem 1.5rem; }
  .case__download { padding: 1.8rem 1.4rem; border-radius: 18px; }
  .case__download .btn { width: 100%; justify-content: center; }
  .loader__console { font-size: .68rem; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .filters button { font-size: .7rem; padding: .5rem .9rem; }
}

/* portrait photo */
.portrait img { z-index: 1; filter: grayscale(1) contrast(1.05); object-position: 50% 20%; transform: scale(1.04); transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out); }
.portrait:hover img { filter: none; transform: scale(1); }
.portrait.has-photo .portrait__initials { display: none; }
.portrait.has-photo .portrait__orbit { z-index: 2; mix-blend-mode: screen; opacity: .7; }
.portrait.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(11,11,12,.55), transparent 45%); pointer-events: none; }

/* levels, tunnels, plans, contact details */
.topo .link--tunnel { stroke: var(--violet); stroke-width: 2.4; stroke-dasharray: 10 6; }
.lvl { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .5rem; border-radius: 4px; margin-right: .6rem; vertical-align: 2px; border: 1px solid currentColor; }
.lvl--expert { color: var(--violet); }
.lvl--advanced { color: var(--coral); }
.lvl--intermediate { color: var(--acid); }
.lvl--fundamentals { color: var(--paper); opacity: .8; }
.work__row:hover .lvl { color: var(--ink); }
.case__plan { margin: 0 0 4rem; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,.12); }
.case__plan img { display: block; width: 100%; height: auto; }
.case__plan figcaption { padding: 1rem 1.4rem; font-family: var(--mono); font-size: .8rem; color: #4f4e4a; background: #e9e7e0; }
.case__labs { margin-bottom: 4rem; }
.case__labs h3 { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #4f4e4a; margin-bottom: 1rem; }
.case__labs div { display: flex; flex-wrap: wrap; gap: .5rem; }
.case__labs span { border: 1px solid rgba(0,0,0,.2); border-radius: 100px; padding: .5rem 1rem; font-family: var(--mono); font-size: .8rem; }
.contact__row { display: flex; justify-content: space-between; align-items: center; gap: 3rem; flex-wrap: wrap; }
.contact__details { list-style: none; flex: 1 1 420px; max-width: 640px; border-top: 1px solid var(--line); }
.contact__details li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact__details small { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact__details a { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; transition: color .3s; word-break: break-word; text-align: right; }
.contact__details a span { color: var(--acid); font-size: .8em; }
.contact__details a:hover { color: var(--acid); }
.contact__row .contact__mail { margin: 0 6vw 0 0; }
.footer__links { flex-wrap: wrap; gap: .8rem 1.5rem; }
@media (max-width: 760px) {
  .contact__row { gap: 2.5rem; }
  .contact__row .contact__mail { margin: 0 auto; }
  .contact__details li { flex-direction: column; gap: .2rem; }
  .contact__details a { text-align: left; }
  .case__plan { margin-bottom: 3rem; border-radius: 14px; }
}

/* give italic and descender letters room inside the reveal mask */
.split-scroll .word { padding: 0 .06em .16em 0; margin: 0 -.06em -.16em 0; }

/* ==========================================================
   Spacing scale — generous breathing room between sections
   ========================================================== */
:root {
  --space-section: clamp(7rem, 13vw, 13rem);  /* between major sections */
  --space-block: clamp(3rem, 5vw, 5.5rem);    /* heading → content */
}
.marquee { margin-block: calc(var(--space-section) * .45) 0; }
.featured { padding-block: var(--space-section); }
.featured__head { margin-bottom: var(--space-block); }
.work { padding-block: calc(var(--space-section) * .6) var(--space-section); }
.work .section-head { margin-bottom: var(--space-block); }
.filters { margin-bottom: calc(var(--space-block) * .7); }
.about { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.manifesto { margin: 2rem 0 var(--space-section); }
.stats { margin-bottom: var(--space-section); }
.stat { padding-block: clamp(3rem, 5vw, 5rem); }
.process__sticky .section-head { margin-bottom: var(--space-block); }
.ventures { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.ventures .section-head { margin-bottom: var(--space-block); }
.contact { padding-top: var(--space-section); border-top: 1px solid var(--line); }
.contact__title { margin: 2.5rem 0 var(--space-block); }
.footer { padding-top: var(--space-section); }
.work__row { padding-block: clamp(1.8rem, 2.8vw, 2.6rem); }
.venture { padding-block: clamp(1.6rem, 2.4vw, 2.2rem); }
.case__inner { padding-bottom: 6rem; }
.case__grid, .case__cli, .case__plan, .case__labs, .case__download { margin-bottom: clamp(3.5rem, 7vw, 7rem); }
.case__legend { margin-bottom: clamp(4rem, 8vw, 8rem); }

@media (max-width: 760px) {
  :root { --space-section: 6rem; --space-block: 2.5rem; }
  .work__row { padding-block: 1.5rem; }
  .venture { padding-block: 1.4rem; }
  .footer { padding-top: 5rem; }
  .case__grid, .case__cli, .case__plan, .case__labs, .case__download { margin-bottom: 3rem; }
  .case__legend { margin-bottom: 3.5rem; }
}

/* Sliding text bars keep moving on phones */
@media (prefers-reduced-motion: reduce) { .marquee__track { animation-name: marquee !important; animation-duration: 80s !important; animation-iteration-count: infinite !important; animation-play-state: running !important; } }
