/* ============================================================
   POP BRAND — Global Stylesheet
   
   Pages:  Homepage, Projects, Project Detail
   Font:   Bricolage Grotesque (Google Fonts)
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg: #f2f1ee;
  --band: #e9e8e3;
  --ink: #1c4b34;
  --ink-soft: #2f5f45;
  --accent: #c9f27a;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 40px rgba(20,50,35,0.18);
  --shadow-soft: 0 12px 30px rgba(20,50,35,0.08);
  --transition-smooth: .55s cubic-bezier(.22,.68,0,1.01);
  --transition-fast: .2s ease;
  --max-width: 1400px;
  --content-width: 1200px;
}

/* ---------- ABOUT PAGE ---------- */
.about-hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 40px 60px;
}
.about-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.about-hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -1px;
}
.about-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid rgba(28,75,52,0.12);
}
.about-text p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 24px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 6px;
}
.about-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-detail-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about-detail-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.about-services {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
  border-top: 1px solid rgba(28,75,52,0.12);
}
.about-services h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 48px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.service-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-soft);
  opacity: 0.5;
}
.service-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.service-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* About responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .about-hero { padding: 50px 20px 40px; }
  .about-hero h1 { font-size: 36px; }
  .about-body { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px; }
  .about-text p { font-size: 16px; }
  .about-services { padding: 40px 20px 60px; }
  .services-grid { grid-template-columns: 1fr; gap: 32px; }
}
*, *::before, *::after { box-sizing: border-box; }
html { 
  margin: 0; 
  padding: 0;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ---------- NAVIGATION ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color var(--transition-fast);
  position: relative;
}
.site-nav a:not(.contact-pill)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width var(--transition-fast);
}
.site-nav a:not(.contact-pill):hover::after {
  width: 100%;
}
.site-nav a:hover {
  color: var(--ink-soft);
}
.contact-pill {
  background: var(--ink);
  color: var(--white) !important;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background var(--transition-fast);
}
.contact-pill:hover {
  background: var(--ink-soft);
}
.contact-pill::after { display: none !important; }
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(28,75,52,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.theme-toggle:hover {
  border-color: var(--ink);
  background: rgba(28,75,52,0.05);
}

/* ---------- HERO (Homepage) ---------- */
.hero {
  text-align: center;
  padding: 36px 20px 50px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: -0.5px;
}

/* ---------- CAROUSEL BAND ---------- */
.band {
  padding: 70px 0 46px;
  position: relative;
}
.carousel-wrap {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}
.card {
  position: absolute;
  width: 230px;
  height: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth), filter var(--transition-smooth);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.card .art {
  position: absolute;
  inset: 0;
}
.card .label {
  position: relative;
  z-index: 2;
  padding: 16px 12px;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .3px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(28,75,52,0.4);
  background: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.nav-btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-50%) scale(1.06);
}
.nav-btn.prev { left: 60px; }
.nav-btn.next { right: 60px; }
.nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
}
.caption {
  text-align: center;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin: 40px 20px 0;
}
.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(28,75,52,0.25);
  cursor: pointer;
  transition: background var(--transition-fast), width var(--transition-fast);
}
.dot.active {
  background: var(--ink);
  width: 20px;
  border-radius: 4px;
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  display: flex;
  justify-content: center;
  padding: 60px 20px 90px;
}
.cta-inner {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  max-width: 600px;
  width: 100%;
}
.cta-inner span {
  flex: 1;
  padding: 20px 28px;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.cta-inner button {
  border: none;
  background: var(--ink);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 20px 32px;
  border-radius: var(--radius-pill);
  margin: 6px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.cta-inner button:hover {
  background: var(--ink-soft);
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  padding: 80px 20px 50px;
}
.section-header h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.section-header p {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- MASONRY GRID (No Gap) ---------- */
.masonry-grid {
  columns: 3;
  column-gap: 0;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0;
  line-height: 0;
  font-size: 0;
}
.masonry-item {
  break-inside: avoid;
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
.masonry-item img {
  width: 100%;
  display: block;
  vertical-align: bottom;
  transition: transform 0.6s ease;
}
.masonry-item:hover img {
  transform: scale(1.03);
}
.masonry-item video {
  width: 100%;
  display: block;
  vertical-align: bottom;
  transition: transform 0.6s ease;
  object-fit: cover;
}
.masonry-item:hover video {
  transform: scale(1.03);
}
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,75,52,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: background 0.4s ease, opacity 0.4s ease;
}
.masonry-item:hover .masonry-overlay {
  background: rgba(28,75,52,0.75);
  opacity: 1;
}
.masonry-overlay .project-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
}
.masonry-overlay .project-view {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ---------- MORE PROJECTS SECTION ---------- */
.more-projects {
  padding: 100px 0 60px;
}
.more-projects-header {
  text-align: center;
  margin-bottom: 50px;
}
.more-projects-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

/* ---------- PROJECT DETAIL ---------- */
.detail-hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
}
.detail-hero .project-type {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.detail-hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}
.detail-meta {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}
.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-meta-item .meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.detail-meta-item .meta-value {
  font-size: 16px;
  font-weight: 600;
}
.detail-description {
  max-width: 700px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- PRESENTING IMAGES ---------- */
.presenting-images {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.presenting-images img {
  width: 100%;
  display: block;
}
.presenting-images .detail-video {
  width: 100%;
  display: block;
  margin-bottom: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 40px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(28,75,52,0.1);
  margin-top: 80px;
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-copy {
  font-size: 13px;
  color: rgba(28,75,52,0.5);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- RESPONSIVE: TABLET (768–1200px) ---------- */
@media (max-width: 1200px) {
  .site-header { padding: 24px 40px; }
  .hero h1 { font-size: 44px; }
  .masonry-grid { columns: 2; }
  .detail-hero { padding: 40px 30px 60px; }
  .presenting-images { padding: 0 30px; }
  .section-header h1 { font-size: 38px; }
}

/* ---------- RESPONSIVE: MOBILE (<768px) ---------- */
@media (max-width: 768px) {
  .site-header {
    padding: 20px 24px;
  }
  .site-nav a:not(.contact-pill) {
    display: none;
  }
  .hero {
    padding: 24px 16px 36px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .carousel-wrap {
    height: 260px;
  }
  .card {
    width: 150px;
    height: 190px;
  }
  .nav-btn.prev { left: 12px; }
  .nav-btn.next { right: 12px; }
  .caption { font-size: 15px; margin-top: 30px; }
  .band { padding: 50px 0 36px; }
  .cta-strip { padding: 40px 16px 60px; }
  .cta-inner span { font-size: 16px; padding: 16px 20px; }
  .cta-inner button { padding: 16px 24px; font-size: 14px; }

  /* Projects */
  .section-header { padding: 50px 16px 30px; }
  .section-header h1 { font-size: 32px; }

  /* Detail */
  .detail-hero { padding: 30px 20px 50px; }
  .detail-hero h1 { font-size: 32px; }
  .detail-meta { flex-direction: column; gap: 16px; }
  .detail-description { font-size: 15px; }
  .presenting-images { padding: 0 20px; }
  .more-projects { padding: 60px 0 40px; }
  .more-projects-header h2 { font-size: 24px; }

  /* Masonry */
  .masonry-grid { columns: 1; }

  /* Footer */
  .site-footer {
    padding: 30px 24px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links { gap: 24px; }
}
