/* STEM Academy Ireland — site styles
   Layout concept: an engineer's blueprint. Navy drafting-board bands with a fine
   measured grid, white "paper" sections, part labels set in mono like drawing callouts.
   Colour comes straight from the logo: S blue, T green, E orange, M red. */
:root {
  /* Sampled from the STEM Academy Ireland logo */
  --navy: #07325C;        /* ring and "ACADEMY IRELAND" */
  --navy-deep: #04203F;
  --blue: #037DC6;        /* S, robot */
  --blue-ink: #0067A6;
  --blue-lt: #6CC3F5;
  --green: #4A9D11;       /* T, flask */
  --green-ink: #2D6E07;
  --green-lt: #93D865;
  --orange: #F27204;      /* E, gear */
  --orange-ink: #A34700;
  --orange-lt: #FFA552;
  --red: #DF2018;         /* M, atom */
  --red-ink: #B5160E;
  --red-lt: #FF8577;
  /* Warm neutrals from the logo's paper ground, like a school copybook */
  --page: #FAF8F4;
  --paper: #F1EDE6;
  --white: #FFFFFF;
  --ink: #14243A;
  --ink-soft: #464D55;    /* "YOUNG ENGINEERS" grey */
  --line: #DCD5CA;
  --rule: rgba(7, 50, 92, 0.07);
  --grid: rgba(150, 196, 236, 0.15);
  --grid-strong: rgba(150, 196, 236, 0.27);
  --on-navy: #E8EFF7;
  --on-navy-soft: #B4C6DC;
  --stem-stripe: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--orange) 50% 75%, var(--red) 75% 100%);

  --f-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);

  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; color: var(--navy); letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--paper { background-color: var(--paper);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px; }
