@import url("https://fonts.googleapis.com/css?family=Inter:300,regular,500,600,700,800,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Host+Grotesk:ital,wght@0,300..800;1,300..800&display=swap");

@font-face {
  font-family: 'SF Pro Medium';
  src: url('fons/SFPRODISPLAYMEDIUM.OTF') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro Regular';
  src: url('fons/SFPRODISPLAYREGULAR.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Kesh Basic';
  src: url('fons/Kesh Basic.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

* {
  padding: 0px;
  margin: 0px;
  border: 0px;
}

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

*::before,
*::after {
  display: inline-block;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  line-height: 1;
  scrollbar-gutter: stable;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

input,
button,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background-color: transparent;
}

input,
textarea {
  width: 100%;
}

label {
  display: inline-block;
}

button,
select,
option {
  cursor: pointer;
}

a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}

address {
  font-style: normal;
}

/* Generated by vite-plugin-svg-spritemap */
body {
  min-width: 320px;
  color: #000;
  font-family: "Inter";
  font-size: 16px;
}

[data-anim-scrolllock] body {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

.wrapper>main {
  flex: 1 1 auto;
}

.wrapper>* {
  min-width: 0;
}

[class*=__container] {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Generated by vite-plugin-svg-spritemap */
:root {
  --accent-1: #b1c0ef;
  --accent-2: #f2acac;
  --accent-3: #fedd93;
  --accent-4: #81b7bf;
}

/* ===== RESET ===== */
body {
  background-color: #f9f4eb;
  color: #141414;
  font-family: "Host Grotesk", sans-serif;
}

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

h1 {
  text-transform: uppercase;
  font-family: "Barlow Condensed";
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
}

p {
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== PRELOADER ===== */
body.preloader-active {
  overflow: hidden;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  height: 400px;
  width: auto;
}

.flip-y-animation {
  width: auto;
  height: 100%;
  object-fit: contain;
  animation: flipY 1.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes flipY {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }

  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

.zoom-out-exit {
  animation: zoomOutExit 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards !important;
  transform-origin: center;
}

@keyframes zoomOutExit {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* ===== TOP HEADER ===== */
.top-header {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

/* ===== NAVIGATION NAV ===== */
.glass-nav {
  grid-column: 2; /* Center column */
  position: relative; /* Grid-positioned rather than absolute centered */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  z-index: 1000;
  pointer-events: auto;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.glass-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.glass-nav .left-links {
  padding: 0;
}

.glass-nav .right-links {
  padding: 0;
}

/* Sliding Liquid Glass pill */
.nav-hover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 0;
}

.glass-nav a.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 19px;
  text-transform: none;
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.glass-nav a.nav-link:hover,
.glass-nav a.nav-link:focus,
.glass-nav a.nav-link.active {
  opacity: 1;
}

/* Gradient Show Reel button */
.show-reel-btn {
  grid-column: 3; /* Position in the right column of top-header grid */
  justify-self: start; /* Align to the left edge of the right column */
  margin-left: 16px; /* Precise gap between glass-nav and show-reel-btn */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  pointer-events: auto;

  /* Text styles */
  padding: 0.6em 2em;
  color: rgb(255, 255, 255);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.3s ease;

  /* Liquid Glass Body & Round Corners */
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 4px 6px rgba(255, 255, 255, 0.4),
    inset 0 -4px 4px rgba(0, 0, 0, 0.05);
}

.show-reel-btn:hover {
  transform: translateY(-2px);
}

.show-reel-btn:active {
  transform: translateY(0);
}

/* Crisp Glow Border */
.show-reel-btn:before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 102px;
  padding: 2px;
  background: linear-gradient(45deg,
      #39ff14,
      #bd00ff,
      #39ff14,
      #bd00ff);
  background-size: 400%;
  animation: glowing-button-85 60s linear infinite;
  /* Slower glow movement */
  z-index: -1;
  pointer-events: none;

  /* Mask out the middle to keep glass transparent */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Blurred Aura behind it */
.show-reel-btn:after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 103px;
  padding: 3px;
  background: linear-gradient(45deg,
      #39ff14,
      #bd00ff,
      #39ff14,
      #bd00ff);
  background-size: 400%;
  animation: glowing-button-85 60s linear infinite;
  /* Matches slower border glow */
  z-index: -2;
  filter: blur(4px);
  -webkit-filter: blur(4px);
  pointer-events: none;

  /* Mask out the middle as well */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.3s ease;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.glass-nav .nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  padding: 0 8px;
}

.glass-nav .nav-logo:hover {
  transform: scale(1.05);
}

.glass-nav .nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.glass-nav .chevron {
  margin-top: 2px;
  stroke-width: 2px;
}

/* ===== HERO / OUTRO ===== */
.hero,
.outro {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100svh;
  padding: 32px;
  background-color: #f9f4eb;
  color: #141414;
  overflow: hidden;
  /* Prevent pupils or layers from overflowing */
}

/* Layer styling for Hero container */
.hero .layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
}

/* Layer stacking orders */
.hero .layer-4 {
  z-index: 1;
}

.hero .layer-3 {
  z-index: 2;
}

.hero .layer-2 {
  z-index: 3;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero .layer-1 {
  z-index: 4;
}

/* ===== INTERMEDIATE CONTAINER ===== */
.intermediate-container {
  width: 100%;
  height: 206px;
  background-color: #000000;
  z-index: 5;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  margin-top: -2px;
}

.intermediate-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  --dot-color: rgba(255, 255, 255, 0.15);
  --spacing: 24px;
  --dot-size: 1.5px;
  background-image: radial-gradient(var(--dot-color) var(--dot-size),
      transparent var(--dot-size));
  background-size: var(--spacing) var(--spacing);
  background-position: top left;
  background-repeat: repeat;
  pointer-events: none;
}

.list-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 48px;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.list-scroller {
  justify-self: start;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.list-text {
  justify-self: end;
  text-align: right;
  font-family: 'SF Pro Regular', sans-serif;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 600;
  margin: 0;
}

.list {
  font-family: 'Kesh Basic', sans-serif;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 600;
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  animation: scrollVertically 25s linear infinite;
}

@keyframes scrollVertically {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.list li {
  line-height: 1.25;
}

.list li:not(:last-of-type) {
  color: oklch(65% 0.3 calc(var(--i) * (360 / 14)));
}

@media (max-width: 600px) {
  .list-container {
    column-gap: 12px;
  }
}

/* ===== STICKY CARDS ===== */
.sticky-cards {
  position: relative;
  width: 100%;
  background-color: #000000;
}

.card {
  position: sticky;
  width: 100%;
  height: 125svh;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  will-change: transform;
}

/* ===== FLOATING IMAGES (Card 1) ===== */
#card-1 .card-inner {
  background-color: #000;
  overflow: hidden;
  position: relative;
}

#card-1 .floating-images-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#card-1 .floating-img {
  position: absolute;
  bottom: -500px;
  width: 300px;
  height: auto;
  opacity: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  will-change: transform, opacity;
}

#card-1 .floating-img.portrait {
  aspect-ratio: 3 / 4;
}

#card-1 .floating-img.landscape {
  aspect-ratio: 4 / 3;
}

#card-1 .negative-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

#card-1 .negative-text h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  line-height: 0.85;
  margin: 0;
}

/* ===== CARD THEMES ===== */


#card-2 .card-inner {
  background-color: #000000;
  overflow: hidden;
  position: relative;
}

#card-2 .savoir-faire-lp {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

#card-2 .reveal-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  text-align: center;
}

#card-2 .reveal-text h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 2px;
  opacity: 0.6;
}



#card-2 .video-container,
#card-2 .img-container {
  position: absolute;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 5;
}

#card-2 .img-container.landscape {
  width: 640px;
  aspect-ratio: 16 / 9;
}

