:root {
  --font-geist-sans: "Helvetica Neue", "PingFang SC", Arial, sans-serif;
  --font-geist-mono: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --paper: #f2f3f5;
  --ink: #111318;
  --muted: #676b74;
  --line: #d7d9df;
  --blue: #1647ff;
  --orange: #ff5c35;
  --acid: #b7ee4c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.nav-shell {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 86px;
  padding: 0 clamp(22px, 4vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(17, 19, 24, .18);
}
.wordmark { display: flex; align-items: center; gap: 14px; width: fit-content; }
.wordmark > span {
  display: grid; place-items: center; width: 42px; height: 42px;
  color: white; background: var(--ink); border-radius: 50%;
  font-size: 13px; font-weight: 800; letter-spacing: -.04em;
}
.wordmark small, .card-label, .route-label, .route-km, .route-note {
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.wordmark small { max-width: 90px; line-height: 1.25; color: var(--muted); }
.nav-links { display: flex; gap: clamp(24px, 4vw, 56px); font-size: 13px; font-weight: 600; }
.nav-links a, .nav-github { transition: color .2s ease; }
.nav-links a:hover, .nav-github:hover { color: var(--blue); }
.nav-github { justify-self: end; font-family: var(--font-geist-mono); font-size: 12px; font-weight: 700; }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 19vh, 196px) clamp(22px, 7vw, 112px) 70px;
  background:
    linear-gradient(rgba(17,19,24,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,19,24,.045) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}
.hero::before {
  content: ""; position: absolute; right: -13vw; top: 12vh; width: 48vw; aspect-ratio: 1;
  border: clamp(44px, 7vw, 100px) solid var(--acid); border-radius: 50%; opacity: .6;
}
.hero-copy { position: relative; z-index: 3; width: min(760px, 68vw); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.eyebrow span { width: 34px; height: 3px; background: var(--orange); }
h1 { margin: 0; font-size: clamp(62px, 9.2vw, 140px); line-height: .86; letter-spacing: -.085em; font-weight: 830; }
h1 span { position: relative; color: var(--blue); }
h1 span::after { content: "BUILD"; position: absolute; right: -22px; bottom: -14px; font: 700 10px/1 var(--font-geist-mono); letter-spacing: .14em; color: var(--ink); transform: rotate(-6deg); }
.hero-intro { width: min(570px, 75%); margin: 38px 0 0; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.7; letter-spacing: .01em; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.primary-action { display: inline-flex; gap: 30px; align-items: center; background: var(--ink); color: white; padding: 16px 18px 16px 22px; font-size: 13px; font-weight: 700; }
.primary-action span { color: var(--acid); font-size: 18px; }
.primary-action:hover { background: var(--blue); }
.text-action { border-bottom: 1px solid var(--ink); padding: 8px 0; font-size: 12px; font-weight: 700; }

.route-label { position: absolute; color: var(--muted); writing-mode: vertical-rl; }
.route-label-a { left: 28px; top: 35%; }
.route-label-b { right: 28px; bottom: 14%; }
.route-map { position: absolute; z-index: 2; inset: auto 4vw 9vh 44%; height: 40%; }
.route-path { position: absolute; left: 5%; top: 52%; width: 92%; height: 5px; background: var(--blue); transform: rotate(-17deg); transform-origin: left; }
.route-path::after { content: ""; position: absolute; inset: -5px 28% auto; height: 15px; background: var(--orange); transform: skewX(-32deg); }
.route-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 6px solid var(--blue); }
.route-dot.start { left: 4%; top: 47%; }
.route-dot.end { right: 0; top: 17%; background: var(--acid); border-color: var(--ink); }
.route-km { position: absolute; left: 1%; top: 63%; }
.route-note { position: absolute; right: -7px; top: 4%; transform: rotate(-6deg); border: 1px solid var(--ink); padding: 8px 10px; background: var(--paper); }

.now-card { position: absolute; z-index: 4; right: clamp(28px, 7vw, 110px); bottom: 46px; width: min(330px, 31vw); padding: 18px 20px; background: rgba(242,243,245,.92); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--orange); }
.card-label { margin: 0 0 10px; color: var(--blue); }
.now-card > p:nth-child(2) { margin: 0; font-size: 13px; line-height: 1.65; font-weight: 600; }
.now-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.now-tags span { border: 1px solid var(--line); padding: 4px 7px; background: white; font: 600 9px/1 var(--font-geist-mono); }

.section-shell { width: min(1280px, calc(100% - 44px)); margin: 0 auto; }
.section-heading { display: grid; grid-template-columns: 260px 1fr; padding: 110px 0 68px; border-bottom: 1px solid var(--line); }
.section-kicker { margin: 8px 0 0; font: 700 10px/1.4 var(--font-geist-mono); letter-spacing: .14em; color: var(--blue); }
.section-heading h2 { margin: 0; font-size: clamp(38px, 5vw, 74px); line-height: 1.04; letter-spacing: -.055em; font-weight: 760; }

.about { padding-bottom: 120px; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(54px, 8vw, 120px); padding-top: 78px; }
.about blockquote { position: sticky; top: 40px; align-self: start; margin: 0; font-size: clamp(25px, 2.8vw, 42px); line-height: 1.3; letter-spacing: -.045em; }
.about blockquote::before { content: "“"; display: block; color: var(--orange); font-size: 86px; line-height: .55; }
.about blockquote strong { color: var(--blue); font-weight: 800; }
.trait-list { border-top: 1px solid var(--ink); }
.trait { display: grid; grid-template-columns: 42px 190px 1fr; gap: 18px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.trait > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--acid); font: 800 11px/1 var(--font-geist-mono); }
.trait h3, .trait p { margin: 0; }
.trait h3 { font-size: 18px; letter-spacing: -.03em; }
.trait p { font-size: 14px; line-height: 1.75; color: var(--muted); }

