:root {
  --brand-900: #343e53;
  --brand-800: #464f62;
  --brand-700: #4f576a;
  --ink: #1c2431;
  --muted: #5f6878;
  --line: #d8dde5;
  --surface: #f5f7fa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", "Arial", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  color: var(--brand-800);
  text-decoration: none;
  font-weight: 600;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

nav a:hover {
  color: var(--brand-900);
}

.hero {
  background: linear-gradient(145deg, var(--brand-900), var(--brand-800));
  color: var(--white);
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
  align-items: start;
}

.kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfd6e2;
  margin: 0 0 8px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.2;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
}

.lead {
  max-width: 58ch;
  color: #e8edf7;
}

.hero-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 18px;
}

.hero-card a {
  color: #ffffff;
}

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

.contact-pill {
  display: block;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d9e0ee;
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.note {
  font-size: 0.9rem;
  color: #dde3ed;
}

.actions,
.contact-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--brand-700);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-900);
}

.btn-ghost {
  color: var(--brand-900);
  background: var(--white);
}

.btn-ghost:hover {
  background: #eef2f7;
  border-color: var(--brand-900);
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.timeline article {
  border-left: 3px solid var(--brand-700);
  padding: 8px 0 10px 14px;
  margin: 0 0 8px;
}

.text-link {
  color: var(--brand-800);
  font-weight: 600;
}

.cv-contact-links a,
.cv-contact-links a:visited,
.cv-contact-links a:hover,
.cv-contact-links a:active {
  color: var(--brand-800);
  text-decoration: none;
  font-weight: 600;
}

.no-pad-top {
  padding-top: 22px;
}

.section-contact {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-row img {
  width: 220px;
  height: auto;
  background: #ffffff;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-text {
  text-align: right;
}

.footer-credit {
  margin-top: 4px;
  font-size: 0.9rem;
}

.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active {
  color: var(--muted);
  text-decoration: none;
}

body.cv-page {
  background: #fbfcfe;
}

body.cv-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Crect width='160' height='80' fill='none'/%3E%3Ctext x='10' y='28' font-family='IBM Plex Mono,monospace' font-size='16' fill='%23b8c2d1'%3E01 01 01%3C/text%3E%3Ctext x='50' y='62' font-family='IBM Plex Mono,monospace' font-size='16' fill='%23b8c2d1'%3E01 01%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 80px;
}

body.cv-page .site-header,
body.cv-page main,
body.cv-page .site-footer {
  position: relative;
  z-index: 1;
}

.home-content {
  position: relative;
  background: #fbfcfe;
}

.home-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Crect width='160' height='80' fill='none'/%3E%3Ctext x='10' y='28' font-family='IBM Plex Mono,monospace' font-size='16' fill='%23b8c2d1'%3E01 01 01%3C/text%3E%3Ctext x='50' y='62' font-family='IBM Plex Mono,monospace' font-size='16' fill='%23b8c2d1'%3E01 01%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 80px;
}

.home-content > section {
  position: relative;
  z-index: 1;
}

.policy {
  max-width: 860px;
}

.policy section {
  margin-top: 24px;
}

.policy-date {
  color: var(--muted);
  margin-top: -4px;
}

@media (max-width: 850px) {
  .hero-grid,
  .cards,
  .split {
    grid-template-columns: 1fr;
  }

  .nav {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-text {
    text-align: left;
  }
}
