/* ============================================================
   hi·cs — Computer Science, University of Hildesheim
   Modern, clean design system.
   ============================================================ */
:root {
  --navy: #363a5e;            /* deep slate-navy — gradient stop, dark surfaces */
  --slate: #535880;           /* logo wordmark colour — headings on light */
  --brand: #4a5079;           /* primary actions (slate, deepened) */
  --brand-600: #5b6299;       /* slate — links, hovers */
  --brand-300: #9aa0c8;
  --teal: #67bea5;            /* logo connector teal */
  --teal-deep: #2f7d68;       /* deepened teal — safe for white text on colour */
  --accent: #67bea5;          /* teal — badges, primary accent */
  --accent-2: #6dc24b;        /* Hi-CS lime green — secondary accent */
  --lime-deep: #4f8f2e;       /* deepened lime — safe for white text on colour */
  --ink: #262a41;
  --body: #3a3f5c;
  --muted: #6d7290;
  --line: #e6e5ef;
  --bg: #ffffff;
  --surface: #f5f6fb;
  --surface-2: #ececf6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(38,42,65,.05), 0 8px 30px rgba(38,42,65,.07);
  --shadow-lg: 0 20px 50px rgba(43,46,82,.18);
  --maxw: 1140px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* sticky footer: main grows, so the footer sits at the bottom even on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .4em; font-weight: 800; letter-spacing: -0.01em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
.lp-programme-media picture, .lp-split-media picture, .lp-ss-media picture { display: block; }  /* {% picture %} wrappers */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--brand-600); margin: 0 0 .8rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
/* text for screen readers only (e.g. "opens in a new tab") */
.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; }