.timeline-section { background: var(--ink); color: white; overflow: hidden; }
.light-heading { border-bottom-color: rgba(255,255,255,.18); }
.light-heading .section-kicker { color: var(--acid); }
.timeline { position: relative; padding-bottom: 100px; }
.timeline::before { content: ""; position: absolute; left: 143px; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.timeline-row { position: relative; display: grid; grid-template-columns: 190px minmax(300px, .8fr) minmax(260px, .65fr); gap: clamp(30px, 5vw, 72px); padding: 72px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.year-block { position: relative; z-index: 2; }
.year-block::after { content: ""; position: absolute; top: 48px; right: 32px; width: 18px; height: 18px; border-radius: 50%; background: var(--acid); border: 5px solid var(--ink); box-shadow: 0 0 0 2px var(--blue); }
.year-block span { display: block; margin-bottom: 6px; color: var(--acid); font: 700 10px/1 var(--font-geist-mono); letter-spacing: .12em; }
.year-block strong { font: 800 clamp(42px, 5vw, 70px)/1 var(--font-geist-mono); letter-spacing: -.08em; }
.timeline-content h3 { margin: 0 0 34px; font-size: clamp(28px, 3vw, 46px); line-height: 1.12; letter-spacing: -.045em; }
.timeline-item { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.17); }
.timeline-item h4 { margin: 0 0 9px; color: var(--orange); font-size: 14px; }
.timeline-item p { margin: 0; color: #b9bbc2; font-size: 14px; line-height: 1.75; }
.hackathon-shot { align-self: end; margin: 0; transform: rotate(2.4deg); padding: 9px; background: #f5f5f3; color: var(--ink); box-shadow: 12px 13px 0 var(--blue); }
.hackathon-shot img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; filter: saturate(.8) contrast(1.05); }
.hackathon-shot figcaption { padding: 9px 4px 2px; font: 700 9px/1 var(--font-geist-mono); letter-spacing: .1em; }

.work { padding-bottom: 120px; }
.work-heading { margin-bottom: 76px; }
.project { position: relative; min-height: 630px; margin: 0 0 30px; overflow: hidden; }
.project-index { position: absolute; z-index: 5; top: 22px; left: 24px; font: 800 12px/1 var(--font-geist-mono); border: 1px solid currentColor; padding: 8px; }
.project-copy { position: relative; z-index: 3; }
.project-type { margin: 0 0 18px; font: 700 10px/1.5 var(--font-geist-mono); letter-spacing: .12em; }
.project-copy h3 { margin: 0; font-size: clamp(64px, 8vw, 116px); line-height: .78; letter-spacing: -.08em; }
.project-copy > p:not(.project-type) { max-width: 520px; margin: 32px 0; font-size: 16px; line-height: 1.8; }
.project-copy a { display: inline-block; border-bottom: 1px solid currentColor; padding: 7px 0; font-size: 13px; font-weight: 800; }

.project-distill { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; padding: 70px clamp(30px, 7vw, 100px); color: white; background: var(--blue); }
.project-distill::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 54%, transparent 0 18%, rgba(255,255,255,.08) 18.2% 18.5%, transparent 18.7%), linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.09) 1px, transparent 1px); background-size: auto, 36px 36px, 36px 36px; pointer-events: none; }
.project-distill .project-type { color: var(--acid); }
.project-distill .project-copy > p:not(.project-type) { color: #e6eaff; }
.project-distill .project-copy a { color: var(--acid); }
.project-thesis { position: absolute; z-index: 4; right: 36px; bottom: 28px; width: 340px; margin: 0; padding: 16px; border: 1px solid white; background: var(--blue); font: 600 12px/1.65 var(--font-geist-mono); }
.agent-system { position: relative; z-index: 2; justify-self: center; width: min(480px, 40vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; animation: spinSlow 36s linear infinite; }
.agent-system::before, .agent-system::after { content: ""; position: absolute; inset: 15%; border: 1px dashed rgba(255,255,255,.45); border-radius: 50%; }
.agent-system::after { inset: 35%; background: rgba(17,19,24,.18); border-style: solid; }
.system-core { position: absolute; z-index: 3; inset: 39%; display: grid; place-items: center; align-content: center; border-radius: 50%; background: var(--acid); color: var(--ink); animation: spinReverse 36s linear infinite; }
.system-core span { font: 700 7px/1 var(--font-geist-mono); letter-spacing: .08em; }
.system-core strong { font-size: 28px; letter-spacing: -.08em; }
.system-node { position: absolute; z-index: 3; display: grid; place-items: center; width: 70px; height: 26px; background: white; color: var(--blue); font: 800 8px/1 var(--font-geist-mono); animation: spinReverse 36s linear infinite; }
.node-1 { left: 8%; top: 17%; }.node-2 { right: 0; top: 36%; }.node-3 { left: 2%; bottom: 24%; }.node-4 { right: 18%; bottom: 4%; }.node-5 { left: 43%; top: -2%; }

.project-pitstop { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; background: var(--acid); padding: 56px clamp(28px, 6vw, 86px); }
.pitstop-gallery { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 22px); padding-right: 36px; }
.pitstop-gallery img { display: block; width: 31%; aspect-ratio: .46; object-fit: cover; border: 7px solid var(--ink); border-radius: 24px; box-shadow: 7px 8px 0 rgba(17,19,24,.25); }
.pitstop-gallery img:nth-child(1) { transform: rotate(-5deg) translateY(16px); }
.pitstop-gallery img:nth-child(2) { transform: translateY(-16px); }
.pitstop-gallery img:nth-child(3) { transform: rotate(5deg) translateY(10px); }
.pitstop-copy { padding-left: 20px; }
.pitstop-copy .project-type { color: var(--blue); }
.pitstop-copy h3 { font-size: clamp(58px, 7vw, 104px); }
.search-tip { display: inline-block; padding: 12px 15px; background: var(--ink); color: white; font: 700 11px/1 var(--font-geist-mono); }

.project-keli { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; border: 1px solid var(--ink); background: var(--paper); }
.keli-map { position: relative; min-height: 630px; overflow: hidden; background: #d9e2ea; }
.map-grid { position: absolute; inset: -10%; background: repeating-linear-gradient(23deg, transparent 0 38px, rgba(17,19,24,.16) 39px 40px), repeating-linear-gradient(112deg, transparent 0 62px, rgba(22,71,255,.18) 63px 66px); transform: rotate(-7deg); }
.map-grid::before { content: "HOTEL SAFETY / LIVE SCAN"; position: absolute; left: 22%; top: 40%; color: var(--ink); font: 800 18px/1 var(--font-geist-mono); letter-spacing: .08em; transform: rotate(7deg); }
.pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50% 50% 50% 7px; transform: rotate(-45deg); background: var(--orange); color: white; box-shadow: 5px 5px 0 var(--ink); }
.pin::after { content: attr(class); display: none; }
.pin { font: 800 10px/1 var(--font-geist-mono); }
.pin-a { left: 16%; top: 28%; }.pin-b { right: 18%; top: 19%; background: var(--blue); }.pin-c { left: 57%; bottom: 19%; background: var(--ink); }
.pin-a, .pin-b, .pin-c { writing-mode: vertical-rl; }
.scan-line { position: absolute; left: 0; right: 0; top: 54%; height: 3px; background: var(--acid); box-shadow: 0 0 22px 10px rgba(183,238,76,.45); }
.keli-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px clamp(32px, 6vw, 86px); background: var(--orange); }
.keli-copy h3 { font-size: clamp(80px, 10vw, 148px); }

