:root {
  color-scheme: dark;
  --black: #030307;
  --matte: #08080f;
  --graphite: #15151e;
  --purple: #6d28d9;
  --violet: #b44cff;
  --hot: #f044ff;
  --cyan: #7de7ff;
  --silver: #d8d8e8;
  --muted: #a6a3b8;
  --line: rgba(220, 210, 255, 0.16);
  --glass: rgba(18, 16, 31, 0.58);
  --shadow: 0 30px 90px rgba(90, 30, 180, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(126, 60, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 82% 4%, rgba(125, 231, 255, 0.12), transparent 28rem),
    linear-gradient(145deg, #030307 0%, #070711 48%, #111017 100%);
  color: #f7f4ff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 84%);
}

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

img {
  display: block;
  max-width: 100%;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -4;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  pointer-events: none;
}

.ambient-one {
  top: 8%;
  left: -10%;
  background: rgba(111, 35, 255, 0.72);
}

.ambient-two {
  right: -12%;
  bottom: 8%;
  background: rgba(240, 68, 255, 0.36);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.1;
  pointer-events: none;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(223, 215, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 5, 12, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px);
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(244, 226, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(180, 76, 255, 0.9), rgba(30, 30, 42, 0.86));
  box-shadow: 0 0 30px rgba(180, 76, 255, 0.38);
  font-size: 0.78rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.92rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #d8d3e6;
  font-size: 0.84rem;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.nav-links a:hover {
  color: white;
  background: rgba(180, 76, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(180, 76, 255, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: white;
}

.section-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  min-height: 100svh;
  padding: 148px 0 88px;
  gap: 28px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 92px -6vw 36px 28%;
  z-index: -2;
  overflow: hidden;
  border: 1px solid rgba(230, 220, 255, 0.12);
  border-radius: 30px;
  opacity: 0.74;
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 3, 7, 0.95), rgba(3, 3, 7, 0.36) 52%, rgba(3, 3, 7, 0.18)),
    radial-gradient(circle at 68% 45%, rgba(180, 76, 255, 0), rgba(3, 3, 7, 0.75));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-content {
  max-width: 730px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e7d7ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 7.4vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.05rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-content p {
  max-width: 640px;
  color: #cbc5dd;
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

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

.button.primary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #f044ff, #7c3cff 54%, #27203a);
  box-shadow: 0 16px 45px rgba(180, 76, 255, 0.35);
  color: white;
}

.button.secondary {
  border: 1px solid rgba(219, 210, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #eee9ff;
  backdrop-filter: blur(16px);
}

.hero-metrics {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px);
}

.hero-metrics div {
  padding: 18px;
}

.hero-metrics div + div {
  border-left: 1px solid var(--line);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 1.55rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.83rem;
}

.hero-identity {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  gap: 16px;
  min-width: 0;
}

.portrait-frame {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 223, 255, 0.24);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(180, 76, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(8, 8, 15, 0.76);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.46),
    0 0 70px rgba(180, 76, 255, 0.24);
  backdrop-filter: blur(22px);
}

.portrait-frame::before {
  position: absolute;
  inset: -1px;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 3, 7, 0) 52%, rgba(3, 3, 7, 0.9) 100%),
    radial-gradient(circle at 18% 8%, rgba(240, 68, 255, 0.38), transparent 15rem),
    linear-gradient(135deg, rgba(125, 231, 255, 0.16), transparent 34%);
}

.portrait-frame::after {
  position: absolute;
  inset: 14px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 51% 50%;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.portrait-frame figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 3;
  padding: 16px;
  border: 1px solid rgba(232, 223, 255, 0.2);
  border-radius: 20px;
  background: rgba(5, 5, 12, 0.68);
  box-shadow: inset 0 0 28px rgba(180, 76, 255, 0.1);
  backdrop-filter: blur(18px);
}

.portrait-frame span,
.portrait-frame strong {
  display: block;
}

.portrait-frame span {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
}

.portrait-frame strong {
  margin-top: 4px;
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.signal-panel {
  align-self: center;
  padding: 20px;
  border: 1px solid rgba(225, 217, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(22, 20, 34, 0.72), rgba(7, 7, 14, 0.78));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
}

.panel-label {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.signal-row span {
  color: var(--muted);
}

.intro,
.section-shell:not(.hero) {
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 58px;
  align-items: start;
  margin-top: 18px;
}

.split p {
  margin-bottom: 0;
  font-size: 1.12rem;
}

.about-copy {
  display: grid;
  gap: 22px;
}

.about-photo-strip {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(223, 216, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

.about-photo-strip img {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
  object-position: 51% 42%;
  box-shadow: 0 0 34px rgba(180, 76, 255, 0.22);
}

.about-photo-strip span {
  color: #f2ecff;
  font-weight: 850;
  line-height: 1.45;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  contain: paint;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 28s linear infinite;
}

.marquee span {
  padding: 20px 34px;
  color: #eee9ff;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes scroll-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section-heading {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 36px;
}

.service-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.glass-card,
.case-card,
.timeline-item,
.contact-card,
.cert-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(223, 216, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(10, 10, 18, 0.66);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(24px);
}

.glass-card::before,
.case-card::before,
.timeline-item::before,
.contact-card::before,
.cert-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(180, 76, 255, 0.22), transparent 22rem);
  opacity: 0;
  transition: opacity 240ms ease;
}

.glass-card:hover::before,
.case-card:hover::before,
.timeline-item:hover::before,
.contact-card:hover::before,
.cert-panel:hover::before {
  opacity: 1;
}

.glass-card {
  min-height: 238px;
  padding: 24px;
  border-radius: 22px;
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(180, 76, 255, 0.34);
  border-radius: 16px;
  background: rgba(180, 76, 255, 0.1);
  color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(180, 76, 255, 0.16);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  min-height: 300px;
  padding: 24px;
  border-radius: 24px;
}

.case-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 616px;
}

.case-card span,
.timeline-item span {
  display: block;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-card ul {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.case-card li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #d8d2e7;
}

.case-orbit {
  position: absolute;
  right: -120px;
  bottom: -90px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(180, 76, 255, 0.32);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(180, 76, 255, 0.16), 0 0 80px rgba(180, 76, 255, 0.18);
}

.case-orbit::after {
  position: absolute;
  inset: 62px;
  content: "";
  border: 1px solid rgba(125, 231, 255, 0.22);
  border-radius: 50%;
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 18px;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.skills-cloud span {
  padding: 13px 16px;
  border: 1px solid rgba(220, 210, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ede8fb;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
}

.cert-panel {
  padding: 26px;
  border-radius: 24px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 16px;
  width: 1px;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--violet), transparent);
}

.timeline-item {
  margin-left: 46px;
  padding: 24px;
  border-radius: 22px;
}

.timeline-item::after {
  position: absolute;
  top: 30px;
  left: -38px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--matte);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
  content: "";
}

blockquote {
  margin: 0;
}

blockquote p {
  color: #f0ebff;
  font-size: 1.04rem;
}

cite {
  color: var(--cyan);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.contact-card {
  min-height: 420px;
  padding: clamp(28px, 7vw, 72px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(180, 76, 255, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(8, 8, 15, 0.78);
}

.contact-card h2 {
  max-width: 760px;
  margin-top: 18px;
}

.contact-card p {
  max-width: 680px;
  margin-top: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 5, 12, 0.92);
    backdrop-filter: blur(20px);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero,
  .split,
  .section-heading,
  .skills-layout {
    grid-template-columns: 1fr;
  }

  .hero-identity,
  .hero-metrics {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding-top: 130px;
  }

  .hero-media {
    inset: 108px -90px auto 18%;
    height: 520px;
    transform: none;
  }

  .hero-identity {
    max-width: 420px;
  }

  .portrait-frame {
    min-height: 500px;
  }

  .portrait-frame img {
    min-height: 500px;
  }

  .service-grid,
  .testimonial-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-card.large {
    grid-column: span 2;
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .section-shell {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-bottom: 54px;
  }

  .hero-media {
    left: 0;
    right: 0;
    height: 470px;
    opacity: 0.6;
  }

  .hero-identity {
    max-width: none;
  }

  .portrait-frame {
    min-height: 470px;
  }

  .portrait-frame img {
    min-height: 470px;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.55rem);
  }

  .hero-content {
    order: 1;
  }

  .hero-identity {
    order: 2;
  }

  .hero-metrics {
    order: 3;
  }

  .hero-metrics,
  .service-grid,
  .testimonial-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-photo-strip {
    grid-template-columns: 88px 1fr;
  }

  .about-photo-strip img {
    width: 88px;
    height: 88px;
  }

  .case-card.large {
    grid-column: span 1;
    min-height: 360px;
  }

  .intro,
  .section-shell:not(.hero) {
    padding: 68px 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
