@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis/Metropolis-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis/Metropolis-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis/Metropolis-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sg-ink: #10233f;
  --sg-ink-2: #183654;
  --sg-teal: #0d7c76;
  --sg-teal-dark: #075c58;
  --sg-gold: #e7ad45;
  --sg-paper: #eef5f7;
  --sg-surface: #ffffff;
  --sg-muted: #5d6b78;
  --sg-line: #dbe2e7;
  --sg-shadow: 0 18px 50px rgba(16, 35, 63, 0.1);
  --sg-radius: 24px;
  --sg-sidebar: 274px;
  --sg-sidebar-collapsed: 88px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 2%, rgba(13, 124, 118, 0.1), transparent 34rem),
    linear-gradient(180deg, #fbfcfd 0%, var(--sg-paper) 100%);
  background-attachment: fixed;
  color: var(--sg-ink);
  font-family: "Metropolis", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(5, 16, 31, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

img {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(231, 173, 69, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--sg-ink);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  width: var(--sg-sidebar);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 26px 22px;
  background:
    radial-gradient(circle at 10% 5%, rgba(13, 124, 118, 0.35), transparent 35%),
    linear-gradient(155deg, #10233f 0%, #0b1a30 100%);
  color: #fff;
  border: 0;
  box-shadow: 12px 0 44px rgba(8, 20, 38, 0.12);
  transition: width 0.25s ease, transform 0.25s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  margin-bottom: 32px;
}

.sidebar-header > a {
  display: flex;
  align-items: center;
}

.sidebar .logo-img {
  width: 154px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  padding: 0 !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.toggle-btn,
.mobile-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.sidebar .nav-menu,
.sidebar .social-icons {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar .nav-menu {
  display: grid;
  gap: 6px;
  height: auto;
  padding-bottom: 0;
  overflow: visible;
}

.sidebar .nav-menu li {
  margin: 0;
  padding: 0;
}

.sidebar .nav-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  gap: 13px;
  padding: 10px 14px;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar .nav-menu a:hover,
.sidebar .nav-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.sidebar .nav-menu a.active {
  box-shadow: inset 3px 0 0 var(--sg-gold);
}

.sidebar .nav-menu i {
  flex: 0 0 18px;
  width: 18px;
  color: var(--sg-gold);
  text-align: center;
}

.sidebar .nav-menu .link-text {
  min-width: 0;
}

.sidebar-footer {
  position: static;
  inset: auto;
  width: auto;
  margin-top: auto;
  padding-top: 28px;
  background: transparent;
}

.sidebar .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.sidebar .social-icons a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.sidebar .social-icons a:hover {
  background: var(--sg-gold);
  color: var(--sg-ink);
}

.btn-linkedin {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.sidebar.collapsed {
  width: 88px;
  padding-inline: 18px;
}

.sidebar.collapsed .logo-img,
.sidebar.collapsed .link-text,
.sidebar.collapsed .sidebar-footer {
  display: none;
}

.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .nav-menu a {
  justify-content: center;
}

.main-content {
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sg-sidebar));
  min-width: 0;
  flex: 1 1 auto;
  min-height: 100vh;
  margin-left: var(--sg-sidebar);
  padding: 0;
  transition: margin-left 0.25s ease, width 0.25s ease;
}

.main-content.expanded {
  width: calc(100% - var(--sg-sidebar-collapsed));
  margin-left: var(--sg-sidebar-collapsed);
}

.mobile-header {
  display: none;
}

.main-content > .container,
.main-content .container {
  width: min(100%, 1220px);
  max-width: 1220px;
  margin: 0 auto;
  padding-inline: clamp(22px, 4vw, 58px);
}

.content-section,
.impact-section,
.career-section,
.quotes-layout {
  margin: 0;
  padding: clamp(64px, 8vw, 110px) 0;
  background: transparent;
}

.portfolio-home .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.portfolio-home .site-shell {
  width: min(100% - 44px, 1160px);
  margin-inline: auto;
}

.portfolio-hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: 68px 0 52px;
  background:
    radial-gradient(circle at 84% 10%, rgba(13, 124, 118, 0.14), transparent 28%),
    linear-gradient(180deg, #faf8f3 0%, var(--sg-paper) 100%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
}

.hero-layout > *,
.section-heading > *,
.capability-grid > *,
.work-grid > *,
.insight-grid > * {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--sg-teal-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--sg-gold);
}

.portfolio-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--sg-ink);
  font-size: clamp(3.1rem, 6.4vw, 6.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: none;
}

.portfolio-hero h1 span {
  display: block;
  margin-top: 12px;
  color: var(--sg-teal);
  font-size: 0.48em;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: #405267;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.cta-btn,
.modern-cta-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 21px;
  border: 1px solid var(--sg-teal);
  border-radius: 999px;
  background: var(--sg-teal);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.cta-btn:hover,
.modern-cta-btn:hover {
  background: var(--sg-teal-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 124, 118, 0.18);
}

.button.secondary {
  background: transparent;
  color: var(--sg-ink);
  border-color: #bbc7d0;
}

.button.secondary:hover {
  background: #fff;
  color: var(--sg-ink);
}

.hero-portrait-wrap {
  position: relative;
  max-width: 440px;
  justify-self: end;
}

.hero-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 28px -20px -24px 30px;
  z-index: 0;
  border: 2px solid rgba(13, 124, 118, 0.28);
  border-radius: 48% 48% 18px 18px;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.92;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: 48% 48% 18px 18px;
  box-shadow: var(--sg-shadow);
}

.portrait-note {
  position: absolute;
  right: -18px;
  bottom: 24px;
  z-index: 2;
  max-width: 220px;
  padding: 14px 17px;
  border-radius: 14px;
  background: var(--sg-ink);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.5;
  box-shadow: 0 14px 40px rgba(16, 35, 63, 0.23);
}

.portrait-note strong {
  display: block;
  color: var(--sg-gold);
  font-size: 1rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 40px rgba(16, 35, 63, 0.05);
}

.metric {
  padding: 22px clamp(16px, 2.4vw, 28px);
  border-right: 1px solid var(--sg-line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--sg-ink);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 5px;
  color: var(--sg-muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.portfolio-section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.portfolio-section.white {
  background: var(--sg-surface);
}

.portfolio-section.ink {
  background: var(--sg-ink);
  color: #fff;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading h2,
.section-header h2 {
  margin: 0;
  color: var(--sg-ink);
  font-size: clamp(2.15rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-transform: none;
}

.section-heading p,
.section-subtitle {
  margin: 0;
  color: var(--sg-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.ink .section-heading h2,
.ink .section-heading p,
.ink .section-kicker {
  color: #fff;
}

.ink .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.capability-grid,
.work-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 18px;
}

.capability-card,
.work-card,
.insight-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 35, 63, 0.05);
}

.capability-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.capability-number {
  color: var(--sg-teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.capability-card h3,
.work-card h3,
.insight-card h3 {
  margin: 30px 0 12px;
  color: var(--sg-ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.capability-card p,
.work-card p,
.insight-card p {
  color: var(--sg-muted);
}

.capability-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--sg-line);
  list-style: none;
}

.capability-card li {
  color: var(--sg-ink-2);
  font-size: 0.84rem;
}

.capability-card li::before {
  content: "↳";
  margin-right: 8px;
  color: var(--sg-gold);
}

.work-card {
  display: flex;
  flex-direction: column;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  box-shadow: none;
}

.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3.2;
  object-fit: contain;
  object-position: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0.92;
}

.work-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.work-card h3 {
  margin-top: 0;
  color: #fff;
}

.work-card p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.9rem;
}

.result-line {
  margin-top: auto;
  padding-top: 18px;
  color: var(--sg-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--sg-teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.work-card .card-link {
  color: #fff;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.section-action {
  margin-top: 30px;
}

.insight-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 27px;
}

.insight-type {
  color: var(--sg-teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.insight-card h3 {
  margin-top: 16px;
}

.insight-card .card-link {
  margin-top: auto;
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 30px;
  background:
    linear-gradient(130deg, rgba(13, 124, 118, 0.96), rgba(16, 35, 63, 0.98)),
    var(--sg-ink);
  color: #fff;
  box-shadow: var(--sg-shadow);
}

.contact-band h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.contact-band p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.contact-band .button {
  background: var(--sg-gold);
  border-color: var(--sg-gold);
  color: var(--sg-ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 44px;
  color: var(--sg-muted);
  font-size: 0.78rem;
}

/* Refine existing interior pages without changing their content model. */
.main-content:not(.portfolio-home) {
  overflow-x: clip;
}

.main-content:not(.portfolio-home) > .container {
  padding-top: 36px;
  padding-bottom: 72px;
}

.main-content:not(.portfolio-home) .content-section > .container {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.main-content:not(.portfolio-home) .section-header .section-subtitle {
  width: min(100%, 760px);
  max-width: 760px;
  margin: 14px auto 0;
  text-align: center;
}

.expertise-page-nav {
  position: sticky;
  top: 0;
  z-index: 850;
  width: 100%;
  margin: 0 0 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(219, 226, 231, 0.92);
  background: rgba(247, 251, 252, 0.96);
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.07);
  backdrop-filter: blur(14px);
}

.expertise-page-nav .nav-cta-grid {
  gap: 8px;
}

.expertise-page-nav .btn-modern {
  min-width: 0;
  min-height: 48px;
  padding: 12px 9px;
  line-height: 1.35;
}

.expertise-page-nav .btn-modern.is-active,
.expertise-page-nav .btn-modern[aria-current="location"] {
  background: var(--sg-teal);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 8px 18px rgba(13, 124, 118, 0.18);
}

.expertise-page-nav .btn-modern:focus-visible {
  outline: 3px solid rgba(231, 173, 69, 0.72);
  outline-offset: 2px;
}

#integrated-solving,
#transkills,
#provalues,
#ledetho,
#bizimp,
#opsimp {
  scroll-margin-top: 100px;
}

.expertise-page .expertise-optional-section[hidden] {
  display: none !important;
}

.expertise-page .hero-section {
  margin-bottom: clamp(18px, 2.5vw, 28px) !important;
}

.expertise-page #integrated-solving {
  padding-top: clamp(24px, 3vw, 40px);
}

.expertise-page #integrated-solving > .container {
  padding-top: 0;
  padding-bottom: 0;
}

.expertise-page #transkills > hr {
  display: none;
}

.main-content:not(.portfolio-home) .hero-section {
  width: 100%;
  max-width: none;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: clamp(44px, 7vw, 78px);
  border: 0;
  border-radius: var(--sg-radius);
  background-color: var(--sg-ink);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  box-shadow: var(--sg-shadow);
}

.main-content:not(.portfolio-home) .hero-section .hero-text-container {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.main-content:not(.portfolio-home) .hero-section h1,
.main-content:not(.portfolio-home) .hero-section h2 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: none;
}

.main-content:not(.portfolio-home) .hero-section .subtitle,
.main-content:not(.portfolio-home) .hero-section p {
  max-width: 780px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.78);
}

.impact-grid,
.timeline-grid,
.timeline-grid-two-column,
.grid-pvnle-4 {
  gap: 18px;
}

.impact-card,
.timeline-card,
.pvnle-card,
.publication-link,
.modern-contact-form {
  border: 1px solid var(--sg-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 35, 63, 0.06);
}

.impact-card:hover,
.timeline-card:hover,
.pvnle-card:hover,
.publication-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--sg-shadow);
}

.project-link-wrapper {
  text-decoration: none;
}

.card-image-container img,
.card-image-wrapper img {
  width: 100%;
  object-fit: cover;
}

#goToTopBtn {
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--sg-teal);
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 35, 63, 0.2);
}

