:root {
  --font-body: "Inter", sans-serif;
  --font-heading: "DM Serif Display", serif;
  --bg: #eef3f7;
  --bg-soft: #eef3f7;
  --surface: #f7fdff;
  --surface-strong: #f7fdff;
  --text: #080e29;
  --muted: rgba(8, 14, 41, 0.65);
  --heading: #131b62;
  --line: rgba(0, 0, 0, 0.05);
  --line-strong: rgba(19, 27, 98, 0.4);
  --accent: #3754ed;
  --accent-soft: rgba(55, 84, 237, 0.1);
  --shadow-soft: 0 8px 20px rgba(8, 14, 41, 0.06);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1360px;
  --header-max-width: 1224px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(8, 14, 41, 0.012) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 14, 41, 0.012) 1px, transparent 1px);
  background-size: 180px 180px;
  opacity: 0.3;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 30px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: grid;
  width: min(100%, var(--header-max-width));
  margin-inline: auto;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(247, 253, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.primary-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
}

.primary-nav a[aria-current="page"],
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin-left: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.brand-text span,
.site-nav a,
.primary-nav a {
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.section-nav {
  position: sticky;
  top: 102px;
  z-index: 24;
  width: fit-content;
  max-width: calc(100% - 28px);
  margin: 10px auto 0;
  padding: 6px;
  gap: 3px;
  border: 1px solid rgba(19, 27, 98, 0.06);
  border-radius: 999px;
  background: rgba(230, 237, 244, 0.52);
  backdrop-filter: blur(12px) saturate(1.05);
  box-shadow: 0 5px 12px rgba(8, 14, 41, 0.025);
  max-height: 36px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  opacity: 0.88;
  transition: opacity 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  animation: section-nav-in 260ms ease both;
}

.is-page-scrolled .section-nav {
  opacity: 0.72;
  background: rgba(230, 237, 244, 0.44);
  box-shadow: 0 4px 10px rgba(8, 14, 41, 0.018);
}

.is-page-scrolled .section-nav:hover,
.is-page-scrolled .section-nav:focus-within {
  opacity: 0.95;
  background: rgba(236, 242, 248, 0.74);
}

.site-nav::-webkit-scrollbar {
  display: none;
}

@keyframes section-nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 36px;
  }
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--accent);
  background: rgba(247, 253, 255, 0.74);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.section-nav a.is-active {
  color: var(--accent);
  background: rgba(55, 84, 237, 0.1);
  box-shadow: inset 0 0 0 1px rgba(55, 84, 237, 0.16);
}

.header-actions,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface-strong);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 7px 13px;
  cursor: pointer;
  transition: transform 150ms ease, color 150ms ease, background-color 150ms ease;
}

.lang-button.is-active {
  background: var(--accent);
  color: #fff;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--heading);
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.button:hover,
.button:focus-visible,
.lang-button:hover,
.lang-button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--heading);
  box-shadow: 0 6px 16px rgba(55, 84, 237, 0.22);
}

.button-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--heading);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#header-contact-link {
  animation: header-contact-pulse 4.2s ease-out infinite;
}

@keyframes header-contact-pulse {
  0%,
  64%,
  100% {
    box-shadow: 0 0 0 0 rgba(55, 84, 237, 0);
  }

  18% {
    box-shadow: 0 0 0 5px rgba(55, 84, 237, 0.2);
  }

  38% {
    box-shadow: 0 0 0 9px rgba(55, 84, 237, 0);
  }
}

.section {
  padding: 48px 0;
  scroll-margin-top: 100px;
}

#top {
  scroll-margin-top: 100px;
}

.section-priority {
  padding-top: 62px;
}

.section-cta {
  padding-top: 52px;
  padding-bottom: 34px;
}

.hero {
  position: relative;
  isolation: isolate;
  margin-top: 20px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--surface-strong);
}

.hero.section {
  padding: 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(247, 253, 255, 0.76) 0%, rgba(238, 243, 247, 0.58) 100%);
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease-out;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 253, 255, 0.78) 0%, rgba(238, 243, 247, 0.62) 100%);
}

.hero-main,
.hero-panel {
  position: relative;
  z-index: 2;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1.38fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 3.6vw, 42px) 34px 18px;
}

.hero-visual {
  width: 100%;
  max-width: 300px;
  justify-self: center;
  align-self: start;
  display: grid;
  gap: 12px;
  padding-top: 46px;
}

.hero-portrait {
  margin: 0;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  align-self: center;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(15, 26, 43, 0.1);
}

