/* ================================================
   TOP — Shirogumi-inspired gallery style
   Accent: Green #3a8a4a / Yellow-Amber #e8a020
   ================================================ */

/* Override accent colors for this page */
.page-top {
  --color-accent:      #3a8a4a;
  --color-accent-hover: #2e7a3c;
  --color-accent-light: rgba(58,138,74,.08);
  --color-yellow:      #e8a020;
  --color-yellow-light: rgba(232,160,32,.08);
  /* Category colors */
  --cat-3dcg:   #3a8a4a;
  --cat-mv:     #e8a020;
  --cat-teaser: #2e7ab5;
  --cat-design: #c4918a;
}

/* ---- Transparent header on dark hero ---- */
.page-top main { padding-top: 0; }

.page-top .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-top .site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border-light);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.page-top .logo-text { color: #fff; }
.page-top .site-header.is-scrolled .logo-text { color: var(--color-heading); }
.page-top .nav-link { color: rgba(255,255,255,.65); }
.page-top .nav-link:hover { color: #fff; }
.page-top .nav-link.is-active { color: #fff; background: rgba(255,255,255,.12); }
.page-top .site-header.is-scrolled .nav-link { color: var(--color-muted); }
.page-top .site-header.is-scrolled .nav-link:hover { color: var(--color-heading); }
.page-top .site-header.is-scrolled .nav-link.is-active { color: var(--color-accent); background: var(--color-accent-light); }
.page-top .nav-link--cta { background: var(--color-accent); color: #fff !important; }
.page-top .nav-link--cta:hover { background: var(--color-accent-hover); }
.page-top .nav-toggle-line { background: #fff; }
.page-top .site-header.is-scrolled .nav-toggle-line { background: var(--color-heading); }

@media (max-width: 1023px) {
  .page-top .nav-menu {
    background: #0a0a0f;
  }
}

/* ================================================
   HERO — 3×3 video mosaic
   ================================================ */
.hero-v2 {
  position: relative;
  height: 100vh;
  background: #0a0a0f;
  overflow: hidden;
  perspective: 1200px;
}

/* Vignette overlay */
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at center, transparent 0%, rgba(10,10,15,.1) 55%, rgba(10,10,15,.45) 100%);
  pointer-events: none;
  z-index: 4;
}

/* Ambient green glow */
.hero-glow {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 180px;
  background: radial-gradient(ellipse, rgba(58,138,74,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 4;
  filter: blur(30px);
}

/* Light beam follows mouse */
.hero-light-beam {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,138,74,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition: left .15s ease-out, top .15s ease-out;
  filter: blur(15px);
  display: none;
}
.hero-v2:hover .hero-light-beam {
  display: block;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
  gap: 2px;
  transform-style: preserve-3d;
  transition: transform .4s ease-out;
  will-change: transform;
}
.hero-mosaic-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .5s ease, filter .5s ease, box-shadow .5s ease;
  border-radius: 2px;
}
.hero-mosaic-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.75);
  transition: filter .8s ease;
}
.hero-mosaic-item:hover video {
  filter: brightness(.9);
}

/* Depth-of-field: corners slightly blurred, sides normal, center bright */
.hero-mosaic-item:nth-child(1),
.hero-mosaic-item:nth-child(3),
.hero-mosaic-item:nth-child(7),
.hero-mosaic-item:nth-child(9) {
  filter: blur(.8px) brightness(.85);
  transform: translateZ(-15px);
}
.hero-mosaic-item:nth-child(2),
.hero-mosaic-item:nth-child(4),
.hero-mosaic-item:nth-child(6),
.hero-mosaic-item:nth-child(8) {
  filter: blur(.2px) brightness(.95);
  transform: translateZ(0px);
}
.hero-mosaic-item:nth-child(5) {
  filter: brightness(1);
  transform: translateZ(10px);
  z-index: 2;
}

/* Hover — 3D lift */
.hero-mosaic-item:hover {
  transform: translateZ(35px) scale(1.03) !important;
  filter: brightness(1.15) blur(0) !important;
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  z-index: 5;
}
.hero-mosaic-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-3);
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.hero-mosaic-item:hover .hero-mosaic-info {
  opacity: 1;
  transform: translateY(0);
}
.hero-mosaic-info .tag {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-block;
  backdrop-filter: blur(4px);
  margin-bottom: 2px;
  font-weight: 600;
  letter-spacing: .05em;
}
/* Category-colored tags in hero */
.hero-mosaic-info .tag--3dcg   { background: var(--cat-3dcg);   color: #fff; }
.hero-mosaic-info .tag--mv     { background: var(--cat-mv);     color: #fff; }
.hero-mosaic-info .tag--teaser { background: var(--cat-teaser);  color: #fff; }
.hero-mosaic-info .tag--design { background: var(--cat-design);  color: #fff; }
.hero-mosaic-info h3 {
  font-size: var(--text-xs);
  color: #fff;
  font-weight: 500;
}

.hero-mosaic-item--sp-only { display: none; }
@media (max-width: 767px) {
  .hero-mosaic-item--sp-only { display: block; }
  .hero-v2 {
    perspective: none;
  }
  .hero-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    transform-style: flat;
    transform: none !important;
  }
  /* SP: reset depth-of-field */
  .hero-mosaic-item:nth-child(n) {
    filter: brightness(.75);
    transform: none;
  }
  .hero-mosaic-item:hover {
    transform: none !important;
    filter: brightness(.75) !important;
    box-shadow: none !important;
  }
  /* SP: always show overlay info */
  .hero-mosaic-info {
    opacity: 1;
    transform: translateY(0);
    padding: var(--sp-2);
  }
  .hero-mosaic-info h3 {
    font-size: 10px;
  }
  /* SP: hide light beam */
  .hero-light-beam {
    display: none !important;
  }
  /* SP: brand position & title */
  .hero-brand {
    top: 28%;
  }
  .brand-title {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
    white-space: nowrap;
  }
  .brand-sub {
    font-size: 10px;
  }
  .brand-glass {
    padding: 20px 24px 24px;
    border-radius: 10px;
  }
}

/* ================================================
   BRAND OVERLAY — Animated with decorative frame
   ================================================ */
.hero-brand {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(50px);
  z-index: 10;
  text-align: center;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Hero bottom panel — profile (left) | divider | keywords (right) */
.hero-bottom {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Center divider line */
.hero-bottom-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.25) 20%, rgba(255,255,255,.25) 80%, transparent);
  flex-shrink: 0;
  opacity: 0;
  animation: dividerReveal .8s ease .4s forwards;
}
@keyframes dividerReveal {
  to { opacity: 1; }
}

/* Profile block (left side) */
.hero-profile {
  z-index: 8;
  width: 320px;
  padding: 24px 32px 24px 24px;
  background: rgba(10,10,15,.35);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.08);
  border-right: none;
  border-radius: 16px 0 0 16px;
  color: #fff;
  opacity: 0;
  transform: translateX(-20px);
  animation: profileReveal .8s ease .4s forwards;
}
.hero-profile-info {
  display: flex;
  flex-direction: column;
}
.hero-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-profile-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
}
.hero-profile-role {
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: .06em;
  font-weight: 600;
  margin-top: 3px;
}
.hero-profile-bio {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
  margin-top: 14px;
}
.hero-profile-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.hero-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .3s;
  pointer-events: auto;
}
.hero-profile-link:hover {
  color: #fff;
}

