:root {
  --bg: #070707;
  --panel: #111111;
  --ink: #f4f0e8;
  --muted: #b2aca2;
  --soft: #d6d0c4;
  --line: rgba(244, 240, 232, 0.16);
  --acid: #d9ff43;
  --rust: #c9633b;
  --blue: #5c8dff;
  --max: 1480px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 28%), rgba(217, 255, 67, 0.055), transparent 26rem),
    linear-gradient(180deg, #090909 0%, var(--bg) 42%);
  color: var(--ink);
  font-family: "Clash Grotesk", "Space Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  cursor: none;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #161616;
}

::selection {
  background: var(--acid);
  color: #080808;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  z-index: 50;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px);
  background-size: 6px 6px, 11px 11px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 240, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 232, 0.035) 1px, transparent 1px);
  background-size: 100% 11.5vh, 12.5vw 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(217, 255, 67, 0.08), transparent 22rem),
    var(--bg);
  color: var(--ink);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: min(72vw, 520px);
  display: grid;
  gap: 18px;
}

.loader-text {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loader-line {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(244, 240, 232, 0.18);
}

.loader-line::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 46%;
  background: var(--acid);
  animation: loaderSweep 1300ms cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes loaderSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(244, 240, 232, 0.55);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0.22);
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: difference;
  transition: width 220ms ease, height 220ms ease, border-color 220ms ease, background 220ms ease, transform 80ms linear;
}

.cursor span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cursor.is-view {
  width: 92px;
  height: 92px;
  background: rgba(244, 240, 232, 0.14);
  border-color: rgba(244, 240, 232, 0.85);
}

.cursor.is-view span {
  opacity: 1;
}

.cursor.is-link {
  width: 34px;
  height: 34px;
  background: var(--acid);
  border-color: var(--acid);
}

.cursor.is-pressed {
  width: 26px;
  height: 26px;
  background: var(--ink);
  border-color: var(--ink);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 3vw, 48px);
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7, 7, 7, 0.9), rgba(7, 7, 7, 0.24), rgba(7, 7, 7, 0));
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.eye {
  width: 46px;
  height: 25px;
  border: 1px solid rgba(244, 240, 232, 0.86);
  border-radius: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 240, 232, 0.1), transparent 34%),
    rgba(7, 7, 7, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(244, 240, 232, 0.08),
    0 0 18px rgba(244, 240, 232, 0.06);
}

.eye::before,
.eye::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1px;
  background: rgba(244, 240, 232, 0.28);
  pointer-events: none;
}

.eye::before {
  top: 5px;
  transform: rotate(-4deg);
}

.eye::after {
  bottom: 5px;
  transform: rotate(4deg);
}

.pupil {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, #ffffff 0 1.5px, transparent 2px),
    radial-gradient(circle at 50% 50%, #050505 0 32%, var(--acid) 34% 48%, var(--ink) 50% 100%);
  box-shadow: 0 0 0 1px rgba(244, 240, 232, 0.38), 0 0 16px rgba(217, 255, 67, 0.16);
  transform: translate3d(0, 0, 0);
  transition: transform 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero,
.work-section,
.about-section,
.experience-section,
.contact-section,
.project-hero,
.project-gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(18px, 3vw, 48px);
  padding-right: clamp(18px, 3vw, 48px);
}

.hero {
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(44px, 8vw, 110px);
}

.kicker,
.section-head,
.project-meta-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero h1 {
  max-width: 980px;
  margin: 18px 0 0;
  font-size: clamp(3.1rem, 8.2vw, 8.8rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 760;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(28px, 5vw, 70px);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: project;
}

.project-card {
  min-width: 0;
  position: relative;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  counter-increment: project;
}

.project-card::before {
  content: "0" counter(project);
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 232, 0.36);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(7, 7, 7, 0.5);
  backdrop-filter: blur(10px);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  transform: scale(0.92);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 420ms ease, color 420ms ease;
}

.project-card:hover::before {
  color: var(--acid);
  border-color: rgba(217, 255, 67, 0.7);
  transform: scale(1);
}

.project-card:nth-child(3n) {
  grid-column: auto;
}

.project-card:nth-child(3n + 1) {
  grid-column: auto;
}

.project-card figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(217, 255, 67, 0.16), transparent 32%),
    linear-gradient(315deg, rgba(201, 99, 59, 0.22), transparent 38%),
    #151515;
  transition: border-color 420ms ease, background 420ms ease;
}

.project-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(244, 240, 232, 0.22) 48%, transparent 54% 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 38%);
  transform: translateX(-42%);
  transition: opacity 520ms ease, transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover figure::after {
  opacity: 1;
  transform: translateX(42%);
}

.project-card:nth-child(even) figure {
  aspect-ratio: auto;
}

