:root {
  /* Hillside High School palette */
  --navy: #1b438b;
  --navy-deep: #0f2a5e;
  --navy-ink: #081a3d;
  --cyan: #4bb3de;
  --cyan-bright: #00d6ed;

  /* Supporting tones */
  --cream: #f6f1e8;
  --paper: #fbf8f1;
  --bone: #ffffff;
  --ink: #0c1530;
  --muted: #5a6685;
  --hairline: rgba(15, 42, 94, 0.12);

  /* Spanish accent (subtle, used sparingly) */
  --saffron: #e8a93c;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain overlay across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ───────────── NAV ───────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--navy-ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.brand-mark::before {
  background: var(--navy);
  transform: translate(-3px, -2px);
}
.brand-mark::after {
  background: var(--cyan-bright);
  transform: translate(4px, 3px);
  mix-blend-mode: multiply;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--cyan-bright);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.is-active { color: var(--navy); }
.nav-links a.is-active::after { width: 100%; }
.nav-cta {
  background: var(--navy-ink);
  color: var(--paper) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--navy);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

/* ───────────── HERO (homepage) ───────────── */
.hero {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(circle at 20% 30%, rgba(75, 179, 222, 0.22), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(27, 67, 139, 0.18), transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(0, 214, 237, 0.14), transparent 45%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 4px rgba(0, 214, 237, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 214, 237, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(0, 214, 237, 0); }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--navy-ink);
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: var(--cyan-bright);
  opacity: 0.55;
  z-index: -1;
}
.hero-lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 40px;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--navy-ink);
  color: var(--paper);
  box-shadow: 0 8px 24px -8px rgba(8, 26, 61, 0.5);
}
.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(8, 26, 61, 0.55);
}
.btn-primary svg { transition: transform 0.25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--navy-ink);
  border: 1.5px solid var(--navy-ink);
}
.btn-ghost:hover {
  background: var(--navy-ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* Homepage hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 560px;
}
.visual-card {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(8, 26, 61, 0.45);
}
.visual-card-1 {
  inset: 0 25% 30% 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}
.visual-card-1:hover { transform: rotate(-1deg) scale(1.02); }
.visual-card-1 .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12rem;
  line-height: 1;
  color: var(--cyan-bright);
  letter-spacing: -0.05em;
}
.visual-card-2 {
  inset: 35% 0 0 30%;
  background: var(--cream);
  transform: rotate(4deg);
  padding: 28px;
  transition: transform 0.5s ease;
}
.visual-card-2:hover { transform: rotate(2deg) scale(1.02); }
.visual-card-2 .quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--navy-ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.visual-card-2 .quote-author {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}
.sun-badge {
  position: absolute;
  top: 14%;
  right: -10%;
  width: 130px;
  height: 130px;
  animation: spin 28s linear infinite;
  filter: drop-shadow(0 16px 28px rgba(0, 214, 237, 0.45));
  z-index: 3;
}
.sun-badge svg { width: 100%; height: 100%; }
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sun-badge { animation: none; }
}

/* ───────────── PAGE HEADER (year pages) ───────────── */
.page-header {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(circle at 25% 40%, rgba(75, 179, 222, 0.18), transparent 55%),
    radial-gradient(circle at 75% 30%, rgba(27, 67, 139, 0.14), transparent 50%);
  z-index: 0;
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: end;
}
.page-numeral {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(7rem, 16vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--navy-ink);
  margin: 0;
}
.page-numeral em {
  font-style: italic;
  color: var(--cyan);
}
.page-title-block h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--navy-ink);
}
.page-title-block h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
}
.page-title-block p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0;
}
.crumbs {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumbs a { color: var(--cyan); }
.crumbs a:hover { color: var(--navy); }
.crumbs span { color: var(--muted); }

/* ───────────── SECTIONS ───────────── */
section {
  padding: 100px 0;
  position: relative;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head-left { max-width: 640px; }
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--cyan);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--navy-ink);
}
.section-head h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
}
.section-meta {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 280px;
  text-align: right;
}

