:root {
  --bg:      #0c0c0c;
  --bg2:     #141414;
  --bg3:     #1c1c1c;
  --lime:    #c8ff00;
  --lime-d:  #a8d800;
  --white:   #f0f0f0;
  --grey:    #6b6b6b;
  --grey-l:  #9b9b9b;
  --border:  rgba(255,255,255,.08);
  --serif:   'Syne', system-ui, sans-serif;
  --sans:    'Inter', system-ui, sans-serif;
  --radius:  16px;
}

/* ── RESET ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ── NAV ──────────────────────────────────────────── */
nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%; height: 60px;
  background: rgba(12,12,12,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--serif); font-size: 18px; font-weight: 800;
  letter-spacing: -.02em; color: var(--white);
}
.nav-logo span { color: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--grey-l); transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-avail {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; color: var(--lime);
  border: 1px solid rgba(200,255,0,.25);
  padding: 6px 12px;
}
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.burger span { width: 20px; height: 1px; background: var(--white); display: block; transition: all .3s; }

/* ── MOBILE MENU ──────────────────────────────────── */
#mob {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--bg); flex-direction: column;
  padding: 76px 7% 40px; gap: 0;
}
#mob a {
  font-family: var(--serif); font-size: 28px; font-weight: 800;
  color: rgba(255,255,255,.8); padding: 14px 0;
  border-bottom: 1px solid var(--border); transition: color .2s;
}
#mob a:hover { color: var(--lime); }
#mob .mob-cta {
  margin-top: 28px; background: var(--lime); color: var(--bg);
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  text-align: center; padding: 16px; border-bottom: none;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ── MAIN WRAPPER ─────────────────────────────────── */
main {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 4% 40px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ── BENTO GRID ───────────────────────────────────── */

/* Every bento tile */
.tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  position: relative;
  transition: border-color .25s, transform .25s;
}
.tile:hover {
  border-color: rgba(200,255,0,.2);
  transform: translateY(-2px);
}

/* ── ROW 1: Hero + side tiles ─────────────────────── */
.row1 {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto;
  gap: 12px;
}

/* Hero tile */
.tile-hero {
  padding: 40px 40px 36px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px;
  background: linear-gradient(145deg, #141414 0%, #0c0c0c 100%);
  position: relative; overflow: hidden;
}
.tile-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(200,255,0,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(200,255,0,.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime);
  margin-bottom: 14px; position: relative; z-index: 1;
}
.hero-name {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: .95; letter-spacing: -.04em;
  color: var(--white); position: relative; z-index: 1;
  margin-bottom: 16px;
}
.hero-name span { color: var(--lime); }
.hero-desc {
  font-size: 15px; font-weight: 300; color: var(--grey-l);
  max-width: 480px; line-height: 1.75;
  position: relative; z-index: 1; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-lime {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--bg);
  padding: 12px 26px; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border: none; cursor: pointer; border-radius: 6px;
  transition: background .2s, transform .15s;
}
.btn-lime:hover { background: var(--lime-d); transform: translateY(-1px); }
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--grey-l);
  padding: 12px 26px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; transition: all .2s;
}
.btn-dark:hover { border-color: var(--white); color: var(--white); }

/* Hero photo placeholder */
.hero-photo-wrap {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 38%; opacity: .15;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
}

.hero-photo-wrap img{
    width: 100%;
  }
/* Side column tiles */
.side-col { display: flex; flex-direction: column; gap: 12px; }

/* Availability tile */
.tile-avail {
  background: var(--lime);
  color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 120px;
}
.avail-label {
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; opacity: .6;
}
.avail-status {
  font-family: var(--serif); font-size: 23px; font-weight: 800;
  line-height: 1.1; letter-spacing: -.02em;
}


/* Location tile */
.tile-location {
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.loc-label {
  font-size: 10px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--grey);
}
.loc-city {
  font-family: var(--serif); font-size: 26px; font-weight: 800;
  letter-spacing: -.02em; color: var(--white); line-height: 1;
}
.loc-remote {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--lime);
  background: rgba(200,255,0,.1); border: 1px solid rgba(200,255,0,.2);
  padding: 5px 12px; border-radius: 99px; margin-top: 4px;
  width: fit-content;
}

/* Experience tile */
.tile-exp {
  background: var(--bg3);
  display: flex; align-items: center; gap: 16px;
}
.exp-num {
  font-family: var(--serif); font-size: 52px; font-weight: 800;
  color: var(--lime); letter-spacing: -.04em; line-height: 1;
}
.exp-label { font-size: 13px; color: var(--grey-l); line-height: 1.4; }

/* ── ROW 2: About + Skills ────────────────────────── */
.row2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

/* About tile */
.tile-about { }
.about-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 14px;
}
.about-h {
  font-family: var(--serif); font-size: 28px; font-weight: 800;
  letter-spacing: -.02em; color: var(--white);
  margin-bottom: 16px; line-height: 1.1;
}
.about-body {
  font-size: 14px; font-weight: 300; color: var(--grey-l);
  line-height: 1.8; margin-bottom: 20px;
}
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 99px;
  color: var(--grey-l); transition: all .2s;
}
.chip:hover { border-color: var(--lime); color: var(--lime); }

/* Skills tile */
.tile-skills { }
.skills-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 14px;
}
.skills-h {
  font-family: var(--serif); font-size: 28px; font-weight: 800;
  letter-spacing: -.02em; color: var(--white); margin-bottom: 20px; line-height: 1.1;
}
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.skill-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--white);
  transition: all .2s; cursor: default;
}
.skill-pill:hover { border-color: var(--lime); background: rgba(200,255,0,.05); }
.skill-pill-icon { font-size: 17px; }

