/* =========================================================
   St. Clair Institute — postgraduate studies
   Paper and Oxford navy, Cormorant headings, photography first.
   ========================================================= */

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --white: #ffffff;
  --navy: #0f1b3d;
  --navy-2: #172752;
  --text: #1b1f2a;
  --text-2: #565c69;
  --text-3: #8a8f99;
  --line: rgba(27, 31, 42, 0.12);
  --light: #eef0f5;
  --light-2: #aab2c5;
  --line-light: rgba(238, 240, 245, 0.16);
  --accent: #a1782e;

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.kicker { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.display, .hero-title, h3 { text-wrap: balance; }
.display { margin: 10px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -0.01em; }
.muted { color: var(--text-2); }

.sec { padding-block: clamp(64px, 6vw, 96px); }
.navy { background: var(--navy); color: var(--light); }
.navy .kicker { color: #d2b073; }
.navy .muted { color: var(--light-2); }
.tint { background: var(--paper-2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(28px, 3vw, 44px); }
.sec-head .muted { flex: 0 1 46ch; margin: 0; font-size: 15.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 1px solid transparent; border-radius: 6px; background: none; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper-2); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-outline { border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* One grade for every photo on the site, portraits included: muted, warm colour */
.hero-img, .prog img, .why-photo img, .outcomes-photo img, .campus-photo img, .person img, .quote img { filter: saturate(0.6) sepia(0.14) contrast(1.02); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; border-bottom: 1px solid transparent; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 1280px; margin-inline: auto; padding: 12px var(--gutter); }
.nav-end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.nav-toggle { display: none; place-items: center; align-content: center; gap: 6px; width: 42px; height: 42px; padding: 0; border: 1px solid currentColor; border-radius: 8px; background: none; cursor: pointer; opacity: 0.9; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-sheet { display: none; }
.nav.is-solid { background: rgba(247, 245, 240, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text); border-color: var(--line); }
.crest { display: flex; align-items: center; gap: 12px; }
.crest .mark { width: 36px; height: 36px; flex: none; }
.crest span { display: flex; flex-direction: column; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.05; }
.crest small { margin-top: 2px; font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; opacity: 0.7; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; }
.nav-links a { opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-cta { padding: 10px 20px; font-size: 14px; }
.nav:not(.is-solid) .nav-cta { background: #fff; color: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 42, 0.88) 0%, rgba(10, 18, 42, 0.62) 42%, rgba(10, 18, 42, 0.12) 78%), linear-gradient(0deg, rgba(10, 18, 42, 0.45), transparent 40%); }
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 40px; }
.hero .kicker { color: #e2c48c; }
.hero-title { margin: 16px 0 0; max-width: 17ch; font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 5.2vw, 84px); line-height: 1; letter-spacing: -0.015em; }
.hero-lede { margin: 22px 0 0; max-width: 48ch; font-size: 17.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; gap: clamp(28px, 3.5vw, 56px); margin: 40px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.25); max-width: 620px; font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.accred { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.hero-facts b { display: block; margin-bottom: 2px; font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.1; color: #fff; }

/* ---------- Programmes ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prog { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.prog:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 27, 61, 0.1); }
.prog img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prog-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.prog-tag { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.prog h3 { margin: 6px 0 0; font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.1; }
.prog-body > p:not(.prog-tag) { margin: 10px 0 0; font-size: 14.5px; color: var(--text-2); }
.prog dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 0; padding-top: 18px; }
.prog dl div { padding-top: 12px; border-top: 1px solid var(--line); }
.prog dt { font-size: 12px; color: var(--text-3); }
.prog dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; }
.prog-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.link-sm { font-size: 13.5px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.link-sm:hover { text-decoration-color: var(--navy); }
.link-sm[aria-disabled="true"] { cursor: default; color: var(--text-3); text-decoration-style: dotted; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.why-photo { margin: 0; height: clamp(380px, 64vh, 600px); overflow: hidden; border-radius: 10px; }
.why-photo img, .outcomes-photo img, .campus-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; margin: 36px 0 0; padding: 0; list-style: none; }
.why-list li { padding-top: 18px; border-top: 1px solid var(--line-light); }
.why-list b { display: block; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; }
.why-list span { display: block; margin-top: 8px; font-size: 15px; color: var(--light-2); }

/* ---------- Admissions ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; }
.steps h3 { margin: 14px 0 0; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; }
.steps p { margin: 8px 0 0; font-size: 14.5px; color: var(--text-2); }
.step-date { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.dates { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dates-title { margin: 6px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.dates table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dates td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.dates td:first-child { width: 160px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Faculty ---------- */
/* the seminar blackboard: a real board photo; chalk, dust and the eraser are drawn over it */
.board-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.board-fig { position: relative; margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 1600 / 1179; background: #3d4a40 url("img/blackboard.jpg") center / cover; box-shadow: 0 24px 50px -28px rgba(15, 27, 61, 0.55); }
.board { display: block; width: 100%; height: 100%; cursor: none; touch-action: none; -webkit-user-select: none; user-select: none; }
.board-hint { position: absolute; left: 50%; top: 14px; margin: 0; padding: 7px 16px; border-radius: 999px; background: rgba(247, 245, 240, 0.92); color: var(--navy); font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none; transform: translateX(-50%); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.board-hint.is-gone { opacity: 0; transform: translate(-50%, -6px); }
.board-title { margin: 8px 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.board-copy .muted { margin: 12px 0 20px; font-size: 15px; }
/* the library after hours: a WebGL lamp over the photo */
.why-photo { position: relative; }
.lamp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: none; }
.lamp-hint { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 9px; margin: 0; padding: 7px 14px 7px 11px; border-radius: 999px; background: rgba(10, 18, 42, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #f3e6cc; font-size: 13px; pointer-events: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); z-index: 1; }
.lamp-hint.is-gone { opacity: 0; transform: translateY(6px); }
.lamp-dot { width: 9px; height: 9px; border-radius: 50%; background: #ffd79a; box-shadow: 0 0 0 4px rgba(255, 215, 154, 0.22); }
.lamp-touch { display: none; }
@media (hover: none) { .lamp-fine { display: none; } .lamp-touch { display: inline; } .lamp-canvas { cursor: auto; } }
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 40%; border-radius: 10px; background: var(--paper-2); }
.person h3 { margin: 16px 0 0; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.1; }
.person .role { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.person p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }

/* ---------- Outcomes (white, so the navy sections never sit back to back) ---------- */
.outcomes-sec { background: var(--white); color: var(--text); }
.outcomes-sec .stats div { border-top-color: var(--line); }
.outcomes-sec .stats dd { color: var(--text-2); }
.outcomes-sec .stats dt { color: var(--navy); }
.outcomes-sec .quote { background: var(--paper); border: 1px solid var(--line); }
.outcomes-sec .quote figcaption { color: var(--text-2); }
.outcomes-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 0; }
.stats div { padding-top: 16px; border-top: 1px solid var(--line-light); }
.stats dt { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1; }
.stats dd { margin: 8px 0 0; font-size: 14px; color: var(--light-2); }
.quote { display: flex; gap: 20px; align-items: flex-start; margin: 36px 0 0; padding: 24px; border-radius: 10px; background: var(--navy-2); }
.quote img { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.35; }
.quote figcaption { margin-top: 10px; font-size: 13.5px; color: var(--light-2); }
.outcomes-photo { margin: 0; height: clamp(380px, 60vh, 560px); overflow: hidden; border-radius: 10px; }
.outcomes-photo img { object-position: 50% 30%; }
.recruiters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.recruiters p { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.recruiters ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.recruiters li { display: grid; place-items: center; min-width: 150px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: #7a7f89; filter: grayscale(1); }

/* ---------- Campus + FAQ ---------- */
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.campus-photo { margin: 24px 0 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; }
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0 0; }
.visit dt { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.visit dd { margin: 6px 0 0; font-size: 15px; }
.visit a { color: var(--navy); font-weight: 600; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 16.5px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--text-3); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 18px; max-width: 56ch; font-size: 15px; color: var(--text-2); }

/* ---------- Apply ---------- */
.apply-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.apply-grid .muted { margin: 16px 0 0; max-width: 42ch; }
.contact { display: grid; gap: 18px; margin: 32px 0 0; }
.contact dt { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--light-2); }
.contact dd { margin: 4px 0 0; font-size: 15.5px; line-height: 1.6; }
.contact a:hover { color: #fff; text-decoration: underline; }
.apply-form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: 12px; background: var(--navy-2); border: 1px solid var(--line-light); }
.apply-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 500; color: var(--light-2); }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-light); border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: #fff; outline: none; transition: border-color 0.2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--light-2) 50%), linear-gradient(135deg, var(--light-2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--text); }
.field input::placeholder { color: rgba(238, 240, 245, 0.4); }
.field input:focus, .field select:focus { border-color: #d2b073; }
.field.is-invalid input { border-color: #ef8a7a; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--light-2); cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; accent-color: #d2b073; }
.prog-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 10px 14px; border: 1px solid rgba(210, 176, 115, 0.45); border-radius: 8px; background: rgba(210, 176, 115, 0.1); font-size: 14.5px; color: #fff; }
.prog-chip span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #d2b073; }
.prog-chip[hidden] { display: none; }
/* Ink signature (optional): a card of real paper; the ink canvas multiplies over it, a sheen canvas sits on top while wet */
.sig { display: grid; gap: 10px; }
.sig-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sig-head > span:first-child { font-size: 13px; font-weight: 500; color: var(--light-2); }
.sig-head em { font-style: normal; opacity: 0.75; }
.sig-actions { display: flex; gap: 18px; }
.sig-act { padding: 0; border: 0; background: none; font-size: 13px; font-weight: 500; color: #d2b073; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sig-act:hover { color: #fff; }
.sig-act[hidden] { display: none; }
.sig-pad { --sig-ink: 30, 38, 66; position: relative; height: 196px; overflow: hidden; border-radius: 4px; background: #f1ebde url("img/paper.jpg") center / cover; background-blend-mode: multiply; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 30px -12px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25); cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; }
.sig-pad::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(120, 100, 70, 0.16); border-radius: 2px; pointer-events: none; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; transition: opacity 0.7s var(--ease); }
.sig-pad .sig-sheen { mix-blend-mode: normal; pointer-events: none; }
.sig-pad.is-fading #sigInk, .sig-pad.is-fading .sig-sheen { opacity: 0; }
.sig-x { position: absolute; left: 24px; bottom: 50px; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; color: rgba(var(--sig-ink), 0.55); pointer-events: none; }
.sig-line { position: absolute; left: 24px; right: 196px; bottom: 48px; height: 1px; background: rgba(var(--sig-ink), 0.42); pointer-events: none; }
.sig-cap, .sig-date i { position: absolute; font-family: var(--sans, inherit); font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(var(--sig-ink), 0.55); pointer-events: none; }
.sig-cap { left: 24px; bottom: 28px; }
.sig-date { position: absolute; right: 24px; bottom: 48px; width: 148px; padding-bottom: 3px; border-bottom: 1px solid rgba(var(--sig-ink), 0.42); pointer-events: none; }
.sig-date b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.1; color: rgb(var(--sig-ink)); white-space: nowrap; }
.sig-date i { left: 0; top: calc(100% + 8px); }
.sig-hint { position: absolute; left: 50px; bottom: 58px; margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 19px; color: rgba(var(--sig-ink), 0.5); pointer-events: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.sig-hint.is-gone { opacity: 0; transform: translateY(4px); }
.sig-hint.is-invite { color: rgba(var(--sig-ink), 0.66); }
.sig-hint.is-invite::after { content: ""; display: inline-block; width: 26px; height: 1px; margin: 0 0 5px 10px; background: currentColor; transform-origin: left; animation: sigDash 1.8s var(--ease) 2; }
@keyframes sigDash { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
/* the institute seal, blind-embossed: paper-coloured relief, lit from the top left */
.sig-seal { position: absolute; top: 16px; right: 22px; width: 70px; height: 70px; opacity: 0; transform: scale(1.14); pointer-events: none; }
.sig-seal.is-pressed { animation: sigPress 0.9s var(--ease) forwards; }
@keyframes sigPress { 0% { opacity: 0; transform: scale(1.14); } 45% { opacity: 1; transform: scale(0.97); } 100% { opacity: 1; transform: scale(1); } }
/* blotter: a rocker of blotting paper that presses over the wet ink and lifts away with a faint mirrored imprint */
.sig-blotter { position: absolute; left: 14%; right: 14%; top: 12px; bottom: 12px; border-radius: 10px 10px 6px 6px; background: #e8ddd0 url("img/paper.jpg") center / 260% auto; background-blend-mode: multiply; box-shadow: 0 18px 30px -10px rgba(20, 20, 40, 0.45); opacity: 0; transform: translateY(-120%) rotate(-2deg); pointer-events: none; }
.sig-blotter canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; opacity: 0.55; }
.sig-blotter.is-on { animation: sigBlot 1.25s var(--ease) forwards; }
@keyframes sigBlot { 0% { opacity: 1; transform: translateY(-120%) rotate(-2deg); } 32% { transform: translateY(0) rotate(0); box-shadow: 0 2px 4px rgba(20, 20, 40, 0.25); } 55% { transform: translateY(0) rotate(0.6deg); box-shadow: 0 2px 4px rgba(20, 20, 40, 0.25); } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(-112%) rotate(2deg); } }
/* the fountain-pen nib that stands in for the cursor (fine pointers) and writes the demo */
.sig-nib { position: absolute; left: 0; top: 0; width: 30px; height: 50px; opacity: 0; transform-origin: 15px 50px; filter: drop-shadow(3px 4px 2.5px rgba(20, 24, 40, 0.3)); pointer-events: none; transition: opacity 0.25s; will-change: transform; }
.sig-nib.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .sig-pad.has-nib { cursor: none; } }
.apply-form .btn { justify-self: start; }
.form-note { margin: -4px 0 0; font-size: 13px; color: var(--light-2); }
.done-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 34px; }

/* ---------- Footer ---------- */
.footer { padding-block: 56px 36px; background: #0a1430; color: var(--light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--light-2); }
.crest-foot { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 26px !important; font-weight: 600; line-height: 1.2 !important; color: #fff !important; }
.crest-foot .mark { width: 36px; height: 36px; flex: none; }
.footer .muted { margin-top: 10px; max-width: 34ch; }
.footer a:hover { color: #fff; }
.f-h { margin-bottom: 8px !important; font-size: 12px !important; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #d2b073 !important; }
.footer-legal { margin-top: 40px !important; font-size: 12px !important; opacity: 0.75; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .prog-grid, .faculty-grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-sheet { display: block; max-height: 0; overflow: hidden; padding-inline: var(--gutter); transition: max-height 0.4s var(--ease); }
  .nav.is-open .nav-sheet { max-height: 80vh; max-height: 80svh; }
  .nav-sheet nav { display: grid; border-top: 1px solid var(--line); }
  .nav-sheet nav a { padding: 13px 0; font-family: var(--serif); font-size: 24px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0 22px; }
  .recruiters { margin-top: 36px; }
  .sec-head { flex-wrap: wrap; }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 18, 42, 0.72), rgba(10, 18, 42, 0.88)); }
  .why-grid, .outcomes-grid, .campus-grid, .apply-grid, .board-wrap { grid-template-columns: 1fr; }
  .why-photo, .outcomes-photo { height: 320px; }
  .dates { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .crest span { font-size: 20px; }
  .crest small { display: none; }
  .nav-cta { display: none; }
  .sheet-actions { grid-template-columns: 1fr; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 18px; }
  .hero-facts li { flex: 1; font-size: 12.5px; line-height: 1.4; }
  .hero-facts b { font-size: 26px; }
  .faculty-grid, .steps, .why-list, .stats, .visit { grid-template-columns: 1fr; }
  .prog-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .prog-grid::-webkit-scrollbar { display: none; }
  .prog { flex: 0 0 80%; scroll-snap-align: start; }
  .prog:hover { transform: none; box-shadow: none; }
  .prog-body { padding: 16px 18px 18px; }
  .prog h3 { font-size: 24px; }
  .prog-body > p:not(.prog-tag) { font-size: 14px; }
  .recruiters ul { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .recruiters li { min-width: 0; font-size: 13.5px; }
  .faculty-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .person h3 { font-size: 20px; }
  .quote { flex-direction: column; }
  .dates td:first-child { width: 120px; }
  .apply-form .row { grid-template-columns: 1fr; }
  .sig-pad { height: 176px; }
  .board-hint { top: 10px; font-size: 12px; padding: 6px 12px; }
  .lamp-hint { left: 10px; bottom: 10px; font-size: 12px; }
  .sig-x { left: 16px; bottom: 44px; font-size: 19px; }
  .sig-line { left: 16px; right: 122px; bottom: 42px; }
  .sig-cap { left: 16px; bottom: 22px; font-size: 9px; }
  .sig-date { right: 16px; bottom: 42px; width: 92px; }
  .sig-date b { font-size: 15.5px; }
  .sig-date i { font-size: 9px; top: calc(100% + 6px); }
  .sig-hint { left: 38px; bottom: 50px; font-size: 16.5px; }
  .sig-hint.is-invite::after { display: none; }
  .sig-seal { top: 12px; right: 14px; width: 54px; height: 54px; }
  .sig-blotter { left: 8%; right: 8%; }
  .footer-grid { grid-template-columns: 1fr; }
}
.mobile-bar { display: none; }
@media (max-width: 600px) {
  body { padding-bottom: 76px; }
  .mobile-bar { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(247, 245, 240, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform 0.35s var(--ease); }
  .mobile-bar .btn { padding: 12px 14px; }
  .mobile-bar .btn-outline { background: var(--white); }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  /* admissions steps as a tight vertical timeline */
  .steps { position: relative; gap: 0; }
  .steps::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
  .steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; padding: 0 0 18px; border: 0; border-radius: 0; background: none; }
  .steps li:last-child { padding-bottom: 0; }
  .step-num { grid-row: span 3; width: 32px; height: 32px; font-size: 14px; position: relative; }
  .steps h3 { margin: 2px 0 0; font-size: 21px; }
  .steps p { margin: 2px 0 0; font-size: 14px; }
  .step-date { grid-column: 2; margin: 0; padding-top: 4px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sig-seal.is-pressed { animation: none; opacity: 1; transform: none; }
  .sig-hint.is-invite::after { animation: none; }
}

/* Even-height numbers in the serif (Cormorant defaults to old-style figures) */
.display, .hero-title, .hero-facts b, .stats dt, .prog h3, .steps h3, .dates-title, .crest span, .crest-foot, .why-list b, .person h3, .quote blockquote, .visit, .recruiters li, .done-title, .sig-date b { font-variant-numeric: lining-nums; }

/* ===== Round 3 ===== */
/* brochure buttons look like the old text links */
button.link-sm { padding: 10px 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
/* employer wordmarks: one muted ink, no boxes */
.recruiters ul.logo-row { gap: 10px 34px; align-items: center; }
.recruiters .logo-row li { min-width: 0; padding: 0; border: 0; background: none; filter: none; display: block; }
.logo-row svg { display: block; width: 138px; height: 32px; fill: #6f7480; stroke: #6f7480; font-family: Inter, Arial, sans-serif; opacity: 0.85; transition: opacity 0.3s; }
.logo-row svg text { stroke: none; }
.logo-row li:hover svg { opacity: 1; }
/* brochure dialog */
.bro-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 12px; background: var(--white, #fff); color: var(--text, #14182b); box-shadow: 0 30px 80px rgba(10, 14, 30, 0.35); }
.bro-dialog::backdrop { background: rgba(10, 16, 36, 0.55); }
.bro-form { position: relative; display: grid; gap: 14px; padding: 30px 28px 26px; }
.bro-form > div { display: grid; gap: 14px; }
.bro-h { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; }
.bro-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2, #4a5063); }
.bro-form .field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line, #d9d6cf); border-radius: 8px; font: inherit; background: #fff; color: inherit; }
.bro-form .field span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.bro-err { min-height: 1em; margin: -6px 0 0; font-size: 13px; color: #b3261e; }
.bro-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; color: inherit; cursor: pointer; }
/* signature card: Blot / Clear get 40px hit areas; small print no smaller than 12px */
.sig-act { min-height: 40px; min-width: 40px; padding: 0 6px; margin: -10px -6px; }
.sig-cap, .sig-date i { font-size: 12px; letter-spacing: 0.12em; }
.crest small, .prog-chip span { font-size: 12px; }
@media (max-width: 760px) {
  .sig-cap, .sig-date i { font-size: 12px; letter-spacing: 0.1em; }
  .logo-row svg { width: 100%; max-width: 150px; }
}
.bro-form .field span { color: #2a3048; }
.bro-form .field input::placeholder { color: #8a8fa0; }
.bro-form .eyebrow { color: #8a6a2a; }

/* =========================================================
   MOBILE POLISH
   ========================================================= */
/* the open menu locks the page behind it */
html.menu-open, html.menu-open body { overflow: hidden; }
@media (max-width: 960px) {
  .nav.is-open .nav-sheet { overflow-y: auto; overscroll-behavior: contain; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-sheet nav a { display: flex; align-items: center; min-height: 52px; }
  .sheet-actions .btn { min-height: 48px; }
}

/* touch screens: no hover lift that sticks after a tap, no hidden cursor over the board */
@media (hover: none) {
  .prog:hover { transform: none; box-shadow: none; }
  .btn-navy:hover { background: var(--navy); }
  .btn-light:hover { background: #fff; }
  .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: none; }
  .btn-outline:hover { border-color: var(--line); }
  .logo-row li:hover svg { opacity: 0.85; }
  .board { cursor: auto; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .sec { padding-block: 60px; }
  .display { font-size: clamp(32px, 9vw, 40px); }
  .sec-head { gap: 14px; }
  .sec-head .muted { font-size: 15px; }

  /* hero: tighter rhythm so the key facts sit higher on the first screen */
  .hero { align-items: flex-end; }
  .hero-inner { padding-top: 88px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }   /* clears the fixed mobile bar */
  .hero-title { margin-top: 12px; font-size: clamp(38px, 11.4vw, 50px); line-height: 1.02; }
  .hero-lede { margin-top: 16px; font-size: 16px; line-height: 1.6; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .hero-actions .btn { min-height: 50px; }
  .hero-facts { margin-top: 28px; padding-top: 18px; gap: 14px; }
  .hero-facts b { font-size: clamp(22px, 6.6vw, 26px); }
  .hero-facts li { min-width: 0; }
  .accred { font-size: 12.5px; line-height: 1.5; }

  /* programme cards: a clear peek of the next card, buttons at full tap height */
  .prog { flex-basis: min(84%, 320px); }
  .prog-body { padding: 16px 18px 14px; }
  .prog-cta { margin-top: 14px; }
  .prog-cta .btn-sm { min-height: 44px; padding-inline: 22px; }
  button.link-sm { min-height: 44px; padding: 0 4px; }

  /* photos: fixed proportions instead of fixed heights */
  .why-photo { height: auto; aspect-ratio: 4 / 3; }
  .outcomes-photo { height: auto; aspect-ratio: 4 / 3; }
  .campus-photo { aspect-ratio: 3 / 2; }
  .why-list { gap: 22px; margin-top: 28px; }
  .why-list b { font-size: 22px; }

  /* key dates read as two tidy columns */
  .dates-title { font-size: 21px; }
  .dates table { font-size: 14.5px; }
  .dates td:first-child { width: 112px; padding-right: 12px; vertical-align: top; }

  /* faculty: compact two-up cards */
  .faculty-grid { gap: 22px 14px; }
  .person h3 { margin-top: 12px; font-size: 19px; }
  .person .role { font-size: 12.5px; line-height: 1.35; }
  .person p { font-size: 13.5px; line-height: 1.5; }
  .board-wrap { gap: 22px; margin-top: 44px; }
  .board-copy .btn { min-height: 44px; }

  /* outcomes */
  .stats { gap: 0; margin-top: 24px; }
  .stats div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 12px; padding: 14px 0; }
  .stats dt { font-size: 36px; }
  .stats dd { margin: 0; }
  .quote { gap: 14px; margin-top: 28px; padding: 20px; }
  .quote img { width: 60px; height: 60px; }
  .quote blockquote { font-size: 21px; }
  .recruiters { margin-top: 32px; gap: 14px; }
  .recruiters ul.logo-row { gap: 14px 20px; }

  .faq summary { min-height: 56px; padding: 14px 0; font-size: 16px; }

  /* form: 16px fields so iOS never zooms; full-width submit */
  .field input, .field select, .bro-form .field input { font-size: 16px; min-height: 48px; }
  .apply-form { padding: 22px 18px; gap: 16px; }
  .apply-form .btn { justify-self: stretch; min-height: 50px; }
  .bro-form { padding: 28px 20px 22px; }

  /* footer: brand on top, the three short lists in a tidy stack */
  .footer { padding-block: 48px 28px; }
  .footer-grid { gap: 24px; }
  .footer p { line-height: 1.5; }
  .footer-legal { margin-top: 28px !important; }
  /* the mobile bar hides before the footer, so the page needs no extra tail */
  body { padding-bottom: 0; }
  .mobile-bar .btn { min-height: 48px; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .crest span { font-size: 18px; }
  .hero-facts { gap: 10px; }
  .hero-facts li { font-size: 12px; }
  .faculty-grid { gap: 20px 12px; }
  .stats div { grid-template-columns: 84px 1fr; }
}

/* phones and tablets: links stacked in text blocks get a full-height tap area */
@media (max-width: 960px) {
  .visit a, .contact a, .footer p a { display: inline-flex; align-items: center; min-height: 44px; }
  .visit dd, .contact dd { line-height: 1.55; }
  .check { min-height: 44px; }
  .check input { width: 22px; height: 22px; }
}

/* tablets: two-up layouts keep sensible proportions */
@media (min-width: 601px) and (max-width: 960px) {
  .why-photo, .outcomes-photo { height: auto; aspect-ratio: 16 / 9; }
  .board-wrap { gap: 28px; }
  .apply-form .row { grid-template-columns: 1fr 1fr; }
  .person img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
  .field input, .field select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .prog, .nav, .nav-sheet, .mobile-bar, .lamp-hint, .board-hint, .sig-hint, .faq summary::after { transition: none !important; }
  .sig-blotter.is-on { animation: none; }
}

/* =========================================================
   DESIGN POLISH (pass 2)
   ========================================================= */
/* typography: balanced headings, no single-word last lines in running text */
h1, h2, h3, .display, .board-title, .bro-h, .faq summary, .quote blockquote { text-wrap: balance; }
p, dd, li, .why-list span, figcaption, .faq details p { text-wrap: pretty; }

/* hero: the three facts share the row evenly, so their labels wrap the same way */
.hero-facts { max-width: 660px; }
.hero-facts li { flex: 1 1 0; min-width: 0; }

/* programme scroller dots (phones only) */
.prog-dots { display: none; }
@media (max-width: 600px) {
  .prog-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
  .prog-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(15, 27, 61, 0.2); transition: width 0.35s var(--ease), background 0.35s; }
  .prog-dots span.is-on { width: 20px; background: var(--navy); }
}

/* admissions timeline: each connector runs from one number to the next, never past the last */
@media (max-width: 600px) {
  .steps::before { content: none; }
  .steps li:not(:last-child)::before { content: ""; position: absolute; left: 15.5px; top: 40px; bottom: 6px; width: 1px; background: var(--line); }
  .dates { margin-top: 32px; padding-top: 24px; }
  .dates td { padding: 10px 0; }
}

/* faculty: names, roles and bios line up across each row */
@supports (grid-template-rows: subgrid) {
  .faculty-grid { row-gap: 0; }
  .person { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .person > * { align-self: start; }
}
@media (max-width: 700px) { .person > p:last-child { margin-bottom: 26px; } .faculty-grid { margin-bottom: -26px; } }
@media (min-width: 701px) and (max-width: 1100px) {
  .faculty-grid { grid-template-columns: repeat(4, 1fr); column-gap: 16px; }
  .person img { aspect-ratio: 1 / 1; object-position: 50% 35%; }
  .person h3 { font-size: 20px; }
  .person .role { font-size: 12.5px; line-height: 1.35; }
  .person p { font-size: 13.5px; line-height: 1.5; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .board-wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
  .board-copy .muted { font-size: 14.5px; }
}

/* outcomes */
@media (max-width: 600px) {
  .stats div { grid-template-columns: 104px 1fr; align-items: center; }
  .stats dd { line-height: 1.45; }
  /* testimonial: the quote leads, the student signs it off underneath */
  .quote { display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: 12px; row-gap: 16px; }
  .quote > div { display: contents; }
  .quote blockquote { grid-column: 1 / -1; grid-row: 1; font-size: 21px; }
  .quote img { grid-column: 1; grid-row: 2; width: 48px; height: 48px; }
  .quote figcaption { grid-column: 2; grid-row: 2; margin: 0; font-size: 13px; line-height: 1.45; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .outcomes-photo { aspect-ratio: 2 / 1; }
  .outcomes-photo img { object-position: 50% 35%; }
  .recruiters ul.logo-row { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 18px 24px; }
}
@media (min-width: 961px) {
  .recruiters ul.logo-row { flex: 1 1 100%; justify-content: space-between; }
}

/* campus + FAQ: a hairline between the two halves once they stack */
@media (max-width: 960px) {
  .campus-grid { gap: 0; }
  #faq { margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--line); }
}
@media (min-width: 601px) and (max-width: 960px) {
  .campus-photo { aspect-ratio: 2 / 1; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .visit { grid-template-columns: auto auto; justify-content: start; column-gap: clamp(32px, 4vw, 56px); }
}

/* apply: contact details as a hairline list, like the rest of the site */
.contact { gap: 0; }
.contact > div { padding: 14px 0; border-top: 1px solid var(--line-light); }
.contact > div:last-child { border-bottom: 1px solid var(--line-light); }
@media (min-width: 601px) and (max-width: 960px) {
  .apply-grid .muted { max-width: 56ch; }
  .contact { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
  .contact > div:last-child { border-bottom: 0; }
}
/* the open-day checkbox drawn in the form's own style instead of a bright native square */
.check input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; margin: 0; border: 1px solid rgba(238, 240, 245, 0.4); border-radius: 5px; background: rgba(255, 255, 255, 0.06); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.check input::after { content: ""; width: 6px; height: 11px; margin-top: -3px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.2s var(--ease); }
.check input:checked { background: #d2b073; border-color: #d2b073; }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible { outline: 2px solid #d2b073; outline-offset: 2px; }

/* brochure dialog: its label matches every other kicker on the site */
.bro-form .eyebrow { margin: 0 40px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.bro-err:empty { min-height: 0; margin: -14px 0 0; }

/* open mobile menu: a soft edge over the page beneath */
.nav.is-open { box-shadow: 0 24px 48px -24px rgba(15, 27, 61, 0.35); }

/* footer */
.footer-legal { padding-top: 24px; border-top: 1px solid var(--line-light); }
@media (min-width: 601px) and (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer .muted { max-width: 56ch; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-grid > div:nth-child(1) { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(2) { grid-column: 1; grid-row: 2; }
  .footer-grid > div:nth-child(4) { grid-column: 2; grid-row: 2; }
  .footer-grid > div:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .footer-legal { margin-top: 32px !important; }
}
/* footer links keep their 44px tap height but sit on the text line, so side-by-side columns start level */
@media (max-width: 960px) { .footer p a { align-items: flex-start; padding-top: 0; } }
@media (max-width: 960px) { #faq { margin-top: 40px; padding-top: 40px; } }
@media (max-width: 600px) { .sig-x { font-size: 24px; bottom: 42px; } }
.bro-form .eyebrow { text-wrap: balance; }
@media (min-width: 601px) and (max-width: 960px) { .recruiters ul.logo-row { justify-items: start; } }
