/* ─── Homepage Template ─────────────────────────────────────── */

.home-page { background: var(--bg); }

/* ── Hero ── */
.home-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 68px; /* fixed nav height */
}

/* Video backdrop */
.home-hero__video-wrap {
  position: absolute;
  inset: 0;
}

.home-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark overlay */
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.72) 0%,
    rgba(5, 5, 5, 0.50) 35%,
    rgba(5, 5, 5, 0.68) 65%,
    rgba(5, 5, 5, 0.92) 100%
  );
}

/* Grain */
.home-hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.025;
  pointer-events: none;
}

/* ── Search console — flex child, centred by hero ── */
.home-hero__search-anchor {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* ── News toggle row — inside .sc__form, at the bottom ── */
.sc__news-toggle-row {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
}

.home-news-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 100px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.home-news-toggle__btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.16);
}

.home-news-toggle__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.home-news-toggle__chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.home-news-toggle__btn[aria-expanded="false"] .home-news-toggle__chevron {
  transform: rotate(180deg);
}

/* ── News panel — glass card matching search console, inside hero ── */
.home-news {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 40px 0;
  overflow: hidden;
  max-height: 500px;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.home-news.is-collapsed {
  max-height: 0;
  opacity: 0;
}

.home-news__inner {
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex;
  overflow: hidden;
}

.home-news__item {
  flex: 1;
  padding: 18px 28px;
  border-right: 1px solid var(--line);
}

.home-news__item:last-child {
  border-right: none;
}

.home-news__eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.home-news__title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.45;
}

.home-news__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-news__link:hover {
  color: var(--amber);
}

.home-news__arrow {
  opacity: 0.5;
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-news__link:hover .home-news__arrow {
  opacity: 1;
  transform: translateX(3px);
}

.home-news__body {
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--fg-dim);
  line-height: 1.5;
}

.home-news__body p {
  margin: 0 0 6px !important;
}

.home-news__body p:last-child {
  margin-bottom: 0 !important;
}

.home-news__body ul,
.home-news__body ol {
  margin: 0 0 6px !important;
  padding-left: 16px !important;
}

.home-news__body ul {
  list-style: disc !important;
}

.home-news__body ol {
  list-style: decimal !important;
}

.home-news__body li {
  margin-bottom: 3px !important;
}

@media (max-width: 720px) {
  /* Hero: let it grow to fit form + news so content isn't clipped */
  .home-hero {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    justify-content: flex-start;
    padding-top: 88px;
    padding-bottom: 48px;
  }

  .home-news { padding: 0 16px; }
  .home-news__inner { flex-direction: column; }
  .home-news__item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
  }
  .home-news__item:last-child { border-bottom: none; }
}
