/* pages.css — hero, article, page-specific blocks */

/* Hero — asymmetric / kinetic */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -140px; width: 520px; height: 520px;
  background: repeating-conic-gradient(var(--red) 0 25%, #fff 0 50%) 0 0/64px 64px;
  border-radius: 50%; opacity: .14; transform: rotate(12deg); z-index: 0;
}
.hero::after {
  content: ""; position: absolute; bottom: -80px; left: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%); opacity: .18; z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .kin { color: var(--red); display: inline-block; }
.hero h1 .kin-b { color: var(--blue); display: inline-block; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-visual {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); transform: rotate(-2.4deg);
}
.hero-visual .label {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; color: #fff;
  font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.hero-visual .pin {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  background: #fff; color: var(--ink); font-family: var(--ff-display); font-weight: 700;
  font-size: .78rem; padding: 7px 13px; border-radius: 999px; letter-spacing: .05em;
}

/* Ticker */
.ticker { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; border-block: 0; }
.ticker-track { display: inline-flex; gap: 50px; padding: 12px 0; animation: tick 26s linear infinite; font-family: var(--ff-display); font-size: .9rem; letter-spacing: .05em; }
.ticker-track span { color: #cfd4e8; }
.ticker-track b { color: var(--red); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Page header (interior pages) */
.page-hero { position: relative; padding: 64px 0 50px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, var(--red)); opacity: .96;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before { background: #fff; }
.page-hero h1 { color: #fff; margin: 16px 0 16px; }
.page-hero p { color: #e3e6fb; max-width: 64ch; font-size: 1.12rem; }
.crumbs { font-size: .82rem; color: #c7cdf2; margin-bottom: 8px; }
.crumbs a { color: #fff; }
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  background: repeating-conic-gradient(rgba(255,255,255,.5) 0 25%, transparent 0 50%) 0 0/44px 44px;
  opacity: .25; border-radius: 50%;
}

/* Article / longread */
.article { padding: 60px 0 0; }
.article-layout { display: grid; grid-template-columns: 1fr 290px; gap: 56px; align-items: start; }
.prose { max-width: 72ch; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 34px 0 12px; }
.prose p { margin-bottom: 18px; font-size: 1.06rem; }
.prose ul { margin-bottom: 18px; }
.prose .dropcap::first-letter {
  font-family: var(--ff-display); font-size: 3.4rem; font-weight: 700; color: var(--red);
  float: left; line-height: .82; margin: 6px 12px 0 0;
}
.callout {
  border-left: 4px solid var(--red); background: #fff; padding: 22px 24px;
  border-radius: 0 var(--r-md) var(--r-md) 0; margin: 28px 0; box-shadow: var(--shadow-sm);
}
.callout p { margin: 0; font-style: italic; color: var(--ink); font-size: 1.08rem; }
.callout cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; color: var(--blue); font-family: var(--ff-display); }
.figure { margin: 30px 0; border-radius: var(--r-md); overflow: hidden; position: relative; aspect-ratio: 16/8; box-shadow: var(--shadow-sm); }
.figure figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 18px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }

/* Sidebar (TOC) */
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; position: sticky; top: 96px; }
.aside-card h4 { font-family: var(--ff-display); margin-bottom: 14px; font-size: 1rem; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 10px; }
.toc a { font-size: .92rem; color: var(--ink-soft); }
.toc a:hover { color: var(--red); }

/* Ranking table */
.rank-list { display: flex; flex-direction: column; gap: 14px; counter-reset: r; }
.rank-row {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px;
  transition: transform .2s, box-shadow .2s;
}
.rank-row:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.rank-row .num { font-family: var(--ff-display); font-size: 2.2rem; font-weight: 700; color: var(--blue); }
.rank-row:nth-child(1) .num { color: var(--red); }
.rank-row h3 { font-size: 1.18rem; margin-bottom: 4px; }
.rank-row p { font-size: .92rem; color: var(--muted); margin: 0; }
.rank-row .score { font-family: var(--ff-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); white-space: nowrap; }

/* Timeline */
.timeline { border-left: 3px solid var(--line); padding-left: 28px; margin: 30px 0; display: flex; flex-direction: column; gap: 28px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -36px; top: 4px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red);
}
.timeline-item time { font-family: var(--ff-display); font-weight: 700; color: var(--blue); font-size: .9rem; }
.timeline-item h3 { font-size: 1.15rem; margin: 4px 0 6px; }

/* CTA band */
.band {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  padding: 56px 44px; background: linear-gradient(120deg, var(--blue-deep), var(--blue));
}
.band::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px;
  background: repeating-conic-gradient(var(--red) 0 25%, #fff 0 50%) 0 0/40px 40px; opacity: .14; border-radius: 50%;
}
.band h2 { color: #fff; position: relative; }
.band p { color: #dfe4ff; max-width: 60ch; position: relative; margin: 12px 0 24px; }

/* Contact / about */
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.info-card .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(26,54,184,.1); display: grid; place-items: center; color: var(--blue); margin-bottom: 16px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.info-card a { font-weight: 600; }

.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; text-align: center; }
.team-card .av { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; font-family: var(--ff-display); font-weight: 700; font-size: 1.6rem; }
.team-card h3 { font-size: 1.1rem; }
.team-card .role { color: var(--red); font-size: .85rem; font-weight: 600; font-family: var(--ff-display); }

/* Legal / prose pages */
.legal { padding: 60px 0; }
.legal .prose h2 { font-size: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .94rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--ff-display); background: var(--paper); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; }
  .article-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .info-grid, .team-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 48px 1fr; }
  .rank-row .score { grid-column: 2; }
}
