@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:#08080a;
  --bg2:#0d0d10;
  --ink:#f0eee4;
  --ink2:#9a9a92;
  --line:#1c1c20;
  --line2:#2a2a30;
  --g:#00ff88;
  --m:#ff0066;
  --sans:'Space Grotesk',sans-serif;
  --mono:'JetBrains Mono',monospace;
  --serif:'Instrument Serif',serif;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--g);
  color: #000;
}

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

a, button, .cta, .topnav a, .wrow, .proj, .contact-email, .socials span, .splat-toggle, .hamburger {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* TOPBAR */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand b {
  color: var(--g);
}

.brand-meta {
  color: var(--ink2);
  font-weight: 400;
}

.topnav {
  display: flex;
  gap: 0;
}

.topnav a {
  padding: 6px 14px;
  color: var(--ink2);
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color .12s,background .12s;
  text-decoration: none;
}

.topnav a:hover {
  color: var(--ink);
}

.topnav a.active {
  color: var(--ink);
  background: var(--line);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink2);
}

.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 8px var(--g);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* HAMBURGER (hidden on desktop) */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--line2);
  padding: 0;
  cursor: pointer;
  position: relative;
  border-radius: 3px;
  transition: border-color .12s;
}

.hamburger:hover {
  border-color: var(--g);
}

.hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--g);
  transition: transform .25s,opacity .15s,top .25s;
}

.hamburger span:nth-child(1) {
  top: 11px;
}

.hamburger span:nth-child(2) {
  top: 17px;
}

.hamburger span:nth-child(3) {
  top: 23px;
}

.hamburger.open span:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 17px;
  transform: rotate(-45deg);
}

/* MOBILE OVERLAY NAV */
.mnav {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(8px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 60px 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s,transform .25s;
}

.mnav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mnav-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
}

.mnav-header b {
  color: var(--g);
  font-weight: 600;
}

.mnav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mnav-links a {
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink2);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .12s;
}

.mnav-links a::after {
  content: '\2192';
  font-size: 14px;
  color: var(--g);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .15s,transform .15s;
}

.mnav-links a:hover, .mnav-links a.active {
  color: var(--g);
}

.mnav-links a:hover::after, .mnav-links a.active::after {
  opacity: 1;
  transform: translateX(0);
}

.mnav-links .num {
  font-size: 10px;
  color: var(--line2);
  font-weight: 400;
  margin-right: auto;
  margin-left: 12px;
}

.mnav-footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  letter-spacing: 0.06em;
}

.mnav-footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mnav-footer .row b {
  color: var(--g);
  font-weight: 500;
}

body.mnav-open {
  overflow: hidden;
}

/* HERO */
.hero {
  position: relative;
  height: 760px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hud {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink2);
  z-index: 2;
  pointer-events: none;
}

.hud .lbl {
  color: var(--g);
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 2px;
}

.hud .val {
  color: var(--ink);
  font-weight: 500;
}

.hud-tl {
  top: 24px;
  left: 28px;
}

.hud-tr {
  top: 24px;
  right: 28px;
  text-align: right;
}

.hud-bl {
  bottom: 24px;
  left: 28px;
  display: flex;
  gap: 24px;
}

.hud-bl div {
  display: flex;
  flex-direction: column;
}

.hud-br {
  bottom: 24px;
  right: 28px;
  text-align: right;
  display: flex;
  gap: 24px;
}

.hud-br div {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.hero-text {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 680px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--g);
}

.hero-h1 {
  font-size: 140px;
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 300;
  margin-bottom: 24px;
}

.hero-h1 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--g);
  font-weight: 400;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink2);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-sub b {
  color: var(--ink);
  font-weight: 500;
}

.cta-row {
  display: flex;
  gap: 10px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid var(--line2);
}

.cta.primary {
  background: var(--g);
  color: #000;
  border-color: var(--g);
}

.cta.primary:hover {
  box-shadow: 0 0 24px var(--g);
}

