:root {
  --black: #161517;
  --ink: #11100e;
  --smoke: #636b6a;
  --slate: #657a83;
  --rose: #8e6e58;
  --sand: #ccbdae;
  --brass: #a08c73;
  --ivory: #f7f1ea;
  --paper: #ede5da;
  --line: rgba(17, 16, 14, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Avenir Next", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}

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

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 45%),
    repeating-radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: soft-light;
}

.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 19;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  opacity: 0.28;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(204, 189, 174, 0.32), transparent 67%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 58px);
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(7, 8, 8, 0.52), rgba(7, 8, 8, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(247, 241, 234, 0.34));
}

.nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 34px);
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 88vh;
  padding: 112px clamp(18px, 4vw, 58px) 30px;
  overflow: hidden;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.9), rgba(21, 27, 29, 0.62) 52%, rgba(10, 10, 10, 0.88)),
    linear-gradient(120deg, #080909 0%, #1b2224 44%, #655447 100%),
    var(--black);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  background: linear-gradient(transparent, var(--black));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 12vh 10vw 0 26vw;
  background:
    linear-gradient(135deg, rgba(101, 122, 131, 0.36), rgba(160, 140, 115, 0.18)),
    linear-gradient(90deg, rgba(247, 241, 234, 0.06), rgba(247, 241, 234, 0));
  opacity: 0.72;
}

.hero-image {
  position: absolute;
  object-fit: contain;
  object-position: center bottom;
  will-change: transform;
  filter: saturate(0.9) contrast(1.05) drop-shadow(0 34px 42px rgba(0, 0, 0, 0.64));
}

.hero-image-main {
  right: 25vw;
  bottom: -2vh;
  width: min(44vw, 620px);
  height: 90vh;
  z-index: 2;
}

.hero-image-side {
  right: 3vw;
  bottom: -2vh;
  width: min(44vw, 620px);
  height: 90vh;
  opacity: 0.88;
  object-position: center bottom;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 62vh;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(74px, 13vw, 184px);
  font-weight: 500;
  line-height: 0.82;
}

.lead {
  max-width: 520px;
  margin: 0;
  color: rgba(247, 241, 234, 0.84);
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.42;
}

.hero-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(247, 241, 234, 0.26);
  padding-top: 18px;
  color: rgba(247, 241, 234, 0.62);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.visual-strip {
  overflow: hidden;
  padding: 14px 0;
  background: var(--black);
}

.strip-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: stripMove 46s linear infinite;
}

.strip-track:hover {
  animation-play-state: paused;
}

.strip-track img {
  width: clamp(150px, 18vw, 280px);
  height: clamp(210px, 25vw, 390px);
  object-fit: cover;
  filter: saturate(0.86);
}

@keyframes stripMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.intro,
.section-heading,
.motion,
.closing {
  padding-inline: clamp(18px, 4vw, 58px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(28px, 7vw, 120px);
  padding-block: clamp(78px, 12vw, 170px);
  background: var(--paper);
}

.intro h2,
.section-heading h2,
.editorial-copy h2,
.motion h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 500;
  line-height: 0.94;
}

.intro > p {
  align-self: end;
  margin: 0;
  color: rgba(17, 16, 14, 0.7);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.lookbook {
  position: relative;
  padding: clamp(78px, 11vw, 150px) clamp(18px, 4vw, 58px);
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(22, 21, 23, 0.96), rgba(39, 57, 67, 0.94)),
    var(--black);
}

.section-heading {
  max-width: 1000px;
  padding-inline: 0;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 8vw;
  gap: clamp(10px, 1.6vw, 22px);
  margin-top: clamp(42px, 7vw, 94px);
}

.tile {
  position: relative;
  grid-column: span 4;
  grid-row: span 4;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(247, 241, 234, 0.1);
  background:
    linear-gradient(145deg, rgba(101, 122, 131, 0.23), rgba(22, 21, 23, 0.18)),
    #111113;
}

.tile::before {
  content: "";
  position: absolute;
  right: -18%;
  top: -20%;
  width: 54%;
  aspect-ratio: 1;
  background: url("./assets/logo/salvalogo-transparent.png") center / contain no-repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
}

