:root {
  --primary: #39a0ed;
  --ink: #062c44;
  --card: #ffffff;
  --muted: #4a6a7f;
  --surface: #f6f9fb;
  --accent: #39a0ed;
  --accent-2: #1b5d8c;
  --border: #e2e8ed;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(6, 44, 68, 0.06), 0 6px 16px rgba(6, 44, 68, 0.04);
  --mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  font-size: 17px;
  background: #ffffff;
  min-height: 100vh;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 250px;
  padding-right: 250px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
  .hero-overlay-content {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (max-width: 720px) {
  .container {
    padding-left: 0;
    padding-right: 0;
    margin-left: 20px;
    margin-right: 20px;
    width: auto;
  }
}

/* ── Header ── */

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

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 12px;
}

.logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: none;
  display: inline-block;
  overflow: hidden;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-links a.active {
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--ink);
  color: #ffffff;
  box-shadow: none;
  letter-spacing: -0.01em;
}

.btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 44, 68, 0.15);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--surface);
  border-color: #c8d4dc;
}

/* ── Sections ── */

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section h1,
.section h2,
.section h3,
.section h4 {
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section h1 {
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.section h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
}

/* ── Grid ── */

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-3 > .card,
.grid-3 > .card-link > .card,
.grid-3 > article {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.grid-3 > .card-link {
  display: flex;
}

.grid-3 .card p {
  flex: 1;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ── Cards ── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: #c8d4dc;
}

.card::before {
  display: none;
}

.card h3 {
  margin-top: 0;
}

.card-arrow {
  display: block;
  text-align: right;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.15s ease;
}

.card-link:hover .card-arrow {
  color: var(--accent-2);
}

.promise-card {
  margin-top: 24px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.promise-card--split {
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
}

.promise-text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 12px 0 0;
}

.promise-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.promise-graphic {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promise-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.promise-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  border-color: rgba(57, 160, 237, 0.15);
}

.promise-ring:nth-child(2) {
  width: 72%;
  height: 72%;
  border-color: rgba(57, 160, 237, 0.25);
}

.promise-ring:nth-child(3) {
  width: 44%;
  height: 44%;
  border-color: rgba(57, 160, 237, 0.4);
  background: rgba(57, 160, 237, 0.04);
}

.promise-icon {
  font-size: 2.4rem;
  z-index: 1;
  line-height: 1;
}

.promise-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ── Meta ── */

.meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-row .small {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

/* ── Tags & Chips ── */

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  line-height: 1.4;
}

.card .tag {
  margin-bottom: 10px;
}

.chip {
  background: var(--surface);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Hero ── */

.hero {
  padding-top: 0;
  padding-bottom: 0;
  border-top: none !important;
}

.about-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 720px;
  min-height: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: block;
}

.hero-image-card > img,
.hero-image-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.hero-overlay {
  position: relative;
  inset: auto;
  background: linear-gradient(to right, rgba(6, 44, 68, 0.72) 0%, rgba(6, 44, 68, 0.35) 55%, transparent 100%);
  display: flex;
  align-items: stretch;
}

.hero-overlay-content {
  padding: clamp(32px, 6vw, 72px) 250px;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-overlay-content h1 {
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-logo {
  height: 56px;
  width: auto;
  margin-bottom: 96px;
  object-fit: contain;
}

.hero-title span {
  display: block;
}

.section .hero-title {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-overlay-content .lead {
  color: rgba(255, 255, 255, 0.92);
  margin: 40px 0 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: clamp(24px, 5vw, 56px);
}

.hero-cta .btn {
  background: #ffffff;
  color: var(--ink);
}

.hero-cta .btn:hover {
  background: var(--surface);
}

.hero-cta .btn.secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-cta .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Layout helpers ── */

.ring {
  display: none;
}

.panel {
  position: absolute;
  inset: 12%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: var(--ink);
}

.panel h4 {
  margin: 0 0 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.metric {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.metric strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 4px;
  font-weight: 700;
}

/* ── Profile card ── */

.profile-photo-card {
  width: min(420px, 100%);
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: block;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* ── Testimonials ── */

.reference {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #ffffff;
}

.list-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 0;
  margin-top: auto;
  color: #ffffff;
  background: var(--ink);
}

.footer .meta-row {
  padding-top: 16px;
  padding-bottom: 16px;
}

.footer .small {
  color: rgba(255, 255, 255, 0.6);
}

.footer .list-inline a {
  padding: 6px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease, background 0.15s ease;
}

.footer .list-inline a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Split layout ── */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

.equal-cards {
  align-items: stretch;
}

.equal-cards > .card,
.equal-cards > .contact-card {
  height: 100%;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* ── Forms ── */

form {
  display: grid;
  gap: 12px;
}

.form-status {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
}

.form-status.error {
  background: #fef3f2;
  border-color: #fecaca;
  color: #991b1b;
}

.legal-content h3 {
  margin-top: 28px;
}

/* ── Cookie banner ── */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(6, 44, 68, 0.12);
  z-index: 20;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner .small {
  margin-top: 4px;
  display: block;
}

/* ── Inputs ── */

input,
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(57, 160, 237, 0.12);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

option {
  background: #ffffff;
  color: var(--ink);
}

/* ── Badge ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
}

/* ── Timeline ── */

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  position: relative;
  padding-left: 28px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── Blog ── */

.blog-grid .card {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card-link {
  display: block;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

.blog-grid .card:hover {
  transform: translateY(-2px);
  border-color: #c8d4dc;
  box-shadow: 0 4px 20px rgba(6, 44, 68, 0.08);
}

.post-header {
  margin-bottom: 24px;
}

.post-body p {
  margin-top: 0;
  margin-bottom: 16px;
}

/* ── News ── */

.news-feed {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.news-column {
  padding-top: 22px;
}

.news-item {
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
}

/* ── Utility ── */

.small {
  color: var(--muted);
  font-size: 0.88rem;
}

.highlight {
  color: var(--accent-2);
}

/* ── Logo marquee ── */

.logo-marquee {
  overflow: hidden;
  padding: 20px 0;
  margin-bottom: 24px;
}

.logo-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.logo-item {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.5;
  letter-spacing: 0.02em;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Value cards ── */

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.value-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 20px;
  padding: 32px 28px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.value-item:nth-child(2n) {
  border-right: none;
}

.value-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.value-num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  padding-top: 2px;
}

.value-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .values-list {
    grid-template-columns: 1fr;
  }

  .value-item {
    border-right: none;
    padding: 24px 0;
  }

  .value-item:last-child {
    border-bottom: none;
  }
}

/* ── Roadmap ── */

.roadmap {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.roadmap-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.roadmap-step:last-child {
  border-bottom: none;
}

.roadmap-step-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 2px;
  text-align: right;
}

.roadmap-step--final .roadmap-step-num {
  color: var(--primary);
}

.roadmap-step-content h3 {
  margin: 0 0 6px;
}

.roadmap-step-content p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .roadmap-step {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 0;
  }

  .roadmap-step-num {
    text-align: left;
  }
}

/* ── CV Table ── */

.cv-table {
  display: grid;
  gap: 0;
}

.cv-row {
  display: grid;
  grid-template-columns: 140px 24px 1fr;
  gap: 0 16px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.cv-row:last-child {
  border-bottom: none;
}

.cv-period {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 2px;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.cv-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  margin-top: 7px;
  position: relative;
}

.cv-row--active .cv-indicator {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(57, 160, 237, 0.15);
}

.cv-detail strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.cv-org {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-top: 2px;
}

.cv-detail p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .cv-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 0;
  }

  .cv-indicator {
    display: none;
  }
}

/* ── Mobile menu toggle ── */

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.mobile-nav {
  display: none;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-bar {
    flex-wrap: wrap;
  }

  .nav-bar .btn {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
  }

  .hero {
    padding-top: 0;
    padding-bottom: 0;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section h1 {
    font-size: 1.6rem;
  }

  .section h2 {
    font-size: 1.25rem;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-image-card {
    height: auto;
    min-height: 400px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-overlay-content {
    padding: 24px;
  }

  .hero-overlay-content .lead {
    font-size: 0.9rem;
  }

  .about-hero {
    gap: 24px;
  }

  .profile-photo-card {
    height: 300px;
  }

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

  .grid-3 > .card,
  .grid-3 > .card-link > .card,
  .grid-3 > article {
    height: auto;
  }

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

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

  .promise-card {
    padding: 24px;
  }

  .promise-card--split {
    grid-template-columns: 1fr;
  }

  .promise-visual {
    min-height: 180px;
  }

  .promise-graphic {
    width: 180px;
    height: 180px;
  }

  .card {
    padding: 20px;
  }

  .footer .meta-row {
    flex-direction: column;
    gap: 12px;
  }

  .cookie-banner {
    flex-direction: column;
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
  }
}
