:root {
  --navy: #071a2b;
  --navy-soft: #0e2a3e;
  --red: #d62839;
  --red-dark: #a91f2d;
  --blue: #2f6f8f;
  --spruce: #163c38;
  --snow: #f7fafc;
  --mist: #d7e2e8;
  --ink: #102330;
  --muted: #5d6e78;
  --white: #ffffff;
  --shell: min(1200px, calc(100vw - 64px));
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "Manrope", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--snow);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px;
  color: var(--white); background: var(--red); transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #f9be46; outline-offset: 4px; }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 20; color: var(--navy);
  background: rgba(247,250,252,.94); border-bottom: 1px solid rgba(7,26,43,.12);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 138px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 700; }
.site-nav > a:not(.button) { position: relative; }
.site-nav > a:not(.button)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px;
  background: var(--red); transition: right .25s ease;
}
.site-nav > a:not(.button):hover::after { right: 0; }
.nav-watch { color: var(--muted); }
.button {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 24px; color: var(--white); background: var(--red); font-size: 13px;
  font-weight: 800; letter-spacing: .01em; transition: background .2s ease, transform .2s ease;
}
.button:hover { background: var(--red-dark); transform: translateY(-2px); }
.button-small { min-height: 44px; padding-inline: 18px; }
.button-dark { background: var(--navy); align-self: flex-start; }
.button-dark:hover { background: var(--red); }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; width: 46px; height: 46px; padding: 12px; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 6px 0; background: currentColor; transition: transform .25s ease; }

.hero { position: relative; min-height: 810px; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-image, .hero-scrim, .hero-contours { position: absolute; inset: 0; }
.hero-image { background: url("/assets/canadanext-hero.jpg") center 44% / cover no-repeat; transform: scale(1.01); }
.hero-scrim { background: linear-gradient(90deg, rgba(7,26,43,.98) 0%, rgba(7,26,43,.82) 39%, rgba(7,26,43,.2) 76%), linear-gradient(0deg, rgba(7,26,43,.7), transparent 55%); }
.hero-contours {
  opacity: .18; background-image: repeating-radial-gradient(ellipse at 84% 45%, transparent 0 28px, rgba(255,255,255,.55) 29px 30px, transparent 31px 48px);
  mask-image: linear-gradient(90deg, transparent 54%, #000 100%);
}
.hero-content { position: relative; z-index: 2; padding: 180px 0 108px; }
.eyebrow, .section-index, .mono-label {
  margin: 0; font: 600 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .15em;
}
.eyebrow { display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,.75); }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--red); }
.eyebrow span { margin-left: auto; color: rgba(255,255,255,.45); }
.hero h1, .section-heading h2, .manifesto h2, .app-copy h2 {
  margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.035em; line-height: .88;
}
.hero h1 { max-width: 920px; margin-top: 37px; font-size: clamp(72px, 9.3vw, 148px); }
.hero h1 em, .manifesto h2 em { color: var(--red); font-style: normal; }
.hero-lower { max-width: 780px; margin-top: 43px; display: grid; grid-template-columns: minmax(0, 580px) auto; align-items: end; gap: 50px; }
.hero-lower p { margin: 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.75; }
.text-link { display: inline-flex; gap: 20px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.5); font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
.signal-line { height: 5px; background: var(--red); }
.hero > .signal-line { position: absolute; z-index: 3; bottom: 0; left: 0; width: 35%; }

.section { padding: 128px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 2.25fr; gap: 52px; margin-bottom: 72px; }
.section-index { color: var(--red); padding-top: 8px; }
.section-heading h2, .app-copy h2 { color: var(--navy); font-size: clamp(60px, 7vw, 104px); }
.section-deck { max-width: 560px; margin: 30px 0 0; color: var(--muted); font-size: 17px; }

