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

:root {
  --bg: #090909;
  --bg-soft: #111111;
  --panel: #141414;
  --text: #f2f2f2;
  --muted: #9d9d9d;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7d56ff;
  --accent-2: #5c40c9;
  --transition: 0.25s;
  --spark: 1.8s;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

main {
  min-height: 100vh;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(255,255,255,0.06), transparent 22%),
    linear-gradient(135deg, #080808 0%, #101010 45%, #090909 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  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: 52px 52px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
  opacity: 0.35;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
}

.hero__content {
  max-width: 560px;
  animation: fadeUp 1s ease both;
}

.hero__eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero__text {
  margin: 28px 0 0;
  max-width: 520px;
  color: #c0c0c0;
  font-size: 1rem;
  line-height: 1.75;
}

.hero__cta-wrap {
  display: inline-block;
  margin-top: 32px;
}

.hero__visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  animation: fadeIn 1.25s ease both;
}

.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.12em, 1vw, 0.28em);
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: 0.82;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.08em;
  user-select: none;
}

.letter {
  position: relative;
  display: inline-block;
  color: #f4f4f4;
  transform: translateY(0);
  animation: settle 0.9s cubic-bezier(.2,.8,.2,1) both;
}

.letter--s { animation-delay: 0.10s; }
.letter--p { animation-delay: 0.18s; }
.letter--a { animation-delay: 0.26s; }
.letter--z { animation-delay: 0.34s; }

.slice {
  display: block;
  position: relative;
}

.slice--top {
  clip-path: inset(0 0 48% 0);
  transform: translate3d(0, -14px, 0);
  opacity: 0;
  animation: splitTop 0.95s cubic-bezier(.2,.8,.2,1) forwards;
}

.slice--bottom {
  position: absolute;
  inset: 0;
  clip-path: inset(52% 0 0 0);
  transform: translate3d(0, 14px, 0);
  opacity: 0;
  animation: splitBottom 0.95s cubic-bezier(.2,.8,.2,1) forwards;
}

.letter--s .slice--top,
.letter--s .slice--bottom { animation-delay: 0.10s; }
.letter--p .slice--top,
.letter--p .slice--bottom { animation-delay: 0.18s; }
.letter--a .slice--top,
.letter--a .slice--bottom { animation-delay: 0.26s; }
.letter--z .slice--top,
.letter--z .slice--bottom { animation-delay: 0.34s; }