@keyframes profileReveal {
  to { opacity: 1; transform: translateX(0); }
}

/* Keyword tags (right side, vertical) */
.hero-keywords {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 24px 32px;
  background: none;
  border: none;
  border-radius: 0;
}
.hero-keyword {
  display: inline-block;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(200,255,210,.8);
  background: rgba(58,138,74,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(58,138,74,.15);
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(16px);
  animation: keywordReveal .5s ease forwards;
  transition: color .3s, background .3s, border-color .3s;
}
.hero-keyword:nth-child(1) { animation-delay: .4s; }
.hero-keyword:nth-child(2) { animation-delay: .5s; }
.hero-keyword:nth-child(3) { animation-delay: .6s; }
.hero-keyword:nth-child(4) { animation-delay: .7s; }
.hero-keyword:nth-child(5) { animation-delay: .8s; }
.hero-keyword:nth-child(6) { animation-delay: .9s; }
.hero-keyword:nth-child(7) { animation-delay: 1.0s; }
.hero-keyword:nth-child(8) { animation-delay: 1.1s; }

.hero-keyword:hover {
  color: #fff;
  background: rgba(58,138,74,.15);
  border-color: rgba(58,138,74,.35);
}

@keyframes keywordReveal {
  to { opacity: 1; transform: translateX(0); }
}

/* SP: same layout as PC, just smaller */
@media (max-width: 767px) {
  .hero-bottom {
    left: 3%;
    right: 3%;
    transform: none;
    bottom: auto;
    top: 52%;
  }
  .hero-profile {
    width: auto;
    flex: 1;
    padding: 18px;
    border-radius: 12px 0 0 12px;
  }
  .hero-profile-avatar {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }
  .hero-profile-name { font-size: 14px; }
  .hero-profile-role { font-size: 10px; margin-top: 3px; }
  .hero-profile-bio { font-size: 10px; line-height: 1.7; margin-top: 10px; }
  .hero-profile-link { font-size: 10px; margin-top: 14px; }

  .hero-keywords {
    padding: 18px 0 18px 20px;
    gap: 10px;
  }
  .hero-keyword {
    font-size: 9px;
    padding: 5px 12px;
  }
}
/* Frosted glass — real wrapper around title+line+sub */
.brand-glass {
  position: relative;
  padding: 28px 56px 32px;
  background: rgba(10,10,15,.3);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 40px rgba(0,0,0,.45), 0 20px 60px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.04);
}
.brand-glass .brand-title {
  margin-bottom: var(--sp-3);
}
.brand-glass .brand-sub {
  margin-bottom: 0;
}
/* Drop shadow beneath brand for depth */
.hero-brand::after {
  content: '';
  position: absolute;
  top: 108%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,.4) 0%, transparent 70%);
  filter: blur(15px);
  z-index: -1;
}

