:root {
  --bg: #f4f1ea;
  --fg: #0a0a0a;
  --accent: #ff3b00;
  --line: #0a0a0a;
  --mark: #ffe000;
  --badge-bg: #e5e0d4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Mono", monospace;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

body.invert {
  --bg: #0a0a0a;
  --fg: #f4f1ea;
  --line: #f4f1ea;
  --accent: #ffe000;
  --mark: #ff3b00;
  --badge-bg: #1c1c1c;
}

a { color: inherit; text-decoration: none; }
mark { background: var(--mark); color: #0a0a0a; padding: 0 .2em; font-weight: 700; }

/* CUSTOM CURSOR */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 18px; height: 18px;
  border: 2px solid var(--fg);
  background: var(--accent);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width .15s, height .15s;
}
.cursor.hot { width: 44px; height: 44px; }

/* TOPBAR */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 3px solid var(--line);
  background: var(--bg);
}
.logo { font-family: "Archivo Black", sans-serif; font-size: 1.4rem; letter-spacing: -1px; }
.blink { animation: blink 1s steps(2) infinite; color: var(--accent); }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

.nav { display: flex; gap: 20px; font-weight: 700; font-size: .8rem; }
.nav a { position: relative; padding: 2px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent); transition: width .2s;
}
.nav a:hover::after { width: 100%; }

.topbar-actions { display: flex; gap: 10px; align-items: center; }
.theme-btn, .cv-btn-top {
  font-family: inherit; font-weight: 700; font-size: .75rem;
  background: var(--fg); color: var(--bg);
  border: 2px solid var(--line); padding: 6px 12px; cursor: none;
  display: inline-block;
}
.theme-btn:hover, .cv-btn-top:hover { background: var(--accent); color: var(--fg); }

/* MARQUEE */
.marquee {
  display: flex; white-space: nowrap; overflow: hidden;
  border-bottom: 3px solid var(--line);
  background: var(--accent); color: #0a0a0a;
  font-weight: 700; font-size: .85rem;
}
.marquee span { padding: 8px 0; animation: slide 24s linear infinite; display: inline-block; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* HERO */
.hero { padding: 60px 24px 50px; border-bottom: 3px solid var(--line); }
.hero-grid {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px; margin: 20px 0 30px;
}
.hero-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.8rem, 11vw, 8.5rem);
  line-height: .9; letter-spacing: -3px; text-transform: uppercase;
}
.hero-title .dot { color: var(--accent); }
.hero-meta { display: flex; flex-direction: column; gap: 8px; }
.tag {
  border: 2px solid var(--line); padding: 4px 10px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  background: var(--bg);
}
.hero-statement {
  max-width: 820px; font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  border-left: 6px solid var(--accent); padding-left: 18px; margin: 30px 0 24px;
  line-height: 1.6;
}

/* HERO STATS */
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; border: 3px solid var(--line); margin-bottom: 28px;
}
.stat-box {
  border: 3px solid var(--line); margin: -3px; padding: 18px 20px;
  background: var(--bg); transition: background .15s;
}
.stat-box:hover { background: var(--badge-bg); }
.stat-val {
  font-family: "Archivo Black", sans-serif; font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  margin-top: 6px; opacity: .85;
}

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.cta {
  display: inline-block; font-weight: 700; font-size: .95rem;
  background: var(--fg); color: var(--bg);
  border: 3px solid var(--line); padding: 12px 24px;
}
.cta:hover { background: var(--accent); color: var(--fg); transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--line); }
.cta-secondary {
  background: transparent; color: var(--fg);
}

/* SECTIONS */
.section { padding: 60px 24px; border-bottom: 3px solid var(--line); }
.section-title {
  font-family: "Archivo Black", sans-serif; text-transform: uppercase;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem); letter-spacing: -1px; margin-bottom: 36px;
}
.section-title span {
  display: inline-block; background: var(--accent); color: #0a0a0a;
  padding: 2px 10px; margin-right: 12px;
}

