*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

:root {
  --grey: #E8332A;
  --ink: #ffabef;
  --red: #ff1b1c;
  --white: #d7d7d7;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  background: var(--grey);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

/* === CURSOR === */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--ink);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s ease, height 0.2s ease;
}

.cursor.hovering {
  width: 44px;
  height: 44px;
}

/* === HEADER NAV === */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  /* liquid reveal — clip from center outward */
  clip-path: inset(0 50% 0 50% round 0px);
  transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.18, 1);
}

.topnav.revealed {
  clip-path: inset(0 0% 0 0% round 0px);
}

.topnav.nav-hidden {
  visibility: hidden;
  pointer-events: none;
}

.topnav__name,
.topnav__link {
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.25s ease, color 1.8s ease;
  background: none;
  border: none;
}

.topnav__name { opacity: 0.9; }

.topnav__name:hover,
.topnav__link:hover { opacity: 1; }

.topnav.nav-dark .topnav__name,
.topnav.nav-dark .topnav__link { color: #101418; }

.back-btn.nav-dark { color: #101418; }

.topnav__center {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* === BACK BUTTON === */
.back-btn {
  position: fixed;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: none;
  border: none;
  transition: opacity 0.2s, color 1.8s ease;
}

.back-btn__arrow {
  font-size: 1.2rem;
  line-height: 1;
}

.back-btn__label {
  font-size: 0.40rem;
  font-weight: 600;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.back-btn:hover { opacity: 1; }
.back-btn.hidden { display: none; }

/* === MAIN === */
.main {
  margin-left: 0;
  padding: 0 60px 120px;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  scroll-snap-align: start;
}

.hero--s1 {
  position: sticky;
  top: 0;
  z-index: 2;
  background: transparent;
}

.scroll-cover {
  position: relative;
  z-index: 1;
}

.scroll-cover .break + .overlap-block,
.scroll-cover .break ~ * {
  background: var(--grey);
}

.hero__line {
  font-size: 50vw;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02px;
  line-height: 0.92;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.hero__line span {
  display: inline-block;
}


/* === STATEMENT 1 overrides === */
.hero__line--s1 {
  font-size: 5vw;
  justify-content: space-between;
}

/* === STATEMENT 2 overrides === */
.hero__line--s2 {
  font-size: 10vw;
  font-weight: 600;
  justify-content: flex-start;
  color: var(--ink);
  white-space: nowrap;
  width: fit-content;
  min-width: var(--band-width, 60%);
  padding: 0 60px;
  margin: 0 -60px;
}

/* === OVERLAP BLOCK (statement 2 over break 2) === */
.overlap-block {
  position: relative;
}

.hero--overlap {
  position: relative;
  z-index: 2;
  /* let text sit naturally, images will be pulled up behind */
}

.break--overlap {
  position: relative;
  z-index: 1;
  margin-top: -80vh;
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* === MARQUEE === */
.marquee__wrap {
  overflow: clip;
  overflow-clip-margin: 0px;
  width: 100%;
  padding: 32px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-size: 5vw;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1px;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* === VISUAL BREAK === */
.break {
  padding: 40px 0 60px;
}

.break__images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.break__img {
  display: block;
  height: auto;
  position: relative;
}

.img--full {
  width: 80% !important;
  align-self: center !important;
  margin-top: -200px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.break__img:nth-child(1) {
  width: 45%;
  align-self: center;
  z-index: 3;
}

.break__img--hero {
  width: 80% !important;
  align-self: center !important;
  margin: 0 !important;
}

.break__img:nth-child(2) {
  width: 30%;
  margin-left: 50%;
  margin-top: -3%;
  z-index: 2;
}

.break__img:nth-child(3) {
  width: 40%;
  margin-left: 5%;
  margin-top: 5%;
  z-index: 5;
}

/* === FOOTER === */
.site-footer {
  font-size: 0.40rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
  text-align: center;
  padding: 40px 60px;
}

/* === WORK OVERLAY === */
.work-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 800;
  overflow-y: auto;
  padding: 100px 60px 160px;
}

.work-overlay .work-item__label {
  color:  #ffffff;
}

.work-overlay .about__text {
  color: #101418;
}

.work-overlay.hidden { display: none; }

.work-overlay__close {
  position: fixed;
  top: 2px;
  left: 36px;
  z-index: 900;
  font-size: 0.50rem;
  letter-spacing: 2px;
  color: var(--ink);
  background: none;
  border: none;
  opacity: 0.4;
  transition: opacity 0.2s;
  mix-blend-mode: difference;
  color: var(--ink);
}

.work-overlay__close:hover { opacity: 0.9; }

.about__layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.about__text {
  font-size: 2cap;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0px;
  color: #101418;
  text-align: left;
  width: 100%;
  max-width: 500px;
}

.about__img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.about__img {
  width: 40%;
  height: auto;
  display: block;
}

.work-collage {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.work-item {
  position: relative;
  display: block;
  overflow: hidden;
}

.work-item img,
.work-item video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.work-item:hover img {
  transform: scale(1.03);
}

.work-item__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  font-size: 0.42rem;
  letter-spacing: 3px;
  color: var(--ink);
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.work-item:hover .work-item__label {
  opacity: 1;
}

.work-item.pos-a { width: 32%; margin-left: 5%;  margin-top: 2%; }
.work-item.pos-b { width: 42%; margin-left: 48%; margin-top: 5%; }
.work-item.pos-c { width: 50%; margin-left: 50%; margin-top: 10%; }
.work-item.pos-d { width: 28%; margin-left: 62%; margin-top: 8%; }
.work-item.pos-e { width: 36%; margin-left: 8%;  margin-top: -4%; }

/* === WORK LABEL === */
.work-label {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9000;
  pointer-events: none;
  font-size: 60px;
  font-weight: 800;
  color: #101418;
  letter-spacing: -2px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.work-label.hidden { display: none; }


.work-deco {
  font-size: clamp(10px, 1vw, 150px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0px;
  line-height: 0.88;
  pointer-events: none;
  margin: -20px 0px;
  width: 100%;
  text-align: center;
}

.work-deco--top {
  display: block;
  width: calc(100% + 120px);
  margin-left: -60px;
  margin-right: -60px;
  text-align: center;
  margin-bottom: 40px;
}

.work-deco--right {
  align-self: center;
  text-align: center;
}

.work-deco--sm {
  font-size: clamp(40px, 7vw, 100px);
  opacity: 0.04;
}

/* === PROJECT OVERLAY === */
.project-overlay {
  position: fixed;
  inset: 0;
  background: #D8D3CF;
  color: #101418;
  z-index: 1000;
  overflow-y: auto;
}

.project-overlay .project__title,
.project-overlay .project__subtitle,
.project-overlay .project__desc,
.project-overlay .project__next-label,
.project-overlay .project__next-title {
  color: #101418;
}

.project-overlay.hidden { display: none; }

.project-overlay__inner {
  width: 100%;
  padding: 100px 80px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-overlay__close {
  position: fixed;
  top: 28px;
  right: 36px;
  z-index: 1100;
  font-size: 0.42rem;
  letter-spacing: 2px;
  color: var(--ink);
  background: none;
  border: none;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.project-overlay__close:hover { opacity: 0.9; }

.project__next {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 80px;
}

.project__next-label {
  font-size: 0.4rem;
  letter-spacing: 4px;
  color: var(--ink);
  opacity: 0.3;
}

.project__next-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -2px;
  line-height: 1;
  transition: opacity 0.25s ease;
}

.project__next:hover .project__next-title {
  opacity: 0.45;
}

.project__title {
  font-size: clamp(48px, 50vw, 110px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 0.92;
  text-align: center;
  margin-bottom: 12px;
  width: 100%;
}

.project__subtitle {
  font-size: 0.42rem;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 2ch;
  text-align: center;
}

.project__video {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  margin: 0 auto 80px;
  background: #000;
}

.project__video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.project__watch {
  display: block;
  font-size: 0.45rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #101418;
  text-decoration: none;
  margin-top: 50px;
  margin-bottom: 60px;
  transition: opacity 0.2s;
  text-align: center;
}

.project__watch:hover { opacity: 1; }

.project__desc {
  font-size: 0.50rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.35;
  color: var(--ink);
  width: 100%;
  margin-bottom: 30px;
  opacity: 0.90;
  text-align: center;
}

.project__images {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.project__images img,
.project__images video {
  display: block;
  height: auto;
  margin-bottom: 50px;
}

.project__images :nth-child(odd) {
  width: 100%;
  max-width: 1400px;
  align-self: center;
}

.project__images :nth-child(even) {
  width: 100%;
  max-width: 700px;
  align-self: center;
}

/* === MOBILE === */
@media (min-width: 2000px) {
  .work-overlay {
    padding: 100px 300px 160px;
  }
}

@media (max-width: 768px) {
  .main {
    padding: 0 24px 80px;
  }

  /* Hero S1: readable on small screens */
  .hero__line--s1 {
    font-size: clamp(22px, 9vw, 72px);
  }

  .hero__line--s2 {
    font-size: 11vw;
    width: 100% !important;
    padding: 0 24px;
    margin: 0 -24px;
    white-space: nowrap;
  }

  .break--overlap {
    margin-top: -60vh;
  }

  .topnav {
    padding: 20px 24px;
  }

  .back-btn {
    left: 24px;
  }

  .work-overlay {
    padding: 80px 24px 120px;
  }

  /* Work collage: 2-column grid instead of scattered desktop layout */
  .work-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .work-item.pos-a,
  .work-item.pos-b,
  .work-item.pos-c,
  .work-item.pos-d,
  .work-item.pos-e {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  /* Work item labels always visible on touch */
  .work-item__label {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
    font-size: 0.38rem;
  }

  /* Work label text: smaller and wrappable */
  .work-label {
    font-size: clamp(24px, 8vw, 60px);
    white-space: normal;
    text-align: center;
    padding: 0 24px;
    width: 90%;
  }


  .project-overlay__inner {
    padding: 80px 24px 80px;
  }

  /* Project title: prevent overflow on narrow screens */
  .project__title {
    font-size: clamp(28px, 9vw, 80px);
    letter-spacing: -1px;
    word-break: break-word;
  }

  .project__images img,
  .project__images video {
    width: 100% !important;
  }

  /* About image: actually visible on mobile */
  .about__img {
    width: 80%;
  }

  /* Restore pointer so tap targets work */
  *, *::before, *::after {
    cursor: default !important;
  }

  .cursor {
    display: none;
  }
}
