:root {
  --bg: #07060b;
  --bg-soft: #0b0911;
  --text: #f7f5fb;
  --muted: #aaa5b3;
  --dim: #686371;
  --line: rgba(255,255,255,.10);
  --purple: #8b5cf6;
  --purple-light: #b99aff;
  --purple-dark: #32175f;
  --max: 1180px;
  --ease: cubic-bezier(.2,.75,.2,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(101, 55, 173, .13), transparent 26%),
    radial-gradient(circle at 12% 62%, rgba(82, 42, 139, .07), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::selection {
  background: rgba(139,92,246,.4);
  color: white;
}

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

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .18;
  z-index: -1;
}

.ambient-one {
  width: 350px;
  height: 350px;
  background: #5f2eae;
  top: -150px;
  right: -80px;
}

.ambient-two {
  width: 280px;
  height: 280px;
  background: #32195b;
  bottom: 5%;
  left: -160px;
}

nav {
  height: 82px;
  max-width: var(--max);
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.logo span { color: var(--purple-light); }

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color .25s ease;
}

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

.menu { display: none; }

.hero {
  max-width: var(--max);
  min-height: calc(100vh - 82px);
  margin: auto;
  padding: 65px 28px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 80px;
  position: relative;
}

.hero-copy { max-width: 720px; }

.greeting {
  margin: 0 0 13px;
  color: var(--purple-light);
  font-size: 22px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  animation: reveal .8s var(--ease) .1s forwards;
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(68px, 8.7vw, 116px);
  line-height: .91;
  letter-spacing: -.075em;
  font-weight: 600;
  max-width: 800px;
  opacity: 0;
  transform: translateY(26px);
  animation: reveal .9s var(--ease) .18s forwards;
}

.hero-line {
  width: 72px;
  height: 2px;
  margin: 30px 0 25px;
  background: linear-gradient(90deg, var(--purple), transparent);
  opacity: 0;
  animation: fade .8s ease .42s forwards;
}

.hero-description {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  opacity: 0;
  transform: translateY(18px);
  animation: reveal .8s var(--ease) .45s forwards;
}

.actions {
  display: flex;
  gap: 11px;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(15px);
  animation: reveal .8s var(--ease) .57s forwards;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 0 21px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  transition: transform .35s var(--ease), background .35s, border-color .35s, box-shadow .35s;
}

.button:hover { transform: translateY(-3px); }

.primary {
  background: var(--text);
  color: #08070b;
  border-color: var(--text);
}

.primary:hover {
  box-shadow: 0 10px 30px rgba(255,255,255,.08);
}

.secondary { color: var(--muted); }

.secondary:hover {
  color: var(--text);
  border-color: rgba(139,92,246,.5);
  background: rgba(139,92,246,.07);
}

.photo-area {
  width: 350px;
  height: 350px;
  justify-self: end;
  position: relative;
  opacity: 0;
  transform: scale(.92);
  animation: photoIn 1.1s var(--ease) .3s forwards;
}

.photo-glow {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: rgba(117,65,190,.24);
  filter: blur(45px);
  animation: glow 5s ease-in-out infinite;
}

.photo-ring {
  position: absolute;
  inset: 0;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(189,154,255,.7), rgba(92,48,157,.15) 45%, rgba(255,255,255,.05));
}

.photo-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  pointer-events: none;
}

.photo-ring img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.photo-ring img {
  display: block;
  object-fit: cover;
  background: #121018;
}

.photo-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6e6877;
  font-size: 11px;
  letter-spacing: .15em;
  line-height: 1.7;
  background: #0d0b12;
}

.hero-bottom {
  position: absolute;
  left: 28px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #66616e;
  font-size: 11px;
  letter-spacing: .03em;
}

.hero-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes photoIn { to { opacity: 1; transform: scale(1); } }
@keyframes glow {
  0%,100% { transform: scale(.95); opacity: .65; }
  50% { transform: scale(1.06); opacity: 1; }
}

.section {
  max-width: var(--max);
  margin: auto;
  padding: 150px 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 60px;
}

.section-kicker {
  padding-top: 9px;
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.about-content { max-width: 820px; }

.section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(46px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 600;
}

.about-content p {
  max-width: 760px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.project-card {
  min-height: 500px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  border: 1px solid rgba(160,122,225,.18);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 25%, rgba(129,75,204,.15), transparent 38%),
    #0b0910;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  transition: border-color .5s, transform .5s var(--ease), box-shadow .5s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(160,122,225,.35);
  box-shadow: 0 25px 80px rgba(39,19,67,.22);
}

.project-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle, rgba(111,65,182,.12), transparent 60%);
}

