/* ── Phatt Music Co. — Home page ─────────────────────────────────────────── */

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-150px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(150px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Override page-canvas top padding for the hero — it's full-bleed ─────── */
.home-canvas { padding-top: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  position:    relative;
  min-height:  100vh;
  display:     flex;
  align-items: center;
  justify-content: center;
  overflow:    hidden;
  /* Full-bleed: escape the centered max-width canvas at any viewport width */
  width:       100vw;
  margin-left: calc(50% - 50vw);
}

.hero-bg {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position:        relative;
  z-index:         1;
  text-align:      center;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             20px;
  padding:         40px 24px;
}

.hero-logo {
  width:   clamp(200px, 30vw, 400px);
  height:  auto;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.1s forwards;
}

.hero-tagline {
  font-size:      clamp(14px, 1.6vw, 20px);
  font-weight:    400;
  color:          #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity:        0;
  animation:      fadeIn 0.5s ease 0.3s forwards;
}

.hero-cta {
  display:         inline-block;
  font-size:       clamp(13px, 1.3vw, 15px);
  font-weight:     600;
  color:           #fff;
  background:      rgba(255, 255, 255, 0.12);
  border:          1px solid rgba(255, 255, 255, 0.25);
  border-radius:   8px;
  padding:         12px 28px;
  text-decoration: none;
  letter-spacing:  0.04em;
  margin-top:      8px;
  opacity:         0;
  animation:       fadeIn 0.5s ease 0.5s forwards;
  transition:      background 0.2s, border-color 0.2s;
}
.hero-cta:hover {
  background:    rgba(255, 255, 255, 0.22);
  border-color:  rgba(255, 255, 255, 0.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   BOARD INTRO
   ══════════════════════════════════════════════════════════════════════════ */
.board-intro {
  display:               grid;
  grid-template-columns: 50% 50%;
  gap:                   0;
  align-items:           center;
  padding-top:           100px;
  padding-bottom:        80px;
}

.board-intro-text {
  padding-right:  48px;
  opacity:        0;
  transform:      translateX(-150px);
  animation:      slideInLeft 0.4s cubic-bezier(0.2, 0, 0, 1.1) 0.05s forwards;
}

.board-intro-heading {
  font-size:      clamp(24px, 2.8vw, 38px);
  font-weight:    700;
  color:          #fff;
  line-height:    1.2;
  letter-spacing: -0.01em;
  margin:         0;
}
.board-intro-heading em {
  font-style:     normal;
  font-weight:    300;
  letter-spacing: 0.05em;
  font-size:      0.85em;
}

.board-intro-image-wrap {
  opacity:   0;
  animation: slideInRight 0.4s cubic-bezier(0.2, 0, 0, 1.1) 0.1s forwards;
}
.board-intro-img {
  width:         100%;
  height:        auto;   /* override HTML height="" attribute to preserve aspect ratio */
  border-radius: 12px;
  display:       block;
}

@media (max-width: 900px) {
  .board-intro {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .board-intro-text { padding-right: 0; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MODULAR DESIGN — GIF section
   ══════════════════════════════════════════════════════════════════════════ */
.modular-section {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   64px;
  align-items:           center;
  padding:               80px 0;
  border-top:            1px solid rgba(255, 255, 255, 0.08);
}

.modular-heading {
  font-size:      clamp(36px, 5.5vw, 72px);
  font-weight:    700;
  color:          #fff;
  line-height:    1.05;
  letter-spacing: -0.02em;
  margin:         0 0 24px;
}

.modular-body {
  font-size:   clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  color:       rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin:      0;
}

.modular-features {
  list-style:     none;
  margin:         36px 0 0;
  padding:        0;
  display:        flex;
  flex-direction: column;
  gap:            20px;
}

.modular-feature-item {
  display:     flex;
  align-items: flex-start;
  gap:         14px;
}

.modular-feature-item::before {
  content:     '';
  flex-shrink: 0;
  width:       20px;
  height:      2px;
  background:  rgba(255, 255, 255, 0.4);
  margin-top:  10px;
}

.modular-feature-title {
  font-size:   clamp(14px, 1.3vw, 16px);
  font-weight: 600;
  color:       #fff;
  margin:      0 0 3px;
  line-height: 1.3;
}

.modular-feature-body {
  font-size:   clamp(12px, 1.1vw, 14px);
  font-weight: 400;
  color:       rgba(255, 255, 255, 0.45);
  margin:      0;
  line-height: 1.5;
}

.modular-cta {
  margin-top: 40px;
}

.modular-gif-wrap {
  display: flex;
  justify-content: center;
}

.modular-gif {
  width:         100%;
  height:        auto;
  display:       block;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .modular-section {
    grid-template-columns: 1fr;
    gap:                   40px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   FEATURES STRIP
   ══════════════════════════════════════════════════════════════════════════ */
.features-section {
  padding:    80px 0;
  display:    grid;
  grid-template-columns: repeat(3, 1fr);
  gap:        48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
  opacity:   0;
  transform: translateY(24px);
}
.feature-item:nth-child(1) { animation: slideInUp 0.4s cubic-bezier(0.2, 0, 0, 1.1) 0.08s forwards; }
.feature-item:nth-child(2) { animation: slideInUp 0.4s cubic-bezier(0.2, 0, 0, 1.1) 0.15s forwards; }
.feature-item:nth-child(3) { animation: slideInUp 0.4s cubic-bezier(0.2, 0, 0, 1.1) 0.22s forwards; }

.feature-title {
  font-size:      clamp(17px, 1.8vw, 24px);
  font-weight:    700;
  color:          #fff;
  line-height:    1.2;
  margin:         0 0 12px;
  letter-spacing: -0.01em;
}
.feature-body {
  font-size:   clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  color:       rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin:      0;
}

@media (max-width: 900px) {
  .features-section { grid-template-columns: 1fr; gap: 32px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SIZING OPTIONS (interactive config cards)
   ══════════════════════════════════════════════════════════════════════════ */
.sizing-section {
  padding: 80px 0;
}

.sizing-title {
  font-size:      clamp(24px, 2.8vw, 38px);
  font-weight:    700;
  color:          #fff;
  letter-spacing: -0.01em;
  margin:         0 0 48px;
}

.sizing-grid {
  display:     flex;
  gap:         20px;
  align-items: stretch;
}

.sizing-card {
  flex:           1 1 0;
  min-width:      0;
  background:     rgba(255, 255, 255, 0.03);
  border:         1px solid rgba(255, 255, 255, 0.06);
  border-radius:  12px;
  padding:        24px 20px 20px;
  display:        flex;
  flex-direction: column;
  gap:            16px;
  cursor:         pointer;
  transition:     flex 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  border-color 0.3s,
                  background 0.3s,
                  opacity 0.3s;
}

/* Siblings dim when another card is focused */
.sizing-grid.has-focus .sizing-card {
  flex:    0.5 1 0;
  opacity: 0.45;
}

/* The expanded card */
.sizing-grid.has-focus .sizing-card.expanded {
  flex:         2.5 1 0;
  opacity:      1;
  border-color: rgba(255, 255, 255, 0.2);
  background:   rgba(255, 255, 255, 0.06);
}

.sizing-model {
  font-size:      clamp(16px, 1.6vw, 20px);
  font-weight:    700;
  color:          #fff;
  margin:         0;
  letter-spacing: -0.01em;
}

.sizing-img-wrap {
  flex:            1;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.sizing-img {
  width:      100%;
  height:     auto;
  display:    block;
  max-height: 180px;
  object-fit: contain;
  transition: opacity 0.15s, max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sizing-card.expanded .sizing-img { max-height: 260px; }

.sizing-img.swapping { opacity: 0; }

.sizing-configs {
  display:   flex;
  flex-wrap: wrap;
  gap:       8px;
}

.sizing-chip {
  font-family:   var(--font, 'Neue Haas Grotesk', sans-serif);
  font-size:     clamp(11px, 1vw, 13px);
  font-weight:   500;
  color:         rgba(255, 255, 255, 0.5);
  background:    transparent;
  border:        1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding:       5px 10px;
  cursor:        pointer;
  transition:    color 0.15s, border-color 0.15s, background 0.15s;
}

.sizing-chip:hover {
  color:        rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}

.sizing-chip.active {
  color:        #fff;
  background:   rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
  .sizing-grid {
    display:               grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .sizing-card {
    flex:    unset;
    opacity: 1 !important;
    cursor:  default;
  }
}

@media (max-width: 500px) {
  .sizing-grid { grid-template-columns: 1fr; }
}

/* ── Hinge Section ───────────────────────────────────────────────────────── */
.hinge-section {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   64px;
  align-items:           center;
  padding:               80px 0;
  border-top:            1px solid rgba(255, 255, 255, 0.08);
}

.hinge-heading {
  font-size:      clamp(36px, 5.5vw, 72px);
  font-weight:    700;
  line-height:    1.05;
  letter-spacing: -0.02em;
  margin:         0 0 24px;
}

.hinge-body {
  font-size: clamp(14px, 1.4vw, 17px);
  color:     rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin:    0;
}

.hinge-features {
  list-style: none;
  padding:    0;
  margin:     36px 0 0;
  display:    flex;
  flex-direction: column;
  gap:        20px;
}

.hinge-feature-item {
  display:     flex;
  gap:         16px;
  align-items: flex-start;
}

.hinge-feature-item::before {
  content:    '';
  flex-shrink: 0;
  width:      20px;
  height:     2px;
  background: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
}

.hinge-feature-title {
  font-size:   clamp(13px, 1.2vw, 15px);
  font-weight: 600;
  margin:      0 0 4px;
}

.hinge-feature-body {
  font-size:   clamp(13px, 1.2vw, 15px);
  color:       rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  margin:      0;
}

.hinge-gif-wrap {
  height:        520px;
  overflow:      hidden;
  border-radius: 16px;
}

.hinge-gif {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center center;
  display:         block;
}

@media (max-width: 900px) {
  .hinge-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hinge-text { order: -1; }
}

/* ── Page-end CTA ────────────────────────────────────────────────────────── */
.page-cta {
  padding:    80px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-tagline, .hero-cta,
  .board-intro-text, .board-intro-image-wrap,
  .feature-item, .sizing-card,
  .modular-text, .modular-gif-wrap {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