/* ───────────── YEAR CARDS ───────────── */
.years-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.year-card {
  position: relative;
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 36px 28px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.year-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(27, 67, 139, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.year-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px -22px rgba(8, 26, 61, 0.28);
  border-color: var(--navy);
}
.year-card:hover::before { opacity: 1; }
.year-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 6.5rem;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--navy-ink);
  margin: 0;
}
.year-num em {
  font-style: italic;
  color: var(--cyan);
}
.year-label {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.year-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.year-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy-ink);
  letter-spacing: -0.01em;
}
.year-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}
.year-arrow svg { transition: transform 0.3s ease; color: var(--navy-ink); }
.year-card:hover .year-arrow { background: var(--cyan-bright); }
.year-card:hover .year-arrow svg { transform: translateX(2px); }

/* GCSE card — emphasised */
.year-card.is-gcse {
  background: linear-gradient(155deg, var(--navy-ink) 0%, var(--navy) 100%);
  color: var(--paper);
  border-color: transparent;
}
.year-card.is-gcse::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 214, 237, 0.35), transparent 70%);
}
.year-card.is-gcse .year-num,
.year-card.is-gcse .year-name { color: var(--paper); }
.year-card.is-gcse .year-num em { color: var(--cyan-bright); }
.year-card.is-gcse .year-label { color: var(--cyan); }
.year-card.is-gcse .year-foot { border-top-color: rgba(255, 255, 255, 0.15); }
.year-card.is-gcse .year-arrow { background: rgba(255, 255, 255, 0.1); }
.year-card.is-gcse .year-arrow svg { color: var(--paper); }
.year-card.is-gcse:hover .year-arrow { background: var(--cyan-bright); }
.year-card.is-gcse:hover .year-arrow svg { color: var(--navy-ink); }

/* ───────────── FEATURE / BLOG STRIP ───────────── */
.feature {
  background: var(--navy-ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 214, 237, 0.18), transparent 60%);
  pointer-events: none;
}
.feature-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cyan-bright);
  margin-bottom: 20px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--paper);
}
.feature h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--cyan-bright);
}
.feature p {
  color: rgba(246, 241, 232, 0.78);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 0 32px;
  line-height: 1.6;
}
.feature .btn {
  background: var(--cyan-bright);
  color: var(--navy-ink);
}
.feature .btn:hover {
  background: var(--paper);
  transform: translateY(-2px);
}
.feature-aside { position: relative; z-index: 2; }
.feature-flourish {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--cyan-bright);
  margin: 0;
  text-align: right;
}
.feature-flourish em { font-style: italic; }

/* ───────────── LINKS GRID ───────────── */
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
}
.link-card::after {
  content: "→";
  position: absolute;
  top: 32px;
  right: 28px;
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.link-card:hover {
  background: var(--navy-ink);
  color: var(--paper);
}
.link-card:hover::after {
  transform: translate(4px, -4px) rotate(-45deg);
  color: var(--cyan-bright);
}
.link-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 500;
}
.link-card:hover .link-num { color: var(--cyan-bright); }
.link-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: inherit;
}
.link-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 90%;
}
.link-card:hover p { color: rgba(246, 241, 232, 0.7); }

