/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

/* ===== Base ===== */
body {
  font-family: "Inter", sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.05;
}

p { max-width: 65ch; }
p.wide { max-width: none; }

/* ===== Layout ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section { padding: 96px 0; }
@media (min-width: 1024px) { .section { padding: 160px 0; } }

.section-alt { background: #f5f5f5; }
.section-dark { background: #000; color: #fff; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}
@media (max-width: 1023px) { .grid-12 { grid-template-columns: 1fr; gap: 48px; } }

@media (min-width: 1024px) {
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
  .col-start-3 { grid-column-start: 3; }
  .col-start-7 { grid-column-start: 7; }
  .col-start-8 { grid-column-start: 8; }
  .col-start-9 { grid-column-start: 9; }
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 767px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* ===== Typography ===== */
.editorial-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 600;
}

.text-muted { color: #666; }
.text-muted-dark { color: rgba(255,255,255,0.6); }

.max-w-md { max-width: 32rem; }
.max-w-lg { max-width: 40rem; }
.max-w-sm { max-width: 24rem; }

.uppercase { text-transform: uppercase; }

.h1-hero {
  font-size: 44px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .h1-hero { font-size: 72px; } }
@media (min-width: 1024px) { .h1-hero { font-size: 96px; } }

.h1-page {
  font-size: 40px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .h1-page { font-size: 60px; } }
@media (min-width: 1024px) { .h1-page { font-size: 72px; } }

.h2-lg {
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
@media (min-width: 1024px) { .h2-lg { font-size: 48px; } }

.h2-md { font-size: 24px; text-transform: uppercase; margin-bottom: 32px; }
@media (min-width: 768px) { .h2-md { font-size: 30px; } }

.h3-sm { font-size: 20px; text-transform: uppercase; margin-bottom: 16px; }

.stat-number {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}
@media (min-width: 1024px) { .stat-number { font-size: 56px; } }

/* ===== Header ===== */
.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
  position: relative;
}
@media (min-width: 1024px) { .header-inner { padding: 48px 0; } }

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.7; }
@media (min-width: 1024px) { .logo { font-size: 36px; } }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }
@media (min-width: 1024px) { .nav-desktop { gap: 48px; } }

.nav-desktop a {
  color: #666;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: #000; }
.nav-desktop a.active {
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 4px;
}

.nav-dot {
  width: 4px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 50%;
}

.menu-btn {
  display: block;
  position: absolute;
  top: 32px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
@media (min-width: 768px) { .menu-btn { display: none; } }

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}
.mobile-menu.open { display: block; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
  gap: 24px;
}
.mobile-menu a { color: #666; }
.mobile-menu a.active { color: #000; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* ===== Footer ===== */
.site-footer { background: #000; color: #fff; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-inner { padding: 80px 0; }
@media (min-width: 1024px) { .footer-inner { padding: 128px 0; } }

.footer-brand { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 32px; }
.footer-tagline { color: rgba(255,255,255,0.6); max-width: 24rem; margin-bottom: 32px; line-height: 2; }
.footer-social { display: flex; gap: 24px; color: rgba(255,255,255,0.6); }
.footer-social a:hover { color: #fff; }

.footer-heading { color: rgba(255,255,255,0.4); margin-bottom: 32px; }
.footer-nav { display: flex; flex-direction: column; gap: 16px; }
.footer-nav a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }

.footer-form { display: flex; flex-direction: column; gap: 16px; }
.footer-form input {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.footer-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-form input:focus { outline: none; border-color: #fff; }
.footer-form button {
  align-self: flex-start;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}
.footer-form button:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 96px;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom-links { display: flex; gap: 32px; color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: #fff; }

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding-bottom: 128px; } }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(0.75); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-cta-row { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 640px) { .hero-cta-row { flex-direction: row; align-items: center; } }
.hero-cta-row a.explore {
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 4px;
  align-self: flex-start;
}
.hero-cta-row a.explore:hover { color: rgba(255,255,255,0.7); }

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Images / cards ===== */
.img-frame { position: relative; overflow: hidden; background: #f5f5f5; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-3-4 { aspect-ratio: 3 / 4; }

/* ===== Service item rows ===== */
.services-list { border-bottom: 1px solid #000; }
.service-row {
  border-top: 1px solid #000;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .service-row { grid-template-columns: repeat(12, 1fr); gap: 64px; padding: 64px 0; } }
.service-row .service-num { display: block; margin-bottom: 16px; }
.service-row-left { grid-column: span 4; }
.service-row-right { grid-column: span 8; }
.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .service-features { grid-template-columns: repeat(2, 1fr); } }
.service-features li { display: flex; align-items: center; gap: 16px; color: #666; }
.service-features li .dash { width: 16px; height: 1px; background: rgba(0,0,0,0.2); flex-shrink: 0; }

/* ===== University panels ===== */
.uni-panel-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f5f5;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uni-panel-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.uni-panel-initials {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(102,102,102,0.4);
}
.uni-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.uni-stats .value { color: #000; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.uni-specialisms li { display: flex; align-items: center; gap: 12px; color: #666; margin-bottom: 8px; }
.uni-specialisms .dash { width: 12px; height: 1px; background: rgba(0,0,0,0.2); flex-shrink: 0; }

/* ===== CTA (contact-style buttons) ===== */
.btn-dark {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 20px 48px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-dark:hover { background: rgba(0,0,0,0.8); }
.btn-dark:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Forms ===== */
.form-group { margin-bottom: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.form-stack { display: flex; flex-direction: column; gap: 48px; }

label.field-label { display: block; margin-bottom: 16px; }
.field-input {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  color: #000;
}
.field-input:focus { outline: none; border-color: #000; }
select.field-input { text-transform: uppercase; cursor: pointer; }
textarea.field-input { resize: none; }

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 420px;
}
.toast {
  background: #000;
  color: #fff;
  padding: 16px 24px;
  font-size: 14px;
  text-align: center;
  animation: toast-in 0.25s ease;
}
.toast.error { background: #b91c1c; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Prose (sustainability / privacy pages) ===== */
.prose-col {
  max-width: 780px;
}
@media (min-width: 1024px) { .prose-col { grid-column: 3 / span 8; } }
.prose-col h2 { font-size: 24px; text-transform: uppercase; margin: 48px 0 32px; }
.prose-col h2:first-child { margin-top: 0; }
@media (min-width: 768px) { .prose-col h2 { font-size: 30px; } }
.prose-col h3 { font-size: 20px; text-transform: uppercase; margin: 32px 0 16px; }
.prose-col p { max-width: none; margin-bottom: 24px; font-size: 18px; line-height: 1.75; }
.prose-col ul { list-style: disc; padding-left: 24px; margin-bottom: 24px; }
.prose-col li { margin-bottom: 8px; font-size: 18px; }
.prose-col section { margin-bottom: 64px; }

.italic { font-style: italic; }
.border-top-thin { border-top: 1px solid rgba(0,0,0,0.1); }
