:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #141414;
  --muted: #473c37;
  --line: rgba(20, 20, 20, 0.28);
  --shadow: 0 30px 70px rgba(58, 44, 35, 0.12);
  --font-body: "Urbanist", sans-serif;
  --font-quote: "Plus Jakarta Sans", "Manrope", sans-serif;
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --gutter: clamp(12px, 1vw, 18px);
  --content: min(1880px, calc(100vw - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  z-index: -1;
}

.section-gap {
  margin-top: clamp(72px, 8vw, 132px);
}

.scroll-panel {
  position: relative;
}

.scroll-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0), rgba(20, 20, 20, 0.2), rgba(20, 20, 20, 0));
  opacity: 0;
  transform: scaleX(0.84);
  transform-origin: center;
  transition:
    opacity 700ms ease,
    transform 1000ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-panel.is-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.section-label {
  margin: 0 0 22px;
  font-size: clamp(1.35rem, 1.6vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero,
.hero-image,
.manifest,
.contact,
.gallery-group {
  width: var(--content);
  margin-inline: auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 6vh 0 7vh;
}

.hero__spotlight {
  position: absolute;
  inset: 9% 8% auto;
  height: 44vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.3) 62%, transparent 100%);
  filter: blur(18px);
  z-index: 0;
}

.hero__logo {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  position: relative;
  z-index: 1;
  transform: translateY(-20px);
}

.logo-mark {
  position: relative;
  width: clamp(92px, 11vw, 150px);
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.logo-mark__main,
.logo-mark__tail {
  position: absolute;
  background: #050505;
}

.logo-mark__main {
  inset: 0;
}

.logo-mark__tail {
  width: 78%;
  height: 28%;
  left: 22%;
  bottom: -12%;
}

.logo-copy h1,
.logo-copy p {
  margin: 0;
  line-height: 0.92;
  font-weight: 500;
}

.logo-copy h1 {
  font-size: clamp(2.7rem, 7vw, 7.3rem);
  letter-spacing: -0.04em;
  font-weight: 600;
}

.logo-copy p {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.hero__scroll {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 72px;
  color: transparent;
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 50px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(46, 37, 33, 0), rgba(46, 37, 33, 0.75));
  animation: drift 1.8s ease-in-out infinite;
}

.side-nav {
  position: fixed;
  left: 14px;
  top: 72%;
  transform: translateY(-50%);
  display: grid;
  gap: 14px;
  z-index: 10;
}

.side-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 238px;
  min-height: 60px;
  padding: 0 26px;
  border: 3px solid rgba(53, 41, 34, 0.88);
  border-radius: 999px;
  background: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.side-nav__link:hover,
.side-nav__link.is-active {
  transform: translateX(6px);
  background: #2d241f;
  color: #fff8f2;
  box-shadow: 0 12px 24px rgba(45, 36, 31, 0.14);
}

.hero-image__frame {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.hero-image img {
  min-height: 64vh;
  object-fit: cover;
}

.manifest {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 0.7fr) minmax(220px, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 54px);
}

.manifest__title {
  display: grid;
  gap: 2px;
  padding-left: clamp(12px, 1.4vw, 28px);
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.05em;
}

.manifest__title span {
  display: block;
  opacity: 1;
}

.manifest__image {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  aspect-ratio: 0.8;
  max-width: 100%;
  background: var(--surface-strong);
}

.manifest__image img {
  height: 100%;
  object-fit: cover;
}

.manifest__quote {
  margin: 8px 0 0;
  padding-top: 6px;
}

.manifest__quote p {
  margin: 0;
  font-family: var(--font-quote);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -0.02em;
  word-spacing: 0.03em;
  max-width: 15ch;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(46, 37, 33, 0.55);
}

.manifest__quote footer {
  margin-top: 10px;
  font-family: var(--font-quote);
  font-size: clamp(1.2rem, 1.7vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(280px, 1.2fr) minmax(220px, 0.9fr);
  gap: 26px;
  padding: 48px 10px 10px;
  border-top: 1px solid var(--line);
}

.contact__details,
.contact__meta {
  display: grid;
  gap: 8px;
  font-size: clamp(1.15rem, 1.7vw, 1.9rem);
  line-height: 1.35;
}

.contact a {
  transition: color 180ms ease;
}

.contact a:hover {
  color: #8a6246;
}

.gallery-group {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
  justify-content: center;
}

.project-grid--compact {
  gap: var(--gutter);
}

.project-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 1.16;
  transform: translateY(0);
  transition: transform 300ms ease, opacity 300ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 10, 8, 0) 45%, rgba(15, 10, 8, 0.18));
  opacity: 0;
  transition: opacity 260ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card.is-visible img {
  transform: scale(1);
}