#card-2 .img-container.portrait {
  height: 640px;
  aspect-ratio: 9 / 16;
}




#card-3 .card-inner {
  background-color: #1c1c1c;
}

#card-4 .card-inner {
  background-color: #1a7a6d;
}

/* ===== CARD CONTENT ===== */
.card-info {
  width: 25%;
  padding: 64px;
  text-align: left;
}

.card-info p {
  font-size: 14.4px;
}

.card-title h1 {
  font-size: 160px;
  padding: 32px 0;
}

.card-description {
  width: 60%;
  margin: 0 auto 32px auto;
}

.card-description p {
  font-size: 24px;
}

.card-img {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin-top: 64px;
}

/* ===== CARD OVERLAY ===== */
.card-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: #000000;
  opacity: var(--after-opacity, 0);
  will-change: opacity;
}

/* ===== RESPONSIVE ===== */
/* Generated by vite-plugin-svg-spritemap */
@media (max-width: 1000px) {

  h1,
  .card-description {
    width: calc(100% - 64px);
    margin: 0 auto;
    font-size: 48px;
  }

  .card-info {
    width: 75%;
    padding: 64px 32px;
    text-align: center;
  }

  .card-title h1 {
    font-size: 48px;
  }

  .card-description p {
    font-size: 20px;
  }
}