.wordmark-caption {
  position: absolute;
  bottom: 7%;
  right: 4%;
  color: rgba(255,255,255,0.42);
  font-size: 0.8rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

/* BUTTON — isolated version of your effect */

.sparkle-button {
  --cut: 0.1em;
  --active: 0;
  --bg:
    radial-gradient(
      40% 50% at center 100%,
      hsl(270 calc(var(--active) * 97%) 72% / var(--active)),
      transparent
    ),
    radial-gradient(
      80% 100% at center 120%,
      hsl(260 calc(var(--active) * 97%) 70% / var(--active)),
      transparent
    ),
    hsl(260 calc(var(--active) * 97%) calc((var(--active) * 44%) + 12%));
  background: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  padding: 0.95em 1.35em;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
  border-radius: 999px;
  position: relative;
  color: white;
  box-shadow:
    0 0 calc(var(--active) * 3em) calc(var(--active) * 1em) hsl(260 97% 61% / 0.18),
    0 0.05em 0 0 hsl(260 calc(var(--active) * 97%) calc((var(--active) * 50%) + 30%)) inset,
    0 -0.05em 0 0 hsl(260 calc(var(--active) * 97%) calc(var(--active) * 60%)) inset;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.sparkle-button:hover,
.sparkle-button:focus-visible {
  --active: 1;
  transform: translateY(-1px) scale(1.03);
}

.sparkle-button:active {
  transform: scale(0.99);
}

.sparkle-button::before {
  content: "";
  position: absolute;
  inset: -0.25em;
  z-index: -1;
  border: 0.15em solid hsl(260 97% 50% / 0.3);
  border-radius: 999px;
  opacity: var(--active, 0);
  transition: opacity var(--transition);
}

.spark {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  rotate: 0deg;
  overflow: hidden;
  mask: linear-gradient(white, transparent 50%);
  animation: flip calc(var(--spark) * 2) infinite steps(2, end);
}

.spark::before {
  content: "";
  position: absolute;
  width: 200%;
  aspect-ratio: 1;
  top: 0%;
  left: 50%;
  translate: -50% -15%;
  transform: rotate(-90deg);
  opacity: calc((var(--active)) + 0.15);
  background: conic-gradient(
    from 0deg,
    transparent 0 340deg,
    white 360deg
  );
  transition: opacity var(--transition);
  animation: rotate var(--spark) linear infinite both;
}

.spark::after {
  content: "";
  position: absolute;
  inset: var(--cut);
  border-radius: 999px;
}

.backdrop {
  position: absolute;
  inset: var(--cut);
  background: var(--bg);
  border-radius: 999px;
  transition: background var(--transition);
}

.text {
  position: relative;
  z-index: 2;
  translate: 1% -4%;
  letter-spacing: 0.01ch;
  background: linear-gradient(
    90deg,
    hsl(0 0% calc((var(--active) * 100%) + 65%)),
    hsl(0 0% calc((var(--active) * 100%) + 26%))
  );
  -webkit-background-clip: text;
  color: transparent;
  transition: background var(--transition);
}

.sparkle-button svg {
  overflow: visible !important;
}

.sparkle {
  position: relative;
  z-index: 2;
  width: 1.1em;
  height: 1.1em;
  translate: -8% -2%;
}

.sparkle path {
  color: hsl(0 0% calc((var(--active, 0) * 70%) + var(--base)));
  transform-box: fill-box;
  transform-origin: center;
  fill: currentColor;
  stroke: currentColor;
  animation-delay: calc((var(--transition) * 1.5) + (var(--delay) * 1s));
  animation-duration: 0.6s;
  transition: color var(--transition);
}

.sparkle-button:is(:hover, :focus-visible) .sparkle path {
  animation-name: bounce;
}

.sparkle path:nth-of-type(1) {
  --scale: 0.5;
  --delay: 0.1;
  --base: 40%;
}

.sparkle path:nth-of-type(2) {
  --scale: 1.5;
  --delay: 0.2;
  --base: 20%;
}

.sparkle path:nth-of-type(3) {
  --scale: 2.5;
  --delay: 0.35;
  --base: 30%;
}

.particle-pen {
  position: absolute;
  width: 200%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  -webkit-mask: radial-gradient(white, transparent 65%);
  z-index: -1;
  opacity: var(--active, 0);
  transition: opacity var(--transition);
}

.particle {
  fill: white;
  width: calc(var(--size, 0.25) * 1rem);
  aspect-ratio: 1;
  position: absolute;
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  opacity: var(--alpha, 1);
  animation: float-out calc(var(--duration, 1) * 1s) calc(var(--delay) * -1s) infinite linear;
  transform-origin: var(--origin-x, 1000%) var(--origin-y, 1000%);
  z-index: -1;
  animation-play-state: var(--play-state, paused);
}

.sparkle-button:hover .particle,
.sparkle-button:focus-visible .particle {
  --play-state: running;
}

.particle path {
  fill: hsl(0 0% 90%);
  stroke: none;
}

.particle:nth-of-type(even) {
  animation-direction: reverse;
}

/* PLACEHOLDERS */

.placeholder {
  padding: 96px 24px;
  border-top: 1px solid var(--line);
  background: #0d0d0d;
}

.placeholder__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.placeholder h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.placeholder p {
  margin: 0;
  color: var(--muted);
}

/* ANIMATIONS */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes settle {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes splitTop {
  0% {
    opacity: 0;
    transform: translate3d(0, -28px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes splitBottom {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 8px, 0);
  }
}

@keyframes bounce {
  35%, 65% {
    scale: var(--scale);
  }
}

@keyframes flip {
  to {
    rotate: 360deg;
  }
}

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

@keyframes float-out {
  to {
    rotate: 360deg;
  }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 40px 24px 56px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__visual {
    min-height: 320px;
  }

  .wordmark {
    font-size: clamp(4.5rem, 18vw, 9rem);
  }

  .wordmark-caption {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero__text {
    font-size: 0.95rem;
  }

  .wordmark {
    gap: 0.08em;
    font-size: clamp(4rem, 22vw, 6.2rem);
  }

  .hero__visual {
    min-height: 240px;
  }

  .sparkle-button {
    font-size: 0.92rem;
  }
}

/* PROJECTS */

.projects {
    padding: 110px 24px;
    border-top: 1px solid var(--line);
    background:
      linear-gradient(180deg, #0b0b0b 0%, #101010 100%);
  }
  
  .projects__inner {
    max-width: 1320px;
    margin: 0 auto;
  }
  
  .projects__heading {
    max-width: 760px;
    margin-bottom: 42px;
  }
  
  .projects__eyebrow {
    margin: 0 0 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
  }
  
  .projects__title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
  }
  
  .projects__text {
    margin: 18px 0 0;
    color: #b7b7b7;
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .projects-slider {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
  }
  
  .projects-track-wrap {
    overflow: hidden;
  }
  
  .projects-track {
    display: flex;
    gap: 22px;
    transition: transform 0.45s ease;
    will-change: transform;
  }
  
  .project-card {
    flex: 0 0 calc(33.333% - 14.67px);
    min-width: calc(33.333% - 14.67px);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;
    overflow: hidden;
    backdrop-filter: blur(8px);
  }
  
  .project-card__image {
    aspect-ratio: 10 / 16;
    background: #181818;
    overflow: hidden;
  }
  
  .project-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
  }
  
  .project-card:hover .project-card__image img {
    transform: scale(1.04);
  }
  
  .project-card__body {
    padding: 22px 22px 24px;
  }
  
  .project-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #d7d7d7;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
  
  .project-card h3 {
    margin: 16px 0 10px;
    font-size: 1.35rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }
  
  .project-card p {
    margin: 0;
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  .projects-nav {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: #f2f2f2;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }
  
  .projects-nav:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
  }
  
  .projects-nav span {
    font-size: 1.8rem;
    line-height: 1;
    transform: translateY(-1px);
  }
  
  @media (max-width: 1100px) {
    .project-card {
      flex: 0 0 calc(50% - 11px);
      min-width: calc(50% - 11px);
    }
  }
  
  @media (max-width: 760px) {
    .projects {
      padding: 84px 18px;
    }
  
    .projects-slider {
      grid-template-columns: 1fr;
      gap: 16px;
    }
  
    .projects-nav {
      display: none;
    }
  
    .project-card {
      flex: 0 0 82%;
      min-width: 82%;
    }
  
    .projects-track-wrap {
      overflow-x: auto;
      scrollbar-width: none;
    }
  
    .projects-track-wrap::-webkit-scrollbar {
      display: none;
    }
  
    .projects-track {
      padding-bottom: 4px;
    }
  }

  /* CONTACT */

.contact {
    padding: 110px 24px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #101010 0%, #0a0a0a 100%);
  }
  
  .contact__inner {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .contact__intro {
    max-width: 720px;
    margin-bottom: 34px;
  }
  
  .contact__eyebrow {
    margin: 0 0 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
  }
  
  .contact__title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
  }
  
  .contact__text {
    margin: 18px 0 0;
    color: #b8b8b8;
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .contact-form {
    margin-top: 28px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
  }
  
  .contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  
  .contact-form__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
  }
  
  .contact-form__field label {
    margin-bottom: 10px;
    color: #d9d9d9;
    font-size: 0.92rem;
  }
  
  .contact-form__field input,
  .contact-form__field textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #f2f2f2;
    border-radius: 16px;
    padding: 16px 18px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  
  .contact-form__field input:focus,
  .contact-form__field textarea:focus {
    border-color: rgba(125, 86, 255, 0.7);
    background: rgba(255,255,255,0.05);
  }
  
  .contact-form__field textarea {
    resize: vertical;
    min-height: 170px;
  }
  
  .contact-form__submit {
    border: 0;
    border-radius: 999px;
    padding: 15px 24px;
    background: #f2f2f2;
    color: #0b0b0b;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  
  .contact-form__submit:hover {
    transform: translateY(-1px);
    opacity: 0.92;
  }
  
  .contact-form__honeypot {
    display: none;
  }
  
  @media (max-width: 760px) {
    .contact {
      padding: 84px 18px;
    }
  
    .contact-form {
      padding: 22px;
      border-radius: 22px;
    }
  
    .contact-form__grid {
      grid-template-columns: 1fr;
      gap: 0;
    }
  }

  .contact-alert {
    position: sticky;
    top: 24px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      visibility 0.35s ease;
  }
  
  .contact-alert strong {
    font-size: 0.98rem;
    line-height: 1.2;
  }
  
  .contact-alert span {
    color: #c7c7c7;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .contact-alert.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .contact-alert.is-success {
    background: rgba(110, 255, 170, 0.08);
    border-color: rgba(110, 255, 170, 0.18);
  }
  
  .contact-alert.is-error {
    background: rgba(255, 120, 120, 0.08);
    border-color: rgba(255, 120, 120, 0.18);
  }

  /* FOOTER */

.footer {
    border-top: 1px solid var(--line);
    background: #080808;
    padding: 28px 24px 34px;
  }
  
  .footer__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    align-items: end;
  }
  
  .footer__logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f1f1f1;
  }
  
  .footer__text {
    margin: 12px 0 0;
    max-width: 360px;
    color: #9f9f9f;
    font-size: 0.92rem;
    line-height: 1.7;
  }
  
  .footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    justify-content: center;
  }
  
  .footer__nav a,
  .footer__contact a {
    color: #d5d5d5;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  
  .footer__nav a:hover,
  .footer__contact a:hover {
    opacity: 0.75;
  }
  
  .footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    color: #8f8f8f;
    font-size: 0.92rem;
  }
  
  @media (max-width: 900px) {
    .footer__inner {
      grid-template-columns: 1fr;
      align-items: start;
    }
  
    .footer__nav {
      justify-content: flex-start;
    }
  
    .footer__contact {
      align-items: flex-start;
    }
  }