/* Home page — quality, studio, paths, products, planet */

/* SECTION BASICS */
.label-on-dark { color: var(--warm); }
.section-title-left { margin: 0; }

/* QUALITY */
.quality-section { padding: 130px 0; background: var(--bg); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--bd); border: 2px solid var(--bd); }
.pillar { background: var(--bg); padding: 52px 44px 0; display: flex; flex-direction: column; transition: background 0.25s; }
.pillar:hover { background: var(--bg-card); }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 15px; color: #999; margin-bottom: 28px; display: flex; align-items: center; gap: 16px; transition: color 0.3s; }
.pillar-num::after { content: ''; height: 1px; flex: 1; background: #999; transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.pillar:hover .pillar-num { color: var(--fg); }
.pillar:hover .pillar-num::after { transform: scaleX(1); }
.pillar h3 { font-family: var(--serif); font-size: 36px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 18px; }
.pillar p { font-size: 15px; color: var(--fg2); line-height: 1.7; font-weight: 300; flex: 1; margin-bottom: 40px; }
.pillar-img { height: 300px; overflow: hidden; margin: 0 -44px; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9); transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.6s ease; }
.pillar:hover .pillar-img img { transform: scale(1.05); filter: saturate(1); }

/* Pillars — scroll reveal */
.js .pillar { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.25s; }
.js .pillar:nth-child(2) { transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s, background 0.25s; }
.js .pillar:nth-child(3) { transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s, background 0.25s; }
.js .pillar.in-view { opacity: 1; transform: translateY(0); }

