/* ==========================================================================
   CREATIVE GARDEN — Editorial Masterpiece Grid (No crooked angles)
   ========================================================================== */

h2, h3, p {
  margin-top: 0;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.creative-garden {
  padding: 100px 5% 120px;
  background: var(--cream);
  position: relative;
}

.garden-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 75px;
}

.garden-intro .section-label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-full);
}

.garden-intro h2 {
  margin-bottom: 20px;
}

.garden-intro h2 em {
  display: inline-block;
  color: var(--ink);
  position: relative;
}

.garden-intro p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* Garden Grid - Harmonious & Razor Sharp */
.garden-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

/* Garden Item - Straight, solid, elevated */
.garden-item {
  position: relative;
  min-width: 0;
  transform: none !important;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.garden-item:hover,
.garden-item:focus-within {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-hover);
  border-color: rgba(191, 51, 11, 0.45);
  z-index: 2;
}

/* Item Spans & Palettes */
.manifesto {
  grid-column: span 4;
  background: var(--sand);
  padding: 42px 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.manifesto .section-label {
  align-self: flex-start;
}

.manifesto h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 28px 0 20px;
}

.manifesto p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0;
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  display: block;
  margin-top: 30px;
  color: var(--ink);
  opacity: 0.9;
}

/* Service Cards */
.brand-card {
  grid-column: span 5;
  background: var(--sky);
  color: #8c2507;
}

.social-card {
  grid-column: span 3;
  background: var(--blush);
  color: #792113;
}

.film-card {
  grid-column: span 4;
  background: #dfe6cd;
  color: #642517;
  position: relative;
}

.campaign-card {
  grid-column: span 4;
  background: var(--ink);
  color: var(--cream);
}

.web-card {
  grid-column: span 4;
  background: #d8e5e8;
  color: #8c2507;
}

/* Card Interior */
.card-face {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 420px;
  position: relative;
  z-index: 2;
}

.card-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
}

.poster-type,
.social-type,
.film-type,
.campaign-type,
.web-type {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.05em;
  display: block;
  margin: 32px 0 24px;
}

.poster-type {
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1;
}

.social-type {
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.08;
}

.film-type {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
}

.campaign-type {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.08;
}

.web-type {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.08;
}

.card-bottom {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.campaign-card .card-bottom {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.card-direction {
  width: 38px;
  height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.garden-item:hover .card-direction {
  transform: translate(3px, -3px);
  background: currentColor;
}

.brand-card:hover .card-direction,
.social-card:hover .card-direction,
.film-card:hover .card-direction,
.web-card:hover .card-direction {
  color: var(--cream);
}

.campaign-card:hover .card-direction {
  color: var(--ink);
}

/* Film Card Image Treatment */
.film-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.38;
  filter: saturate(0.9);
  transition: transform 0.8s var(--ease-out), opacity 0.5s var(--ease-out);
}

.film-card:hover img {
  transform: scale(1.06);
  opacity: 0.48;
}

/* Opening Screen & Choreography — Original Theatrical Layered Reveal */
.opening {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  animation: openingGone 0.1s 2s forwards;
}

.curtain {
  position: absolute;
  left: 0;
  right: 0;
  height: 51%;
  background: var(--cream);
  animation-duration: 1.25s;
  animation-delay: 0.6s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain.top {
  top: 0;
  border-radius: 0 0 48% 0;
  animation-name: curtainUp;
}

.curtain.bottom {
  bottom: 0;
  border-radius: 48% 0 0 0;
  animation-name: curtainDown;
}

.opening-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 160px;
  line-height: 0.8;
  letter-spacing: -15px;
  transform: translate(-50%, -50%);
  animation: markAway 1.25s 0.2s both;
  color: var(--ink);
}

.opening-mark > span {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 65px;
  display: inline-block;
  vertical-align: top;
  animation: turn 4s linear infinite;
  margin-left: 0.28em;
}

.hero-image {
  animation: flowerReveal 2.7s cubic-bezier(0.2, 0.65, 0.2, 1) both, breathe 20s 2.7s ease-in-out infinite alternate;
}

.glyph {
  display: inline-block;
  animation-name: brandLetter;
  animation-duration: 1.4s;
  animation-delay: calc(1s + var(--i) * 0.09s);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.glyph.letter-v {
  --rest: -8deg;
}

.studio-word {
  animation: studioReveal 1.4s 1.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero header {
  animation: detailIn 1s 1.8s both;
}

.hero .eyebrow {
  animation: detailIn 1s 2s both;
}

.hero-bottom {
  animation: detailIn 1.2s 2.2s both;
}

.hero .asterisk {
  animation: starArrive 1.3s 1.7s both, turn 30s 3s linear infinite;
}

/* Reveal motion - Staggered & subtle */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js-motion .reveal:not(.seen) {
  opacity: 0;
  transform: translateY(35px);
}

.js-motion .reveal.seen {
  opacity: 1;
  transform: translateY(0);
}

@keyframes flowerReveal {
  0% {
    filter: blur(22px);
    transform: scale(1.22);
    clip-path: circle(12% at 50% 50%);
  }
  45% {
    filter: blur(9px);
  }
  100% {
    filter: blur(0);
    transform: scale(1);
    clip-path: circle(85% at 50% 50%);
  }
}

@keyframes brandLetter {
  0% {
    opacity: 0;
    transform: translateY(100px) rotate(20deg) scale(0.75);
    filter: blur(9px);
  }
  75% {
    opacity: 1;
    transform: translateY(-7px) rotate(calc(var(--rest, 0deg) - 2deg)) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--rest, 0deg)) scale(1);
    filter: blur(0);
  }
}

@keyframes studioReveal {
  from {
    opacity: 0;
    transform: translateY(65px);
    clip-path: inset(100% 0 0);
    letter-spacing: 0.08em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
    letter-spacing: -0.07em;
  }
}

@keyframes starArrive {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(-150deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes curtainUp {
  to { transform: translateY(-102%); }
}

@keyframes curtainDown {
  to { transform: translateY(102%); }
}

@keyframes openingGone {
  to { visibility: hidden; }
}

@keyframes markAway {
  0% { opacity: 0; transform: translate(-50%, -30%) rotate(-15deg) scale(0.8); }
  35% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -80%) rotate(8deg) scale(1.2); }
}

@keyframes detailIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  from { transform: scale(1); }
  to { transform: scale(1.065); }
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1100px) {
  .garden-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
  }
  .manifesto { grid-column: span 6; }
  .brand-card { grid-column: span 3; }
  .social-card { grid-column: span 3; }
  .film-card { grid-column: span 3; }
  .campaign-card { grid-column: span 3; }
  .web-card { grid-column: span 6; }
}

@media (max-width: 768px) {
  .creative-garden {
    padding: 70px 5% 90px;
  }
  .garden-intro {
    margin-bottom: 45px;
  }
  .garden-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .manifesto,
  .brand-card,
  .social-card,
  .film-card,
  .campaign-card,
  .web-card {
    grid-column: 1 / -1 !important;
  }
  .card-face {
    min-height: 340px;
    padding: 30px 24px;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .scroll-link {
    justify-self: center;
  }
  .wordmark {
    font-size: clamp(70px, 19vw, 160px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening { display: none; }
  .hero-image { animation: none !important; }
  .js-motion .reveal:not(.seen) { opacity: 1; transform: none; }
  .card-direction { transition: none !important; }
}
