/* ==========================================================================
   HOME V3 — Gallery Mosaic / Fluid & Organic
   ========================================================================== */

.anim-in {
  opacity: 0;
  transform: translateY(28px);
  animation: animIn 0.9s var(--ease-out) forwards;
}
.anim-in[data-d="0"] { animation-delay: 0.5s; }
.anim-in[data-d="1"] { animation-delay: 0.7s; }
.anim-in[data-d="2"] { animation-delay: 0.9s; }
.anim-in[data-d="3"] { animation-delay: 1.1s; }

@keyframes animIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.v3-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mosaic background */
.v3-hero-mosaic {
  position: absolute;
  inset: -20px;
  display: flex;
  gap: 8px;
  padding: 8px;
}

.v3-mos-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v3-mos-col-1 { animation: mosaicDrift1 25s ease-in-out infinite; }
.v3-mos-col-2 { animation: mosaicDrift2 30s ease-in-out infinite; }
.v3-mos-col-3 { animation: mosaicDrift1 28s ease-in-out infinite reverse; }

@keyframes mosaicDrift1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes mosaicDrift2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

.v3-mos-img {
  flex: 1;
  width: 100%;
  object-fit: cover;
  min-height: 0;
  filter: grayscale(0.3) brightness(0.7);
}

.v3-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}

/* Center content */
.v3-hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--container-pad);
}

.v3-hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: block;
}

.v3-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 10vw, 140px);
  font-weight: 400;
  line-height: 0.95;
  color: #fafaf8;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.v3-hero-sub {
  font-size: 15px;
  color: rgba(250,250,248,0.5);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}

.v3-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.v3-btn-pill {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 100px;
  background: #fafaf8;
  color: var(--black);
  transition: all 0.4s var(--ease);
}

.v3-btn-pill:hover {
  background: var(--accent);
  color: #fafaf8;
  transform: translateY(-2px);
}

.v3-btn-ghost {
  background: transparent;
  color: #fafaf8;
  border: 1px solid rgba(250,250,248,0.3);
}

.v3-btn-ghost:hover {
  background: rgba(250,250,248,0.1);
  border-color: #fafaf8;
}

/* ── Ticker ────────────────────────────────────────────────────────────── */

.v3-ticker {
  padding: 20px 0;
  background: var(--accent-dark);
  overflow: hidden;
}

.v3-ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.v3-ticker-track span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fafaf8;
}

.v3-tick-dot {
  width: 5px !important;
  height: 5px;
  border-radius: 50%;
  background: rgba(250,250,248,0.4) !important;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── About ─────────────────────────────────────────────────────────────── */

.v3-about {
  padding: clamp(100px, 14vw, 200px) 0;
}

.v3-about-wrap {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.v3-about-img {
  overflow: hidden;
  border-radius: 8px;
}

.v3-about-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.v3-about-img:hover img {
  transform: scale(1.04);
}

.v3-about-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.v3-about-title em {
  font-style: italic;
  color: var(--accent-dark);
}

.v3-about-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.v3-about-nums {
  display: flex;
  gap: 36px;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.v3-about-nums div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v3-about-nums strong {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
}

.v3-about-nums span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Work scroll ───────────────────────────────────────────────────────── */

.v3-work {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-alt);
  overflow: hidden;
  transition: background 0.5s var(--ease);
}

.v3-work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.v3-work-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--text);
}

.v3-work-scroll {
  display: flex;
  gap: 20px;
  padding: 0 var(--container-pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.v3-work-scroll::-webkit-scrollbar { display: none; }

.v3-work-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.v3-work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.v3-wc-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.v3-wc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.v3-work-card:hover .v3-wc-img img {
  transform: scale(1.05);
}

.v3-wc-info {
  padding: 24px;
}

.v3-wc-info span:first-child {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.v3-wc-info h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin: 8px 0 6px;
}

.v3-wc-info span:last-child {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── CTA ───────────────────────────────────────────────────────────────── */

.v3-cta {
  position: relative;
  padding: clamp(120px, 16vw, 240px) 0;
  overflow: hidden;
}

.v3-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.v3-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.8);
}

.v3-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.v3-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  color: #fafaf8;
  margin-bottom: 36px;
  line-height: 1.15;
}

.v3-cta .v3-btn-pill {
  font-size: 13px;
  padding: 18px 44px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .v3-about-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .v3-about-img img {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .v3-about-nums {
    flex-direction: column;
    gap: 16px;
  }

  .v3-about-nums div {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .v3-work-card {
    flex: 0 0 280px;
  }

  .v3-cta-bg {
    background-attachment: scroll;
  }

  .v3-hero-mosaic {
    gap: 4px;
    padding: 4px;
  }
}