/* WORK / PROJECTS */
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0; border: 3px solid var(--line);
}
.card {
  border: 3px solid var(--line); margin: -3px; padding: 26px;
  background: var(--bg); display: flex; flex-direction: column; gap: 14px;
  transition: background .15s, color .15s;
}
.card:hover { background: var(--fg); color: var(--bg); }
.card:hover .stack li { border-color: var(--bg); }
.card-head { display: flex; justify-content: space-between; font-weight: 700; font-size: .8rem; }
.card h3 { font-family: "Archivo Black", sans-serif; font-size: 1.6rem; text-transform: uppercase; line-height: 1.1; }
.card-sub { font-size: .85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.card:hover .card-sub { color: var(--mark); }
.card p { font-size: .9rem; line-height: 1.5; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.stack li { border: 2px solid var(--line); padding: 3px 8px; font-size: .7rem; font-weight: 700; }
.card-link { font-weight: 700; align-self: flex-start; border-bottom: 2px solid var(--accent); font-size: .85rem; }

/* EXPERIENCE TIMELINE */
.exp-list { display: flex; flex-direction: column; gap: 0; border: 3px solid var(--line); }
.exp-item {
  border-bottom: 3px solid var(--line); padding: 28px;
  background: var(--bg); display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  transition: background .15s;
}
.exp-item:last-child { border-bottom: none; }
.exp-item:hover { background: var(--badge-bg); }
.exp-meta { display: flex; flex-direction: column; gap: 6px; }
.exp-period { font-size: .8rem; font-weight: 700; color: var(--accent); }
.exp-company { font-family: "Archivo Black", sans-serif; font-size: 1.25rem; }
.exp-loc { font-size: .8rem; font-weight: 700; opacity: .8; }
.exp-role { font-family: "Archivo Black", sans-serif; font-size: 1.15rem; margin-bottom: 12px; }
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.exp-bullets li { position: relative; padding-left: 18px; font-size: .92rem; line-height: 1.5; }
.exp-bullets li::before { content: "►"; position: absolute; left: 0; color: var(--accent); font-size: .75rem; top: 3px; }

/* PUBLICATIONS */
.pub-list { display: flex; flex-direction: column; gap: 20px; }
.pub-card {
  border: 3px solid var(--line); padding: 26px;
  background: var(--bg); display: flex; flex-direction: column; gap: 12px;
  position: relative; transition: transform .15s, box-shadow .15s;
}
.pub-card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--line); }
.pub-badge {
  align-self: flex-start; background: var(--accent); color: #0a0a0a;
  font-weight: 700; font-size: .75rem; padding: 3px 8px; text-transform: uppercase;
}
.pub-title { font-family: "Archivo Black", sans-serif; font-size: 1.3rem; line-height: 1.2; }
.pub-authors { font-size: .85rem; opacity: .9; line-height: 1.4; }
.pub-venue { font-size: .9rem; font-weight: 700; }
.pub-link {
  display: inline-block; align-self: flex-start;
  font-weight: 700; font-size: .85rem;
  background: var(--fg); color: var(--bg);
  border: 2px solid var(--line); padding: 6px 14px;
}
.pub-link:hover { background: var(--accent); color: var(--fg); }

/* HONORS & ACADEMIC GRID */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box-panel {
  border: 3px solid var(--line); padding: 26px;
  background: var(--bg); display: flex; flex-direction: column; gap: 16px;
}
.panel-title { font-family: "Archivo Black", sans-serif; font-size: 1.3rem; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.award-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.award-item { border-left: 4px solid var(--accent); padding-left: 12px; }
.award-name { font-weight: 700; font-size: .95rem; }
.award-org { font-size: .85rem; opacity: .85; }

/* ABOUT & SKILLS */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.about-bio p { font-size: clamp(1rem, 1.8vw, 1.2rem); margin-bottom: 18px; line-height: 1.6; }
.skills-category { margin-bottom: 20px; }
.skills-category h4 { font-family: "Archivo Black", sans-serif; font-size: .95rem; margin-bottom: 8px; color: var(--accent); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags span {
  border: 2px solid var(--line); padding: 4px 10px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  background: var(--badge-bg);
}

/* CONTACT */
.contact-line { font-family: "Archivo Black", sans-serif; text-transform: uppercase; font-size: clamp(1.5rem, 5vw, 3.5rem); margin-bottom: 26px; line-height: .95; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 0; border: 3px solid var(--line); margin-bottom: 40px; }
.contact-box { border: 3px solid var(--line); margin: -3px; padding: 22px 18px; font-weight: 700; font-size: 1rem; word-break: break-all; }
.contact-box span { display: block; font-size: .75rem; opacity: .7; text-transform: uppercase; margin-bottom: 4px; }
.contact-box:hover { background: var(--accent); color: #0a0a0a; }

.form { display: grid; gap: 16px; max-width: 720px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.form input, .form textarea {
  font-family: inherit; font-size: 1rem; padding: 12px;
  border: 3px solid var(--line); background: var(--bg); color: var(--fg);
  cursor: none; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: 4px solid var(--accent); }
.form-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.submit {
  font-family: "Archivo Black", sans-serif; text-transform: uppercase;
  background: var(--fg); color: var(--bg); border: 3px solid var(--line);
  padding: 14px 28px; font-size: 1rem; cursor: none; justify-self: start;
  transition: background .15s, color .15s;
}
.submit:hover { background: var(--accent); color: var(--fg); }
.submit:disabled { opacity: .6; cursor: not-allowed; }

.form-result {
  font-size: .85rem; font-weight: 700; padding: 8px 14px;
  border: 2px solid var(--line); display: none;
}
.form-result.success { display: inline-block; background: var(--mark); color: #0a0a0a; }
.form-result.error { display: inline-block; background: var(--accent); color: #ffffff; }

/* FOOTER */
.footer {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding: 24px; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  border-top: 3px solid var(--line);
}
.footer a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .exp-item { grid-template-columns: 1fr; gap: 12px; }
  .split-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .hero-title { font-size: 3.2rem; }
}

