:root {
  --ink: #080b0f;
  --ink-2: #0e1318;
  --paper: #f4f0e8;
  --muted: rgba(244, 240, 232, .64);
  --muted-2: rgba(244, 240, 232, .42);
  --line: rgba(244, 240, 232, .14);
  --acid: #ccff4a;
  --orange: #ff7045;
  --blue: #8fb4ff;
  --max: 1440px;
  --pad: clamp(22px, 4vw, 60px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--ink);
  color-scheme: dark;
  overflow-x: clip;
}
body {
  margin: 0;
  width: 100%;
  min-width: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
main { width: 100%; overflow: clip; }
section, footer { scroll-margin-top: 74px; }
::selection { background: var(--acid); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section-index {
  font: 600 10px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Header */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 1200;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 72px;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(8, 11, 15, .82);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font: 600 12px/1 "Space Grotesk", sans-serif;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s var(--ease), filter .25s ease;
}
.brand:hover .brand-mark img { transform: rotate(-6deg) scale(1.04); filter: brightness(1.08); }
.brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(244,240,232,.88);
}
.desktop-nav {
  display: flex;
  gap: 30px;
  font: 600 11px/1 "Space Grotesk", sans-serif;
  letter-spacing: .05em;
}
.desktop-nav a {
  position: relative;
  color: rgba(244,240,232,.68);
  transition: color .2s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--acid);
  transition: right .25s var(--ease);
}
.desktop-nav a:hover { color: var(--paper); }
.desktop-nav a:hover::after { right: 0; }
.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px 9px 15px;
  font: 600 10px/1 "Space Grotesk", sans-serif;
  letter-spacing: .08em;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.header-cta:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.menu-toggle, .mobile-nav { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: min(900px, 100svh);
  padding: 92px var(--pad) 40px;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .09;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero::before {
  content: "";
  position: absolute;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  left: 62%;
  top: 17%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,112,69,.14), rgba(255,112,69,0) 68%);
  filter: blur(12px);
  pointer-events: none;
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(244,240,232,.07);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one { width: 46vw; aspect-ratio: 1; right: -18vw; top: 6vw; }
.orbit-two { width: 27vw; aspect-ratio: 1; right: 3vw; top: 22vw; }
.hero-layout {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(260px, .52fr);
  gap: clamp(44px, 6vw, 96px);
  align-items: center;
}
.hero-copy, .hero-title-wrap { min-width: 0; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted-2);
  font: 600 9px/1 "Space Grotesk", sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.availability-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(204,255,74,.08);
}
.hero-title {
  margin: 0;
  max-width: 1040px;
  font: 600 clamp(46px, 5.7vw, 82px)/.91 "Space Grotesk", sans-serif;
  letter-spacing: -.062em;
}
.hero-title .line {
  display: block;
  min-width: 0;
  white-space: nowrap;
  transform-origin: left center;
}
.hero-title .line-two { margin-left: clamp(0px, 4vw, 58px); }
.hero-title .line-three { margin-left: clamp(0px, 8vw, 112px); }
.hero-title em {
  color: var(--acid);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -.04em;
}
.hero-copy-bottom {
  margin-top: clamp(26px, 3.2vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .72fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.hero-intro {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(13px, .95vw, 14.5px);
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font: 600 10.5px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: .04em;
}
.text-link svg { transition: transform .22s var(--ease); }
.text-link:hover { color: var(--acid); }
.text-link:hover svg { transform: translateX(4px); }
.text-link.muted { color: rgba(244,240,232,.48); }
.text-link.muted:hover { color: var(--paper); }
.hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 320px);
  min-width: 0;
}
.portrait-index {
  position: absolute;
  top: -22px;
  right: 0;
  color: rgba(244,240,232,.35);
  font: 600 8px/1 "Space Grotesk", sans-serif;
  letter-spacing: .16em;
}
.portrait-frame {
  overflow: hidden;
  background: #151a1e;
  border: 1px solid rgba(244,240,232,.13);
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
}
.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(.92) contrast(1.02);
  transition: transform .45s var(--ease), filter .45s ease;
}
.hero-portrait:hover img { transform: scale(1.025); filter: saturate(1) contrast(1.03); }
.portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: rgba(244,240,232,.43);
  font: 600 8px/1.35 "Space Grotesk", sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-side-note {
  position: absolute;
  left: 12px;
  bottom: 48px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(244,240,232,.18);
  font: 600 8px/1 "Space Grotesk", sans-serif;
  letter-spacing: .2em;
}

