/* ==========================================
   Marco Paretti Portfolio
   ========================================== */

/* ==========================================
   SELF-HOSTED FONTS
   ========================================== */
@font-face {
  font-family: 'Arbutus Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/arbutus-slab-400.woff2') format('woff2'),
       url('fonts/arbutus-slab-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300.woff2') format('woff2'),
       url('fonts/inter-300.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2'),
       url('fonts/inter-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2'),
       url('fonts/inter-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2'),
       url('fonts/inter-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2'),
       url('fonts/inter-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-800.woff2') format('woff2'),
       url('fonts/inter-800.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/inter-900.woff2') format('woff2'),
       url('fonts/inter-900.ttf') format('truetype');
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #FAF8F3;
  color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

mark {
  background: transparent;
  color: #000;
  padding: 4px 12px;
  display: inline-block;
  position: relative;
  z-index: 0;
}

mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #FFE659;
  transform: rotate(-1deg);
  border-radius: 2px;
  z-index: -1;
}

/* Placeholder (remove when real images are added) */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ccc;
  background: #eee;
  color: #999;
  font-size: 14px;
  user-select: none;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000;
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
}

.header-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.7;
}

.header-cta {
  display: inline-block;
  padding: 8px 20px;
  border: 1.5px solid #fff;
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.header-cta:hover {
  background: #fff;
  color: #000;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* When mobile nav is open: yellow header */
.header.menu-open {
  background: #FFE659;
}

.header.menu-open .header-logo {
  color: #000;
}

.header.menu-open .hamburger span {
  background: #000;
}

/* Hamburger X animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFE659;
  z-index: 998;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: #000;
  font-size: 40px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.5px;
  align-self: flex-start;
  margin-left: 40px;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.hero-bg video,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: #d4cfc6;
  font-size: 18px;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.hero-tagline {
  font-family: 'Arbutus Slab', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
}

.hero-tagline mark {
  font-size: 22px;
}

.hero-name {
  font-size: clamp(72px, 13vw, 180px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -4px;
  line-height: 0.9;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

/* ==========================================
   ABOUT INTRO
   ========================================== */
.about-intro {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.section-label-circle {
  display: inline-block;
  position: relative;
  font-size: 20px;
  font-weight: 400;
  color: #000;
  margin-bottom: 24px;
  font-style: italic;
  padding: 8px 36px;
}

.hand-circle {
  position: relative;
  display: inline-block;
}

.hand-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 50px);
  height: calc(100% + 28px);
  background: url('img/hand-circle.webp') center/contain no-repeat;
  pointer-events: none;
}

.hand-circle--big::after {
  width: calc(100% + 60px);
  height: calc(100% + 36px);
  transform: translate(-50%, -50%) rotate(5deg);
}

.hand-circle--white::after {
  filter: invert(1);
}

.hand-drawn-ellipse {
  position: absolute;
  top: -4px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 8px);
  pointer-events: none;
}

.hand-drawn-ellipse ellipse {
  stroke: #bbb;
  stroke-width: 1.2;
}

