:root {
  --bg: #0a0a0a;
  --tile: #111111;
  --tile-2: #161616;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #6b6b6b;
  --accent: #a78bfa;
  --radius: 16px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.muted { color: var(--text-3); }
.accent { color: var(--accent); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--border); }
.nav-inner {
  max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 5px; background: #fff; color: #000;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.nav-links { display: flex; gap: 22px; list-style: none; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  color: var(--text-2); border: 1px solid var(--border); transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* HERO */
.hero { position: relative; padding: 150px 20px 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 760px; z-index: 0;
  opacity: .9; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--text);
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero-title {
  margin-top: 26px;
  font-size: clamp(38px, 6.4vw, 68px); font-weight: 600;
  letter-spacing: -0.045em; line-height: 1.05;
}
.hero-sub { margin-top: 20px; font-size: clamp(16px, 1.6vw, 18px); color: var(--text-2); line-height: 1.6; }
.hero-ctas { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  background: #fff; color: #000; font-size: 14px; font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,255,255,.15); }
.btn-ghost {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--border-strong); font-size: 14px; font-weight: 500;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.cmd {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  height: 42px; padding: 0 14px; border-radius: 10px;
  background: var(--tile); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 13px; color: var(--text-2);
  transition: border-color .2s, color .2s;
}
.cmd:hover { border-color: var(--border-strong); color: var(--text); }
.cmd-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-icon { color: var(--text-3); }

/* BENTO */
.bento {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 72px auto 0;
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "photo now   exp"
    "photo stack loc";
}
.tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile figcaption { font-size: 13px; color: var(--text-2); padding-left: 2px; }
.tile-box {
  position: relative; flex: 1; overflow: hidden;
  background: var(--tile); border: 1px solid var(--border); border-radius: var(--radius);
}
.tile-photo { grid-area: photo; }
.tile-now { grid-area: now; }
.tile-exp { grid-area: exp; }
.tile-stack { grid-area: stack; }
.tile-loc { grid-area: loc; }

.tile-photo .tile-box { min-height: 460px; }
.tile-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 25%;
  filter: grayscale(.15) contrast(1.05);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .6s;
}
.tile-photo:hover img { transform: scale(1.04); filter: none; }

/* spotlight effect */
.spotlight::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.08), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.spotlight:hover::after { opacity: 1; }

/* info tiles */
.info {
  min-height: 210px; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.info-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em;
}
.info-big { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.info-num { display: block; font-size: 56px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.info-num span { font-size: 20px; letter-spacing: -0.02em; color: var(--text-2); font-weight: 500; }
.info-sub { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.info-sub em { font-style: normal; color: var(--text); }
.info-link { font-size: 13px; color: var(--text-2); transition: color .2s; align-self: flex-start; }
.info-link:hover { color: var(--text); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--mono); font-size: 12px; color: var(--text);
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
}
.modes { display: flex; gap: 6px; flex-wrap: wrap; }
.modes span {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  color: #22c55e; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25);
}

/* SECTIONS */
.section { padding: 120px 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.headline {
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.1;
}
.headline.big { font-size: clamp(38px, 6.4vw, 72px); margin-top: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.lead { font-size: 17px; color: var(--text-2); line-height: 1.7; }
.lead + .lead { margin-top: 16px; }
.lead strong { color: var(--text); font-weight: 500; }

/* TIMELINE */
.timeline { margin-top: 48px; display: grid; gap: 12px; }
.tl {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding: 26px 28px; border-radius: var(--radius);
  background: var(--tile); border: 1px solid var(--border);
  transition: border-color .3s;
}
.tl:hover { border-color: var(--border-strong); }
.tl-date { font-size: 13px; color: var(--accent); padding-top: 3px; }
.tl h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.tl-org { color: var(--text); font-size: 14px; margin: 2px 0 8px; opacity: .8; }
.tl p:last-child { color: var(--text-2); font-size: 15px; }

/* PROJECTS */
.projects { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-wide { grid-column: 1 / -1; }
.project { padding: 36px; display: flex; align-items: center; gap: 32px; min-height: 340px; }
.project-col { flex-direction: column; align-items: stretch; justify-content: space-between; }
.project-text { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.project h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.project-wide h3 { font-size: 40px; }
.project p { color: var(--text-2); font-size: 15px; max-width: 46ch; }

.phone {
  width: 180px; height: 320px; border-radius: 30px; flex-shrink: 0;
  background: #0d0d0d; border: 1px solid var(--border-strong);
  padding: 44px 16px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 30px 80px rgba(139, 92, 246, .25);
}
.phone-row { height: 20px; border-radius: 6px; background: linear-gradient(90deg, #8b5cf6, #ec4899); opacity: .9; }
.phone-row:nth-child(2n) { background: #222; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

.orb {
  height: 160px; border-radius: 12px; margin-bottom: 24px;
  background:
    radial-gradient(circle at 35% 40%, rgba(56,189,248,.7), transparent 45%),
    radial-gradient(circle at 65% 60%, rgba(168,85,247,.7), transparent 45%),
    #0b0b0f;
  animation: hue 8s linear infinite;
}
@keyframes hue { to { filter: hue-rotate(360deg); } }

.browser {
  height: 160px; border-radius: 12px; margin-bottom: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(#2a2a2a, #2a2a2a) 16px 44px / 55% 12px no-repeat,
    linear-gradient(#222, #222) 16px 66px / 35% 12px no-repeat,
    linear-gradient(120deg, #f59e0b, #ec4899) 16px 94px / calc(100% - 32px) 50px no-repeat,
    #151515;
  padding: 12px 14px; display: flex; gap: 6px; align-items: flex-start;
}
.browser i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.browser i:nth-child(2) { background: #febc2e; }
.browser i:nth-child(3) { background: #28c840; }

/* CONTACT */
.contact { position: relative; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 700px; height: 400px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .18), transparent);
}
.contact .container { position: relative; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 12px; color: var(--text-3); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* TOAST */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 60;
  padding: 10px 16px; border-radius: 10px; font-size: 13px;
  background: #fff; color: #000; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* REVEAL */
.reveal {
  opacity: 0; transform: translateY(16px); filter: blur(6px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .8s;
}
.reveal.visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .orb, .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "photo now"
      "photo exp"
      "stack loc";
  }
  .tile-photo .tile-box { min-height: 380px; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .projects { grid-template-columns: 1fr; }
  .project:not(.project-col) { flex-direction: column; align-items: flex-start; }
  .phone { align-self: center; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: 120px; }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "now" "exp" "stack" "loc";
  }
  .tile-photo .tile-box { min-height: 420px; }
  .tl { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .project { padding: 26px; }
  .project-wide h3 { font-size: 32px; }
  .section { padding: 88px 0; }
  .cmd-text { max-width: 230px; }
}
