@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/thegoodmonolith");

/* ----------------------------------
   Tokens
---------------------------------- */
:root {
  --color-offwhite: #f8f6f2;
  --color-offblack: #302b27;
  --color-offblack-transparent: rgba(48, 43, 39, 0.2);

  --font-main: "Inter", sans-serif;
  --font-mono: "TheGoodMonolith", sans-serif;

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-offwhite);
  color: var(--color-offblack);
  overflow-x: hidden;
  letter-spacing: -0.02em;
  font-weight: 700;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("https://img.freepik.com/premium-photo/white-dust-scratches-black-background_279525-2.jpg?w=640");
  background-repeat: repeat;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 999;
}

img,
video {
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  width: 100%;
  padding: 0 2rem;
}

/* ----------------------------------
   Logo
---------------------------------- */
.logo-container {
  position: fixed;
  top: 2rem;
  left: 2rem;
  width: 3rem;
  height: 1.5rem;
  z-index: 100;
  cursor: pointer;
}

.logo-circles {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.circle {
  position: absolute;
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;
  background-color: var(--color-offblack);
  top: 50%;
  transition: transform 0.4s var(--transition-elastic);
}

.circle-1 {
  left: 0;
  transform: translate(0, -50%);
}

.circle-2 {
  left: 0.8rem;
  transform: translate(0, -50%);
  background-color: var(--color-offwhite);
  border: 1px solid var(--color-offblack);
}

.logo-container:hover .circle-1 {
  transform: translate(-0.5rem, -50%);
}

.logo-container:hover .circle-2 {
  transform: translate(0.5rem, -50%);
}

/* ----------------------------------
   Hero + catalog motion section
---------------------------------- */
.hero-grid-section {
  position: relative;
  height: 280vh;
}

.hero-grid-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.header-content {
  position: absolute;
  top: 16vh;
  left: 50%;
  width: min(40rem, calc(100% - 2rem));
  transform: translateX(-50%);
  text-align: center;
  transform-style: preserve-3d;
  perspective: 800px;
  z-index: 3;
}

.header-content > * {
  transform-style: preserve-3d;
  transform-origin: center top;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.title {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  text-transform: uppercase;
}

.subtitle {
  margin-bottom: 3rem;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.hero-copy .credits {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.motion-grid {
  --grid-scale: 0.72;

  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72rem, calc(100% - 4rem));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: clamp(0.75rem, 3vw, 2.5rem);
  transform: translate(-50%, -50%) scale(var(--grid-scale));
  transform-origin: center center;
}

.motion-grid > .layer {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  gap: inherit;
  opacity: 0;
  transform: scale(0.84);
  filter: blur(12px);
}

.motion-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  object-fit: cover;
}

.motion-grid > .layer:nth-of-type(1) > div:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
}

.motion-grid > .layer:nth-of-type(1) > div:nth-of-type(2) {
  grid-column: 5;
  grid-row: 1;
}

.motion-grid > .layer:nth-of-type(1) > div:nth-of-type(3) {
  grid-column: 1;
  grid-row: 2;
}

.motion-grid > .layer:nth-of-type(1) > div:nth-of-type(4) {
  grid-column: 5;
  grid-row: 2;
}

.motion-grid > .layer:nth-of-type(1) > div:nth-of-type(5) {
  grid-column: 1;
  grid-row: 3;
}

.motion-grid > .layer:nth-of-type(1) > div:nth-of-type(6) {
  grid-column: 5;
  grid-row: 3;
}

.motion-grid > .layer:nth-of-type(2) > div:nth-of-type(1) {
  grid-column: 2;
  grid-row: 1;
}

.motion-grid > .layer:nth-of-type(2) > div:nth-of-type(2) {
  grid-column: 4;
  grid-row: 1;
}

.motion-grid > .layer:nth-of-type(2) > div:nth-of-type(3) {
  grid-column: 2;
  grid-row: 2;
}

.motion-grid > .layer:nth-of-type(2) > div:nth-of-type(4) {
  grid-column: 4;
  grid-row: 2;
}

.motion-grid > .layer:nth-of-type(2) > div:nth-of-type(5) {
  grid-column: 2;
  grid-row: 3;
}

.motion-grid > .layer:nth-of-type(2) > div:nth-of-type(6) {
  grid-column: 4;
  grid-row: 3;
}

.motion-grid > .layer:nth-of-type(3) > div:first-of-type {
  grid-column: 3;
  grid-row: 1;
}

.motion-grid > .layer:nth-of-type(3) > div:last-of-type {
  grid-column: 3;
  grid-row: 3;
}

.motion-grid .scaler {
  position: relative;
  grid-column: 3;
  grid-row: 2 / span 2;
  width: 100%;
  height: 100%;
  justify-self: stretch;
  align-self: stretch;
  transform: scale(0.88);
  transform-origin: center center;
  will-change: transform;
  z-index: 2;
}

.motion-grid .scaler img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.4rem;
  box-shadow: 0 8px 40px rgba(48, 43, 39, 0.18), 0 2px 12px rgba(48, 43, 39, 0.1);
}

