:root {
  --ink: #0a1730;
  --ink-2: #20304a;
  --muted: #58667a;
  --blue: #0759db;
  --blue-2: #0b66ea;
  --blue-soft: #eef4ff;
  --line: #dce3ec;
  --line-strong: #c9d3df;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-soft-2: #f2f6fb;
  --dark: #0b1f3a;
  --max: 1412px;
  --header-h: 74px;
  --radius: 12px;
  --shadow: 0 14px 40px rgba(17, 42, 80, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(7, 89, 219, 0.42);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--blue);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.header-shell,
.content-shell {
  width: min(calc(100% - 124px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid #e7ebf0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 122px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand strong {
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.brand span {
  margin-top: 7px;
  padding-left: 1px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.44em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  align-self: stretch;
  gap: clamp(18px, 2vw, 36px);
}

.desktop-nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #0e1a2f;
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 1.5px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--blue);
}

.desktop-nav a.is-active::after,
.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-width: 88px;
  border: 1px solid #6a7890;
  border-radius: 7px;
  background: #fff;
}

.language-switch button {
  min-width: 43px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #10213e;
  font-size: 12px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.language-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--dark);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  min-height: 421px;
  display: grid;
  grid-template-columns: minmax(0, 48.7%) minmax(0, 51.3%);
  border-bottom: 1px solid #e2e7ed;
  background: #fff;
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 39px 50px 31px max(68px, calc((100vw - var(--max)) / 2));
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 610px;
  margin: 14px 0 17px;
  font-size: clamp(42px, 3.25vw, 54px);
  font-weight: 790;
  letter-spacing: -0.048em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  margin-top: 6px;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lead {
  max-width: 555px;
  margin: 0;
  color: #26364e;
  font-size: 15px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 720;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(7, 89, 219, 0.16);
}

.button-primary:hover {
  background: #004fc8;
  box-shadow: 0 10px 22px rgba(7, 89, 219, 0.22);
}

.button-secondary,
.button-outline-small {
  color: var(--blue);
  border-color: var(--blue);
  background: #fff;
}

.button-secondary:hover,
.button-outline-small:hover {
  color: #fff;
  background: var(--blue);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 34px;
  margin-top: 31px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #15233a;
  font-size: 12.5px;
  transition: color 160ms ease;
}

.hero-links a:hover {
  color: var(--blue);
}

.hero-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-links .linkedin-icon {
  width: 21px;
  fill: currentColor;
  stroke: none;
}

.hero-visual {
  min-height: 421px;
  background-image: url("assets/rafael-heise-profile.webp");
  background-position: center;
  background-size: cover;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: linear-gradient(180deg, #f7f9fc 0%, #f4f7fb 100%);
}

.positioning {
  border-bottom: 1px solid #eef1f5;
}

.positioning-grid {
  min-height: 160px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr 1fr;
  align-items: center;
  gap: 42px;
  padding-block: 30px 28px;
}

.section-intro.compact h2 {
  margin: 12px 0 0;
  font-size: 25px;
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.section-kicker::before {
  display: inline-block;
  width: 20px;
  height: 1.5px;
  margin-right: 9px;
  vertical-align: 3px;
  background: currentColor;
  content: "";
}

.positioning-copy {
  align-self: center;
}

.positioning-copy p {
  max-width: 320px;
  margin: 0;
  color: #26354b;
  font-size: 13.5px;
  line-height: 1.65;
}

.positioning-copy-border {
  padding-left: 30px;
  border-left: 1px solid #aab5c4;
}

.impact {
  padding: 16px 0 10px;
  border-bottom: 1px solid #dfe5ec;
}

.impact .section-kicker {
  margin-bottom: 11px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.impact-card {
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr);
  gap: 15px;
  min-height: 98px;
  align-items: center;
  padding: 18px 17px;
  border: 1px solid #d9e0e9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.impact-card:hover {
  transform: translateY(-3px);
  border-color: #b9c8dc;
  box-shadow: var(--shadow);
}

.impact-icon {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border-radius: 12px;
  background: #eaf1fd;
}

.impact-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.impact-card h3 {
  margin: 0 0 5px;
  font-size: 13.5px;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.impact-card p {
  margin: 0;
  color: #4d5b70;
  font-size: 11.5px;
  line-height: 1.45;
}

.experience {
  padding: 22px 0 26px;
}

.experience-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
}

.experience-heading h2,
.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(31px, 3vw, 48px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.experience-heading h2 {
  font-size: 25px;
  line-height: 1.02;
}

.experience-heading > p:not(.section-kicker) {
  margin: 0 0 16px;
  color: #4d5a6e;
  font-size: 12.5px;
  line-height: 1.52;
}

.button-outline-small {
  min-height: 37px;
  padding: 0 18px;
  font-size: 11.5px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 24px;
}

.timeline::before {
  position: absolute;
  top: 4px;
  right: 0;
  left: 0;
  height: 1px;
  background: #93b3e7;
  content: "";
}

.timeline-item {
  position: relative;
  min-width: 0;
}

.timeline-dot {
  position: absolute;
  top: -24px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #edf4ff;
}

.timeline-period {
  margin: 0 0 5px;
  color: #43526a;
  font-size: 10.5px;
}

.timeline-item h3 {
  margin: 0 0 4px;
  color: #0e2a56;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.14;
}

.timeline-role {
  min-height: 58px;
  margin: 0 0 6px;
  color: #152b4e !important;
  font-weight: 650;
}

.timeline-item p:not(.timeline-period) {
  margin: 0;
  color: #5c6879;
  font-size: 11px;
  line-height: 1.45;
}

.career-detail,
.capabilities,
.education,
.contact {
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
}

.section-heading > p:not(.section-kicker) {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.career-card {
  min-height: 275px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.career-card > span,
.education-item > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.career-card h3 {
  margin: 22px 0 4px;
  font-size: 20px;
  line-height: 1.12;
}

.career-card strong {
  display: block;
  margin-bottom: 22px;
  color: #40516a;
  font-size: 13px;
}

.career-card p {
  margin: 0;
  color: #5a687b;
  font-size: 14px;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 100px;
  align-items: start;
}

.capability-list {
  border-top: 1px solid var(--line-strong);
}

.capability-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.capability-row > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.capability-row h3 {
  margin: -4px 0 7px;
  font-size: 19px;
}

.capability-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-dark {
  color: #fff;
  background: var(--dark);
}

.leadership {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
}

.leadership::after {
  position: absolute;
  top: -140px;
  right: -90px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(77, 140, 240, 0.28);
  border-radius: 50%;
  content: "";
}

.leadership-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 120px;
  align-items: center;
}

.section-kicker.light {
  color: #86b6ff;
}

.leadership .section-heading h2 {
  color: #fff;
}

.leadership-copy {
  padding-left: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
}

.leadership-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.75;
}

.leadership-copy p + p {
  margin-top: 20px;
}

.education-list {
  border-top: 1px solid var(--line-strong);
}

.education-item {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.education-item h3 {
  margin: 10px 0 3px;
  font-size: 20px;
}

.education-item p {
  margin: 0;
  color: var(--muted);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 15px;
}

.language-grid p {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.language-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.language-grid small {
  font-size: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 100px;
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.contact-link {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: #23344e;
  font-size: 15px;
  font-weight: 650;
  transition: color 160ms ease, border-color 160ms ease;
}

.contact-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.site-footer {
  padding: 25px 0;
  color: #a9b8cc;
  background: #07162c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1240px) {
  .header-shell,
  .content-shell {
    width: min(calc(100% - 64px), var(--max));
  }

  .header-shell {
    grid-template-columns: 185px 1fr 98px;
  }

  .desktop-nav {
    gap: 17px;
  }

  .desktop-nav a {
    font-size: 11px;
  }

  .hero-copy {
    padding-left: 32px;
  }

  .hero-links {
    gap: 22px;
  }

  .impact-card {
    grid-template-columns: 42px 1fr;
    gap: 11px;
    padding: 15px 12px;
  }

  .impact-icon {
    width: 42px;
    height: 42px;
  }

  .impact-icon svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 68px;
  }

  .header-shell,
  .content-shell {
    width: min(calc(100% - 48px), var(--max));
  }

  .header-shell {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    z-index: 999;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    padding: 12px 24px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 20px 35px rgba(10, 23, 48, 0.08);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid #eef1f5;
    font-weight: 650;
  }

  .hero {
    grid-template-columns: 1.03fr 0.97fr;
  }

  .hero h1 {
    font-size: clamp(38px, 5vw, 48px);
  }

  .hero-copy {
    padding: 36px 28px 30px 24px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-links {
    margin-top: 24px;
    gap: 16px 22px;
  }

  .positioning-grid {
    grid-template-columns: 1fr 1fr;
  }

  .positioning-copy-border {
    grid-column: 2;
    padding-left: 0;
    border-left: 0;
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-layout {
    grid-template-columns: 240px 1fr;
    gap: 38px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 28px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    padding-top: 18px;
    border-top: 1px solid #93b3e7;
  }

  .timeline-dot {
    top: -5px;
  }

  .career-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .leadership-grid,
  .contact-grid {
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .header-shell,
  .content-shell {
    width: min(calc(100% - 36px), var(--max));
  }

  .brand strong {
    font-size: 21px;
  }

  .brand span {
    font-size: 8.5px;
  }

  .language-switch {
    min-width: 78px;
  }

  .language-switch button {
    min-width: 38px;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    order: 1;
    padding: 42px 18px 32px;
  }

  .hero-visual {
    order: 2;
    min-height: 390px;
    background-position: 53% center;
  }

  .hero h1 {
    max-width: 600px;
    font-size: clamp(39px, 10.5vw, 58px);
  }

  .hero-lead {
    max-width: 620px;
  }

  .hero-links {
    gap: 14px 24px;
  }

  .positioning-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 46px;
  }

  .positioning-copy-border {
    grid-column: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .positioning-copy p {
    max-width: 650px;
  }

  .impact {
    padding: 40px 0;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .experience {
    padding: 52px 0;
  }

  .experience-layout,
  .split-section,
  .leadership-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .experience-layout {
    gap: 46px;
  }

  .experience-heading {
    max-width: 520px;
  }

  .experience-heading h2 {
    font-size: 34px;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .career-detail,
  .capabilities,
  .education,
  .contact,
  .leadership {
    padding: 72px 0;
  }

  .split-section,
  .leadership-grid,
  .contact-grid {
    gap: 46px;
  }

  .leadership-copy {
    padding: 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .footer-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .header-shell,
  .content-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    height: 64px;
  }

  :root {
    --header-h: 64px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand span {
    margin-top: 5px;
    font-size: 7.5px;
  }

  .language-switch {
    min-width: 70px;
  }

  .language-switch button {
    min-width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .hero-copy {
    padding: 38px 14px 30px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 10px;
  }

  .hero h1 {
    margin-top: 12px;
    font-size: clamp(37px, 12vw, 52px);
    line-height: 1.01;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-buttons {
    display: grid;
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .hero-links {
    display: grid;
    gap: 13px;
  }

  .hero-visual {
    min-height: 330px;
    background-position: 54% center;
  }

  .impact-card {
    grid-template-columns: 48px 1fr;
    padding: 18px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .timeline-role {
    min-height: auto;
  }

  .career-grid {
    grid-template-columns: 1fr;
  }

  .career-card {
    min-height: auto;
  }

  .section-heading h2,
  .experience-heading h2 {
    font-size: 34px;
  }

  .language-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