/* Preview bar — only rendered on the staging instance (HICS_ENV=staging) */
.staging-bar { background: #b45309; color: #fff; text-align: center; font-size: .85rem; font-weight: 700; padding: .35rem 16px; }
.staging-bar a { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand picture { display: flex; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-sub { font-size: .72rem; line-height: 1.2; color: var(--muted); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--body); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 8px; white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-2); color: var(--brand-600); text-decoration: none; }

/* mobile nav */
.navtoggle, .navtoggle-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .96rem; padding: .72rem 1.3rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(74,80,121,.32); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-600); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--bg) 78%); }
.hero-inner { position: relative; z-index: 2; padding: 84px 24px 76px; max-width: 900px; }
.hero-title { font-family: var(--display); font-weight: 900; font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.02em; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--body); max-width: 640px; margin-top: .4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hero-glow {
  position: absolute; inset: -30% -10% auto auto; width: 620px; height: 620px; z-index: 1;
  background: radial-gradient(circle at 60% 40%, rgba(103,190,165,.62), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero-glow-warm { background: radial-gradient(circle at 65% 30%, rgba(109,194,75,.58), rgba(103,190,165,.5) 45%, transparent 72%); }
.hero-ss { background: linear-gradient(135deg, var(--navy) 0%, var(--brand) 55%, var(--teal-deep) 100%); }
.hero-ss .eyebrow { color: #c9e9de; }
.hero-project-logo { display: block; height: 34px; width: auto; margin-bottom: 1rem; position: relative; z-index: 2; }
.hero-note { color: #b9c3e8; font-size: .88rem; margin-top: 1.2rem; }
.hero-ss .hero-title, .hero-ss .hero-sub { color: #fff; }
.hero-ss .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero-ss .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Network-mesh decoration (echoes the flyer/poster artwork) ---------- */
.mesh-decor {
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  pointer-events: none;
}
.hero-mesh {
  position: absolute; inset: -2% -4% auto auto; width: 620px; height: 305px; z-index: 1;
  color: #fff; opacity: .55;
}
.feature-mesh { width: 100%; max-width: 340px; aspect-ratio: 667 / 328; color: #fff; opacity: .95; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.link-more { font-weight: 600; }
.page-hero { padding: 64px 0 24px; background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--line); }
.page-title { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); }
.lede { font-size: 1.18rem; color: var(--body); }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs span { margin: 0 .35rem; }

/* ---------- Cards / grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  position: relative; display: block; background: var(--bg); color: var(--body);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.card-acc { position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent, var(--brand)); }
.group-card .card-acc { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #fff)); }
.card-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em; color: #fff;
  background: var(--accent, var(--brand)); border-radius: 8px; padding: .3rem .6rem; margin-bottom: 14px;
}
.card-title { font-size: 1.2rem; margin-bottom: .3rem; }
.card-text { color: var(--body); margin-bottom: .6rem; }
.card-meta { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Feature (summer school highlight) ---------- */
.feature {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 0;
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy), var(--teal-deep));
}
.feature-body { padding: 48px 44px; color: #fff; }
.feature-body .eyebrow { color: #c9e9de; }
.feature-title { color: #fff; font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.feature-sub { color: #e4f4ee; font-size: 1.1rem; }
.feature-facts { display: flex; flex-wrap: wrap; gap: 22px; margin: 1.4rem 0 1.8rem; }
.feature-facts div { font-size: .98rem; color: #fff; }
.feature-facts span { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: #a8e0cd; margin-bottom: 3px; }
.feature-side {
  display: flex; align-items: center; justify-content: center; padding: 32px; overflow: hidden;
  background: radial-gradient(circle at 40% 40%, var(--teal-deep), var(--navy) 70%, var(--lime-deep) 135%);
}

/* ---------- Summer school page ---------- */
.facts-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.fact span { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--brand-600); font-weight: 700; margin-bottom: 4px; }
.fact strong { font-size: 1.05rem; color: var(--ink); }
.fact-note { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.cta-band {
  text-align: center; background: linear-gradient(135deg, var(--teal-deep), var(--lime-deep));
  color: #fff; border-radius: 22px; padding: 52px 24px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-family: var(--display); }
.cta-band p { color: #eafaf0; max-width: 560px; margin: 0 auto 1.6rem; }
.cta-band .btn-primary { background: #fff; color: var(--teal-deep); }
.cta-band .btn-primary:hover { background: #fff; }

/* group detail hero accent */
.group-hero { border-bottom: 3px solid var(--accent); }
.group-badge { display: inline-block; font-weight: 700; color: #fff; background: var(--accent); border-radius: 8px; padding: .35rem .7rem; margin-bottom: .6rem; }
.group-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 1rem; color: var(--muted); }

/* ---------- Publications ---------- */
.pub-year { margin-bottom: 2.4rem; }
.pub-year-title {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  border-bottom: 2px solid var(--line); padding-bottom: .4rem; margin-bottom: .4rem;
}
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: none; }
.pub-title { font-weight: 600; font-size: 1.04rem; color: var(--ink); }
.pub-meta { color: var(--muted); font-size: .93rem; margin: .2rem 0 0; }
.pub-kind {
  display: inline-block; margin-left: .6rem; padding: .08rem .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-600); background: var(--surface-2); border-radius: 999px;
  vertical-align: 1px;
}

/* ---------- Rich text ---------- */
.rich { font-size: 1.06rem; }
.rich h2 { font-family: var(--display); font-weight: 800; margin-top: 2rem; }
.rich h3 { margin-top: 1.6rem; }
.rich ul, .rich ol { padding-left: 1.3rem; }
.rich li { margin-bottom: .4rem; }
.rich a { text-decoration: underline; }
.rich table {
  width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: .96rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.rich th, .rich td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.rich th { background: var(--surface); color: var(--ink); font-weight: 700; }
.rich tr:last-child td { border-bottom: none; }

/* ---------- Accordion (flip-open info sections) ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; margin: 1.4rem 0; }
.accordion details {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 1.05rem;
  color: var(--ink); list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted); flex-shrink: 0;
}
.accordion details[open] summary::after { content: "\2212"; }
.accordion details[open] summary { border-bottom: 1px solid var(--line); }
.accordion .accordion-body { padding: 4px 22px 20px; color: var(--body); }
.accordion .accordion-body p:last-child { margin-bottom: 0; }
.accordion .accordion-body ul { margin: 0; padding-left: 1.2rem; }
.accordion .accordion-body li { margin-bottom: .5rem; }
.accordion .accordion-body li:last-child { margin-bottom: 0; }

/* ---------- Programme banner (the flyers' diagonal colour-cut) ---------- */
.programme-banner {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: 118px;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  text-align: right; padding: 24px 32px; margin: 2.2rem 0 1.4rem; background: var(--surface);
  box-shadow: var(--shadow);
}
.programme-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--teal-deep), var(--accent-2));
  clip-path: polygon(52% 100%, 100% 15%, 100% 100%);
}
.programme-kicker, .programme-banner h2 { position: relative; z-index: 1; }
.programme-kicker {
  display: block; color: #fff; font-weight: 600; font-size: .9rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.15);
}
.programme-banner h2 {
  color: #fff; margin: 0; font-family: var(--display); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem); text-shadow: 0 1px 12px rgba(0,0,0,.15);
}

/* ---------- Downloads ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1.4rem 0; }
.download-card {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  color: var(--body); transition: border-color .2s ease, transform .16s ease;
}
.download-card:hover { border-color: var(--teal); transform: translateY(-2px); text-decoration: none; }
.download-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: var(--teal-deep); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .02em;
}
.download-title { font-weight: 700; color: var(--ink); display: block; }
.download-meta { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- Funders ---------- */
/* Always a light card, regardless of theme — the funder logos are dark-on-white
   originals and won't read on a dark surface. */
.funders-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin: 1.4rem 0; box-shadow: var(--shadow);
}
.funders-label {
  text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700;
  color: #6d7290; margin: 0 0 1rem;
}
.funders-row { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.funders-row img { display: block; height: 56px; width: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #23273f; color: #b4b8d1; margin-top: 40px; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-logo { display: block; height: 42px; width: auto; margin-bottom: .9rem; }
.site-footer .footer-heading { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.site-footer a { display: block; color: #b4b8d1; padding: .18rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #7f83a0; }
.footer-legal { border-top: 1px solid #383c60; margin-top: 32px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a { color: #b4b8d1; }
.footer-legal-links a:hover { color: #fff; }
/* offset anchored sections for the sticky header */
.rich h2[id] { scroll-margin-top: 92px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature-side { min-height: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .navtoggle-btn { display: flex; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; }
  .navtoggle-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    gap: 2px; box-shadow: var(--shadow); display: none;
  }
  .navtoggle:checked ~ .site-nav { display: flex; }
  /* The checkbox is the accessible control (keyboard: Tab + Space); the label draws it. */
  .navtoggle { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
  .navtoggle:focus-visible + .navtoggle-btn { outline: 2px solid var(--brand-600); outline-offset: 2px; }
  .site-nav a { padding: .7rem .6rem; }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f5fa; --body: #c3ccda; --muted: #8b95a5;
    --line: #262b42; --bg: #12141f; --surface: #181c2c; --surface-2: #1e2236;
    --brand-600: #a6ade6; --brand-300: #9aa0c8; --teal: #7fd0b8;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.4);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  }
  .site-header { background: rgba(18,20,31,.82); }
  .site-nav a { color: var(--body); }
  .hero { background: linear-gradient(180deg, #181c2c, #12141f 80%); }
  .card { background: var(--surface); }
  .fact { background: var(--surface); }
  .page-hero { background: linear-gradient(180deg, #181c2c, #12141f); }
}

/* ============================================================
   Study landing page (/study/) — agency concept, Oct 2026.
   All classes prefixed lp-. Template: home/study_page.html
   ============================================================ */
.btn-apply { background: var(--teal-deep); color: #fff; box-shadow: 0 6px 18px rgba(47,125,104,.32); }
.btn-apply:hover { background: #276b59; color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* header: persistent "Apply now" (order puts it after the nav on desktop) */
.header-inner .site-nav { order: 2; }
.header-apply { order: 3; margin-left: 10px; }
.navtoggle-btn { order: 4; }
.site-nav .nav-secondary { color: var(--muted); }
.template-study section[id], .template-study .lp-programme[id] { scroll-margin-top: 84px; }
.template-study .site-footer { margin-top: 0; }

.lp-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal-deep); margin: 0 0 .8rem; }
.lp-highlight { color: var(--teal); }
.lp-head { max-width: 720px; margin-bottom: 2.4rem; }
.lp-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-intro { font-size: 1.12rem; color: var(--body); margin: .4rem 0 0; }
.lp-center { text-align: center; margin-top: 2.4rem; }
.lp-text p { margin: 0 0 .8rem; }
.lp-footnote { color: var(--muted); font-size: .95rem; margin: 2rem 0 0; max-width: 760px; }

/* placeholders (images / video still in production) */
.lp-placeholder {
  width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px; text-align: center; color: var(--muted);
  border: 2px dashed var(--brand-300); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px);
}
.lp-placeholder-tag {
  text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 800;
  color: var(--brand-600); background: var(--bg); border-radius: 999px; padding: .2rem .7rem;
}
.lp-placeholder-note { font-size: .88rem; max-width: 300px; line-height: 1.4; }
.lp-pending {
  display: inline-block; vertical-align: 2px; font-size: .66rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #8a4b08; background: #fde9c8; border-radius: 999px; padding: .1rem .5rem;
}
.lp-pending-note { color: var(--muted); font-size: .88rem; margin-top: .8rem; }

/* 1 hero */
.lp-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, var(--brand) 50%, var(--teal-deep) 100%);
}
.lp-hero.has-image {
  background: linear-gradient(90deg, rgba(30,33,58,.88) 0%, rgba(30,33,58,.55) 45%, rgba(30,33,58,0) 75%),
              var(--hero-image) center / cover no-repeat;
}
.lp-hero-inner { position: relative; z-index: 2; padding: 96px 24px 104px; }
.lp-hero .lp-eyebrow { color: #c9e9de; }
.lp-hero .lp-eyebrow::after { content: ""; display: block; width: 44px; height: 3px; background: var(--teal); border-radius: 2px; margin-top: .7rem; }
.lp-hero-title {
  color: #fff; font-family: var(--display); font-weight: 900; line-height: 1.08;
  font-size: clamp(2.4rem, 5.6vw, 4.3rem); letter-spacing: -0.02em; max-width: 780px; margin: 0 0 1.1rem;
}
.lp-hero-text { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e2e6f6; max-width: 580px; margin: 0; }
.lp-hero-programmes { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 1.6rem; }
.lp-hero-programmes a { color: #fff; font-weight: 800; font-size: 1.08rem; border-bottom: 2px solid rgba(255,255,255,.35); padding-bottom: 2px; }
.lp-hero-programmes a:hover { text-decoration: none; border-color: var(--teal); }
.lp-hero-mesh { position: absolute; right: -6%; bottom: -8%; width: 760px; height: 374px; z-index: 1; color: #fff; opacity: .4; }
.lp-hero-pending {
  position: absolute; right: 16px; bottom: 12px; z-index: 2; margin: 0; max-width: 60%;
  font-size: .72rem; color: rgba(255,255,255,.75); border: 1px dashed rgba(255,255,255,.45);
  border-radius: 999px; padding: .2rem .8rem;
}

/* 2 benefits */
.lp-benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.lp-benefit { text-align: center; padding: 8px 10px; }
.lp-benefit h3 { font-size: 1.12rem; margin: 1rem 0 .4rem; color: var(--ink); }
.lp-benefit p { margin: 0; font-size: .98rem; }
.lp-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 60px; height: 60px; border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 18%, var(--bg)); color: var(--teal-deep);
}

/* 3 programmes */
.lp-programmes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.lp-programme {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
}
.lp-programme-media img, .lp-split-media img, .lp-ss-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.lp-programme-media { padding: 14px 14px 0; position: relative; }
.lp-programme-media img { aspect-ratio: 16 / 9; object-fit: cover; }
/* the flyers' diagonal colour cut, over the programme photo */
.lp-programme-media:has(img)::after {
  content: ""; position: absolute; inset: 14px 14px 0; border-radius: var(--radius); pointer-events: none;
  background: linear-gradient(90deg, var(--accent-2) 64%, var(--teal-deep) 82%, var(--brand) 100%);
  clip-path: polygon(64% 100%, 100% 55%, 100% 100%);
}
.lp-programme-body { padding: 22px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.lp-kicker { font-size: .8rem; font-weight: 700; color: var(--teal-deep); text-transform: uppercase; letter-spacing: .1em; }
.lp-programme-title { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: .2rem 0 .5rem; color: var(--ink); }
.lp-pitch { font-size: 1.1rem; font-weight: 600; color: var(--slate); margin: 0 0 1rem; }
.lp-checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.lp-checklist li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .45rem; }
.lp-checklist .lp-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 4px; color: var(--teal-deep); }
.lp-chips { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips li { font-size: .85rem; font-weight: 700; color: var(--brand-600); background: var(--surface-2); border-radius: 999px; padding: .3rem .8rem; }
.lp-programme-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.lp-contact { font-size: .88rem; color: var(--muted); margin: 1rem 0 0; }

/* 4 / 5 / 9 split sections */
.lp-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lp-split-reverse { grid-template-columns: .85fr 1.15fr; }
.lp-split-faq { align-items: start; }
.lp-split-single { grid-template-columns: 1fr; max-width: 860px; }
.lp-requirements-note { color: var(--muted); font-size: .95rem; margin: 1rem 0 0; }
.lp-credit { color: var(--muted); font-size: .78rem; margin: .5rem 0 0; text-align: right; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.8rem 0 1.6rem; }
.lp-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; }
.lp-stat strong { display: block; font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: var(--slate); line-height: 1.1; white-space: nowrap; }
.lp-stat span { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.lp-points { margin: 0; }
.lp-points li { margin-bottom: .7rem; }
.lp-life { display: flex; flex-direction: column; gap: 18px; margin-top: 1.6rem; }
.lp-life-item { display: flex; gap: 16px; align-items: flex-start; }
.lp-life-item .lp-icon-wrap { width: 52px; height: 52px; }
.lp-life-item h3 { font-size: 1.05rem; margin: .2rem 0 .2rem; color: var(--ink); }
.lp-life-item p { margin: 0; font-size: .98rem; }

/* 6 video */
.lp-video {
  position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 22px; box-shadow: var(--shadow-lg);
  background: radial-gradient(circle at 30% 30%, var(--teal-deep), var(--navy) 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff;
}
.lp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-video-play { all: unset; cursor: pointer; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lp-video-play:focus-visible { outline: 3px solid var(--teal); outline-offset: -6px; border-radius: 22px; }
.lp-play { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.95); position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.lp-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--teal-deep); }
.lp-video-consent, .lp-video-note { font-size: .85rem; color: #d7dcf0; text-align: center; padding: 0 16px; }
.lp-video.is-placeholder { border: 2px dashed rgba(255,255,255,.4); }

/* 7 summer school band */
.lp-ss {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: color-mix(in srgb, var(--teal) 16%, var(--bg)); border-radius: 22px; padding: 40px;
}
.lp-ss-title { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); }
.lp-ss-body p { font-size: 1.05rem; }

/* 8 application */
.lp-steps { list-style: none; padding: 0; margin: 0 0 2.4rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.lp-steps::before { content: ""; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px; background: var(--brand-300); opacity: .5; }
.lp-step { position: relative; text-align: center; }
.lp-step-num {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 900; font-size: 1.15rem; box-shadow: 0 0 0 6px var(--surface);
}
.lp-step h3 { font-size: 1.02rem; margin: .9rem 0 .3rem; color: var(--ink); }
.lp-step p { font-size: .92rem; margin: 0; }
.lp-apply-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.lp-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.lp-panel h3 { font-size: 1.2rem; margin: 0 0 1rem; color: var(--ink); }
.lp-table-wrap { overflow-x: auto; }
.lp-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.lp-table th, .lp-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.lp-table thead th { color: var(--ink); font-size: .85rem; }
.lp-table small { color: var(--muted); font-weight: 600; }
.lp-table tbody th { color: var(--ink); }
.lp-table tr:last-child th, .lp-table tr:last-child td { border-bottom: none; }

/* 10 final CTA */
.lp-final { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--brand) 60%, var(--teal-deep)); color: #fff; }
.lp-final-inner { position: relative; z-index: 2; padding: 88px 24px; }
.lp-final-inner > * { max-width: 760px; }
.lp-final-title { color: #fff; font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; }
.lp-final p { color: #e2e6f6; font-size: 1.12rem; max-width: 600px; }
.lp-final-mesh { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: 640px; height: 315px; z-index: 1; color: #fff; opacity: .3; }

@media (max-width: 960px) {
  .lp-programmes, .lp-split, .lp-split-reverse, .lp-ss, .lp-apply-grid { grid-template-columns: 1fr; }
  .lp-split { gap: 32px; }
  .lp-split-reverse .lp-split-media { order: 2; }
  .lp-split-media { max-width: 560px; }
  .lp-steps { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .lp-steps::before { top: 10px; bottom: 10px; left: 23px; right: auto; width: 2px; height: auto; }
  .lp-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; text-align: left; }
  .lp-step-num { grid-row: span 2; }
  .lp-step h3 { margin: .4rem 0 .2rem; }
  .lp-ss { padding: 28px; }
}
@media (max-width: 820px) {
  .header-apply { margin-left: auto; margin-right: 8px; }
}
@media (max-width: 560px) {
  .lp-hero-inner { padding: 64px 24px 88px; }
  .lp-stat { padding: 14px 6px; }
  .lp-stat strong { font-size: 1.35rem; }
  .lp-programme-body { padding: 18px 20px 22px; }
  .template-study .brand-sub { display: none; }
  .lp-hero-mesh { width: 420px; height: 207px; }
}
@media (prefers-color-scheme: dark) {
  .lp-eyebrow { color: var(--teal); }
  .lp-kicker { color: var(--teal); }
  .lp-icon-wrap { color: var(--teal); }
  .lp-checklist .lp-icon { color: var(--teal); }
  .lp-pitch { color: var(--brand-600); }
  .lp-stat strong { color: var(--brand-600); }
  .lp-pending { color: #fde9c8; background: #6b3a06; }
}