/* ----------------------------------
   Scroll cue
---------------------------------- */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
  opacity: 0;
}

.scroll-cue span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-offblack);
}

.scroll-cue svg {
  stroke: var(--color-offblack);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
}

.hero-flair {
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
  width: 100px;
  height: 100px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.hero-flair__particle {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 1;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  will-change: transform, opacity;
}

/* ----------------------------------
   Grid whisper (single emoji float per image)
---------------------------------- */
.grid-whisper {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.6rem;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  transform: translate(-50%, -50%);
}

/* ----------------------------------
   Shimmer sweep on grid images
---------------------------------- */
.motion-grid .layer > div {
  position: relative;
  overflow: hidden;
}

.shimmer-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 2;
}

/* ----------------------------------
   Video reaction emojis
---------------------------------- */
.video-reaction {
  position: absolute;
  font-size: 1.4rem;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

/* ----------------------------------
   Video section
---------------------------------- */
.scroll-container {
  position: relative;
  height: 300vh;
}

.video-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

#video-container {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  background-color: var(--color-offblack);
  transition: border-radius 0.3s ease;
}

#video-container video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-darken-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  pointer-events: none;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: var(--color-offwhite);
  text-align: center;
  background: var(--color-offblack-transparent);
  clip-path: inset(100% 0 0 0);
  backdrop-filter: blur(8px);
}

.video-overlay .caption {
  position: absolute;
  top: 2rem;
  left: 0;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(30px);
}

.video-overlay .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  opacity: 1;
  filter: blur(10px);
  transform: scale(1.08);
}

.video-overlay h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  transform: translateY(30px);
}

.video-overlay p {
  max-width: 32ch;
  margin: 0 auto 1rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.8;
  transform: translateY(30px);
}

/* ----------------------------------
   Interlude + footer content
---------------------------------- */
.interlude-content,
.footer-content {
  margin: 0 auto;
  padding: 10rem 0;
  text-align: center;
}

.spacer {
  height: 10vh;
}