/* ===== CG MARQUEES ===== */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../cg-var-font-anim/fonts/BigShouldersDisplay.ttf") format("woff2-variations");
}

.cg-marquees {
  height: 125svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #000;
  font-family: "Big Shoulders Display", sans-serif;
  overflow: hidden;
}

.cg-marquees .marquee-container {
  position: relative;
  width: 125%;
  height: 250px;
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
  overflow: hidden;
}

.cg-marquees .marquee {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  gap: 1em;
}

.cg-marquees #marquee-1 .marquee,
.cg-marquees #marquee-3 .marquee {
  left: -15%;
}

.cg-marquees .item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cg-marquees .item.with-text {
  flex: 1.5;
}
/* ===== VIDEO POPUP MODAL ===== */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.video-container {
  position: relative;
  width: 80%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 10000;
}

.video-modal.active .video-container {
  transform: scale(1);
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.close-video-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.close-video-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* ===== LOGO POP TEXT ===== */
.logo-pop-text {
  position: fixed;
  pointer-events: none;
  font-family: 'SF Pro Medium', sans-serif;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10001;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes mild-wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-3deg);
  }

  75% {
    transform: rotate(3deg);
  }
}

.glass-nav .nav-logo img {
  animation: mild-wiggle 4s ease-in-out infinite;
}


/* ===== SPIRAL SKETCHBOOK (Card 4) ===== */
#card-4 .card-inner {
  background: url('card 4/bg card 4.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.flipbook-scene {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
  position: relative;
}

.flipbook {
  width: min(540px, 84vw);
  height: min(764px, 84vh);
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  margin-left: 0;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Dynamic positioning based on book state */
.flipbook.state-cover {
  transform: translateX(0);
}

.flipbook.state-open {
  transform: translateX(50%);
}

.flipbook.state-back {
  transform: translateX(100%);
}

/* --- Spiral wire coils (Black & Circular) --- */
.spiral-binding {
  position: absolute;
  top: 0;
  left: -28px;
  width: 48px;
  bottom: 0;
  z-index: 100;
  pointer-events: none;
  /* Sync background position with holes: 28px step, wire at 12px-18px */
  background: repeating-linear-gradient(to bottom,
      transparent 0px,
      transparent 12px,
      #000 12px,
      #1a1a1a 13px,
      #333 15px,
      #1a1a1a 17px,
      #000 18px,
      transparent 18px,
      transparent 28px);
  filter: drop-shadow(3px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Loop visual: the circular part that hooks over the page holes */
.spiral-binding::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 12px;
  height: 100%;
  background: repeating-linear-gradient(to bottom,
      transparent 0px,
      transparent 12px,
      #000 12px,
      #050505 13px,
      #000 18px,
      transparent 18px,
      transparent 28px);
  opacity: 1;
}

/* Each leaf is a sheet with front + back */
.flip-leaf {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.flip-leaf.flipped {
  transform: rotateY(-180deg);
}

.flip-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px 40px 52px;
  box-shadow: 2px 4px 20px rgba(0, 0, 0, 0.4);
}

/* --- Inner Page Styles --- */
.flip-front {
  background: #fffdfa;
  color: #222;
  z-index: 1;
}

.flip-back {
  background: #fdfaf5;
  color: #222;
  transform: rotateY(180deg);
  z-index: 0;
}

/* Grid pattern for internal pages */
.flip-front::before,
.flip-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Spiral punch-holes margin on left */
.flip-front::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  width: 12px;
  height: 100%;
  background: repeating-linear-gradient(to bottom,
      transparent 0px,
      transparent 12px,
      #000 12px,
      #000 18px,
      transparent 18px,
      transparent 28px);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.05);
}

.flip-back::after {
  content: '';
  position: absolute;
  top: 0;
  right: 12px;
  width: 12px;
  height: 100%;
  background: repeating-linear-gradient(to bottom,
      transparent 0px,
      transparent 12px,
      #000 12px,
      #000 18px,
      transparent 18px,
      transparent 28px);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.05);
}

/* ---- Black Cover (Ref: 61MzsFAT-tL) ---- */
.flip-cover {
  background: #1a1a1a;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
    url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
  color: #eee;
  align-items: center;
  text-align: center;
  border-radius: 3px 10px 10px 3px;
}

.flip-cover::before {
  display: none;
}

.flip-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  width: 12px;
  height: 100%;
  background: repeating-linear-gradient(to bottom,
      transparent 0px,
      transparent 12px,
      #000 12px,
      #000 18px,
      transparent 18px,
      transparent 28px);
  opacity: 1;
  border: none;
}

