/* ============================================================
   STEM-azing — Direction A, "Warm editorial"
   One stylesheet for every page (main pages, /posts/, /de/).
   ============================================================ */

:root {
  --cream: #FBF7F1;
  --white: #FFFFFF;
  --blue: #1F3B4D;
  --blue-2: #2B4E63;
  --terracotta: #B5523B;
  --terracotta-dark: #9A4330;
  --peach: #F2C9A8;
  --sage: #5B7B6A;
  --sage-tint: #E7EFE9;
  --line: #EADFD0;
  --ink: #2A2A2A;
  --muted: #5A5A5A;
  --muted-2: #6E6E6E;
  --shadow: 0 8px 24px rgba(31, 59, 77, .08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1120px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.6 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }
.band--navy :focus-visible, #site-footer :focus-visible { outline-color: var(--peach); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--blue); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 46px); }
h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 6px 0 18px; }
h3 { font-size: 20px; }
h1 em, h2 em { color: var(--terracotta); font-style: italic; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* ---------- labels, buttons ---------- */
.kicker {
  font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--terracotta); margin: 0;
}
.lede { font-size: 17px; color: var(--muted); margin-top: 16px; max-width: 520px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 14px/1.2 var(--sans); padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer; text-align: center;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-2); color: var(--white); }
.btn--accent { background: var(--terracotta); color: var(--white); }
.btn--accent:hover { background: var(--terracotta-dark); color: var(--white); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--light { border-color: var(--peach); color: var(--peach); background: transparent; }
.btn--light:hover { background: var(--peach); color: var(--blue); }
.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-arrow { font: 600 14px var(--sans); color: var(--terracotta); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- header ---------- */
#site-header { background: var(--cream); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid transparent; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { font: 600 21px var(--serif); color: var(--blue); text-decoration: none; }
.navlinks { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.navlinks a:not(.btn) { color: #3D3D3D; text-decoration: none; }
.navlinks a:not(.btn):hover, .navlinks a[aria-current="page"] { color: var(--terracotta); }
.navlinks a[aria-current="page"] { font-weight: 600; }
.nav-cta { padding: 10px 18px; font-size: 13px; }
.lang-switch { font-size: 13px; color: var(--muted-2); }
.menu-toggle {
  display: none; font: 600 14px var(--sans); background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .navlinks { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 18px; }
  .navlinks.open { display: flex; }
}

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section--white { background: var(--white); border-top: 1px solid #EFE6DA; }
.section--tight { padding: 36px 0; }
.section-head { margin-bottom: 8px; }
.section-head .sub { color: var(--muted); max-width: 620px; margin: -8px 0 22px; }
.band--navy { background: var(--blue); color: var(--white); }
.band--navy h2, .band--navy h3 { color: var(--white); }
.band--navy .kicker { color: var(--peach); }
.band--peach { background: var(--peach); }
.band--peach .kicker { color: var(--blue); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- hero + arch portrait ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 56px; }
.hero h1 { margin-top: 10px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 28px; } }
.hero--text { grid-template-columns: 1fr; }
.hero--text h1 { max-width: 20ch; }
.hero--text .lede { max-width: 640px; }
.photo-arch { position: relative; display: flex; justify-content: center; }
.photo-arch img {
  width: 66%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px 18px 18px;
}
.badge-float {
  position: absolute; bottom: 18px; left: 4%; background: var(--white); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: 13px; color: #333;
}
.badge-float b { display: block; font: 600 15px var(--serif); color: var(--blue); }

/* ---------- cards ---------- */
.card { background: var(--cream); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.section:not(.section--white) .card { background: var(--white); }
.card h3 { margin-bottom: 8px; }
.card p { color: #4A4A4A; font-size: 15px; }
.card .also { font: 600 13px var(--sans); color: var(--terracotta); margin: -4px 0 6px; }
.card-list { list-style: none; margin: 4px 0 0; padding: 0; }
.card-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
  border-top: 1px solid var(--line); font-size: 15px; color: #444;
}
.card-list li span:last-child { color: var(--terracotta); font-weight: 600; white-space: nowrap; }
.card-list small { display: block; color: var(--muted-2); font-size: 12px; }
.card .more { margin-top: auto; padding-top: 14px; }

/* ---------- services ---------- */
.service .proof { list-style: none; margin: 12px 0 0; padding: 0; }
.proof li { position: relative; padding: 4px 0 4px 22px; font-size: 14px; color: #3D3D3D; }
.proof li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.service-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
.service .proof + .service-foot, .service p + .service-foot { margin-top: 16px; }
.price { font: 500 26px var(--serif); color: var(--blue); }
.price .unit { font: 14px var(--sans); color: var(--muted-2); }
.price-note { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.vat-note { font-size: 13px; color: var(--muted-2); margin-top: 14px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.jump a {
  font: 600 13px var(--sans); background: var(--white); border: 1px solid var(--line);
  color: var(--blue); padding: 8px 14px; border-radius: 999px; text-decoration: none;
}
.currency { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 18px; }
.currency button {
  font: 600 13px var(--sans); border: 0; background: var(--white); color: var(--blue);
  padding: 8px 16px; cursor: pointer;
}
.currency button[aria-pressed="true"] { background: var(--blue); color: var(--white); }

/* ---------- reasons / steps / facts bands ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 44px; }
.why b, .steps b { display: block; font: 500 24px var(--serif); color: var(--peach); }
.why p, .steps p { opacity: .92; margin-top: 6px; font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 40px; }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts div { padding: 24px 20px; border-right: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.facts b { display: block; font: 500 19px var(--serif); color: var(--peach); margin-bottom: 2px; }
@media (max-width: 760px) {
  .why, .steps { grid-template-columns: 1fr; gap: 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- about: audiences + path ---------- */
.topic {
  display: inline-block; font: 600 14px var(--sans); color: var(--blue); background: var(--peach);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.audience { border-top: 4px solid var(--terracotta); }
.audience:nth-child(2) { border-top-color: var(--sage); }
.audience:nth-child(3) { border-top-color: var(--blue); }
.audience .who { font-size: 12px; color: var(--muted-2); margin: -4px 0 10px; }
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.path div { border-left: 2px solid var(--line); padding-left: 16px; }
.path b { display: block; font: 500 21px var(--serif); color: var(--terracotta); }
.path p { font-size: 15px; color: #444; margin-top: 4px; }
@media (max-width: 640px) { .path { grid-template-columns: 1fr; } }

/* ---------- writing page ---------- */
.edit-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.edit-card .label {
  display: flex; justify-content: space-between; font: 600 11px var(--sans);
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}
.edit-card p { font-size: 15px; margin-top: 12px; }
.edit-card .before { color: var(--muted-2); }
.edit-card .before del { color: var(--terracotta); }
.edit-card .after { color: var(--blue); border-top: 1px dashed var(--line); padding-top: 12px; }
.edit-card .after mark { background: var(--sage-tint); color: #2F5A45; font-weight: 600; padding: 0 3px; border-radius: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  font: 600 13px var(--sans); border: 1px solid var(--line); color: var(--blue); background: var(--white);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.chip.is-active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.sample { border-left: 4px solid var(--sage); }
.sample .for { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.sample h3 { font-size: 19px; margin: 6px 0 8px; line-height: 1.3; }
.sample h3 a { color: var(--blue); text-decoration: none; }
.sample h3 a:hover { color: var(--terracotta); }
.archive { list-style: none; margin: 0; padding: 0; }
.archive li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #EFE6DA; }
.archive a { color: var(--blue); text-decoration: none; font-size: 15px; }
.archive a:hover { color: var(--terracotta); }
.archive small { color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.post-teaser { border-top: 3px solid var(--terracotta); padding-top: 12px; }
.post-teaser .tag { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.post-teaser h3 { font-size: 18px; margin-top: 4px; line-height: 1.3; }
.post-teaser a { text-decoration: none; color: var(--blue); }

/* ---------- split band (NeuroPenetrance strip, publications) ---------- */
.split { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 36px; padding-bottom: 36px; flex-wrap: wrap; }
.split p { max-width: 620px; margin-top: 6px; }
.split h2 { margin: 4px 0 6px; }

/* ---------- closing call band ---------- */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.cta-band p.big { font: 500 26px var(--serif); color: var(--blue); }
.cta-band p.small { color: var(--muted); margin-top: 4px; }

/* ---------- long text (posts, legal, portfolio) ---------- */
.prose { max-width: 68ch; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure { margin: 0 0 1.1em; }
.prose blockquote { border-left: 3px solid var(--terracotta); padding-left: 18px; color: var(--muted); font-style: italic; }
.prose img { border-radius: 12px; margin: 8px auto; }
.prose a { color: var(--terracotta); }
.article-hero { padding: 48px 0 24px; text-align: center; }
.article-hero h1 { max-width: 22ch; margin: 10px auto 0; }
.article-hero .meta { color: var(--muted-2); font-size: 14px; margin-top: 14px; }
.draft-note {
  background: #FFF4E5; border: 1px solid var(--peach); border-radius: 12px; padding: 12px 16px;
  font-size: 14px; color: #6B4A1F; margin-bottom: 24px;
}

/* ---------- tiers / case studies ---------- */
.tier .stars { color: var(--terracotta); letter-spacing: 2px; }
.case { background: var(--white); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.toolkit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.toolkit span { font: 600 12px var(--sans); background: var(--sage-tint); color: #2F5A45; padding: 6px 10px; border-radius: 999px; }

/* ---------- booking / calendly ---------- */
.calendly-slot { background: var(--white); border-radius: var(--radius); padding: 28px; text-align: center; }
.calendly-slot .calendly-inline-widget { min-width: 280px; height: 700px; margin-top: 18px; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(20, 33, 61, .55); display: none;
  align-items: center; justify-content: center; padding: 16px; z-index: 20;
}
.modal.is-open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius); padding: 28px; max-width: 440px; width: 100%; }
.modal-box h3 { margin-bottom: 8px; }
.modal-box .amount { font: 500 26px var(--serif); color: var(--blue); margin: 4px 0 0; }

/* ---------- footer ---------- */
#site-footer { border-top: 4px solid var(--terracotta); background: var(--blue); color: rgba(255, 255, 255, .88); font-size: 14px; }
#site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
#site-footer a:hover { color: var(--peach); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 28px; padding: 44px 20px 28px; }
.footer-brand { font: 600 20px var(--serif); color: var(--white); margin-bottom: 8px; }
.footer-h { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--peach); margin-bottom: 10px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 20px 24px; font-size: 13px;
}
.footer-bottom .footer-row { margin-top: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.edit-card .before mark.vague { background: #F8E3DC; color: var(--terracotta-dark); padding: 0 3px; border-radius: 3px; }

/* ---------- post navigation ---------- */
.post-footer-nav { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 28px; padding-bottom: 40px; font-size: 15px; }
.post-footer-nav a { color: var(--terracotta); text-decoration: none; font-weight: 600; }
.post-body.prose { padding-top: 8px; padding-bottom: 8px; }
