:root {
  --bg: #060812;
  --surface: rgba(14, 18, 34, 0.78);
  --text: #f4f7ff;
  --muted: #aeb8d4;
  --line: rgba(156, 170, 255, 0.14);
  --accent: #8f5dff;
  --accent-cyan: #57d4ff;
  --accent-pink: #ff7bd5;
  --accent-gold: #f6c96d;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(143, 93, 255, 0.18), 0 0 38px rgba(143, 93, 255, 0.16);
  --radius-lg: 34px;
  --radius-md: 24px;
  --max-width: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 14%, rgba(246, 201, 109, 0.2), transparent 12%),
    radial-gradient(circle at 80% 18%, rgba(143, 93, 255, 0.26), transparent 18%),
    radial-gradient(circle at 58% 58%, rgba(87, 212, 255, 0.12), transparent 16%),
    linear-gradient(180deg, #05060d 0%, #090b16 42%, #060812 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.4px),
    radial-gradient(circle at 68% 18%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle at 84% 66%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.3px),
    radial-gradient(circle at 34% 74%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.4px),
    radial-gradient(circle at 54% 88%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.4px);
  opacity: 0.7;
}

body::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(143, 93, 255, 0.16), transparent 18%),
    radial-gradient(circle at 74% 22%, rgba(87, 212, 255, 0.12), transparent 16%),
    radial-gradient(circle at 52% 78%, rgba(255, 123, 213, 0.08), transparent 18%);
  filter: blur(24px);
}

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

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

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(116, 133, 219, 0.18);
  border-radius: 999px;
  background: rgba(8, 12, 25, 0.7);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.brand,
.site-nav a,
.eyebrow,
.project-type,
.hero-card-label,
.hero-kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f7f2ff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  position: relative;
  font-size: 0.78rem;
  color: rgba(226, 232, 255, 0.7);
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #ffffff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.hero,
.stats-grid,
.highlights-grid,
.content-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.8rem 0 1rem;
}

.hero-copy,
.hero-card,
.stats-grid article,
.highlight-card,
.project-card,
.panel,
.service-card,
.signature-card,
.contact-section,
.process-strip article {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(16, 21, 38, 0.92), rgba(10, 14, 26, 0.88)),
    var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), var(--glow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(87, 212, 255, 0.14), transparent 24%),
    radial-gradient(circle at left center, rgba(143, 93, 255, 0.24), transparent 26%),
    linear-gradient(160deg, rgba(16, 20, 38, 0.96), rgba(8, 11, 22, 0.92));
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto auto -3.5rem -3.5rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 201, 109, 0.42), transparent 70%);
  filter: blur(4px);
}

.eyebrow,
.project-type,
.hero-card-label,
.hero-kicker {
  margin: 0 0 1rem;
  color: #d0c7ff;
  font-size: 0.76rem;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.1rem;
}

.hero h1,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(3rem, 7vw, 6.3rem);
  letter-spacing: -0.05em;
  color: #f7f5ff;
}

.hero h1 span {
  display: inline-block;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-cyan);
  text-shadow: 0 0 26px rgba(87, 212, 255, 0.22);
}

.hero-text,
.about-grid p,
.project-card p,
.panel p,
.timeline p,
.contact-section p,
.service-card p,
.signature-card span,
.process-strip p,
.section-note,
.highlight-card p:last-child {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-text {
  max-width: 46rem;
  margin: 1.4rem 0 0;
}

.hero-tags,
.contact-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-tags {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}

.hero-tags li,
.skill-cloud li,
.tags li,
.detail-list li {
  padding: 0.58rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(164, 176, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #edf1ff;
}

.hero-actions,
.contact-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(143, 93, 255, 0.3);
}

.button-secondary,
.button-ghost {
  border-color: rgba(164, 176, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #eef2ff;
}

.button-ghost {
  background: transparent;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.proof-item {
  padding-top: 1rem;
  border-top: 1px solid rgba(164, 176, 255, 0.15);
}

.proof-item span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.proof-item strong {
  font-size: 1rem;
  line-height: 1.5;
  color: #fbfcff;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 93, 255, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(18, 21, 40, 0.96), rgba(9, 12, 24, 0.94));
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 212, 255, 0.22), transparent 70%);
}

.hero-card-profile {
  align-items: center;
  text-align: center;
}

.profile-photo-shell {
  width: min(100%, 16rem);
  aspect-ratio: 1;
  margin-bottom: 1.4rem;
  padding: 0.45rem;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(143, 93, 255, 0.94), rgba(87, 212, 255, 0.92)),
    rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 38px rgba(143, 93, 255, 0.3);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-card-block {
  width: 100%;
  padding: 1rem 0;
  border-top: 1px solid rgba(164, 176, 255, 0.14);
}

.hero-card-block span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(226, 232, 255, 0.66);
  font-size: 0.9rem;
}