.cover-content {
  position: relative;
  z-index: 10;
  margin-left: -10px;
}

.cover-label {
  font-family: 'SF Pro Medium', 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.5;
  color: #fff;
}

.cover-title {
  font-family: 'Kesh Basic', 'Georgia', serif;
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 400;
  margin: 16px 0 24px;
  line-height: 1;
  text-transform: none;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cover-sub {
  font-family: 'SF Pro Medium', 'Inter', sans-serif;
  font-size: 11px;
  opacity: 0.4;
  font-weight: 400;
  text-transform: none;
  color: #fff;
}

/* ---- Back Cover ---- */
.flip-back-cover {
  background: #111;
  color: #ccc;
  align-items: center;
  text-align: center;
}

.flip-back-cover::before {
  display: none;
}

.flip-back-cover::after {
  content: '';
  position: absolute;
  top: 0;
  right: 12px;
  width: 12px;
  height: 100%;
  background: repeating-linear-gradient(to bottom,
      transparent 0px,
      transparent 12px,
      #000 12px,
      #000 18px,
      transparent 18px,
      transparent 28px);
}

.back-cover-content {
  position: relative;
  z-index: 10;
  padding: 0 30px;
}

.back-label {
  font-size: 32px;
  opacity: 0.3;
  display: block;
  margin-bottom: 20px;
  color: #fff;
}

.back-text {
  font-family: 'Kesh Basic', 'Georgia', serif;
  font-size: clamp(18px, 4vw, 24px);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  margin-bottom: 30px;
  color: #999;
  line-height: 1.4;
}

/* ---- Inner Page Content ---- */
.page-num {
  font-family: 'SF Pro Medium', 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.4;
  position: absolute;
  bottom: 20px;
  right: 28px;
  color: #666;
}

.page-heading {
  font-family: 'Kesh Basic', 'Georgia', serif;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.2;
  text-transform: none;
  color: #111;
}

.page-body {
  font-family: 'SF Pro Regular', 'Inter', sans-serif;
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 1.7;
  color: #333;
  text-transform: none;
  font-weight: 400;
}

.page-quote {
  font-family: 'Kesh Basic', 'Georgia', serif;
  font-size: clamp(16px, 3vw, 22px);
  font-style: italic;
  line-height: 1.6;
  text-align: center;
  color: #444;
  padding: 40px 20px;
  text-transform: none;
  font-weight: 400;
}

/* Artwork styles (Full Page Fill) */
.flip-page:has(.artwork-container) {
  padding: 0;
}

.artwork-container {
  width: 100%;
  height: 100%;
  display: block;
}

.page-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.page-swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.page-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.page-list li {
  font-family: 'SF Pro Regular', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 2;
  color: #333;
  padding-left: 16px;
  position: relative;
  text-transform: none;
}

.page-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: #bbb;
}

.page-grid-sketch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.page-grid-sketch span {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  display: block;
}

.page-grid-sketch span:nth-child(5) {
  background: rgba(100, 140, 180, 0.2);
}

/* Page indicator pill */
.flip-indicator {
  position: absolute;
  bottom: clamp(16px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'SF Pro Medium', 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* z-index stacking */
#leaf-0 {
  z-index: 5;
}

#leaf-1 {
  z-index: 4;
}

#leaf-2 {
  z-index: 3;
}

#leaf-3 {
  z-index: 2;
}

#leaf-4 {
  z-index: 1;
}

.flip-leaf.flipped {
  z-index: 10 !important;
}

@media (max-width: 600px) {
  .flipbook {
    width: 85vw;
    height: 65vh;
    margin-left: 24px;
  }

  .flip-page {
    padding: 24px 20px 24px 36px;
  }

  .cover-title {
    font-size: 32px;
  }
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* ===== OUTRO BENTO GRID ===== */
.outro {
  background-color: #1c1c1c;
}

.bento-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

.bento-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Exact proportions based on PNG widths (1663 : 2429 : 1732) */
.col-left {
  flex: 16.63;
}

.col-center {
  flex: 24.29;
}

.col-right {
  flex: 17.32;
}

.bento-card {
  perspective: 1500px;
  width: 100%;
}

.bento-card-inner {
  position: relative;
  width: 100%;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1) 0.4s;
  /* Smooth ease-in-out */
  will-change: transform;
  transform-style: preserve-3d;
  cursor: pointer;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.bento-card:hover .bento-card-inner {
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1) 0s;
  /* Smooth ease-in-out */
  transform: rotateY(180deg) scale(1.02);
}

.bento-card-front {
  position: relative;
  width: 100%;
  backface-visibility: hidden;
  border-radius: 32px;
  overflow: hidden;
  background-color: transparent;
}