.animate-box {
  opacity: 1;
  transform: none;
}

.js-ready .animate-box {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-ready .animate-box.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Balanced expertise sections. */
#transskills .section-header,
#provalues .section-header,
#ledetho .section-header,
#bizimp .section-header,
#opsimp .section-header {
  width: min(100%, 980px);
  margin-inline: auto;
  text-align: center;
}

#transskills .section-header h2,
#provalues .section-header h2,
#ledetho .section-header h2,
#bizimp .section-header h2,
#opsimp .section-header h2 {
  text-align: center;
}

.grid-transfer-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.grid-transfer-5 > .timeline-card {
  flex: 0 1 calc((100% - 72px) / 5);
  min-width: 0;
  height: auto;
  align-self: stretch;
}

/* Shared footer for every public page. */
.global-site-footer {
  display: block;
  width: 100%;
  margin: auto 0 0;
  padding: clamp(58px, 8vw, 96px) 0 0;
  color: #fff;
  background: transparent;
  font-size: 0.88rem;
}

.global-footer-inner {
  container-type: inline-size;
  width: calc(100% - 44px);
  max-width: none;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(13, 124, 118, 0.34), transparent 19rem),
    linear-gradient(135deg, #0c203b 0%, #10233f 58%, #0b333d 100%);
  box-shadow: 0 -12px 45px rgba(16, 35, 63, 0.1);
}

