/* ================================================================
   HERO — Inner page variant (about, solutions, contact)
   Static engineering notebook grid + frosted glass card
   ================================================================ */

/* ── Override base .hero::before overlay with static grid ── */
.hero--short::before {
  background:
    /* Major grid lines */
    linear-gradient(to right, rgba(200, 200, 210, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 200, 210, 0.05) 1px, transparent 1px),
    /* Minor grid lines */
    linear-gradient(to right, rgba(200, 200, 210, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 200, 210, 0.03) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
}

/* ── Hide background images and detection brackets ── */
.hero--short .hero__bg-image,
.hero--short .detection-bracket {
  display: none;
}

/* ── Frosted glass card ── */
.hero__card {
  background: rgba(17, 17, 24, 0.72);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(42, 44, 56, 0.5);
  border-radius: var(--radius-xl);
  padding: 28px 36px 24px;
  max-width: 680px;
  box-shadow:
    0 4px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  /* Letterhead: logo | label on one row, content ruled off below */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 24px;
  /* Entrance: same sequence and timing as .hero-card in hero.css */
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards 0.2s;
}

/* ── Logo (sizes in styles.css) ── */
.hero__card .hero__logo {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards 0s;
}

/* ── Label: right-aligned, centred on the logo ── */
.hero__card .hero__label {
  justify-self: end;
  align-self: center;
  text-align: right;
  font-size: 13.8px;
  line-height: 1.2;
  color: var(--blue-300);
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.3s ease forwards 0.1s;
}

/* ── Title and subtitle span the card, ruled off from the letterhead ── */
.hero__card .hero__title,
.hero__card .hero__subtitle {
  grid-column: 1 / -1;
}
.hero__card .hero__title {
  /* Same type as the homepage .hero-title */
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(157, 161, 174, 0.25);
  margin-bottom: 24px;
}
.hero__card .hero__title em {
  font-style: normal;
  color: var(--blue-300);
}
.hero__card .hero__subtitle {
  color: var(--neutral-100);
  font-weight: 500;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.4s ease forwards 0.4s;
}

/* ── Wide viewport: align card text with .container text below ── */
@media (min-width: 1280px) {
  .hero__card {
    margin-left: -36px;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__card {
    padding: 24px 20px 20px;
    max-width: 100%;
  }
  .hero__card .hero__label {
    font-size: 10.5px;
  }
  .hero__card .hero__title {
    font-size: clamp(22px, 6vw, 28px);
    margin-top: 16px;
    padding-top: 16px;
    margin-bottom: 14px;
  }
}

/* ── Entrance keyframes (same as hero.css, which inner pages don't load) ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
