@import url("./design-tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(56px, 7vw, 92px); }

.bg-ink { background: var(--white); color: var(--ink); }
.bg-ink-2 { background: var(--soft-blue); color: var(--ink); }
.bg-ivory { background: var(--paper); }
.bg-paper { background: var(--white); }
.bg-sage { background: var(--soft-green); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--red));
}
.eyebrow.light { color: var(--blue); }
.display, h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.display {
  margin: 18px 0 28px;
  max-width: 940px;
  font-size: var(--display);
  line-height: .94;
  letter-spacing: -.045em;
}
h1 { font-size: var(--h1); line-height: .98; letter-spacing: -.04em; }
h2 { font-size: var(--h2); line-height: 1.05; letter-spacing: -.035em; }
h3 { font-size: var(--h3); line-height: 1.15; letter-spacing: -.02em; }
p { margin-top: 0; }
.lead { font-size: var(--body-lg); color: var(--muted); max-width: 650px; }
.bg-ink .lead, .bg-ink-2 .lead { color: var(--muted); }
.small { font-size: .84rem; }
.muted, .bg-ink .muted, .bg-ink-2 .muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25,59,107,.14); }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { border-color: var(--line); color: var(--navy); background: white; }
.btn-secondary:hover { border-color: var(--blue); }
.btn-dark { background: var(--green); color: white; }
.btn-ghost { border-color: var(--line); background: white; color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(5px); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219,227,238,.75);
  color: var(--ink);
}
.site-header.scrolled { box-shadow: 0 10px 34px rgba(38,64,98,.08); }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }
.logo {
  position: relative;
  color: var(--navy);
  font-size: .96rem;
  letter-spacing: .2em;
  font-weight: 900;
  padding-left: 24px;
}
.logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 18px;
  transform: translateY(-50%);
  border-left: 5px solid var(--blue);
  border-right: 5px solid var(--red);
  box-shadow: inset 4px 0 0 transparent;
}
.logo::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 4px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: var(--green);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #46556a;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta { margin-left: 2px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--navy);
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  margin: 4px auto;
}

.hero {
  min-height: 860px;
  padding-top: 150px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--white) 0 66%, var(--soft-blue) 66% 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  left: 6%;
  top: 128px;
  border-radius: 50%;
  background: var(--soft-red);
}
.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -120px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--soft-green);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}
.hero-copy p { max-width: 600px; color: var(--muted); font-size: var(--body-lg); }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 34px; }
.hero-note {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: .88rem;
}
.hero-note .line { width: 44px; height: 3px; border-radius: 99px; background: linear-gradient(90deg,var(--blue),var(--green),var(--red)); }
.hero-visual { position: relative; min-height: 620px; }
.hero-image {
  position: absolute;
  inset: 20px 20px 70px 50px;
  min-height: 0;
  border-radius: 36% 36% 18px 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}
.hero-image img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hero-image::after { display: none; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 120px;
  right: -10px;
  top: 0;
  border-radius: 24px;
  background: var(--blue);
  box-shadow: var(--shadow-small);
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 118px;
  height: 160px;
  left: 0;
  bottom: 20px;
  border-radius: 24px;
  background: var(--green);
  box-shadow: var(--shadow-small);
}
.hero-card {
  position: absolute;
  left: auto;
  right: 0;
  bottom: 0;
  width: min(320px, 78%);
  z-index: 1;
  padding: 24px;
  background: var(--red);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-small);
}
.hero-card p { margin-bottom: 10px; font-family: Georgia, serif; font-size: 1.18rem; line-height: 1.42; }
.hero-card strong { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }

