:root {
  --ink: #10233a;
  --ink-soft: #3d5168;
  --paper: #f5f8fc;
  --paper-2: #eaf1f8;
  --blue: #1a6fd4;
  --blue-dark: #0e4ea8;
  --navy: #0b2a4a;
  --mute: #61758a;
  --line: #d5e2ef;
  --white: #ffffff;
  --blue-soft: #e7f1fb;
  --shadow: 0 16px 36px rgba(16, 35, 58, 0.08);
  --sans: "Montserrat", "Segoe UI", sans-serif;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
.serif {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

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

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 248, 252, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-mark {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--navy);
}

.brand span {
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: var(--white) !important;
  text-decoration: none;
  padding: 0.7rem 1.05rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.hero {
  padding: 4.2rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.6rem;
  align-items: center;
}

.hero-media {
  margin: 0;
  height: min(500px, 58vw);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-media img {
  animation: heroZoom 12s ease-out forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
}

.hero h1 {
  margin: 0.85rem 0 1.05rem;
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  max-width: 16ch;
}

.hero p {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 111, 212, 0.28);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy);
}

.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.6rem;
}

.signal {
  background: var(--white);
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--blue);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.signal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.signal strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}

.signal span {
  color: var(--mute);
  font-size: 0.9rem;
}

section {
  padding: 4.4rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.kicker {
  color: var(--blue);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
}

.lede {
  margin: 0;
  color: var(--ink-soft);
}

.about {
  background: var(--navy);
  color: var(--white);
}

.about h2 {
  color: var(--white);
}

.about .kicker {
  color: #8ec0ff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: stretch;
}

.about p {
  font-size: 1.05rem;
  color: #d7e4f2;
}

.about-media {
  margin: 0;
  position: relative;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
}

.about-media img {
  transform: scale(1.04);
  transition: transform 1.1s ease;
}

.about-media:hover img {
  transform: scale(1.1);
}

.quote {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--blue);
  background: rgba(11, 42, 74, 0.86);
  backdrop-filter: blur(8px);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.expertise-list {
  display: grid;
  gap: 1rem;
}

.expertise {
  display: grid;
  grid-template-columns: 220px 4.2rem 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expertise:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.expertise-media {
  margin: 0;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
}

.expertise-media img,
.card-media img {
  transition: transform 0.5s ease;
}

.expertise:hover img,
.card:hover img {
  transform: scale(1.06);
}

.expertise b {
  font-size: 1rem;
  color: var(--blue);
  font-weight: 700;
}

.expertise h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.expertise p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

.odoo {
  background: var(--paper-2);
}

.odoo-logo {
  width: min(140px, 40%);
  height: auto;
  margin: 0 0 0.85rem;
}

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

.card,
.aid,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-media {
  margin: -1.4rem -1.4rem 1.1rem;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card h3,
.aid h3 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.2rem;
}

.card p,
.aid p {
  margin: 0;
  color: var(--ink-soft);
}

.extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.aid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: center;
}

.aid a {
  color: var(--blue);
  font-weight: 600;
}

.aid-visual {
  margin: 0;
  min-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy);
}

.portrait {
  margin-top: 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.founder {
  background: var(--white);
}

.page-hero {
  padding-top: 3rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  margin: 0.4rem 0 1rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
  align-items: start;
}

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.cv-item {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cv-item span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.cv-item p {
  margin: 0;
  color: var(--ink-soft);
}

.portrait-panel {
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  color: var(--white);
  border: 1px solid var(--line);
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center 12%;
}

.portrait-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.3rem 1.1rem;
  background: linear-gradient(transparent, rgba(11, 42, 74, 0.88));
  display: flex;
  flex-direction: column;
}

.portrait-caption span {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #b9d4f3;
  font-weight: 600;
}

.leexi {
  padding-bottom: 1rem;
}

.leexi-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}

.leexi-logo {
  width: min(220px, 70%);
  height: auto;
  margin-bottom: 0.8rem;
}

.leexi-copy p {
  color: var(--ink-soft);
  max-width: 52ch;
}

.leexi-card .btn {
  margin-top: 0.6rem;
}

.leexi-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.leexi-points li {
  padding: 1rem 1.1rem;
  background: var(--paper);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.leexi-points strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.leexi-points span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.contact {
  padding-bottom: 5rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

.contact-panel > div {
  padding: 1.8rem 1.7rem 1.5rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 0.2rem;
}

.contact-visual {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
}

.contact-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.meta {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.meta li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.meta a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.meta small {
  display: block;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
}

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

input:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--blue) 45%, transparent);
  border-color: var(--blue);
  background: var(--white);
}

.hp {
  position: absolute;
  left: -9999px;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.alert-ok {
  background: #e7f3ea;
  color: #215c32;
}

.alert-err {
  background: #fdecea;
  color: #8a2b21;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--mute);
  font-size: 0.88rem;
  background: var(--white);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
}

.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--navy);
  color: #d7e4f2;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 18px 40px rgba(11, 42, 74, 0.28);
}

.cookie-inner p {
  margin: 0;
}

#cookie-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

#cookie-desc {
  font-size: 0.9rem;
  max-width: 62ch;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.signals .signal:nth-child(2) { transition-delay: 0.08s; }
.signals .signal:nth-child(3) { transition-delay: 0.16s; }

.is-visible {
  animation: fadeUp 0.65s ease both;
}

.hero-grid > div {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .expertise,
  .card,
  .signal,
  .leexi-card,
  .contact-card,
  .portrait-panel,
  .cv-item,
  .hero-grid > div {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: var(--paper);
    padding: 1rem 1.2rem 1.4rem;
    border-bottom: 1px solid var(--line);
    gap: 0.9rem;
  }

  .nav.open .nav-cta {
    display: inline-flex;
    width: fit-content;
    margin: 0 1.2rem 1rem auto;
  }

  .signals,
  .section-head,
  .about-grid,
  .cards,
  .extras,
  .aid,
  .portrait,
  .contact-panel,
  .hero-grid,
  .expertise,
  .profile-grid,
  .cv-item,
  .leexi-card {
    grid-template-columns: 1fr;
  }

  .hero-media {
    height: 240px;
  }

  .contact-visual img {
    min-height: 220px;
  }

  .about-media {
    min-height: 280px;
  }

  .expertise-media {
    height: 190px;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .cookie-inner,
  .cookie-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  section {
    padding: 3rem 0;
  }
}