.about-intro-heading {
  font-size: clamp(40px, 7vw, 90px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 40px;
}

.underline-accent {
  text-decoration: underline;
  text-decoration-color: #FFE659;
  text-underline-offset: 6px;
  text-decoration-thickness: 4px;
}

.about-intro-text {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.about-intro-text p {
  margin-bottom: 16px;
}

.text-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.6;
}

.about-photo-block {
  max-width: 500px;
  margin: 60px auto 0;
}

.about-photo-img {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: #e8e4dc;
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.how-it-works {
  padding: 100px 0;
  background-image:
    linear-gradient(rgba(200,200,200,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,200,200,0.3) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #FAF8F3;
}

.section-title-hand {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  text-align: center;
  margin-bottom: 28px;
}

.how-subtitle {
  text-align: center;
  font-family: 'Arbutus Slab', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 60px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.how-card {
  text-align: center;
}

.how-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #e0ddd6;
  object-fit: cover;
  display: block;
}

.how-card h3 {
  font-family: 'Arbutus Slab', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
}

/* ==========================================
   FEATURED ILLUSTRATION
   ========================================== */
.featured-illustration {
  width: 100%;
  overflow: hidden;
}

.featured-img-placeholder {
  width: 100%;
  height: 60vh;
  background: #d8d4cc;
  font-size: 18px;
}

.featured-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   COLLABORATIONS
   ========================================== */
.collaborations {
  padding: 100px 0;
}

.collab-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-label {
  display: inline-block;
  font-family: 'Arbutus Slab', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 24px;
}

.collab-text {
  min-width: 0;
}

.collab-brands {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.collab-brand-item {
  display: block;
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

.collab-brand-item::before {
  content: '';
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 20px;
  background: url('img/arrow.webp') center/contain no-repeat;
  opacity: 0;
  transition: left 0.3s ease, opacity 0.3s ease;
}

.collab-brand-item:hover {
  padding-left: 80px;
}

.collab-brand-item:hover::before {
  left: 0;
  opacity: 1;
}

.collab-image {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.collab-img-placeholder {
  width: 80%;
  height: 100%;
  display: block;
  border-radius: 8px;
  margin-left: auto;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.2s ease;
}

/* ==========================================
   PORTFOLIO GALLERY
   ========================================== */
.portfolio-gallery {
  padding: 100px 0;
  background-color: #FAF8F3;
}

.section-title-big {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portfolio-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
}

.portfolio-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #e0ddd6;
  overflow: hidden;
}

.portfolio-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.portfolio-card p {
  font-size: 13px;
  color: #888;
}

/* ==========================================
   SOCIAL MEDIA
   ========================================== */
.social-media {
  overflow: hidden;
  position: relative;
}

.social-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.social-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 370px); /* extend to cover reel carousel below */
  background: #2a2520;
  font-size: 16px;
  border: none;
  color: rgba(255,255,255,0.3);
}

.social-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 370px);
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.social-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 80px 40px 60px;
  max-width: 900px;
}

.social-label {
  color: #ddd;
}

.social-label .hand-drawn-ellipse ellipse {
  stroke: rgba(255,255,255,0.5);
}

.social-title {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 30px;
  font-style: italic;
}

.social-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

/* Comment cards */
.social-comments {
  position: relative;
  height: 220px;
  margin-top: 40px;
}

.comment-card {
  position: absolute;
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 300px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: flex;
  gap: 12px;
  text-align: left;
}

.comment-card-1 {
  left: 5%;
  top: 10px;
  transform: rotate(-3deg);
}

.comment-card-2 {
  right: 5%;
  top: 0;
  transform: rotate(2deg);
}

.comment-card-3 {
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  bottom: 0;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
  object-fit: cover;
  filter: blur(1.5px);
}

.comment-user {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.comment-text {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.comment-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

.comment-likes {
  color: #e74c3c;
}

/* Reel carousel */
.reel-carousel-wrap {
  position: relative;
  background: transparent;
  padding: 24px 0;
  z-index: 3;
}

.reel-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 40px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.reel-carousel::-webkit-scrollbar {
  display: none;
}

.reel-item {
  flex-shrink: 0;
  width: 180px;
  height: 320px;
  border-radius: 12px;
  background: #333;
  border: 1px solid #555;
  color: #666;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

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

.reel-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
}

.reel-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.reel-arrow:hover {
  background: rgba(255,255,255,0.3);
}

/* Video modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.active {
  display: flex;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(0, 0, 0, 0.55);
}
.video-modal-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
  max-height: 90vh;
  width: 90%;
}
.video-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.video-modal-close:hover { opacity: 1; }
.video-modal-player {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 85vh;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  border: none;
}
.video-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 16px;
  opacity: 0.75;
  transition: opacity 0.2s;
  line-height: 1;
}
.video-modal-arrow:hover { opacity: 1; }
.video-modal-arrow--prev { left: 16px; }
.video-modal-arrow--next { right: 16px; }

@media (max-width: 600px) {
  .video-modal-content {
    width: 75%;
    max-width: none;
  }
  .video-modal-arrow--prev { left: 2px; }
  .video-modal-arrow--next { right: 2px; }
  .video-modal-arrow { font-size: 28px; padding: 8px; }
}

/* ==========================================
   PORTFOLIO PAGE
   ========================================== */
.portfolio-page {
  margin-top: 64px;
  padding: 60px 0 80px;
  background-color: #FAF8F3;
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.portfolio-page-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 48px;
  font-style: normal;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.portfolio-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.portfolio-row {
  display: grid;
  gap: 8px;
  align-items: stretch;
}

.portfolio-cell {
  border-radius: 4px;
  overflow: hidden;
}

.portfolio-row-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(0, 0, 0, 0.55);
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 16px;
  opacity: 0.75;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-arrow:hover { opacity: 1; }
.lightbox-arrow--prev { left: 16px; }
.lightbox-arrow--next { right: 16px; }

@media (max-width: 550px) {
  .portfolio-row--vh,
  .portfolio-row--hv,
  .portfolio-row--vvv {
    grid-template-columns: 1fr;
  }
  .portfolio-row--vh .portfolio-cell,
  .portfolio-row--hv .portfolio-cell,
  .portfolio-row--vvv .portfolio-cell {
    aspect-ratio: 4/3;
  }
}

/* ==========================================
   COLLAB PAGE — HERO
   ========================================== */
.collab-hero {
  margin-top: 64px;
  padding: 100px 0 80px;
  background: #FFE659;
}

.collab-hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 28px;
}

.collab-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.collab-hero-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.collab-hero-list li {
  margin-bottom: 4px;
}

/* Section title with hand-drawn circle on a word */
.section-title-circle {
  position: relative;
  display: inline-block;
}

.section-title-circle::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 16px);
  border: 1.5px solid #000;
  border-radius: 50%;
  transform: rotate(-2deg);
  pointer-events: none;
}

/* ==========================================
   COLLAB PAGE — PAST CLIENTS
   ========================================== */
.past-clients {
  padding: 80px 0;
  text-align: center;
}

.past-clients-label {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  margin-bottom: 40px;
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.client-logo {
  width: 140px;
  height: 80px;
  border-radius: 0;
  border: none;
  background: transparent;
  font-size: 12px;
}

/* ==========================================
   COLLAB PAGE — CASE STUDIES
   ========================================== */
.case-studies {
  padding: 100px 0 80px;
}

.case-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.case-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  flex: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.case-carousel::-webkit-scrollbar {
  display: none;
}

.case-card {
  flex-shrink: 0;
  width: calc(33.333% - 16px);
  min-width: 280px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-card:hover .case-card-img {
  transform: scale(1.03);
}

.case-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #e0ddd6;
  overflow: hidden;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.case-card h3 {
  font-family: 'Arbutus Slab', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
}

.case-arrow {
  position: absolute;
  z-index: 10;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #faf8f3;
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.case-arrow-left {
  left: -50px;
  opacity: 0;
  pointer-events: none;
}

.case-arrow-left.visible {
  opacity: 1;
  pointer-events: auto;
}

.case-arrow-right {
  right: -50px;
}

.case-arrow:hover {
  opacity: 0.7;
}

/* ==========================================
   CASE STUDY PAGE
   ========================================== */
.case-page-hero {
  margin-top: 64px;
  padding: 80px 0 60px;
  text-align: center;
}

.case-page-hero .case-hero-label {
  display: inline-block;
  background: #FFE659;
  padding: 8px 20px;
  font-family: 'Arbutus Slab', serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 32px;
}

.case-page-hero .case-hero-title {
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.05;
  margin-bottom: 32px;
}

.case-page-hero .case-hero-desc {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.case-gallery-section {
  padding: 60px 0;
  position: relative;
}

.case-gallery-section::before,
.case-gallery-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.case-gallery-section::before {
  left: 0;
  background: #faf8f3;
}

.case-gallery-section::after {
  right: 0;
  background: #faf8f3;
}

.case-gallery-section h2 {
  font-family: 'Arbutus Slab', serif;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
}

.case-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 56px;
  scroll-padding: 0 56px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.case-gallery::-webkit-scrollbar {
  display: none;
}


.case-gallery img {
  flex-shrink: 0;
  height: 480px;
  border-radius: 8px;
  object-fit: cover;
  scroll-snap-align: start;
}

.case-gallery img:last-of-type {
  margin-right: 56px;
}

.case-gallery--three {
  /* unused now */
}

.case-standout {
  position: relative;
  padding: 120px 40px;
  text-align: center;
  color: #fff;
  background: url('img/social-bg.webp') center/cover no-repeat;
}

.case-standout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.case-standout-content {
  position: relative;
  z-index: 1;
}

.case-standout h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 32px;
}

.case-standout .btn-yellow {
  display: inline-block;
  background: #FFE659;
  color: #000;
  padding: 16px 40px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.case-standout .btn-yellow:hover {
  background: #ffd900;
}

.case-standout-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto 0;
  color: #fff;
  text-align: center;
  font-family: 'Arbutus Slab', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
}

.case-standout-features span {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.case-recent {
  padding: 80px 0;
  text-align: center;
}

.case-recent h2 {
  display: inline-block;
  background: #FFE659;
  padding: 8px 20px;
  font-family: 'Arbutus Slab', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 48px;
}

.case-recent-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.case-recent-item {
  text-decoration: none;
  color: inherit;
  text-align: center;
  flex: 1;
}

.case-recent-item img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

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

.case-recent-item p {
  font-family: 'Arbutus Slab', serif;
  font-size: 22px;
  font-weight: 400;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-page {
  margin-top: 64px;
  padding: 80px 0;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-title {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.05;
  margin-bottom: 32px;
}

.contact-desc {
  font-family: 'Arbutus Slab', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
}

.contact-email {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email:hover {
  opacity: 0.6;
}

.contact-form {
  margin-top: 40px;
  margin-bottom: 32px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.contact-form-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-form-row input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #000;
  padding: 10px 0;
  font-size: 16px;
  background: transparent;
  outline: none;
  font-family: inherit;
}

.contact-newsletter {
  margin: 40px 0 32px;
}

.contact-newsletter label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.contact-email-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-email-row input {
  flex: 1;
  max-width: 300px;
  padding: 10px 0;
  border: none;
  border-bottom: 1.5px solid #000;
  background: transparent;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.contact-email-row input::placeholder {
  color: #aaa;
}

.contact-social {
  display: flex;
  gap: 16px;
}

.contact-social a {
  color: #000;
  transition: opacity 0.2s;
}

.contact-social a:hover {
  opacity: 0.6;
}

.contact-photo-img {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 40%;
}

/* ==========================================
   COLLAB PAGE — TESTIMONIAL
   ========================================== */
.testimonial-section {
  background: #FFE659;
  padding: 100px 40px;
  text-align: center;
}

.testimonial-quote {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto 28px;
}

.testimonial-author {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 32px;
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #000;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.testimonial-dot.active {
  background: #000;
}

/* ==========================================
   DOVE CI SIAMO GIÀ VISTI
   ========================================== */
.dove-section {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 100px 40px 60px;
}

.dove-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.dove-text {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-top: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.dove-photos {
  position: relative;
  height: 460px;
  margin-top: 60px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.dove-photo {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.dove-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dove-photo-1 {
  width: 420px;
  height: 250px;
  left: 0;
  top: 0;
  transform: rotate(-3deg);
  z-index: 1;
}

.dove-photo-2 {
  width: 400px;
  height: 270px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  top: 180px;
  z-index: 2;
}

.dove-photo-3 {
  width: 440px;
  height: 260px;
  right: 0;
  top: 30px;
  transform: rotate(-1.5deg);
  z-index: 3;
}

@media (max-width: 900px) {
  .dove-photos {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 20px;
  }

  .dove-photo {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 55% !important;
    height: auto !important;
  }

  .dove-photo img {
    height: auto;
  }

  .dove-photo-1 {
    transform: rotate(-2deg) !important;
    align-self: flex-start;
    margin-left: 5%;
    margin-bottom: -30px;
  }

  .dove-photo-2 {
    transform: rotate(1.5deg) !important;
    align-self: flex-end;
    margin-right: 5%;
    margin-bottom: -30px;
  }

  .dove-photo-3 {
    transform: rotate(-1deg) !important;
    align-self: flex-start;
    margin-left: 8%;
  }
}

@media (max-width: 600px) {
  .dove-section {
    padding: 60px 20px 80px;
  }

  .dove-text {
    font-size: 16px;
  }

  .dove-photo {
    width: 90% !important;
  }
}

/* ==========================================
   DRAWING CANVAS
   ========================================== */
.drawing-section {
  background: #FFE659;
  height: 300px;
  position: relative;
  cursor: crosshair;
}

.drawing-section canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Grid spacer (contact page) */
.grid-spacer {
  height: 300px;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-hero {
  padding: 160px 0 60px;
  text-align: center;
}

.about-hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.about-hero-subtitle {
  font-family: 'Arbutus Slab', serif;
  font-size: 26px;
  font-weight: 400;
}

.about-bio-headline {
  font-family: 'Arbutus Slab', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 32px;
}

.about-bio {
  padding: 80px 0;
}

.about-bio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-bio-img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.about-bio-second .about-bio-img {
  max-height: 450px;
  object-fit: cover;
  object-position: center;
}

.about-bio-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
}

.about-bio-text {
  font-family: 'Arbutus Slab', serif;
  font-size: 26px;
  line-height: 1.5;
}

.about-bio-lead {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
}

.about-bio-text p + p {
  margin-top: 24px;
}

.about-bio-second .about-bio-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.about-featured {
  background: #FFE659;
  padding: 80px 0;
}

.about-featured-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-featured-img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.about-bio-second {
  background: #FFE659;
  padding: 80px 0 120px;
}

@media (max-width: 768px) {
  .about-bio-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-hero {
    padding: 120px 0 40px;
  }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: #FFE659;
  color: #000;
  padding: 80px 40px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-name {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.footer-email-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-email-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.footer-email-row input {
  flex: 1;
  border: none;
  border-bottom: 2px solid #000;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  padding: 8px 0;
  outline: none;
}

.footer-email-row input::placeholder {
  color: #999;
}

.btn-dark {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-dark:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-social a {
  color: #000;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.6;
}

.footer-bio {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.15);
  font-size: 13px;
  color: #333;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .hero {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .header-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collab-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .case-card {
    width: calc(50% - 16px);
    min-width: 200px;
  }

  .clients-logos {
    gap: 32px;
  }

  .client-logo {
    width: 100px;
    height: 60px;
  }

  .social-comments {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .comment-card {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    max-width: 85%;
  }

  .comment-card-1 {
    transform: rotate(-2deg);
    align-self: flex-start;
    margin-left: 5%;
  }

  .comment-card-2 {
    transform: rotate(1.5deg);
    align-self: flex-end;
    margin-right: 5%;
  }

  .comment-card-3 {
    transform: rotate(-1deg);
    align-self: flex-start;
    margin-left: 8%;
  }
}

@media (max-width: 600px) {
  .hero {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .container {
    padding: 0 20px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .hero-name {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .about-intro {
    padding: 80px 0 60px;
  }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .how-card-img {
    aspect-ratio: 3/4;
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .how-card h3 {
    font-size: 18px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .collab-hero {
    padding: 80px 0 60px;
  }

  .case-card {
    width: 80%;
    min-width: 200px;
  }

  .testimonial-section {
    padding: 60px 20px;
  }

  .footer {
    padding: 60px 20px 30px;
  }

  .footer-email-row {
    flex-direction: column;
    gap: 16px;
  }

  .contact-photo {
    display: none;
  }
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  max-width: calc(100% - 48px);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: #FFE659;
  text-decoration: underline;
}

.cookie-banner button {
  background: #FFE659;
  color: #000;
  border: none;
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.cookie-banner button:hover {
  background: #ffd700;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    width: calc(100% - 32px);
    border-radius: 20px;
    padding: 16px 20px;
    text-align: center;
    gap: 12px;
  }
}
