:root {
  --ink: #132238;
  --forest: #003da5;
  --deep: #002b75;
  --paper: #f4f1e8;
  --cream: #ebe4d4;
  --ice: #e1ebf8;
  --wind: #8db4e5;
  --orange: #e56a3d;
  --quebec-blue: #003da5;
  --quebec-blue-dark: #002b75;
  --muted: #596577;
  --line: rgba(19, 34, 56, 0.18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.62 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 88px;
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 12px rgba(19,34,56,.16); }
.nav { display: flex; gap: 2rem; }
.nav a { color: inherit; text-decoration: none; font-size: .88rem; opacity: .78; }
.nav a:hover { opacity: 1; }
.language-toggle { display: flex; padding: 3px; border: 1px solid rgba(19,34,56,.3); border-radius: 999px; background: rgba(244,241,232,.48); backdrop-filter: blur(8px); }
.language-button { border: 0; border-radius: 999px; padding: .35rem .65rem; background: transparent; color: var(--ink); cursor: pointer; font-size: .75rem; font-weight: 800; }
.language-button.active { background: var(--ink); color: white; }

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 185px max(24px, calc((100vw - var(--max)) / 2)) 110px;
  background:
    linear-gradient(90deg, rgba(244,241,232,.98) 0%, rgba(244,241,232,.91) 43%, rgba(244,241,232,.55) 68%, rgba(244,241,232,.22) 100%),
    linear-gradient(0deg, rgba(244,241,232,.76), transparent 38%),
    url("nordet.png") center 43% / cover no-repeat;
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .55fr);
  align-items: end;
  gap: 6rem;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 85px; background: var(--paper); clip-path: polygon(0 65%, 100% 0, 100% 100%, 0 100%); }
.hero-copy, .definition-card { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1rem; color: var(--orange); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 850; }
.eyebrow.light { color: #b8d4ff; }
.hero h1 { max-width: 820px; margin: 0; font: 500 clamp(3rem, 5.8vw, 5.8rem)/.94 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--orange); font-weight: 400; }
.hero-lead { max-width: 660px; margin: 1.7rem 0; color: rgba(19,34,56,.72); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .75rem 1.25rem; border: 1px solid transparent; text-decoration: none; font-size: .86rem; font-weight: 800; }
.button.primary { background: var(--orange); color: white; }
.button.secondary { border-color: rgba(229,106,61,.58); color: var(--orange); background: rgba(255,255,255,.68); backdrop-filter: blur(8px); }
.button.inverse { background: var(--paper); color: var(--deep); }
.hero .button.primary, .final-cta .button.inverse { background: #fff; color: var(--orange); }
.button:hover { transform: translateY(-2px); }
.definition-card { align-self: end; justify-self: end; max-width: 350px; padding: 1.5rem; background: rgba(244,241,232,.72); border: 1px solid rgba(19,34,56,.28); backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(19,34,56,.12); }
.definition-card h2 { margin: .1rem 0 .6rem; font: italic 400 1.7rem Georgia, serif; }
.definition-card p { margin: 0; color: rgba(19,34,56,.72); font-size: .9rem; }
.phonetic { color: var(--orange); font-size: .75rem; letter-spacing: .12em; }
.wind-lines { position: absolute; inset: 80px -10% auto 25%; height: 380px; transform: rotate(-6deg); opacity: .18; }
.wind-lines i { display: block; width: 90%; height: 1px; margin: 57px 0; background: linear-gradient(90deg, transparent, var(--ink) 25%, transparent); border-radius: 50%; }
.wind-lines i:nth-child(2) { margin-left: 14%; width: 68%; }
.wind-lines i:nth-child(3) { margin-left: -8%; width: 85%; }

.section-shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 110px 0; }
.manifesto { display: block; }
.manifesto h2, .section-heading h2, .method-section h2, .final-cta h2 { max-width: 810px; margin: 0 0 2rem; font: 500 clamp(2rem, 3.8vw, 3.7rem)/1.04 Georgia, serif; letter-spacing: -.035em; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; max-width: 900px; }
.two-columns p { margin: 0; color: var(--muted); }

