:root {
  --bg: #f5f4f0;
  --surface: #fffdfa;
  --surface-soft: #ebe9e2;
  --ink: #111820;
  --muted: #5d686f;
  --line: #d7d4cb;
  --accent: #b4975d;
  --accent-strong: #806a43;
  --steel: #496f7d;
  --deep: #0b0f12;
  --deep-2: #151b20;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(20, 26, 31, 0.12);
  --shadow-soft: 0 14px 42px rgba(20, 26, 31, 0.09);
  --radius: 8px;
  --max: 1180px;
  --header: 74px;
}

body.dark {
  --bg: #0c1013;
  --surface: #151a1e;
  --surface-soft: #20272b;
  --ink: #f0f1ed;
  --muted: #a6afb2;
  --line: #2a3338;
  --accent: #c7aa73;
  --accent-strong: #d9c18f;
  --steel: #86a5ae;
  --deep: #06080a;
  --deep-2: #10161a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(73, 111, 125, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(180, 151, 93, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 54px 54px;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 240ms ease, color 240ms ease;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(169, 137, 83, 0.25);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--steel));
  z-index: 2000;
  transform-origin: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 244, 240, 0.84);
  border-bottom: 1px solid rgba(213, 216, 212, 0.82);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

body.dark .site-header {
  background: rgba(15, 18, 20, 0.82);
  border-bottom-color: rgba(43, 51, 55, 0.85);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.header-wrap {
  width: min(var(--max), calc(100% - 40px));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 142px;
  height: auto;
  filter: none;
  transition: filter 220ms ease, transform 220ms ease;
}

body.dark .brand img {
  filter: invert(1) grayscale(1) brightness(1.18);
}

.brand:hover img {
  transform: translateY(-1px);
}

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

.main-nav a,
.site-footer nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 180ms ease;
}

.main-nav a::after,
.site-footer nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.main-nav a:hover,
.main-nav a.active,
.site-footer nav a:hover {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.active::after,
.site-footer nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

body.dark .control-btn {
  background: rgba(255, 255, 255, 0.04);
}

.control-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(169, 137, 83, 0.2), transparent);
  transform: translateX(-110%);
  transition: transform 450ms ease;
}

.control-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.control-btn:hover::before {
  transform: translateX(110%);
}

.control-btn > * {
  position: relative;
}

.icon-btn {
  font-size: 1rem;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(96vh - var(--header));
  padding: clamp(54px, 7.4vh, 84px) 20px 44px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(6, 8, 10, 0.9), rgba(8, 11, 13, 0.68), rgba(6, 8, 10, 0.92)),
    url("assets/hero-consulting.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroScale 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(169, 137, 83, 0.12), transparent 26%),
    linear-gradient(240deg, rgba(95, 120, 128, 0.18), transparent 30%);
  mix-blend-mode: screen;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.86;
}

.hero-content {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  width: min(700px, 100%);
  margin: 0;
  color: var(--white);
  font-family: Sora, Manrope, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.hero-copy {
  width: min(610px, 100%);
  margin-top: 20px;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.9rem, 0.95vw, 0.98rem);
  line-height: 1.72;
}

.hero-copy p {
  margin: 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.primary-link,
.secondary-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 7px;
  overflow: hidden;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.primary-link {
  background: var(--accent);
  color: #111;
  border: 1px solid var(--accent);
}

.secondary-link {
  color: currentColor;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.section-panel .secondary-link,
.contact .secondary-link {
  border-color: var(--line);
  background: var(--surface);
}

.primary-link::after,
.secondary-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35), transparent 70%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-3px);
}

.primary-link:hover::after,
.secondary-link:hover::after {
  transform: translateX(120%);
}

.primary-link i,
.secondary-link i,
.primary-link span,
.secondary-link span {
  position: relative;
  z-index: 1;
}