.tile.tall {
  grid-row: span 6;
}

.tile.wide {
  grid-column: span 8;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 900ms cubic-bezier(0.19, 1, 0.22, 1), filter 900ms ease;
  filter: saturate(0.84) contrast(1.04);
}

.tile img.cutout {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center bottom;
  padding: clamp(22px, 3vw, 50px);
  transform: scale(0.98);
  filter: saturate(0.94) contrast(1.05) drop-shadow(0 32px 30px rgba(0, 0, 0, 0.56));
}

.tile:hover img {
  transform: scale(1.01);
  filter: saturate(0.96) contrast(1.08);
}

.tile:hover img.cutout {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.08) drop-shadow(0 38px 34px rgba(0, 0, 0, 0.64));
}

.tile.wide img.cutout {
  object-position: right bottom;
  padding-left: 18%;
}

.tile figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  color: rgba(247, 241, 234, 0.78);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.editorial {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  min-height: 92vh;
  overflow: hidden;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(101, 122, 131, 0.34), rgba(22, 21, 23, 0.88)),
    linear-gradient(135deg, #1b2325, #171416 58%, #6e5847);
}

.editorial::before {
  content: "";
  position: absolute;
  left: 8vw;
  bottom: 6vh;
  width: min(38vw, 520px);
  aspect-ratio: 1;
  background: url("./assets/logo/salvalogo-transparent.png") center / contain no-repeat;
  opacity: 0.17;
  mix-blend-mode: screen;
  pointer-events: none;
}

.editorial-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 92vh;
  padding: clamp(28px, 5vw, 78px);
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.88) contrast(1.06) drop-shadow(0 42px 40px rgba(0, 0, 0, 0.62));
  will-change: transform;
}

.editorial-copy {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 6vw, 88px);
}

.editorial-copy p:last-child {
  max-width: 400px;
  color: rgba(247, 241, 234, 0.68);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.48;
}

.motion {
  padding-block: clamp(78px, 11vw, 150px);
  color: var(--ivory);
  background: var(--black);
}

.motion .section-heading {
  max-width: 1120px;
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(42px, 7vw, 88px);
  border-block: 1px solid rgba(247, 241, 234, 0.18);
  background: rgba(247, 241, 234, 0.18);
}

.motion-item {
  min-height: 300px;
  padding: clamp(22px, 4vw, 44px);
  background: var(--black);
}

.motion-item span {
  display: block;
  margin-bottom: 84px;
  color: var(--brass);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.motion-item h3 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
}

.motion-item p {
  max-width: 340px;
  margin: 0;
  color: rgba(247, 241, 234, 0.64);
  line-height: 1.55;
}

.closing {
  display: grid;
  min-height: 62vh;
  place-items: center;
  gap: 28px;
  padding-block: 80px;
  text-align: center;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(22, 21, 23, 0.92), rgba(4, 5, 5, 1)),
    var(--black);
}

.closing-logos {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 30px);
}

.closing-symbol {
  width: clamp(86px, 11vw, 150px);
  filter: drop-shadow(0 0 18px rgba(247, 241, 234, 0.36));
}

.closing p {
  margin: 0;
  color: rgba(247, 241, 234, 0.66);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.19, 1, 0.22, 1);
}

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    gap: 13px;
    max-width: 210px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-image-main {
    right: -4vw;
    width: 70vw;
    height: 72vh;
  }

  .hero-image-side {
    display: none;
  }

  .hero-copy {
    min-height: 58vh;
  }

  .intro,
  .editorial,
  .motion-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 18vw;
  }

  .tile,
  .tile.wide {
    grid-column: span 6;
  }

  .editorial-image {
    height: 68vh;
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .site-header {
    padding: 20px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 84vh;
    padding-top: 96px;
  }

  .lead {
    max-width: 310px;
  }

  h1 {
    font-size: clamp(62px, 22vw, 112px);
  }

  .hero-footer {
    display: none;
  }

  .motion-item span {
    margin-bottom: 48px;
  }
}

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

  .cursor-light {
    display: none;
  }
}
