:root {
  --bg: #0a0b10;
  --surface: #11131a;
  --surface-2: #171923;
  --text: #f4f4f1;
  --muted: #8f929d;
  --line: rgba(255,255,255,.1);
  --accent: #c9ff5c;
  --accent-2: #87a7ff;
  --radius: 28px;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw auto;
  height: 70vh;
  background: radial-gradient(circle at 50% 20%, rgba(119, 84, 255, .11), transparent 55%);
  pointer-events: none;
  z-index: -2;
}
.noise {
  position: fixed;
  inset: 0;
  opacity: .045;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.section-shell { width: var(--shell); margin-inline: auto; }
.site-header {
  width: var(--shell);
  margin: 0 auto;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 30;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px rgba(201,255,92,.55); }
.nav { display: flex; gap: 34px; align-items: center; color: #c9cbd1; font-size: 14px; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: white; }
.nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.menu { display: none; background: transparent; border: 0; padding: 12px 4px; }
.menu span { display: block; width: 24px; height: 1px; background: white; margin: 6px 0; }

.hero {
  min-height: calc(100svh - 86px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
  padding: 72px 0 100px;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: #b6b8c0; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgba(201,255,92,.65); }
.hero h1, .contact-section h2 { margin: 20px 0 24px; font-size: clamp(58px, 7vw, 105px); line-height: .91; letter-spacing: -.065em; font-weight: 760; }
.muted { color: #6f727d; }
.hero-text { max-width: 610px; color: #b5b7bf; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); color: #0a0b10; border-color: var(--accent); }
.button.ghost { background: rgba(255,255,255,.03); }
.hero-meta { display: flex; gap: 46px; margin-top: 58px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 610px; }
.hero-meta div { display: grid; gap: 3px; }
.hero-meta strong { font-size: 14px; }
.hero-meta span { color: #777a85; font-size: 12px; }

.hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; }
.photo-card { position: relative; width: min(100%, 470px); aspect-ratio: .78; border-radius: 34px; overflow: hidden; transform: rotate(2deg); background: #151722; box-shadow: 0 40px 100px rgba(0,0,0,.48); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; filter: saturate(.88) contrast(1.03); }
.photo-gradient { position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(5,7,10,.78)); }
.photo-caption { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.76); }
.floating-card { position: absolute; z-index: 2; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.13); background: rgba(17,19,26,.78); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.card-code { left: -10px; bottom: 78px; border-radius: 16px; padding: 15px 17px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 3px; font-size: 12px; }
.code-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; align-self: center; }
.card-code code { color: #d5d7dd; }
.card-code strong { grid-column: 2; color: #8bf4ac; font-size: 11px; font-weight: 600; }
.card-note { right: -22px; top: 72px; border-radius: 20px; padding: 18px 20px; font-weight: 760; line-height: 1.12; transform: rotate(-5deg); color: #111; background: rgba(201,255,92,.93); border-color: rgba(201,255,92,.9); }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.015); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 28px; padding: 16px 0; color: #858893; font-size: 13px; text-transform: uppercase; letter-spacing: .11em; animation: ticker 30s linear infinite; }
.ticker-track i { color: var(--accent); font-style: normal; opacity: .8; }
@keyframes ticker { to { transform: translateX(-50%); } }

.split-section { display: grid; grid-template-columns: 260px 1fr; gap: 60px; padding: 150px 0; border-bottom: 1px solid var(--line); }
.section-label { color: #858893; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: flex-start; gap: 12px; padding-top: 10px; }
.section-label span { color: var(--accent); }
.section-content h2 { margin: 0 0 48px; max-width: 780px; font-size: clamp(42px, 5vw, 72px); line-height: 1; letter-spacing: -.05em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; color: #aeb0b8; font-size: 16px; line-height: 1.75; }
.about-grid p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.facts div { min-height: 104px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); display: flex; flex-direction: column; justify-content: space-between; }
.facts span { color: #737681; font-size: 12px; }
.facts strong { font-size: 14px; }

.projects-section { padding: 150px 0; border-bottom: 1px solid var(--line); }
.projects-section > .section-label { margin-bottom: 52px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); }
.project-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 16px; }
.project-number { color: #686b76; font-size: 12px; }
.pill { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #afb1ba; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; }
.project-visual { height: 250px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; position: relative; }
.visual-one { background: radial-gradient(circle at 70% 18%, rgba(201,255,92,.18), #11151b 48%, #0b0e12); }
.visual-two { background: linear-gradient(145deg, #8ef0ff, #7c8cff); color: #0e1720; }
.visual-three { background: radial-gradient(circle at 30% 10%, rgba(255,206,92,.22), #1c1714 45%, #111114 72%); }
.mock-window { width: 86%; height: 72%; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(9,11,18,.83); box-shadow: 0 18px 35px rgba(0,0,0,.25); overflow: hidden; transform: rotate(-2deg); }
.mock-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mock-bar i { width: 6px; height: 6px; border-radius: 50%; background: #555b74; }
.mock-dashboard { height: calc(100% - 26px); display: grid; grid-template-columns: 25% 1fr; padding: 11px; gap: 10px; }
.mock-sidebar { border-radius: 7px; background: rgba(255,255,255,.05); }
.mock-main { border-radius: 7px; background: rgba(255,255,255,.035); padding: 13px; display: grid; gap: 9px; align-content: start; }
.mock-main b { height: 28px; width: 44%; border-radius: 6px; background: #c9ff5c; opacity: .75; }
.mock-main span { height: 14px; border-radius: 4px; background: rgba(255,255,255,.08); }
.route-map { width: 100%; height: 100%; position: relative; }
.route-map svg { width: 100%; height: 100%; opacity: .5; }
.pin { position: absolute; width: 16px; height: 16px; background: #111; border: 4px solid rgba(255,255,255,.9); border-radius: 50%; z-index: 2; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.pin-a { left: 13%; top: 64%; }.pin-b { right: 12%; top: 50%; }
.route-stat { position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,.7); backdrop-filter: blur(8px); padding: 12px 14px; border-radius: 13px; display: grid; }
.route-stat small { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; opacity: .6; }.route-stat strong { font-size: 14px; }
.terminal { width: 86%; background: rgba(8,9,12,.88); border: 1px solid rgba(255,255,255,.12); padding: 22px; border-radius: 15px; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; color: #dadce2; box-shadow: 0 20px 44px rgba(0,0,0,.3); transform: rotate(1deg); }
.terminal span { color: var(--accent); }.term-dim { color: #6f7280; }.term-ok { color: #83e69f; }.term-link { color: #9cb4ff; }
.project-card h3 { font-size: 24px; margin: 22px 4px 8px; letter-spacing: -.03em; }
.project-card > p { min-height: 72px; color: #979aa5; margin: 0 4px 20px; font-size: 14px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 4px 4px; }
.tags span { color: #aeb0b8; font-size: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; }

.live-pill { display: inline-flex; align-items: center; gap: 7px; color: #d9efb1; border-color: rgba(201,255,92,.22); background: rgba(201,255,92,.055); }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(201,255,92,.65); }
.project-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 4px 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.project-link { min-height: 43px; display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; color: #c4c6ce; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.018); transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.project-link:hover { transform: translateY(-2px); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.19); color: white; }
.project-link.primary-link { background: rgba(201,255,92,.92); color: #0b0d0a; border-color: rgba(201,255,92,.92); }
.project-link.primary-link:hover { background: var(--accent); border-color: var(--accent); }
.dropzone-preview { transform: rotate(-1deg); }

.education-section { padding-bottom: 145px; }
.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 180px 1fr; gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-year { color: #7f828d; font-size: 13px; padding-top: 4px; }
.timeline h3 { margin: 0 0 7px; font-size: 20px; letter-spacing: -.02em; }
.timeline p { margin: 0 0 6px; color: #b3b5bc; }
.timeline span { color: #6f727c; font-size: 13px; }

.contact-section { padding: 150px 0 110px; display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: end; }
.contact-section h2 { font-size: clamp(48px, 6vw, 88px); margin-bottom: 0; }
.contact-actions { display: grid; gap: 20px; justify-items: end; padding-bottom: 8px; }
.social-links { display: flex; gap: 18px; color: #858893; font-size: 13px; }
.social-links a:hover { color: white; }
.site-footer { min-height: 90px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: #696c76; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }.delay-2 { transition-delay: .16s; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 34px, 760px); }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: rgba(15,16,22,.96); border: 1px solid var(--line); border-radius: 20px; padding: 18px; flex-direction: column; align-items: stretch; gap: 0; backdrop-filter: blur(20px); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 10px; }
  .nav-cta { border: 0; border-radius: 0; }
  .menu { display: block; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 54px; }
  .hero-visual { min-height: 540px; }
  .photo-card { width: min(86vw, 480px); }
  .card-code { left: 4%; }.card-note { right: 2%; }
  .split-section { grid-template-columns: 1fr; gap: 36px; padding: 105px 0; }
  .section-label { padding-top: 0; }
  .projects-section { padding: 105px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-visual { height: 320px; }
  .project-card > p { min-height: unset; }
  .contact-section { grid-template-columns: 1fr; align-items: start; gap: 40px; padding: 110px 0 80px; }
  .contact-actions { justify-items: start; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  .site-header { height: 74px; }
  .hero { min-height: auto; padding: 52px 0 80px; }
  .hero h1 { font-size: clamp(52px, 15vw, 76px); }
  .hero-text { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-meta { gap: 24px; justify-content: space-between; }
  .hero-visual { min-height: 460px; }
  .photo-card { width: 84vw; border-radius: 26px; }
  .card-note { right: 0; top: 38px; font-size: 13px; }
  .card-code { left: 0; bottom: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .project-visual { height: 240px; }
  .project-links { grid-template-columns: 1fr; }
  .social-links { flex-wrap: wrap; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { padding: 25px 0; min-height: auto; align-items: flex-start; gap: 10px; flex-direction: column; }
}

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


/* V3 — custom-domain email contact */
.email-card {
  min-width: min(100%, 360px);
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.email-label {
  display: block;
  margin-bottom: 6px;
  color: #777b85;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}
.email-address {
  display: inline-block;
  color: #f3f4f5;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -.03em;
  transition: color .2s ease;
}
.email-address:hover { color: var(--accent); }
.email-note {
  display: block;
  margin-top: 6px;
  color: #858892;
  font-size: 11px;
}
.contact-buttons {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .email-card { width: 100%; min-width: 0; }
  .contact-buttons { display: grid; grid-template-columns: 1fr; width: 100%; }
  .contact-buttons .button { justify-content: center; }
}