.values-strip { border: 0; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.value-item {
  padding: 22px 18px;
  text-align: center;
  color: white;
  border: 0;
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 800;
}
.value-item:nth-child(1) { background: var(--blue); }
.value-item:nth-child(2) { background: var(--green); }
.value-item:nth-child(3) { background: var(--red); }
.value-item:nth-child(4) { background: var(--navy); }

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px, 9vw, 130px);
  align-items: start;
}
.sticky-copy { position: sticky; top: 130px; }
.about-panel {
  padding: clamp(34px, 5vw, 64px);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-small);
}
.about-panel p { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.58; }
.about-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 34px; }
.about-stat { padding: 20px; border: 0; border-radius: 16px; }
.about-stat:nth-child(1) { background: var(--soft-blue); }
.about-stat:nth-child(2) { background: var(--soft-green); }
.about-stat:nth-child(3) { background: var(--soft-red); }
.about-stat:nth-child(4) { background: #f1f3f7; }
.about-stat b { display:block; font-family: Georgia, serif; font-size: 1.55rem; letter-spacing: -.03em; }
.about-stat span { color: var(--muted); font-size: .84rem; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: clamp(40px, 5vw, 70px); }
.section-head h2 { max-width: 740px; margin-bottom: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card {
  min-height: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  padding: 22px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}
.service-card h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }

.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 100px); align-items: center; }
.approach-list { border: 0; display: grid; gap: 14px; }
.approach-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  align-items: start;
}
.approach-step .num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 800;
  letter-spacing: .08em;
}
.approach-step:nth-child(2) .num { background: var(--green); }
.approach-step:nth-child(3) .num { background: var(--red); }
.approach-step h3 { margin-bottom: 6px; }
.approach-step p { color: var(--muted); margin-bottom: 0; }

