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

:root {
  /* Colors */
  --color-offwhite: #f8f6f2;
  --color-offblack: #302b27;
  --color-offblack-transparent: rgba(48, 43, 39, 0.2);
  --color-overlay-dark: rgba(0, 0, 0, 0.4);

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

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

/* Removed global reset - handled by base.css */

.work-page-content-wrapper {
  font-family: var(--font-main);
  background-color: var(--color-offwhite);
  color: var(--color-offblack);
  letter-spacing: -0.02em;
  font-weight: 700;
  position: relative;
  overflow-x: clip;
}

/* Dust/Scratches background effect for the entire site */
/* Dust/Scratches background effect scoped to the work content */
.work-page-content-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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;
}

/* 12-column grid system */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 0 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Removed unused hero styles */

.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 {
  width: 300px;
  height: 300px;
  overflow: hidden;
  background-color: var(--color-offblack);
  position: relative;
  transition: border-radius 0.3s ease;
  filter: blur(0px);
  -webkit-clip-path: inset(0 0 0 0);
          clip-path: inset(0 0 0 0);
}

#video-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  pointer-events: none;
}

video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  position: relative;
  z-index: 0; /* Ensure video is below overlays */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-offblack-transparent);
  color: var(--color-offwhite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  -webkit-clip-path: inset(100% 0 0 0);
          clip-path: inset(100% 0 0 0);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  z-index: 2; /* Ensure this is above the darkening overlay */
}

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

.video-overlay .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  filter: blur(10px); /* Start with blur */
  transform: scale(1.1); /* Start slightly zoomed out */
  opacity: 1; /* Always fully visible */
}

.video-overlay h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  transform: translateY(30px);
  text-transform: uppercase;
}

.video-overlay p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 32ch; /* Narrower width */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  transform: translateY(30px);
}

.spacer {
  height: 10vh; /* Reduced from 30vh */
}

.footer-content {
  padding: 10rem 0;
  text-align: center;
  margin: 0 auto;
}

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

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

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

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

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

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

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

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

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

.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;
}