.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  object-fit: cover;
}

.hero-copy {
  max-width: 88ch;
  min-height: 390px;
  display: grid;
  align-content: center;
}

.eyebrow,
.panel-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--heading);
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.9vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 13ch;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 4.15vw, 4.05rem);
  line-height: 0.96;
}

html[lang="fr"] .hero h1 {
  max-width: 20ch;
  font-size: clamp(2.05rem, 3.72vw, 3.64rem);
  line-height: 0.98;
}

html[lang="fr"] .hero-summary {
  max-width: 86ch;
  font-size: 0.9rem;
  line-height: 1.48;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 23ch;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.008em;
}

.hero-summary,
.lead,
.timeline-body,
.achievement-card p,
.method-card p,
.contact-copy,
.detail-card p,
.plain-list,
.contact-meta,
.experience-points,
.timeline-location,
.stat-label,
.chip {
  color: var(--muted);
  line-height: 1.62;
}

.hero-summary,
.lead,
.contact-copy {
  font-size: 1.02rem;
}

.hero-summary {
  max-width: 78ch;
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.hero-actions {
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.hero-actions .button {
  width: auto;
  min-height: 38px;
  padding-inline: 14px;
  white-space: nowrap;
}

.hero-panel {
  padding: 0 34px 26px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-strong);
}

.stat-value {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.38rem;
  font-weight: 700;
}

.stat-label {
  margin: 5px 0 0;
  font-size: 0.78rem;
  line-height: 1.42;
}

.section-heading {
  margin-bottom: 22px;
}

.two-column-layout,
.methods-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: 28px;
}

#about .two-column-layout {
  align-items: stretch;
}

.about-intro {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.detail-stack,
.methods-groups {
  display: grid;
  gap: 12px;
}

.detail-card,
.expertise-card,
.achievement-card,
.method-card,
.language-panel,
.timeline-item,
.contact-banner {
  padding: 22px;
}

.detail-card,
.expertise-card,
.achievement-card,
.method-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.detail-card:first-child {
  border-left: 3px solid var(--accent);
}

#about .detail-stack,
#about .detail-card:first-child,
#about .insight-flow {
  height: 100%;
}

#about .detail-card:first-child {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.about-support {
  margin: 0;
  width: 100%;
  max-width: none;
  padding-inline: 18px;
  box-sizing: border-box;
}

