:root {
  --blue: #2D5FBD;
  --blue-dark: #214A93;
  --blue-light: #EEF4FF;
  --ink: #1F2937;
  --text: #475569;
  --gray: #8F8F8F;
  --line: #E6EAF0;
  --surface: #F7F9FC;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 14px 40px rgba(31, 41, 55, 0.08);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: 60px; padding-right: 60px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: white; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230,234,240,.9);
}
.nav {
  min-height: 86px; display: flex; align-items: center;
  justify-content: space-between; gap: 30px;
}
.brand img { width: 300px; height: auto; }
.menu { display:flex; align-items:center; gap:26px; color:#334155; font-size:17px; font-weight:550; }
.menu a { position:relative; padding:10px 0; }
.menu a::after {
  content:""; position:absolute; left:0; right:100%; bottom:2px;
  height:2px; background:var(--blue); transition:.25s ease;
}
.menu a:hover::after, .menu a[aria-current="page"]::after { right:0; }
.menu a[aria-current="page"] { color:var(--blue-dark); }
.nav-toggle {
  display:none; border:1px solid var(--line); background:white; border-radius:10px;
  padding:9px 12px; color:var(--ink); cursor:pointer;
}
main { min-height: 65vh; }
.hero {
  min-height: 570px; display:grid; align-items:center; overflow:hidden;
  background:
    radial-gradient(circle at 80% 18%, rgba(45,95,189,.12), transparent 30%),
    linear-gradient(90deg,#fff 0%,#fff 48%,#f4f7fb 100%);
}
.hero-grid {
  display:grid; grid-template-columns:1.03fr .97fr; gap:70px;
  align-items:center; padding:70px 0 76px;
}
.eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  color:var(--blue); font-size:13px; font-weight:700;
  letter-spacing:.09em; text-transform:uppercase; margin-bottom:18px;
}
.eyebrow::before { content:""; width:34px; height:2px; background:var(--blue); }
h1,h2,h3 { text-wrap:balance; }
h1 {
  margin:0; max-width:760px; font-size:clamp(48px,6vw,76px);
  line-height:1.03; letter-spacing:-.035em; font-weight:700;
}
h1 span { color:var(--blue); display:block; }
.lead {
  margin:22px 0 28px; max-width:700px; color:var(--text);
  font-size:21px; font-weight:400;
}
.actions { display:flex; flex-wrap:wrap; gap:14px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:52px; padding:0 24px; border-radius:10px;
  border:1px solid var(--blue); font-weight:600; font-size:18px;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { color:white; background:var(--blue); box-shadow:0 10px 24px rgba(45,95,189,.22); }
.btn-secondary { color:var(--blue); background:rgba(255,255,255,.85); }
.btn:hover { transform:translateY(-2px); }
.hero-art {
  position:relative; min-height:445px; border-radius:var(--radius-lg);
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(234,240,249,.9));
  box-shadow:var(--shadow); border:1px solid rgba(230,234,240,.9); overflow:hidden;
}
.hero-art::before {
  content:""; position:absolute; width:380px; height:380px; border-radius:50%;
  top:-145px; right:-105px; background:rgba(45,95,189,.12);
}
.hero-art::after {
  content:"§"; position:absolute; left:44px; bottom:-75px;
  font-family:Georgia,serif; font-size:350px; line-height:1; color:rgba(45,95,189,.075);
}
.screen {
  position:absolute; top:62px; right:48px; width:69%; aspect-ratio:16/10;
  border-radius:18px; background:#172033; padding:18px; transform:rotate(-4deg);
  box-shadow:0 28px 60px rgba(15,23,42,.24);
}
.screen-inner {
  height:100%; border-radius:10px;
  background:
    linear-gradient(90deg,transparent 49%,rgba(255,255,255,.08) 50%),
    linear-gradient(rgba(255,255,255,.05) 49%,transparent 50%),
    linear-gradient(145deg,#2d5fbd,#7a8cae);
  background-size:38px 38px,38px 38px,100% 100%;
}
.book {
  position:absolute; left:64px; right:125px; height:54px;
  border-radius:6px 10px 10px 6px; box-shadow:0 8px 18px rgba(15,23,42,.15);
}
.book.one { bottom:99px; background:var(--blue); color:white; }
.book.two { bottom:46px; left:94px; background:#f3f4f6; }
.book span { position:absolute; left:22px; top:14px; font-size:14px; font-weight:650; }
section { padding:68px 0; }
.section-head { max-width:760px; margin-bottom:30px; }
.section-head h2 {
  margin:0 0 14px; font-size:clamp(34px,4vw,52px);
  line-height:1.1; letter-spacing:-.03em;
}
.section-head p { color:var(--text); font-size:20px; margin:0; }
.services { margin-top:-44px; position:relative; z-index:3; padding-top:0; }
.cards { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.card {
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; box-shadow:0 12px 32px rgba(31,41,55,.06);
  transition:transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.icon {
  width:50px; height:50px; display:grid; place-items:center; border-radius:14px;
  background:var(--blue-light); color:var(--blue); font-size:25px; margin-bottom:20px;
}
.card h3 { margin:0 0 10px; font-size:23px; font-weight:600; line-height:1.2; }
.card p { color:var(--text); margin:0 0 14px; font-size:16px; }
.link { color:var(--blue); font-weight:600; font-size:17px; }
.about { background:var(--surface); }
.about-grid { display:grid; grid-template-columns:.78fr 1.22fr; gap:58px; align-items:stretch; }
.portrait {
  min-height:540px; border-radius:24px; border:1px solid var(--line);
  box-shadow:0 14px 36px rgba(31,41,55,.08); overflow:hidden; background:#d9d9d9;
}
.portrait img { width:100%; height:100%; object-fit:cover; object-position:50% 22%; filter:grayscale(100%); }
.about-copy {
  background:var(--white); border:1px solid var(--line); border-radius:24px;
  padding:36px; box-shadow:0 12px 36px rgba(31,41,55,.05);
}
.about-copy h2 { font-size:44px; line-height:1.12; margin:0 0 22px; }
.about-copy p { color:var(--text); font-size:18px; margin:0 0 14px; }
.facts { margin-top:28px; display:grid; grid-template-columns:repeat(2,1fr); gap:14px 24px; }
.fact { border-top:1px solid var(--line); padding-top:15px; font-weight:600; font-size:19px; }
.fact small { display:block; color:var(--gray); font-weight:400; margin-top:4px; font-size:15px; }
.feature-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:24px; }
.feature {
  min-height:390px; border-radius:24px; padding:44px;
  background:linear-gradient(135deg,rgba(45,95,189,.97),rgba(33,74,147,.97));
  color:white; position:relative; overflow:hidden;
}
.feature::after {
  content:""; position:absolute; width:285px; height:285px; border:1px solid rgba(255,255,255,.22);
  border-radius:50%; right:-85px; bottom:-95px;
}
.feature h3 { font-size:36px; line-height:1.13; margin:0 0 18px; max-width:650px; }
.feature p { max-width:620px; color:rgba(255,255,255,.86); font-size:18px; }
.feature ul { padding-left:19px; color:rgba(255,255,255,.9); font-size:17px; }
.list { background:white; border:1px solid var(--line); border-radius:24px; padding:18px 30px; }
.item { padding:22px 0; border-bottom:1px solid var(--line); }
.item:last-child { border-bottom:0; }
.item strong { display:block; margin-bottom:5px; font-size:18px; }
.item span { color:var(--text); font-size:16px; }
.topic-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.topic {
  border:1px solid var(--line); border-radius:20px; padding:30px; background:white;
}
.topic h3 { margin:0 0 10px; font-size:23px; }
.topic p { margin:0; color:var(--text); font-size:16px; }
.publication-list { display:grid; gap:14px; }
.publication {
  display:grid; grid-template-columns:74px 1fr; gap:20px;
  padding:25px 0; border-bottom:1px solid var(--line);
}
.publication:first-child { border-top:1px solid var(--line); }
.publication-year { color:var(--blue); font-weight:700; font-size:19px; }
.publication h3 { margin:0 0 5px; font-size:20px; line-height:1.28; }
.publication p { margin:0; color:var(--text); }
.page-hero {
  padding:60px 0 48px; background:linear-gradient(135deg,#fff,#f4f7fb);
  border-bottom:1px solid var(--line);
}
.page-hero h1 { font-size:clamp(46px,5vw,68px); }
.page-hero p { max-width:760px; color:var(--text); font-size:21px; margin:20px 0 0; }
.prose { max-width:820px; }
.prose h2 { margin:42px 0 10px; font-size:31px; }
.prose h3 { margin:30px 0 8px; font-size:23px; }
.prose p, .prose li { color:var(--text); font-size:17px; }
.prose a { color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
.notice {
  margin:28px 0; padding:18px 20px; background:#fff8e7;
  border:1px solid #efd69a; border-radius:12px; color:#684d12;
}
.contact { text-align:center; background:linear-gradient(180deg,#fff,#f6f8fb); }
.contact-box {
  border:1px solid var(--line); border-radius:28px; padding:64px 30px;
  box-shadow:var(--shadow); background:white;
}
.contact h2 { margin:0 0 14px; font-size:44px; }
.contact p { color:var(--text); max-width:720px; margin:0 auto 28px; font-size:20px; }
.contact-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:14px; }
footer { padding:38px 0; color:#64748b; border-top:1px solid var(--line); font-size:14px; }
.footer-row { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; align-items:center; }
.footer-links { display:flex; gap:18px; flex-wrap:wrap; }
.footer-links a:hover { color:var(--blue); }
.muted { color:var(--text); }
.center { text-align:center; }
.badge {
  display:inline-block; padding:7px 11px; border-radius:999px;
  background:var(--blue-light); color:var(--blue-dark); font-weight:600; font-size:14px;
}
@media (max-width: 980px) {
  .brand img { width:285px; }
  .nav-toggle { display:block; }
  .menu {
    display:none; position:absolute; left:20px; right:20px; top:82px;
    background:white; border:1px solid var(--line); border-radius:16px;
    box-shadow:var(--shadow); padding:18px; flex-direction:column; align-items:flex-start;
  }
  .menu.open { display:flex; }
  .hero-grid,.about-grid,.feature-grid { grid-template-columns:1fr; }
  .hero-art { min-height:390px; }
  .cards { grid-template-columns:repeat(2,1fr); }
  .topic-grid { grid-template-columns:1fr; }
  .services { margin-top:0; padding-top:60px; }
  .portrait { min-height:650px; }
}
@media (max-width: 620px) {
  .container { width:min(100% - 26px,var(--max)); }
  .nav { min-height:78px; }
  .brand img { width:225px; }
  .menu { top:72px; }
  .hero-grid { padding:62px 0 72px; gap:40px; }
  .lead { font-size:18px; }
  .cards { grid-template-columns:1fr; }
  .screen { width:76%; right:25px; }
  .book { left:27px; right:70px; }
  .book.two { left:48px; }
  .about-copy { padding:30px; }
  .facts { grid-template-columns:1fr; }
  .portrait { min-height:500px; }
  .publication { grid-template-columns:1fr; gap:4px; }
  section { padding:70px 0; }
}

.prose p{margin:0 0 14px}
.page-hero .container,.hero .container,section>.container{padding-left:0;padding-right:0}
.footer-row{padding-inline:0}
@media(max-width:980px){}
@media(max-width:620px){section{padding:52px 0}}

header .container,
.hero .container,
.page-hero .container,
section > .container,
footer .container {
  padding-left: 60px !important;
  padding-right: 60px !important;
}
.brand {
  margin-left: 0 !important;
}
.brand img {
  margin-left: 0 !important;
}
@media (max-width: 700px) {
  header .container,
  .hero .container,
  .page-hero .container,
  section > .container,
  footer .container {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

/* Explicit button contrast */
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  color: #FFFFFF !important;
  background: #2D5FBD !important;
  border-color: #2D5FBD !important;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #FFFFFF !important;
  background: #214A93 !important;
  border-color: #214A93 !important;
}
.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
  color: #214A93 !important;
  background: #FFFFFF !important;
  border-color: #2D5FBD !important;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #FFFFFF !important;
  background: #2D5FBD !important;
  border-color: #2D5FBD !important;
}
.feature .btn-secondary,
.feature .btn-secondary:link,
.feature .btn-secondary:visited {
  color: #214A93 !important;
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
}


/* Hero illustration: replace the earlier abstract CSS graphic with a single integrated image */
.hero-visual {
  position: relative;
  min-height: 445px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(31, 41, 55, 0.10);
}

/* The older CSS illustration remains unused on the homepage */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual {
    min-height: 0;
  }
  .hero-visual img {
    max-width: 100%;
  }
}
