:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #f0f4ff;
  --text: #111827;
  --muted: #526075;
  --accent: #1d4ed8;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --border: #d8deea;
  --success: #0f766e;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.12), transparent 34%),
    linear-gradient(180deg, #fcfcff 0%, var(--bg) 36%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding-left: 1.2rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 222, 234, 0.7);
  background: rgba(246, 247, 251, 0.84);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.84rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a,
.lang-toggle,
.back-link {
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a:hover,
.lang-toggle:hover,
.back-link:hover {
  color: var(--text);
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
}

.hero,
.section {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(216, 222, 234, 0.55);
  border-bottom: 1px solid rgba(216, 222, 234, 0.55);
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: start;
}

.eyebrow,
.section-kicker,
.profile-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h1,
.section h2,
.profile-panel h2 {
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1,
.section h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  max-width: 13.5ch;
}

.section h2,
.profile-panel h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
}

.lead,
.section-copy,
.section-heading p,
.profile-panel p,
.card p,
.case-card p,
.service-card p,
.legal-section p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.04rem;
  max-width: 58ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.contact-chip:hover,
.service-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.26);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-list,
.check-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-list,
.check-list {
  padding-left: 1.15rem;
}

.profile-panel,
.list-card,
.contact-panel,
.card,
.case-card,
.service-card,
.expert-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-panel,
.list-card,
.contact-panel,
.expert-details {
  padding: 1.5rem;
}

.profile-panel {
  width: min(100%, 410px);
  justify-self: end;
  padding: 1.25rem;
}

.portrait-frame {
  width: min(100%, 280px);
  margin-bottom: 0.8rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.12), rgba(29, 78, 216, 0.03));
  border: 1px solid rgba(29, 78, 216, 0.12);
  aspect-ratio: 4 / 5;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-panel .profile-label {
  margin-bottom: 0.55rem;
}

.profile-panel h2 {
  margin-bottom: 0.55rem;
  line-height: 1.12;
}

.profile-panel p {
  font-size: 0.96rem;
  line-height: 1.6;
}

.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.fact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-grid,
.case-grid,
.service-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

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

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

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

.card,
.case-card,
.service-card {
  padding: 1.35rem;
}

.card h3,
.case-card h3,
.service-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}

.case-card p + p {
  margin-top: 0.7rem;
}

.case-card strong {
  color: var(--text);
}

.section-heading {
  max-width: 72ch;
}

.section-heading h2,
.section-heading h1 {
  margin-bottom: 0.9rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
}

.contact-actions {
  display: grid;
  gap: 0.8rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.8rem 1rem;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid rgba(216, 222, 234, 0.7);
  background: rgba(255, 255, 255, 0.66);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 2.2rem;
}

.footer-inner p,
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-body {
  background: linear-gradient(180deg, #fbfcff 0%, #f4f6fb 100%);
}

.legal-main {
  padding: 4rem 0 5rem;
}

.legal-container {
  width: min(860px, calc(100% - 2rem));
}

.legal-container h1 {
  margin: 1rem 0 1.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-section + .legal-section {
  margin-top: 2rem;
}

.legal-section h2 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.updated-label {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.internal-main {
  min-height: calc(100vh - 90px);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(82, 96, 117, 0.08);
  color: var(--muted);
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-scope {
  background: var(--accent-soft);
  color: var(--accent);
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  color: var(--accent);
  font-weight: 700;
}

.expert-details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.expert-details summary::-webkit-details-marker {
  display: none;
}

.expert-details[open] summary {
  margin-bottom: 1rem;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .split-grid,
  .contact-panel,
  .card-grid,
  .case-grid,
  .service-grid,
  .service-grid-secondary {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    align-items: flex-start;
  }

  .profile-panel {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .hero,
  .section {
    padding: 3.5rem 0;
  }

  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .hero h1,
  .section h1 {
    max-width: none;
  }

  .footer-inner,
  .service-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .badge-row {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ---------------------------------------------------- */
/* Positioning refresh: engagement, methodology, spotlights subtitle */
/* ---------------------------------------------------- */

/* Case-card subtitle (under h3 in project spotlights) */
.case-card__subtitle {
  margin-top: -0.4rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Engagement cards – sub-layout on top of existing .card */
.engagement-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.engagement-card__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.4rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid rgba(29, 78, 216, 0.08);
}

.engagement-card__meta > dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.engagement-card__meta > dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  align-self: center;
}

.engagement-card__goal {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.engagement-card__goal strong {
  color: var(--text);
}

.engagement-card__deliverables-label {
  margin: 0.4rem 0 -0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.engagement-card__list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

.engagement-card__list li::marker {
  color: var(--accent);
}

/* Methodology – definition list as a 2-column grid */
.methodology-list {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 3fr;
  column-gap: 2.5rem;
  row-gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.methodology-list > dt {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  padding-top: 0.15rem;
}

.methodology-list > dt::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: middle;
}

.methodology-list > dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Responsive collapse */
@media (max-width: 1040px) {
  .engagement-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .methodology-list {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
    padding: 1.25rem;
  }

  .methodology-list > dt {
    padding-top: 0.5rem;
  }

  .methodology-list > dd {
    margin-bottom: 0.5rem;
  }

  .engagement-card__meta {
    grid-template-columns: 1fr;
    row-gap: 0.2rem;
  }

  .engagement-card__meta > dd {
    margin-bottom: 0.35rem;
  }
}

/* Digital business card + modal */
.vcard-card {
  width: 300px;
  max-width: 100%;
  background: var(--surface);
  border-radius: 16px;
  border: 0.5px solid rgba(17, 24, 39, 0.1);
  overflow: hidden;
}
.vcard-card__head {
  background: var(--accent);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vcard-card__brand { color: #bfdbfe; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; }
.vcard-card__name { color: #fff; font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.vcard-card__role { color: #dbeafe; font-size: 0.85rem; }
.vcard-card__contacts {
  list-style: none;
  margin: 0;
  padding: 16px 22px 4px;
  display: grid;
  gap: 2px;
}
.vcard-card__contacts li { display: flex; align-items: center; gap: 11px; padding: 7px 0; font-size: 0.86rem; }
.vcard-card__contacts a { color: var(--text); }
.vcard-card__contacts a:hover { color: var(--accent); }
.vcard-card__contacts svg { flex: none; width: 16px; height: 16px; }
.vcard-card__qr {
  padding: 12px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 0.5px solid rgba(17, 24, 39, 0.1);
  margin-top: 8px;
}
.vcard-card__qr img { border: 0.5px solid rgba(17, 24, 39, 0.1); border-radius: 8px; }
.vcard-card__save { width: 100%; }

.vcard-modal { display: none; }
.vcard-modal:target {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.vcard-modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.vcard-modal__dialog { position: relative; z-index: 1; }
.vcard-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
}
.card-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.card-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
@media (max-width: 720px) {
  .vcard-modal:target {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .vcard-modal__dialog {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    display: flex;
  }

  .vcard-modal .vcard-card {
    width: 100%;
    max-width: none;
    min-height: 100%;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
  }

  .vcard-modal .vcard-card__contacts {
    flex: 1;
  }

  .vcard-modal__close {
    top: 12px;
    right: 12px;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  }
}