.portfolio-home .global-site-footer {
  margin-top: auto;
}

.portfolio-home .global-footer-inner {
  width: calc(100% - 44px);
  max-width: none;
  border-radius: 30px 30px 0 0;
}

.main-content:not(.portfolio-home) > .global-site-footer .global-footer-inner {
  width: calc(100% - 44px);
  max-width: none;
}

.global-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.global-footer-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--sg-gold);
  color: var(--sg-ink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.global-footer-brand strong,
.global-footer-brand span {
  display: block;
}

.global-footer-brand strong {
  color: #fff;
  font-size: 1.05rem;
}

.global-footer-brand div > span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

.global-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 30px 0;
  padding: 24px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.11);
}

.global-footer-links a,
.global-footer-bottom a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.global-footer-links a {
  font-weight: 650;
}

.global-footer-links a:hover,
.global-footer-bottom a:hover {
  color: #fff;
}

.global-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  line-height: 1.6;
}

/* Projects index: clearer spacing, hierarchy and scannable outcomes. */
.projects-page .hero-section {
  margin-bottom: clamp(46px, 6vw, 72px) !important;
}

.projects-page .hero-section + section {
  padding-bottom: 10px;
}

.projects-page .grid-pvnle-4 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.projects-page .project-link-wrapper {
  display: flex;
  min-width: 0;
  height: auto;
  align-self: stretch;
}

