/* ==========================================================================
   Hems Digital — Design System
   Blue + White premium editorial system for a digital education brand.
   ========================================================================== */

:root {
  /* Color */
  --navy: #0A1930;
  --blue-deep: #17356B;
  --blue: #2454A6;
  --blue-bright: #3A6FD8;
  --blue-line: #C9D8EF;
  --blue-tint: #EEF3FB;
  --bg: #FFFFFF;
  --bg-alt: #F6F9FD;
  --text: #141B2C;
  --text-muted: #5B6472;
  --text-faint: #8992A1;
  --border: #E3E8F0;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1140px;
  --container-narrow: 760px;
  --radius: 3px;
  --radius-lg: 6px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-base: 350ms;
  --dur-slow: 600ms;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Type scale ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.005em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  color: var(--navy);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
}
p.body-text { color: var(--text-muted); line-height: 1.7; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: var(--radius);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(10,25,48,0.45); }
.btn-primary:active { background: var(--blue-deep); box-shadow: none; }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-ghost {
  color: var(--blue-deep);
  padding: 15px 4px;
  border-bottom: 1px solid var(--blue-line);
  border-radius: 0;
}
.btn-ghost:hover { border-color: var(--blue); }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}
.brand .brand-mark {
  color: var(--blue);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--blue); color: var(--blue-deep); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-cta { display: none; }
@media (min-width: 861px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 8px;
}
.nav-toggle svg { width: 22px; height: 22px; transition: transform var(--dur-fast) var(--ease-out); }
body.menu-open .nav-toggle svg { transform: rotate(90deg); }

.mobile-panel {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--dur-slow) var(--ease-in-out), opacity var(--dur-base) var(--ease-out), padding var(--dur-slow) var(--ease-in-out);
}
.mobile-panel a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
/* Higher specificity than ".mobile-panel a" so the CTA button keeps its
   own button styling (white text on navy) instead of inheriting the
   plain nav-link color and border. Pre-existing bug, fixed in passing. */
.mobile-panel a.btn {
  color: var(--white);
  font-weight: 600;
  border-bottom: none;
  padding: 15px 28px;
}
.mobile-panel .btn { margin-top: 16px; margin-bottom: 24px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .mobile-panel { display: flex; }
  body.menu-open .mobile-panel {
    max-height: 600px;
    opacity: 1;
    padding: 8px 24px 0;
  }
}

/* ---- Hero ---- */
.hero {
  padding: 76px 0 88px;
  background: var(--bg);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

/* Entrance animation — plays automatically on load, no JS required.
   prefers-reduced-motion is handled globally (animation-duration is
   forced near-zero), so this degrades to an instant, un-animated state. */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy > * {
  opacity: 0;
  animation: fadeUpIn var(--dur-slow) var(--ease-out) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.41s; }
.hero-visual .pass {
  opacity: 0;
  animation: fadeUpIn var(--dur-slow) var(--ease-out) forwards;
  animation-delay: 0.3s;
}
.hero-copy h1 { margin: 18px 0 20px; }
.hero-copy .lede { margin-bottom: 30px; }
.hero-host {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: 560px;
}
.hero-host .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.hero-host .avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-host .who { font-size: 0.9rem; color: var(--text-muted); }
.hero-host .who strong { color: var(--navy); font-weight: 600; display: block; font-size: 0.95rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Signature element: reservation pass */
.pass {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}
.pass::after {
  content: "";
  position: absolute;
  right: -1px; top: 0; bottom: 0;
  width: 0;
}
.pass-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}
.pass-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93AAD6;
}
.pass-seat {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1;
}
.pass-divider {
  border: none;
  border-top: 1px dashed rgba(255,255,255,0.25);
  margin: 22px 0;
}
.pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pass-field .pass-label { margin-bottom: 6px; }
.pass-field .pass-value { font-size: 0.95rem; font-weight: 600; }
.pass-footer {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pass-code {
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: #93AAD6;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .pass { max-width: 420px; }
}

/* ---- Sections ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head .lede { margin-top: 16px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

hr.rule { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---- Learning path (signature list) ---- */
.path {
  border-top: 1px solid var(--border);
}
.path-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.path-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--blue);
  padding-top: 4px;
}
.path-item h3 { margin-bottom: 8px; }
.path-item p { color: var(--text-muted); max-width: 560px; }

@media (max-width: 640px) {
  .path-item { grid-template-columns: 40px 1fr; gap: 16px; }
}

/* ---- Two column feature ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---- Audience grid ---- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.audience-item {
  background: var(--bg);
  padding: 26px 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.audience-item svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.audience-item span { color: var(--text); font-size: 0.98rem; }
@media (max-width: 640px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---- Host / person card ---- */
.person-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.person-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  flex-shrink: 0;
}
.person-photo {
  width: 168px;
  height: 208px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -22px rgba(10,25,48,0.35);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 540px) {
  .person-card { flex-direction: column; }
  .person-photo { width: 140px; height: 176px; }
}

