:root {
  color-scheme: dark;
  --ink: #061016;
  --ink-2: #0c1921;
  --paper: #f6fbff;
  --muted: #a8bac4;
  --cyan: #46d7dc;
  --coral: #ff7d64;
  --gold: #f1c75b;
  --green: #69d47f;
  --line: rgba(255, 255, 255, .16);
  --panel: rgba(8, 22, 31, .72);
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.particle-field,
.cursor-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.particle-field {
  z-index: 0;
  opacity: .52;
}

.cursor-aura {
  z-index: 1;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 40%), rgba(70, 215, 220, .18), transparent 32rem);
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(6, 16, 22, .68);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-photo {
  display: block;
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 0 0 3px rgba(70, 215, 220, .14),
    0 10px 26px rgba(0, 0, 0, .34);
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  padding: 12px 14px;
  color: rgba(246, 251, 255, .78);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-image,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 9, 13, .96) 0%, rgba(3, 9, 13, .76) 34%, rgba(3, 9, 13, .24) 68%, rgba(3, 9, 13, .52) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 34%, rgba(6, 16, 22, .24) 100%);
}

.hero-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 28%, transparent 88%);
  opacity: .34;
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 84px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.15rem, 5.2vw, 5.2rem);
  line-height: .96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(246, 251, 255, .78);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  line-height: 1.65;
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32), transparent);
  transition: transform .55s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .55);
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(110%);
}

.button.primary {
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: #071016;
}

.button.glass {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: 34px;
  height: 54px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .38);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--cyan);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.section {
  position: relative;
  z-index: 2;
  padding: 96px 0;
  background: var(--ink);
}

.intro-band {
  padding-top: 30px;
}

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

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  box-shadow: var(--shadow);
}

.stats-strip > div {
  min-height: 132px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stats-strip > div:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 950;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.projects-section {
  background:
    radial-gradient(circle at 22% 18%, rgba(70, 215, 220, .16), transparent 30rem),
    radial-gradient(circle at 82% 48%, rgba(255, 125, 100, .12), transparent 28rem),
    var(--ink);
}

.section-heading {
  max-width: 720px;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
}

.section-heading p:not(.eyebrow),
.signal-copy p,
.contact-box p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
  perspective: 1200px;
}

.project-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)),
    rgba(12, 25, 33, .72);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .2s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .18), transparent 18rem);
  opacity: 0;
  transition: opacity .2s ease;
}

.project-card:hover::after {
  opacity: 1;
}

.card-orbit {
  position: absolute;
  right: -22px;
  top: -22px;
  width: 126px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: rgba(246, 251, 255, .88);
  filter: drop-shadow(0 0 22px rgba(70, 215, 220, .35));
  animation: spin 8s linear infinite;
}

.card-orbit::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(70, 215, 220, .18), transparent 64%),
    conic-gradient(from 90deg, transparent, rgba(241, 199, 91, .42), transparent, rgba(255, 125, 100, .46), transparent);
  opacity: .82;
}

.card-orbit svg {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
}

.card-orbit path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-github path,
.brand-linkedin path,
.brand-youtube path {
  fill: currentColor;
  stroke: none;
}

.brand-github {
  color: #f6fbff;
}

.brand-linkedin {
  color: #5eb6ff;
}

.brand-youtube {
  color: #ff5a52;
}

.brand-instagram {
  color: #ff7dba;
}

.brand-blog,
.brand-collections {
  color: var(--gold);
}

.card-kicker {
  margin: 0 0 70px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.project-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.65rem;
}

.project-card p:not(.card-kicker) {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.65;
}

.project-card a {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 26px;
  color: #fff;
  font-weight: 900;
  text-decoration-color: rgba(70, 215, 220, .85);
  text-underline-offset: 6px;
}

.signal-section {
  background:
    linear-gradient(180deg, rgba(12, 25, 33, .2), rgba(12, 25, 33, .84)),
    var(--ink);
}

.signal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: 42px;
  align-items: center;
}

.signal-copy {
  max-width: 610px;
}

.code-window {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(2, 8, 12, .7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-dots {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.window-dots span {
  width: 11px;
  aspect-ratio: 1;
  background: var(--coral);
}

.window-dots span:nth-child(2) {
  background: var(--gold);
}

.window-dots span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  color: #dff9ff;
  font: 600 1rem/1.8 "Cascadia Code", Consolas, ui-monospace, monospace;
}

.contact-section {
  padding-top: 50px;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .18);
  background:
    linear-gradient(135deg, rgba(70, 215, 220, .12), transparent 42%),
    linear-gradient(135deg, rgba(255, 125, 100, .12), transparent 70%),
    rgba(255, 255, 255, .055);
  box-shadow: var(--shadow);
}

.contact-box h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 850;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(70, 215, 220, .55);
  background: rgba(70, 215, 220, .12);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px max(16px, calc((100vw - 1120px) / 2));
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--muted);
  background: #03090d;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes scrollPulse {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: .35;
  }
  50% {
    transform: translate(-50%, 18px);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    font-size: .82rem;
  }

  .hero {
    min-height: 96svh;
  }

  .hero-content {
    padding-top: 132px;
  }

  h1 {
    font-size: clamp(2.05rem, 9.4vw, 3.25rem);
  }

  .stats-strip,
  .project-grid,
  .signal-layout {
    grid-template-columns: 1fr;
  }

  .stats-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-strip > div:last-child {
    border-bottom: 0;
  }

  .project-card {
    min-height: 300px;
  }

  .contact-box,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-copy,
  .section-heading p:not(.eyebrow),
  .signal-copy p,
  .contact-box p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .project-card,
  .contact-box {
    padding: 22px;
  }

  .project-card a {
    left: 22px;
    right: 22px;
  }

  pre {
    font-size: .84rem;
  }
}

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

  .particle-field,
  .cursor-aura {
    display: none;
  }
}