.bento-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 32px;
  overflow: hidden;
  background-color: transparent;
  transform: rotateY(180deg);
}

.bento-card-front img,
.bento-card-back img {
  display: block;
  width: 100%;
  height: auto;
  /* Respect exact intrinsic height of the PNG */
  transition: transform 0.5s ease;
}

.bento-card-back img {
  height: 100%;
  /* Fill the container whose height is set by front */
  object-fit: cover;
  /* Do not distort if back PNG has slightly different aspect ratio */
}

@media (max-width: 1000px) {
  .bento-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .col-left,
  .col-right {
    flex: 1 1 45%;
  }

  .col-center {
    flex: 1 1 100%;
    order: -1;
  }
}

@media (max-width: 600px) {
  .bento-container {
    flex-direction: column;
  }

  .col-left,
  .col-center,
  .col-right {
    flex: 1 1 100%;
  }
}

/* ===== CONTACT OVERLAY (CARD 3) ===== */
@font-face {
  font-family: 'Monley';
  src: url('fons/Monley.otf') format('opentype');
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 10;
  pointer-events: none;
  /* Let clicks pass to the card to allow flipping back */
}

.contact-overlay a {
  pointer-events: auto;
  /* Re-enable clicks on links */
}

.explore-social-text {
  font-family: 'Monley', cursive;
  font-size: clamp(26px, 2.5vw, 32px);
  color: #793df8;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.contact-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.social-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-icon img,
.social-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon svg {
  color: #793df8;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon:hover img,
.social-icon:hover svg {
  filter: drop-shadow(0 0 10px rgba(121, 61, 248, 0.6));
}

@media (max-width: 1000px) {
  .explore-social-text {
    font-size: clamp(22px, 3.5vw, 26px);
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 600px) {
  .explore-social-text {
    font-size: clamp(18px, 5vw, 22px);
  }

  .social-icon {
    width: 42px;
    height: 42px;
  }
}

/* ===== CIRCULAR COSMOS LAYOUT (Card 3) ===== */
#card-3 .card-inner {
  background-color: #000000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#card-3 .center-video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 95vw);
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

#card-3 .center-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#card-3 .cosmos-container {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#card-3 .cosmos {
  position: absolute;
  width: 140px;
  height: 220px;
  transform-style: preserve-3d;
}

#card-3 .cosmos-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #7e7e7e;
  animation: cosmos-fall-and-disappear 5s infinite ease-in-out;
  transform-origin: bottom;
  transform: scale(0);
}

#card-3 .cosmos-item img,
#card-3 .cosmos-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes cosmos-fall-and-disappear {
  0% {
    opacity: 0;
    top: 0;
    left: 0;
    transform: scale(1);
  }
  25% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    top: -200px;
    transform: scale(1);
  }
  100% {
    top: -150px;
    left: -300px;
    transform: scale(0);
  }
}

@media (max-width: 900px) {
  .top-header {
    top: 20px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
  }
  
  .glass-nav {
    position: relative;
    left: auto;
    transform: none;
    width: auto;
  }
  
  .show-reel-btn {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: 0;
    font-size: 18px;
    padding: 0.5em 1.5em;
  }
  
  .show-reel-btn:hover {
    transform: translateY(-2px);
  }
  
  .show-reel-btn:active {
    transform: translateY(0);
  }

  /* Outro section stacks bento columns vertically, so it needs auto height on mobile */
  .outro {
    height: auto;
    padding: 100px 24px 60px 24px;
    overflow: visible;
  }
}

@media (max-width: 600px) {
  /* Scale down floating images collage on mobile */
  #card-1 .floating-img {
    width: clamp(120px, 40vw, 180px);
  }

  /* Prevent Card 1 text from overflowing off-screen on mobile */
  #card-1 .negative-text h1 {
    font-size: clamp(1.8rem, 10vw, 3.2rem);
    line-height: 0.95;
    padding: 0 16px;
  }

  /* Scale down Savoir Faire click to reveal assets on mobile */
  #card-2 .img-container.landscape {
    width: clamp(240px, 80vw, 340px);
  }
  #card-2 .img-container.portrait {
    height: clamp(240px, 60vh, 360px);
  }

  /* Scale down cosmos floating background thumbnails to not block the main video player */
  #card-3 .cosmos {
    width: 80px;
    height: 125px;
  }

  /* Optimize popup video container width for maximum visibility on mobile */
  .video-container {
    width: 95%;
  }

  /* Make close modal button neat and highly accessible on mobile */
  .close-video-btn {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
