/* Home page: hero scene with the white-hat character, latest videos, topics, elsewhere.
   Loaded after ink.css; the home is always on the ink ground. */

body.home .page-content { padding-top: 0; }

/* ---- Hero ---- */
.hoy-hero { position: relative; overflow: hidden; color: #fff; background: var(--hoy-navy); }
.hoy-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hoy-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12, 18, 52, .88) 0%, rgba(12, 18, 52, .55) 45%, rgba(12, 18, 52, 0) 72%);
}
.hoy-hero-wrap {
  position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg);
  display: flex; align-items: flex-end; gap: var(--space-lg); min-height: 520px;
}
.hoy-hero-text { flex: 1 1 560px; max-width: 620px; padding: 64px 0; align-self: center; }
.hoy-hero-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hoy-chrome); opacity: .9; margin: 0 0 12px; }
body.ink .hoy-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 16px; color: #fff; }
.hoy-hero-intro { font-size: 1.02rem; line-height: 1.65; color: rgba(255, 255, 255, .92); margin: 0 0 26px; }
.hoy-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hoy-hero-ctas .btn { border-radius: var(--radius-full); padding: 12px 22px; }
.hoy-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.hoy-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.hoy-hero-avatar { flex: 0 0 auto; width: 220px; height: auto; margin-left: auto; margin-bottom: -2px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }

/* Phones: the scene and character get their own band, the text sits below on navy. */
@media (max-width: 760px) {
  .hoy-hero { --band: 62vw; }
  .hoy-hero picture img { inset: 0 0 auto 0; height: var(--band); object-position: 72% 50%; }
  .hoy-hero::after { inset: 0 0 auto 0; height: var(--band); background: linear-gradient(180deg, rgba(12, 18, 52, 0) 60%, var(--hoy-navy) 100%); }
  .hoy-hero-wrap { min-height: 0; display: block; padding: var(--band) 16px 0; }
  .hoy-hero-text { padding: 8px 0 28px; }
  .hoy-hero-intro { font-size: .95rem; }
  .hoy-hero-avatar { position: absolute; right: 16px; top: calc(var(--band) - 196px); width: 92px; margin: 0; }
}

/* ---- Sections ---- */
body.home .hoy-cond-banner {
  display: flex; align-items: center; gap: 14px; color: #fff; padding: 15px 22px; border-radius: 14px;
  margin: 28px 0 8px; text-decoration: none; background: var(--ink-2); border: 1px solid var(--hair); transition: border-color .2s;
}
body.home .hoy-cond-banner:hover { border-color: var(--ink-blue); }
.hoy-cond-banner-dot { width: 14px; height: 14px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.hoy-cond-banner-text { flex: 1; font-size: .95rem; line-height: 1.4; color: #fff; }
.hoy-cond-banner-text b { font-weight: 800; }
.hoy-cond-banner-text .muted { color: rgba(255, 255, 255, .7); }
.hoy-cond-banner-arrow { font-weight: 700; font-size: .9rem; white-space: nowrap; color: var(--ink-blue); }

.hoy-home-section { padding: 32px 0 8px; }
body.ink .hoy-home-section h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 18px; }
.hoy-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hoy-home-head a { font-weight: 700; }

/* Latest videos */
.hoy-latest { display: grid; gap: 20px 14px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 42%), 1fr)); }
.hoy-latest-empty { color: var(--ink-text-2); margin: 0; }
body.ink a.hoy-latest-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink-text); text-decoration: none; }
.hoy-latest-thumb { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair-soft); }
.hoy-latest-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .25s ease; }
.hoy-latest-card:hover .hoy-latest-thumb img { transform: scale(1.04); }
.hoy-latest-title { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.hoy-latest-date { font-size: .8rem; color: var(--ink-text-3); }

/* Topics */
.hoy-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
body.ink a.hoy-tile {
  display: block; padding: 20px; border-radius: 14px; text-decoration: none; color: var(--ink-text);
  background: var(--ink-2); border: 1px solid var(--hair-soft); border-top: 4px solid var(--hoy-royal); transition: transform .2s, border-color .2s;
}
body.ink a.hoy-tile:hover { transform: translateY(-2px); border-top-color: var(--hoy-chrome-lo); }
body.ink .hoy-tile h3 { font-size: 1.05rem; margin: 0 0 6px; }
.hoy-tile p { margin: 0; color: var(--ink-text-2); font-size: .92rem; line-height: 1.5; }

/* Elsewhere */
.hoy-links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
body.ink a.hoy-link {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; text-decoration: none;
  color: var(--ink-text); background: var(--ink-2); border: 1px solid var(--hair-soft); transition: border-color .2s;
}
body.ink a.hoy-link:hover { border-color: var(--ink-blue); }
.hoy-link img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; }
.hoy-link strong { display: block; font-size: 1.02rem; color: #fff; }
.hoy-link span { display: block; color: var(--ink-text-2); font-size: .9rem; line-height: 1.45; }
.hoy-link em { font-style: normal; color: var(--ink-blue); font-weight: 700; font-size: .88rem; }