.video-section { background: #e8e2d4; border-block: 1px solid var(--line); }
.video-layout { display: grid; grid-template-columns: .62fr 1.38fr; gap: 5rem; align-items: center; padding-block: 85px; }
.video-copy h2 { margin: 0 0 1.3rem; font: 500 clamp(1.9rem, 3vw, 2.9rem)/1.06 Georgia, serif; letter-spacing: -.03em; }
.video-copy > p:not(.eyebrow) { color: var(--muted); }
.video-link { display: inline-flex; gap: .6rem; margin-top: 1rem; color: var(--orange); font-size: .85rem; font-weight: 850; text-decoration: none; border-bottom: 1px solid currentColor; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--deep); box-shadow: 0 24px 60px rgba(19,34,56,.18); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; border-block: 1px solid var(--line); }
.stats-band article { min-height: 160px; padding: 2rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.stats-band article:last-child { border: 0; }
.stats-band strong { font: 500 2.25rem Georgia, serif; }
.stats-band span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.section-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: var(--muted); margin: 0 0 .6rem; }
.task-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.task-grid::before { content: ""; position: absolute; z-index: 0; inset: 0; background: url("Flag_of_Quebec.svg") center / cover no-repeat; opacity: .065; pointer-events: none; }
.task-card { position: relative; z-index: 1; min-height: 380px; padding: 2.3rem; background: rgba(244,241,232,.76); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s, transform .25s; }
.task-card:hover { z-index: 2; background: #fffdf7; transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,61,165,.09); }
.task-index { color: var(--orange); font: italic 400 1.7rem Georgia, serif; }
.task-tag { margin: 2.3rem 0 .8rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.task-card h3 { margin: 0 0 1rem; font: 500 1.65rem/1.12 Georgia, serif; }
.task-card > p:not(.task-tag) { max-width: 500px; color: var(--muted); }
.modality { position: absolute; bottom: 2rem; left: 2.3rem; padding: .25rem .6rem; background: rgba(229,106,61,.1); border-radius: 2px; color: var(--orange); font-size: .72rem; font-weight: 800; }

.method-section { background: var(--quebec-blue-dark); color: white; }
.method-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: center; }
.method-layout p:not(.eyebrow) { max-width: 580px; color: rgba(255,255,255,.65); }
.delta-diagram { border: 1px solid rgba(255,255,255,.17); padding: 1.3rem; }
.score { min-height: 105px; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; }
.score span { color: white; font-size: 1.05rem; font-weight: 850; letter-spacing: .01em; }
.score strong { font: 500 2rem Georgia, serif; }
.control-score { background: #2765b5; }
.challenge-score { background: var(--orange); }
.method-section .eyebrow.light { color: #b8d4ff; }
.delta { display: flex; justify-content: center; gap: 1rem; padding: .7rem; color: #b8d4ff; }

.leaderboard-panel { margin-bottom: 4.5rem; padding: 2rem; background: #fffdf7; border: 1px solid var(--line); }
.leaderboard-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; }
.leaderboard-heading h3 { margin: 0; font: 500 1.45rem Georgia, serif; }
.leaderboard-heading span { color: var(--muted); font-size: .78rem; }
.leaderboard-chart { min-height: 330px; margin-top: 2rem; padding: 2rem 1rem 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; align-items: end; border-bottom: 1px solid var(--line); }
.leaderboard-entry { height: 100%; display: grid; grid-template-rows: 1fr auto; align-items: end; text-align: center; }
.leaderboard-bar-wrap { height: 245px; display: flex; flex-direction: column; justify-content: end; align-items: center; }
.leaderboard-value { margin-bottom: .45rem; font: 500 1rem Georgia, serif; }
.leaderboard-bar { width: min(38px, 56%); min-height: 4px; background: var(--quebec-blue); transform-origin: bottom; animation: rise .7s ease both; }
.leaderboard-model { min-height: 72px; padding-top: .8rem; font-size: .68rem; font-weight: 850; line-height: 1.35; text-transform: uppercase; letter-spacing: .07em; }
@keyframes rise { from { transform: scaleY(0); } }
.full-results { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.full-results summary { cursor: pointer; color: var(--forest); font-weight: 800; }
.table-scroll { overflow-x: auto; margin-top: 1.2rem; }
.full-results table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: .75rem; }
.full-results th, .full-results td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); text-align: center; }
.full-results th:first-child, .full-results td:first-child { position: sticky; left: 0; z-index: 1; background: #fffdf7; text-align: left; font-weight: 800; }
.full-results thead th { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; }
.full-results .subhead th { color: var(--orange); }
.quote-section { padding: 120px 24px; background: var(--cream); }
.quote-section blockquote { max-width: 950px; margin: 0 auto; text-align: center; font: italic 400 clamp(1.8rem, 3.6vw, 3.25rem)/1.18 Georgia, serif; color: var(--quebec-blue-dark); }
.quote-source { margin: 2rem auto 0; text-align: center; font-size: .78rem; }
.quote-source a { color: var(--muted); text-decoration: none; border-bottom: 1px solid currentColor; }
.quote-source a:hover { color: var(--orange); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.about-grid h3 { font: 500 1.4rem Georgia, serif; }
.people, .source-list { list-style: none; padding: 0; margin: 0; }
.people li, .source-list li { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.people span { color: var(--muted); font-size: .85rem; }
.source-list a { text-decoration: none; }
.source-list a:hover { color: var(--orange); }

.final-cta { padding: 120px 24px; text-align: center; background: var(--quebec-blue); color: white; }
.final-cta h2 { margin-inline: auto; }
footer { min-height: 110px; padding: 30px max(24px, calc((100vw - var(--max)) / 2)); display: flex; justify-content: space-between; align-items: center; background: var(--quebec-blue-dark); color: rgba(255,255,255,.85); }
footer p { font-size: .78rem; }

@media (max-width: 1220px) { .site-header { padding-inline: 24px; } }
@media (max-width: 820px) {
  .nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 155px; gap: 4rem; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4.4rem); }
  .definition-card { justify-self: start; max-width: 520px; }
  .two-columns, .section-heading, .method-layout, .about-grid, .video-layout { grid-template-columns: 1fr; gap: 2rem; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band article:nth-child(2) { border-right: 0; }
  .task-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 340px; }
  .leaderboard-chart { grid-template-columns: repeat(3, 1fr); min-height: 620px; row-gap: 2rem; }
  .leaderboard-heading { align-items: flex-start; flex-direction: column; gap: .4rem; }
}
@media (max-width: 520px) {
  .site-header { height: 72px; }
  .brand-logo { width: 34px; height: 34px; }
  .hero { padding-inline: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section-shell { width: min(100% - 36px, var(--max)); padding: 80px 0; }
  .stats-band { grid-template-columns: 1fr; margin-inline: 18px; }
  .stats-band article { border-right: 0; border-bottom: 1px solid var(--line); }
  .task-card { padding: 1.6rem; }
  .leaderboard-panel { padding: 1.2rem; }
  .leaderboard-chart { padding-inline: 0; gap: .5rem; }
  .modality { left: 1.6rem; }
  .people li { flex-direction: column; }
  footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
