:root {
  --bg: #040504;
  --bg-soft: #0a0d09;
  --surface: rgba(14, 18, 14, 0.72);
  --text: #f4efe6;
  --muted: rgba(244, 239, 230, 0.7);
  --line: rgba(244, 239, 230, 0.14);
  --accent: #bfff57;
  --accent-strong: #39ff14;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(57, 255, 20, 0.14), transparent 28%),
    radial-gradient(circle at bottom left, rgba(191, 255, 87, 0.1), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "Sora", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

@media (pointer: fine) {
  body,
  a,
  button,
  [role="button"] {
    cursor: none;
  }
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(191, 255, 87, 0.85);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s ease,
    height 0.2s ease,
    background-color 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
  mix-blend-mode: difference;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-active {
  width: 58px;
  height: 58px;
  background-color: rgba(191, 255, 87, 0.16);
  border-color: rgba(191, 255, 87, 0.35);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(4, 5, 4, 0.82), rgba(4, 5, 4, 0));
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(191, 255, 87, 0.38);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  box-shadow: inset 0 0 0 1px rgba(191, 255, 87, 0.08);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
}

main {
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.hero {
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: clamp(6rem, 9vw, 8rem);
  padding-bottom: 2rem;
  overflow: clip;
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.65);
  transform: scale(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 5, 4, 0.92) 0%, rgba(4, 5, 4, 0.68) 45%, rgba(4, 5, 4, 0.52) 100%),
    linear-gradient(180deg, rgba(4, 5, 4, 0.1) 0%, rgba(4, 5, 4, 0.3) 60%, rgba(4, 5, 4, 0.9) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.12;
  pointer-events: none;
}

.hero-copy,
.hero-rings,
.hero-scroll {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(44rem, 100%);
}

.eyebrow,
.section-kicker,
.skills-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title,
.hero-subtitle,
.section-heading h2,
.contact-panel h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 0.55rem;
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 0.88;
}

.hero-subtitle {
  margin-top: 0.35rem;
  font-size: clamp(1.55rem, 4vw, 3rem);
  color: rgba(244, 239, 230, 0.88);
}

.hero-text {
  max-width: 34rem;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  padding: 0.92rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #071004;
}

.button-secondary {
  border-color: rgba(244, 239, 230, 0.22);
  background: rgba(6, 8, 6, 0.28);
  color: var(--text);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-strip span {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 999px;
  background: rgba(6, 8, 6, 0.28);
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.8rem;
}

.hero-rings {
  position: absolute;
  right: clamp(1rem, 5vw, 3rem);
  bottom: clamp(8rem, 18vh, 12rem);
  width: min(32vw, 25rem);
  color: rgba(244, 239, 230, 0.78);
}

.hero-rings svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--accent-strong);
  stroke-linecap: round;
  stroke-width: 5;
  filter:
    drop-shadow(0 0 18px rgba(57, 255, 20, 0.28))
    drop-shadow(0 0 46px rgba(57, 255, 20, 0.16));
}

.hero-rings p {
  width: max-content;
  margin-top: 0.8rem;
  margin-left: auto;
  color: rgba(244, 239, 230, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  right: 1rem;
  bottom: 1.3rem;
  color: rgba(244, 239, 230, 0.46);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.section-heading {
  max-width: 60rem;
}

.section-heading h2 {
  margin-top: 0.55rem;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.92;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.about-lead {
  max-width: 34rem;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  line-height: 1.55;
}

.about-copy {
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.9;
}

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

.process-item {
  padding-top: 1.35rem;
  border-top: 1px solid rgba(191, 255, 87, 0.28);
}

.process-number {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: rgba(191, 255, 87, 0.82);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
}

.process-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.process-item p {
  margin-top: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}

.showreel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    rgba(8, 10, 8, 0.76);
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: none;
  border-radius: 1.4rem;
  background: #090909;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 239, 230, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

.portfolio-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
  filter: saturate(0.94) contrast(1.05);
}

.portfolio-card:hover video,
.portfolio-card:focus-visible video {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.12);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(4, 5, 4, 0.08) 0%, rgba(4, 5, 4, 0.18) 36%, rgba(4, 5, 4, 0.84) 100%);
}

.play-chip {
  width: fit-content;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(191, 255, 87, 0.25);
  border-radius: 999px;
  background: rgba(10, 16, 8, 0.5);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.portfolio-copy strong {
  font-size: 1.12rem;
  font-weight: 600;
}

.portfolio-copy small {
  color: rgba(244, 239, 230, 0.72);
  font-size: 0.82rem;
}

.skills-marquee {
  margin-top: 2rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skills-track {
  display: flex;
  width: max-content;
  gap: 1.4rem;
  padding: 1rem 0;
  animation: marquee 24s linear infinite;
}

.skills-track span {
  color: rgba(244, 239, 230, 0.78);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skills-track span::after {
  content: " /";
  margin-left: 1.4rem;
  color: rgba(191, 255, 87, 0.56);
}

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

.skills-column {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.skills-column p:last-child {
  margin-top: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
}

.contact {
  padding-bottom: 5rem;
}

.contact-panel {
  max-width: 68rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(191, 255, 87, 0.18);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(191, 255, 87, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(12, 16, 11, 0.92), rgba(7, 10, 7, 0.92));
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin-top: 0.7rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
}

.contact-panel p:last-of-type {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.85;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 5, 4, 0.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 999px;
  background: rgba(9, 12, 9, 0.82);
  color: var(--text);
  cursor: pointer;
}

.modal-content {
  width: min(62rem, 100%);
}

.modal-content video {
  width: 100%;
  max-height: 76vh;
  border-radius: 1.2rem;
  background: #000;
  box-shadow: var(--shadow);
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  color: rgba(244, 239, 230, 0.78);
}

.modal-meta strong {
  font-size: 1rem;
  font-weight: 600;
}

.modal-meta span {
  color: rgba(244, 239, 230, 0.6);
  font-size: 0.9rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero-rings {
    right: 1rem;
    bottom: 7rem;
    width: min(42vw, 18rem);
  }

  .about-grid,
  .process-grid,
  .portfolio-grid,
  .skills-columns {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .skills-columns,
  .portfolio-grid {
    gap: 1rem;
  }

  .contact-panel {
    border-radius: 1.5rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.5rem;
  }

  .hero {
    align-items: center;
  }

  .hero-copy {
    margin-top: 5rem;
  }

  .hero-rings {
    top: 7.2rem;
    bottom: auto;
    width: min(56vw, 14rem);
  }

  .hero-scroll {
    display: none;
  }

  .portfolio-card {
    aspect-ratio: 16 / 11;
  }

  .modal-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .hero {
    min-height: auto;
    padding-bottom: 5rem;
  }

  .hero-copy {
    margin-top: 8rem;
  }

  .hero-text,
  .about-copy,
  .contact-panel p:last-of-type {
    line-height: 1.7;
  }

  .button {
    width: 100%;
  }
}

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

  .skills-track {
    animation: none;
  }

  .cursor,
  .portfolio-card video,
  .button {
    transition: none;
  }
}
