/* ===== Fonts ===== */
@font-face {
  font-family: 'FuturaCondXBold';
  src: url('../fonts/Futura-CondensedExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FuturaCondMedium';
  src: url('../fonts/Futura-CondensedMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FuturaBold';
  src: url('../fonts/Futura-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FuturaMedium';
  src: url('../fonts/Futura-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FuturaMediumItalic';
  src: url('../fonts/Futura-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Ploni';
  src: url('../fonts/ploni/ploni-regular-aaa.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NextExitFOT';
  src: url('../fonts/NextExitFOT-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NextExitFOT';
  src: url('../fonts/NextExitFOT-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NextExitFOT';
  src: url('../fonts/NextExitFOT-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #F2F5F3;
  --purple: #3C2557;
  --yellow: #FDCC3C;
  --side-pad: clamp(24px, 5.5vw, 88px); /* max was 110px */
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--purple);
  font-family: 'FuturaMedium', sans-serif;
  overflow-x: hidden;
}

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--side-pad);
  z-index: 1000;
  background: var(--bg);
  pointer-events: none;
}
.site-header .logo,
.site-header .nav {
  pointer-events: auto;
}
.site-header .logo {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.site-header.is-scrolled .logo {
  opacity: 1;
  pointer-events: auto;
}

.logo {
  font-family: 'FuturaMedium', sans-serif;
  font-size: clamp(20px, 2vw, 20.8px); /* max was 26px */
  letter-spacing: 0.02em;
  color: var(--purple);
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 38.4px); /* max was 48px */
}
.nav a {
  font-family: 'FuturaMedium', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav a:hover { border-bottom-color: currentColor; }

/* ===== Scroll stage (shared coordinate space for hero + projects) ===== */
.scroll-stage {
  position: relative;
}

.card-layer {
  position: static;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 var(--side-pad);
  padding-top: clamp(130px, 17vh, 168px); /* max was 210px */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-hi {
  font-family: 'FuturaMediumItalic', sans-serif;
  font-style: italic;
  color: var(--yellow);
  font-size: clamp(20px, 2.1vw, 25.6px); /* max was 32px */
  margin-bottom: 4px;
}

.hero-name {
  font-family: 'FuturaCondXBold', sans-serif;
  font-weight: 800;
  color: var(--purple);
  font-size: clamp(64px, 9.2vw, 140.8px); /* max was 176px */
  line-height: 0.86;
  letter-spacing: -0.005em;
}
.hero-name .line { display: block; }

.hero-tags {
  position: absolute;
  top: calc(clamp(130px, 17vh, 168px) + clamp(28px, 3vw, 36.8px)); /* maxes were 210px, 46px */
  right: clamp(18px, 3vw, 44.8px); /* max was 56px */
  z-index: 150;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(14px, 1.5vw, 17.6px); /* max was 22px */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  pointer-events: none;
}
.hero-tags .sep { color: var(--yellow); }

.scroll-arrow {
  position: absolute;
  top: 60vh;
  left: clamp(18px, 3vw, 44.8px); /* max was 56px */
  width: clamp(10px, 0.9vw, 12px); /* max was 15px */
  z-index: 150;
  pointer-events: none;
  animation: scroll-arrow-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* transition spacer gives extra scroll distance for the card migration */
.transition-spacer {
  height: 4vh;
}

/* ===== Cards (shared elements, absolutely positioned in .scroll-stage) ===== */
.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 30vw;
  aspect-ratio: 1 / 1;
  transform-origin: 50% 50%;
  will-change: transform, width, height, left, top;
  pointer-events: none;
}

.card-hitzone {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}
.card-inner {
  position: absolute;
  inset: 0;
  background: var(--bg);
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.4s ease, inset 0.25s ease;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.card-img-hover {
  opacity: 0;
}

.card.is-hover .card-inner {
  inset: -14px;
  box-shadow: 0 30px 60px -20px rgba(60, 37, 87, 0.25);
}

/* ===== Projects ===== */
.projects {
  position: relative;
  scroll-margin-top: 100px;
  padding: 60px var(--side-pad) 440px;
}

.projects-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
  margin-left: clamp(20px, 5vw, 80px); /* max was 100px */
}
.projects-title .pre {
  font-family: 'FuturaMediumItalic', sans-serif;
  font-style: italic;
  color: var(--yellow);
  font-size: clamp(18px, 1.8vw, 22.4px); /* max was 28px */
}
.projects-title .main {
  font-family: 'FuturaCondXBold', sans-serif;
  font-weight: 800;
  color: var(--purple);
  font-size: clamp(44px, 5.6vw, 67.2px); /* max was 84px */
  line-height: 0.9;
}

.projects-grid {
  --card-size: clamp(340px, 40vw, 464px); /* max was 580px */
  --col-gap: clamp(90px, 10vw, 152px); /* max was 190px */
  --row-step: calc(var(--card-size) + clamp(56px, 6vw, 88px)); /* max was 110px */
  position: relative;
  height: calc(var(--row-step) * 3 + var(--card-size) + 80px);
  max-height: 4200px;
}

.project-entry {
  position: absolute;
  width: var(--card-size);
}
.project-entry[data-slot="1"] { left: calc(50% - var(--card-size) - var(--col-gap) / 2); top: 0; }
.project-entry[data-slot="2"] { left: calc(50% + var(--col-gap) / 2); top: var(--row-step); }
.project-entry[data-slot="3"] { left: calc(50% - var(--card-size) - var(--col-gap) / 2); top: calc(var(--row-step) * 2); }
.project-entry[data-slot="4"] { left: calc(50% + var(--col-gap) / 2); top: calc(var(--row-step) * 3); }

.project-slot {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.project-caption {
  margin-top: 24px;
}
.pc-title {
  font-family: 'FuturaCondMedium', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 24px); /* max was 30px */
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.pc-title--off-record { color: var(--yellow); }
.pc-title--skin-lab { color: #3B5345; }
.pc-title--zooz {
  color: #8ED4F2;
  font-family: 'NextExitFOT', sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  font-size: clamp(28px, 2.6vw, 32px); /* max was 40px */
  margin-bottom: 7px;
}
.pc-title--our-mix { color: #8B1E3F; }
.pc-title a { color: inherit; text-decoration: none; }

.pc-tags,
.pc-desc {
  font-family: 'FuturaMedium', sans-serif;
  color: var(--purple);
  line-height: 1.4;
}
.pc-tags {
  font-size: clamp(15px, 1.4vw, 16px); /* max was 20px */
  margin-bottom: 8px;
}
.pc-desc {
  font-size: clamp(15px, 1.4vw, 16px); /* max was 20px */
}

/* ===== About ===== */
.about {
  padding: 180px clamp(40px, 9vw, 128px) 160px; /* clamp max was 160px */
}

.about-inner {
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: minmax(280px, 485.6px) minmax(280px, 512.8px); /* maxes were 607px, 641px */
  justify-content: center;
  column-gap: clamp(80px, 8vw, 128px); /* max was 160px */
  align-items: center;
}

.about-heading {
  font-family: 'FuturaBold', sans-serif;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: clamp(26px, 2.1vw, 32px); /* max was 40px */
  line-height: 1.2;
  margin-bottom: clamp(24px, 2.3vw, 35.2px); /* max was 44px */
}

.about-bio p {
  font-family: 'FuturaMedium', sans-serif;
  color: var(--purple);
  text-transform: uppercase;
  font-size: clamp(12px, 0.85vw, 12.8px); /* max was 16px */
  line-height: 1.63;
}
.about-bio p + p { margin-top: 1.63em; }

.about-connect {
  margin-top: clamp(34px, 3.3vw, 51.2px); /* max was 64px */
}
.about-connect-title {
  font-family: 'FuturaMedium', sans-serif;
  color: var(--yellow);
  text-transform: uppercase;
  font-size: clamp(15px, 1.05vw, 16px); /* max was 20px */
  margin-bottom: clamp(10px, 0.9vw, 12.8px); /* max was 16px */
}
.about-connect-item + .about-connect-item { margin-top: clamp(10px, 0.9vw, 12.8px); } /* max was 16px */
.about-connect-label,
.about-connect-value {
  display: block;
  font-family: 'Ploni', sans-serif;
  color: var(--purple);
  text-transform: uppercase;
  font-size: clamp(15px, 1.15vw, 15.2px); /* max was 19px */
  line-height: 1.36;
}
.about-connect-link { text-decoration: underline; }

.about-photo {
  width: 100%;
  aspect-ratio: 641 / 855;
  max-height: 85vh;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Placeholder sections ===== */
.placeholder-section {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--side-pad);
}
.placeholder-section h2 {
  font-family: 'FuturaCondXBold', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  color: var(--purple);
}

/* ===== Project Nav (prev/next case study, above footer) ===== */
.project-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 19.2px; /* was 24px */
  padding: 72px var(--side-pad) 76.8px; /* was 90px / 96px */
}

.project-nav-side {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.project-nav-next { align-items: flex-end; text-align: right; }
.project-nav-side--disabled { pointer-events: none; }

.project-nav-title {
  font-family: 'FuturaCondMedium', sans-serif;
  font-size: clamp(17px, 1.6vw, 22.4px); /* max was 28px */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.project-nav-title--off-record { color: var(--yellow); }
.project-nav-title--skin-lab { color: #3B5345; }
.project-nav-title--zooz {
  font-family: 'NextExitFOT', sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  font-size: clamp(21px, 2.1vw, 29.6px); /* max was 37px */
  color: #8ED7F3;
}
.project-nav-title--our-mix { color: #8B1E3F; }

.project-nav-label {
  font-family: 'FuturaMedium', sans-serif;
  font-size: clamp(13px, 1.3vw, 17.6px); /* max was 22px */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.project-nav-arrow {
  display: block;
  width: clamp(70px, 6vw, 92.8px); /* max was 116px */
  height: auto;
}
.project-nav-prev .project-nav-arrow { transform: rotate(180deg); }
.project-nav-next:hover .project-nav-arrow { animation: nav-arrow-bounce-next 0.9s ease-in-out infinite; }
.project-nav-prev:hover .project-nav-arrow { animation: nav-arrow-bounce-prev 0.9s ease-in-out infinite; }

@keyframes nav-arrow-bounce-next {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}
@keyframes nav-arrow-bounce-prev {
  0%, 100% { transform: rotate(180deg) translateX(0); }
  50% { transform: rotate(180deg) translateX(10px); }
}

.project-nav-top {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-end;
  font-family: 'FuturaMedium', sans-serif;
  font-size: clamp(13px, 1.1vw, 16px); /* max was 20px */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  cursor: pointer;
}
.project-nav-top img {
  display: block;
  width: clamp(24px, 2vw, 30.4px); /* max was 38px */
  height: auto;
  transform: rotate(-90deg);
}
.project-nav-top:hover img { animation: nav-arrow-bounce-top 0.9s ease-in-out infinite; }

@keyframes nav-arrow-bounce-top {
  0%, 100% { transform: rotate(-90deg) translateX(0); }
  50% { transform: rotate(-90deg) translateX(6px); }
}

/* ===== Site Footer ===== */
.site-footer {
  position: relative;
  background: var(--bg);
  margin-top: 80px; /* was 100px */
  padding: 35.2px var(--side-pad); /* was 44px */
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 19.2px; /* was 24px */
}
.site-footer::before {
  content: '';
  position: absolute;
  left: calc(var(--side-pad) + 38.4px); /* offset was 48px */
  right: calc(var(--side-pad) + 38.4px); /* offset was 48px */
  top: 0;
  height: 1px;
  background: rgba(60, 37, 87, 0.35);
}

.footer-left,
.footer-center {
  display: flex;
  flex-direction: column;
}
.footer-left { gap: 6px; }
.footer-center { align-items: center; gap: 14px; }

.footer-year,
.footer-rights,
.footer-right a,
.footer-right .dot {
  font-family: 'FuturaMedium', sans-serif;
  font-size: clamp(10px, calc(1vw - 3px), 13.6px); /* max was 17px */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--purple);
}

.footer-name {
  font-family: 'FuturaMedium', sans-serif;
  font-size: clamp(16px, calc(1.9vw - 3px), 23.2px); /* max was 29px */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-right a { text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .hero-tags { display: none; }

  .site-header { padding: 20px var(--side-pad); }
  .nav { gap: 7px; flex-wrap: nowrap; justify-content: flex-end; }
  .nav a { font-size: 8px; letter-spacing: 0.05em; }

  .site-footer { flex-direction: column; align-items: center; text-align: center; gap: 28px; padding: 36px var(--side-pad); }
  .footer-left { align-items: center; }
  .footer-right { justify-content: center; }

  .project-nav { padding: 48px var(--side-pad) 56px; gap: 12px; }
  .project-nav-title { font-size: 15px; }
  .project-nav-title--zooz { font-size: 19px; }
  .project-nav-label { font-size: 10px; margin-bottom: 6px; }
  .project-nav-arrow { width: 42px; }
  .project-nav-top { font-size: 11px; gap: 6px; }
  .project-nav-top img { width: 18px; }

  .about { padding-top: 80px; }
  .about-inner { grid-template-columns: 1fr; row-gap: 40px; }
  .about-photo { order: -1; max-width: 420px; max-height: 60vh; margin: 0 auto; }

  .projects-grid { height: auto; display: flex; flex-direction: column; }
  .project-entry,
  .project-entry[data-slot="1"],
  .project-entry[data-slot="2"],
  .project-entry[data-slot="3"],
  .project-entry[data-slot="4"] {
    position: relative;
    left: 0;
    top: 0;
    width: 78vw;
    margin: 0 auto 60px;
  }
}