/* Decorative frame — positioned relative to .brand-glass */
.brand-frame {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  pointer-events: none;
}
.frame-corner {
  position: absolute;
  width: 0;
  height: 0;
  animation: cornerDraw .8s cubic-bezier(.16,1,.3,1) forwards;
}
.frame-corner--tl {
  top: 0; left: 0;
  border-top: 1.5px solid rgba(255,255,255,.4);
  border-left: 1.5px solid rgba(255,255,255,.4);
  animation-delay: .8s;
}
.frame-corner--tr {
  top: 0; right: 0;
  border-top: 1.5px solid rgba(255,255,255,.4);
  border-right: 1.5px solid rgba(255,255,255,.4);
  animation-delay: .9s;
}
.frame-corner--bl {
  bottom: 0; left: 0;
  border-bottom: 1.5px solid rgba(255,255,255,.4);
  border-left: 1.5px solid rgba(255,255,255,.4);
  animation-delay: 1s;
}
.frame-corner--br {
  bottom: 0; right: 0;
  border-bottom: 1.5px solid rgba(255,255,255,.4);
  border-right: 1.5px solid rgba(255,255,255,.4);
  animation-delay: 1.1s;
}

@keyframes cornerDraw {
  from { width: 0; height: 0; opacity: 0; }
  to   { width: 32px; height: 32px; opacity: 1; }
}

/* Logo icon — floats above frosted glass with bobbing animation */
.brand-icon {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  animation: iconReveal 1s ease .2s both, iconFloat 7s ease-in-out 1.5s infinite;
  box-shadow: 0 4px 24px rgba(0,0,0,.4), 0 0 20px rgba(58,138,74,.15);
}
@keyframes iconReveal {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes iconFloat {
  0%   { transform: translateY(0); }
  15%  { transform: translateY(-5px); }
  30%  { transform: translateY(2px); }
  50%  { transform: translateY(-7px); }
  65%  { transform: translateY(1px); }
  80%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* Title */
.brand-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: .12em;
  line-height: 1;
  margin-bottom: var(--sp-3);
  text-shadow: 0 2px 30px rgba(0,0,0,.5), 0 0 60px rgba(0,0,0,.2);
  opacity: 0;
  animation: titleReveal 1.4s cubic-bezier(.16,1,.3,1) .4s both;
}
@keyframes titleReveal {
  from {
    opacity: 0;
    letter-spacing: .5em;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    letter-spacing: .12em;
    filter: blur(0);
  }
}

/* Divider line */
.brand-line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-yellow), transparent);
  margin: 0 auto var(--sp-3);
  animation: lineExtend 1s ease .9s both;
}
@keyframes lineExtend {
  from { width: 0; opacity: 0; }
  to   { width: 120px; opacity: 1; }
}

