/* ─────────────────────────────────────────
   TOKENS  (index-only additions)
───────────────────────────────────────── */
:root {
  --red:      #cc1111;
  --red-mid:  #d41515;
  --cream:       #f0eddf;
  --dark:        #2a2926;
  --ink:         #1e1c1a;

  --tex-red:     url('../img/paper-texture-orange.webp');
  --tex-cream:   url('../img/paper-texture-white.webp');
  --tex-dark:    url('../img/paper-texture-dark.webp');

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7,  0, 0.84, 0);

  --fs-hero:     clamp(2.4rem, 7vw, 6rem);
  --fs-section:  clamp(1.8rem, 3.5vw, 3rem);
  --fs-card-h:   clamp(1rem,   1.5vw, 1.25rem);
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body { overflow-x: hidden; }
img  { display: block; max-width: 100%; }
button { font: inherit; border: none; cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--cream);
  background-image: var(--tex-cream);
  background-blend-mode: multiply;
  color: var(--ink);
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ─────────────────────────────────────────
   TEXTURE UTILITY
───────────────────────────────────────── */
.tex-red {
  background-color: var(--red);
  background-image: var(--tex-red);
  background-blend-mode: multiply;
}
.tex-cream {
  background-color: var(--cream);
  background-image: var(--tex-cream);
  background-blend-mode: multiply;
}
.tex-dark {
  background-color: var(--dark);
  background-image: var(--tex-dark);
  background-blend-mode: multiply;
}

/* ─────────────────────────────────────────
   NAV  (index variant)
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  pointer-events: none;
}
.nav-logo {
  pointer-events: auto;
  display: block;
  width: 260px;
  height: auto;
  flex-shrink: 0;
}
.nav-logo svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.25));
}
.logo-tex-wrap { display: block; width: 100%; }
.logo-tex-wrap svg .logo-path { fill: var(--cream); }

.nav-cta {
  pointer-events: auto;
  display: inline-block;
  padding: 0.65rem 1.9rem;
  border-radius: 50px;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s, border-color 0.3s, filter 0.2s;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.25));
  background: var(--red-mid);
}
.nav-cta:hover {
  background: var(--cream);
  color: var(--red);
}

/* Nav over cream background */
.nav.on-cream .logo-tex-wrap svg {
  filter: drop-shadow(0 2px 0 rgba(255,255,255,0.75));
}
.nav.on-cream .logo-tex-wrap svg .logo-path { fill: var(--red); }
.nav.on-cream .nav-cta {
  border-color: var(--red);
  color: var(--red);
  background: var(--cream);
  filter: drop-shadow(0 2px 0 rgba(255,255,255,0.75));
}
.nav.on-cream .nav-cta:hover {
  background: var(--red);
  color: var(--cream);
}
.logo-tex-wrap svg .logo-path { transition: fill 0.3s ease; }


/* ─────────────────────────────────────────
   BLURB
───────────────────────────────────────── */
#blurb {
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.blurb-left {}
.blurb-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,223,0.6);
  margin-bottom: 1.4rem;
}
.blurb-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--cream);
}
.blurb-headline em {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 700;
}
.blurb-right {
  padding-top: 0.25rem;
}
.blurb-body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240,237,223,0.85);
  margin-bottom: 1.1rem;
}
.blurb-body:last-of-type { margin-bottom: 0; }
.blurb-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(240,237,223,0.25);
  flex-wrap: wrap;
}
.blurb-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.blurb-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,237,223,0.55);
}

@media (max-width: 768px) {
  #blurb {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 1.5rem;
  }
}

/* ─────────────────────────────────────────
   SELECTED WORK — header
───────────────────────────────────────── */
#work { padding: 5rem 3rem 0; }
.work-heading-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0;
}
.work-heading {
  font-size: 100px;
  font-weight: 400;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}
.work-heading em { font-style: normal; font-weight: 800; }
.work-rule {
  height: 1.5px;
  background: var(--red);
  opacity: 0.35;
  flex: 0 0 160px;
  border: none;
}

