/* Poppins, latin subset, self-hosted — no third-party request before first paint, and the CSP stays 'self'. */
@font-face{font-family:Poppins;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/poppins-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:Poppins;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/poppins-500.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:Poppins;font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:Poppins;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:Poppins;font-style:normal;font-weight:800;font-display:swap;src:url(fonts/poppins-800.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* NORCET Trend Report — colours sampled from the printed booklet */
:root {
  --navy: #131B63;
  --navy-2: #252C6F;
  --blue: #2B3A8F;
  --teal: #0B8FA5;
  --cyan: #15CAE8;
  --bar: #7D81A9;
  --coral: #F0714F;
  --coral-ink: #C24E2F;
  --coral-pale: #FDE9E3;
  --cyan-pale: #E3F7FB;
  --panel: #F3F5FA;
  --line: #E3E6F0;
  --ink: #131B63;
  --muted: #6C7390;
  --white: #fff;

  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
  --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);
  --dur-ill: 900ms;

  --gutter: 20px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 880px; margin: 0 auto; padding-inline: var(--gutter); }

h1, h2 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 8.4vw, 72px); }
h2 { font-size: clamp(28px, 5.2vw, 44px); max-width: 22ch; }
.hl { color: var(--cyan); }
.sub { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.sub.after { margin-top: 24px; font-size: 16px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out-quart), transform 700ms var(--ease-out-quart); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- cover ---------- */
.cover { background: var(--navy); color: var(--white); min-height: 100svh; display: flex; overflow: hidden; position: relative; }
.cover .wrap { width: 100%; display: flex; flex-direction: column; padding-block: 28px 40px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo { width: 120px; height: auto; }
.kicker { color: var(--cyan); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.trend { width: 100%; height: auto; max-height: 220px; margin: 32px 0 36px; overflow: visible; }
.trend-line { stroke: #1D3480; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.trend-dots circle { fill: var(--navy); stroke: #1D3480; stroke-width: 5; transform-box: fill-box; transform-origin: center; }
.cover h1 { margin-top: auto; }
.lede { font-size: clamp(16px, 2.4vw, 19px); color: rgba(255,255,255,.82); max-width: 34em; margin: 20px 0 0; }
.cover-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.cstat { background: var(--navy-2); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 16px 18px; }
.cstat b { display: block; font-size: clamp(26px, 4.6vw, 34px); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cstat span { font-size: 13px; color: rgba(255,255,255,.8); }
.scroll-cue { align-self: center; margin-top: 36px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; position: relative; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s var(--ease-in-out-cubic) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 11vw, 112px); }
.sec.alt { background: #FAFBFD; border-block: 1px solid var(--line); }
.eyebrow { color: var(--cyan); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }
#s1 .eyebrow, #s2 .eyebrow, #s3 .eyebrow, #results .eyebrow, #s4 .eyebrow, #s5 .eyebrow { color: #0A9FB8; }

.bigstat { display: flex; align-items: flex-end; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.huge { font-size: clamp(96px, 24vw, 190px); font-weight: 800; letter-spacing: -.05em; line-height: .85; font-variant-numeric: tabular-nums; }
.bigstat p { margin: 0 0 8px; font-size: 18px; font-weight: 500; max-width: 16em; line-height: 1.4; }
.bigstat small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.bigstat.stacked { flex-direction: column; align-items: flex-start; gap: 10px; }
.bigstat.stacked .huge { font-size: clamp(90px, 18vw, 160px); }

/* column chart */
.colchart { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(8px, 2.4vw, 22px); align-items: end; height: 320px; margin-top: 40px; }
.colchart.compact { height: 260px; margin-top: 0; gap: clamp(6px, 1.4vw, 12px); }
/* Bars live in their own plot box so the labels can never squeeze them: --h is exact. */
.col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.col .plot { position: relative; flex: 1 1 auto; width: 100%; margin-top: 26px; display: flex; justify-content: center; }
.col .v { position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 8px); text-align: center; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity 400ms ease; transition-delay: var(--d2, 0ms); }
.col .bar { position: absolute; bottom: 0; left: 0; right: 0; margin-inline: auto; width: 100%; max-width: 64px; height: var(--h); background: var(--bar); border-radius: 6px 6px 3px 3px; transform: scaleY(0); transform-origin: bottom; transition: transform var(--dur-ill) var(--ease-out-expo); transition-delay: var(--d, 0ms); }
.col.first .bar { background: var(--navy); }
.col.last .bar { background: var(--cyan); }
.col.last .v { color: #0A9FB8; font-size: 15px; }
.col .y { font-size: 12px; color: var(--muted); margin-top: 10px; }
.col.last .y { color: var(--ink); font-weight: 700; }
.colchart.in .bar { transform: scaleY(1); }
.colchart.in .v { opacity: 1; }

/* cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); }
.card b { display: block; font-size: clamp(22px, 3.6vw, 30px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 8px; }
.card span { font-size: 14px; color: var(--muted); }

.tile { background: var(--panel); border-radius: var(--radius); padding: 20px; }
.tile small { font-size: 15px; color: var(--muted); }
.tile small i { font-style: normal; }
.tile b { display: block; font-size: clamp(44px, 7vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.tile span { font-size: 14px; font-weight: 600; }
.coral { color: var(--coral); }
.teal { color: var(--teal); }

/* do this */
.dothis { display: flex; gap: 18px; align-items: center; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 22px 24px; margin-top: 48px; }
.dothis .tag { flex: none; background: var(--cyan); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 6px; }
.dothis p { margin: 0; font-size: 16px; line-height: 1.55; }
.dothis em { font-style: normal; font-weight: 700; color: var(--cyan); }

/* waffle */
.waffles { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 44px; }
.waffle-fig { margin: 0; }
.waffle-fig figcaption { font-weight: 700; font-size: 17px; text-align: center; margin-bottom: 12px; }
.waffle { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.waffle i { aspect-ratio: 1; border-radius: 4px; background: var(--cyan-pale); border: 1px solid #BEE8F0; transform: scale(.4); opacity: 0; transition: transform 380ms var(--ease-out-quart), opacity 380ms var(--ease-out-quart), background-color 380ms ease; transition-delay: var(--d, 0ms); }
.waffle.in i { transform: none; opacity: 1; }
.waffle.in i.med { background: var(--cyan); border-color: var(--cyan); }
.waffle.in i.hard { background: var(--navy); border-color: var(--navy); }
.waffle i.gap { background: transparent; border: 1px dashed #C9CFE0; }
.legend.note { font-size: 11px; margin-top: 4px; }
.legend { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.k { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-left: 8px; }
.k.easy { background: var(--cyan-pale); border: 1px solid #9EDDE9; }
.k.med { background: var(--cyan); }
.k.hard { background: var(--navy); }
.times { text-align: center; max-width: 120px; }
.times b { display: block; font-size: 64px; font-weight: 800; color: var(--coral); line-height: 1; }
.times span { font-size: 13px; color: var(--muted); }
.times.in b { animation: pop 700ms var(--ease-out-expo) 900ms both; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* stacked bars */
.stack-wrap { margin-top: 28px; }
.bracket { width: 65%; border: 2px solid var(--navy); border-bottom: 0; height: 12px; position: relative; margin-bottom: 14px; transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out-quart) 900ms; }
.bracket span { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700; }
.stack-wrap.in .bracket { transform: none; }
.stack { display: flex; gap: 3px; }
.seg { flex: var(--w) 1 0; min-width: 0; display: flex; flex-direction: column; }
.seg b { display: flex; align-items: center; justify-content: center; height: 88px; border-radius: 8px; color: var(--white); font-size: clamp(15px, 3vw, 24px); font-weight: 700; transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out-quart); transition-delay: var(--d, 0ms); }
.seg em { font-style: normal; font-size: 12px; font-weight: 600; text-align: center; margin-top: 10px; padding-inline: 2px; opacity: 0; transition: opacity 400ms ease; transition-delay: calc(var(--d, 0ms) + 300ms); }
.stack.in .seg b { transform: none; }
.stack.in .seg em { opacity: 1; }
.s-navy b { background: var(--navy); }
.s-blue b { background: var(--blue); }
.s-teal b { background: var(--teal); }
.s-cyan b { background: var(--cyan); }
.s-rest b { background: var(--panel); color: var(--bar); border: 1.5px solid var(--line); }
.s-rest em { color: var(--muted); font-weight: 500; }

.stack.thin { margin-top: 32px; }
.stack.thin .seg em { margin: 0 0 8px; font-size: 11px; font-weight: 700; }
.stack.thin .seg.s-rest em { font-weight: 500; }
.stack.thin .seg b { height: 28px; }
.stack.thin .seg small { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; opacity: 0; transition: opacity 400ms ease; transition-delay: calc(var(--d, 0ms) + 300ms); }
.stack.thin.in .seg small { opacity: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-top: 64px; }

.weights { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.mini-h { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.pill.up { background: var(--cyan-pale); color: var(--teal); }
.pill.down { background: var(--coral-pale); color: var(--coral-ink); }

/* results poster */
.poster { margin: 32px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -24px rgba(19,27,99,.35); }
.poster.reveal { transform: translateY(18px) scale(.98); }
.poster.reveal.in { transform: none; }

/* topics */
.topics { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; margin-top: 44px; }
.toplist { list-style: none; margin: 0; padding: 0; }
.toplist li { display: grid; grid-template-columns: 1fr 2fr 3.2em; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toplist .name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.toplist .name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.toplist .track { height: 10px; background: var(--panel); border-radius: 999px; overflow: hidden; }
.toplist .fill { display: block; height: 100%; width: var(--w); background: var(--navy); border-radius: 999px; transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--ease-out-expo); transition-delay: var(--d, 0ms); }
.toplist li:first-child .fill { background: var(--cyan); }
.toplist .pct { text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.toplist.in .fill { transform: none; }
.rising { list-style: none; margin: 0; padding: 0; }
.rising li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rising b { display: block; font-size: 16px; }
.rising span { font-size: 14px; color: var(--muted); }
.rising em { font-style: normal; font-weight: 700; color: var(--teal); }

/* compare */
.cmp { background: var(--panel); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.cmp > p { margin: 0 0 12px; font-size: 14px; font-weight: 600; min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
.pair { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.pair span { display: flex; flex-direction: column; }
.pair b { font-size: clamp(34px, 5.4vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pair b.was { color: var(--bar); }
.pair small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pair i { font-style: normal; color: var(--bar); font-size: 20px; margin-top: 12px; }

/* CTA */
.cta { background: var(--navy); color: var(--white); border-radius: 20px; padding: clamp(28px, 5vw, 44px); margin-top: 48px; }
.cta h2 { max-width: none; font-size: clamp(26px, 4.4vw, 38px); }
.cta > p { color: rgba(255,255,255,.85); margin: 16px 0 0; max-width: 40em; }
.cta-row { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.cta-row p { margin: 0; font-size: 14px; color: rgba(255,255,255,.85); flex: 1 1 240px; }
.cta-row p a { font-weight: 700; color: var(--white); }
.btn { display: inline-block; background: var(--cyan); color: var(--navy); font-weight: 700; font-size: 17px; text-decoration: none; padding: 16px 28px; border-radius: 10px; transition: background-color 150ms ease; }
.btn:active { transform: scale(.98); }
@media (hover: hover) { .btn:hover { background: #4DD8EF; } }

/* footer */
.foot { padding-block: 32px 48px; font-size: 12px; color: var(--muted); }
.foot p { margin: 0 0 6px; max-width: 60em; }

.stack-legend { display: none; list-style: none; margin: 16px 0 0; padding: 0; }
.stack-legend li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.stack-legend li b { margin-left: auto; }
.stack-legend .k { margin: 0; width: 14px; height: 14px; }
.stack-legend .k.s-navy { background: var(--navy); }
.stack-legend .k.s-blue { background: var(--blue); }
.stack-legend .k.s-teal { background: var(--teal); }
.stack-legend .k.s-cyan { background: var(--cyan); }
.stack-legend .k.s-rest { background: var(--panel); border: 1.5px solid var(--line); }

/* ---------- floating PDF download ---------- */
.pdf-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px 13px 16px; border-radius: 999px; background: var(--cyan); color: var(--navy); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 10px 28px -8px rgba(19,27,99,.55), 0 0 0 1px rgba(19,27,99,.08); transition: background-color 150ms ease, transform 120ms var(--ease-out-quart); animation: fab-in 500ms var(--ease-out-quart) 1200ms both; }
.pdf-fab:active { transform: scale(.97); }
.pdf-fab:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (hover: hover) { .pdf-fab:hover { background: #4DD8EF; } }
@keyframes fab-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.foot { padding-bottom: 96px; }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .cover-stats { grid-template-columns: 1fr; }
  .cstat { display: flex; align-items: baseline; gap: 12px; }
  .cards3 { grid-template-columns: 1fr; }
  .card b { font-size: 26px; }
  .colchart { height: 260px; }
  .col .v { font-size: 11px; }
  .col .y { font-size: 10px; }
  .dothis { flex-direction: column; align-items: flex-start; gap: 12px; }
  .waffles { grid-template-columns: 1fr; gap: 32px; }
  .waffle { max-width: 340px; margin: 0 auto; }
  .times { max-width: none; order: 3; }
  .split, .weights, .topics { grid-template-columns: 1fr; }
  .split { gap: 24px; }
  .seg b { height: 64px; }
  .stack:not(.thin) .seg em { display: none; }
  .stack-legend { display: block; }
  .seg b { font-size: 14px; }
  .bracket span { font-size: 11px; }
  .toplist li { grid-template-columns: 1.3fr 1fr 3em; }
  .cmp > p { min-height: 0; }
  .btn { width: 100%; text-align: center; }
  .pdf-fab { font-size: 14px; padding: 12px 18px 12px 14px; }
}

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