:root {
  --bg: #12100e;
  --bg-2: #171411;
  --card: #1d1916;
  --ink: #efe9df;
  --muted: #8d8377;
  --accent: #c98d4b;
  --line: rgba(239, 233, 223, 0.12);
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent);
  color: #12100e;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 150;
  pointer-events: none;
  background: var(--line);
}

.scroll-progress span {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent), rgba(201, 141, 75, 0.35));
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 3rem;
  mix-blend-mode: difference;
}

.wordmark {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.nav {
  display: flex;
  gap: 2.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

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

.btn-line {
  border: 1px solid rgba(239, 233, 223, 0.5);
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-line:hover {
  background: var(--ink);
  color: #12100e;
  border-color: var(--ink);
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  position: relative;
  background:
    linear-gradient(120deg, rgba(12, 10, 9, 0.85) 0%, rgba(12, 10, 9, 0.55) 55%, rgba(12, 10, 9, 0.35) 100%),
    url("img/hero.jpg") center / cover no-repeat;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.4rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(2.7rem, 11vw, 8.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  transform: translateY(112%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title .brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-title .line span.brand {
  font-weight: 800;
}

.hero-title .light {
  font-weight: 200;
  color: var(--muted);
}

.hero-title strong {
  font-weight: 800;
  color: var(--accent);
}

.hero-title .line:nth-child(2) span {
  transition-delay: 0.1s;
}

.hero-title .line:nth-child(3) span {
  transition-delay: 0.2s;
}

.hero.loaded .line span {
  transform: translateY(0);
}

.hero-scroll {
  position: absolute;
  bottom: 2.6rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 2.2s ease-in-out infinite;
}

@keyframes drip {
  0%,
  100% {
    transform: scaleY(0.2);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* Works */
.works {
  width: min(1400px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem 4rem;
  padding: 4rem 0 8rem;
}

.work {
  display: grid;
  gap: 1.2rem;
}

.work-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  position: relative;
}

.work-photo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(201, 141, 75, 0.3));
  transform: scaleX(var(--line-progress, 0));
  transform-origin: left;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.ph-bg {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-photo:hover .ph-bg {
  transform: scale(1.05);
}

/* About */.about {
  padding: 10rem 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.about-line {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.15;
  max-width: 24ch;
}

.about-line strong {
  font-weight: 800;
  color: var(--ink);
}

.about-line em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

/* Contact */
.contact {
  padding: 10rem 3rem 6rem;
}

.contact-mail {
  display: inline-block;
  font-family: var(--sans);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 200;
  color: var(--ink);
  transition: color 0.3s;
}

.contact-mail:hover {
  color: var(--accent);
}

.contact-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.contact-social {
  color: var(--accent);
  font-weight: 800;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.contact-social:hover {
  border-color: var(--accent);
}

.site-footer strong {
  font-weight: 800;
}

/* Eyebrow */
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 3rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal .work-photo {
  clip-path: inset(0 0 100% 0);
  transform: scale(0.96);
  transition: clip-path 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible .work-photo {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* Responsive */
@media (max-width: 860px) {
  .works {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .work-right {
    transform: none;
  }

  .ph-bg {
    height: 100%;
  }

  .site-header {
    padding: 1.1rem 1.5rem;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 0 1.5rem;
  }

  .hero-scroll {
    left: 1.5rem;
  }

  .about,
  .contact {
    padding: 6rem 1.5rem;
  }

  .site-footer {
    padding: 1.5rem 1.5rem;
  }
}

@media (max-width: 420px) {
  .header-inner,
  .site-header {
    gap: 0.8rem;
  }

  .btn-line {
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
  }

  .wordmark {
    font-size: 1.15rem;
  }

  .hero {
    padding: 0 1.25rem;
  }

  .hero-title .line span {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
    letter-spacing: -0.02em;
  }

  .work-photo {
    aspect-ratio: 4 / 3;
  }

  .about-line {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .contact-mail {
    font-size: clamp(1.5rem, 8vw, 2.6rem);
    word-break: break-word;
  }

  .contact-note {
    font-size: 0.82rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.3rem;
  }
}