/* Subtitle */
.brand-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.45);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
  opacity: 0;
  animation: subReveal .8s ease 1.2s both;
}
@keyframes subReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Icons row — logo center, tools flanking */
.brand-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: var(--sp-4);
}
.brand-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: subReveal .8s ease 1.4s both;
}
.brand-tool {
  width: 28px;
  height: 28px;
  opacity: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
  animation: toolFloat 6s ease-in-out infinite;
}
.brand-tool:nth-child(1) { animation-delay: 0s; }
.brand-tool:nth-child(2) { animation-delay: 1.2s; }
.brand-tool:nth-child(3) { animation-delay: 2.5s; }
@keyframes toolFloat {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-3px); }
  40%  { transform: translateY(1px); }
  60%  { transform: translateY(-4px); }
  80%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}
.brand-tool:hover {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)) brightness(1.15);
}

/* SP */
@media (max-width: 767px) {
  .brand-icons-row {
    gap: 8px;
    margin-bottom: var(--sp-2);
  }
  .brand-icon {
    width: 48px;
    height: 48px;
  }
  .brand-tools {
    gap: 5px;
  }
  .brand-tool {
    width: 20px;
    height: 20px;
  }
  .brand-line {
    margin-bottom: var(--sp-2);
  }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0;
  animation: subReveal .6s ease 2s both;
}
.scroll-hint span {
  font-size: 9px;
  color: rgba(255,255,255,.35);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-hint::after {
  content: '';
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.25);
  animation: scrollPulse 2s ease-in-out 2.5s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .2; transform: scaleY(1); }
  50%      { opacity: .8; transform: scaleY(.4); transform-origin: top; }
}

/* ================================================
   SECTION HEADER — English + Japanese
   ================================================ */
.section-header-v2 {
  text-align: center;
  margin-bottom: var(--sp-8);
}
.section-en {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  display: inline-block;
  position: relative;
}
.section-en::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: var(--sp-2) auto 0;
  border-radius: 1px;
  opacity: .7;
}
.section-ja {
  font-size: var(--text-2xl);
  color: var(--color-heading);
  font-weight: 700;
}
.section-sub {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--sp-2);
}

/* ================================================
   GALLERY — Shirogumi-inspired works grid
   ================================================ */
.gallery {
  background: #fff;
  padding: var(--sp-12) 0 var(--sp-20);
  position: relative;
}
/* Top gradient divider */
.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: .25;
}