/* ─────────────────────────────────────────
   PROJECT SECTIONS — shared
───────────────────────────────────────── */
.project {
  height: 100vh;
  position: relative;
  padding: 2rem 3rem;
  overflow: hidden;
}

/* Info card */
.info-card {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  width: clamp(220px, 36vw, 500px);
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 10;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.info-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.info-card-title {
  font-size: var(--fs-card-h);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
}

/* Arrow: clone trick — original slides out top-right, clone slides in from bottom-left */
.info-card-arrow {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  width: 32px; height: 32px;
}
.info-card-arrow img {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.25s ease;
  transform: translate(0, 0);
}
.info-card:hover .info-card-arrow img {
  transform: translate(10px, -10px);
  opacity: 0;
}
.info-card-arrow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/info-arrow.svg') center / 32px 32px no-repeat;
  transform: translate(-10px, 10px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.25s ease;
}
.info-card:hover .info-card-arrow::after {
  transform: translate(0, 0);
  opacity: 1;
}
.info-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: none;
  color: #fff;
  font-weight: 500;
}
.tag-red { background: var(--red); }
.tag-dark   { background: transparent; border: 1.5px solid rgba(240,237,223,0.35); color: rgba(240,237,223,0.75); }
.info-card-desc {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(240,237,223,0.55);
}

/* ─────────────────────────────────────────
   PROJECT 1 — ARE YOU FREE?
───────────────────────────────────────── */
#project-ayf { display: flex; align-items: center; justify-content: center; }
.phones-stage { position: relative; width: 1120px; height: 600px; flex-shrink: 0; }
.phone {
  position: absolute;
  width: 240px; height: 480px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.22);
  background: var(--cream);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.ayf-icon { position: absolute; pointer-events: none; }
.ayf-sun       { width: 90px;  top:  20px; right: 80px;  }
.ayf-clock     { width: 70px;  top:  60px; left: 130px;  }
.ayf-cloud     { width: 110px; top:  10px; left: 280px;  }
.ayf-star1     { width: 40px;  top:  80px; right: 200px; }
.ayf-star2     { width: 30px;  bottom: 100px; right: 100px; }
.ayf-star3     { width: 35px;  bottom: 80px;  left: 120px;  }
.ayf-arrow1    { width: 55px;  top: 160px; right: 60px;  }
.ayf-bird      { width: 65px;  bottom: 60px;  right: 200px; }
.ayf-birdcage  { width: 75px;  bottom: 50px;  left: 60px;   }
.ayf-scribble1 { width: 80px;  top: 30px;  left: 60px;   }
.ayf-scribble2 { width: 70px;  bottom: 120px; right: 50px;  }
.ayf-dot       { width: 20px;  top: 200px; left: 200px;  }
.phone-0 { left: 50%; top: 50%; transform-origin: center bottom; }
.phone-1 { left: 50%; top: 50%; transform-origin: center bottom; }
.phone-2 { left: 50%; top: 50%; transform-origin: center bottom; }
.phone-3 { left: 50%; top: 50%; transform-origin: center bottom; }
.phone-4 { left: 50%; top: 50%; transform-origin: center bottom; }

