:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #132033;
  --muted: #637084;
  --line: #e5ebf3;
  --blue: #0c9bd8;
  --blue-dark: #087aad;
  --navy: #0c1b2d;
  --shadow: 0 22px 60px rgba(11, 31, 54, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand img { width: 104px; height: auto; }
.main-nav { display: flex; gap: 24px; align-items: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .main-nav .active { color: var(--blue-dark); }

.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 80% 10%, rgba(12,155,216,0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #f4f8fc);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
}
h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -0.055em; color: var(--navy); }
.lead { font-size: 20px; color: var(--muted); margin: 26px 0 32px; max-width: 680px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 14px 28px rgba(12,155,216,0.25); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.hero-card { background: #05070b; padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.testimonial-section, .context-section, .cta-section { padding: 80px 0; }
.section-heading { text-align: center; margin-bottom: 34px; }
.section-heading h2, .context-section h2, .cta-card h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; color: var(--navy); }
.testimonial-card {
  display: grid;
  grid-template-columns: 330px 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.institution-panel {
  width: 320px;
  background: #f5f8fc;
  padding: 50px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.institution-logo {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 30px;
  display: block;
  background: transparent;
  padding: 0;
  border-radius: 0;
  max-height: none;
  object-fit: contain;
}
.institution-logo[src$="university-glasgow.png"] { background: #fff; }
.institution-fallback { font-size: 22px; font-weight: 800; margin: 8px 0 0; }
.institution-note {color: #5b6b84;; font-size: 14px; margin: 8px 0 0; }
.quote-panel { padding: 50px; position: relative; }
.quote-mark { font-size: 110px; line-height: 1; color: rgba(12,155,216,.18); font-weight: 800; height: 64px; }
blockquote {
  margin: 0 0 30px;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--navy);
}
.author { display: grid; gap: 4px; color: var(--muted); }
.author strong { color: var(--ink); font-size: 18px; }
.reference-card {
  margin: 28px auto 0;
  background: #eef8fd;
  border: 1px solid #cdeefd;
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
}
.reference-card h3 { margin: 0 0 6px; font-size: 22px; color: var(--navy); }
.reference-card p { margin: 0; color: var(--muted); }
.notre-dame-context-card { grid-template-columns: 1fr; }
.notre-dame-context-card .feedback-note {
  margin-top: 18px;
  color: var(--blue-dark);
  font-weight: 700;
}

.context-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; }
.context-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-card { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #fff; }
.mini-card h3 { margin: 0 0 10px; color: var(--navy); line-height: 1.2; }
.mini-card p { margin: 0; color: var(--muted); font-size: 15px; }

.cta-card {
  background: linear-gradient(135deg, #0c1b2d, #0b4b72);
  color: #fff;
  border-radius: var(--radius);
  padding: 52px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-card h2 { color: #fff; }
.cta-card p { margin: 16px auto 26px; max-width: 680px; color: rgba(255,255,255,.78); font-size: 18px; }
.site-footer { background: #081522; color: rgba(255,255,255,.72); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #fff; font-weight: 700; }

@media (max-width: 900px) {
  .hero-grid, .testimonial-card, .context-grid { grid-template-columns: 1fr; }
  .context-cards { grid-template-columns: 1fr; }
  .reference-card { grid-template-columns: 1fr; text-align: center; }
  .main-nav { display: none; }
  .quote-panel { padding: 34px; }
  .institution-panel { min-height: auto; }
  .notre-dame-testimonial .institution-panel { width: 100%; }
  .cta-card { padding: 36px 24px; }
}
@media (max-width: 520px) {
  .notre-dame-section .container { width: min(100% - 24px, 1120px); }
  .notre-dame-testimonial .institution-panel,
  .notre-dame-testimonial .quote-panel { padding: 28px 22px; }
  .notre-dame-testimonial blockquote { font-size: 22px; }
  .notre-dame-section .reference-card { padding: 24px 20px; }
}
.context-section .lead {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.small-note {
  text-align: center;
  max-width: 850px;
  margin: 20px auto 0 auto;
}
