:root {
  --bg: #11161a;
  --bg-strong: #090c10;
  --surface: rgba(23, 28, 33, 0.92);
  --surface-strong: #252d33;
  --surface-soft: #1c252b;
  --text: #f2ece8;
  --muted: #b8c2c8;
  --accent: #539ba8;
  --accent-bright: #61b0c5;
  --accent-deep: #3a8c97;
  --accent-soft: rgba(83, 155, 168, 0.22);
  --warm: #caaea0;
  --warm-strong: #a88c72;
  --taupe: #5a5659;
  --line: rgba(97, 176, 197, 0.14);
  --line-strong: rgba(97, 176, 197, 0.28);
  --max: 1160px;
  --radius: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --page-surface: linear-gradient(180deg, rgba(27, 34, 39, 0.96), rgba(17, 21, 26, 0.96));
  --card-surface: linear-gradient(180deg, rgba(28, 40, 47, 0.96), rgba(23, 31, 37, 0.96));
}

* {
  box-sizing: border-box;
}

/* Base */

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(97, 176, 197, 0.22), transparent 28%),
    radial-gradient(circle at bottom left, rgba(83, 155, 168, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(58, 140, 151, 0.18), transparent 24%),
    linear-gradient(180deg, #12171b 0%, var(--bg) 52%, var(--bg-strong) 100%);
  color: var(--text);
}

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

.site-header,
.page,
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

/* Header */

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0 0.75rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  background: rgba(15, 29, 39, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.menu-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent-bright);
  white-space: nowrap;
}

.nav,
.lang-switch {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.nav a,
.lang-switch a {
  color: var(--muted);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.lang-switch a:hover {
  background: rgba(97, 176, 197, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.nav a.is-active,
.lang-switch a.is-active {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #081316;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lang-switch {
  padding: 0.25rem;
  background: rgba(15, 29, 39, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.page {
  padding: 2rem 0 4rem;
}

/* Shared surfaces */

.hero,
.section-grid,
.services-section,
.content {
  background: var(--page-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
}

.hero-panel,
.card {
  background: var(--card-surface);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) - 6px);
  padding: 1.3rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Typography */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent-bright);
  margin: 0 0 0.75rem;
}

h1,
h2,
h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4.9rem);
  line-height: 0.96;
  margin-bottom: 1rem;
  max-width: 12ch;
}

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

.hero-subtitle,
.contact-intro-subtitle {
  margin: -0.25rem 0 1rem;
  color: var(--accent-bright);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  max-width: 42rem;
}

.lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.3rem 0 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid rgba(97, 176, 197, 0.34);
  border-radius: 999px;
  background: rgba(83, 155, 168, 0.14);
  color: #d8f5fb;
  font-size: 0.94rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #081316;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

/* Home */

.panel-title {
  font-weight: 700;
  margin-top: 0;
  color: #e1f7fb;
}

.hero-avatar-shell {
  width: min(100%, 168px);
  align-self: center;
}

.hero-avatar-card {
  padding: 0.55rem;
  border-radius: 20px;
}

.hero-avatar-card::after {
  inset: auto 10px -12px 10px;
  height: 22px;
}

.panel-list,
.bullet-list {
  margin: 0;
  padding-left: 0;
  line-height: 1.7;
  list-style: none;
}

.panel-list li,
.bullet-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #d8e3e8;
}

.panel-list li + li,
.bullet-list li + li {
  margin-top: 0.85rem;
}

.panel-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 0 0 6px rgba(97, 176, 197, 0.14);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  padding: 2.2rem;
  margin-top: 1.5rem;
}

.section-grid.alt {
  grid-template-columns: 1fr 1fr;
}

.section-content {
  max-width: 28rem;
}

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

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.content {
  padding: 2.3rem;
}

/* Services and contact */

.services-page {
  display: grid;
  gap: 1.5rem;
}

.services-hero {
  grid-template-columns: 1.25fr 0.85fr;
  align-items: stretch;
}

.services-hero-content {
  min-width: 0;
}

.services-hero h1 {
  max-width: 10ch;
}

.contact-intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.5rem;
  align-items: stretch;
}

.contact-intro-section .services-section-head {
  max-width: none;
  margin-bottom: 0;
}

.contact-intro-section h1,
.contact-intro-section .services-intro,
.contact-intro-section .contact-intro-subtitle {
  max-width: none;
}

.contact-details-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.contact-intro-section .services-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 100%;
}

.contact-intro-section .services-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-intro {
  margin: 1.2rem 0 0;
  color: #d8e3e8;
  line-height: 1.75;
  max-width: 58ch;
}

.services-stats-panel {
  justify-content: space-between;
}