.hero-card-block strong {
  font-size: 1.08rem;
  color: #ffffff;
}

.hero-availability {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(164, 176, 255, 0.14);
  color: #f4f7ff;
}

.status-dot {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: #49e890;
  box-shadow: 0 0 0 9px rgba(73, 232, 144, 0.12);
}

.stats-grid,
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stats-grid {
  margin-top: 1.3rem;
}

.stats-grid article,
.highlight-card {
  border-radius: var(--radius-md);
  padding: 1.45rem;
}

.stats-grid strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  color: #ffffff;
  text-shadow: 0 0 24px rgba(143, 93, 255, 0.16);
}

.stats-grid span {
  color: var(--muted);
  line-height: 1.6;
}

.highlights-grid {
  margin-top: 1rem;
}

.highlight-card {
  background:
    linear-gradient(160deg, rgba(17, 21, 40, 0.95), rgba(10, 12, 25, 0.92)),
    var(--surface);
}

.highlight-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  color: #ffffff;
}

.content-section {
  margin-top: 1rem;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(14, 18, 34, 0.9), rgba(8, 11, 22, 0.88)),
    var(--surface);
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.section-heading-inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
}

.section-heading h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.section-note {
  max-width: 24rem;
  margin: 0;
}

.about-grid,
.split-grid,
.services-grid,
.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.signature-grid,
.services-grid {
  margin-top: 1.8rem;
}

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

.signature-card,
.service-card,
.panel,
.process-strip article {
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.signature-card span,
.service-card span,
.process-strip span {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #d8ccff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.signature-card strong,
.service-card h3,
.project-card h3,
.panel h3 {
  display: block;
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  color: #ffffff;
}

.skill-cloud,
.tags,
.detail-list,
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.7rem;
}

.skill-cloud li {
  background:
    linear-gradient(180deg, rgba(143, 93, 255, 0.16), rgba(87, 212, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(170, 183, 255, 0.12);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  background:
    linear-gradient(180deg, rgba(18, 22, 40, 0.94), rgba(9, 12, 25, 0.92)),
    var(--surface);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(143, 93, 255, 0.36);
  box-shadow: var(--shadow), 0 0 40px rgba(143, 93, 255, 0.18);
}

.project-card-featured {
  grid-column: span 2;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(164, 176, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.project-surface {
  min-height: 10rem;
}

.project-type {
  color: #d9ccff;
}

.project-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(164, 176, 255, 0.14);
  color: #edf1ff;
  font-size: 0.96rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(164, 176, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f7ff;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(143, 93, 255, 0.44);
  background: rgba(143, 93, 255, 0.12);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.panel {
  background:
    linear-gradient(180deg, rgba(17, 21, 39, 0.94), rgba(10, 12, 24, 0.92)),
    var(--surface);
}

.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.timeline {
  margin-top: 1.2rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(164, 176, 255, 0.14);
}

.timeline li:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline span {
  font-weight: 700;
  color: var(--accent-cyan);
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-section {
  text-align: center;
  padding-block: clamp(2.1rem, 4vw, 3.7rem);
  background:
    radial-gradient(circle at top center, rgba(143, 93, 255, 0.22), transparent 20%),
    linear-gradient(180deg, rgba(18, 21, 40, 0.96), rgba(9, 12, 24, 0.94));
}

.contact-section h2 {
  margin-inline: auto;
  max-width: 12ch;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.contact-section > p {
  max-width: 40rem;
  margin: 1rem auto 0;
}

.contact-actions {
  justify-content: center;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  color: rgba(226, 232, 255, 0.62);
}

.contact-meta a {
  color: #f0f3ff;
  font-weight: 500;
}

.contact-meta a:hover,
.contact-meta a:focus-visible {
  text-decoration: underline;
}

.site-footer {
  padding: 2rem 0 1rem;
  text-align: center;
  color: rgba(226, 232, 255, 0.56);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

@media (max-width: 960px) {
  .hero,
  .stats-grid,
  .about-grid,
  .project-grid,
  .highlights-grid,
  .split-grid,
  .services-grid,
  .signature-grid,
  .process-strip,
  .hero-proof,
  .section-heading-inline {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: auto;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.9rem);
  }

  .section-heading h2,
  .contact-section h2,
  .section-note {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.6rem;
  }

  .site-header {
    position: static;
    padding: 1rem;
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 0.8rem 1rem;
  }

  .hero-copy,
  .hero-card,
  .content-section {
    border-radius: 24px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