.blueprint { background-color: var(--navy); color: var(--on-navy);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.blueprint h1, .blueprint h2, .blueprint h3 { color: var(--white); }

/* Callout labels, like part numbers on a drawing */
.tag { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); display: inline-flex; align-items: center; gap: 10px; }
/* four squares in S-T-E-M order, the logo's letter colours */
.tag::before { content: ""; flex: none; width: 34px; height: 7px; background: linear-gradient(90deg, var(--blue) 0 7px, transparent 7px 9px, var(--green) 9px 16px, transparent 16px 18px, var(--orange) 18px 25px, transparent 25px 27px, var(--red) 27px 34px); }
.blueprint .tag { color: var(--blue-lt); }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 62ch; }
.blueprint .lede { color: var(--on-navy-soft); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head h2 { font-size: var(--step-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1rem; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease; line-height: 1.1; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #1A1206; }
.btn--primary:hover { background: #FF8A26; color: #1A1206; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue-ink); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(250,248,244,0.95); backdrop-filter: saturate(1.4) blur(10px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--stem-stripe); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 48px; height: 48px; }
.brand b { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.1; display: block; }
.brand small { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--f-display); font-size: 0.95rem; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--paper); color: var(--navy); }
.nav .btn { margin-left: 8px; padding: 11px 18px; color: #1A1206; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px var(--gutter-r) 18px var(--gutter-l); gap: 2px; }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hero h1 { font-size: var(--step-4); font-weight: 700; }
.hero h1 .w-s { color: var(--blue-lt); }
.hero h1 .w-t { color: var(--green-lt); }
.hero h1 .w-e { color: var(--orange-lt); }
.hero h1 .w-m { color: var(--red-lt); }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--on-navy-soft); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Gear lab (hero interactive) */
.lab { background: rgba(3, 22, 44, 0.55); border: 1px solid rgba(150,196,236,0.35); border-radius: 18px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.lab-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 0.78rem; color: var(--blue-lt); letter-spacing: 0.06em; text-transform: uppercase; }
.lab canvas { width: 100%; aspect-ratio: 5 / 4; max-width: 100%; display: block; cursor: grab; touch-action: none; border-radius: 10px; }
.lab canvas:active { cursor: grabbing; }
.lab-readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lab-readout div { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.lab-readout dt { font-family: var(--f-mono); font-size: 0.68rem; color: var(--on-navy-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.lab-readout dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 1.15rem; color: var(--white); font-variant-numeric: tabular-nums; }
.lab-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font-family: var(--f-display); font-size: 0.88rem; border-radius: 999px; padding: 9px 14px; border: 1px solid rgba(150,196,236,0.45); background: transparent; color: var(--on-navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.lab-note { font-size: 0.9rem; color: var(--on-navy-soft); }

/* Proof strip */
.proof { border-bottom: 1px solid var(--line); background: var(--white); }
.proof .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.proof-item { padding: 22px 18px; border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: center; min-width: 0; }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item b { font-family: var(--f-display); font-size: 1.45rem; color: var(--navy); line-height: 1.1; }
.proof-item span { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.35; }
.proof-item img { width: 150px; }
@media (max-width: 900px) { .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proof-item { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } .proof-item:nth-child(-n+2) { border-top: 0; } }

/* Audience split */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.door { border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; min-width: 0; }
.door h3 { font-size: var(--step-2); }
.door ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.door li { padding-left: 22px; position: relative; }
.door li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 2px; background: currentColor; opacity: .9; }
.door--families { background: #E6F1FA; border-top: 5px solid var(--blue); }
.door--families li::before { background: var(--blue); }
.door--schools { background: #ECF4E3; border-top: 5px solid var(--green); }
.door--schools li::before { background: var(--green); }
.door .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Programme finder */
.finder { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px clamp(16px, 3vw, 28px); margin-bottom: 28px; }
.finder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.finder label { font-family: var(--f-display); font-weight: 600; color: var(--navy); }
.finder output { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--blue-ink); min-width: 4ch; font-variant-numeric: tabular-nums; }
.finder-track { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.finder input[type=range] { width: 100%; margin: 0; accent-color: var(--blue); height: 32px; min-width: 0; }
.scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-soft); padding-inline: 8px; }
.scale span { width: 0; display: flex; justify-content: center; }
.finder-result { color: var(--ink-soft); }
.finder-result b { color: var(--navy); }
.programmes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prog { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; transition: opacity .25s ease, transform .25s ease, border-color .25s ease, box-shadow .25s ease; min-width: 0; }
.prog[data-match="false"] { opacity: 0.38; }
.prog[data-match="true"] { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), 0 12px 28px -16px rgba(7,50,92,0.5); transform: translateY(-2px); }
.prog-spec { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.prog-spec span { padding: 4px 8px; border-radius: 6px; background: var(--paper); color: var(--ink-soft); }
.prog-spec .age { color: var(--white); }
.prog h3 { font-size: 1.2rem; }
.prog p { font-size: 0.95rem; color: var(--ink-soft); }
.prog a { font-family: var(--f-display); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.prog a:hover { text-decoration: underline; }
.soon { font-family: var(--f-mono); font-size: 0.72rem; color: var(--orange-ink); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 1060px) { .programmes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .programmes { grid-template-columns: 1fr; } }

/* Code the rover */
.rover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.rover-copy { display: grid; gap: 18px; min-width: 0; }
.rover-copy h2 { font-size: var(--step-3); }
.rover-app { background: rgba(3, 22, 44, 0.55); border: 1px solid rgba(150,196,236,0.35); border-radius: 18px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; min-width: 0; }
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; aspect-ratio: 1; max-width: 100%; }
.cell { background: rgba(255,255,255,0.06); border-radius: 6px; position: relative; display: grid; place-items: center; }
.cell.wall { background: repeating-linear-gradient(45deg, rgba(223,32,24,0.6) 0 6px, rgba(223,32,24,0.28) 6px 12px); }
.cell.goal::after { content: ""; width: 46%; aspect-ratio: 1; background: var(--green); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.cell.trail { background: rgba(3,125,198,0.4); }
.bot { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 22%; background: var(--blue); display: grid; place-items: center; transition: transform .28s ease; box-shadow: 0 0 0 3px rgba(255,255,255,0.85); }
.bot::after { content: ""; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid var(--white); transform: translateY(-2px); }
.prog-panel { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-width: 0; }
.cmds { display: grid; grid-template-columns: 1fr; gap: 6px; }
.cmd { font-family: var(--f-display); font-size: 0.9rem; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(150,196,236,0.45); background: rgba(255,255,255,0.06); color: var(--white); cursor: pointer; text-align: left; }
.cmd:hover { background: rgba(255,255,255,0.14); }
.code { list-style: none; margin: 0; padding: 10px; border-radius: 10px; background: rgba(0,0,0,0.25); font-family: var(--f-mono); font-size: 0.78rem; color: #D3E5F6; min-height: 120px; max-height: 210px; overflow: auto; display: grid; align-content: start; gap: 3px; counter-reset: step; }
.code li { counter-increment: step; }
.code li::before { content: counter(step, decimal-leading-zero) "  "; color: #7F9BBE; }
.code li.active { color: var(--white); background: rgba(242,114,4,0.38); border-radius: 4px; }
.code:empty::before { content: "Add commands to build your program"; color: #7F9BBE; }
.run-row { display: flex; gap: 6px; }
.run-row .btn { padding: 10px 14px; font-size: 0.9rem; flex: 1; justify-content: center; }
.rover-msg { grid-column: 1 / -1; font-size: 0.95rem; color: var(--on-navy-soft); min-height: 1.6em; }
.rover-msg.win { color: var(--green-lt); font-weight: 700; }
@media (max-width: 900px) { .rover { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rover-app { grid-template-columns: 1fr; } }

/* Schools */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.way { border-top: 5px solid var(--c); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.way h3 { font-size: 1.3rem; }
.way ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.way li { display: grid; gap: 2px; }
.way li b { font-family: var(--f-display); font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.way li span { font-size: 0.93rem; color: var(--ink-soft); }
@media (max-width: 960px) { .ways { grid-template-columns: 1fr; } }
.offer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 24px clamp(18px, 3vw, 32px); }
.offer-badge { font-family: var(--f-display); font-weight: 800; color: var(--white); background: var(--red-ink); border-radius: 12px; padding: 14px 16px; text-align: center; line-height: 1.05; font-size: 1.5rem; }
.offer-badge small { display: block; font-size: 0.7rem; letter-spacing: 0.12em; font-weight: 700; margin-top: 4px; }
.offer h3 { color: var(--white); font-size: 1.35rem; }
.offer p { color: var(--on-navy-soft); }
.offer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } .offer-badge { justify-self: start; } }
.schools-in { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--ink-soft); font-size: 0.95rem; }
.schools-in b { font-family: var(--f-display); color: var(--navy); font-weight: 600; background: var(--white); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* Tech Hubs */
.hubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hub { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.hub figure { margin: 0; position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; }
.hub figure img { width: 100%; height: 100%; object-fit: cover; }
.hub figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(4,32,63,0.82); color: var(--white); padding: 6px 10px; border-radius: 6px; }
.hub-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.hub-body h3 { font-size: 1.4rem; }
.addr { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.95rem; }
.addr dt { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); padding-top: 3px; }
.addr dd { margin: 0; color: var(--ink); }
.hub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hub-actions .btn { padding: 11px 16px; font-size: 0.92rem; }
@media (max-width: 860px) { .hubs { grid-template-columns: 1fr; } }

/* More ways */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.more a { display: grid; gap: 8px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--white); transition: border-color .2s ease, transform .2s ease; min-width: 0; }
.more a:hover { border-color: var(--c, var(--blue)); transform: translateY(-2px); color: var(--ink); }
.more h3 { font-size: 1.12rem; display: flex; justify-content: space-between; gap: 10px; }
.more h3::after { content: "→"; color: var(--blue-ink); }
.more p { font-size: 0.93rem; color: var(--ink-soft); }
.more .spec { font-family: var(--f-mono); font-size: 0.72rem; color: var(--orange-ink); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 960px) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .more { grid-template-columns: 1fr; } }

/* Mission band */
.mission .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.mission blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; color: var(--white); font-weight: 500; }
.mission blockquote::before { content: "Our mission"; display: block; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-lt); margin-bottom: 14px; }
.mission-facts { display: grid; gap: 14px; }
.mission-facts p { color: var(--on-navy-soft); }
.mission-facts .rec { background: var(--white); border-radius: 12px; padding: 12px; display: flex; gap: 14px; align-items: center; }
.mission-facts .rec img { width: 160px; border-radius: 8px; }
.mission-facts .rec span { color: var(--ink); font-size: 0.92rem; }
@media (max-width: 860px) { .mission .wrap { grid-template-columns: 1fr; } }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-lines { display: grid; gap: 12px; }
.contact-line { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.contact-line dt { font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.contact-line dd { margin: 0; font-family: var(--f-display); font-size: 1.05rem; color: var(--navy); overflow-wrap: anywhere; }
.contact-line dd a { color: var(--navy); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { font-family: var(--f-display); font-size: 0.92rem; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); }
.socials a:hover { border-color: var(--navy); }
form.enquiry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px; border: 1px solid #CFC6B8; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label { font-family: var(--f-display); font-weight: 500; font-size: 0.92rem; padding: 9px 14px; border-radius: 999px; border: 1px solid #CFC6B8; background: var(--white); cursor: pointer; color: var(--ink); }
.pills input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pills input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); }
.form-status { font-size: 0.95rem; min-height: 1.5em; }
.form-status.ok { color: var(--green-ink); font-weight: 700; }
.form-status.err { color: var(--red-ink); }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); font-size: 0.93rem; border-top: 4px solid transparent; border-image: var(--stem-stripe) 1; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 48px 28px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 10px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand .row { display: flex; align-items: center; gap: 12px; }
.foot-brand img.logo { width: 56px; height: 56px; }
.foot-brand img.ye { width: 150px; background: var(--white); border-radius: 8px; padding: 6px; }
.foot-base { border-top: 1px solid rgba(150,196,236,0.2); }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; grid-template-columns: none; font-size: 0.85rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Gentle entrance: content is visible at rest; this only adds a short lift when JS marks it */
.reveal { transition: transform .6s ease, opacity .6s ease; }
.js .reveal.pending { transform: translateY(14px); opacity: 0.001; }

/* STEM colour coding: each card in a set takes the next logo colour, S → T → E → M */
.more a { border-top: 4px solid var(--c); }
.more a:nth-child(4n+1) { --c: var(--blue); }
.more a:nth-child(4n+2) { --c: var(--green); }
.more a:nth-child(4n+3) { --c: var(--orange); }
.more a:nth-child(4n+4) { --c: var(--red); }
.hub { border-top: 4px solid var(--c, var(--blue)); }
.hub:nth-child(2) { --c: var(--green); }
.proof { background: var(--white); }
.proof-item b::after { content: ""; display: block; width: 22px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--c, var(--blue)); }
.proof-item:nth-child(1) { --c: var(--blue); }
.proof-item:nth-child(2) { --c: var(--green); }
.proof-item:nth-child(4) { --c: var(--orange); }
.proof-item:nth-child(5) { --c: var(--red); }