/* Filter tabs */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--sp-1);
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--color-border-light);
}
.filter-btn {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-caption);
  letter-spacing: var(--tracking-wide);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: color .2s ease;
}
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.filter-btn:hover { color: var(--color-heading); }
.filter-btn.is-active {
  color: var(--color-accent);
}
.filter-btn.is-active::after {
  transform: scaleX(1);
}
/* Category-colored filter tabs */
.filter-btn[data-filter="3dcg"].is-active  { color: var(--cat-3dcg); }
.filter-btn[data-filter="3dcg"]::after     { background: var(--cat-3dcg); }
.filter-btn[data-filter="mv"].is-active    { color: var(--cat-mv); }
.filter-btn[data-filter="mv"]::after       { background: var(--cat-mv); }
.filter-btn[data-filter="teaser"].is-active { color: var(--cat-teaser); }
.filter-btn[data-filter="teaser"]::after   { background: var(--cat-teaser); }
.filter-btn[data-filter="design"].is-active { color: var(--cat-design); }
.filter-btn[data-filter="design"]::after   { background: var(--cat-design); }

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
}
/* Category color bar at top */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  transition: height .3s ease;
}
.gallery-item[data-cat="3dcg"]::before   { background: var(--cat-3dcg); }
.gallery-item[data-cat="mv"]::before     { background: var(--cat-mv); }
.gallery-item[data-cat="teaser"]::before { background: var(--cat-teaser); }
.gallery-item[data-cat="design"]::before { background: var(--cat-design); }
.gallery-item:hover::before { height: 4px; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
/* Category glow on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.gallery-item[data-cat="3dcg"]:hover::after   { box-shadow: inset 0 0 30px rgba(58,138,74,.15); opacity: 1; }
.gallery-item[data-cat="mv"]:hover::after     { box-shadow: inset 0 0 30px rgba(232,160,32,.15); opacity: 1; }
.gallery-item[data-cat="teaser"]:hover::after { box-shadow: inset 0 0 30px rgba(46,122,181,.15); opacity: 1; }
.gallery-item[data-cat="design"]:hover::after { box-shadow: inset 0 0 30px rgba(196,145,138,.15); opacity: 1; }
.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 3;
}
.gallery-item:hover .gallery-item-info {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  margin-bottom: 2px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}
/* Category-colored labels in gallery */
.gallery-item[data-cat="3dcg"]   .gallery-item-cat { background: var(--cat-3dcg);   color: #fff; }
.gallery-item[data-cat="mv"]     .gallery-item-cat { background: var(--cat-mv);     color: #fff; }
.gallery-item[data-cat="teaser"] .gallery-item-cat { background: var(--cat-teaser);  color: #fff; }
.gallery-item[data-cat="design"] .gallery-item-cat { background: var(--cat-design);  color: #fff; }
.gallery-item-title {
  font-size: var(--text-sm);
  font-weight: 500;
}
.gallery-item-client {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
}

.gallery-more {
  text-align: center;
  margin-top: var(--sp-10);
}
.gallery-more .btn::after {
  content: ' →';
  display: inline-block;
  transition: transform .3s ease;
}
.gallery-more .btn:hover::after {
  transform: translateX(4px);
}

/* Staggered fade-in for gallery items */
.gallery-item.fade-in:nth-child(1) { transition-delay: 0s; }
.gallery-item.fade-in:nth-child(2) { transition-delay: .08s; }
.gallery-item.fade-in:nth-child(3) { transition-delay: .16s; }
.gallery-item.fade-in:nth-child(4) { transition-delay: .24s; }
.gallery-item.fade-in:nth-child(5) { transition-delay: .32s; }
.gallery-item.fade-in:nth-child(6) { transition-delay: .40s; }
.gallery-item.fade-in:nth-child(7) { transition-delay: .48s; }
.gallery-item.fade-in:nth-child(8) { transition-delay: .56s; }
.gallery-item.fade-in:nth-child(9) { transition-delay: .64s; }

/* Design items: show more of top to avoid face cropping */
.gallery-item[data-cat="design"] img {
  object-position: top center;
}

@media (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  /* SP: always show gallery overlay info */
  .gallery-item-info {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 575px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ================================================
   MINI CTA — Light prompt after gallery
   ================================================ */
.mini-cta {
  background: var(--color-bg-alt);
  padding: var(--sp-10) 0;
  border-top: 1px solid var(--color-border-light);
}
.mini-cta-text {
  font-size: var(--text-lg);
  color: var(--color-heading);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}

/* ================================================
   FEATURES — Strengths, clickable cards with media
   ================================================ */
.features-v2 {
  background: #fff;
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--color-border-light);
}
.features-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: #fff;
  transition: transform .4s ease, box-shadow .4s ease;
  cursor: pointer;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
/* Media (image/video) */
.feature-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0f;
}
.feature-card-media img,
.feature-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.feature-card:hover .feature-card-media img,
.feature-card:hover .feature-card-media video {
  transform: scale(1.05);
}
/* Body */
.feature-card-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
}
.feature-card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  padding: 3px 12px;
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
}
.feature-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.4;
  margin-bottom: var(--sp-2);
}
.feature-card-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}
/* Overlay — PC: hover, SP: tap */
.feature-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
}
.feature-card:hover .feature-card-overlay {
  opacity: 1;
}
.feature-card-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: .05em;
  box-shadow: 0 4px 16px rgba(58,138,74,.3);
  transform: translateY(8px);
  transition: transform .3s ease;
}
.feature-card:hover .feature-card-btn {
  transform: translateY(0);
}
.feature-card-btn::after {
  content: ' \2192';
}
/* Stagger */
.feature-card.fade-in:nth-child(1) { transition-delay: 0s; }
.feature-card.fade-in:nth-child(2) { transition-delay: .1s; }
.feature-card.fade-in:nth-child(3) { transition-delay: .2s; }

@media (max-width: 767px) {
  .features-grid-v2 {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  /* SP: tap to show overlay */
  .feature-card.is-tapped .feature-card-overlay {
    opacity: 1;
  }
  .feature-card.is-tapped .feature-card-btn {
    transform: translateY(0);
  }
}

/* ================================================
   FLOW — Card-based steps with icons
   ================================================ */
.flow-v2 {
  background: var(--color-bg-alt);
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--color-border-light);
}
.flow-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: var(--sp-10);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
/* Card with icon clipped top-left */
.flow-card {
  width: 100%;
}
.flow-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: absolute;
  top: -20px;
  left: -14px;
  z-index: 3;
}
.flow-card-icon svg {
  width: 22px;
  height: 22px;
}
.flow-card-icon--1,
.flow-card-icon--2,
.flow-card-icon--3,
.flow-card-icon--4 { background: var(--color-accent); box-shadow: 0 4px 16px rgba(58,138,74,.3); }
/* Connector hidden — icon is clipped */
.flow-card-connector {
  display: none;
}
/* Card body */
.flow-card-body {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-10) var(--sp-8) var(--sp-10);
  text-align: left;
  width: 100%;
  margin-bottom: var(--sp-8);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: relative;
}
.flow-card:last-child .flow-card-body {
  margin-bottom: 0;
}
.flow-card-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}
.flow-card-label { color: var(--color-accent); background: var(--color-accent-light); }
.flow-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--sp-3);
}
.flow-card-desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