.insight-flow {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.insight-flow-heading {
  margin-bottom: 16px;
}

.insight-flow-title {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.insight-flow-stage {
  position: relative;
  --flow-edge-gap: clamp(16px, 3.2vw, 34px);
  padding-inline: var(--flow-edge-gap);
  padding-bottom: 42px;
  min-height: 0;
}

.insight-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.insight-flow-steps {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

.flow-step {
  width: min(360px, calc(50% - var(--flow-edge-gap)));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  transform: translateY(5px);
  cursor: pointer;
}

.flow-step:nth-child(odd) {
  align-self: flex-start;
}

.flow-step:nth-child(even) {
  align-self: flex-end;
  align-items: flex-end;
}

.flow-step:nth-child(even) .flow-step-label {
  text-align: right;
}

.flow-step:focus-visible {
  outline: 2px solid rgba(55, 84, 237, 0.36);
  outline-offset: 5px;
  border-radius: 8px;
}

.flow-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.flow-flag {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  mix-blend-mode: multiply;
  filter: saturate(0.88) drop-shadow(0 1px 2px rgba(47, 67, 89, 0.1));
}

.flow-step-label {
  margin: 0;
  max-width: 18ch;
  color: var(--heading);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.flow-step-desc {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(268px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 240ms ease-out,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 240ms;
  pointer-events: none;
}

.flow-step:nth-child(even) .flow-step-desc {
  left: auto;
  right: 0;
  text-align: right;
}

.flow-step.is-meta-open .flow-step-desc {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.flow-step.is-visible {
  animation: flow-step-settle 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flow-segment-mask {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.flow-segment-dashed {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke: rgba(19, 27, 98, 0.4);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4.5 8.5;
  opacity: 0;
}

.flow-segment-dashed.is-visible {
  opacity: 1;
}

.insight-flow.is-complete .flow-segment-dashed {
  opacity: 1;
}

@keyframes flow-step-settle {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }

  72% {
    opacity: 1;
    transform: translateY(-1px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.positioning-subtitle {
  margin: 8px 0 16px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.positioning-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.target-roles-band {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.target-roles-band h3 {
  margin-bottom: 12px;
}

.target-roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.target-roles-list li {
  opacity: 0;
  transform: translateY(6px);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(55, 84, 237, 0.14);
  border-radius: 999px;
  background: rgba(55, 84, 237, 0.055);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.reveal.is-visible .target-roles-list li {
  animation: target-role-in 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--role-index) * 85ms);
}

@keyframes target-role-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1140px) {
  .positioning-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .positioning-pillars {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.pillar-block {
  padding: 14px;
  border-radius: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.pillar-block strong {
  display: block;
  font-size: 0.87rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.pillar-block p {
  margin: 0;
  font-size: 0.80rem;
  color: var(--muted);
  line-height: 1.54;
}

.plain-list {
  margin: 12px 0 0;
  list-style: none;
  padding: 0;
}

.plain-list li + li {
  margin-top: 8px;
}

.plain-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-1px);
}

.card-grid,
.achievement-grid {
  display: grid;
  gap: 12px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.achievement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-highlights-wrap {
  margin-top: 22px;
}

.case-highlights-title {
  margin: 0 0 12px;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
}

.case-highlights-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.case-highlight-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  align-content: start;
  opacity: 0;
  transform: translateY(8px);
  animation: case-highlight-in 420ms ease forwards;
}

.case-highlight-card-primary {
  grid-column: span 6;
  min-height: 154px;
}

.case-highlight-card-secondary {
  grid-column: span 4;
  min-height: 138px;
}

.case-highlight-card h4 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.25;
}

.case-highlight-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.52;
}

.case-highlight-outcome {
  margin: 2px 0 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.case-highlight-outcome span {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-highlight-outcome strong {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(55, 84, 237, 0.28);
  background: rgba(55, 84, 237, 0.08);
  color: var(--accent);
  font-size: 0.81rem;
  line-height: 1.35;
  font-weight: 700;
}

.case-stats-wrap {
  margin-top: 14px;
}

.case-stats-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.case-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.case-stat-pill {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.case-stat-value {
  margin: 0;
  color: var(--accent);
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 700;
}

.case-stat-label {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

@keyframes case-highlight-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.expertise-card,
.achievement-card,
.method-card {
  padding: 18px;
}

.expertise-card {
  background: var(--surface-strong);
}

.expertise-card h3,
.achievement-card h3,
.method-card h3,
.detail-card h3 {
  margin-bottom: 9px;
}

.playbook-teaser-section {
  padding-top: 20px;
}

.playbook-teaser {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(247, 253, 255, 0.96), rgba(247, 253, 255, 0.86));
  box-shadow: var(--shadow-soft);
}

.playbook-teaser .section-heading {
  margin-bottom: 16px;
}

.playbook-teaser-body {
  max-width: 72ch;
  margin: 10px 0 0;
}

.playbook-teaser-cards {
  position: relative;
  overflow: hidden;
  padding: 2px 0 10px;
  --teaser-fade: 34px;
}

.playbook-teaser-cards::before,
.playbook-teaser-cards::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 8px;
  width: var(--teaser-fade);
  pointer-events: none;
}

.playbook-teaser-cards::before {
  left: 0;
  background: linear-gradient(90deg, rgba(247, 253, 255, 0.98), rgba(247, 253, 255, 0));
}

.playbook-teaser-cards::after {
  right: 0;
  background: linear-gradient(270deg, rgba(247, 253, 255, 0.92), rgba(247, 253, 255, 0));
}

.playbook-teaser-cards::-webkit-scrollbar {
  display: none;
}

.playbook-teaser-track {
  display: flex;
  width: max-content;
  gap: 10px;
  padding-inline: var(--teaser-fade);
  animation: playbook-teaser-scroll 34s linear infinite;
  will-change: transform;
}

.playbook-teaser-cards:hover .playbook-teaser-track,
.playbook-teaser-cards:focus-within .playbook-teaser-track {
  animation-play-state: paused;
}

@keyframes playbook-teaser-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 5px));
  }
}

.playbook-mini-card {
  flex: 0 0 min(220px, 78vw);
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  box-shadow: 0 6px 14px rgba(8, 14, 41, 0.035);
}

.playbook-mini-card span {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.playbook-mini-card h3 {
  margin: 0;
  font-size: 1rem;
}

.playbook-mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.playbook-teaser-link {
  margin-top: 12px;
}

.chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.timeline-period {
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 700;
}

.timeline-location {
  margin-top: 5px;
  font-size: 0.83rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.06rem;
}

.company-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.timeline-company {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.company-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 30px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.company-logo-wrap.logo-square {
  width: 44px;
  height: 44px;
  padding: 5px;
}

.timeline-body {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

.experience-points {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
}

.experience-points li {
  position: relative;
  padding-left: 13px;
}

.experience-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.methods-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.language-panel {
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.language-list {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.language-list li {
  margin: 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.lang-flag {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.language-list li::before {
  display: none;
}

.language-list li span:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--heading);
  font-size: 0.79rem;
  font-weight: 600;
  background: var(--surface-strong);
}

.contact-banner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 0.64fr);
  gap: 26px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.contact-meta {
  margin: 12px 0 0;
  font-size: 0.88rem;
}

.contact-actions {
  justify-content: center;
  gap: 10px;
  width: min(100%, 560px);
}

.contact-panel {
  display: grid;
  gap: 20px;
  justify-items: center;
  align-content: center;
  position: relative;
}

.callback-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  row-gap: 14px;
  column-gap: 18px;
  width: min(100%, 520px);
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0.76;
}

.callback-form:focus-within,
.callback-form:hover {
  opacity: 1;
  background: transparent;
}

.form-row {
  display: grid;
  gap: 0;
}

.callback-form > .form-row:first-child,
.callback-comment,
.callback-error {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(19, 27, 98, 0.16);
  border-radius: 0;
  background: transparent;
  color: var(--heading);
  padding: 10px 2px 11px;
  outline: none;
  resize: vertical;
  font-size: 0.92rem;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.2;
  transition: border-color 150ms ease, opacity 150ms ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(8, 14, 41, 0.42);
  opacity: 1;
  font-weight: 500;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: rgba(55, 84, 237, 0.56);
  box-shadow: none;
}

.phone-input-group {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(19, 27, 98, 0.16);
  transition: border-color 150ms ease;
  position: relative;
}

.phone-input-group::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--heading);
  opacity: 0.72;
  transform: translateY(-36%);
  pointer-events: none;
}

.phone-input-group:focus-within {
  border-color: rgba(55, 84, 237, 0.56);
  box-shadow: none;
}

.phone-input-group select,
.phone-input-group input {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
}

.phone-input-group select:focus,
.phone-input-group input:focus {
  box-shadow: none;
}

.phone-input-group select {
  flex: 0 0 72px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-right: 0;
  padding: 10px 4px 11px 18px;
  cursor: pointer;
}

.phone-input-group input {
  flex: 1 1 auto;
  min-width: 0;
}

.callback-form .button {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 40px;
  margin-top: 4px;
  padding-inline: 18px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.callback-comment {
  opacity: 0.42;
  transition: opacity 160ms ease;
}

.callback-comment:focus-within,
.callback-comment:hover {
  opacity: 1;
}

.callback-comment input {
  background: transparent;
}

.callback-error {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: -3px 0 0;
  color: #c23b4b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.callback-form:not(.has-error) .callback-error {
  display: none;
}

.callback-privacy-note {
  grid-column: 1 / -1;
  order: 1;
  max-width: none;
  justify-self: start;
  margin: -8px 0 -4px;
  color: rgba(8, 14, 41, 0.38);
  font-size: 0.61rem;
  line-height: 1.25;
}

.callback-form .button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.callback-form .button {
  grid-column: 2;
  order: 2;
}

.callback-toast {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(92vw, 420px);
  padding: 14px 17px 14px 14px;
  border: 1px solid rgba(31, 155, 87, 0.24);
  border-radius: 999px;
  background: rgba(247, 253, 255, 0.96);
  box-shadow: 0 14px 34px rgba(8, 14, 41, 0.14);
  color: var(--heading);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 260ms;
  pointer-events: none;
}

.callback-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}

.callback-toast-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(38, 166, 91, 0.12);
  border: 1px solid rgba(38, 166, 91, 0.34);
}

.callback-toast-icon::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid #1f9b57;
  border-bottom: 2px solid #1f9b57;
  transform: rotate(-45deg) translate(1px, -1px);
}

.callback-toast strong {
  font-size: 0.93rem;
  line-height: 1.35;
}

.contact-actions .button {
  animation: contact-wave 4.8s ease-out infinite;
}

.contact-actions .button:nth-child(1) {
  animation-delay: 0s;
}

.contact-actions .button:nth-child(2) {
  animation-delay: 0.55s;
}

.contact-actions .button:nth-child(3) {
  animation-delay: 1.1s;
}

.contact-actions .button:nth-child(4) {
  animation-delay: 1.65s;
}

@keyframes contact-wave {
  0%,
  65%,
  100% {
    box-shadow: 0 0 0 0 rgba(29, 63, 105, 0);
  }

  18% {
    box-shadow: 0 0 0 5px rgba(55, 84, 237, 0.22);
  }

  38% {
    box-shadow: 0 0 0 9px rgba(29, 63, 105, 0);
  }
}

.site-footer {
  margin-top: 0;
  padding: 52px 0 40px;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  border-top: 1px solid var(--line);
}

.footer-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-tagline {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 150ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-sep {
  color: var(--line);
  font-size: 0.9rem;
  user-select: none;
}

.footer-copy {
  margin: 20px 0 0;
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  font-size: 0.76rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 880ms ease, transform 880ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1140px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: stretch;
    text-align: left;
    gap: 12px;
    border-radius: 999px;
  }

  .hero-main,
  .two-column-layout,
  .methods-layout,
  .contact-banner {
    grid-template-columns: 1fr;
  }

  #about .detail-card:first-child,
  #about .insight-flow {
    height: auto;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 16px;
  }

  .section-nav {
    top: 108px;
  }

  .flow-step {
    width: min(100%, 320px);
  }

  .positioning-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-main {
    gap: 20px;
  }

  .hero-portrait {
    max-width: 260px;
  }

  .hero-visual {
    max-width: 260px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .achievement-grid,
  .methods-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-highlights-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .case-highlight-card-primary {
    grid-column: span 3;
  }

  .case-highlight-card-secondary {
    grid-column: span 3;
  }

  .case-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: center;
  }

  .contact-panel {
    max-width: 640px;
    justify-items: center;
  }

  .callback-form {
    grid-template-columns: 1fr;
  }

.callback-form .button {
  grid-column: 1 / -1;
}
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .section,
  .section-priority,
  .section-cta {
    padding-top: 36px;
    padding-bottom: 30px;
  }

  .hero-main,
  .hero-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    border-radius: 18px;
  }

  .primary-nav {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }

  .hero-main {
    padding-top: 22px;
    padding-bottom: 14px;
  }

  .hero-panel {
    padding-bottom: 18px;
  }

  .hero-portrait {
    max-width: 100%;
  }

  .hero-visual {
    max-width: 100%;
  }

  .hero-portrait img {
    min-height: 300px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .section-nav {
    top: 190px;
    width: max-content;
    max-width: calc(100% - 24px);
  }

  .insight-flow {
    padding: 16px;
  }

  .flow-step,
  .flow-step:nth-child(even),
  .flow-step:nth-child(odd) {
    width: 100%;
    align-self: stretch;
    align-items: flex-start;
  }

  .flow-step-desc,
  .flow-step:nth-child(even) .flow-step-desc {
    left: 0;
    right: auto;
    width: min(268px, 100%);
    text-align: left;
  }

  h1 {
    font-size: clamp(2rem, 9.2vw, 3rem);
    max-width: none;
  }

  h2 {
    font-size: clamp(1.5rem, 7.2vw, 2.2rem);
  }

  .stats-grid,
  .card-grid,
  .achievement-grid,
  .methods-groups,
  .positioning-pillars,
  .case-highlights-grid,
  .case-stats-strip,
  .callback-form {
    grid-template-columns: 1fr;
  }

  .case-highlight-card-primary,
  .case-highlight-card-secondary {
    grid-column: span 1;
    min-height: 0;
  }

  .detail-card,
  .language-panel,
  .contact-banner {
    padding: 18px;
  }

  .button {
    width: 100%;
  }

  .company-logo-wrap {
    width: 82px;
    height: 28px;
  }

  .header-actions,
  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .playbook-teaser-cards {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .playbook-teaser-cards::before,
  .playbook-teaser-cards::after {
    display: none;
  }

  .playbook-teaser-track {
    animation: none;
    padding-inline: 0;
  }

  .playbook-mini-card {
    scroll-snap-align: start;
  }

  .phone-input-group {
    display: flex;
    border-radius: 0;
  }

  .phone-input-group select {
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .lang-button,
  .site-nav a::after,
  .hero-background,
  .contact-actions .button,
  #header-contact-link,
  .flow-step,
  .flow-segment-mask,
  .flow-segment-dashed {
    animation: none;
  }

  .playbook-teaser-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .flow-step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flow-step-desc {
    transition: none;
  }

  .flow-step.is-visible {
    animation: none;
  }

  .flow-segment-mask,
  .flow-segment-dashed {
    opacity: 1;
  }
}