/* ── ROW 3: Projects full width ───────────────────── */
.tile-projects-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 28px;
}
.proj-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime);
}
.proj-h {
  font-family: var(--serif); font-size: 28px; font-weight: 800;
  letter-spacing: -.02em; color: var(--white); line-height: 1;
}

/* Project cards row */
.projects-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.pcard {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s, transform .25s;
  display: flex; flex-direction: column;
}
.pcard:hover { border-color: rgba(200,255,0,.3); transform: translateY(-3px); }
.pcard-preview {
  aspect-ratio: 16/9;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 36px;
  position: relative; overflow: hidden;
}
.pcard-preview img{
  width: 100%;
}
.pcard-preview::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,255,0,.04), transparent);
}
.pcard-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.pcard-cat {
  font-size: 10px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 6px;
}
.pcard-name {
  font-family: var(--serif); font-size: 19px; font-weight: 800;
  letter-spacing: -.01em; color: var(--white); margin-bottom: 8px;
}
.pcard-desc {
  font-size: 13px; font-weight: 300; color: var(--grey-l);
  line-height: 1.65; flex: 1; margin-bottom: 16px;
}
.pcard-stack { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.pcard-tech {
  font-size: 10px; font-weight: 500;
  color: var(--grey); background: var(--bg3);
  border: 1px solid var(--border); padding: 3px 9px; border-radius: 4px;
}
.pcard-links { display: flex; gap: 8px; }
.plink {
  flex: 1; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 0; border-radius: 6px; transition: all .2s; cursor: pointer;
}
.plink-gh {
  border: 1px solid var(--border); color: var(--grey-l);
}
.plink-gh:hover { border-color: var(--white); color: var(--white); }
.plink-live {
  background: var(--lime); color: var(--bg);
}
.plink-live:hover { background: var(--lime-d); }

/* ── ROW 4: Testimonials + Contact ───────────────── */
.row4 { display: grid;  gap: 12px; }

/* Testimonials tile */
.tile-testi { }
.testi-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 14px;
}
.testi-h {
  font-family: var(--serif); font-size: 22px; font-weight: 800;
  letter-spacing: -.02em; color: var(--white); margin-bottom: 20px; line-height: 1.2;
}
.testi-list { display: flex; flex-direction: column; gap: 14px; }
.testi-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
  transition: border-color .2s;
}
.testi-item:hover { border-color: rgba(200,255,0,.2); }
.testi-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.testi-name { font-size: 13px; font-weight: 600; color: var(--white); }
.testi-proj { font-size: 11px; color: var(--lime); }
.testi-q {
  font-size: 13px; font-weight: 300; color: var(--grey-l);
  line-height: 1.65; font-style: italic;
}
.testi-q::before { content: '"'; }
.testi-q::after  { content: '"'; }

/* Contact tile */
.tile-contact {
  background: var(--lime); color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
}
/* ── Modal ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#modal-box {
  background: var(--bg2);
  border: 1px solid rgba(200, 255, 0, .25);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
#modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(200, 255, 0, .12);
  border: 2px solid var(--lime);
  color: var(--lime);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
#modal-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
#modal-text {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
  margin-bottom: 20px;
}
#modal-timer {
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .08em;
  margin-bottom: 16px;
}
#modal-close {
  background: var(--lime);
  color: var(--bg);
  border: none;
  padding: 10px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
#modal-close:hover { background: var(--lime-d); }
.contact-form-mini { display: flex; flex-direction: column; gap: 10px; }
.inp-dark {
  width: 100%; padding: 11px 14px; font-size: 13px; font-family: var(--sans);
  background: rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.2);
  color: var(--bg); border-radius: 6px; outline: none;
  transition: border-color .15s;
}
.inp-dark::placeholder { color: rgba(12,12,12,.45); }
.inp-dark:focus { border-color: rgba(0,0,0,.5); }
textarea.inp-dark { resize: none; min-height: 72px; }
.btn-dark-solid {
  background: var(--bg); color: var(--lime);
  padding: 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border: none; border-radius: 6px; cursor: pointer;
  transition: opacity .2s; font-family: var(--sans);
}
.btn-dark-solid:hover { opacity: .85; }
.ok-contact {
  display: none; text-align: center; padding: 14px;
  font-size: 14px; font-weight: 700; color: var(--bg);
}

/* ── FOOTER ───────────────────────────────────────── */
footer {
  max-width: 1200px; margin: 12px auto 0; padding: 0 4% 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.foot-logo {
  font-family: var(--serif); font-size: 16px; font-weight: 800;
  letter-spacing: -.02em; color: var(--grey);
}
.foot-logo span { color: var(--lime); }
.foot-links { display: flex; gap: 20px; }
.foot-links a {
  font-size: 12px; color: var(--grey); transition: color .15s;
}
.foot-links a:hover { color: var(--white); }
.foot-copy { font-size: 11px; color: var(--grey); }

/* ── REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── RESPONSIVE ───────────────────────────────────── */
@media(max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-avail { display: none; }
  .row1 { grid-template-columns: 1fr; }
  .side-col { display: grid; grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .projects-row { grid-template-columns: 1fr; }
  .row4 { grid-template-columns: 1fr; }
  .hero-photo-wrap { display: none; }
}
@media(max-width: 580px) {
  .side-col { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; text-align: center; }
}