.project-grid .project-card {
  grid-column: span 1;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(46, 37, 33, 0.9);
  color: #fff;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(33, 26, 21, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background-color 220ms ease;
  z-index: 20;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: #8a6246;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 54px, 0) scale(0.985);
  transition:
    opacity 760ms ease,
    transform 1000ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 760ms ease,
    clip-path 1000ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0s);
  filter: blur(10px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reveal--line {
  transform: translate3d(0, 34px, 0);
  filter: blur(6px);
}

.reveal--quote {
  transform: translate3d(78px, 0, 0);
  filter: blur(8px);
}

[data-stagger-text] {
  --stagger-x: 0px;
  --stagger-step: 46ms;
  --stagger-base: 90ms;
}

[data-stagger-direction="left"] {
  --stagger-x: -22px;
}

[data-stagger-direction="right"] {
  --stagger-x: 22px;
}

.stagger-word {
  display: inline-block;
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(var(--stagger-x), 0, 0);
  transition:
    transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 520ms ease,
    filter 520ms ease;
  transition-delay: calc(var(--stagger-base) + (var(--word-index, 0) * var(--stagger-step)));
  will-change: transform, opacity, filter;
}

.reveal.is-visible [data-stagger-text] .stagger-word,
.reveal.is-visible[data-stagger-text] .stagger-word,
.reveal.is-visible .stagger-word {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.reveal--soft {
  transform: translate3d(0, 48px, 0) scale(0.97);
}

.reveal--cinematic,
.reveal--mask,
.reveal--card {
  clip-path: inset(0 0 18% 0);
}

.reveal--cinematic {
  transform: translate3d(0, 70px, 0) scale(0.94);
  filter: blur(14px);
}

.reveal--card {
  transform: translate3d(0, 60px, 0) scale(0.965);
  filter: blur(12px);
}

.reveal--cinematic.is-visible,
.reveal--mask.is-visible,
.reveal--card.is-visible {
  clip-path: inset(0 0 0 0);
}

.hero-image__frame.reveal--cinematic::after,
.manifest__image.reveal--mask::after,
.project-card.reveal--card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
  transform: translateY(0);
  transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}

.hero-image__frame.reveal--cinematic.is-visible::after,
.manifest__image.reveal--mask.is-visible::after,
.project-card.reveal--card.is-visible::before {
  transform: translateY(-112%);
}

[data-parallax] {
  --parallax-offset: 0px;
  transform: translate3d(0, var(--parallax-offset), 0);
  will-change: transform;
}

[data-parallax].reveal {
  transform: translate3d(0, calc(var(--parallax-offset) + 54px), 0) scale(0.985);
}

[data-parallax].reveal.is-visible {
  transform: translate3d(0, var(--parallax-offset), 0) scale(1);
}

[data-parallax].reveal--cinematic {
  transform: translate3d(0, calc(var(--parallax-offset) + 70px), 0) scale(0.94);
}

[data-parallax].reveal--cinematic.is-visible {
  transform: translate3d(0, var(--parallax-offset), 0) scale(1);
}

[data-parallax].reveal--soft {
  transform: translate3d(0, calc(var(--parallax-offset) + 48px), 0) scale(0.97);
}

[data-parallax].reveal--soft.is-visible {
  transform: translate3d(0, var(--parallax-offset), 0) scale(1);
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(12px);
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .side-nav {
    top: auto;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    grid-auto-flow: column;
  }

  .side-nav__link:hover,
  .side-nav__link.is-active {
    transform: translateY(-4px);
  }

  .manifest {
    grid-template-columns: 1fr;
  }

  .manifest__image {
    max-width: min(420px, 100%);
  }

  .manifest__title {
    padding-left: clamp(18px, 4vw, 28px);
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --content: min(100vw - 28px, 1000px);
    --radius-xl: 28px;
  }

  .hero {
    padding-block: 14vh 12vh;
  }

  .hero__logo {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    transform: translateY(0);
  }

  .hero__scroll {
    bottom: 108px;
  }

  .logo-copy {
    text-align: center;
  }

  .side-nav {
    width: calc(100vw - 28px);
    grid-auto-flow: row;
    right: 14px;
    left: 14px;
    transform: none;
  }

  .side-nav__link {
    min-width: 100%;
    min-height: 52px;
  }

  .hero-image img {
    min-height: 44vh;
  }

  .manifest__title {
    padding-left: 14px;
  }

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

  .project-card {
    aspect-ratio: 1.08;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.is-visible,
  [data-parallax] {
    opacity: 1;
    transform: none !important;
  }
}