/* ───────────── QUIZ CTA (year pages) ───────────── */
.quiz-cta-section { padding: 30px 0 0; }
.quiz-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, var(--navy-ink) 0%, var(--navy) 100%);
  color: var(--paper);
  border-radius: 22px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s ease;
}
.quiz-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 214, 237, 0.22), transparent 60%);
  pointer-events: none;
}
.quiz-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -22px rgba(8, 26, 61, 0.4);
}
.quiz-cta-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cyan-bright);
  margin-bottom: 10px;
}
.quiz-cta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--paper);
  line-height: 1.15;
}
.quiz-cta h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--cyan-bright);
}
.quiz-cta p {
  margin: 0;
  color: rgba(246, 241, 232, 0.78);
  font-size: 0.98rem;
  max-width: 480px;
}
.quiz-cta-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan-bright);
  color: var(--navy-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.quiz-cta:hover .quiz-cta-arrow {
  transform: translateX(4px) scale(1.05);
}
@media (max-width: 640px) {
  .quiz-cta { padding: 26px 24px; grid-template-columns: 1fr; gap: 18px; }
  .quiz-cta-arrow { width: 44px; height: 44px; }
}

/* ───────────── TOPIC SECTIONS (year pages) ───────────── */
.topics {
  padding: 60px 0 100px;
}
.topic {
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
.topic:first-of-type { border-top: 0; padding-top: 24px; }
.topic-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 36px;
}
.topic-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 3rem;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.03em;
}
.topic-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--navy-ink);
  line-height: 1.05;
}
.topic-title em { font-style: italic; font-weight: 300; color: var(--navy); }
.topic-blurb {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  max-width: 620px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.resource {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.resource:hover {
  border-color: var(--navy);
  box-shadow: 0 18px 36px -22px rgba(8, 26, 61, 0.25);
}
.resource-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.resource-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy);
}
.resource-kind .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright);
}
.resource-kind.is-audio .dot { background: var(--cyan-bright); }
.resource-kind.is-video .dot { background: var(--saffron); }
.resource-kind.is-pdf .dot { background: var(--navy); }
.resource-kind.is-image .dot { background: #b675e0; }

.resource h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy-ink);
  line-height: 1.2;
}

.resource audio,
.resource video {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.resource video {
  background: #000;
  aspect-ratio: 16 / 9;
}

.resource-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--cream);
}
.resource-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.resource-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--navy-ink);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.resource-action:hover {
  background: var(--navy-ink);
  color: var(--paper);
}
.resource-action svg { flex-shrink: 0; }

/* ───────────── COMING SOON (stub pages) ───────────── */
.stub {
  padding: 120px 0 140px;
  text-align: center;
}
.stub-inner {
  max-width: 620px;
  margin: 0 auto;
}
.stub h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--navy-ink);
}
.stub h2 em { font-style: italic; font-weight: 300; color: var(--navy); }
.stub p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 36px;
  line-height: 1.6;
}

/* ───────────── FOOTER ───────────── */
footer {
  background: var(--navy-ink);
  color: var(--paper);
  padding: 80px 0 40px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "Hola";
  position: absolute;
  bottom: -60px;
  right: -20px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18rem;
  line-height: 1;
  color: rgba(75, 179, 222, 0.08);
  letter-spacing: -0.05em;
  pointer-events: none;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.footer-brand h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.footer-brand p {
  color: rgba(246, 241, 232, 0.65);
  max-width: 380px;
  margin: 0;
  font-size: 0.95rem;
}
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(246, 241, 232, 0.8);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--cyan-bright); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(246, 241, 232, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(246, 241, 232, 0.5);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 12px;
}

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 1024px) {
  .years-grid { grid-template-columns: repeat(2, 1fr); }
  .feature {
    padding: 56px 40px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header-inner { grid-template-columns: 1fr; gap: 24px; }
  .page-numeral { font-size: clamp(5rem, 14vw, 9rem); }
}
@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 14px 22px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; align-items: center; color: var(--navy-ink); }
  .hero { padding: 70px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual {
    max-height: 420px;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
  }
  .visual-card-1 .glyph { font-size: 8rem; }
  section { padding: 70px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-meta { text-align: left; }
  .links-grid { grid-template-columns: 1fr; }
  .feature { padding: 44px 28px; border-radius: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .year-card { min-height: 260px; padding: 28px 24px; }
  .year-num { font-size: 5rem; }
  .topic-head { grid-template-columns: 1fr; gap: 8px; }
  .topic-num { font-size: 2.2rem; }
}

/* Entrance animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: reveal 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.18s; }
  .reveal-3 { animation-delay: 0.32s; }
  .reveal-4 { animation-delay: 0.46s; }

  @keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
  }
}