.project-card img {
  transition: filter 640ms ease, opacity 640ms ease, transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover img {
  transform: translateY(-2px);
  filter: saturate(1.06) contrast(1.03);
}

.project-card figcaption {
  display: none;
}

.project-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  margin-top: 12px;
  align-items: start;
}

.project-info h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 3.2rem);
  line-height: 1.04;
  font-weight: 720;
  color: var(--ink);
}

.project-info p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  line-height: 1.18;
}

.project-info p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  text-align: right;
  font-size: clamp(0.8rem, 1.1vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-section,
.experience-section,
.contact-section {
  padding-top: clamp(86px, 12vw, 170px);
}

.about-copy {
  max-width: 1120px;
  font-size: clamp(2.4rem, 6vw, 7.2rem);
  line-height: 1;
  font-weight: 730;
  perspective: 900px;
}

.about-copy p {
  margin: 0 0 18px;
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), color 520ms ease;
}

.about-copy p:hover {
  color: var(--acid);
  transform: translateX(18px) rotateY(-7deg);
}

.experience-list {
  border-bottom: 1px solid var(--line);
}

.experience-list article {
  display: grid;
  grid-template-columns: 80px 1.5fr 1fr 0.75fr;
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.experience-list h3,
.experience-list p {
  margin: 0;
}

.experience-list small {
  color: rgba(244, 240, 232, 0.62);
  font-size: 0.76em;
}

.experience-list h3 {
  font-size: clamp(1.6rem, 3vw, 3.4rem);
}

.experience-list span,
.experience-list p {
  color: var(--muted);
  line-height: 1.35;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(32px, 7vw, 110px);
  padding-bottom: clamp(44px, 8vw, 100px);
}

.contact-section h2 {
  margin: 14px 0 0;
  font-size: clamp(2.7rem, 6.5vw, 8.2rem);
  line-height: 0.9;
}

address {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  font-style: normal;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1.18;
}

address a,
address span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.project-body {
  background:
    linear-gradient(180deg, rgba(92, 141, 255, 0.08), transparent 34rem),
    var(--bg);
}

.back-link {
  color: var(--muted);
}

.project-hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 92px);
  align-items: end;
  padding-top: 130px;
  padding-bottom: clamp(44px, 7vw, 92px);
}

.project-title h1 {
  margin: 16px 0 0;
  font-size: clamp(4rem, 10vw, 11.4rem);
  line-height: 0.9;
}

.project-summary {
  display: grid;
  gap: 24px;
}

.project-summary p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1.45;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.project-facts div {
  display: grid;
  gap: 6px;
}

.project-facts span:first-child {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-gallery {
  display: grid;
  gap: 12px;
  padding-bottom: clamp(60px, 8vw, 120px);
}

.gallery-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 520ms ease;
  background:
    linear-gradient(135deg, rgba(217, 255, 67, 0.14), transparent 30%),
    linear-gradient(315deg, rgba(92, 141, 255, 0.2), transparent 36%),
    #141414;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.gallery-frame:first-child {
  aspect-ratio: auto;
}

.gallery-frame img {
  transition: filter 720ms ease, opacity 720ms ease;
}

.gallery-frame:hover {
  transform: translateY(-3px);
}

.gallery-frame:hover img {
  filter: saturate(1.04) contrast(1.02);
}

.image-placeholder {
  position: static;
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: clamp(18px, 3vw, 38px);
  color: rgba(244, 240, 232, 0.72);
  background:
    linear-gradient(120deg, rgba(244, 240, 232, 0.1), transparent 24%),
    repeating-linear-gradient(90deg, rgba(244, 240, 232, 0.07) 0 1px, transparent 1px 9vw),
    #151515;
}

.image-placeholder strong {
  max-width: 860px;
  font-size: clamp(2rem, 6vw, 8rem);
  line-height: 0.84;
}

.image-placeholder span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-project {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 48px) clamp(40px, 7vw, 92px);
}

.next-project a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand span:last-child {
    max-width: 150px;
    line-height: 1.1;
  }

  .nav {
    gap: 12px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 86vh;
  }

  .hero h1,
  .project-title h1 {
    font-size: clamp(3.65rem, 18vw, 6.8rem);
    line-height: 0.94;
  }

  .hero-meta,
  .contact-section,
  .project-hero {
    grid-template-columns: 1fr;
    display: grid;
  }

  .project-card,
  .project-card:nth-child(3n),
  .project-card:nth-child(3n + 1) {
    grid-column: auto;
  }

  .project-card figure,
  .project-card:nth-child(even) figure {
    aspect-ratio: auto;
  }

  .project-info {
    grid-template-columns: 1fr;
  }

  .project-info p:last-child {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }

  .experience-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-copy,
  .contact-section h2 {
    font-size: clamp(2.5rem, 12vw, 4.8rem);
    line-height: 1.02;
  }

  .project-hero {
    min-height: auto;
  }

  .gallery-frame,
  .gallery-frame:first-child {
    aspect-ratio: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
