/* Xinditai: picture-led chapters, clear links and restrained motion. */
.nav { background: rgb(255 255 255 / .94); }
.nav-links a { text-underline-offset: 5px; }
.nav-links [aria-current="page"] { text-decoration-color: #9e6a00; text-decoration-thickness: 2px; }
.hero { overflow: hidden; }
.home-hero { min-height: clamp(650px, 82svh, 800px); }
.home-hero .hero-copy { max-width: 560px; }
.home-hero .heading-1 { font-size: 6rem; line-height: 1; letter-spacing: -.055em; }
.home-hero .title-2 { max-width: 43ch; }
.home-hero .hero-image { object-position: center 48%; }
.hero-index { background: #f1e9f7; }
.hero-index .wrap { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-block: 16px; }
.hero-index a { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.hero-index a:hover .hero-index-label { text-decoration: underline; text-underline-offset: 4px; }
.hero-index a span:last-child,.text-link span[aria-hidden] { display: inline-block; transition: transform 500ms var(--curve); }
.hero-index a:hover span:last-child,.text-link:hover span[aria-hidden] { transform: translate(3px,-3px); }

.showcase-grid { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 24px; }
.showcase-grid .product { display: grid; align-content: start; background: #f6f2fa; border-radius: 16px; overflow: hidden; }
.showcase-grid .product:nth-child(2) { background: #fbf0dc; }
.showcase-grid .product:nth-child(3) { background: #edf4ee; }
.showcase-grid .product-media { border-radius: 0; aspect-ratio: auto; height: 100%; }
.showcase-grid .product-media img { object-fit: cover; }
.showcase-copy { padding: 24px; }
.showcase-grid .product h3 { margin: 0 0 8px; }
.showcase-grid .product:first-child { grid-row: span 2; grid-template-rows: minmax(0,1fr) auto; }
.showcase-grid .product:first-child .product-media { min-height: 320px; }
.showcase-grid .product:not(:first-child) { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-content: stretch; }
.showcase-grid .product:not(:first-child) .product-media { min-height: 210px; }
.showcase-grid .product:focus-within { outline: 3px solid #1265ca; outline-offset: 4px; }
.showcase-grid .product a:focus-visible { outline-offset: 2px; }

.home-statement { background: #30203e; color: #fff; padding-block: 96px; }
.home-statement .wrap { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 48px; }
.home-statement a { justify-self: start; color: #ffe17d; }
.home-statement .tagline { max-width: none; }
#brief-builder .brief-builder { background: #fff7d8; padding: 24px; border-radius: 16px; }
.project-links { background: #eaf1ed; }
#product-families .family-directory article { padding: 24px; background: #fff; border-radius: 12px; }
#product-families .family-directory article:nth-child(3n+1) { background: #f4eaf9; }
#product-families .family-directory article:nth-child(3n+2) { background: #f9efd9; }
#product-families .family-directory article:nth-child(3n+3) { background: #e8f1eb; }

.product-hero .hero-copy { max-width: 640px; }
.product-hero .section-links { gap: 8px; }
.product-hero .section-links a { padding: 8px 12px; background: rgb(26 17 22 / .82); border-radius: 8px; text-decoration: none; }
.product-hero .section-links a:hover { background: #fff; color: #251d29; }
.product-chapter { padding: 40px; border-radius: 24px; margin-block: 48px; }
.product-chapter#ai-plush { background: #f5edf8; }
.product-chapter#learning-devices { background: #fff4de; }
.product-chapter#story-players { background: #eaf3ee; }
.product-chapter .product-accordion details { background: rgb(255 255 255 / .85); }
.product-chapter .product-accordion details[open] { background: #fff; }
.product-chapter .detail-copy > .text-link { margin-top: 4px; }

.article-layout nav,.reading-summary { background: #f4eff8; }
.article-copy > section + section { padding-top: 16px; }
.footer { background: #f5f1f8; }
.footer-row { padding-block: 32px; }
.contact:not(.contact-overview) { background: #30203e; }
.questions details[open] summary { color: #5a2f6b; }

@media (prefers-reduced-motion: no-preference) {
  .hero-image { animation: photo-arrival 1400ms var(--curve) both; }
  .hero-copy > * { animation: copy-arrival 720ms var(--curve) both; }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .revealed[data-reveal] { animation-delay: var(--reveal-delay, 0ms); }
  @keyframes photo-arrival { from { transform: scale(1.05); } to { transform: scale(1); } }
  @keyframes copy-arrival { from { transform: translateY(18px); opacity: .55; } to { transform: translateY(0); opacity: 1; } }
}
@media (max-width: 1100px) {
  .home-hero .heading-1 { font-size: 4.5rem; }
  .showcase-grid .product:not(:first-child) { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
}
@media (max-width: 850px) {
  .showcase-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .showcase-grid .product:first-child,.showcase-grid .product:not(:first-child) { grid-row: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .showcase-grid .product .product-media { height: auto; min-height: 0 !important; aspect-ratio: 4 / 3; }
  .showcase-copy { padding: 16px; }
  .product-chapter { padding: 24px; }
  .home-statement { padding-block: 64px; }
}
@media (max-width: 640px) {
  .home-hero { min-height: 660px; }
  .home-hero .heading-1 { font-size: 3rem; }
  .home-hero .hero-copy { max-width: 440px; }
  .home-hero .hero-image { object-position: 58% bottom; }
  .hero-index .wrap { grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 24px; }
  .showcase-copy { padding: 24px; }
  .home-statement .wrap { grid-template-columns: 1fr; gap: 16px; }
  .product-chapter { padding: 16px; border-radius: 16px; margin-block: 24px; }
  .product-hero .section-links a { padding: 4px 8px; }
}
@media (max-width: 350px) {
  .home-hero .heading-1 { font-size: 2.5rem; }
}
