/* ==========================================================================================
   The National Cyber Security Month landing page — a temporary face for /home.

   Loaded only while CSAT Settings has it chosen (www/home.html). Every rule is scoped to `nc-`
   classes or `body.page-ncsm`, so nothing here reaches any other page; the palette the other
   pages wear while this is the site's face (`theme-ncsm`, `palette-ncsm`) lives in site.css.

   It is built the way the Awareness Month page is: the site's own tokens redeclared on body, so
   the shared buttons, eyebrows, footer and closing ask take the month's colours without being
   restyled; hairlines rather than cards; one accent. The accent is the logo's blue, and the logo's
   whole gradient — blue, violet, coral — is kept for the few marks that carry it: the rule under
   the date, the four weeks, the circuit drawn faint behind the hero, the numbers and the ask.
   ========================================================================================== */

/* ---- the palette ---------------------------------------------------------------------------
   tokens.css turns the root dark on a dark system; this page opens in the theme the month is set to
   (Site design, csat/brand.py) whatever the system says, and after that in the one the visitor
   picks from the header's switch, like the other month pages */
html:has(> body.page-ncsm):not([data-theme="dark"]) { color-scheme: light; background: #ffffff; }

body.page-ncsm {
	color-scheme: light;

	--cr-page: #ffffff;
	--cr-card: #ffffff;
	--cr-card-2: #f3f5fb;
	--cr-line: #e3e6f1;
	--cr-line-soft: #eef0f7;
	--cr-ink: #10143a;
	--cr-ink-2: #2e3358;
	--cr-muted: #50577c;       /* 7:1 on the page */
	--cr-faint: #5f6689;
	/* the logo's first colour, a step darker to carry text; another logo's through csat/brand.py */
	--cr-accent: var(--nc-accent, #2459c0);
	--cr-accent-text: var(--nc-accent, #2459c0); /* 6.4:1 on the page */
	--cr-accent-solid: var(--nc-accent, #2459c0);/* white on it: 6.4:1 */
	--cr-accent-hover: var(--nc-accent-hover, #1d4aa3);
	--cr-accent-active: var(--nc-accent-active, #183d87);
	--cr-accent-soft: var(--nc-accent-soft, #e3ebfb);
	--cr-on-accent: #ffffff;
	--cr-footer-bg: #0c1030;
	--cr-footer-fg: #c3c8e8;
	--cr-footer-muted: #9ca3c9;
	--cr-footer-line: #20275a;

	--paper: var(--cr-page);
	--surface: var(--cr-card);
	--surface-2: var(--cr-card-2);
	--ink: var(--cr-ink);
	--muted: var(--cr-muted);
	--line: var(--cr-line);
	--line-soft: var(--cr-line-soft);
	--petrol: var(--cr-accent-text);
	--petrol-solid: var(--cr-accent-solid);
	--petrol-dark: var(--cr-accent-hover);
	--petrol-soft: var(--cr-accent-soft);
	--on-accent: var(--cr-on-accent);
	--ed-body: var(--cr-ink-2);

	/* the logo's gradient, as sampled from it, and the four weeks along it — each passes 4.5:1 as
	   text on white */
	--nc-grad: linear-gradient(90deg, var(--nc-c1, #2f6fd6) 0%, var(--nc-c2, #7a67b2) 50%, var(--nc-c3, #d8636f) 100%);
	--nc-w1: var(--nc-w1-lt, #2f6fd6);
	--nc-w2: var(--nc-w2-lt, #5b63c3);
	--nc-w3: var(--nc-w3-lt, #8a5fa3);
	--nc-w4: var(--nc-w4-lt, #c04656);
	--nc-night: #0c1030;
	--nc-ease: cubic-bezier(.2, .7, .2, 1);

	background: var(--paper);
	color: var(--ink);
}
html[data-theme="dark"] body.page-ncsm {
	color-scheme: dark;

	--cr-page: #0b0e24;
	--cr-card: #121637;
	--cr-card-2: #161b40;
	--cr-line: #262c55;
	--cr-line-soft: #1b2048;
	--cr-ink: #eef0ff;
	--cr-ink-2: #c3c8e8;
	--cr-muted: #9ca3c9;       /* 7.4:1 on the page */
	--cr-faint: #8a91ba;
	--cr-accent: var(--nc-accent-dk, #7aa8ff);
	--cr-accent-text: var(--nc-accent-dk-text, #8ab2ff); /* 8.4:1 */
	--cr-accent-solid: var(--nc-accent-dk, #7aa8ff);/* the dark ink on it: 8:1 */
	--cr-accent-hover: var(--nc-accent-dk-hover, #a2c2ff);
	--cr-accent-active: var(--nc-accent-dk-active, #5b8ff0);
	--cr-accent-soft: var(--nc-accent-dk-soft, rgba(122, 168, 255, .14));
	--cr-on-accent: #0b1433;
	--cr-footer-bg: #070919;
	--nc-w1: var(--nc-w1-dk, #7aa8ff);
	--nc-w2: var(--nc-w2-dk, #9aa2f2);
	--nc-w3: var(--nc-w3-dk, #c39ae0);
	--nc-w4: var(--nc-w4-dk, #ff95a0);
}

/* No "Start learning" beside "Log in": both lead to the same door, so one is enough — as on the
   other month pages. The theme switch stays: the month has a dark face too (site.css). */
.page-ncsm .header-actions > .btn-solid { display: none; }

.page-ncsm .btn { transition: background-color .2s ease, color .2s ease, transform .2s var(--nc-ease); }
.page-ncsm .btn-solid:hover { background: var(--cr-accent-hover); }
.page-ncsm main .btn:hover { transform: translateY(-1px); }
.page-ncsm main a:focus-visible,
.page-ncsm main button:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }

/* ---- shared pieces ------------------------------------------------------------------------- */
/* a section opens on its heading at the left and what it is for at the right */
.nc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(2.5rem, 6vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.nc-head h2 { max-width: 18ch; margin: 0; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.12; letter-spacing: -.03em; }
.nc-head-say { display: grid; gap: .8rem; margin: 0; color: var(--muted); line-height: 1.6; }
.nc-head-say p { margin: 0; }
.nc-eyebrow { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font-size: .82rem; font-weight: 600; color: var(--petrol); }
.nc-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nc-link { font-weight: 600; color: var(--petrol); text-underline-offset: .25em; }
.nc-link:hover { color: var(--cr-accent-hover); }

/* the logo's circuit, faint, behind a section */
.nc-circuit { position: absolute; z-index: 0; pointer-events: none; }
.nc-circuit-numbers { right: -120px; bottom: -140px; width: 620px; opacity: .14; }
.nc-circuit-foot { right: -80px; top: -60px; width: 520px; opacity: .1; }

/* ---- the hero -------------------------------------------------------------------------------
   The words on the left; on the right the logo's circuit, alive around its shield; behind both, a
   hall from a past month. It starts behind the floating header, 16px down and 54px tall here. */
.nc-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: -70px;
	padding: calc(70px + clamp(2rem, 4vw, 3.5rem)) 0 clamp(4rem, 7vw, 6rem);
	background: var(--paper);
}
/* the hall: grey, tinted in the logo's colours, and faded — to almost nothing behind the words,
   more behind the circuit, and out altogether at the foot, into the page */
.nc-hero-bg { position: absolute; z-index: -1; inset: 0; }
.nc-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: grayscale(1) contrast(1.05); opacity: .34; }
.nc-hero-bg::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(115deg, var(--nc-c1, #2f6fd6) 0%, var(--nc-c2, #8a67a6) 55%, var(--nc-c3, #d8636f) 100%);
	mix-blend-mode: screen;
	opacity: .22;
}
.nc-hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(to bottom, transparent 55%, var(--paper) 100%),
		linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 38%, color-mix(in srgb, var(--paper) 45%, transparent) 70%, color-mix(in srgb, var(--paper) 30%, transparent) 100%);
}
.nc-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 4vw, 4rem); align-items: center; }
.nc-hero-copy { max-width: 580px; }
.nc-date { position: relative; display: inline-block; margin: 0 0 1.6rem; padding-bottom: .7rem; font-size: .9rem; font-weight: 600; color: var(--petrol); }
.nc-date::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--nc-grad); }
.nc-hero h1 { max-width: 13ch; margin: 0; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; }
.nc-lede { max-width: 46ch; margin: 1.4rem 0 2rem; font-size: 1.08rem; line-height: 1.6; color: var(--muted); }
.nc-lede b { font-weight: 600; color: var(--ink); }
.nc-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.nc-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.nc-facts > div { display: flex; flex-direction: column; gap: .3rem; }
.nc-facts dt { font-size: .84rem; color: var(--muted); }
.nc-facts dd { order: -1; margin: 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.nc-facts-count dd { color: var(--petrol); }

/* the circuit: square, as large as its column allows */
.nc-art { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin-left: auto; }
.nc-art-glow {
	position: absolute; inset: 22%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .9), color-mix(in srgb, var(--nc-c1, #2f6fd6) 22%, transparent) 45%, transparent 70%);
	filter: blur(24px);
	animation: nc-breathe 6s ease-in-out infinite;
}
.nc-art-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nc-ring { transform-box: fill-box; transform-origin: center; }
.nc-ring-a { animation: nc-spin 60s linear infinite; }
.nc-ring-b { animation: nc-spin 42s linear infinite reverse; }
.nc-art-shield {
	position: absolute; left: 50%; top: 50%;
	width: 25%; height: auto;
	transform: translate(-50%, -52%);
	filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--nc-c1, #2f6fd6) 28%, transparent));
}
.nc-art-origin { position: absolute; left: 50%; top: calc(505 / 600 * 100%); width: 0; height: 0; }

/* the traces draw themselves in, one after another, and the ends and nodes arrive after them */
.nc-art-traces path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nc-draw 1.1s var(--nc-ease) forwards; animation-delay: calc(.3s + var(--d, 0s)); }
.nc-art-ends, .nc-art-nodes { opacity: 0; animation: nc-fade-in .6s ease forwards 1.4s; }
.nc-art-pulses circle { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px color-mix(in srgb, var(--nc-accent-dk, #7aa8ff) 90%, transparent)); }

@keyframes nc-spin { to { transform: rotate(360deg); } }
@keyframes nc-draw { to { stroke-dashoffset: 0; } }
@keyframes nc-fade-in { to { opacity: 1; } }
@keyframes nc-breathe { 50% { transform: scale(1.08); opacity: .8; } }

/* ---- the wires from the shield to the four weeks (wires.html) -------------------------------- */
.page-ncsm main { position: relative; }
.nc-wires { position: absolute; z-index: 1; left: 0; top: 0; overflow: visible; pointer-events: none; }
.nc-wire { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.nc-wire-end { opacity: 0; transform-box: fill-box; transform-origin: center; scale: .3; transition: opacity .3s ease, scale .4s var(--nc-ease); }
.nc-wire-end.is-on { opacity: 1; scale: 1; }
.nc-wire-pulse { opacity: 0; filter: drop-shadow(0 0 4px currentColor); }
.nc-wire-pulse.is-live { opacity: 1; transition: opacity .4s ease .3s; }

/* ---- the agenda ------------------------------------------------------------------------------
   Four weeks as tabs, each week's events as cards (agenda.html). */
.nc-agenda { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
/* room between the heading and the tabs for the wires to fan out in (wires.html) */
.nc-agenda-head { margin-bottom: 4rem; }

/* the tabs: names on a rule, the open one underlined in its week's colour */
.nc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.nc-tabs[hidden] { display: none; }
.nc-tab {
	position: relative;
	display: grid; gap: .15rem; align-content: start;
	padding: .7rem .9rem .9rem 0;
	border: 0; background: none;
	font: inherit; text-align: left; color: var(--muted);
	cursor: pointer;
	transition: color .2s ease;
}
.nc-tab + .nc-tab { padding-left: .9rem; }
.nc-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 3px 3px 0 0; background: var(--wk); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--nc-ease); }
.nc-tab:hover { color: var(--ink); }
.nc-tab[aria-selected="true"] { color: var(--ink); }
.nc-tab[aria-selected="true"]::after { transform: scaleX(1); }
.nc-tab:focus-visible { outline: 2px solid var(--wk); outline-offset: 2px; border-radius: 6px; }
.nc-tab-n { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; color: var(--wk); }
.nc-tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color .4s ease; }
.nc-tab.is-wired .nc-tab-dot, .nc-tab[aria-selected="true"] .nc-tab-dot { background: var(--wk); }
.nc-tab-theme { font-family: var(--font-display); font-size: .88rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.nc-tab-meta { font-size: .7rem; color: var(--muted); }

/* a week: a line on what it is for, then its cards */
.nc-panel[hidden] { display: none; }
.nc-weeks:not(.is-tabbed) .nc-panel + .nc-panel { margin-top: 3.5rem; }
.nc-weeks.is-tabbed .nc-panel:not([hidden]) { animation: nc-in .4s var(--nc-ease) both; }
@keyframes nc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nc-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; margin-bottom: 1rem; }
.nc-panel-head h3 { display: grid; gap: .2rem; margin: 0; font-size: 1.2rem; letter-spacing: -.015em; }
.nc-panel-n { font-family: var(--font-body); font-size: .76rem; font-weight: 600; letter-spacing: 0; color: var(--wk); }
.nc-panel-head p { max-width: 60ch; margin: 0; font-size: .82rem; color: var(--muted); }
/* with the tabs showing, the week's name is already above; the panel says only what it is for */
.nc-weeks.is-tabbed .nc-panel-head h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the cards */
.nc-cards { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.nc-card {
	display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 0 1.2rem; align-items: start;
	padding: 1.05rem 1.15rem 1.1rem;
	border: 1px solid var(--line-soft); border-radius: 12px;
	background: var(--surface);
}
/* on the light ground a white card on a white page was held apart only by the softest hairline, so
   the week's events ran together. Each is a flat panel washed in its week's colour instead — the
   fill does the separating, no rule and no shadow — with the date tile and the arrow in white on it */
html:not([data-theme="dark"]) body.page-ncsm .nc-cards { gap: 1rem; }
html:not([data-theme="dark"]) body.page-ncsm .nc-card { border-color: transparent; border-radius: 16px; background: color-mix(in srgb, var(--wk) 6%, var(--surface)); }
html:not([data-theme="dark"]) body.page-ncsm .nc-card-date { background: var(--surface); }
html:not([data-theme="dark"]) body.page-ncsm .nc-card-people { border-top-color: color-mix(in srgb, var(--wk) 16%, var(--surface)); }
html:not([data-theme="dark"]) body.page-ncsm .nc-card-go { border-color: var(--line); background: var(--surface); }
.nc-card p { margin: 0; }
.nc-card-date { display: grid; place-items: center; align-content: center; gap: .1rem; aspect-ratio: 1; border-radius: 9px; background: color-mix(in srgb, var(--wk) 11%, var(--surface)); }
.nc-card-date b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--wk); }
.nc-card-date span { font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wk); }
.nc-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; font-size: .74rem; color: var(--muted); }
.nc-card-meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: .7rem; border-radius: 50%; background: currentColor; vertical-align: middle; opacity: .6; }
.nc-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--wk) 11%, transparent); font-size: .66rem; font-weight: 700; color: var(--wk); }
.nc-badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-competition .nc-badge { background: var(--wk); color: #fff; }
.nc-card h4 { margin: .4rem 0 .25rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.nc-card-about { max-width: 76ch; font-size: .84rem; line-height: 1.55; color: var(--cr-ink-2); }
.nc-card-for { margin-top: .4rem !important; font-size: .74rem; color: var(--muted); }
.nc-card-for span { font-weight: 600; color: var(--ink); }

/* who is in it: the people with a part to play, then the panel */
.nc-card-people { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line-soft); }
.nc-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.nc-people-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nc-people-label { margin: .9rem 0 .55rem !important; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wk); }
.nc-person { display: flex; gap: .6rem; align-items: flex-start; min-width: 0; }
.nc-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--wk) 12%, var(--surface)); font-family: var(--font-display); font-size: .7rem; font-weight: 600; color: var(--wk); }
.nc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nc-people-panel .nc-avatar { width: 30px; height: 30px; font-size: .64rem; }
.nc-person-part { margin-bottom: .05rem !important; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wk); }
.nc-person-name { font-weight: 600; font-size: .82rem; line-height: 1.3; color: var(--ink); }
.nc-person-role { margin-top: .05rem !important; font-size: .72rem; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* a competition: a way in and when it closes */
.nc-card-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .85rem; }
.nc-card-cta span { font-size: .74rem; font-weight: 600; color: var(--muted); }
.nc-card-cta .btn-solid { padding: .45rem .9rem; font-size: .8rem; background: var(--wk); color: #fff; }
.nc-card-cta .btn-solid:hover { background: color-mix(in srgb, var(--wk) 88%, #000); transform: none; }

/* an event: its page, by the arrow at the side */
.nc-card-go { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--muted); transition: color .2s ease, border-color .2s ease; }
.nc-card-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* pointing at it only colours it: the card itself stays still */
.nc-card-go:hover { border-color: color-mix(in srgb, var(--wk) 45%, var(--line)); color: var(--wk); }
.nc-card-go:focus-visible { outline: 2px solid var(--wk); outline-offset: 3px; }

/* ---- the month in numbers ------------------------------------------------------------------
   The page's one dark band: a photograph of a full hall under the night's indigo, fixed to the
   window so the band slides over it, and the logo's circuit over that. */
.nc-numbers {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(4rem, 8vw, 6rem) 0;
	background-color: var(--nc-night);
	background-image: linear-gradient(100deg, rgba(12, 16, 48, .96) 0%, rgba(12, 16, 48, .9) 55%, rgba(12, 16, 48, .8) 100%), var(--img);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	color: #fff;
	--ink: #fff;
	--muted: #b9bfe3;          /* 9:1 on the band */
	--petrol: var(--nc-accent-dk-text, #8ab2ff);
	--line: rgba(255, 255, 255, .14);
}
@media (hover: none), (prefers-reduced-motion: reduce) {
	.nc-numbers { background-attachment: scroll; }
}
.nc-numbers .wrap { position: relative; z-index: 1; }
.nc-numbers h2 { color: #fff; }
.nc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); margin: 0; }
.nc-stat { display: flex; flex-direction: column; padding: 1.5rem 0 1.8rem; border-top: 1px solid var(--line); }
.nc-stat dt { order: 2; margin-top: .55rem; font-weight: 600; color: #fff; }
.nc-stat-n { order: 1; margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.nc-stat-about { order: 3; margin: .25rem 0 0; font-size: .9rem; color: var(--muted); }
/* the first row's rules carry the logo's gradient, drawn once across the three */
.nc-stats::before { content: ""; grid-column: 1 / -1; height: 2px; margin-bottom: -2px; background: var(--nc-grad); position: relative; z-index: 1; }

/* ---- the keynote speakers ---------------------------------------------------------------------
   Six to a row, each led by a small 4:5 portrait: a photograph, or the month's own card in its
   place. Still under the pointer, like the event cards. */
.nc-speakers { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.nc-speaker-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.nc-speaker h3 { margin: .75rem 0 .15rem; font-size: .92rem; line-height: 1.3; letter-spacing: -.01em; }
.nc-speaker p { margin: 0; }
.nc-speaker-role { font-size: .74rem; line-height: 1.4; color: var(--muted); }
.nc-speaker-talk { margin-top: .55rem !important; padding-top: .55rem; border-top: 1px solid var(--line-soft); font-size: .78rem; line-height: 1.45; color: var(--cr-ink-2); }

.nc-portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: var(--nc-night); }
.nc-portrait > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.nc-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 16, 48, .6), rgba(12, 16, 48, 0) 38%); pointer-events: none; }
.nc-portrait-day {
	position: absolute; z-index: 2; left: .6rem; bottom: .6rem;
	padding: .2rem .5rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .95);
	font-size: .64rem; font-weight: 600; color: #10143a;
}

/* no photograph yet: the night's indigo, a glow in the logo's colours, its circuit, and the initials */
.nc-portrait-blank {
	background:
		radial-gradient(70% 55% at 80% 15%, rgba(216, 99, 111, .35), transparent 70%),
		radial-gradient(80% 60% at 10% 90%, color-mix(in srgb, var(--nc-c1, #2f6fd6) 45%, transparent), transparent 70%),
		var(--nc-night);
}
.nc-portrait-circuit { position: absolute; z-index: 0; right: -30%; top: -12%; width: 110%; opacity: .35; }
.nc-speaker:nth-child(2n) .nc-portrait-circuit { right: auto; left: -34%; transform: scaleX(-1); }
.nc-portrait-initials {
	position: absolute; z-index: 1; left: .7rem; bottom: 2.1rem;
	font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 600; line-height: 1; letter-spacing: -.04em;
	color: rgba(255, 255, 255, .92);
}

/* ---- the sponsors: the site's own tiles (templates/includes/sponsor_tiles.html, site.css `spx-`) */
.nc-sponsors { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }

/* ---- the gallery ------------------------------------------------------------------------------
   A bento: four columns, the first picture two by two, the sixth two wide, so eight close square. */
.nc-gallery { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4.5rem, 8vw, 6.5rem); border-top: 1px solid var(--line); }
.nc-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 210px); gap: 12px; margin: 0; padding: 0; list-style: none; }
.nc-bento > li:first-child { grid-column: span 2; grid-row: span 2; }
.nc-bento > li:nth-child(6) { grid-column: span 2; }
.nc-shot { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 8px; background: var(--surface-2); }
.nc-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--nc-ease); }
.nc-shot:hover img { transform: scale(1.03); }
.nc-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 16, 48, .72), rgba(12, 16, 48, 0) 50%); pointer-events: none; }
.nc-shot-caption { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: .85rem; font-size: .85rem; font-weight: 500; line-height: 1.35; color: #fff; }
.nc-bento > li:first-child .nc-shot-caption { left: 1.4rem; bottom: 1.2rem; font-size: 1rem; font-weight: 600; }

.nc-viewer { width: min(1100px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.nc-viewer::backdrop { background: rgba(8, 10, 30, .92); }
.nc-viewer figure { margin: 0; }
.nc-viewer img { display: block; width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.nc-viewer figcaption { margin-top: .8rem; text-align: center; font-size: .92rem; color: #d6d9ef; }
.nc-viewer-btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color .2s ease; }
.nc-viewer-btn:hover { background: rgba(255, 255, 255, .24); }
.nc-viewer-close { top: -56px; right: 0; }
.nc-viewer-prev { left: 12px; top: 42%; }
.nc-viewer-next { right: 12px; top: 42%; }

/* ---- the sheet and the footer ---------------------------------------------------------------
   As on the month page: the last section is a sheet whose foot turns the corner onto the footer,
   which rises 60px behind it. `:last-of-type`, because <main> ends on a script. */
.page-ncsm main > section:last-of-type {
	position: relative;
	z-index: 1;
	background: var(--paper);
	border-bottom-left-radius: 56px;
	border-bottom-right-radius: 56px;
	box-shadow: 0 30px 40px -30px rgba(6, 8, 30, .45);
}
.page-ncsm .site-footer { margin-top: -60px; }
.page-ncsm .foot-cta { padding-top: calc(7rem + 60px); }
.nc-foot-cta .eyebrow { color: var(--nc-accent-dk-text, #8ab2ff); }
.page-ncsm .foot-cta-glow { background: radial-gradient(circle, color-mix(in srgb, var(--nc-c1, #2f6fd6) 14%, transparent), transparent 62%); }
.page-ncsm .foot-cta .btn-solid { background: var(--nc-accent-dk, #7aa8ff); color: #0b1433; filter: drop-shadow(0 14px 28px color-mix(in srgb, var(--nc-c1, #2f6fd6) 30%, transparent)); }
.page-ncsm .foot-cta .btn-solid:hover { background: var(--nc-accent-dk-hover, #a2c2ff); }

/* ---- smaller screens -------------------------------------------------------------------------- */
@media (max-width: 980px) {
	.nc-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.nc-art { order: -1; max-width: 460px; margin: 0 auto 1rem; }
	/* the circuit comes first on a narrow screen, so the hall shows behind it, at the top */
	.nc-hero-bg::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 35%, transparent) 0%, color-mix(in srgb, var(--paper) 80%, transparent) 40%, var(--paper) 62%); }
	.nc-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.nc-agenda-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
	.nc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nc-tab:nth-child(3) { padding-left: 0; }
	.nc-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nc-people-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nc-speaker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
	.nc-bento > li:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 600px) {
	.nc-ctas .btn { flex: 1 1 100%; text-align: center; }
	.nc-facts { gap: 1rem 1.8rem; }
	.nc-facts dd { font-size: 1.6rem; }
	/* small enough that the headline and both buttons are on the first screen of a phone */
	.nc-art { max-width: 190px; margin-bottom: .25rem; }
	.nc-bento { grid-auto-rows: 130px; gap: 8px; }
	.nc-shot-caption { font-size: .78rem; left: .7rem; right: .7rem; bottom: .6rem; }
	/* the tabs four across still, down to the week and its dot; the card's date beside its meta */
	.nc-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.nc-tab, .nc-tab + .nc-tab, .nc-tab:nth-child(3) { justify-items: center; padding: .8rem .2rem .9rem; }
	.nc-tab-theme, .nc-tab-meta { display: none; }
	.nc-card { grid-template-columns: 3rem minmax(0, 1fr); gap: 0 .85rem; padding: .95rem .95rem 1rem; }
	.nc-card-date b { font-size: 1.15rem; }
	.nc-card-body { display: contents; }
	/* beside the date: the kind, then when, then where, one to a line */
	.nc-card-meta { grid-column: 2; align-self: center; flex-direction: column; align-items: flex-start; gap: .2rem; font-size: .72rem; }
	.nc-card-meta > span + span::before { display: none; }
	.nc-card h4, .nc-card-about, .nc-card-for, .nc-card-people, .nc-card-cta { grid-column: 1 / -1; }
	.nc-card h4 { font-size: .96rem; margin-top: .7rem; }
	.nc-people, .nc-people-panel { grid-template-columns: minmax(0, 1fr); }
	.nc-card-go { grid-column: 1 / -1; justify-self: end; margin-top: .6rem; }
	.nc-speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .9rem; }
	.page-ncsm main > section:last-of-type { border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.page-ncsm *, .page-ncsm *::before, .page-ncsm *::after { transition: none !important; animation: none !important; }
}
/* with nothing moving, the circuit is shown already drawn, with no pulses */
@media (prefers-reduced-motion: reduce) {
	.nc-art-traces path { stroke-dashoffset: 0; }
	.nc-art-ends, .nc-art-nodes { opacity: 1; }
	.nc-art-pulses { display: none; }
}

/* ---- the competitions (competitions.html) ---------------------------------------------------
   The page's own cards, each in one of the four weeks' colours along the logo's gradient: what
   kind it is and where it stands, what it asks, the prize and the deadline, or — decided — the
   three winners; then the way in, out to the organizers' form while it is open. The section sits
   on the page's own ground, like the agenda above it. */
.nc-compete { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.nc-comps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); }
.nc-comp { position: relative; display: flex; flex-direction: column; gap: .65rem; padding: 1.4rem 1.4rem 1.3rem; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s ease, background-color .2s ease; }
/* pointing at a card only colours it, as on the agenda: nothing lifts and nothing casts a shadow */
.nc-comp:hover { border-color: color-mix(in srgb, var(--wk) 45%, var(--line)); }
/* on the light ground, the agenda's flat panel in the card's colour: the fill does the separating */
html:not([data-theme="dark"]) body.page-ncsm .nc-comp { border-color: transparent; border-radius: 16px; background: color-mix(in srgb, var(--wk) 6%, var(--surface)); }
html:not([data-theme="dark"]) body.page-ncsm .nc-comp:hover { background: color-mix(in srgb, var(--wk) 9%, var(--surface)); }
html:not([data-theme="dark"]) body.page-ncsm :is(.nc-comp-facts, .nc-comp-winners) { border-top-color: color-mix(in srgb, var(--wk) 22%, var(--surface)); }
.nc-comp-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; }
.nc-comp-state { font-size: .72rem; font-weight: 600; color: var(--muted); }
.nc-comp.is-open .nc-comp-state, .nc-comp.is-running .nc-comp-state { color: var(--wk); }
.nc-comp.is-open .nc-comp-state::before, .nc-comp.is-running .nc-comp-state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 50%; background: currentColor; vertical-align: 1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wk) 20%, transparent); }
.nc-comp h3 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.nc-comp h3 a { color: var(--ink); text-decoration: none; }
.nc-comp h3 a:hover { color: var(--wk); }
.nc-comp-line { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--cr-ink-2); }
.nc-comp-facts { display: grid; gap: .35rem; margin: .2rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--line); }
.nc-comp-facts > div { display: flex; gap: .8rem; font-size: .82rem; }
.nc-comp-facts dt { min-width: 5.5rem; color: var(--muted); }
.nc-comp-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.nc-comp-winners { list-style: none; margin: .2rem 0 0; padding: .7rem 0 0; display: grid; gap: .45rem; border-top: 1px dashed var(--line); }
.nc-comp-winners li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .6rem; align-items: baseline; font-size: .84rem; }
.nc-comp-winners b { font-family: var(--font-display); font-size: 1rem; color: var(--wk); }
.nc-comp-winners span { display: grid; color: var(--ink); font-weight: 600; }
.nc-comp-winners i { font-style: normal; font-weight: 400; font-size: .76rem; color: var(--muted); }
.nc-comp-winners em { font-style: normal; font-size: .76rem; font-weight: 600; color: var(--cr-ink-2); white-space: nowrap; }
.nc-comp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: auto; padding-top: .8rem; }
.nc-comp-acts .btn-solid { padding: .5rem 1rem; font-size: .84rem; background: var(--wk); color: #fff; }
.nc-comp-acts .btn-solid:hover { background: color-mix(in srgb, var(--wk) 88%, #000); color: #fff; }
.nc-comp-more, .nc-card-more { font-size: .8rem; font-weight: 600; color: var(--wk); text-decoration: none; }
.nc-comp-more:hover, .nc-card-more:hover { text-decoration: underline; }
.nc-card h4 a { color: inherit; text-decoration: none; }
.nc-card h4 a:hover { color: var(--wk); }

/* ---- the entrances --------------------------------------------------------------------------
   Each section comes in its own way the first time it is scrolled to, and never again (the script
   in closing.html marks what enters `data-rise` and then `is-in`, and sets `--i`, its place among
   what enters together, for the stagger). Nothing is hidden without that script, or for a visitor
   who asks for less motion: `nc-motion` is only put on the body when both are right. The hero draws
   its own circuit; the agenda's heading and tabs stay put, since the wires are laid out on them. */
.nc-motion [data-rise="head"]:not(.is-in) > *,
.nc-motion :is([data-rise="card"], [data-rise="comp"], [data-rise="stat"], [data-rise="speaker"], [data-rise="tier"], [data-rise="tile"], [data-rise="shot"]):not(.is-in) { opacity: 0; }

/* a section's heading: the title, then what it says beside it */
[data-rise="head"].is-in > * { animation: nc-rise .7s var(--nc-ease) both; }
[data-rise="head"].is-in > :nth-child(2) { animation-delay: .1s; }

/* the agenda: the week's cards rise one after another */
[data-rise="card"].is-in { animation: nc-rise .6s var(--nc-ease) calc(min(var(--i, 0), 6) * 70ms) both; }

/* the competitions: lifted into place from a little smaller */
[data-rise="comp"].is-in { animation: nc-lift .7s var(--nc-ease) calc(min(var(--i, 0), 6) * 90ms) both; }

/* the numbers: the gradient rule drawn across, then the figures (which count up, closing.html) */
.nc-motion [data-rise="stats"]:not(.is-in)::before { transform: scaleX(0); }
[data-rise="stats"].is-in::before { transform-origin: left; animation: nc-draw-x 1s var(--nc-ease) both; }
[data-rise="stat"].is-in { animation: nc-rise .7s var(--nc-ease) calc(120ms + min(var(--i, 0), 6) * 90ms) both; }

/* the speakers: each portrait wiped open from its foot, the name coming up with it */
[data-rise="speaker"].is-in { animation: nc-fade .8s ease calc(min(var(--i, 0), 6) * 70ms) both; }
[data-rise="speaker"].is-in .nc-portrait { animation: nc-wipe .8s var(--nc-ease) calc(min(var(--i, 0), 6) * 70ms) both; }

/* the sponsors: a tier's hairline drawn from its name, then its tiles */
[data-rise="tier"].is-in { animation: nc-rise .6s var(--nc-ease) both; }
.nc-motion [data-rise="tier"]:not(.is-in)::after { transform: scaleX(0); }
[data-rise="tier"].is-in::after { transform-origin: left; animation: nc-draw-x .9s var(--nc-ease) .1s both; }
[data-rise="tile"].is-in { animation: nc-rise .55s var(--nc-ease) calc(80ms + min(var(--i, 0), 6) * 50ms) both; }

/* the gallery: each picture unveiled from a smaller frame, settling from a slight zoom (`scale`,
   so the pointer's own zoom on `transform` is left alone) */
[data-rise="shot"].is-in { animation: nc-fade .5s ease calc(min(var(--i, 0), 7) * 70ms) both; }
[data-rise="shot"].is-in .nc-shot { animation: nc-unveil .9s var(--nc-ease) calc(min(var(--i, 0), 7) * 70ms) both; }
[data-rise="shot"].is-in .nc-shot img { animation: nc-settle 1.2s var(--nc-ease) calc(min(var(--i, 0), 7) * 70ms) both; }

@keyframes nc-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes nc-lift { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes nc-fade { from { opacity: 0; } }
@keyframes nc-draw-x { from { transform: scaleX(0); } }
@keyframes nc-wipe { from { clip-path: inset(100% 0 0 0 round 10px); } to { clip-path: inset(0 0 0 0 round 10px); } }
@keyframes nc-unveil { from { clip-path: inset(10% round 8px); } to { clip-path: inset(0 round 8px); } }
@keyframes nc-settle { from { scale: 1.12; } }