.about-photo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -22px rgba(10,25,48,0.35);
}
.about-photo img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }

.ai-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: 4px; }
.person-role { font-size: 0.88rem; color: var(--blue); font-weight: 600; margin-bottom: 14px; }

/* ---- Brand strip (Hems Digital / HemsTopUp) ---- */
.brand-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.brand-card {
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -28px rgba(10,25,48,0.28);
  border-color: var(--blue-line);
}
.brand-card .tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
  display: block;
}
.brand-card h3 { margin-bottom: 12px; }
.brand-card p { color: var(--text-muted); margin-bottom: 18px; }
.brand-card .founder-line {
  font-size: 0.85rem;
  color: var(--blue-deep);
  font-weight: 600;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .brand-cards { grid-template-columns: 1fr; } }

/* ---- Ultimate BAG module list ---- */
.module-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
}
.module-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.module-item svg { width: 16px; height: 16px; color: var(--blue); margin-top: 4px; flex-shrink: 0; }
@media (max-width: 720px) { .module-list { grid-template-columns: 1fr; } }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 88px 0;
  text-align: center;
}
.cta-band .eyebrow { color: #93AAD6; }
.cta-band .eyebrow::before { background: #93AAD6; }
.cta-band h2 { color: var(--white); margin: 18px auto 16px; max-width: 620px; }
.cta-band p { color: #B9C6E4; max-width: 520px; margin: 0 auto 32px; }
.cta-band .btn-primary { background: var(--white); color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--blue-tint); }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--blue-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-faint); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 20px; list-style: none; }
.footer-legal a { color: var(--text-faint); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--blue-deep); }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Generic content page (about / contact / ai / resources) ---- */
.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-top: 16px; }
.page-hero .lede { margin-top: 16px; }

.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.prose ul { margin-bottom: 16px; padding-left: 20px; }
.prose li { color: var(--text-muted); margin-bottom: 8px; line-height: 1.7; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -28px rgba(10,25,48,0.28);
  border-color: var(--blue-line);
}
.contact-card .icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card .icon svg { width: 18px; height: 18px; color: var(--blue-deep); }
.contact-card h3 { font-size: 1.05rem; }
.contact-card .value { color: var(--blue-deep); font-weight: 600; font-size: 1.02rem; }
.contact-card p.hint { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.social-chip svg { width: 15px; height: 15px; }

/* AI / structured profile page */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 40px;
}
.data-table tr { border-bottom: 1px solid var(--border); }
.data-table th, .data-table td { text-align: left; padding: 14px 0; vertical-align: top; }
.data-table th {
  width: 220px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
.data-table td { color: var(--text); font-size: 0.98rem; }
.data-table a { color: var(--blue-deep); border-bottom: 1px solid var(--blue-line); }
.data-table a:hover { border-color: var(--blue); }

/* ---- Resources / blog index ---- */
.resource-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
}
.category-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 40px; }
.category-chip {
  padding: 8px 16px;
  background: var(--blue-tint);
  color: var(--blue-deep);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Article cards on resources index */
.article-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.article-card {
  background: var(--bg);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  align-items: center;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  position: relative;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -30px rgba(10,25,48,0.3);
  z-index: 1;
}
/* Bulletproof 16:9 box: height is derived from the box's own width via the
   padding-top percentage trick, so it never depends on the image's
   intrinsic size, the viewport, or CSS aspect-ratio support. The image is
   absolutely positioned to fill it, cropped with object-fit: cover. This
   guarantees no horizontal or vertical overflow at any screen size. */
.media-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 9 / 16 */
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.media-16x9 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.article-card:hover .media-16x9 img {
  transform: scale(1.05);
}
.article-card .media-16x9 { max-width: 100%; }
.article-card .cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 8px; display: block; }
.article-card h3 { margin-bottom: 8px; }
.article-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; }
.article-card .meta { font-size: 0.82rem; color: var(--text-faint); }
.article-card a.read-more { font-size: 0.88rem; font-weight: 600; color: var(--blue-deep); }
@media (max-width: 620px) {
  .article-card { grid-template-columns: 1fr; }
}