.cta:hover {
  border-color: var(--ink);
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g), transparent);
  opacity: 0.4;
  animation: scan 6s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes scan {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
/* TICKER */
.ticker {
  display: flex;
  gap: 60px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink2);
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
  flex-shrink: 0;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker span::before {
  content: '\25C9';
  color: var(--g);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* SECTIONS */
.section {
  padding: 96px 60px;
  border-bottom: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.shead {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
}

.snum {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--g);
  letter-spacing: 0.1em;
  padding-top: 8px;
  border-top: 1px solid var(--g);
}

.seyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.stitle {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.stitle em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--g);
}

.slink {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--g);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding-top: 8px;
  border-top: 1px solid var(--line2);
  transition: color .12s;
}

.slink:hover {
  color: var(--ink);
}

/* METRICS */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  transition: background .15s;
}

.metric:hover {
  background: var(--bg2);
}

.metric-k {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--sans);
}

.metric-k em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--g);
}

.metric-v {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.metric-bar {
  margin-top: 20px;
  height: 2px;
  background: var(--line2);
  overflow: hidden;
}

.metric-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 70%;
  background: var(--g);
  box-shadow: 0 0 6px var(--g);
}

.metric:nth-child(2) .metric-bar::after {
  width: 40%;
}

.metric:nth-child(3) .metric-bar::after {
  width: 85%;
}

.metric:nth-child(4) .metric-bar::after {
  width: 55%;
}

/* WRITING */
.writing {
  display: flex;
  flex-direction: column;
}

.wrow {
  display: grid;
  grid-template-columns: 120px 160px 1fr 80px;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: background .12s,padding .12s;
}

.wrow:hover {
  background: var(--bg2);
  padding-left: 8px;
  padding-right: 8px;
}

.wrow:last-child {
  border-bottom: 1px solid var(--line);
}

.wdate {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  letter-spacing: 0.04em;
}

.wcat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--g);
  text-transform: uppercase;
}

.wtitle {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.wtitle em {
  font-family: var(--serif);
  font-style: italic;
}

.wmeta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  text-align: right;
  letter-spacing: 0.04em;
}

/* PROJECTS */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.proj {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--bg2);
  border: 1px solid var(--line2);
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s,transform .15s;
}

.proj:hover {
  border-color: var(--g);
  transform: translateY(-4px);
}

.proj.big {
  grid-column: span 4;
  grid-row: span 2;
}

.proj.tall {
  grid-column: span 2;
  grid-row: span 2;
}

.proj.wide {
  grid-column: span 3;
}

.proj.sm {
  grid-column: span 3;
}

.proj-vis {
  height: 200px;
  background: #0a0a0c;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line2);
}

.proj.big .proj-vis {
  height: 380px;
}

.proj.tall .proj-vis {
  height: 380px;
}

.proj-vis canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.proj-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--g);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--g);
  z-index: 2;
}

.proj-body {
  padding: 24px;
}

.proj-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.proj.big .proj-title {
  font-size: 30px;
}

.proj-desc {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.55;
  margin-bottom: 14px;
}

.proj-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.proj-stack span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border: 1px solid var(--line2);
  color: var(--ink2);
}

/* ABOUT / CONTACT */
.dual {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-body {
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink2);
}

.about-body p {
  margin-bottom: 22px;
}

.about-body b {
  color: var(--ink);
  font-weight: 500;
}

.about-body em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--g);
}

.about-card {
  border: 1px solid var(--line2);
  padding: 32px;
}

.about-card-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.about-card-row:last-child {
  border-bottom: none;
}

.about-card-row .k {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 3px;
}

.about-card-row .v {
  font-size: 14px;
}

.about-card-row .v a {
  color: var(--g);
}

/* CONTACT */
.contact {
  padding: 120px 60px;
  border-bottom: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line2), transparent);
}

.contact-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 24px;
  position: relative;
}

.contact h2 {
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 300;
  margin-bottom: 32px;
  position: relative;
}

.contact h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--g);
}