@media (max-width: 767px) {
  .flow-card-icon {
    width: 42px;
    height: 42px;
    top: -18px;
    left: -10px;
  }
  .flow-card-icon svg {
    width: 20px;
    height: 20px;
  }
  .flow-card-body {
    padding: var(--sp-8) var(--sp-6) var(--sp-6);
  }
  .flow-card-title {
    font-size: var(--text-lg);
  }
}

/* ================================================
   STATS — Inline, minimal
   ================================================ */
.stats-inline {
  background: #fff;
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}
.stats-inline .stats-grid {
  display: flex;
  justify-content: center;
  gap: var(--sp-10);
  flex-wrap: wrap;
}
.stats-inline .stat-item { text-align: center; }
.stats-inline .stat-number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
  margin-bottom: 2px;
  font-family: var(--font-display);
}
.stats-inline .stat-number::after {
  content: '+';
  font-size: .5em;
  color: var(--color-accent);
}
.stats-inline .stat-label {
  font-size: 10px;
  color: var(--color-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ================================================
   CLIENTS — Logos only, clean
   ================================================ */
.clients-v2 {
  background: var(--color-bg-alt);
  padding: var(--sp-12) 0;
  text-align: center;
  position: relative;
}
/* Top accent gradient border */
.clients-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: .35;
}
.clients-v2 .clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8) var(--sp-10);
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}
.clients-v2 .client-logo {
  height: 90px;
  width: auto;
  max-width: 200px;
  transition: transform .4s ease, opacity .4s ease, filter .4s ease;
}
.clients-v2 .client-logo:hover {
  transform: scale(1.06);
  opacity: .85;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.1));
}
.clients-more {
  text-align: center;
  margin-top: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--color-caption);
  letter-spacing: .1em;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}
.clients-more::before,
.clients-more::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border));
}
.clients-more::after {
  background: linear-gradient(90deg, var(--color-border), transparent);
}
/* Staggered fade-in for client logos */
.clients-v2 .client-logo.fade-in:nth-child(1) { transition-delay: 0s; }
.clients-v2 .client-logo.fade-in:nth-child(2) { transition-delay: .06s; }
.clients-v2 .client-logo.fade-in:nth-child(3) { transition-delay: .12s; }
.clients-v2 .client-logo.fade-in:nth-child(4) { transition-delay: .18s; }
.clients-v2 .client-logo.fade-in:nth-child(5) { transition-delay: .24s; }
.clients-v2 .client-logo.fade-in:nth-child(6) { transition-delay: .30s; }
.clients-v2 .client-logo.fade-in:nth-child(7) { transition-delay: .36s; }
.clients-v2 .client-logo.fade-in:nth-child(8) { transition-delay: .42s; }
@media (max-width: 767px) {
  .clients-v2 .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
  }
  .clients-v2 .client-logo {
    height: 64px;
  }
}

/* ================================================
   SERVICES — Minimal cards
   ================================================ */
.services-v2 {
  background: #fff;
  padding: var(--sp-16) 0;
}
.services-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.service-v2-item {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.service-v2-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(58,138,74,.08);
}
.service-v2-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.service-v2-icon svg {
  width: 24px;
  height: 24px;
}
.service-v2-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--sp-1);
}
.service-v2-desc {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .services-v2-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================
   CTA — Clean minimal
   ================================================ */
/* CTA card styles moved to components.css */

/* ================================================
   LITE YOUTUBE (fallback)
   ================================================ */
lite-youtube {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}
lite-youtube .yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .85;
  transition: opacity .15s ease, transform .15s ease;
}
lite-youtube:hover .yt-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}
lite-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================================
   SP — Left-aligned layout for all sections
   ================================================ */
@media (max-width: 767px) {
  .section-header-v2 { text-align: left; }
  /* Gallery & Clients keep center */
  .clients-v2 .section-header-v2,
  .gallery .section-header-v2 { text-align: center; }
  .service-v2-item { text-align: left; }
  .service-v2-icon { margin: 0 0 var(--sp-3) 0; }
}
