:root {
  --bg: #17111f;
  --panel: #21172d;
  --panel-soft: rgba(255, 255, 255, 0.06);
  --acid: #dfff22;
  --cyan: #55e4ff;
  --pink: #ff79d6;
  --cream: #fff7df;
  --muted: rgba(255, 247, 223, 0.68);
  --line: rgba(255, 255, 255, 0.13);
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(85, 228, 255, 0.16), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(255, 121, 214, 0.12), transparent 30%),
    var(--bg);
  color: var(--cream);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.11;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 255, 34, 0.16), transparent 64%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 48px);
  color: var(--acid);
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2.8vw, 34px);
  color: rgba(255, 247, 223, 0.78);
  font-size: 14px;
  font-weight: 900;
}

.nav-links a:hover {
  color: var(--acid);
}

.panel {
  position: relative;
  min-height: 100vh;
  padding: clamp(92px, 11vw, 134px) clamp(18px, 5vw, 72px) clamp(48px, 7vw, 86px);
  overflow: hidden;
}

.hero {
  display: grid;
  place-items: center;
  text-align: center;
}

.portrait-stage {
  position: absolute;
  top: 12vh;
  left: 50%;
  width: min(54vw, 520px);
  aspect-ratio: 0.72;
  transform: translateX(-50%);
  z-index: 0;
}

.portrait-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 48% 48% 8px 8px;
  filter: saturate(0.72) contrast(1.04);
  opacity: 0.58;
  box-shadow: 0 34px 80px var(--shadow);
  mask-image: linear-gradient(180deg, #000 0 72%, transparent 100%);
}

.portrait-stage::after {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(223, 255, 34, 0.16), transparent 58%);
  z-index: -1;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(223, 255, 34, 0.4);
  border-radius: 50%;
  inset: 14% 4%;
}

.orbit-two {
  inset: 24% -9%;
  border-color: rgba(85, 228, 255, 0.34);
  transform: rotate(-13deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin-top: 23vh;
}

.kicker,
.section-title span {
  color: var(--acid);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-heading,
.section-title h2,
.contact-card h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.86;
}

.hero-heading {
  color: var(--cream);
  font-size: clamp(62px, 14vw, 182px);
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.46);
}

.hero-subtitle {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(19px, 3vw, 32px);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font: inherit;
  font-weight: 900;
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.pill-button.primary {
  background: var(--acid);
  color: #161513;
  border-color: var(--acid);
}

.hero-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6vh;
  z-index: 1;
  overflow: hidden;
  color: var(--acid);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(44px, 10vw, 132px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.92;
}

.marquee-track,
.soft-track {
  display: flex;
  width: max-content;
  gap: 36px;
}

.neon-panel {
  background: var(--acid);
  color: #151515;
}

.section-title {
  position: relative;
  z-index: 2;
  max-width: 1020px;
}

.section-title h2 {
  font-size: clamp(52px, 10vw, 132px);
}

.about-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(28px, 6vw, 70px);
}

.about-copy {
  max-width: 760px;
}

.about-copy p {
  margin: 0;
  max-width: 720px;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 900;
  line-height: 1.35;
}

.about-copy .about-lead {
  margin-bottom: 22px;
  font-size: clamp(34px, 6.5vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #151515;
  font-size: 14px;
  font-weight: 900;
}

.proof-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 5vw, 54px);
}

.proof-strip div {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.proof-strip strong {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
}

.proof-strip span {
  display: block;
  margin-top: 8px;
  font-weight: 800;
}

.skills {
  background: linear-gradient(180deg, #1c1328, #17111f);
}

.skill-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.skill-box {
  grid-column: span 3;
  min-height: 188px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(223, 255, 34, 0.03);
  backdrop-filter: blur(16px);
}

.skill-box.wide {
  grid-column: 1 / -1;
  min-height: 138px;
}

.skill-box h3,
.project-row h3,
.timeline-list h3,
.education-grid h3 {
  margin: 0 0 16px;
  color: var(--cream);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.04;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(223, 255, 34, 0.28);
  border-radius: 999px;
  background: rgba(223, 255, 34, 0.1);
  color: var(--acid);
  font-size: 13px;
  font-weight: 900;
}

.soft-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  overflow: hidden;
  color: rgba(255, 247, 223, 0.82);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 900;
  text-transform: uppercase;
}

.soft-track span::after {
  content: "+";
  margin-left: 36px;
  color: var(--cyan);
}

.projects {
  background:
    radial-gradient(circle at 88% 20%, rgba(223, 255, 34, 0.14), transparent 28%),
    #17111f;
}

.project-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.project-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  min-height: 168px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}

.project-row:hover,
.project-row.active {
  transform: translateX(10px);
  border-color: rgba(223, 255, 34, 0.62);
  background: rgba(223, 255, 34, 0.08);
}

.project-index {
  color: var(--acid);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
}

.project-row p,
.timeline-list p,
.education-grid p {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}

.chips.compact span {
  min-height: 27px;
  font-size: 12px;
}

.timeline,
.education {
  display: grid;
  align-content: center;
  background: #21172d;
}

.timeline-list,
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.timeline-list article,
.education-grid article,
.contact-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.timeline-list span,
.education-grid span,
.education-grid strong {
  display: block;
  margin-bottom: 16px;
  color: var(--acid);
  font-weight: 900;
  text-transform: uppercase;
}

.education-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(23, 17, 31, 0.72), rgba(23, 17, 31, 0.9)),
    url("assets/ashmar-background.jpeg") center / cover no-repeat;
}

.contact-card {
  max-width: 980px;
  text-align: center;
  background: rgba(23, 17, 31, 0.78);
}

.contact-card h2 {
  margin-top: 12px;
  font-size: clamp(42px, 8vw, 98px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 900;
}

.contact-links a:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 14, 0.74);
  backdrop-filter: blur(10px);
}

.contact-modal__card {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(223, 255, 34, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(33, 23, 45, 0.9), rgba(33, 23, 45, 0.96)),
    url("assets/ashmar-background.jpeg") center / cover no-repeat;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.52);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

.contact-modal.is-open .contact-modal__card {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.contact-modal__card h2 {
  margin: 10px 0 14px;
  color: var(--cream);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(42px, 9vw, 78px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.contact-modal__card p:not(.kicker) {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.contact-modal__links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-modal__links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--acid);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.reveal {
  opacity: 0;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .portrait-stage {
    top: 15vh;
    width: min(88vw, 440px);
  }

  .hero-content {
    margin-top: 30vh;
  }

  .proof-strip,
  .about-layout,
  .timeline-list,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .about-tags {
    justify-content: flex-start;
  }

  .skill-board {
    grid-template-columns: 1fr;
  }

  .skill-box,
  .skill-box.wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .panel {
    min-height: 100svh;
    padding: 108px 18px 56px;
  }

  .hero {
    height: 100svh;
    min-height: 680px;
    padding-top: 76px;
    padding-bottom: 0;
  }

  .cursor-glow {
    display: none;
  }

  .portrait-stage {
    top: 12vh;
    width: min(78vw, 360px);
  }

  .hero-heading {
    font-size: clamp(54px, 19vw, 76px);
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-marquee {
    bottom: 1.5vh;
    font-size: clamp(38px, 16vw, 82px);
    opacity: 0.76;
  }

  .hero-content {
    margin-top: 23vh;
    padding-bottom: 84px;
  }

  .project-row {
    grid-template-columns: 1fr;
  }

  .contact-modal__links a {
    font-size: 15px;
    line-height: 1.2;
  }
}