.quote {
  grid-column: 4 / span 6;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.quote p {
  max-width: 32ch;
  margin: 0 auto 1.5rem;
}

.divider {
  grid-column: 6 / span 2;
  width: 1px;
  height: 80px;
  margin: 4rem auto;
  background-color: var(--color-offblack);
}

.interlude-content .credits,
.footer-content .credits {
  grid-column: 4 / span 6;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.mountain-footer {
  position: relative;
  height: 50vh;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
}

.mountain-footer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-offwhite);
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.contact-btn .label {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-btn .email-container {
  position: relative;
  display: inline-block;
}

.contact-btn .email {
  position: relative;
  display: inline-block;
  padding: 0 0.6em;
  font-size: 0.9rem;
}

.contact-btn .left-bracket,
.contact-btn .right-bracket {
  transition: opacity 0.3s var(--transition-elastic),
    transform 0.3s var(--transition-elastic);
}

.contact-btn .left-bracket {
  margin-right: 3px;
}

.contact-btn .right-bracket {
  margin-left: 3px;
  transition-delay: 0.15s;
}

/* ----------------------------------
   Tablet
---------------------------------- */
@media (max-width: 900px) {
  .hero-grid-section {
    height: 240vh;
  }

  .header-content {
    top: 14vh;
    width: min(36rem, calc(100% - 1.5rem));
  }

  .title {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }

  .subtitle {
    margin-bottom: 2.25rem;
    font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  }

  .hero-copy .credits {
    margin-top: 2rem;
  }

  .motion-grid {
    width: calc(100% - 1.5rem);
    gap: 0.6rem;
  }

  .motion-grid > .layer:nth-of-type(1) {
    display: none;
  }

  .motion-grid .scaler {
    grid-row: 2 / span 2;
    transform: scale(1.12);
  }

  .motion-grid .scaler img {
    border-radius: 1.2rem;
  }

  .hero-flair__particle {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
  }

  .interlude-content,
  .footer-content {
    padding: 8rem 0;
  }

  .quote,
  .interlude-content .credits,
  .footer-content .credits {
    grid-column: 2 / span 10;
  }

  .divider {
    grid-column: 6 / span 2;
  }
}

/* ----------------------------------
   Mobile
---------------------------------- */
@media (max-width: 640px) {
  .grid {
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .hero-grid-section {
    height: 220vh;
  }

  .header-content {
    top: 9vh;
    width: calc(100% - 1.5rem);
  }

  .title {
    font-size: clamp(2rem, 10vw, 2.6rem);
    line-height: 0.95;
  }

  .subtitle {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.1;
  }

  .hero-copy .credits,
  .footer-content .credits,
  .video-overlay .caption,
  .contact-btn .label {
    font-size: 0.72rem;
  }

  .hero-copy .credits {
    margin-top: 1.5rem;
    line-height: 1.5;
  }

  .motion-grid {
    top: 56%;
    width: calc(100vw - 1rem);
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .motion-grid > .layer:nth-of-type(2) > div:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .motion-grid > .layer:nth-of-type(2) > div:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .motion-grid > .layer:nth-of-type(2) > div:nth-of-type(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .motion-grid > .layer:nth-of-type(2) > div:nth-of-type(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .motion-grid > .layer:nth-of-type(2) > div:nth-of-type(5) {
    grid-column: 1;
    grid-row: 3;
  }

  .motion-grid > .layer:nth-of-type(2) > div:nth-of-type(6) {
    grid-column: 3;
    grid-row: 3;
  }

  .motion-grid > .layer:nth-of-type(3) > div:first-of-type {
    grid-column: 2;
    grid-row: 1;
  }

  .motion-grid > .layer:nth-of-type(3) > div:last-of-type {
    grid-column: 2;
    grid-row: 3;
  }

  .motion-grid .scaler {
    grid-column: 2;
    grid-row: 2 / span 2;
    transform: scale(1.18);
  }

  .motion-grid .scaler img {
    border-radius: 1rem;
    box-shadow: 0 6px 28px rgba(48, 43, 39, 0.22);
  }

  .hero-flair__particle {
    font-size: 2rem;
  }

  #video-container {
    width: 220px;
    height: 220px;
  }

  .video-overlay {
    padding: 1.25rem;
  }

  .video-overlay .caption {
    top: 1.25rem;
  }

  .video-overlay h2 {
    font-size: 1.65rem;
  }

  .video-overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .interlude-content,
  .footer-content {
    padding: 6rem 0;
  }

  .quote,
  .interlude-content .credits,
  .footer-content .credits {
    grid-column: 1 / -1;
  }

  .quote p {
    max-width: 28ch;
  }

  .divider {
    grid-column: 6 / span 2;
    height: 60px;
    margin: 2.5rem auto;
  }

  .mountain-footer {
    height: 42vh;
  }
}