.contact-email {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink);
  padding: 14px 28px;
  border: 1px solid var(--line2);
  display: inline-block;
  margin-bottom: 32px;
  position: relative;
  transition: all .15s;
  cursor: pointer;
}

.contact-email:hover {
  border-color: var(--g);
  background: var(--bg2);
}

.socials {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink2);
  position: relative;
  flex-wrap: wrap;
}

.socials a {
  cursor: pointer;
  transition: color .12s;
}

.socials a:hover {
  color: var(--g);
}

/* FOOTER */
footer {
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink2);
  letter-spacing: 0.06em;
  background: var(--bg2);
  gap: 16px;
  flex-wrap: wrap;
}

footer .v {
  color: var(--g);
}

/* PORTRAIT slot */
.portrait-wrap {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  pointer-events: auto;
  width: 340px;
  height: 440px;
  border: 1px solid var(--g);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 1px var(--bg), 0 0 40px rgba(0, 255, 136, 0.18), inset 0 0 0 1px rgba(0, 255, 136, 0.15);
  transition: box-shadow .25s;
  overflow: hidden;
}

.portrait-frame:hover {
  box-shadow: 0 0 0 1px var(--bg), 0 0 60px rgba(0, 255, 136, 0.35), inset 0 0 0 1px rgba(0, 255, 136, 0.3);
}

.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .4s;
}

.portrait-frame.raw-view .portrait-img {
  opacity: 1;
}

.portrait-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--g);
  z-index: 4;
  pointer-events: none;
}

.portrait-corner.tl {
  top: -3px;
  left: -3px;
  border-right: none;
  border-bottom: none;
}

.portrait-corner.tr {
  top: -3px;
  right: -3px;
  border-left: none;
  border-bottom: none;
}

.portrait-corner.bl {
  bottom: -3px;
  left: -3px;
  border-right: none;
  border-top: none;
}

.portrait-corner.br {
  bottom: -3px;
  right: -3px;
  border-left: none;
  border-top: none;
}

.portrait-tag {
  position: absolute;
  top: -22px;
  left: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--g);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 6;
}

.portrait-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--g);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--g);
  animation: pulse 1.5s infinite;
}

.portrait-cap {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink2);
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.5;
  text-transform: uppercase;
  pointer-events: auto;
}

.portrait-cap b {
  color: var(--g);
  font-weight: 500;
}

#splat-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  background: #08080a;
  transition: opacity .4s;
}

.portrait-frame.raw-view #splat-overlay {
  opacity: 0;
  pointer-events: none;
}

.train-readout {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--g);
  letter-spacing: 0.08em;
  line-height: 1.4;
  z-index: 6;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  transition: opacity .3s;
}

.train-readout .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 120px;
}

.train-readout .row b {
  color: var(--ink);
  font-weight: 500;
}

.portrait-frame.raw-view .train-readout {
  opacity: 0;
}

.splat-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--g);
  padding: 4px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 6;
  font-weight: 600;
  transition: background .12s;
}

.splat-toggle:hover {
  background: var(--g);
  color: #000;
}

/* RESUME / EXPERIENCE */
.resume-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}

.resume-aside {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.ra-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 8px;
  font-weight: 600;
}

.ra-val {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.ra-val a {
  color: var(--g);
  border-bottom: 1px solid transparent;
  transition: border-color .12s;
}

.ra-val a:hover {
  border-color: var(--g);
}

.ra-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ra-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink2);
  padding: 3px 8px;
  border: 1px solid var(--line2);
  border-radius: 100px;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--line2);
}

.tjob {
  position: relative;
  padding-bottom: 36px;
}

.tjob:last-child {
  padding-bottom: 0;
}

.tjob::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line2);
  transition: border-color .15s;
}

.tjob:first-child::before {
  border-color: var(--g);
  background: var(--g);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.tjob-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.tjob-co {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.tjob-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.tjob-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--g);
  margin-bottom: 2px;
}

.tjob-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.tjob-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.tjob-bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 6px;
}