.projects-page .pvnle-card {
  width: 100%;
  height: 100%;
  border-color: rgba(16, 35, 63, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 34px rgba(16, 35, 63, 0.08);
}

.projects-page .pvnle-card .card-image-container {
  display: grid;
  min-height: 150px;
  place-items: center;
  border-bottom: 1px solid var(--sg-line);
  background: linear-gradient(145deg, #f7fbfc 0%, #edf5f5 100%);
}

.projects-page .pvnle-card .card-image-container img {
  width: 100%;
  height: 150px;
  padding: 14px;
  object-fit: contain;
}

.projects-page .pvnle-card .card-content {
  align-items: stretch;
  padding: 26px;
  text-align: left;
}

.project-card-index {
  display: block;
  margin-bottom: 10px;
  color: var(--sg-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.projects-page .pvnle-card h4 {
  margin: 0;
  color: var(--sg-ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.project-outcomes {
  display: grid;
  gap: 9px;
  margin: 18px 0 24px;
  padding: 0;
  color: var(--sg-muted);
  font-size: 0.87rem;
  line-height: 1.48;
  list-style: none;
}

.project-outcomes li {
  position: relative;
  padding-left: 18px;
}

.project-outcomes li::before {
  content: "";
  position: absolute;
  top: 0.57em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sg-gold);
}

.project-card-action {
  display: block;
  margin-top: auto;
  color: var(--sg-teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Case studies: normalize legacy inline panels into one editorial system. */
.case-study-page .hero-section {
  min-height: 430px !important;
  margin-bottom: clamp(42px, 6vw, 68px) !important;
  padding: clamp(38px, 5vw, 64px) !important;
}

.case-study-page .hero-section h1 {
  max-width: 960px;
  font-size: clamp(2.1rem, 3.2vw, 3.8rem) !important;
}

.case-study-page .case-study-back,
.case-study-page .case-study-kicker {
  display: block;
  width: max-content;
  margin-inline: auto;
}

.case-study-page .case-study-back {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.case-study-page .case-study-back:hover {
  color: #fff;
}

.case-study-page .case-study-kicker {
  margin-bottom: 12px;
  color: var(--sg-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-study-body {
  padding: clamp(24px, 4.5vw, 54px);
  border: 1px solid rgba(16, 35, 63, 0.09);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 52px rgba(16, 35, 63, 0.08);
}

.case-study-body > .row {
  margin-inline: 0;
}

.case-study-body [class*="col-lg-9"],
.case-study-body [class*="col-lg-10"] {
  width: 100% !important;
  max-width: 940px;
  margin-inline: auto !important;
  padding-inline: 0;
}

.case-study-body .case-major-panel {
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border: 1px solid var(--sg-line);
  border-left: 5px solid var(--sg-teal);
  border-radius: 20px;
  background: #fff !important;
  color: var(--sg-ink) !important;
  box-shadow: 0 10px 28px rgba(16, 35, 63, 0.06);
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

.case-study-body .case-major-panel > p:first-child {
  margin: 0 0 16px;
  color: var(--sg-teal-dark) !important;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
}

.case-study-body .case-nested-panel {
  margin-block: 10px !important;
  padding: 18px !important;
  border: 1px solid #e1e9ec;
  border-radius: 14px;
  background: #f4f8f9 !important;
  color: var(--sg-ink) !important;
  font-size: 0.94rem !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

.case-study-body b,
.case-study-body strong {
  color: var(--sg-ink);
  font-weight: 750;
}

.case-study-body img.img-responsive,
.case-study-body .work-box img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.case-study-body .work-box,
.case-study-body .fh5co-work-item {
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 35, 63, 0.06);
}

.case-study-page .footer-navigation {
  margin-top: 28px;
  text-align: center;
}

body.case-study-page .floating-menu-button {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: var(--sg-teal);
  box-shadow: 0 14px 34px rgba(16, 35, 63, 0.25);
}

body.case-study-page .floating-menu-button:hover {
  background: var(--sg-teal-dark);
}

body.case-study-page .floating-menu-content {
  overflow: hidden auto;
  border: 1px solid var(--sg-line);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(16, 35, 63, 0.22);
}

body.case-study-page .floating-menu-content .menu-header {
  background: var(--sg-ink);
}

body.case-study-page .floating-menu-content a:hover {
  color: var(--sg-teal-dark);
  background: #f1f8f8;
}

/* Interior pages use the homepage's wider page canvas. The homepage keeps its
   own established shell and is not constrained by this rule. */
.main-content:not(.portfolio-home) > .container {
  width: calc(100% - 44px);
  max-width: none;
  margin-inline: auto;
}

.main-content:not(.portfolio-home) > .container {
  padding-inline: 0;
}

.main-content:not(.portfolio-home) .hero-section {
  margin: 0 0 clamp(46px, 6vw, 68px) !important;
}

.main-content:not(.portfolio-home) .hero-section + section,
.main-content:not(.portfolio-home) .hero-section + .content-section {
  width: 100%;
  margin-top: 0;
}

.main-content:not(.portfolio-home) .section-header {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.main-content:not(.portfolio-home) .section-header h2,
.main-content:not(.portfolio-home) .section-header .eyebrow,
.main-content:not(.portfolio-home) .section-header .section-subtitle {
  margin-inline: auto;
  text-align: center;
}

.main-content:not(.portfolio-home) .section-header .section-subtitle {
  width: min(100%, 820px);
  max-width: 820px;
}

.grid-pvnle-4,
.grid-publications-4,
.impact-grid {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.grid-pvnle-4 > * {
  flex: 0 1 calc((100% - 54px) / 4);
  min-width: 0;
}

.grid-pvnle-4 > .pvnle-card {
  height: auto;
  align-self: stretch;
}

.grid-publications-4 {
  gap: 20px;
}

.grid-publications-4 > * {
  flex: 0 1 calc((100% - 60px) / 4);
  min-width: 0;
}

.impact-grid > * {
  flex: 0 1 calc((100% - 54px) / 4);
  min-width: 0;
}

.projects-page .grid-pvnle-4 {
  display: flex;
  justify-content: center;
}

.projects-page .grid-pvnle-4 > * {
  flex: 0 1 calc((100% - 72px) / 4);
}

/* Navigation social links remain orderly in both sidebar states. */
.sidebar .social-icons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 6px;
}

.sidebar .social-icons li {
  flex: 0 0 auto;
}

.sidebar .social-icons a {
  width: 33px;
  height: 33px;
  font-size: 0.78rem;
}

.sidebar.collapsed .sidebar-footer {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
}

.sidebar.collapsed .social-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.sidebar.collapsed .social-icons a {
  width: 34px;
  height: 34px;
}

.sidebar.collapsed .btn-linkedin {
  display: none;
}

/* Footer uses the same monogram as the primary navigation. */
.global-footer-mark {
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.global-footer-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Professional contact experience. */
.contact-content {
  padding: 0 0 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: stretch;
  gap: 24px;
  margin: 0;
}

.contact-layout > [class*="col-"] {
  float: none;
  width: 100%;
  padding: 0;
}

.contact-panel {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.1) !important;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 18px 48px rgba(16, 35, 63, 0.09);
}

.contact-panel .card-content {
  width: 100%;
  align-items: stretch;
  padding: clamp(26px, 4vw, 42px);
  text-align: left;
}

.contact-reasons-panel {
  border-left: 5px solid var(--sg-teal) !important;
}

.contact-reasons-panel .section-title-sm {
  margin: 0 0 22px;
  color: var(--sg-ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.contact-reasons-panel .reach-out-grid {
  display: grid;
  gap: 10px;
}

.contact-reasons-panel .reach-out-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid #e4ecef;
  border-radius: 14px;
  background: #f7fafb;
}

.contact-reasons-panel .reach-out-item .icon-box {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(13, 124, 118, 0.1);
  color: var(--sg-teal-dark);
}

.contact-reasons-panel .reach-out-item .icon-box i {
  font-size: 22px !important;
}

.contact-reasons-panel .reach-out-item p {
  margin: 0;
  color: var(--sg-ink-2);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
}

.contact-form-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--sg-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form-panel h3 {
  margin: 0;
  color: var(--sg-ink);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.contact-form-intro {
  margin: 12px 0 26px;
  color: var(--sg-muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

.modern-contact-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.modern-contact-form .form-group {
  margin: 0 !important;
}

.modern-contact-form .form-group-full {
  grid-column: 1 / -1;
}

.modern-contact-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--sg-ink-2);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.modern-contact-form .form-control-sharp {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #d6e1e5;
  border-radius: 12px;
  background: #f8fbfc;
  color: var(--sg-ink);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
}

.modern-contact-form textarea.form-control-sharp {
  min-height: 138px;
  resize: vertical;
}

.modern-contact-form .form-control-sharp:focus {
  outline: 0;
  border-color: var(--sg-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 124, 118, 0.1);
}

.contact-submit {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 15px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sg-teal) 0%, var(--sg-teal-dark) 100%);
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.contact-submit:hover {
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(13, 124, 118, 0.22);
}

.contact-form-note {
  margin: 13px 0 0 !important;
  color: #71808c !important;
  font-size: 0.72rem !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

.contact-form-note i {
  margin-right: 5px;
  color: var(--sg-teal);
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-submit:disabled {
  cursor: wait;
  filter: grayscale(0.15);
  opacity: 0.72;
  transform: none;
}

.contact-form-status {
  margin: 16px 0 0;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.55;
  text-align: left;
  outline: none;
}

.contact-form-status.is-success {
  border-color: rgba(13, 124, 118, 0.24);
  background: rgba(13, 124, 118, 0.09);
  color: #075f59;
}

.contact-form-status.is-error {
  border-color: rgba(184, 55, 55, 0.22);
  background: rgba(184, 55, 55, 0.08);
  color: #8d2929;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #a02f2f;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
}

.modern-contact-form [aria-invalid="true"] {
  border-color: #b83737 !important;
  box-shadow: 0 0 0 3px rgba(184, 55, 55, 0.1) !important;
}

.contact-channel-row {
  margin: 28px 0 0;
}

.contact-channel-row > [class*="col-"] {
  width: 100%;
  padding: 0;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-channels .modern-cta-btn {
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(16, 35, 63, 0.1);
}

.contact-channels .modern-cta-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.contact-proof {
  margin-top: 46px !important;
  padding: 26px !important;
  border-top: 1px solid var(--sg-line) !important;
  text-align: center !important;
}

/* Expertise: consistent heading case and correctly scaled source artwork. */
.expertise-page .section-header h2 {
  text-transform: uppercase;
}

.expertise-page #integrated-solving .timeline-card {
  padding: 0;
  overflow: hidden;
}

.expertise-page #integrated-solving .card-image-container {
  width: 100%;
  min-height: clamp(190px, 18vw, 270px);
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--sg-line);
  background: linear-gradient(145deg, #f8fbfc 0%, #edf5f5 100%);
}

.expertise-page #integrated-solving .card-image-container img {
  width: min(100%, 720px);
  height: auto;
  max-height: none;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.expertise-page #integrated-solving .card-content {
  width: 100%;
  padding: clamp(24px, 3vw, 36px);
}

.expertise-section-symbol {
  width: clamp(110px, 12vw, 152px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  padding: 20px;
  border: 1px solid rgba(13, 124, 118, 0.18);
  border-radius: 34px;
  background: linear-gradient(145deg, #ffffff 0%, #edf7f5 100%);
  box-shadow: 0 16px 38px rgba(16, 35, 63, 0.09);
}

.expertise-section-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.expertise-page .grid-transfer-5 .card-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Impact cards lead with a compact image-and-headline row. */
.expertise-page #bizimp .pvnle-card,
.expertise-page #opsimp .pvnle-card {
  overflow: hidden;
}

.expertise-page .impact-card-header {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 20px 20px 14px;
}

.expertise-page .impact-card-header .card-image-container {
  width: 72px;
  height: 72px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--sg-ink-2) 0%, var(--sg-ink) 62%, var(--sg-teal-dark) 100%) !important;
  box-shadow: 0 10px 22px rgba(16, 35, 63, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.expertise-page .impact-card-header .card-image-container img {
  width: 100%;
  height: 100%;
  padding: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.26));
  object-fit: contain;
}

.expertise-page .impact-card-header h4 {
  margin: 0;
  color: var(--sg-ink);
  font-size: 1rem;
  line-height: 1.35;
  text-align: left;
}

.expertise-page #bizimp .pvnle-card .card-content,
.expertise-page #opsimp .pvnle-card .card-content {
  width: 100%;
  align-items: stretch;
  padding: 0 20px 22px;
  text-align: left;
}

.expertise-page #bizimp .pvnle-card .card-content p,
.expertise-page #opsimp .pvnle-card .card-content p {
  text-align: left;
}

/* About: frame the complete skill-card grid inside the white section. */
#fh5co-skill {
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 28px;
}

#fh5co-skill > .container {
  width: 100%;
  padding-inline: clamp(24px, 4vw, 64px) !important;
}

#fh5co-skill .timeline-grid-two-column {
  width: 100%;
  margin-inline: auto;
}

#fh5co-skill .timeline-card {
  padding: 0;
}

#fh5co-skill .timeline-card .card-content {
  width: 100%;
  padding: clamp(28px, 3.5vw, 42px) clamp(24px, 3.5vw, 42px);
}

#fh5co-skill .skill-group {
  width: 100%;
  padding-inline: 6px;
}

/* Home: give the transformation artwork a prominent, high-contrast stage. */
.portfolio-home .work-card img {
  width: 100%;
  height: clamp(132px, 13vw, 180px);
  aspect-ratio: auto;
  padding: clamp(18px, 2.5vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 82% 10%, rgba(231, 173, 69, 0.17), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  opacity: 1;
  object-fit: contain;
  object-position: center;
}

/* Each transparent source graphic gets the backdrop that preserves its contrast. */
#selected-work .work-card:nth-child(1) img {
  border-bottom-color: #dbe6ea;
  background: linear-gradient(145deg, #ffffff 0%, #edf5f7 100%);
  filter: contrast(1.16) saturate(1.12);
}

#selected-work .work-card:nth-child(2) img {
  border-bottom-color: #d9e1e7;
  background: linear-gradient(145deg, #f9fbfc 0%, #e7edf2 100%);
}

#selected-work .work-card:nth-child(3) img {
  border-bottom-color: #dbe6ea;
  background: linear-gradient(145deg, #ffffff 0%, #edf5f7 100%);
  filter: contrast(1.08) saturate(1.05) drop-shadow(0 1px 1px rgba(16, 35, 63, 0.22));
}

/* In-page directory restored on the Whitepapers index. */
.whitepaper-index-nav {
  position: sticky;
  top: 0;
  z-index: 850;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: -24px 0 38px;
  padding: 13px 16px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 18px;
  background: rgba(250, 253, 253, 0.96);
  box-shadow: 0 12px 30px rgba(16, 35, 63, 0.09);
  backdrop-filter: blur(16px);
}

.whitepapers-index-page .whitepaper-index-nav {
  width: min(calc(100% - 56px), 1240px);
  margin-inline: auto;
}

.whitepaper-index-label {
  color: var(--sg-ink);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.whitepaper-index-links {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
}

.whitepaper-index-links a {
  width: 35px;
  height: 35px;
  display: grid;
  flex: 0 0 35px;
  place-items: center;
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--sg-ink);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.whitepaper-index-links a:hover {
  border-color: var(--sg-teal);
  background: var(--sg-teal);
  color: #fff;
}

.whitepapers-index-page .publication-link {
  scroll-margin-top: 94px;
}

.whitepapers-index-page .library-card {
  scroll-margin-top: 110px;
}

.whitepapers-index-page .pub-card,
.whitepapers-index-page .pub-card img,
.whitepapers-index-page .pub-card::after {
  border-radius: 18px;
}

/* Persistent navigation shared by every whitepaper detail page. */
.whitepaper-page-nav {
  position: sticky;
  top: 0;
  z-index: 850;
  width: min(100%, 1160px);
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 auto 24px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 18px;
  background: rgba(250, 253, 253, 0.96);
  box-shadow: 0 12px 30px rgba(16, 35, 63, 0.1);
  backdrop-filter: blur(16px);
}

.whitepaper-page-nav a {
  text-decoration: none;
}

.whitepaper-nav-all,
.whitepaper-nav-step {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--sg-ink);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.whitepaper-nav-all {
  background: var(--sg-ink);
  color: #fff;
}

.whitepaper-nav-jump {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.whitepaper-nav-jump label {
  color: var(--sg-muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.whitepaper-nav-jump select {
  width: 100%;
  min-height: 42px;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--sg-line);
  border-radius: 12px;
  background: #fff;
  color: var(--sg-ink);
  font: inherit;
  font-size: 0.82rem;
}

.whitepaper-nav-steps {
  display: flex;
  gap: 5px;
}

.whitepaper-nav-step:hover {
  background: rgba(13, 124, 118, 0.09);
  color: var(--sg-teal-dark);
}

.whitepaper-nav-step.is-disabled {
  opacity: 0.35;
}

.whitepaper-detail-page .whitepaper-wrapper {
  max-width: min(88%, 1060px);
}

@media (max-width: 1120px) {
  :root {
    --sg-sidebar: 238px;
  }

  .sidebar {
    padding-inline: 17px;
  }

  .sidebar .logo-img {
    width: 135px;
  }

  .hero-layout {
    gap: 42px;
  }

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

  .capability-card:last-child,
  .work-card:last-child,
  .insight-card:last-child {
    grid-column: 1 / -1;
  }

  .grid-transfer-5 > .timeline-card {
    flex-basis: calc((100% - 36px) / 3);
  }

  .grid-pvnle-4 > *,
  .grid-publications-4 > *,
  .impact-grid > *,
  .projects-page .grid-pvnle-4 > * {
    flex-basis: calc((100% - 20px) / 2);
  }

  .projects-page .grid-pvnle-4 > * {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 900px) {
  body.menu-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    width: min(91vw, 380px);
    transform: translateX(-105%);
    padding: 20px 18px 24px;
    border-radius: 0 28px 28px 0;
    box-shadow: 22px 0 70px rgba(5, 16, 31, 0.34);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: min(91vw, 380px);
  }

  .sidebar.collapsed .logo-img,
  .sidebar.collapsed .link-text,
  .sidebar.collapsed .sidebar-footer {
    display: initial;
  }

  .sidebar.collapsed .sidebar-header,
  .sidebar.collapsed .nav-menu a {
    justify-content: initial;
  }

  .sidebar.collapsed .sidebar-footer {
    display: block;
    width: auto;
  }

  .sidebar.collapsed .social-icons {
    flex-direction: row;
    justify-content: space-between;
  }

  .sidebar.collapsed .btn-linkedin {
    display: grid;
  }

  .main-content,
  .main-content.expanded {
    margin-left: 0;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    padding-top: 74px;
  }

  .main-content > .container,
  .main-content .container {
    min-width: 0;
    max-width: 100%;
  }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
    background: rgba(16, 35, 63, 0.97);
    box-shadow: 0 8px 30px rgba(16, 35, 63, 0.16);
    backdrop-filter: blur(12px);
  }

  .mobile-header .logo-img {
    width: 150px;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
    padding: 0 !important;
  }

  .toggle-btn {
    display: grid;
  }

  .toggle-btn,
  .mobile-toggle {
    width: 44px;
    height: 44px;
  }

  .sidebar-header {
    min-height: 58px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sidebar .nav-menu {
    gap: 7px;
  }

  .sidebar .nav-menu a {
    min-height: 56px;
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 0.82rem;
  }

  .sidebar-footer {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sidebar .social-icons a {
    width: 44px;
    height: 44px;
  }

  .btn-linkedin {
    min-height: 48px;
    display: grid;
    place-items: center;
  }

  .expertise-page-nav {
    top: 74px;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 9px 0;
    overflow: hidden;
  }

  .expertise-page-nav .nav-cta-grid {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 1px 5px;
    scrollbar-width: thin;
  }

  .expertise-page-nav .btn-modern,
  .expertise-page-nav .btn-modern:last-child {
    min-height: 44px;
    flex: 0 0 auto;
    grid-column: auto;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .whitepaper-page-nav {
    top: 74px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .whitepaper-index-nav {
    top: 74px;
  }

  .whitepapers-index-page .whitepaper-index-nav {
    width: calc(100% - 36px);
  }

  .whitepapers-index-page .library-card {
    scroll-margin-top: 175px;
  }

  .whitepaper-nav-steps {
    grid-column: 1 / -1;
    justify-content: space-between;
    border-top: 1px solid var(--sg-line);
    padding-top: 8px;
  }

  #transkills,
  #provalues,
  #ledetho,
  #bizimp,
  #opsimp {
    scroll-margin-top: 156px;
  }

  .portfolio-hero {
    min-height: auto;
    padding-top: 60px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-portrait-wrap {
    max-width: 430px;
    justify-self: start;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--sg-line);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .global-footer-bottom {
    flex-direction: column;
  }

  .case-study-body [class*="col-"] {
    float: none !important;
    width: 100% !important;
    max-width: none;
    margin-inline: 0 !important;
  }

  body.case-study-page .floating-menu {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .portfolio-home .site-shell {
    width: min(100% - 30px, 1160px);
  }

  .portfolio-hero {
    padding-block: 46px 36px;
  }

  .portfolio-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .cta-btn,
  .modern-cta-btn {
    width: 100%;
  }

  .hero-portrait-wrap::before {
    inset: 20px -8px -14px 18px;
  }

  .portrait-note {
    right: 10px;
    bottom: 12px;
  }

  .metric-strip {
    margin-top: 36px;
  }

  .metric {
    padding: 18px 14px;
  }

  .portfolio-section {
    padding-block: 66px;
  }

  .capability-grid,
  .work-grid,
  .insight-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .capability-card,
  .work-card,
  .insight-card {
    height: auto;
  }

  .capability-card:last-child,
  .work-card:last-child,
  .insight-card:last-child {
    grid-column: auto;
  }

  .capability-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .main-content:not(.portfolio-home) > .container {
    width: min(100% - 30px, 1160px);
    padding-top: 20px;
    padding-inline: 0;
  }

  .main-content:not(.portfolio-home) .hero-section {
    width: 100%;
    min-height: 360px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 38px 22px !important;
    border-radius: 18px;
  }

  .grid-pvnle-4,
  .impact-grid,
  .timeline-grid,
  .timeline-grid-two-column {
    grid-template-columns: 1fr !important;
  }

  .grid-transfer-5 > .timeline-card {
    flex-basis: 100%;
  }

  .grid-pvnle-4 > *,
  .grid-publications-4 > *,
  .impact-grid > *,
  .projects-page .grid-pvnle-4 > * {
    flex-basis: 100%;
  }

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

  .modern-contact-form .form-group-full {
    grid-column: auto;
  }

  .contact-channels {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-channels .modern-cta-btn {
    width: 100%;
  }

  .global-footer-inner {
    width: calc(100% - 30px);
    max-width: none;
    padding: 28px 22px;
    border-radius: 22px 22px 0 0;
  }

  .portfolio-home .global-footer-inner {
    width: calc(100% - 30px);
    max-width: none;
    border-radius: 22px 22px 0 0;
  }

  .main-content:not(.portfolio-home) > .global-site-footer .global-footer-inner {
    width: calc(100% - 30px);
    max-width: none;
  }

  .global-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 20px;
  }

  .whitepaper-page-nav {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 11px;
    border-radius: 15px;
  }

  .whitepaper-index-nav {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: -18px;
    padding: 11px;
    border-radius: 15px;
  }

  .whitepapers-index-page .library-card {
    scroll-margin-top: 190px;
  }

  .whitepaper-index-links {
    justify-content: flex-start;
  }

  .whitepaper-nav-all {
    width: 100%;
  }

  .whitepaper-nav-jump {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .whitepaper-nav-steps {
    grid-column: auto;
  }

  .whitepaper-detail-page .whitepaper-wrapper {
    max-width: 100%;
  }

  .case-study-body {
    padding: 18px;
    border-radius: 22px;
  }

  .case-study-body .case-major-panel {
    padding: 22px 18px !important;
    border-left-width: 4px;
  }

  body.case-study-page .floating-menu-content {
    width: min(320px, calc(100vw - 36px));
  }
}

@container (max-width: 720px) {
  .global-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .global-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Case study editorial system (CS1–CS16).
   This final layer intentionally overrides inconsistent legacy inline styling. */
.case-study-page .hero-section {
  min-height: clamp(360px, 50vh, 520px) !important;
}

.case-study-page .hero-text-container {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.case-study-page .hero-section h1 {
  margin-inline: auto;
  text-align: center !important;
  text-wrap: balance;
}

.case-study-nav {
  position: sticky;
  z-index: 40;
  top: 14px;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  margin: -32px auto 26px;
  padding: 12px;
  border: 1px solid rgba(16, 35, 63, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(16, 35, 63, 0.12);
  backdrop-filter: blur(16px);
}

.case-study-nav-all,
.case-study-nav-step {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 11px;
  color: var(--sg-ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.case-study-nav-all {
  color: #fff;
  background: var(--sg-teal-dark);
}

.case-study-nav-all:hover {
  color: #fff;
  background: var(--sg-ink);
}

.case-study-nav-jump {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.case-study-nav-jump label {
  margin: 0;
  color: var(--sg-muted);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study-nav-jump select {
  width: 100%;
  min-height: 40px;
  padding: 7px 34px 7px 11px;
  border: 1px solid var(--sg-line);
  border-radius: 11px;
  color: var(--sg-ink);
  background-color: #f5f8f9;
  font: inherit;
  font-size: 0.82rem;
}

.case-study-nav-steps {
  display: flex;
  gap: 4px;
}

.case-study-nav-step:hover {
  color: var(--sg-teal-dark);
  background: #eef7f7;
}

.case-study-nav-step.is-disabled {
  opacity: 0.36;
}

.case-study-body {
  overflow: hidden;
  width: 100%;
}

.case-study-body > .row,
.case-study-body .row {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.case-study-body [class*="col-"] {
  min-width: 0;
}

.case-study-body [class*="col-lg-9"],
.case-study-body [class*="col-lg-10"] {
  max-width: 1180px;
}

.case-study-body .case-study-intro {
  max-width: 920px;
  margin: 0 auto clamp(26px, 4vw, 44px) !important;
  color: var(--sg-ink) !important;
  font-size: clamp(1.18rem, 2vw, 1.58rem) !important;
  font-weight: 650 !important;
  line-height: 1.55 !important;
  text-align: center !important;
  text-wrap: balance;
}

.case-study-body .case-major-panel {
  overflow: hidden;
  width: 100% !important;
  max-width: 1180px;
  margin: 0 auto 22px !important;
  padding: clamp(22px, 3vw, 38px) !important;
  border: 1px solid rgba(16, 35, 63, 0.1) !important;
  border-left: 5px solid var(--sg-teal) !important;
  border-radius: 22px !important;
  color: var(--sg-ink) !important;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(16, 35, 63, 0.07) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

.case-study-body .case-generated-panel {
  border-left-color: var(--sg-gold) !important;
}

.case-study-body .case-layout-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.case-study-body .case-layout-row > [class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.case-study-body .case-nested-panel {
  width: 100% !important;
  margin: 10px 0 !important;
  padding: clamp(17px, 2.2vw, 24px) !important;
  border: 1px solid #dfeaec !important;
  border-radius: 15px !important;
  color: var(--sg-ink) !important;
  background: #f3f8f8 !important;
  box-shadow: none !important;
  font-size: 0.96rem !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

.case-study-body .case-panel-title,
.case-study-body .case-major-panel > p.case-panel-title:first-child {
  grid-column: 1 / -1;
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
  width: 100% !important;
  height: auto !important;
  border: 0 !important;
  border-bottom: 1px solid #dfe8ea !important;
  color: var(--sg-teal-dark) !important;
  background: transparent !important;
  font-size: clamp(1.1rem, 1.8vw, 1.38rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.02em;
  text-align: left !important;
  text-transform: uppercase;
}

.case-study-body [style*="border-color"] {
  border-color: #dfe8ea !important;
}

.case-study-body p,
.case-study-body li {
  color: var(--sg-ink-2) !important;
  font-size: clamp(0.96rem, 1.2vw, 1.05rem) !important;
  line-height: 1.72 !important;
}

.case-study-body p {
  max-width: none;
  margin-top: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 14px !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
}

.case-study-body ul,
.case-study-body ol {
  margin: 12px 0 18px !important;
  padding-left: 1.35rem !important;
}

.case-study-body b,
.case-study-body strong {
  color: var(--sg-ink) !important;
}

.case-study-body .work-box,
.case-study-body .fh5co-work-item,
.case-study-body a.work-box {
  overflow: visible !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.case-study-body img,
.case-study-body img.img-responsive,
.case-study-body .work-box img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 8px auto !important;
  border-radius: 14px;
  object-fit: contain !important;
}

.case-study-body img.case-art-icon,
.case-study-body .work-box img.case-art-icon {
  width: min(170px, 46vw) !important;
  max-height: 190px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
}

.case-study-body img.case-art-feature,
.case-study-body .work-box img.case-art-feature {
  width: auto !important;
  max-height: 520px;
}

.case-study-body .case-layout-row img.case-art-feature {
  max-height: 380px;
}

.case-study-body table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.case-study-page .footer-navigation {
  display: none;
}

@media (max-width: 900px) {
  .case-study-nav {
    position: relative;
    top: auto;
    grid-template-columns: 1fr auto;
    width: calc(100% - 20px);
    margin-top: -22px;
  }

  .case-study-nav-jump {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .case-study-nav-steps {
    justify-self: end;
  }

  .case-study-body .case-layout-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .case-study-page .hero-section {
    min-height: 330px !important;
    padding: 34px 18px !important;
  }

  .case-study-page .hero-section h1 {
    font-size: clamp(1.72rem, 8.6vw, 2.35rem) !important;
    line-height: 1.12 !important;
  }

  .case-study-nav {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .case-study-nav-all,
  .case-study-nav-jump,
  .case-study-nav-steps {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .case-study-nav-steps {
    justify-content: space-between;
  }

  .case-study-nav-step {
    flex: 1;
  }

  .case-study-body {
    padding: 14px;
    border-radius: 20px;
  }

  .case-study-body .case-major-panel {
    margin-bottom: 16px !important;
    padding: 20px 16px !important;
    border-left-width: 4px !important;
    border-radius: 17px !important;
  }

  .case-study-body .case-nested-panel {
    padding: 15px !important;
  }
}
