.home-panels {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 116px 8% 88px;
  text-align: center;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(88px, 14vw, 190px);
  line-height: 0.85;
  letter-spacing: 0;
  color: #fff;
  position: relative;
}

.hero-underline {
  position: absolute;
  left: 2px;
  bottom: -8px;
  width: clamp(240px, 38vw, 520px);
}

.hero-identity {
  font-family: var(--font-body);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  max-width: 420px;
  margin-bottom: clamp(28px, 5vh, 52px);
}

.hero-statement {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin-top: clamp(42px, 7vh, 76px);
}

.hero-tagwrap {
  display: flex;
  align-items: center;
  margin-top: clamp(26px, 5vh, 56px);
}

.hero-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.mat[data-mat="home"] .mat-accessory--protractor {
  bottom: 8%;
  left: 5%;
  width: calc(var(--mat-cell) * 9);
  transform: rotate(-14deg);
}

.mat[data-mat="home"] .mat-accessory--scissors {
  top: 4%;
  left: 3%;
  width: calc(var(--mat-cell) * 9);
  transform: rotate(-12deg);
}

.mat[data-mat="home"] .mat-accessory--highlighter {
  top: 6%;
  right: 5%;
  width: calc(var(--mat-cell) * 9);
  transform: rotate(135deg);
}

.mat[data-mat="home"] .mat-accessory--marker {
  right: 6%;
  bottom: 8%;
  width: calc(var(--mat-cell) * 9);
  transform: rotate(24deg);
}

/* ── Swipe hint (mobile only) ── */
.swipe-hint {
  display: none;
}

@media (max-width: 720px) {
  .home-portrait {
    padding: 48px 7% 100px;
    justify-content: center;
  }

  .hero-identity {
    font-size: clamp(11px, 2.8vw, 13px);
    margin-bottom: clamp(14px, 3vh, 22px);
  }

  .hero-name {
    font-size: clamp(64px, 20vw, 96px);
  }

  .hero-underline {
    width: clamp(180px, 55vw, 300px);
  }

  .hero-statement {
    max-width: 32ch;
    margin-top: clamp(24px, 5vh, 40px);
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.7;
  }

  .hero-tagwrap {
    margin-top: clamp(16px, 3.5vh, 28px);
  }

  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: clamp(14px, 3vh, 24px);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    animation: swipe-hint-life 7s ease 1.5s forwards;
  }

  .swipe-hint.is-hidden {
    opacity: 0 !important;
    animation: none;
    transition: opacity 0.3s ease;
  }

  .swipe-hint-arrow {
    display: inline-block;
    animation: swipe-arrow-bounce 1.5s ease-in-out 2s infinite;
  }

  @keyframes swipe-hint-life {
    0% { opacity: 0; transform: translateY(5px); }
    10% { opacity: 0.55; transform: translateY(0); }
    75% { opacity: 0.55; }
    100% { opacity: 0; }
  }

  @keyframes swipe-arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
  }
}

@media (max-width: 380px) {
  .home-portrait {
    padding: 36px 6% 96px;
  }

  .hero-identity {
    margin-bottom: 14px;
  }

  .hero-name {
    font-size: clamp(56px, 18vw, 80px);
  }

  .hero-statement {
    margin-top: 22px;
    max-width: 28ch;
  }

  .hero-tagwrap {
    margin-top: 14px;
  }
}

@media (max-width: 720px) and (max-height: 480px) {
  .home-portrait {
    padding: 28px 7% 72px;
  }

  .hero-name {
    font-size: clamp(44px, 14vw, 72px);
  }

  .hero-identity {
    margin-bottom: 10px;
  }

  .hero-statement {
    margin-top: 14px;
    font-size: 13px;
  }

  .hero-tagwrap {
    margin-top: 12px;
  }

  .swipe-hint {
    margin-top: 10px;
  }
}

@media (min-width: 721px) and (max-height: 480px) {
  .home-portrait {
    padding: 52px 8% 16px;
  }

  .hero-name {
    font-size: clamp(64px, 11vw, 92px);
  }

  .hero-identity {
    margin-bottom: 14px;
  }

  .hero-statement {
    margin-top: 20px;
  }

  .hero-tagwrap {
    margin-top: 16px;
  }
}
