/* Homepage material and editorial rhythm. Shared routes keep their existing styles. */
.home-page {
  background:
    radial-gradient(circle at 16% 0, rgba(184, 255, 61, 0.035), transparent 30rem),
    linear-gradient(180deg, #030705, #010302);
}

.home-page::after { opacity: 0.065; }
.home-page.scanlines::before { opacity: 0.12; }

.home-page .identity-hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.78fr);
  gap: clamp(24px, 3.5vw, 42px);
  min-height: 0;
  padding: clamp(24px, 3.8vw, 42px);
  text-align: left;
  isolation: isolate;
  border: 1px solid rgba(218, 244, 224, 0.13);
  border-top-color: rgba(232, 255, 237, 0.22);
  background:
    linear-gradient(150deg, rgba(226, 255, 232, 0.035), transparent 48%),
    rgba(7, 14, 10, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 14px 34px rgba(0, 0, 0, 0.16);
}

/* The opaque base above remains usable without backdrop-filter. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-page .identity-hero {
    background:
      linear-gradient(150deg, rgba(226, 255, 232, 0.035), transparent 48%),
      rgba(7, 14, 10, 0.78);
    -webkit-backdrop-filter: blur(18px) saturate(110%);
    backdrop-filter: blur(18px) saturate(110%);
  }
}

.home-page .identity-hero::before {
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(244, 255, 246, 0.025);
  background: none;
  mask-image: none;
  opacity: 1;
}

.home-page .identity-copy { min-width: 0; }

.home-page .system-status {
  margin-bottom: 22px;
  color: #a4b7a9;
  font-size: 0.64rem;
  letter-spacing: 0.105em;
}

.home-page .status-light {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 7px rgba(184, 255, 61, 0.3);
  animation: none;
}

.home-page .identity-title {
  max-width: 15ch;
  margin: 0 0 26px;
  font-size: clamp(2.15rem, 4.6vw, 3.65rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-align: left;
  text-wrap: initial;
  text-shadow: none;
}

.home-page .identity-title span { display: block; }

.home-page .identity-description {
  max-width: 53ch;
  margin: 0;
  text-align: left;
}

.home-page .identity-description p { margin: 0; }

.home-page .identity-description .identity-statement {
  max-width: 42ch;
  margin-top: 0;
  color: #e3ece5;
  font-size: clamp(1.06rem, 1.65vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.5;
  text-wrap: pretty;
}

.home-page .identity-description .identity-context {
  margin-top: 15px;
  color: #a4b7a9;
  font-size: clamp(0.9rem, 1.2vw, 0.96rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.home-page :is(.identity-instagram, .identity-twitch) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  margin: 7px 0 0 -12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #8c9d91;
  background: transparent;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.home-page :is(.identity-instagram, .identity-twitch) svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

/* Shared social row: separate 44px touch targets, existing visual treatment. */
.home-page .identity-socials {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 7px 0 0 -12px;
}

.home-page .identity-socials :is(.identity-instagram, .identity-twitch) { margin: 0; }

.home-page .identity-actions {
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-start;
}

.home-page .identity-button {
  width: auto;
  min-width: 0;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid rgba(222, 246, 229, 0.18);
  color: #dce8df;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), rgba(227, 255, 233, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  font-size: 0.66rem;
  letter-spacing: 0.055em;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.home-page .identity-button.secondary {
  color: #b1c4b8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), rgba(227, 255, 233, 0.012);
}

.home-page .identity-button:focus-visible,
.home-page :is(.identity-instagram, .identity-twitch):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-color: rgba(184, 255, 61, 0.55);
  color: var(--text-strong);
  background-color: rgba(227, 255, 233, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: none;
}

.home-page .identity-button:active,
.home-page .identity-button.touch-glow,
.home-page :is(.identity-instagram, .identity-twitch):active {
  color: var(--text-strong);
  border-color: rgba(184, 255, 61, 0.35);
  background-color: rgba(227, 255, 233, 0.065);
  transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
  .home-page .identity-button:hover {
    color: var(--text-strong);
    border-color: rgba(222, 246, 229, 0.32);
    background-color: rgba(227, 255, 233, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
  }

  .home-page :is(.identity-instagram, .identity-twitch):hover {
    color: #e3ece5;
    border-color: rgba(222, 246, 229, 0.12);
    background-color: rgba(227, 255, 233, 0.04);
  }
}

.home-page .identity-visual { min-height: 0; }

.home-page .driver-frame {
  width: min(100%, 320px);
  min-height: 0;
  margin: 0;
  padding: 18px 28px 18px 18px;
  border-color: rgba(222, 246, 229, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025), transparent 65%), rgba(2, 7, 4, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.home-page .driver-frame::before { border-color: rgba(222, 246, 229, 0.06); }
.home-page .driver-frame::after { color: #a0b2a5; }

.home-page .driver-image {
  width: 100%;
  max-height: none;
  filter: none;
}

@media (max-width: 760px) {
  .home-page .identity-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-page .identity-description { max-width: 56ch; }
  .home-page .identity-title { font-size: clamp(2.15rem, 7.9vw, 3.35rem); }
  .home-page .system-status { margin-bottom: 18px; }
  .home-page .identity-visual { justify-content: center; }
  .home-page .driver-frame { width: clamp(210px, 52vw, 290px); }
}

@media (max-width: 560px) {
  .home-page .identity-title { margin-bottom: 23px; }
  .home-page .identity-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .identity-button {
    padding-inline: 10px;
    font-size: clamp(0.6rem, 2.6vw, 0.66rem);
    letter-spacing: 0.025em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .identity-button,
  .home-page :is(.identity-instagram, .identity-twitch) { transition: none; }
  .home-page .identity-button:hover,
  .home-page .identity-button:active,
  .home-page .identity-button.touch-glow,
  .home-page :is(.identity-instagram, .identity-twitch):active { transform: none; }
}