/* STUDIO */
.studio-section { background: var(--bg-dark); padding: 130px 0; position: relative; overflow: hidden; }
.studio-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 45% at 50% 55%, rgba(255,45,120,0.07) 0%, transparent 70%); pointer-events: none; }
.studio-section .container { position: relative; }
.studio-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.studio-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.5vw, 80px); line-height: 1.01; letter-spacing: -0.025em; color: #F7F4EF; }
.studio-title em { font-style: italic;
  background: linear-gradient(135deg, #888 0%, #C8783A 20%, #FF2D78 45%, #E8C547 70%, #7B8FB0 90%, #888 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite; }
.studio-desc { font-size: 17px; color: rgba(247,244,239,0.5); line-height: 1.65; font-weight: 300; max-width: 440px; margin-bottom: 28px; }
.studio-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.studio-embed-wrap { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid #2A2A2A; background: #0E0C0A; box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 140px rgba(255,45,120,0.06); }
.studio-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.studio-features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.studio-feat { font-size: 14px; color: rgba(247,244,239,0.55); line-height: 1.45; font-weight: 300; }
.feat-num { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(247,244,239,0.28); margin-bottom: 10px; }

/* Studio — scroll reveal */
.js .studio-embed-wrap, .js .studio-feat { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .studio-feat:nth-child(2) { transition-delay: 0.07s; }
.js .studio-feat:nth-child(3) { transition-delay: 0.14s; }
.js .studio-feat:nth-child(4) { transition-delay: 0.21s; }
.js .studio-feat:nth-child(5) { transition-delay: 0.28s; }
.js .studio-embed-wrap.in-view, .js .studio-feat.in-view { opacity: 1; transform: translateY(0); }

/* PATHS */
.paths-section { background: var(--bg-warm); padding: 130px 0; }
.paths-head { text-align: center; margin-bottom: 80px; }
.paths-head .section-title { color: #F7F4EF; }
.paths-head .section-title em { font-style: italic;
  background: linear-gradient(135deg, #888 0%, #C8783A 20%, #FF2D78 45%, #E8C547 70%, #7B8FB0 90%, #888 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite; }
.paths-head .section-desc { color: #555; margin-top: 24px; max-width: 520px; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(255,255,255,0.07); }
.path-card { position: relative; overflow: hidden; background: rgba(255,255,255,0.03); padding: 72px 60px; display: flex; flex-direction: column; transition: background 0.25s; }
.path-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #C8783A, #FF2D78, #E8C547); transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.path-card:hover { background: rgba(255,255,255,0.06); }
.path-card:hover::before { transform: scaleX(1); }
.path-head { display: flex; align-items: center; gap: 18px; margin-bottom: 44px; }
.path-num { font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(247,244,239,0.35); }
.path-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); transition: background 0.4s; }
.path-card:hover .path-line { background: rgba(255,255,255,0.25); }
.path-tag { font-size: 11px; font-weight: 600; color: #777; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.3s; }
.path-card:hover .path-tag { color: #AAA; }
.path-card h3 { font-family: var(--serif); font-size: clamp(38px, 4vw, 56px); font-weight: 400; letter-spacing: -0.022em; line-height: 1.01; color: #F7F4EF; margin-bottom: 22px; }
.path-card h3 em { font-style: italic;
  background: linear-gradient(135deg, #888 0%, #C8783A 20%, #FF2D78 45%, #E8C547 70%, #7B8FB0 90%, #888 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite; }
.path-card > p { font-size: 16px; color: rgba(247,244,239,0.48); line-height: 1.7; font-weight: 300; flex: 1; margin-bottom: 44px; }
.path-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Paths — scroll reveal */
.js .path-card { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.25s; }
.js .path-card:nth-child(2) { transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s, background 0.25s; }
.js .path-card.in-view { opacity: 1; transform: translateY(0); }

/* PRODUCTS */
.products-section { background: var(--bg-card); padding: 130px 0; }
.products-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; gap: 32px; flex-wrap: wrap; }
.shop-link { font-size: 14px; color: #111; font-weight: 500; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.shop-link::after { content: '→'; transition: transform 0.25s ease; }
.shop-link:hover::after { transform: translateX(4px); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: var(--bd); }
.product { aspect-ratio: 3/4; position: relative; overflow: hidden; display: block; }
.product-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: 3/4; }
.product-wide { grid-column: span 2; aspect-ratio: 3/2; }
.product-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1); }
.product:hover .product-img { transform: scale(1.06); }
.product::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.4s; }
.product:hover::after { background: rgba(0,0,0,0.12); }
.product-meta { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; padding: 56px 24px 22px; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.38) 45%, rgba(0,0,0,0.78) 100%); color: #fff; }
.product-brand { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.01em; line-height: 1.05; margin-bottom: 5px; }
.product-kind { opacity: 0.65; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.product-feature .product-meta { padding: 80px 32px 28px; }
.product-feature .product-brand { font-size: 34px; }

/* Products — scroll reveal */
.js .product { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .product:nth-child(2) { transition-delay: 0.07s; }
.js .product:nth-child(3) { transition-delay: 0.14s; }
.js .product:nth-child(5) { transition-delay: 0.07s; }
.js .product:nth-child(6) { transition-delay: 0.14s; }
.js .product:nth-child(8) { transition-delay: 0.07s; }
.js .product.in-view { opacity: 1; transform: translateY(0); }

/* PLANET */
.planet-section { background: var(--bg-warm); padding: 180px 40px; text-align: center; position: relative; overflow: hidden; }
.planet-section::before { content: ''; position: absolute; left: 50%; top: 50%; width: 1px; height: 170%; background: linear-gradient(180deg, transparent, rgba(247,244,239,0.13) 30%, rgba(247,244,239,0.13) 70%, transparent); transform: translate(-50%, -50%) rotate(23.5deg); pointer-events: none; }
.planet-mark { position: relative; font-family: var(--serif); font-style: italic; font-size: clamp(88px,14vw,160px); color: #333; line-height: 1; display: block; margin-bottom: 32px; letter-spacing: -0.03em; }
.planet-title { position: relative; font-family: var(--serif); font-weight: 400; font-size: clamp(40px,5.5vw,76px); line-height: 1.02; letter-spacing: -0.022em; color: #F7F4EF; margin-bottom: 28px; }
.planet-title em { font-style: italic;
  background: linear-gradient(135deg, #888 0%, #C8783A 20%, #FF2D78 45%, #E8C547 70%, #7B8FB0 90%, #888 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite; }
.planet-desc { position: relative; font-size: 18px; color: #555; max-width: 500px; margin: 0 auto; line-height: 1.65; font-weight: 300; }

/* Planet — staggered reveal */
.planet-section .reveal:nth-child(2) { transition-delay: 0.08s; }
.planet-section .reveal:nth-child(3) { transition-delay: 0.16s; }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .js .product, .js .pillar, .js .studio-embed-wrap, .js .studio-feat, .js .path-card { opacity: 1; transform: none; transition: none; }
  .product-img, .pillar-img img { transition: none; }
}

/* MOBILE */
@media (max-width: 900px) {
  /* Sections */
  .quality-section, .studio-section, .paths-section, .products-section { padding: 72px 0; }
  .planet-section { padding: 80px 24px; }

  /* Pillars */
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 36px 24px 0; }
  .pillar h3 { font-size: 28px; }
  .pillar-img { height: 200px; margin: 0 -24px; }

  /* Studio */
  .studio-head { grid-template-columns: 1fr; gap: 28px; align-items: start; margin-bottom: 40px; }
  .studio-title { font-size: clamp(34px, 9vw, 48px); }
  .studio-desc { font-size: 15px; }
  .studio-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .studio-actions .btn { width: 100%; justify-content: center; }
  .studio-features { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; margin-top: 40px; padding-top: 24px; }

  /* Paths */
  .paths { grid-template-columns: 1fr; }
  .path-card { padding: 44px 24px 36px; }
  .path-head { margin-bottom: 28px; }
  .path-card h3 { font-size: clamp(30px, 8vw, 40px); }
  .path-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .path-actions .btn { width: 100%; justify-content: center; }

  /* Products */
  .products { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .products-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .products-head .section-title { font-size: clamp(34px, 9vw, 48px); }
  .product-feature { grid-column: span 2; grid-row: auto; aspect-ratio: 1/1; }
  .product-wide { grid-column: span 2; aspect-ratio: 3/2; }
  .product-feature .product-meta { padding: 56px 24px 22px; }
  .product-feature .product-brand { font-size: 26px; }

  /* Planet */
  .planet-mark { font-size: clamp(72px, 18vw, 100px); }
  .planet-title { font-size: clamp(28px, 8vw, 40px); }
  .planet-desc { font-size: 15px; }
}