.services-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.services-stat {
  min-width: 0;
  padding: 0.95rem 0.9rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16, 24, 29, 0.92), rgba(12, 18, 23, 0.98)),
    linear-gradient(135deg, rgba(97, 176, 197, 0.12), rgba(58, 140, 151, 0.04));
  border: 1px solid rgba(97, 176, 197, 0.16);
}

.services-stat-value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.65rem;
  line-height: 1;
  color: #e1f7fb;
}

.services-stat-label {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.services-packages-section {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.services-section {
  padding: 2.2rem;
  margin-top: 1.5rem;
}

.services-section-head {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.services-section-head .lead {
  max-width: 64ch;
}

.contact-intro-section .services-section-head .lead {
  max-width: none;
}

.services-package-grid,
.services-problem-grid,
.services-outcomes-grid,
.services-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.services-package-grid {
  grid-template-columns: 1fr;
}

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

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

.service-problem-card {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(97, 176, 197, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(30, 41, 47, 0.96), rgba(22, 30, 35, 0.98));
}

.service-problem-card h3 {
  margin-bottom: 0.7rem;
}

.service-problem-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-package-card,
.process-card {
  position: relative;
  overflow: hidden;
}

.service-package-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.5rem;
}

.service-package-card::before,
.process-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(97, 176, 197, 0.7), rgba(97, 176, 197, 0));
}

.service-package-visual {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.service-package-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #081316;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.service-package-line {
  width: 2px;
  min-height: 7.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(97, 176, 197, 0.75), rgba(97, 176, 197, 0.05));
}

.service-package-body {
  min-width: 0;
}

.service-package-header h3,
.process-card h3 {
  margin-bottom: 0.45rem;
}

.service-package-header p,
.process-card p {
  color: var(--muted);
  line-height: 1.65;
}

.service-package-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.2rem 0 1rem;
}

.service-package-meta div {
  display: grid;
  gap: 0.25rem;
}

.service-package-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}

.service-package-meta dd {
  margin: 0;
  color: #d8e3e8;
  line-height: 1.6;
}

.service-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.service-topics .hero-pill {
  min-height: 34px;
  font-size: 0.86rem;
  background: rgba(83, 155, 168, 0.1);
}

.services-outcome-card {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  background: var(--card-surface);
}

.services-outcome-card p {
  margin: 0;
  color: #d8e3e8;
  line-height: 1.7;
}

.process-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.process-step {
  width: fit-content;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(97, 176, 197, 0.1);
  border: 1px solid rgba(97, 176, 197, 0.18);
  color: #d8f5fb;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Content pages */

.content-header {
  max-width: 58rem;
  margin-bottom: 2rem;
}

.content-header-profile {
  display: grid;
  grid-template-columns: 1.2fr minmax(220px, 360px);
  gap: 2rem;
  align-items: center;
}

.content-header-content {
  min-width: 0;
}

.avatar-card {
  position: relative;
  padding: 0.2em;
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(97, 176, 197, 0.3), rgba(58, 140, 151, 0.18)),
    linear-gradient(180deg, rgba(37, 45, 51, 0.96), rgba(18, 22, 26, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.avatar-card::after {
  content: "";
  position: absolute;
  inset: auto 18px -16px 18px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(97, 176, 197, 0.28), transparent 68%);
  filter: blur(18px);
  z-index: 0;
}

.avatar-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 1%;
  border-radius: 22px;
  border: 1px solid rgba(97, 176, 197, 0.2);
}

.prose {
  max-width: 58rem;
  line-height: 1.75;
  color: #d8e3e8;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: #d8e3e8;
}

/* Footer */

.site-footer {
  padding: 0 0 3rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding: 1.25rem 1.4rem;
  background: rgba(15, 29, 39, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 0.5rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.7;
}

.footer-column p + p {
  margin-top: 0.35rem;
}

.footer-facts {
  margin-top: 0.1rem;
}

.footer-facts p {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.footer-fact-label,
.footer-fact-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.footer-fact-label {
  width: 3rem;
  color: var(--warm);
  letter-spacing: 0.04em;
}

.footer-fact-value {
  color: #d8e3e8;
  word-break: break-word;
}

.footer-social {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  transition: color 160ms ease, transform 160ms ease;
}

.footer-icon-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.footer-icon-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Responsive */

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .header-tools,
  .menu-shell {
    width: 100%;
  }

  .menu-shell {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }

  .hero,
  .section-grid,
  .section-grid.alt,
  .content-header-profile,
  .services-hero,
  .contact-intro-section,
  .services-packages-section {
    grid-template-columns: 1fr;
  }

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

  .services-stats,
  .services-problem-grid,
  .services-package-grid,
  .services-outcomes-grid,
  .services-process-grid {
    grid-template-columns: 1fr;
  }

  .service-package-card {
    grid-template-columns: 1fr;
  }

  .service-package-visual {
    justify-items: start;
  }

  .service-package-line {
    width: 100%;
    min-height: 2px;
    height: 2px;
  }

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