.metric-strip {
  width: min(940px, 100%);
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.metric {
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

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

.metric strong {
  display: block;
  color: var(--white);
  font-family: Sora, Manrope, Arial, sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.partner-metric {
  gap: 8px;
}

.metric-logo {
  width: min(128px, 100%);
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.metric-logo img {
  width: 100%;
  max-height: 20px;
  object-fit: contain;
}

.intro-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-card,
.value-card,
.service-card,
.process-card,
.industry-card,
.insight-card,
.partner-card,
.statement-panel,
.office-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.tilt-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
}

.intro-card:hover,
.value-card:hover,
.service-card:hover,
.process-card:hover,
.industry-card:hover,
.insight-card:hover,
.partner-card:hover,
.statement-panel:hover,
.office-card:hover {
  --lift: -6px;
  border-color: rgba(169, 137, 83, 0.72);
  box-shadow: var(--shadow);
}

.intro-card {
  min-height: 246px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: rgba(23, 29, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.intro-card::before,
.value-card::before,
.service-card::before,
.process-card::before,
.industry-card::before,
.insight-card::before,
.partner-card::before,
.statement-panel::before,
.office-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(169, 137, 83, 0.18), transparent 34%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.intro-card:hover::before,
.value-card:hover::before,
.service-card:hover::before,
.process-card:hover::before,
.industry-card:hover::before,
.insight-card:hover::before,
.partner-card:hover::before,
.statement-panel:hover::before,
.office-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(169, 137, 83, 0.36);
  border-radius: 7px;
  color: var(--accent);
  background: rgba(169, 137, 83, 0.09);
  font-size: 1.35rem;
}

.intro-card h3,
.value-card h3,
.service-card h3,
.process-card h3,
.partner-card h3,
.statement-panel h3,
.office-card h3 {
  margin: 20px 0 8px;
  font-family: Sora, Manrope, Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.intro-card p,
.value-card p,
.service-card p,
.process-card p,
.statement-panel p,
.office-card p {
  margin: 0;
  color: var(--muted);
}

.intro-card p {
  color: rgba(255, 255, 255, 0.68);
}

.intro-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.intro-card a i {
  transition: transform 180ms ease;
}

.intro-card a:hover i {
  transform: translateX(4px);
}

.section-panel {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 118px) 0;
}

.section-panel.band {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: max(20px, calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, rgba(95, 120, 128, 0.09), rgba(169, 137, 83, 0.05));
  border-block: 1px solid var(--line);
}

body.dark .section-panel.band {
  background: linear-gradient(180deg, rgba(95, 120, 128, 0.09), rgba(169, 137, 83, 0.08));
}

.section-heading {
  width: min(860px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.compact {
  margin-top: 62px;
  margin-bottom: 30px;
}

.section-heading .section-kicker {
  justify-content: center;
}

.section-heading .section-kicker::before {
  display: none;
}

.section-heading h2,
.leadership h2 {
  margin: 0;
  color: var(--ink);
  font-family: Sora, Manrope, Arial, sans-serif;
  font-size: clamp(1.9rem, 3.45vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-heading p,
.leadership-copy p {
  margin: 18px auto 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.statement-panel {
  min-height: 280px;
  padding: 34px;
}

.statement-panel > i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--deep-2);
  color: var(--accent);
  font-size: 1.35rem;
}

body.dark .statement-panel > i {
  background: var(--surface-soft);
}

.value-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.value-card,
.service-card,
.process-card {
  min-height: 240px;
  padding: 26px;
}

.value-card .card-icon,
.service-card .card-icon,
.process-card .card-icon {
  margin-bottom: 8px;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--steel), transparent);
}

.process-card {
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
}

.process-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #111;
  background: var(--accent);
  font-weight: 900;
  box-shadow: 0 0 0 8px var(--surface);
}

body.dark .process-card .step-number {
  box-shadow: 0 0 0 8px var(--surface);
}

.leadership {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.leadership-copy .section-kicker::before {
  display: block;
}

.leadership-copy p {
  margin-left: 0;
}

.visual-frame {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.visual-frame img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.04);
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(9, 11, 13, 0.55)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, 0.08) 39px 40px);
}

.signal-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(13, 17, 21, 0.72);
  color: var(--white);
  backdrop-filter: blur(16px);
  font-weight: 800;
  animation: floatSoft 5.4s ease-in-out infinite;
}

.signal-card i {
  color: var(--accent);
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--steel), transparent);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 280ms ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.industry-card {
  min-height: 112px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.industry-card .card-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  font-size: 1.08rem;
}

.industry-card h3 {
  margin: 0;
  font-family: Sora, Manrope, Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.25;
}

.insight-slider {
  position: relative;
  margin-top: 8px;
}

.insight-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.insight-viewport::-webkit-scrollbar {
  display: none;
}

.insight-grid {
  display: flex;
  gap: 18px;
  padding: 4px 2px 18px;
}

.insight-card {
  display: flex;
  flex: 0 0 calc((100% - 36px) / 3);
  flex-direction: column;
  min-height: 438px;
  scroll-snap-align: start;
}

.insight-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-soft);
}

.insight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02);
  transition: transform 650ms ease;
}

.insight-card:hover .insight-media img {
  transform: scale(1.07);
}

.insight-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.insight-body span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-body p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.42;
}

.slider-btn {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(169, 137, 83, 0.42);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.slider-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.slider-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
}

.slider-prev {
  left: -18px;
}

.slider-next {
  right: -18px;
}

.insight-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.insight-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.insight-dots button.active {
  width: 42px;
  background: var(--accent);
}

.partner-section {
  position: relative;
  width: 100%;
  padding: clamp(72px, 8vw, 104px) max(20px, calc((100% - var(--max)) / 2));
  color: var(--white);
  background:
    linear-gradient(130deg, rgba(180, 151, 93, 0.12), transparent 28%),
    linear-gradient(300deg, rgba(73, 111, 125, 0.2), transparent 34%),
    var(--deep);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.partner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
  pointer-events: none;
}

.partner-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.partner-copy .section-kicker {
  color: var(--accent);
}