/* Ticker */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--acid);
  color: var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
  animation: marquee 24s linear infinite;
  will-change: transform;
  font: 700 10px/1 "Space Grotesk", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.marquee-track i { font-style: normal; font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Shared section hierarchy */
.work,
.experience,
.capabilities {
  padding-top: clamp(62px, 6.5vw, 92px);
  padding-bottom: clamp(62px, 6.5vw, 92px);
}
.experience,
.capabilities { border-top: 1px solid var(--line); }
.section-heading {
  display: grid;
  grid-template-columns: .85fr 2.1fr 1fr;
  align-items: end;
  gap: 26px;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}
.section-heading h2,
.experience-intro h2,
.capabilities-head h2 {
  margin: 0;
  min-width: 0;
  font: 600 clamp(36px, 4.1vw, 58px)/.98 "Space Grotesk", sans-serif;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.section-heading h2 em,
.experience-intro h2 em,
.capabilities-head h2 em,
.big-copy em {
  color: var(--orange);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -.04em;
}
.section-heading p {
  margin: 0;
  max-width: 390px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* Projects */
.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.project {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1014;
  display: grid;
  transform-style: preserve-3d;
  transition: border-color .3s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project:hover {
  border-color: rgba(244,240,232,.28);
  box-shadow: 0 24px 70px rgba(0,0,0,.14);
}
.project-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr);
  min-height: 500px;
}
.project-featured.reverse { grid-template-columns: minmax(310px, .84fr) minmax(0, 1.16fr); }
.project-half {
  min-height: 620px;
  grid-template-rows: auto 1fr;
}
.project-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(28px, 3.2vw, 46px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.project-meta {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted-2);
  font: 600 9px/1.25 "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.project-meta span:last-child { text-align: right; }
.project-copy h3 {
  margin: auto 0 16px;
  max-width: 100%;
  font: 600 clamp(29px, 2.8vw, 42px)/1 "Space Grotesk", sans-serif;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.project-half .project-copy h3 { font-size: clamp(27px, 2.45vw, 36px); }
.project-copy p {
  max-width: 540px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.tech-row span {
  border: 1px solid rgba(244,240,232,.13);
  border-radius: 999px;
  padding: 6px 9px;
  color: rgba(244,240,232,.58);
  font: 600 8px/1 "Space Grotesk", sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 4px;
  font: 600 10px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.project-link svg { transition: transform .22s var(--ease); }
.project-link:hover { color: var(--acid); }
.project-link:hover svg { transform: translate(3px, -3px); }
.project-scene {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(143,180,255,.09), transparent 28%),
    linear-gradient(145deg, #111820, #090d11);
}
.project-screenshot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(42px, 4.3vw, 64px) clamp(24px, 3vw, 44px) clamp(28px, 3vw, 44px);
}
.scene-label {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 4;
  color: rgba(244,240,232,.46);
  font: 600 8px/1 "Space Grotesk", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.screen-frame {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #0e1317;
  border: 1px solid rgba(244,240,232,.12);
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
  transform: translateZ(0);
  transition: transform .42s var(--ease), box-shadow .42s var(--ease);
}
.screen-frame::before {
  content: "";
  display: block;
  height: 18px;
  border-bottom: 1px solid rgba(244,240,232,.08);
  background:
    radial-gradient(circle at 11px 9px, #ff6a5d 0 2px, transparent 2.5px),
    radial-gradient(circle at 21px 9px, #f2c94c 0 2px, transparent 2.5px),
    radial-gradient(circle at 31px 9px, #6fcf97 0 2px, transparent 2.5px),
    #11171c;
}
.screen-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.project:hover .screen-frame {
  transform: translateY(-3px) scale(1.004);
  box-shadow: 0 34px 82px rgba(0,0,0,.42);
}

/* Experience */
.experience-intro,
.capabilities-head {
  display: grid;
  grid-template-columns: .85fr 3.15fr;
  gap: 26px;
  margin-bottom: clamp(36px, 4.5vw, 58px);
}
.experience-intro h2 em { color: var(--blue); }
.experience-grid {
  display: grid;
  grid-template-columns: .9fr 2.1fr;
  gap: clamp(42px, 6vw, 96px);
}
.experience-sticky {
  align-self: start;
  position: sticky;
  top: 96px;
}
.experience-sticky p {
  max-width: 340px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.timeline { border-top: 1px solid var(--line); }
.timeline-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0 36px;
  border-bottom: 1px solid var(--line);
}
.timeline-year {
  color: var(--acid);
  font: 600 9px/1.4 "Space Grotesk", sans-serif;
  letter-spacing: .1em;
}
.education-entry .timeline-year { color: var(--blue); }
.timeline-body { min-width: 0; }
.timeline-body .eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--muted-2);
  font: 600 9px/1.5 "Space Grotesk", sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.timeline-body h3 {
  margin: 0 0 14px;
  font: 600 clamp(25px, 2.5vw, 34px)/1.04 "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.timeline-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.timeline-body li,
.timeline-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}
.timeline-body li { position: relative; padding-left: 16px; }
.timeline-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid);
}

/* Capabilities + about */
.capabilities-head h2 em { color: var(--acid); }
.capability-lanes {
  border-top: 1px solid var(--line);
  margin-bottom: clamp(52px, 5vw, 72px);
}
.lane {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 100px;
  gap: 22px;
  align-items: center;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: padding .28s var(--ease), color .28s ease;
}
.lane::before {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  z-index: -1;
  background: var(--paper);
  transition: right .4s var(--ease);
}
.lane:hover { color: var(--ink); padding-left: 14px; }
.lane:hover::before { right: 0; }
.lane-number {
  color: var(--muted-2);
  font: 600 10px/1 "Space Grotesk", sans-serif;
}
.lane h3 {
  margin: 0 0 6px;
  font: 600 clamp(21px, 2.2vw, 29px)/1.05 "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
}
.lane p {
  max-width: 680px;
  margin: 0;
  color: rgba(244,240,232,.55);
  font-size: 12.5px;
  line-height: 1.58;
  transition: color .28s ease;
}
.lane:hover p,
.lane:hover .lane-number { color: rgba(8,11,15,.62); }
.lane-signal {
  justify-self: end;
  opacity: .38;
  font: 600 8px/1 "Space Grotesk", sans-serif;
  letter-spacing: .15em;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(42px, 6vw, 88px);
  align-items: start;
}
.big-copy {
  margin: 0;
  font: 600 clamp(31px, 3.35vw, 46px)/1.04 "Space Grotesk", sans-serif;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}
.about-details { padding-top: 4px; min-width: 0; }
.about-details > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}
.detail-pairs { border-top: 1px solid var(--line); }
.detail-pairs div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.detail-pairs span {
  color: var(--muted-2);
  font: 600 8px/1.4 "Space Grotesk", sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.detail-pairs strong {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: clamp(34px, 4.5vw, 56px) var(--pad) 18px;
  border-top: 1px solid var(--line);
  color: var(--paper);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: end;
  padding-bottom: clamp(28px, 3vw, 42px);
}
.footer-identity { display: grid; gap: 6px; min-width: 0; }
.footer-label {
  margin-bottom: 4px;
  color: var(--acid);
  font: 600 8px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.footer-identity strong {
  font: 600 clamp(25px, 2.4vw, 34px)/1 "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}
.footer-identity > span:last-child { color: var(--muted-2); font-size: 11px; }
.footer-connect {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 22px;
  font: 600 10px/1.35 "Space Grotesk", sans-serif;
}
.footer-connect a {
  min-width: 0;
  color: rgba(244,240,232,.7);
  overflow-wrap: anywhere;
  transition: color .2s ease, transform .2s var(--ease);
}
.footer-connect a:hover { color: var(--paper); transform: translateX(2px); }
.footer-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  color: rgba(244,240,232,.34);
  font: 600 8px/1.4 "Space Grotesk", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.back-top { color: rgba(244,240,232,.62); transition: color .2s ease; }
.back-top:hover { color: var(--acid); }

/* Motion */
.reveal-up, .reveal-scale, .reveal-text { will-change: transform, opacity; }
.js .reveal-up { opacity: 0; transform: translateY(12px); }
.js .reveal-scale { opacity: 0; transform: scale(.988) translateY(8px); }
.js .reveal-text { opacity: 0; transform: translateY(14px); }
.js .is-visible.reveal-up { animation: revealUp .46s var(--ease) forwards; }
.js .is-visible.reveal-scale { animation: revealScale .5s var(--ease) forwards; }
.js .is-visible.reveal-text { animation: revealText .48s var(--ease) forwards; }
@keyframes revealUp { to { opacity: 1; transform: none; } }
@keyframes revealScale { to { opacity: 1; transform: none; } }
@keyframes revealText { to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; height: 66px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(8,11,15,.48);
    color: var(--paper);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
  }
  .menu-toggle span { width: 15px; height: 1px; background: currentColor; transition: transform .28s var(--ease); }
  .menu-toggle.open span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 84px var(--pad) 34px;
    background: rgba(8,11,15,.985);
    transform: translateY(-102%);
    transition: transform .34s var(--ease);
  }
  .mobile-nav.open { transform: none; }
  .mobile-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font: 600 clamp(32px, 6vw, 50px)/1 "Space Grotesk", sans-serif;
    letter-spacing: -.045em;
  }
  .mobile-nav a span { font-size: 9px; color: var(--muted-2); letter-spacing: .1em; }

  .hero { min-height: auto; padding-top: 96px; padding-bottom: 46px; }
  .hero-layout { grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); gap: 34px; }
  .hero-title { font-size: clamp(43px, 6.5vw, 64px); }
  .hero-title .line { white-space: normal; }
  .hero-title .line-two, .hero-title .line-three { margin-left: 0; }
  .hero-copy-bottom { grid-template-columns: 1fr; gap: 18px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .hero-portrait { width: min(100%, 280px); }

  .section-heading { grid-template-columns: .75fr 2.25fr; }
  .section-heading p { grid-column: 2; max-width: 560px; }
  .project-featured, .project-featured.reverse { grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); }
  .project-half { min-height: 580px; }

  .experience-intro, .capabilities-head { grid-template-columns: .75fr 2.25fr; }
  .experience-grid { grid-template-columns: 1fr; gap: 34px; }
  .experience-sticky { position: static; display: flex; justify-content: space-between; align-items: end; gap: 28px; }
  .experience-sticky p { margin: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-details { max-width: 760px; margin-left: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-connect { max-width: 600px; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --pad: 18px; }
  section, footer { scroll-margin-top: 62px; }

  .site-header {
    height: 60px;
    padding-inline: var(--pad);
    background: rgba(8,11,15,.84);
    border-bottom-color: rgba(244,240,232,.08);
    backdrop-filter: blur(14px);
  }
  .brand { gap: 8px; max-width: calc(100vw - 78px); }
  .brand-mark { width: 31px; height: 31px; }
  .brand-name { max-width: 126px; font-size: 10.5px; }
  .menu-toggle { width: 36px; height: 36px; }
  .mobile-nav { justify-content: flex-start; padding: 82px 18px 28px; overflow-y: auto; }
  .mobile-nav a { font-size: clamp(28px, 8.4vw, 38px); padding: 17px 0; line-height: 1.05; }

  .hero {
    min-height: auto;
    padding: 78px var(--pad) 34px;
    align-items: flex-start;
  }
  .hero::before { width: 90vw; left: 35%; top: 36%; opacity: .72; }
  .orbit-one { width: 118vw; right: -72vw; top: 24vw; }
  .orbit-two { width: 76vw; right: -34vw; top: 70vw; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; width: 100%; }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero-kicker {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: 8px;
    letter-spacing: .12em;
    line-height: 1.4;
    flex-wrap: wrap;
  }
  .hero-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(36px, 10.5vw, 46px);
    line-height: .96;
    letter-spacing: -.052em;
  }
  .hero-title .line {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hero-title .line-two, .hero-title .line-three { margin-left: 0; }
  .hero-copy-bottom { margin-top: 20px; grid-template-columns: 1fr; gap: 16px; }
  .hero-intro { max-width: 100%; font-size: 12.5px; line-height: 1.65; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 2px; }
  .text-link { padding: 8px 0; font-size: 10px; }
  .hero-portrait {
    width: min(74vw, 255px);
    justify-self: center;
    margin: 4px auto 0;
  }
  .portrait-index { top: -18px; font-size: 7.5px; }
  .portrait-caption { font-size: 7px; gap: 8px; }
  .portrait-caption span:last-child { text-align: right; }
  .hero-side-note { display: none; }

  .marquee-track { gap: 18px; padding: 9px 0; font-size: 8.5px; animation-duration: 26s; }

  .work, .experience, .capabilities {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .section-heading,
  .experience-intro,
  .capabilities-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }
  .section-heading p { grid-column: auto; max-width: 100%; }
  .section-heading h2,
  .experience-intro h2,
  .capabilities-head h2 {
    max-width: 100%;
    font-size: clamp(30px, 8.8vw, 38px);
    line-height: 1;
    letter-spacing: -.05em;
  }
  .section-heading p { font-size: 12.5px; line-height: 1.6; }
  .section-index { font-size: 8.5px; }

  .project-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project,
  .project-featured,
  .project-featured.reverse,
  .project-half {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 0;
  }
  .project .project-scene { order: -1; }
  .project-screenshot {
    min-height: 0;
    padding: 35px 10px 10px;
  }
  .scene-label { top: 14px; left: 14px; font-size: 7px; letter-spacing: .13em; }
  .screen-frame { width: 100%; box-shadow: 0 18px 42px rgba(0,0,0,.32); }
  .screen-frame::before { height: 14px; background:
    radial-gradient(circle at 9px 7px, #ff6a5d 0 1.7px, transparent 2px),
    radial-gradient(circle at 17px 7px, #f2c94c 0 1.7px, transparent 2px),
    radial-gradient(circle at 25px 7px, #6fcf97 0 1.7px, transparent 2px),
    #11171c;
  }
  .project-copy { min-height: 0; padding: 22px 18px 24px; }
  .project-meta { font-size: 7.5px; gap: 10px; letter-spacing: .1em; }
  .project-copy h3,
  .project-half .project-copy h3 {
    margin: 34px 0 12px;
    max-width: 100%;
    font-size: clamp(25px, 7.6vw, 31px);
    line-height: 1.02;
  }
  .project-copy p { max-width: 100%; margin-bottom: 15px; font-size: 12.5px; line-height: 1.6; }
  .tech-row { gap: 5px; margin-bottom: 18px; }
  .tech-row span { padding: 6px 8px; font-size: 7.5px; }
  .project-link { font-size: 9.5px; }

  .experience-grid { grid-template-columns: 1fr; gap: 28px; }
  .experience-sticky { display: block; }
  .experience-sticky p { max-width: 100%; margin-bottom: 14px; font-size: 12.5px; line-height: 1.62; }
  .timeline-entry { grid-template-columns: 1fr; gap: 10px; padding: 23px 0 26px; }
  .timeline-year { font-size: 8px; }
  .timeline-body .eyebrow { margin-bottom: 8px; font-size: 8px; line-height: 1.45; }
  .timeline-body h3 { margin-bottom: 12px; font-size: clamp(23px, 6.7vw, 27px); line-height: 1.04; }
  .timeline-body li, .timeline-body p { font-size: 12.5px; line-height: 1.58; }
  .timeline-body ul { gap: 8px; }

  .capability-lanes { margin-bottom: 42px; }
  .lane {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 18px 0;
  }
  .lane-signal { display: none; }
  .lane h3 { margin-bottom: 5px; font-size: 20px; }
  .lane p { font-size: 12px; line-height: 1.52; }
  .lane:hover { color: inherit; padding-left: 0; }
  .lane:hover::before { right: 100%; }
  .lane:hover p { color: rgba(244,240,232,.55); }
  .lane:hover .lane-number { color: var(--muted-2); }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .big-copy { max-width: 100%; font-size: clamp(28px, 8.1vw, 34px); line-height: 1.05; }
  .about-details > p { margin-bottom: 22px; font-size: 12.5px; line-height: 1.65; }
  .detail-pairs div { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 13px 0; }
  .detail-pairs span { font-size: 7.5px; }
  .detail-pairs strong { font-size: 12px; }

  .site-footer { padding: 30px var(--pad) 16px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-bottom: 26px; }
  .footer-identity strong { font-size: 26px; }
  .footer-identity > span:last-child { font-size: 10.5px; }
  .footer-connect { grid-template-columns: 1fr; gap: 10px; font-size: 10px; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 10px; font-size: 7.5px; }
  .footer-bottom > span:nth-child(2) { display: none; }

  .js .reveal-up { transform: translateY(8px); }
  .js .reveal-scale { transform: scale(.994) translateY(5px); }
  .js .reveal-text { transform: translateY(9px); }
  .js .is-visible.reveal-up,
  .js .is-visible.reveal-scale,
  .js .is-visible.reveal-text { animation-duration: .38s; }
}

@media (max-width: 390px) {
  :root { --pad: 15px; }
  .brand-name { max-width: 98px; font-size: 10px; }
  .hero { padding-top: 74px; padding-bottom: 30px; }
  .hero-title { font-size: clamp(34px, 10.4vw, 40px); }
  .hero-portrait { width: min(76vw, 238px); }
  .section-heading h2,
  .experience-intro h2,
  .capabilities-head h2 { font-size: 29px; }
  .project-copy { padding-inline: 16px; }
  .project-copy h3,
  .project-half .project-copy h3 { font-size: 25px; }
  .project-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .project-meta span:last-child { text-align: left; }
  .big-copy { font-size: 28px; }
  .footer-bottom { grid-template-columns: 1fr; }
  .back-top { justify-self: start; }
}

@media (hover: none), (pointer: coarse) {
  .project:hover,
  .screen-frame,
  .brand:hover .brand-mark img,
  .footer-connect a:hover { transform: none; }
}

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


/* =========================================================
   FINAL RESPONSIVE HARDENING — mobile-first polish
   ========================================================= */

/* tighter vertical rhythm on large screens */
.work,
.experience,
.capabilities {
  padding-top: clamp(50px, 5vw, 74px);
  padding-bottom: clamp(50px, 5vw, 74px);
}
.section-heading,
.experience-intro,
.capabilities-head {
  margin-bottom: clamp(28px, 3.4vw, 46px);
}
.capability-lanes { margin-bottom: clamp(38px, 4vw, 56px); }
.site-footer { padding-top: clamp(28px, 3.4vw, 44px); }

/* hero sits closer to the header while preserving breathing room */
.hero {
  min-height: min(820px, 100svh);
  padding-top: 78px;
  padding-bottom: 30px;
}
.hero-layout { gap: clamp(34px, 5vw, 76px); }
.hero-kicker { margin-bottom: 18px; }
.hero-copy-bottom { margin-top: clamp(22px, 2.8vw, 34px); }
.hero-portrait { width: min(100%, 330px); }
.portrait-frame img {
  aspect-ratio: 768 / 1364;
  object-position: 50% 34%;
  filter: grayscale(1) contrast(1.04) brightness(.97);
}
.hero-portrait:hover img { filter: grayscale(.92) contrast(1.04) brightness(.98); }

/* universal overflow protection for real device widths */
.hero-copy,
.hero-title-wrap,
.hero-copy-bottom,
.project-copy,
.project-meta,
.timeline-body,
.about-statement,
.about-details,
.footer-identity,
.footer-connect,
.section-heading,
.experience-intro,
.capabilities-head,
.lane > div { min-width: 0; }

.hero-intro,
.section-heading p,
.project-copy p,
.timeline-body li,
.timeline-body p,
.about-details > p,
.detail-pairs strong,
.footer-connect a {
  overflow-wrap: anywhere;
}

/* tablet nav: compact instead of oversized fullscreen typography */
@media (max-width: 1040px) {
  .mobile-nav {
    justify-content: flex-start;
    padding: 88px clamp(22px, 4vw, 42px) 28px;
  }
  .mobile-nav a {
    padding: 14px 0;
    font-size: clamp(21px, 3.4vw, 28px);
    line-height: 1.15;
    letter-spacing: -.025em;
  }
  .mobile-nav a span { font-size: 8px; }

  .hero {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 34px;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(220px, .82fr);
    gap: 28px;
  }
  .hero-title { font-size: clamp(40px, 6vw, 58px); }
  .hero-portrait { width: min(100%, 285px); }

  .work,
  .experience,
  .capabilities {
    padding-top: 46px;
    padding-bottom: 46px;
  }
}

/* phones: compact menu sheet + truly mobile content scale */
@media (max-width: 720px) {
  :root { --pad: 16px; }

  .site-header {
    height: 58px;
    padding-inline: 14px;
  }
  .brand { max-width: calc(100vw - 66px); gap: 7px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-name {
    max-width: min(150px, 46vw);
    font-size: 10px;
    letter-spacing: -.01em;
  }
  .menu-toggle {
    width: 34px;
    height: 34px;
    border-color: rgba(244,240,232,.16);
  }

  /* no giant typography when hamburger opens */
  .mobile-nav {
    inset: 58px 10px auto 10px;
    height: auto;
    max-height: calc(100svh - 70px);
    justify-content: flex-start;
    gap: 0;
    padding: 10px 16px 14px;
    overflow-y: auto;
    border: 1px solid rgba(244,240,232,.12);
    border-radius: 16px;
    background: rgba(10,14,18,.97);
    box-shadow: 0 18px 50px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(.985);
    transform-origin: top center;
    transition: opacity .2s ease, transform .24s var(--ease);
  }
  .mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .mobile-nav a {
    min-height: 48px;
    padding: 11px 2px;
    font: 600 18px/1.2 "Space Grotesk", sans-serif;
    letter-spacing: -.02em;
  }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav a span {
    font-size: 7.5px;
    letter-spacing: .12em;
  }

  /* eliminate the large empty top area */
  .hero {
    padding: 66px var(--pad) 26px;
    min-height: 0;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .hero-kicker {
    margin-bottom: 11px;
    font-size: 7.5px;
    line-height: 1.35;
    letter-spacing: .1em;
  }
  .hero-title {
    font-size: clamp(31px, 9.2vw, 40px);
    line-height: .98;
    letter-spacing: -.045em;
  }
  .hero-copy-bottom {
    margin-top: 15px;
    gap: 10px;
  }
  .hero-intro {
    font-size: 12px;
    line-height: 1.56;
  }
  .hero-actions {
    gap: 0;
  }
  .text-link {
    padding: 6px 0;
    font-size: 9px;
  }

  .hero-portrait {
    width: min(64vw, 238px);
    margin: 2px auto 0;
  }
  .portrait-index {
    position: static;
    margin-bottom: 7px;
    text-align: right;
    font-size: 6.5px;
  }
  .portrait-frame {
    clip-path: polygon(6% 0, 100% 0, 100% 94%, 94% 100%, 0 100%, 0 6%);
  }
  .portrait-frame img {
    aspect-ratio: 768 / 1364;
    object-position: 50% 34%;
  }
  .portrait-caption {
    margin-top: 7px;
    font-size: 6.5px;
    line-height: 1.3;
  }

  .marquee-track {
    gap: 15px;
    padding: 8px 0;
    font-size: 7.8px;
  }

  /* compact section rhythm */
  .work,
  .experience,
  .capabilities {
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .section-heading,
  .experience-intro,
  .capabilities-head {
    gap: 9px;
    margin-bottom: 20px;
  }
  .section-index { font-size: 7.5px; letter-spacing: .15em; }
  .section-heading h2,
  .experience-intro h2,
  .capabilities-head h2 {
    font-size: clamp(27px, 7.6vw, 33px);
    line-height: 1.02;
  }
  .section-heading p { font-size: 11.8px; line-height: 1.55; }

  .project-list { gap: 10px; }
  .project-screenshot { padding: 28px 8px 8px; }
  .scene-label {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 6.3px;
  }
  .screen-frame::before { height: 12px; }
  .project-copy { padding: 17px 15px 19px; }
  .project-meta { font-size: 6.8px; gap: 8px; }
  .project-copy h3,
  .project-half .project-copy h3 {
    margin: 24px 0 9px;
    font-size: clamp(22px, 6.3vw, 27px);
    line-height: 1.04;
  }
  .project-copy p {
    margin-bottom: 12px;
    font-size: 11.7px;
    line-height: 1.55;
  }
  .tech-row { margin-bottom: 14px; }
  .tech-row span { padding: 5px 7px; font-size: 6.8px; }
  .project-link { font-size: 8.8px; }

  .experience-grid { gap: 18px; }
  .experience-sticky p {
    margin-bottom: 9px;
    font-size: 11.8px;
    line-height: 1.55;
  }
  .timeline-entry { gap: 7px; padding: 18px 0 20px; }
  .timeline-year { font-size: 7.2px; }
  .timeline-body .eyebrow { margin-bottom: 6px; font-size: 7.2px; }
  .timeline-body h3 {
    margin-bottom: 9px;
    font-size: clamp(20px, 5.8vw, 24px);
  }
  .timeline-body li,
  .timeline-body p { font-size: 11.7px; line-height: 1.52; }
  .timeline-body ul { gap: 6px; }

  .capability-lanes { margin-bottom: 28px; }
  .lane { padding: 14px 0; gap: 8px; }
  .lane h3 { font-size: 18px; }
  .lane p { font-size: 11.4px; line-height: 1.48; }
  .lane-number { font-size: 8px; }

  .about-grid { gap: 20px; }
  .big-copy {
    font-size: clamp(25px, 7.2vw, 30px);
    line-height: 1.04;
  }
  .about-details > p {
    margin-bottom: 16px;
    font-size: 11.8px;
    line-height: 1.55;
  }
  .detail-pairs div {
    grid-template-columns: 66px minmax(0,1fr);
    padding: 11px 0;
  }
  .detail-pairs span { font-size: 6.8px; }
  .detail-pairs strong { font-size: 11.3px; }

  .site-footer { padding: 22px var(--pad) 13px; }
  .footer-main { gap: 18px; padding-bottom: 20px; }
  .footer-label { font-size: 6.8px; }
  .footer-identity strong { font-size: 23px; }
  .footer-identity > span:last-child { font-size: 9.5px; }
  .footer-connect { gap: 8px; font-size: 9.2px; }
  .footer-bottom { padding-top: 11px; gap: 8px; font-size: 6.8px; }
}

/* compact phones */
@media (max-width: 480px) {
  :root { --pad: 14px; }
  .brand-name { max-width: 120px; }
  .mobile-nav { inset-inline: 8px; padding-inline: 14px; }
  .mobile-nav a { font-size: 17px; min-height: 44px; padding-block: 9px; }

  .hero { padding-top: 64px; padding-bottom: 22px; }
  .hero-title { font-size: clamp(30px, 9vw, 37px); }
  .hero-portrait { width: min(62vw, 220px); }

  .work,
  .experience,
  .capabilities { padding-block: 30px; }
  .section-heading,
  .experience-intro,
  .capabilities-head { margin-bottom: 18px; }
  .section-heading h2,
  .experience-intro h2,
  .capabilities-head h2 { font-size: clamp(26px, 7.4vw, 31px); }

  .project-copy h3,
  .project-half .project-copy h3 { font-size: clamp(21px, 6vw, 25px); }
  .project-meta { flex-direction: row; align-items: center; }
  .project-meta span:last-child { text-align: right; }
}

/* very narrow phones: keep everything inside viewport */
@media (max-width: 360px) {
  :root { --pad: 12px; }
  .site-header { padding-inline: 10px; }
  .brand-name { max-width: 96px; font-size: 9.3px; }
  .brand-mark { width: 27px; height: 27px; }
  .menu-toggle { width: 32px; height: 32px; }
  .mobile-nav { inset: 58px 6px auto; border-radius: 14px; }
  .mobile-nav a { font-size: 16px; }

  .hero-title { font-size: 29px; }
  .hero-intro { font-size: 11.4px; }
  .hero-portrait { width: min(66vw, 208px); }

  .section-heading h2,
  .experience-intro h2,
  .capabilities-head h2 { font-size: 25px; }
  .project-copy { padding-inline: 13px; }
  .project-copy h3,
  .project-half .project-copy h3 { font-size: 21px; }
  .project-meta { flex-direction: column; align-items: flex-start; gap: 3px; }
  .project-meta span:last-child { text-align: left; }
  .big-copy { font-size: 24px; }
  .footer-bottom { grid-template-columns: 1fr; }
  .back-top { justify-self: start; }
}