.latest { background: var(--snow); }
.latest-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .82fr); background: var(--white); box-shadow: 0 28px 80px rgba(7,26,43,.08); }
.video-frame { position: relative; min-height: 500px; overflow: hidden; background: var(--navy); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.latest-note { padding: clamp(36px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; background: var(--mist); }
.latest-note .mono-label { color: var(--red); }
.latest-note h3 { margin: 28px 0 20px; font: 700 clamp(38px, 4vw, 62px)/.94 var(--display); text-transform: uppercase; color: var(--navy); }
.latest-note p:not(.mono-label) { margin: 0 0 34px; color: #4b606c; font-size: 14px; }

.topics { background: var(--white); }
.topic-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mist); }
.topic-list li {
  display: grid; grid-template-columns: 70px 1.2fr 1fr; align-items: center; gap: 30px;
  min-height: 126px; border-bottom: 1px solid var(--mist); transition: background .22s ease, padding .22s ease;
}
.topic-list li:hover { padding-inline: 20px; background: var(--snow); }
.topic-list span { color: var(--red); font: 600 11px/1 var(--mono); }
.topic-list h3 { margin: 0; font: 700 clamp(28px, 3vw, 44px)/1 var(--display); text-transform: uppercase; color: var(--navy); }
.topic-list p { margin: 0; color: var(--muted); font-size: 14px; }

.manifesto { min-height: 760px; position: relative; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--spruce); }
.manifesto-image, .manifesto-scrim { position: absolute; inset: 0; }
.manifesto-image { background: url("/assets/canadanext-mountains.jpg") center / cover no-repeat; }
.manifesto-scrim { background: linear-gradient(90deg, rgba(7,26,43,.92), rgba(7,26,43,.38) 72%, rgba(7,26,43,.12)), linear-gradient(0deg, rgba(7,26,43,.48), transparent); }
.manifesto-content { position: relative; z-index: 1; }
.manifesto-content .eyebrow { max-width: 660px; }
.manifesto h2 { margin-top: 34px; font-size: clamp(70px, 9vw, 140px); }
.manifesto-content > p:last-child { max-width: 610px; margin: 38px 0 0; color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.75; }