.project-orb {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 1px solid rgba(167,130,230,.18);
  box-shadow:
    0 0 90px rgba(107,58,180,.16),
    inset 0 0 70px rgba(107,58,180,.08);
}

.project-orb::before,
.project-orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(167,130,230,.12);
}

.project-orb::before { inset: 35px; }
.project-orb::after { inset: 75px; }

.logo-box {
  width: 155px;
  height: 155px;
  position: relative;
  z-index: 2;
  border-radius: 38px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #111;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}

.logo-placeholder {
  display: none;
  color: var(--purple-light);
  font-family: "Space Grotesk", sans-serif;
  font-size: 38px;
  font-weight: 700;
}

.project-info {
  padding: 75px 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-label {
  margin: 0 0 22px;
  color: var(--purple-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.project-info h2 {
  font-size: clamp(55px, 7vw, 90px);
}

.project-info > p:not(.project-label) {
  max-width: 500px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 28px 0 35px;
}

.project-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,.025);
  transition: background .3s, border-color .3s, transform .3s;
}

.project-button:hover {
  background: rgba(139,92,246,.12);
  border-color: rgba(139,92,246,.45);
  transform: translateY(-2px);
}

.project-arrow { color: var(--purple-light); }

.experience-section {
  display: block;
}

.experience-section > .section-kicker {
  margin-bottom: 60px;
}

.timeline {
  position: relative;
  max-width: 950px;
  margin-left: 65px;
  border-left: 1px solid rgba(139,92,246,.28);
}

.experience {
  position: relative;
  padding: 0 0 75px 55px;
}

.experience:last-child { padding-bottom: 5px; }

.experience-dot {
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 7px var(--bg), 0 0 18px rgba(139,92,246,.65);
}

.experience-period {
  color: var(--purple-light);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.experience-role {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -.045em;
  font-weight: 600;
}

.experience-org {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.experience-description {
  max-width: 650px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.skills-section {
  align-items: start;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
  max-width: 800px;
}

.skill {
  padding: 14px 18px;
  border: 1px solid rgba(139,92,246,.20);
  border-radius: 999px;
  background: rgba(139,92,246,.045);
  color: #c2bdc9;
  font-size: 13px;
  transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s;
}

.skill:hover {
  color: white;
  background: rgba(139,92,246,.12);
  border-color: rgba(139,92,246,.45);
  transform: translateY(-3px);
}

.contact {
  max-width: var(--max);
  margin: auto;
  padding: 180px 28px 200px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  right: -150px;
  top: 40px;
  border-radius: 50%;
  background: rgba(92,48,157,.12);
  filter: blur(80px);
  pointer-events: none;
}

.contact h2 {
  margin: 30px 0 28px;
  max-width: 950px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(65px, 9vw, 120px);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 600;
}

.contact h2 span {
  color: var(--purple-light);
}

.contact > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 16px;
}

.email-link {
  display: inline-block;
  margin-top: 15px;
  color: white;
  font-size: 16px;
  border-bottom: 1px solid rgba(185,154,255,.55);
  padding-bottom: 8px;
  transition: color .25s, border-color .25s;
}

.email-link:hover {
  color: var(--purple-light);
  border-color: var(--purple-light);
}

footer {
  max-width: var(--max);
  margin: auto;
  padding: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #625e68;
  font-size: 11px;
}

footer div { display: flex; gap: 24px; }
footer a:hover { color: var(--text); }

@media (max-width: 850px) {
  nav { padding: 0 20px; }

  .nav-links { display: none; }

  .menu {
    display: block;
    width: 38px;
    height: 38px;
    border: 0;
    background: none;
    position: relative;
  }

  .menu span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 1px;
    background: white;
  }

  .menu span:first-child { top: 13px; }
  .menu span:last-child { top: 22px; }

  .hero {
    min-height: auto;
    padding: 65px 20px 105px;
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .hero h1 { font-size: clamp(58px, 16vw, 92px); }
  .hero-description { font-size: 15px; }

  .photo-area {
    width: min(300px, 72vw);
    height: min(300px, 72vw);
    justify-self: center;
  }

  .hero-bottom {
    left: 20px;
    bottom: 35px;
  }

  .section {
    padding: 105px 20px;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section h2 { font-size: clamp(44px, 12vw, 70px); }
  .about-content p { font-size: 16px; }

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

  .project-visual {
    min-height: 360px;
  }

  .project-orb {
    width: 240px;
    height: 240px;
  }

  .logo-box {
    width: 125px;
    height: 125px;
  }

  .project-info {
    padding: 45px 30px 55px;
  }

  .timeline {
    margin-left: 8px;
  }

  .experience {
    padding-left: 35px;
  }

  .contact {
    padding: 120px 20px 145px;
  }

  footer {
    padding: 25px 20px;
    flex-direction: column;
    gap: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}