/* ---- Article page ---- */
.article-header { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.article-meta-row { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.article-meta-row .author-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.article-meta-row .author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-meta-row .author-name { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.article-meta-row .author-role { font-size: 0.8rem; color: var(--text-faint); }
.article-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }
/* Reuses the same bulletproof 16:9 box as the resource cards above, with
   its own margin/border to match the article page's existing spacing. */
.article-featured-img { margin: 32px 0 0; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.article-featured-img.media-16x9 img { border-radius: 0; }
.article-body h2 { margin: 40px 0 16px; }
.article-body h3 { margin: 28px 0 12px; }
.article-body p { color: var(--text-muted); margin-bottom: 18px; line-height: 1.8; font-size: 1.02rem; }
.article-body ul, .article-body ol { margin-bottom: 18px; padding-left: 22px; }
.article-body li { color: var(--text-muted); margin-bottom: 10px; line-height: 1.75; }
.article-body a { color: var(--blue-deep); border-bottom: 1px solid var(--blue-line); }
.article-body a:hover { border-color: var(--blue); }
.article-inline-cta {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin: 36px 0;
}
.article-inline-cta p.kicker { font-weight: 600; color: var(--navy); margin-bottom: 14px; font-size: 1rem; }
.article-tags { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--blue-deep); }
.breadcrumb span { margin: 0 8px; }

/* ---- Registration form ---- */
.register-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 24px 60px -30px rgba(10,25,48,0.18);
}
.register-panel .pass-label { color: var(--blue); }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease;
}
.form-field input:focus { border-color: var(--blue); outline: none; }
.form-field input.invalid { border-color: #C0392B; }
.form-error {
  font-size: 0.82rem;
  color: #C0392B;
  margin-top: 6px;
  display: none;
}
.form-field.has-error .form-error { display: block; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.6;
  margin-top: 18px;
}
.form-submit-error {
  font-size: 0.85rem;
  color: #C0392B;
  margin-top: 14px;
  display: none;
}
.register-panel.has-submit-error .form-submit-error { display: block; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.register-success { display: none; text-align: center; }
.register-success .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}
.register-success h3 { margin-bottom: 10px; }
.register-success p { color: var(--text-muted); margin-bottom: 26px; }
body.registered .register-form { display: none; }
body.registered .register-success { display: block; }
.register-panel.is-success .register-form { display: none; }
.register-panel.is-success .register-success { display: block; }

/* Smooth crossfade for the registration success state (sequenced by
   js/register.js rather than an instant display swap). */
.register-form {
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.register-form.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.register-success {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.register-success.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ==========================================================================
   Scroll reveal — progressive enhancement, safe without JS
   --------------------------------------------------------------------------
   js/motion.js adds html.js-reveal on load, then IntersectionObserver adds
   .is-visible to each observed element as it enters the viewport. Without
   JS (or if IntersectionObserver is unsupported), html.js-reveal never gets
   added, so none of the opacity:0 rules below ever apply — content is
   visible immediately by default.
   ========================================================================== */

html.js-reveal .section-head,
html.js-reveal .register-panel,
html.js-reveal .person-card,
html.js-reveal .about-photo,
html.js-reveal .article-featured-img,
html.js-reveal .cta-band .container {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
html.js-reveal .section-head.is-visible,
html.js-reveal .register-panel.is-visible,
html.js-reveal .person-card.is-visible,
html.js-reveal .about-photo.is-visible,
html.js-reveal .article-featured-img.is-visible,
html.js-reveal .cta-band .container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-reveal .split > *,
html.js-reveal .path > *,
html.js-reveal .audience-grid > *,
html.js-reveal .brand-cards > *,
html.js-reveal .module-list > *,
html.js-reveal .article-list > *,
html.js-reveal .contact-grid > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
html.js-reveal .split.is-visible > *,
html.js-reveal .path.is-visible > *,
html.js-reveal .audience-grid.is-visible > *,
html.js-reveal .brand-cards.is-visible > *,
html.js-reveal .module-list.is-visible > *,
html.js-reveal .article-list.is-visible > *,
html.js-reveal .contact-grid.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
/* stagger */
html.js-reveal .split.is-visible > *:nth-child(1),
html.js-reveal .path.is-visible > *:nth-child(1),
html.js-reveal .audience-grid.is-visible > *:nth-child(1),
html.js-reveal .brand-cards.is-visible > *:nth-child(1),
html.js-reveal .module-list.is-visible > *:nth-child(1),
html.js-reveal .article-list.is-visible > *:nth-child(1),
html.js-reveal .contact-grid.is-visible > *:nth-child(1) { transition-delay: 0.03s; }
html.js-reveal .split.is-visible > *:nth-child(2),
html.js-reveal .path.is-visible > *:nth-child(2),
html.js-reveal .audience-grid.is-visible > *:nth-child(2),
html.js-reveal .brand-cards.is-visible > *:nth-child(2),
html.js-reveal .module-list.is-visible > *:nth-child(2),
html.js-reveal .article-list.is-visible > *:nth-child(2),
html.js-reveal .contact-grid.is-visible > *:nth-child(2) { transition-delay: 0.085s; }
html.js-reveal .split.is-visible > *:nth-child(3),
html.js-reveal .path.is-visible > *:nth-child(3),
html.js-reveal .audience-grid.is-visible > *:nth-child(3),
html.js-reveal .brand-cards.is-visible > *:nth-child(3),
html.js-reveal .module-list.is-visible > *:nth-child(3),
html.js-reveal .article-list.is-visible > *:nth-child(3),
html.js-reveal .contact-grid.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
html.js-reveal .split.is-visible > *:nth-child(4),
html.js-reveal .path.is-visible > *:nth-child(4),
html.js-reveal .audience-grid.is-visible > *:nth-child(4),
html.js-reveal .brand-cards.is-visible > *:nth-child(4),
html.js-reveal .module-list.is-visible > *:nth-child(4),
html.js-reveal .article-list.is-visible > *:nth-child(4),
html.js-reveal .contact-grid.is-visible > *:nth-child(4) { transition-delay: 0.195s; }
html.js-reveal .split.is-visible > *:nth-child(5),
html.js-reveal .path.is-visible > *:nth-child(5),
html.js-reveal .audience-grid.is-visible > *:nth-child(5),
html.js-reveal .brand-cards.is-visible > *:nth-child(5),
html.js-reveal .module-list.is-visible > *:nth-child(5),
html.js-reveal .article-list.is-visible > *:nth-child(5),
html.js-reveal .contact-grid.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
html.js-reveal .split.is-visible > *:nth-child(6),
html.js-reveal .path.is-visible > *:nth-child(6),
html.js-reveal .audience-grid.is-visible > *:nth-child(6),
html.js-reveal .brand-cards.is-visible > *:nth-child(6),
html.js-reveal .module-list.is-visible > *:nth-child(6),
html.js-reveal .article-list.is-visible > *:nth-child(6),
html.js-reveal .contact-grid.is-visible > *:nth-child(6) { transition-delay: 0.305s; }
html.js-reveal .split.is-visible > *:nth-child(7),
html.js-reveal .path.is-visible > *:nth-child(7),
html.js-reveal .audience-grid.is-visible > *:nth-child(7),
html.js-reveal .brand-cards.is-visible > *:nth-child(7),
html.js-reveal .module-list.is-visible > *:nth-child(7),
html.js-reveal .article-list.is-visible > *:nth-child(7),
html.js-reveal .contact-grid.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
html.js-reveal .split.is-visible > *:nth-child(8),
html.js-reveal .path.is-visible > *:nth-child(8),
html.js-reveal .audience-grid.is-visible > *:nth-child(8),
html.js-reveal .brand-cards.is-visible > *:nth-child(8),
html.js-reveal .module-list.is-visible > *:nth-child(8),
html.js-reveal .article-list.is-visible > *:nth-child(8),
html.js-reveal .contact-grid.is-visible > *:nth-child(8) { transition-delay: 0.415s; }
html.js-reveal .split.is-visible > *:nth-child(9),
html.js-reveal .path.is-visible > *:nth-child(9),
html.js-reveal .audience-grid.is-visible > *:nth-child(9),
html.js-reveal .brand-cards.is-visible > *:nth-child(9),
html.js-reveal .module-list.is-visible > *:nth-child(9),
html.js-reveal .article-list.is-visible > *:nth-child(9),
html.js-reveal .contact-grid.is-visible > *:nth-child(9) { transition-delay: 0.47s; }
html.js-reveal .split.is-visible > *:nth-child(10),
html.js-reveal .path.is-visible > *:nth-child(10),
html.js-reveal .audience-grid.is-visible > *:nth-child(10),
html.js-reveal .brand-cards.is-visible > *:nth-child(10),
html.js-reveal .module-list.is-visible > *:nth-child(10),
html.js-reveal .article-list.is-visible > *:nth-child(10),
html.js-reveal .contact-grid.is-visible > *:nth-child(10) { transition-delay: 0.525s; }
html.js-reveal .split.is-visible > *:nth-child(11),
html.js-reveal .path.is-visible > *:nth-child(11),
html.js-reveal .audience-grid.is-visible > *:nth-child(11),
html.js-reveal .brand-cards.is-visible > *:nth-child(11),
html.js-reveal .module-list.is-visible > *:nth-child(11),
html.js-reveal .article-list.is-visible > *:nth-child(11),
html.js-reveal .contact-grid.is-visible > *:nth-child(11) { transition-delay: 0.58s; }

/* ==========================================================================
   Page transitions — native View Transitions API, progressive enhancement.
   Ignored entirely by browsers that don't support it (no navigation delay,
   no fallback JS needed). Kept short and subtle — a quick crossfade, not
   a slide or anything attention-grabbing.
   ========================================================================== */
@media not (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 160ms;
    animation-timing-function: ease-out;
  }
}
