:root {
  --ink: #101722;
  --muted: #5a6675;
  --line: #dbe3ee;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --navy: #071526;
  --petrol: #0d2a3a;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --violet-blue: #536dfe;
  --silver: #d8e4ef;
  --shadow: 0 18px 48px rgba(8, 21, 38, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

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

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: max-content;
}

.site-logo {
  flex: 0 0 auto;
  width: 230px;
  max-width: 230px;
  overflow: hidden;
}

.site-logo picture {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
}

.site-logo img,
.brand-logo {
  display: block;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.site-logo img {
  max-width: 230px !important;
  max-height: 44px !important;
}

.brand-isotype {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-logo {
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  max-height: 42px !important;
  margin: 0 0 1rem;
  filter: brightness(0) invert(1);
}

.brand strong,
.brand small {
  display: block;
}

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

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  margin-left: auto;
}

.primary-nav a,
.lang-switch {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  color: #263242;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 650;
  font-size: 0.92rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active,
.lang-switch:hover,
.lang-switch:focus-visible {
  color: var(--blue);
  background: #edf5ff;
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}

.menu-toggle i,
.menu-toggle i::before,
.menu-toggle i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle i {
  margin-left: 0.4rem;
  position: relative;
}

.menu-toggle i::before,
.menu-toggle i::after {
  position: absolute;
  left: 0;
}

.menu-toggle i::before {
  top: -6px;
}

.menu-toggle i::after {
  top: 6px;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 4.9rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: #dbe9f8;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero,
.page-hero {
  color: white;
  background:
    radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.2), transparent 34%),
    linear-gradient(135deg, var(--navy), var(--petrol) 58%, #111827);
}

.hero {
  padding: 5rem 0 4rem;
}

.page-hero {
  padding: 5rem 0;
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.trust-line {
  color: var(--silver);
  font-weight: 650;
}

.hero-media {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  padding: 4.75rem 0;
}

.section-muted {
  background: var(--soft);
}

.section-dark {
  color: white;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), transparent),
    linear-gradient(135deg, #071526, #132235);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading p,
.page-hero .lead {
  color: #d6e3f2;
}

.section-muted .section-heading p,
.section .section-heading p {
  color: var(--muted);
}

.split,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 2rem;
  align-items: start;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.panel,
.feature-card,
.content-block,
.metric-panel,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.panel,
.content-block,
.contact-form {
  padding: 1.35rem;
}

.card.subtle {
  box-shadow: none;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-card > div {
  padding: 1.25rem;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card > div {
  padding: 1.6rem;
}

.project-list {
  display: grid;
  gap: 1.25rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.24rem 0.62rem;
  border: 1px solid #cbd8e8;
  border-radius: 999px;
  color: #1f3c5b;
  background: #f7fbff;
  font-size: 0.82rem;
  font-weight: 650;
}

.tag-list.large span {
  min-height: 36px;
  font-size: 0.92rem;
}

.button,
.button-row .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  color: white;
  background: linear-gradient(135deg, var(--blue), #0891b2);
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
  outline: none;
}

.button-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button-ghost {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.button-small {
  min-height: 38px;
  padding: 0.52rem 0.8rem;
  font-size: 0.9rem;
}

.button:disabled {
  cursor: not-allowed;
  color: #6b7280;
  background: #e5e7eb;
}

.button-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button-row.right {
  justify-content: flex-end;
}

.button-row.center {
  justify-content: center;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.check-list,
.compact-list {
  padding-left: 1.15rem;
  margin: 1rem 0;
}

.check-list.columns {
  columns: 2;
  column-gap: 2rem;
}

.compact-list li,
.check-list li {
  break-inside: avoid;
  margin-bottom: 0.42rem;
}

.content-stack {
  display: grid;
  gap: 1.25rem;
}

.metric-panel {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--petrol));
}

.metric-panel strong {
  display: block;
  font-size: 5rem;
  line-height: 1;
}

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

.review-grid article {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.cv-card.is-pending {
  border-style: dashed;
}

.status-note,
.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.78rem;
  border: 1px solid #bdcad8;
  border-radius: 6px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, 0.18);
}

.direct-links {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.direct-links a {
  padding: 0.8rem 1rem;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.final-cta {
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.5), white);
}

.site-footer {
  color: #d9e6f4;
  background: #06111d;
  padding: 3rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 2rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  outline: none;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    order: 4;
    width: 100%;
    padding: 0 0 1rem;
  }

  .primary-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-actions {
    margin-left: 0;
  }

  .hero-grid,
  .split,
  .cta-grid,
  .feature-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .button-row.right {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, var(--container));
  }

  .hero,
  .page-hero,
  .section {
    padding: 3rem 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .primary-nav.is-open,
  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .check-list.columns {
    columns: 1;
  }

  .button,
  .button-row .button {
    width: 100%;
  }

  .button-row {
    align-items: stretch;
  }

  .brand small {
    display: none;
  }

  .site-logo {
    max-width: 48px;
  }

  .site-logo img {
    max-width: 42px;
    max-height: 42px;
  }
}