.team-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 22px; }
.team-card {
  text-align: center;
  padding: 32px 24px 30px;
  background: white;
  border-radius: var(--radius-md);
  overflow: visible;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-small);
}
.team-photo {
  width: 170px;
  height: 170px;
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 7px;
  overflow: hidden;
  background: linear-gradient(135deg,var(--blue),var(--green),var(--red));
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; border: 5px solid white; filter: none; }
.team-placeholder { width: 100%; height: 100%; border-radius: 50%; border: 5px solid white; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,var(--blue),var(--green),var(--red)); color: white; font-size: 2.2rem; font-weight: 800; }
.team-info { padding: 0; }
.team-role { color: var(--blue); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.team-info h3 { margin: 7px 0 10px; }
.team-info p { color: var(--muted); font-size: .91rem; }
.team-more { margin-top: 32px; text-align: center; }

.programme-card {
  display: grid;
  grid-template-columns: 1fr .95fr;
  background: var(--navy);
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.programme-visual {
  min-height: 520px;
  position: relative;
  order: 2;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,0)), var(--blue-dark);
}
.programme-visual::before, .programme-visual::after { content: ""; position: absolute; border-radius: 50%; border: 0; }
.programme-visual::before { width: 280px; height: 280px; left: 12%; top: 16%; background: var(--green); }
.programme-visual::after { width: 190px; height: 190px; right: 10%; bottom: 10%; background: var(--red); }
.programme-date {
  left: 50%;
  bottom: auto;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 190px;
  height: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  box-shadow: var(--shadow);
}
.programme-copy { padding: clamp(40px, 7vw, 84px); order: 1; }
.programme-copy .eyebrow, .programme-copy h2 { color: white; }
.programme-copy .eyebrow::before { background: linear-gradient(90deg,#8bb8ee,#85caa0,#f2a19a); }
.programme-copy p, .programme-meta { color: #dce8f7; }
.programme-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 34px; }
.programme-meta span { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 12px; }
.programme-copy .btn-primary { background: var(--red); }

.quote-wrap { max-width: 900px; margin-inline: auto; text-align: center; }
.big-quote { margin: 24px 0 28px; font-family: Georgia, serif; font-size: clamp(2rem,4vw,3.8rem); line-height: 1.3; letter-spacing: -.03em; }
.quote-author { color: var(--red-dark); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(23,59,107,.18); }
.dots i.active { width: 24px; border-radius: 99px; background: var(--blue); }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.blog-card { background: white; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.blog-card-image { aspect-ratio: 1.45/1; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover img { transform: scale(1.035); }
.blog-card-content { padding: 26px 26px 30px; }
.blog-meta { display: flex; gap: 12px; color: var(--muted); font-size: .77rem; }
.blog-category { color: var(--green-dark); text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.blog-card p { color: var(--muted); font-size: .92rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-grid > div:first-child { padding: clamp(38px,6vw,70px); background: var(--green); color: white; }
.contact-grid > div:first-child .eyebrow { color: white; }
.contact-grid > div:first-child .eyebrow::before { background: linear-gradient(90deg,#9dc6ff,#d8f1e1,#ffd1cc); }
.contact-grid > div:first-child h2 { color: white; }
.contact-grid > div:first-child .lead { color: #e7f5eb; }
.contact-details { display: grid; gap: 28px; margin-top: 44px; }
.contact-item { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.24); }
.contact-label { color: #9dc6ff; font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; margin-bottom: 6px; }
.contact-value { color: white; font-size: 1.05rem; line-height: 1.5; }

.site-footer { background: var(--navy); color: white; padding: 70px 0 28px; }
.site-footer .logo { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .9fr .7fr; gap: 42px; }
.footer-title { color: #9dc0ea; font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; margin-bottom: 14px; }
.footer-col p, .footer-col a { color: #d8e5f4; font-size: .87rem; }
.footer-links { display: grid; gap: 7px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #b3c5da; font-size: .77rem; }

.page-hero { padding: 170px 0 90px; background: linear-gradient(120deg,var(--soft-blue),var(--soft-green) 58%,var(--soft-red)); color: var(--ink); }
.page-hero h1 { max-width: 880px; margin: 18px 0 22px; }
.page-hero p { max-width: 650px; color: var(--muted); font-size: 1.18rem; }
.featured-post { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 0; border-radius: var(--radius-lg); overflow: hidden; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.featured-post img { width: 100%; height: 100%; object-fit: cover; min-height: 520px; }
.featured-copy { padding: clamp(34px,6vw,70px); display: flex; flex-direction: column; justify-content: center; }
.featured-copy h2 { font-size: clamp(2rem,4vw,3.7rem); }
.filter-row { display: flex; gap: 9px; flex-wrap: wrap; margin: 46px 0 30px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.chip.active, .chip:hover { background: var(--blue); color: white; border-color: var(--blue); }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: clamp(34px,6vw,66px); border-radius: var(--radius-lg); background: linear-gradient(120deg,var(--soft-blue),var(--soft-green),var(--soft-red)); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { min-width: 280px; min-height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: white; }

.article-hero { padding: 160px 0 70px; background: linear-gradient(120deg,var(--soft-blue),var(--soft-green) 58%,var(--soft-red)); color: var(--ink); }
.article-wrap { max-width: 880px; margin-inline: auto; }
.article-hero h1 { max-width: 850px; margin: 20px 0 24px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.article-image { background: white; }
.article-image .article-wrap { max-width: 1040px; }
.article-image img { width: 100%; max-height: 780px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-body { padding: 80px 0 120px; }
.prose { max-width: 760px; margin-inline: auto; }
.prose p, .prose li { font-size: 1.07rem; color: #3f4a58; line-height: 1.86; }
.prose h2 { font-size: clamp(1.8rem,3vw,2.8rem); margin: 58px 0 20px; }
.prose blockquote { margin: 50px 0; padding: 8px 0 8px 30px; border-left: 5px solid var(--red); font-family: Georgia,serif; font-size: 1.75rem; line-height: 1.5; }
.article-share { max-width: 760px; margin: 60px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: 0;
    padding: 120px 30px 40px;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.15rem; }
  .nav-cta { margin-left: 0; margin-top: 14px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .hero { min-height: auto; padding: 135px 0 100px; background: var(--white); }
  .hero-grid, .split, .approach-grid, .contact-grid, .featured-post, .programme-card { grid-template-columns: 1fr; }
  .hero-visual { min-height: 580px; max-width: 650px; margin-inline: auto; width: 100%; }
  .sticky-copy { position: static; }
  .service-grid, .team-grid, .blog-grid, .related-grid { grid-template-columns: repeat(2,1fr); }
  .programme-visual { min-height: 430px; order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav { min-height: 74px; }
  .hero { padding-top: 118px; }
  .display { font-size: clamp(3rem,15vw,4.7rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 480px; }
  .hero-image { inset: 20px 20px 70px 30px; }
  .hero-visual::before { width: 105px; height: 85px; }
  .hero-visual::after { width: 80px; height: 110px; }
  .hero-card { width: 185px; padding: 18px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .service-grid, .team-grid, .blog-grid, .related-grid { grid-template-columns: 1fr; }
.about-stat-grid { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .article-share { flex-direction: column; }
}
