/* ══════════════════════════════════════════════════════════════════════
   Tessly Academy hub — light editorial surface.
   Type-led hero, hairline dividers, mono details; the brand navy is
   reserved for one closing CTA band. Grid-paper texture and the square
   eyebrow marker echo the landing's object metaphor.
   ══════════════════════════════════════════════════════════════════════ */

.academy-shell {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 10px;
  color: var(--tessly-navy);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--tessly-blue);
}

.academy-hero h1,
.hero-lede,
.academy-purpose h2,
.section-heading h2,
.academy-cta h2,
.featured-article h3,
.topic-item h3 {
  text-wrap: pretty;
}

/* ── Hero — type only, faint grid paper fading out ──────────────────── */

.academy-hero {
  position: relative;
  overflow: hidden;
  padding: 172px 0 104px;
  background: var(--background);
}

.academy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(29, 52, 84, 0.05) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, rgba(29, 52, 84, 0.05) 1px, transparent 1px) 0 0 / 36px 100%;
  mask-image: linear-gradient(180deg, #000 30%, transparent 96%);
  pointer-events: none;
}

.academy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 90% at 78% -30%, rgba(115, 153, 204, 0.16), transparent 68%);
  pointer-events: none;
}

.academy-hero .academy-shell {
  position: relative;
  z-index: 1;
}

.academy-hero h1 {
  max-width: 15em;
  margin: 0;
  color: var(--tessly-navy);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 30em;
  margin: 26px 0 0;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1.85;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--tessly-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--tessly-blue);
  padding-bottom: 3px;
}

.text-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--primary-deep);
  border-color: var(--primary-deep);
}

.text-link:hover span {
  transform: translateX(3px);
}

/* ── Featured article ───────────────────────────────────────────────── */

.latest {
  border-top: 1px solid var(--border);
  padding: 96px 0 104px;
}

.section-heading .eyebrow {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  color: var(--tessly-navy);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.005em;
}

.featured-article {
  display: grid;
  margin-top: 48px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.featured-article:hover {
  border-color: var(--border-strong);
  box-shadow: 0 28px 56px -32px rgba(15, 23, 42, 0.22);
}

.featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(32px, 4.5vw, 60px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--tessly-blue-text);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-meta span + span::before {
  content: "/";
  margin-right: 14px;
  color: var(--border-strong);
}

.featured-article h3 {
  margin: 22px 0 0;
  color: var(--tessly-navy);
  font-size: clamp(24px, 2.7vw, 33px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.featured-article h3 a {
  text-decoration: none;
}

.featured-article h3 a:hover {
  color: var(--primary-deep);
}

.featured-article p {
  max-width: 30em;
  margin: 16px 0 0;
  color: var(--muted-foreground);
  font-size: 15.5px;
  line-height: 1.85;
}

.article-link {
  display: inline-block;
  margin-top: 32px;
  color: var(--tessly-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--tessly-blue);
  padding-bottom: 3px;
}

.article-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.article-link:hover {
  color: var(--primary-deep);
  border-color: var(--primary-deep);
}

.article-link:hover span {
  transform: translateX(3px);
}

.featured-media {
  display: block;
  border-left: 1px solid var(--border);
  background: var(--tessly-surface);
}

.featured-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* ── Purpose statement ──────────────────────────────────────────────── */

.academy-purpose {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.academy-purpose-inner {
  max-width: 880px;
  padding: 120px 24px;
  text-align: center;
}

.academy-purpose h2 {
  margin: 0;
  color: var(--tessly-navy);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.academy-purpose p {
  max-width: 34em;
  margin: 24px auto 0;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.85;
  text-wrap: balance;
}

/* ── Topic map ──────────────────────────────────────────────────────── */

.topic-map {
  border-top: 1px solid var(--border);
  padding: 104px 0 120px;
}

.topic-list {
  display: grid;
  margin-top: 56px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.topic-item {
  border-bottom: 1px solid var(--border);
  padding: 40px 48px 44px 0;
}

.topic-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.topic-item:nth-child(even) {
  padding-left: 48px;
}

.topic-index {
  display: block;
  margin-bottom: 20px;
  color: var(--tessly-blue-text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.topic-item h3 {
  margin: 0;
  color: var(--tessly-navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.topic-item p {
  max-width: 26em;
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.85;
}

/* ── Closing CTA — the page's one navy moment ───────────────────────── */

.academy-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--tessly-navy) 0%, var(--tessly-navy-deep) 100%);
  padding: 112px 0;
  color: #ffffff;
}

.academy-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(115, 153, 204, 0.07) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, rgba(115, 153, 204, 0.07) 1px, transparent 1px) 0 0 / 36px 100%;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  pointer-events: none;
}

.academy-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
}

.academy-cta .eyebrow {
  color: #bcd3f2;
}

.academy-cta .eyebrow::before {
  background: var(--tessly-blue);
}

.academy-cta h2 {
  max-width: 18em;
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.academy-cta p {
  max-width: 36em;
  margin: 18px 0 0;
  color: #a8bcd8;
  font-size: 15.5px;
  line-height: 1.85;
}

.button-light {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 26px;
  color: var(--tessly-navy);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button-light:hover {
  background: #e4edf9;
  border-color: #e4edf9;
}

.button-light:active {
  transform: translateY(1px);
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .academy-hero {
    padding: 148px 0 84px;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-media {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }

  .featured-media img {
    min-height: 0;
    aspect-ratio: 21 / 9;
  }

  .academy-purpose-inner {
    padding: 96px 24px;
  }

  .academy-cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .academy-shell {
    padding: 0 18px;
  }

  .academy-hero {
    padding: 132px 0 72px;
  }

  .academy-hero h1 {
    font-size: clamp(32px, 9.6vw, 40px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .latest,
  .topic-map {
    padding: 72px 0 80px;
  }

  .featured-body {
    padding: 28px 22px 32px;
  }

  .featured-media img {
    aspect-ratio: 16 / 9;
  }

  .academy-purpose-inner {
    padding: 80px 18px;
    text-align: left;
  }

  .academy-purpose p {
    margin-left: 0;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .topic-item,
  .topic-item:nth-child(even) {
    border-right: 0;
    padding: 32px 0 36px;
  }

  .academy-cta {
    padding: 84px 0;
  }

  .button-light {
    width: 100%;
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-article,
  .text-link span,
  .article-link span,
  .button-light {
    transition: none;
  }
}