.app-section { overflow: hidden; padding-bottom: 0; background: linear-gradient(135deg, #f6ddd7 0%, #f2cbc4 55%, #efb5ad 100%); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: 770px; }
.app-copy { align-self: center; padding: 80px 30px 110px 0; }
.app-copy .section-index { margin-bottom: 36px; }
.app-copy > p:not(.section-index) { max-width: 530px; margin: 34px 0; color: #526772; font-size: 17px; }
.store-button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 61px; padding: 8px 20px;
  color: var(--white); background: #050708; border-radius: 9px; transition: transform .2s ease;
}
.store-button:hover { transform: translateY(-3px); }
.store-button svg { width: 29px; fill: currentColor; }
.store-button span { display: flex; flex-direction: column; font-size: 20px; line-height: 1.05; font-weight: 600; }
.store-button small { font-size: 9px; letter-spacing: .03em; font-weight: 500; }
.phone-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 770px; }
.phone-stage::before { content: ""; position: absolute; width: 650px; height: 650px; bottom: -190px; border-radius: 50%; background: rgba(214,40,57,.1); }
.phone-stage img { position: relative; z-index: 2; width: min(94%, 570px); filter: drop-shadow(0 38px 38px rgba(7,26,43,.22)); }
.phone-signal { position: absolute; z-index: 1; top: 27%; left: 1%; width: 87%; height: 5px; background: var(--red); }

.site-footer { color: rgba(255,255,255,.72); background: var(--navy); }
.site-footer > .signal-line { width: 28%; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 100px; padding: 100px 0 68px; }
.brand-footer { width: fit-content; padding: 0; background: transparent; }
.brand-footer .brand-logo { width: 155px; filter: grayscale(1) brightness(0) invert(1); }
.footer-lead > p { max-width: 440px; margin: 28px 0 0; font-size: 16px; }
.footer-links { display: grid; grid-template-columns: 1fr 1.2fr; gap: 45px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-links .mono-label { margin-bottom: 12px; color: var(--red); }
.footer-links a { color: var(--white); font-weight: 600; font-size: 14px; line-height: 1.55; }
.footer-links a:hover { color: #ff6b79; }
.footer-links a span { margin-left: 6px; color: var(--red); }
.footer-bottom { padding: 35px 0 45px; border-top: 1px solid rgba(255,255,255,.15); }
.disclaimer { max-width: 970px; margin: 0 0 35px; color: rgba(255,255,255,.47); font-size: 11px; line-height: 1.7; }
.copyright { display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.55); font: 500 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 44px, 900px); }
  .site-nav { gap: 18px; }
  .site-nav > a:not(.button):not(.nav-watch) { display: none; }
  .hero { min-height: 740px; }
  .section { padding-block: 100px; }
  .section-heading { grid-template-columns: 180px 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
  .video-frame { min-height: auto; aspect-ratio: 16/9; }
  .latest-note { min-height: 360px; }
  .topic-list li { grid-template-columns: 52px 1.1fr 1fr; }
  .manifesto { min-height: 660px; }
  .app-grid { min-height: 650px; }
  .phone-stage { min-height: 650px; }
  .footer-main { gap: 55px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 36px); }
  .header-inner { min-height: 74px; }
  .brand { font-size: 24px; }
  .brand-logo { width: 116px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 22px; padding: 90px 34px; color: var(--white); background: var(--navy);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .25s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav > a:not(.button):not(.nav-watch) { display: block; }
  .site-nav > a { font: 700 42px/1 var(--display); text-transform: uppercase; }
  .site-nav .button { margin-top: 12px; font: 800 13px/1 var(--body); text-transform: none; }
  .nav-watch { display: none; }
  .hero { min-height: 710px; }
  .hero-image { background-position: 61% center; }
  .hero-scrim { background: linear-gradient(90deg, rgba(7,26,43,.98), rgba(7,26,43,.65) 86%), linear-gradient(0deg, rgba(7,26,43,.6), transparent); }
  .hero-contours { display: none; }
  .hero-content { padding: 142px 0 78px; }
  .hero h1 { margin-top: 30px; font-size: clamp(58px, 17vw, 92px); line-height: .9; }
  .hero-lower { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .hero-lower p { font-size: 15px; }
  .hero-lower .text-link { justify-self: start; }
  .hero > .signal-line { width: 66%; }
  .section { padding: 82px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
  .section-heading h2, .app-copy h2 { font-size: clamp(56px, 16vw, 82px); }
  .section-deck { margin-top: 22px; font-size: 15px; }
  .latest-grid { margin-inline: 0; }
  .latest-note { min-height: 330px; padding: 38px 28px; }
  .topic-list li { grid-template-columns: 40px 1fr; gap: 8px 12px; padding: 28px 0; }
  .topic-list li:hover { padding-inline: 0; }
  .topic-list h3 { font-size: 32px; }
  .topic-list p { grid-column: 2; }
  .manifesto { min-height: 640px; }
  .manifesto-image { background-position: 61% center; }
  .manifesto-scrim { background: linear-gradient(90deg, rgba(7,26,43,.92), rgba(7,26,43,.48)); }
  .manifesto h2 { font-size: clamp(66px, 18vw, 96px); }
  .manifesto-content > p:last-child { font-size: 15px; }
  .app-section { padding-top: 82px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-copy { padding: 0 0 34px; }
  .app-copy > p:not(.section-index) { font-size: 15px; }
  .phone-stage {
    min-height: 430px;
    margin-inline: 0;
    align-items: flex-end;
    overflow: hidden;
  }
  .phone-stage::before {
    width: 430px;
    height: 430px;
    bottom: -170px;
  }
  .phone-stage img {
    width: min(78vw, 300px);
    max-height: 445px;
    object-fit: contain;
  }
  .phone-signal { top: 46%; left: -5%; width: 110%; height: 4px; }
  .footer-main { grid-template-columns: 1fr; gap: 54px; padding: 72px 0 52px; }
  .footer-links { gap: 25px; }
  .site-footer > .signal-line { width: 58%; }
}

@media (max-width: 420px) {
  :root { --shell: calc(100vw - 30px); }
  .hero { min-height: 680px; }
  .hero h1 { font-size: 59px; }
  .eyebrow { font-size: 9px; gap: 10px; }
  .eyebrow::before { width: 24px; }
  .latest-note h3 { font-size: 42px; }
  .manifesto { min-height: 590px; }
  .app-section { padding-top: 70px; }
  .app-copy { padding-bottom: 28px; }
  .phone-stage { min-height: 405px; }
  .phone-stage img { width: min(76vw, 285px); max-height: 415px; }
  .footer-links { grid-template-columns: 1fr; }
  .copyright { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