/* ─────────────────────────────────────────
   PROJECT 2 — VERVE VOICES
───────────────────────────────────────── */
#project-vv { overflow: hidden; display: flex; align-items: center; }
.vv-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  will-change: transform;
}
.vv-logos { display: flex; flex-direction: column; gap: 1rem; padding-left: 1rem; flex-shrink: 0; }
.vv-logo-card {
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px; height: 220px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.vv-logo-card img { width: 100%; height: auto; object-fit: contain; }
.vv-logo-card.on-white { background: #fff; }
.vv-logo-card.on-red   { background: #c90d3e; }
.vv-logo-card.on-dark  { background: #1a1a1a; }
.vv-browsers {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  height: calc(3 * 220px + 2 * 1rem);
}
.browser-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  background: #fff;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}
.browser-bar {
  height: 32px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  flex-shrink: 0;
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }
.browser-screen { flex: 1; overflow: hidden; position: relative; }
.browser-screen-inner { will-change: transform; }
.browser-screen-inner img { width: 100%; display: block; }

/* ─────────────────────────────────────────
   PROJECT 3 — COMMUNITY PANELS
───────────────────────────────────────── */
#project-cp { display: flex; flex-direction: column; padding-bottom: 7rem; }
.carousel-wrap { flex: 1; overflow: hidden; padding: 2rem 0 1rem; }
.carousel-track {
  display: flex;
  gap: 1.5%;
  height: 100%;
  transition: transform 0.55s var(--ease-expo);
  will-change: transform;
}
.carousel-slide {
  min-width: 40%;
  height: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.38;
  transform: scale(0.70);
  transition: opacity 0.45s var(--ease-expo), transform 0.45s var(--ease-expo), box-shadow 0.45s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.carousel-slide.active { opacity: 1; transform: scale(1); box-shadow: 0 28px 64px rgba(0,0,0,0.20); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.carousel-controls {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  z-index: 10;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 4px;
  border: none;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-btn::before {
  content: '';
  display: block;
  width: 10px; height: 10px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  border-radius: 1px;
}
#cp-prev::before { transform: rotate(-135deg) translate(-1px, 1px); }
#cp-next::before { transform: rotate(45deg) translate(-1px, 1px); }
.carousel-btn:hover { background: var(--ink); }
.carousel-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.carousel-count {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  min-width: 3rem;
  text-align: center;
}

/* ─────────────────────────────────────────
   OTHER WORKS
───────────────────────────────────────── */
#other-works { padding: 5rem 3rem 4rem; overflow: hidden; }
.other-works-header { margin-bottom: 2.5rem; display: flex; align-items: center; gap: 1.5rem; }
.other-works-heading {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}
.other-works-heading em { font-style: normal; font-weight: 800; }
.other-works-rule { height: 1.5px; background: var(--red); opacity: 0.35; flex: 0 0 120px; border: none; }
.thumb-grid-wrap { overflow: hidden; width: 100%; }
.thumb-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.6rem; width: 200%; }
.thumb-item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; cursor: default; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s var(--ease-expo); }
.thumb-item:hover img { transform: scale(1.07); }
.thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(26,22,16,0.78);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem; opacity: 0; transition: opacity 0.3s ease; padding: 0.75rem;
}
.thumb-item:hover .thumb-overlay { opacity: 1; }
.thumb-label { color: #f0eddf; font-size: clamp(0.9rem, 1.4vw, 1.2rem); text-align: center; line-height: 1.3; letter-spacing: 0.02em; font-weight: 700; }
.thumb-desc  { color: #c8c4b4; font-size: clamp(0.75rem, 1.1vw, 1rem); text-align: center; line-height: 1.45; max-width: 90%; margin-top: 0.25rem; }
.thumb-tag   { margin-top: 0.5rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--red); color: #fff; padding: 0.2rem 0.65rem; border-radius: 100px; }


/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 1.25rem 2rem; }
  #hero { padding: 8rem 2rem 5rem; }
  #work { padding: 4rem 2rem 0; }
  .project { padding: 1.5rem 2rem; }
  .info-card { right: 2rem; bottom: 2rem; }
  #project-vv { grid-template-columns: 1fr; gap: 2rem; }
  .phones-stage { width: 700px; height: 420px; }
}
@media (max-width: 600px) {
  .nav-logo { width: 120px; }
  .nav { padding: 1rem 1.25rem; }
  #hero { padding: 7rem 1.5rem 4rem; }
  #work { padding: 3rem 1.5rem 0; }
  .project { padding: 1rem 1.5rem; }
  .info-card { right: 1.5rem; bottom: 1.5rem; width: calc(100% - 3rem); }
  .phones-stage { width: 360px; height: 300px; }
  .carousel-wrap { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  .carousel-track { transition: none; }
}