.tjob-bullets li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--g);
  font-size: 9px;
}

.tjob-patent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--m);
  background: rgba(255, 0, 102, 0.08);
  border: 1px solid rgba(255, 0, 102, 0.3);
  padding: 3px 10px;
  margin-top: 6px;
  text-transform: uppercase;
}

/* RESPONSIVE - 1100 */
/* TABLET (max-width: 1100px) */
@media (max-width: 1100px) {
  .portrait-wrap {
    display: none;
  }

  .top {
    padding: 12px 20px;
  }

  .topnav a {
    padding: 5px 10px;
    font-size: 10px;
  }

  .hero {
    height: auto;
    min-height: 680px;
    padding: 80px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-text {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    max-width: none;
  }

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

  .hud-tl {
    top: 18px;
    left: 20px;
  }

  .hud-tr {
    top: 18px;
    right: 20px;
  }

  .hud-bl {
    bottom: 18px;
    left: 20px;
    gap: 18px;
  }

  .hud-br {
    bottom: 18px;
    right: 20px;
    gap: 18px;
  }

  .section {
    padding: 72px 32px;
  }

  .shead {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
  }

  .stitle {
    font-size: 40px;
  }

  .contact {
    padding: 96px 32px;
  }

  .resume-wrap {
    grid-template-columns: 200px 1fr;
    gap: 36px;
  }

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

  .proj.big {
    grid-column: span 4;
    grid-row: auto;
  }

  .proj.tall {
    grid-column: span 2;
    grid-row: auto;
  }

  .proj.wide {
    grid-column: span 2;
  }

  .proj.sm {
    grid-column: span 2;
  }

  footer {
    padding: 24px 32px;
  }
}
/* PHONE / SMALL TABLET (max-width: 768px) */
@media (max-width: 768px) {
  /* NAV — swap to hamburger */
  .top {
    padding: 12px 16px;
    gap: 10px;
  }

  .brand {
    font-size: 11px;
    gap: 8px;
  }

  .brand-meta {
    display: none;
  }

  .topnav {
    display: none;
  }

  .status {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* HERO — slim, single column. Dim the cloud + add a dark well behind the
     text so the rotating point cloud doesn't compete with copy at mobile
     widths where the portrait area is gone. */
  .hero {
    min-height: 520px;
    padding: 48px 20px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #field {
    opacity: 0.6;
  }

  .hero-text {
    position: relative;
  }

  .hero-text::before {
    content: '';
    position: absolute;
    inset: -24px -16px;
    background: radial-gradient(ellipse at 30% 50%, rgba(8, 8, 10, 0.82) 0%, rgba(8, 8, 10, 0.55) 55%, transparent 90%);
    z-index: -1;
    pointer-events: none;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
  }

  .eyebrow::before {
    width: 18px;
  }

  .hero-h1 {
    font-size: clamp(56px, 16vw, 84px);
    line-height: 0.9;
    margin-bottom: 18px;
    text-shadow: 0 0 14px rgba(8, 8, 10, 0.9), 0 0 4px rgba(8, 8, 10, 0.7);
  }

  .hero-sub {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(8, 8, 10, 0.85);
  }

  .hero-text .eyebrow {
    text-shadow: 0 0 8px rgba(8, 8, 10, 0.85);
  }

  .cta-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .cta {
    justify-content: center;
    padding: 14px 20px;
    font-size: 11px;
    width: 100%;
  }

  /* HUD — keep only two corners; drop ZOOM */
  .hud {
    font-size: 8.5px;
  }

  .hud-tr, .hud-bl {
    display: none;
  }

  .hud-tl {
    top: 14px;
    left: 20px;
  }

  .hud-br {
    bottom: 14px;
    right: 20px;
    gap: 14px;
  }

  .hud-br > div:first-child {
    display: none;
  }

  /* TICKER */
  .ticker, .ticker-track {
    font-size: 10px;
    padding: 11px 0;
  }

  /* SECTIONS */
  .section {
    padding: 56px 20px;
  }

  .shead {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }

  .snum {
    padding-top: 6px;
    font-size: 10px;
    justify-self: start;
  }

  .stitle {
    font-size: 34px;
    line-height: 1.05;
  }

  .slink {
    padding-top: 0;
    border-top: none;
    font-size: 10px;
    justify-self: start;
  }

  /* METRICS — 2 cols */
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    padding: 22px 18px;
  }

  .metric-k {
    font-size: 44px;
  }

  .metric-v {
    font-size: 10px;
  }

  /* WRITING — restack each row */
  .wrow {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
    align-items: start;
  }

  .wrow > .wdate {
    order: 1;
    display: inline-block;
    margin-right: 10px;
  }

  .wrow > .wcat {
    order: 2;
    display: inline-block;
  }

  .wrow > .wtitle {
    order: 3;
    font-size: 18px;
    line-height: 1.3;
    margin-top: 4px;
  }

  .wrow > .wmeta {
    display: none;
  }

  .wrow:hover {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }

  /* PROJECTS — single column */
  .proj-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .proj.big, .proj.tall, .proj.wide, .proj.sm {
    grid-column: span 1;
    grid-row: auto;
  }

  .proj-vis, .proj.big .proj-vis, .proj.tall .proj-vis {
    height: 160px;
  }

  .proj-body {
    padding: 18px;
  }

  .proj-title, .proj.big .proj-title {
    font-size: 20px;
  }

  /* RESUME — single column, aside flat */
  .resume-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .resume-aside {
    position: static;
    border-right: none;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
  }

  .ra-block {
    margin: 0;
  }

  .ra-block:last-child {
    grid-column: span 2;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline::before {
    left: 5px;
  }

  .tjob {
    padding-bottom: 28px;
  }

  .tjob::before {
    left: -22px;
    width: 11px;
    height: 11px;
  }

  .tjob-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .tjob-period {
    font-size: 10px;
  }

  .tjob-title {
    font-size: 18px;
  }

  .tjob-meta {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .tjob-bullets li {
    font-size: 13px;
  }

  /* ABOUT */
  .dual {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-body {
    font-size: 17px;
    line-height: 1.65;
  }

  .about-card {
    padding: 20px;
  }

  .about-card-row {
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 10px 0;
  }

  /* CONTACT */
  .contact {
    padding: 80px 20px;
  }

  .contact h2 {
    font-size: clamp(48px, 12vw, 72px);
    margin-bottom: 24px;
  }

  .contact-email {
    font-size: 14px;
    padding: 12px 20px;
  }

  .socials {
    flex-wrap: wrap;
    gap: 14px;
  }

  /* FOOTER */
  footer {
    padding: 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 9px;
  }
}
/* PHONE PORTRAIT (max-width: 480px) */
@media (max-width: 480px) {
  .top {
    padding: 10px 14px;
  }

  .hero {
    min-height: 480px;
    padding: 36px 16px 56px;
  }

  #field {
    opacity: 0.5;
  }

  .hero-text::before {
    inset: -20px -12px;
    background: radial-gradient(ellipse at 50% 50%, rgba(8, 8, 10, 0.88) 0%, rgba(8, 8, 10, 0.6) 60%, transparent 95%);
  }

  .hud {
    display: none;
  }

  .section {
    padding: 48px 16px;
  }

  .stitle {
    font-size: 30px;
  }

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

  .scanline {
    display: none;
  }

  .resume-aside {
    grid-template-columns: 1fr;
  }

  .resume-aside .ra-block:last-child {
    grid-column: auto;
  }

  .contact {
    padding: 64px 16px;
  }

  .contact-email {
    display: block;
    word-break: break-all;
  }

  .socials {
    font-size: 10px;
    gap: 10px;
  }

  .ticker {
    font-size: 9px;
  }

  footer {
    padding: 16px;
    font-size: 8.5px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
  }

  .mnav {
    padding: 48px 24px;
  }

  .mnav-links a {
    font-size: 18px;
    padding: 12px 0;
  }
}