.partner-copy h2 {
  margin: 0;
  font-family: Sora, Manrope, Arial, sans-serif;
  font-size: clamp(1.9rem, 3.3vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.partner-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
}

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

.partner-card {
  min-height: 268px;
  padding: 28px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.partner-card h3 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.partner-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.partner-logo-frame {
  width: min(210px, 100%);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.22);
}

.partner-logo-frame img {
  width: 100%;
  max-height: 32px;
  object-fit: contain;
}

.google-card .partner-logo-frame img {
  max-width: 132px;
}

.microsoft-card .partner-logo-frame img {
  max-width: 168px;
}

.partner-detail {
  margin: 12px 0 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
}

.partner-quote {
  width: fit-content;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.partner-quote:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(180, 151, 93, 0.16);
}

.contact-actions {
  justify-content: center;
  margin-top: -10px;
  margin-bottom: 34px;
}

.contact .primary-link,
.contact .secondary-link {
  color: var(--ink);
}

.contact-form {
  position: relative;
  width: min(1080px, 100%);
  margin: 8px auto 36px;
  padding: clamp(28px, 4vw, 44px);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  box-shadow: 0 18px 54px rgba(17, 24, 32, 0.07);
  overflow: hidden;
}

body.dark .contact-form {
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-soft));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--steel), transparent);
  opacity: 0.95;
}

.contact-form::after {
  content: "";
  position: absolute;
  top: -42%;
  right: 8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 151, 93, 0.16), rgba(73, 111, 125, 0.08) 42%, transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.form-head {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-head .section-kicker {
  margin-bottom: 10px;
}

.form-head .section-kicker::before {
  display: block;
}

.form-head h3 {
  margin: 0;
  font-family: Sora, Manrope, Arial, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  line-height: 1.14;
}

.form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field.full,
.other-topic.is-active {
  grid-column: 1 / -1;
}

.other-topic {
  display: none;
}

.other-topic.is-active {
  display: grid;
}

.form-field span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.dark .form-field input,
body.dark .form-field select,
body.dark .form-field textarea {
  background: rgba(255, 255, 255, 0.055);
}

.form-field select option {
  background: #ffffff;
  color: #111820;
}

.form-field select option:disabled {
  color: #667078;
}

.form-field input,
.form-field select {
  height: 50px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
  padding: 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(180, 151, 93, 0.14);
}

.form-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 22px;
}

.form-submit {
  border: 1px solid var(--accent);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  min-width: 168px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--accent);
  font-weight: 800;
}

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

.office-card {
  min-height: 238px;
  padding: 30px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.office-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.office-card h3 i {
  color: var(--accent);
}

.office-card a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.office-card a i {
  color: var(--steel);
  margin-top: 4px;
}

.office-card a:hover {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 34px 20px;
}

.footer-wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: 128px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-top:hover {
  border-color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.intro-card,
.value-card,
.service-card,
.process-card,
.industry-card,
.insight-card,
.partner-card {
  animation: cardSettle 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--stagger, 0ms);
}

@keyframes heroScale {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.2%, -1%, 0);
  }
}

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes cardSettle {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .header-wrap {
    width: min(100% - 28px, var(--max));
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding-inline: 10px;
  }

  .value-grid,
  .service-grid,
  .process-grid,
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .process-grid::before {
    display: none;
  }

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

  .partner-shell {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 820px) {
  :root {
    --header: 66px;
  }

  .header-wrap {
    gap: 12px;
  }

  .brand img {
    width: 124px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: fixed;
    top: var(--header);
    left: 14px;
    right: 14px;
    display: grid;
    justify-content: stretch;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.mobile-show {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-nav a {
    min-height: 48px;
    justify-content: center;
    color: var(--ink);
  }

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

  .hero h1 {
    font-size: clamp(2.08rem, 10.5vw, 3.65rem);
  }

  .metric-strip,
  .intro-grid,
  .split-layout,
  .value-grid,
  .service-grid,
  .process-grid,
  .industry-grid,
  .partner-grid,
  .form-grid,
  .office-grid,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

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

  .intro-grid,
  .section-panel {
    width: min(100% - 28px, var(--max));
  }

  .intro-grid {
    margin-top: 46px;
  }

  .section-panel {
    padding-block: 72px;
  }

  .section-panel.band {
    padding-inline: 14px;
  }

  .insight-card {
    flex-basis: 100%;
    min-height: 414px;
  }

  .slider-btn {
    position: static;
    box-shadow: none;
  }

  .insight-slider {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
  }

  .insight-viewport {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .slider-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .slider-next {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
  }

  .partner-section {
    padding-inline: 14px;
  }

  .visual-frame,
  .visual-frame img {
    min-height: 320px;
  }

  .footer-wrap {
    justify-items: center;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .header-wrap {
    width: calc(100% - 20px);
  }

  .control-btn {
    min-width: 39px;
    height: 39px;
  }

  .hero {
    padding-inline: 14px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .statement-panel,
  .value-card,
  .service-card,
  .process-card,
  .partner-card,
  .contact-form,
  .office-card {
    padding: 24px;
  }

  .partner-card {
    min-height: 190px;
  }

  .industry-card {
    min-height: 96px;
  }

  .site-footer nav a {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  #heroCanvas {
    display: none;
  }
}
