/* Shared editorial rhythm, responsive heroes and progressive motion. */
:root {
  --section-space: clamp(56px, 7vw, 100px);
  --content-gap: clamp(24px, 3vw, 40px);
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.container > *, .section-heading > *, .story-grid > *, .paths-grid > *,
.topic-strip > *, .header-inner > *, .footer-top > *, .newsletter > * { min-width: 0; }
.section-heading { gap: 20px 32px; margin-bottom: 30px; }
.section-heading .text-link { flex-shrink: 0; }
.drone-home { padding-top: var(--section-space); }
.drone-home > section { margin-bottom: var(--section-space); }
.path-card { display: flex; flex-direction: column; }
.path-card > div { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.path-card p { min-height: 0; }
.path-card .button { margin-top: auto; }
.paths-grid, .story-grid { row-gap: 36px; }
.crypto-home > section:not(.topic-strip) { padding-block: var(--section-space); }
.topic-strip { padding-block: clamp(40px, 5vw, 64px); }
.insider-home > .magazine-hero { padding-block: 40px 60px; }
.insider-home > .numbered-section { padding-block: clamp(40px, 5vw, 64px); }
.insider-home > .people-feature, .insider-home > .short-guide,
.insider-home > .reading-guide { padding-block: clamp(40px, 5vw, 64px); }
.faq-section { margin-block: 48px 64px; }
.site-footer { margin-top: 0; }
.footer-top, .newsletter { padding-block: 48px; }
.newsletter-coming { justify-self: end; }
.article-cover { margin-bottom: 36px; }
.collection-filters { row-gap: 16px; }
.collection-filters label { min-width: 0; }
input, select, textarea { max-width: 100%; }
.prose, .source-card, .course-facts { overflow-wrap: anywhere; }
.mobile-nav { max-height: calc(100svh - 108px); overflow-y: auto; overscroll-behavior: contain; }
.menu-toggle { cursor: pointer; }
.menu-toggle span { transition: transform 220ms var(--motion-ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* A complete first screen. Minimum height allows text to grow at larger zoom. */
.photo-hero.home-hero {
  min-height: max(760px, 100svh);
  align-items: center;
}
.home-hero .hero-inner { padding-block: 180px 110px; }
.home-hero .hero-copy { max-width: 660px; }
.home-hero .hero-copy h1, .site-academy .home-hero .hero-copy h1 {
  max-width: 660px;
  font-size: clamp(48px, 4.4vw, 72px);
  line-height: 1.06;
  margin-bottom: 28px;
}
.home-hero .hero-copy > p { max-width: 510px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; }
.home-hero .hero-overlay {
  background: linear-gradient(90deg, rgba(244,247,250,.93), rgba(244,247,250,.75) 32%, rgba(244,247,250,.16) 66%, transparent);
}
.crypto-hero.home-hero {
  min-height: max(680px, calc(100svh - 90px));
  display: flex;
  align-items: center;
}
.crypto-hero.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,22,25,.92), rgba(12,22,25,.7) 34%, rgba(12,22,25,.08) 74%);
  pointer-events: none;
}
.crypto-hero.home-hero > .container { position: relative; z-index: 1; }
.home-hero .crypto-hero-copy { max-width: 740px; padding-block: 96px 112px; }
.home-hero .crypto-hero-copy h1 { font-size: clamp(52px, 5vw, 80px); max-width: 740px; }
.home-hero .crypto-hero-copy > p:not(.eyebrow) { max-width: 510px; line-height: 1.6; }
.home-hero .crypto-hero-copy .eyebrow { line-height: 1.7; }
.home-hero > .hero-background { height: 100%; }

/* Pointer feedback has no effect on layout or touch scrolling. */
.button, .text-link, .brand { transition: color 180ms ease, background-color 180ms ease, transform 220ms var(--motion-ease); }
.button:active { transform: translateY(1px); }
.text-link > span, .button > span { display: inline-block; transition: transform 220ms var(--motion-ease); }
.image-link, .path-card > a, .lead-story > a:first-child { display: block; overflow: hidden; }
.image-link img, .path-card > a img, .lead-story > a:first-child img { transition: transform 650ms var(--motion-ease); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
@media(hover:hover) and (pointer:fine) {
  .button:hover { transform: translateY(-2px); }
  .button:hover > span, .text-link:hover > span { transform: translateX(4px); }
  .image-link:hover img, .path-card > a:hover img, .lead-story > a:first-child:hover img { transform: scale(1.035); }
}
@media(prefers-reduced-motion:no-preference) {
  .home-hero .hero-copy, .home-hero .crypto-hero-copy { animation: hero-copy-in 700ms var(--motion-ease) both; }
  .home-hero > .hero-background { animation: hero-image-in 1400ms var(--motion-ease) both; }
  .mobile-nav:not([hidden]) { animation: menu-in 180ms var(--motion-ease) both; }
  .faq-list details[open] > div, .glossary-list details[open] > div { animation: menu-in 220ms var(--motion-ease) both; }
}
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-image-in { from { transform: scale(1.025); } to { transform: scale(1); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media(max-width:1100px) and (min-width:901px) {
  .site-academy .desktop-nav, .site-racing .desktop-nav { display: none; }
  .site-academy .menu-toggle, .site-racing .menu-toggle { display: block; }
}
@media(max-width:900px) {
  .home-hero .hero-copy { max-width: 570px; }
  .home-hero .hero-inner { padding-block: 160px 90px; }
  .home-hero .hero-copy h1, .site-academy .home-hero .hero-copy h1 { font-size: clamp(44px, 6vw, 58px); }
  .home-hero .crypto-hero-copy { max-width: 590px; }
  .home-hero .crypto-hero-copy h1 { font-size: clamp(46px, 7vw, 64px); }
  .home-hero > .hero-background { opacity: 1; }
  .site-crypto .home-hero > .hero-background { object-position: 65% center; }
  .newsletter-coming { justify-self: start; }
}
@media(max-width:600px) {
  :root { --section-space: 56px; }
  .section-heading { gap: 14px; margin-bottom: 26px; }
  .drone-home .section-heading h2 { font-size: clamp(28px, 7vw, 34px); line-height: 1.16; }
  .section-heading .text-link { min-height: 44px; }
  .paths-grid, .story-grid { row-gap: 28px; }
  .insider-home > .magazine-hero { padding-block: 28px 40px; gap: 30px; }
  .insider-home > .numbered-section { padding-block: 36px; }
  .insider-home > .people-feature, .insider-home > .short-guide,
  .insider-home > .reading-guide { padding-block: 36px; }
  .topic-strip { padding-block: 32px; gap: 28px 0; }
  .topic-strip > a:nth-child(odd) { padding-left: 0 !important; }
  .topic-strip > a:nth-child(even) { padding-right: 0 !important; }
  .topic-strip h2 { font-size: 21px; }
  .topic-strip p { font-size: 14px; }
  .topic-strip > a > span:last-child { display: inline-block; padding-top: 8px; }
  .faq-section { margin-block: 36px 48px; }
  .footer-top, .newsletter { padding-block: 36px; }
  .footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .header-actions { gap: 4px; flex-shrink: 0; }
  .cookieadmin_re_consent { left: auto !important; right: 16px !important; bottom: max(16px, env(safe-area-inset-bottom)) !important; width: 44px !important; height: 44px !important; }
  .cookieadmin_re_consent .cookieadmin_reconsent_img { width: 34px; height: 34px; }
  .site-insider .site-header .brand img, .site-crypto .site-header .brand img { max-width: calc(100vw - 140px); height: auto; }
  .collection-filters { align-items: stretch; }
  .collection-filters > label { flex: 1 1 100%; }
  .collection-filters > label input, .collection-filters > label select { width: 100%; }
  .page-heading h1, .article-heading h1 { overflow-wrap: break-word; }
  .photo-hero.home-hero { min-height: max(760px, 100svh); align-items: flex-end; }
  .home-hero .hero-inner { padding-block: 330px 52px; }
  .home-hero .hero-copy { max-width: 480px; }
  .home-hero .hero-copy h1, .site-academy .home-hero .hero-copy h1 {
    font-size: clamp(36px, 9.6vw, 52px);
    max-width: 480px;
    margin-bottom: 22px;
  }
  .home-hero .hero-copy > p:not(.breadcrumbs) { font-size: 17px; line-height: 1.6; max-width: 440px; margin-bottom: 26px; }
  .photo-hero.home-hero > .hero-background { height: 100%; object-position: 68% center; }
  .home-hero .hero-overlay {
    background: linear-gradient(0deg, rgba(244,247,250,.99) 0%, rgba(244,247,250,.96) 28%, rgba(244,247,250,.74) 50%, rgba(244,247,250,.05) 78%);
  }
  .crypto-hero.home-hero { min-height: max(660px, calc(100svh - 76px)); align-items: flex-end; }
  .home-hero .crypto-hero-copy { padding-block: 190px 64px; max-width: 480px; }
  .home-hero .crypto-hero-copy h1 { font-size: clamp(40px, 10.6vw, 58px); max-width: 480px; line-height: 1.06; margin-bottom: 24px; }
  .home-hero .crypto-hero-copy .eyebrow { font-size: 10px; max-width: 330px; margin-bottom: 24px; }
  .home-hero .crypto-hero-copy > p:not(.eyebrow) { font-size: 18px; max-width: 400px; margin-bottom: 30px; }
  .crypto-hero.home-hero::after {
    background: linear-gradient(0deg, rgba(12,22,25,.98), rgba(12,22,25,.85) 40%, rgba(12,22,25,.24) 85%);
  }
  .site-crypto .home-hero > .hero-background { object-position: 69% center; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .photo-hero.home-hero, .crypto-hero.home-hero { min-height: 0; }
  .home-hero .hero-inner, .home-hero .crypto-hero-copy { padding-block: 0; }
}
