:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #14213d;
  --muted: #55607a;
  --line: #d8dfea;
  --accent: #1f56a8;
  --accent-strong: #163f7c;
  --accent-soft: #eaf1fb;
  --accent-text: #ffffff;
  --field-border: #b7c1d3;
  --warm: #f0a23a;
  --warm-soft: #fdf2df;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .05), 0 4px 14px rgba(20, 33, 61, .06);
  --shadow-md: 0 2px 4px rgba(20, 33, 61, .05), 0 16px 40px rgba(20, 33, 61, .10);
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1522;
    --bg-alt: #131b2b;
    --surface: #182235;
    --text: #e7ecf5;
    --muted: #9ba7be;
    --line: #2e3b57;
    --accent: #82b2ff;
    --accent-strong: #a9c9ff;
    --accent-soft: #1b2a45;
    --accent-text: #0b1220;
    --field-border: #3d4c6a;
    --warm: #f5b65a;
    --warm-soft: #2e2618;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent); color: var(--accent-text); font-size: .9rem; letter-spacing: .02em;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav a.nav-cta { color: var(--accent-text); background: var(--accent); margin-left: 8px; padding-inline: 18px; font-weight: 600; }
.nav a.nav-cta:hover { background: var(--accent-strong); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(900px 480px at 85% 10%, var(--accent-soft), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, var(--warm-soft), transparent 70%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .88rem; font-weight: 600; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 4px var(--warm-soft); }
.hero h1 .hi { display: block; font-size: .42em; font-weight: 700; color: var(--accent); letter-spacing: -.01em; margin-bottom: .25em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.portrait { position: relative; justify-self: center; width: min(380px, 100%); }
.portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border-radius: 32px; background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  opacity: .9;
}
.portrait img {
  position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%;
  border-radius: 32px; box-shadow: var(--shadow-md); background: var(--bg-alt);
  border: 6px solid var(--surface);
}
.portrait-badge {
  position: absolute; left: -28px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: .9rem; line-height: 1.35;
}
.portrait-badge strong { display: block; font-weight: 700; color: var(--text); }
.portrait-badge span { color: var(--muted); }
.portrait-badge .badge-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--warm-soft); color: var(--warm); }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 72px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.fact { padding: 20px 28px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; line-height: 1.1; color: var(--accent); }
.fact span { color: var(--muted); font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn .icon { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }
.kicker { display: block; margin-bottom: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }
.two-col { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.two-col .section-head { margin-bottom: 0; }
.panel {
  padding: 32px 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.prose p { margin: 0 0 1.1em; max-width: 64ch; }
.panel.prose p:last-child { margin-bottom: 0; }
.prose p:first-child { font-size: 1.15rem; color: var(--text); }
.prose strong { color: var(--text); }
.muted { color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0 0 0 40px; max-width: 880px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.timeline li {
  position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  margin-bottom: 14px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.timeline li:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 26px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.timeline li.is-current { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.timeline li.is-current::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline li:last-child { margin-bottom: 0; }
.when { font-weight: 700; color: var(--accent); font-size: .92rem; padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: .2em; }
.timeline p { margin: 0; color: var(--muted); }
.now { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--warm-soft); color: color-mix(in srgb, var(--warm) 75%, var(--text)); font-family: var(--font-body); font-size: .75rem; font-weight: 700; vertical-align: 3px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex: none; }
.card-tag { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-head h3 { margin: 0; }
.card p, .card ul { color: var(--muted); margin: 0; }
.card ul { padding-left: 0; list-style: none; }
.card li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.card li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }
.card ul.dated li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding-left: 0; }
.card ul.dated li::before { content: none; }
.dated span { font-weight: 700; color: var(--accent); font-size: .88rem; padding-top: 2px; font-variant-numeric: tabular-nums; }

/* Chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 500;
  transition: border-color .15s, color .15s;
}
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chips li:hover { border-color: var(--accent); color: var(--accent); }
.languages { display: flex; align-items: flex-start; gap: 14px; margin: 28px 0 0; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); }
.languages .icon { color: var(--accent); margin-top: 3px; }
.languages p { margin: 0; color: var(--muted); }
.languages strong { color: var(--text); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  color: var(--text); text-decoration: none; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
a.contact-item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.contact-item .card-icon { width: 44px; height: 44px; border-radius: 12px; }
.contact-item small { display: block; color: var(--muted); font-size: .85rem; }
.contact-item strong { font-weight: 600; word-break: break-word; }

/* Contact form */
.form-card {
  padding: 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.form-card > p { margin: 0 0 24px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--field-border); border-radius: var(--radius-sm); padding: 12px 15px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--field-border)); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert-error { background: color-mix(in srgb, #c0392b 12%, var(--surface)); border: 1px solid color-mix(in srgb, #c0392b 40%, transparent); }
.alert-success { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

/* ALTCHA spam check widget, matched to the form fields */
altcha-widget {
  display: block;
  --altcha-max-width: 100%;
  --altcha-border-width: 1.5px;
  --altcha-border-radius: 12px;
  --altcha-border-color: var(--field-border);
  --altcha-color-base: var(--surface);
  --altcha-color-base-content: var(--text);
  --altcha-color-primary: var(--accent);
  --altcha-color-primary-content: var(--accent-text);
  --altcha-color-success: var(--accent);
  --altcha-color-success-content: var(--accent-text);
}

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 32px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 56px; }
  .portrait { width: min(300px, 80%); order: -1; }
  .portrait-badge { left: -16px; bottom: 20px; }
  .two-col { gap: 24px; }
  .cards, .cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .hero { padding: 48px 0 56px; }
  .facts { grid-template-columns: 1fr; margin-top: 56px; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .timeline li::before { left: -29px; top: 22px; }
  .timeline li:hover { transform: none; }
  .card, .panel { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