.life { padding-bottom: 120px; background: var(--ink); color: white; }
.life-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 320px 280px; gap: 14px; padding-top: 70px; }
.life-photo { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.life-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8); transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.life-photo:hover img { transform: scale(1.035); filter: saturate(1.05); }
.life-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 8px 10px; background: white; color: var(--ink); font: 700 9px/1 var(--font-geist-mono); }
.photo-coast { grid-row: 1 / 3; }.photo-sunset { grid-column: 2 / 4; }.photo-desert { grid-column: 2; }
.life-notes { display: grid; gap: 1px; align-self: stretch; background: rgba(255,255,255,.16); }
.life-notes p { display: grid; grid-template-columns: 28px 1fr; align-content: center; margin: 0; padding: 14px 16px; background: #202229; color: #bfc1c7; font-size: 11px; line-height: 1.45; }
.life-notes p span { grid-row: 1 / 3; font-size: 18px; }
.life-notes strong { display: block; color: white; font-size: 12px; }

footer { padding: 80px clamp(22px, 7vw, 110px) 34px; background: var(--acid); color: var(--ink); }
.footer-line { display: flex; align-items: center; gap: 20px; font: 800 11px/1 var(--font-geist-mono); letter-spacing: .12em; }
.footer-line i { flex: 1; height: 4px; background: var(--blue); position: relative; }
.footer-line i::after { content: ""; position: absolute; right: 0; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); }
footer > p { max-width: 1000px; margin: 54px 0 46px; font-size: clamp(32px, 5vw, 72px); font-weight: 800; line-height: 1.08; letter-spacing: -.055em; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { padding: 13px 16px; border: 1px solid var(--ink); font-size: 12px; font-weight: 800; }
.footer-links a:hover { background: var(--ink); color: white; }
footer small { display: block; margin-top: 80px; font: 700 9px/1 var(--font-geist-mono); letter-spacing: .14em; }

@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

@media (max-width: 760px) {
  .nav-shell { height: 72px; grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .wordmark small { display: none; }
  .hero { min-height: 880px; padding-top: 132px; }
  .hero::before { right: -45vw; top: 28%; width: 100vw; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(58px, 18vw, 86px); }
  .hero-intro { width: 100%; max-width: 520px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .route-map { inset: auto -3vw 15% 25%; height: 22%; }
  .now-card { left: 22px; right: 22px; bottom: 26px; width: auto; }
  .route-label { display: none; }
  .section-shell { width: min(100% - 36px, 1280px); }
  .section-heading { grid-template-columns: 1fr; gap: 22px; padding: 80px 0 44px; }
  .section-heading h2 { font-size: clamp(36px, 10.5vw, 52px); }
  .about { padding-bottom: 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 54px; padding-top: 54px; }
  .about blockquote { position: static; }
  .trait { grid-template-columns: 38px 1fr; }
  .trait p { grid-column: 2; }
  .timeline::before { left: 16px; }
  .timeline-row { grid-template-columns: 52px 1fr; gap: 18px; padding: 54px 0; }
  .year-block strong { writing-mode: vertical-rl; font-size: 34px; }
  .year-block::after { right: 27px; top: 52px; width: 13px; height: 13px; border-width: 3px; }
  .timeline-content h3 { font-size: 29px; }
  .hackathon-shot { grid-column: 2; margin: 14px 8px 0 0; }
  .work { padding-bottom: 80px; }
  .work-heading { margin-bottom: 42px; }
  .project { min-height: 0; margin-bottom: 18px; }
  .project-distill { grid-template-columns: 1fr; gap: 50px; padding: 74px 28px 130px; }
  .project-distill .project-copy { margin-top: 18px; }
  .agent-system { width: min(78vw, 420px); }
  .project-thesis { right: 20px; bottom: 22px; left: 20px; width: auto; }
  .project-pitstop { grid-template-columns: 1fr; padding: 74px 22px 50px; }
  .pitstop-gallery { padding: 18px 4px 54px; }
  .pitstop-gallery img { border-width: 4px; border-radius: 16px; }
  .pitstop-copy { padding-left: 0; }
  .project-keli { grid-template-columns: 1fr; }
  .keli-map { min-height: 370px; }
  .keli-copy { padding: 54px 26px; }
  .life { padding-bottom: 80px; }
  .life-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 230px auto; }
  .photo-coast { grid-row: auto; grid-column: 1 / 3; }
  .photo-sunset { grid-column: 1; }
  .photo-desert { grid-column: 2; }
  .life-notes { grid-column: 1 / 3; }
  footer { padding-top: 60px; }
  footer > p { margin-top: 42px; }
  footer small { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
