:root {
  --ink: #132238;
  --muted: #5e6b7a;
  --paper: #fbfcfe;
  --surface: #ffffff;
  --line: #dfe5ec;
  --shadow: 0 18px 60px rgba(22, 35, 55, 0.10);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, textarea { font: inherit; }

body[data-site="ssd"] {
  --accent: #146d75;
  --accent-2: #2d5b9d;
  --accent-soft: #eaf6f5;
  --accent-ink: #0f5157;
}
body[data-site="personal"] {
  --accent: #725a92;
  --accent-2: #b28a42;
  --accent-soft: #f3eff8;
  --accent-ink: #56416f;
}
body[data-site="prooproo"] {
  --accent: #d15c55;
  --accent-2: #397aa7;
  --accent-soft: #fff0ed;
  --accent-ink: #a8413b;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { left: 12px; top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 254, 0.90);
  border-bottom: 1px solid rgba(223,229,236,.8);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 74px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}
.brand small { display:block; color:var(--muted); font-size:11px; font-weight:650; letter-spacing:.08em; text-transform:uppercase; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 700; color: #334155; white-space: nowrap; }
.nav-links a:hover, .nav-links a:focus { color: var(--accent); }
.nav-toggle { display:none; border:0; background:transparent; padding:8px; cursor:pointer; }
.nav-toggle span { display:block; width:24px; height:2px; background:var(--ink); margin:5px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 24px 72px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px;
  right: -240px; top: -220px;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent) 24%, #fff), transparent 68%);
}
.hero::after {
  width: 380px; height: 380px;
  left: -240px; bottom: -230px;
  background: radial-gradient(circle at 65% 40%, color-mix(in srgb, var(--accent-2) 17%, #fff), transparent 70%);
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display:grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
  gap: 68px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin:0 0 18px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow::before { content:""; width:26px; height:2px; background:var(--accent); border-radius:999px; }
h1, h2, h3 { margin-top:0; line-height:1.12; letter-spacing:-0.035em; }
h1 { max-width: 850px; font-size: clamp(46px, 6vw, 78px); margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; }
h3 { font-size: 22px; margin-bottom: 10px; }
.lead { max-width: 760px; margin:0 0 30px; font-size: clamp(18px, 2vw, 22px); color:var(--muted); line-height:1.6; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; }
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding: 12px 20px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  border:1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color:#fff; background:linear-gradient(135deg,var(--accent),var(--accent-2)); box-shadow:0 12px 28px color-mix(in srgb, var(--accent) 24%, transparent); }
.button-secondary { background:#fff; border-color:var(--line); color:var(--ink); }

.hero-panel {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
}
.hero-panel .panel-title { font-weight:850; font-size:14px; text-transform:uppercase; letter-spacing:.09em; color:var(--accent-ink); margin-bottom:18px; }
.metric { padding:16px 0; border-top:1px solid var(--line); }
.metric:first-of-type { border-top:0; padding-top:0; }
.metric strong { display:block; font-size:20px; line-height:1.3; }
.metric span { color:var(--muted); font-size:14px; }

.section { padding: 84px 24px; }
.section.alt { background:#f3f6f9; }
.section.dark { background:#122033; color:#fff; }
.section.dark .muted, .section.dark p { color:#c3ccd7; }
.container { max-width: var(--max); margin:0 auto; }
.section-head { display:flex; justify-content:space-between; gap:40px; align-items:flex-end; margin-bottom:38px; }
.section-head p { max-width:700px; margin:0; color:var(--muted); font-size:18px; }
.kicker { margin:0 0 12px; color:var(--accent); font-size:13px; font-weight:850; text-transform:uppercase; letter-spacing:.1em; }
.muted { color: var(--muted); }

.grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:26px;
  box-shadow:0 8px 24px rgba(31,45,61,.04);
}
.card p:last-child { margin-bottom:0; }
.card-icon {
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  margin-bottom:20px;
  background:var(--accent-soft);
  color:var(--accent-ink);
  font-weight:900;
}
.card .meta { display:inline-block; margin-bottom:8px; color:var(--accent-ink); font-size:12px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.status { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); font-size:12px; font-weight:850; }
.status::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--accent); }

.feature-list { list-style:none; padding:0; margin:0; display:grid; gap:15px; }
.feature-list li { position:relative; padding-left:30px; }
.feature-list li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:900; }

.callout {
  padding:34px;
  border-radius:var(--radius-lg);
  border:1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  background:linear-gradient(135deg, var(--accent-soft), #fff);
}
.callout strong { color:var(--accent-ink); }

.timeline { position:relative; margin:0; padding:0; list-style:none; }
.timeline::before { content:""; position:absolute; left:18px; top:10px; bottom:10px; width:2px; background:var(--line); }
.timeline li { position:relative; padding:0 0 26px 58px; }
.timeline li:last-child { padding-bottom:0; }
.timeline li::before { content:""; position:absolute; left:10px; top:5px; width:18px; height:18px; border-radius:50%; background:var(--surface); border:5px solid var(--accent); }
.timeline time { display:block; color:var(--accent-ink); font-weight:850; }

.book-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.book-card { min-height:300px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.book-card::after { content:""; position:absolute; width:120px; height:120px; right:-46px; top:-50px; border-radius:999px; background:var(--book-color, var(--accent-soft)); opacity:.85; }
.book-number { font-family:var(--serif); font-size:48px; line-height:1; color:color-mix(in srgb, var(--book-color, var(--accent)) 75%, var(--ink)); }
.book-card h3 { margin-top:34px; }
.book-card .book-status { margin-top:22px; font-size:13px; font-weight:800; color:var(--muted); }

.publication { display:grid; grid-template-columns:120px 1fr; gap:24px; align-items:start; }
.pub-cover { aspect-ratio: .7; border-radius:12px; display:grid; place-items:center; padding:14px; text-align:center; color:#fff; font-family:var(--serif); font-weight:700; background:linear-gradient(145deg,var(--accent),var(--accent-2)); box-shadow:0 14px 30px color-mix(in srgb, var(--accent) 20%, transparent); }
.publication h3 { margin-bottom:8px; }
.publication p { margin-top:0; }

.cross-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.cross-link { display:block; text-decoration:none; padding:24px; border-radius:var(--radius-md); border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.06); }
.cross-link:hover { background:rgba(255,255,255,.10); }
.cross-link small { color:#9eabb9; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.cross-link strong { display:block; margin-top:6px; font-size:20px; }

.site-footer { padding:42px 24px; background:#0d1725; color:#d4dbe4; }
.footer-grid { max-width:var(--max); margin:0 auto; display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:34px; }
.footer-grid p { color:#9da9b8; }
.footer-title { color:#fff; font-weight:850; margin-bottom:10px; }
.footer-links { display:grid; gap:8px; }
.footer-links a { color:#bdc7d3; text-decoration:none; }
.footer-bottom { max-width:var(--max); margin:28px auto 0; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); color:#8794a4; font-size:13px; display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }

.tbd { display:inline-block; padding:1px 7px; border-radius:6px; background:#fff4c7; color:#7a5a00; font-weight:850; }
.notice { padding:14px 16px; background:#fff8dd; color:#6f5600; border:1px solid #f2df8b; border-radius:12px; font-size:14px; }

@media (max-width: 980px) {
  .nav-toggle { display:block; }
  .nav-links { display:none; position:absolute; left:18px; right:18px; top:70px; flex-direction:column; align-items:stretch; padding:18px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow); }
  .nav-links.open { display:flex; }
  .hero-grid { grid-template-columns:1fr; gap:34px; }
  .hero-panel { max-width:700px; }
  .grid-4, .book-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .nav-wrap { min-height:66px; padding:0 18px; }
  .brand { font-size:14px; }
  .brand small { display:none; }
  .hero { padding:64px 20px 52px; }
  h1 { font-size:44px; }
  .section { padding:64px 20px; }
  .section-head { display:block; }
  .grid-2, .grid-3, .grid-4, .book-grid, .cross-links, .footer-grid { grid-template-columns:1fr; }
  .publication { grid-template-columns:90px 1fr; }
  .hero-actions .button { width:100%; }
}
