:root {
  --ink: #0b0f14;
  --navy: #132238;
  --olive: #556b2f;
  --tungsten: #d1a36d;
  --soft: #d6d6d6;
  --bone: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--ink) 0%, #0f151d 50%, var(--ink) 100%);
  color: var(--bone);
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}

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

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  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;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #05070a;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.55), rgba(5, 7, 10, 0.12) 42%, transparent 72%);
}

.top-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.74);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  transition: color 320ms ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100vh - 76px);
  flex-direction: column;
  justify-content: flex-end;
  max-width: 72rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 6rem;
}

.kicker {
  margin: 0;
  color: rgba(209, 163, 109, 0.82);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.hero-role,
.experience-number {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-top: 2rem;
  font-size: clamp(5.5rem, 19vw, 15rem);
  line-height: 0.78;
}

.hero-meta {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 2rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 245, 245, 0.18);
}

.hero-role {
  color: var(--bone);
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.96;
}

.hero-copy {
  max-width: 35rem;
  margin: 0;
  color: rgba(214, 214, 214, 0.78);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-copy p {
  margin: 0 0 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1.6rem;
}

.hero-actions a {
  border-bottom: 1px solid rgba(209, 163, 109, 0.45);
  color: rgba(245, 245, 245, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: color 260ms ease, border-color 260ms ease;
}

.hero-actions a:hover {
  border-color: var(--tungsten);
  color: var(--tungsten);
}

.scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  z-index: 2;
  width: 1px;
  height: 3rem;
  overflow: hidden;
  background: rgba(245, 245, 245, 0.2);
}

.scroll-indicator::after {
  display: block;
  width: 1px;
  height: 1.4rem;
  content: "";
  background: var(--tungsten);
  animation: scrollLine 1.8s ease-in-out infinite;
}

.section {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 8rem clamp(1.25rem, 4vw, 5rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3.5rem;
}

.about h2 {
  color: var(--bone);
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  line-height: 1.02;
}

.about-copy {
  padding-left: 2rem;
  border-left: 1px solid rgba(245, 245, 245, 0.12);
  color: rgba(214, 214, 214, 0.74);
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-copy p {
  margin: 0 0 2rem;
}

.experience .kicker,
.skills .kicker {
  margin-bottom: 3.5rem;
}

.experience-block {
  display: grid;
  grid-template-columns: 0.24fr 0.9fr 1.05fr;
  gap: 2rem;
  padding-top: 2.5rem;
  margin-bottom: 6rem;
  border-top: 1px solid rgba(245, 245, 245, 0.14);
}

.experience-number {
  color: rgba(209, 163, 109, 0.8);
  font-size: 4rem;
}

.experience-heading h3 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 0.98;
}

.date,
.tags {
  margin: 1.4rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.date {
  color: rgba(214, 214, 214, 0.48);
}

.tags {
  color: var(--olive);
}

.experience-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(214, 214, 214, 0.72);
  font-size: 1rem;
  line-height: 1.72;
}

.experience-block li + li {
  margin-top: 0.9rem;
}

.works-intro {
  max-width: 52rem;
  margin-bottom: 4rem;
}

.works-intro h2 {
  margin-top: 1.6rem;
  color: var(--bone);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.92;
}

.works-intro p:not(.kicker) {
  max-width: 40rem;
  margin-top: 2rem;
  color: rgba(214, 214, 214, 0.68);
  font-size: 1rem;
  line-height: 1.8;
}

.project-list {
  display: grid;
  gap: 7rem;
}

.project-card {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(245, 245, 245, 0.12);
}

.project-copy {
  position: sticky;
  top: 2rem;
}

.project-index {
  margin: 0 0 1.5rem;
  color: rgba(209, 163, 109, 0.76);
  font-family: "Cormorant Garamond", serif;
  font-size: 3.2rem;
  line-height: 1;
}

.project-copy h3 {
  color: var(--bone);
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  line-height: 0.96;
}

.project-copy p:not(.project-index) {
  max-width: 28rem;
  color: rgba(214, 214, 214, 0.66);
  font-size: 0.98rem;
  line-height: 1.8;
}

.project-images {
  display: grid;
  gap: 1rem;
}

.project-images.two {
  grid-template-columns: 1fr 0.82fr;
  align-items: end;
}

.project-images.two.offset {
  grid-template-columns: 0.82fr 1fr;
  align-items: start;
}

.project-images.single {
  max-width: 44rem;
  margin-left: auto;
}

.project-images figure,
.instagram-strip a {
  margin: 0;
  overflow: hidden;
  background: #05070a;
}

.photo-link {
  position: relative;
  display: block;
  height: 100%;
  color: inherit;
  cursor: pointer;
}

.photo-link span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding-bottom: 0.24rem;
  border-bottom: 1px solid rgba(209, 163, 109, 0.55);
  color: rgba(245, 245, 245, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(6px);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    color 260ms ease;
}

.photo-link:hover span,
.photo-link:focus-visible span {
  color: var(--tungsten);
  opacity: 1;
  transform: translateY(0);
}

.project-images img,
.instagram-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(6px);
  transform: scale(1.008);
  transition:
    transform 900ms ease,
    filter 700ms ease;
}

.project-images img.loaded,
.instagram-strip img.loaded {
  filter: blur(0);
}

.project-images figure:hover img.loaded,
.instagram-strip a:hover img.loaded {
  transform: scale(1.018);
  filter: blur(0);
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  color: rgba(214, 214, 214, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(245, 245, 245, 0.14);
}

.skill-grid h3 {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
}

.skill-grid p {
  margin: 0 0 1rem;
  color: rgba(214, 214, 214, 0.64);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.instagram {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.instagram h2 {
  max-width: 44rem;
  margin: 1.6rem 0 2rem;
  font-size: clamp(3rem, 6.8vw, 7rem);
  line-height: 0.98;
}

.instagram a {
  color: rgba(209, 163, 109, 0.86);
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.instagram-strip {
  display: grid;
  grid-template-columns: 0.75fr 1fr 0.75fr;
  gap: 1rem;
  align-items: end;
}

.instagram-strip a {
  aspect-ratio: 4 / 5;
}

.instagram-strip a:nth-child(2) {
  aspect-ratio: 4 / 3;
}

.contact {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem;
  text-align: center;
}

.contact-inner {
  max-width: 64rem;
}

.contact h2 {
  margin-top: 2rem;
  color: var(--bone);
  font-size: clamp(3.4rem, 7vw, 7.8rem);
  line-height: 1.05;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  color: rgba(214, 214, 214, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.contact-links a {
  transition: color 320ms ease;
}

.contact-links a:hover {
  color: var(--tungsten);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 680ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(220%);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    min-height: calc(100vh - 74px);
    padding-bottom: 5.3rem;
  }

  .hero-meta,
  .about-grid,
  .experience-block,
  .skill-grid,
  .project-card,
  .instagram {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 1.7rem;
  }

  .section {
    padding: 5.5rem 1.15rem;
  }

  .about-copy {
    padding-left: 1.25rem;
  }

  .experience-block {
    gap: 1.3rem;
    margin-bottom: 4.5rem;
  }

  .project-list {
    gap: 5rem;
  }

  .project-copy {
    position: static;
  }

  .project-images.two,
  .project-images.two.offset,
  .instagram-strip {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
    gap: 1.4rem;
  }
}

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