:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #121417;
  --muted: #617082;
  --primary: #334156;
  --accent: #4e647e;
  --line: rgba(51, 65, 86, 0.12);
  --dark: #11161d;
  --inverse: #f5f7fa;
  --highlight: #8fa3bd;
  --lux-cyan: #7db8d2;
  --lux-amber: #d5b48a;
  --lux-rose: #c88ea0;
  --lux-lime: #b8d77a;
  --lux-violet: #8f88ff;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 8% 10%, rgba(125, 184, 210, 0.24), transparent 45%),
    radial-gradient(circle at 88% 6%, rgba(200, 142, 160, 0.18), transparent 42%),
    radial-gradient(circle at 62% 64%, rgba(213, 180, 138, 0.18), transparent 45%),
    var(--bg);
  color: var(--ink);
}

body::before {
  display: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  z-index: -1;
}

.site-content p {
  line-height: 1.72;
}

.site-content p.text-sm {
  line-height: 1.82;
}

.site-content p.text-base {
  line-height: 1.88;
}

.site-content p.text-lg {
  line-height: 1.9;
}

.site-content p + p {
  margin-top: 0.88rem;
}

.site-content .meta-grid p + p,
.site-content .meta-grid p {
  margin-top: 0;
}

.site-content li {
  line-height: 1.72;
}

.site-content ul li + li,
.site-content ol li + li {
  margin-top: 0.44rem;
}

.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
  line-height: 1.14;
}

.article-body h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
}

.article-body h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
}

.article-body p + h2,
.article-body p + h3 {
  margin-top: 2rem;
}

.nav-shell {
  backdrop-filter: blur(16px);
  background: rgba(246, 248, 251, 0.7);
  border: 1px solid transparent;
  transition: border-color 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}

.nav-shell.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 18px 45px rgba(17, 22, 29, 0.08);
  background: rgba(246, 248, 251, 0.88);
}

.section-pad {
  padding-top: clamp(5.5rem, 8vw, 8.5rem);
  padding-bottom: clamp(5.5rem, 8vw, 8.5rem);
}

.site-content > section + section {
  position: relative;
}

.site-content > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 2.5rem, 88rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(51, 65, 86, 0), rgba(51, 65, 86, 0.14) 12%, rgba(51, 65, 86, 0.14) 88%, rgba(51, 65, 86, 0));
}

.cursor-dot,
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transition: opacity 250ms ease;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lux-cyan), var(--lux-rose));
  box-shadow: 0 0 22px rgba(125, 184, 210, 0.6);
}

.cursor-glow {
  display: none !important;
}

body.cursor-on .cursor-dot,
body.cursor-on .cursor-glow {
  opacity: 1;
}

.soft-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(17, 22, 29, 0.05);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  transform-style: preserve-3d;
}

.soft-card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 65, 86, 0.22);
  box-shadow: 0 28px 50px rgba(17, 22, 29, 0.08);
}

.luxe-card-a {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(78, 100, 126, 0.12));
}

.luxe-card-b {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(51, 65, 86, 0.16));
}

.luxe-card-c {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(143, 163, 189, 0.2));
}

.meta-label {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dark-panel {
  background: radial-gradient(circle at 20% 20%, rgba(143, 163, 189, 0.16), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(78, 100, 126, 0.18), transparent 35%),
    var(--dark);
  color: var(--inverse);
}

.feedback-panel {
  background: radial-gradient(circle at 18% 12%, rgba(159, 186, 232, 0.32), transparent 42%),
    radial-gradient(circle at 85% 5%, rgba(116, 146, 196, 0.22), transparent 38%),
    linear-gradient(145deg, #2b3a52, #334156 56%, #28354c);
  color: var(--inverse);
}

.faq-on-brand {
  background: linear-gradient(145deg, rgba(212, 222, 238, 0.92), rgba(195, 210, 232, 0.92));
}

.editorial-serif {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}

.divider-line {
  border-top: 1px solid var(--line);
}

.hero-glow {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(125, 184, 210, 0.42), transparent 45%),
    radial-gradient(circle at 78% 30%, rgba(200, 142, 160, 0.26), transparent 42%),
    radial-gradient(circle at 54% 72%, rgba(213, 180, 138, 0.24), transparent 44%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
}

.hero-glow::after {
  content: "";
  position: absolute;
  inset: -30% 20% auto -20%;
  height: 65%;
  background: radial-gradient(circle, rgba(143, 163, 189, 0.36), transparent 68%);
  animation: floatPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.gradient-headline {
  background: linear-gradient(90deg, #8fb5ff, #66d8d1 45%, #9fa9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.liquid-pill {
  background: linear-gradient(120deg, rgba(51, 65, 86, 0.12), rgba(78, 100, 126, 0.16), rgba(143, 163, 189, 0.2));
  border: 1px solid rgba(51, 65, 86, 0.16);
}

.luxe-band {
  background: radial-gradient(circle at 14% 20%, rgba(78, 100, 126, 0.22), transparent 38%),
    radial-gradient(circle at 86% 16%, rgba(51, 65, 86, 0.2), transparent 36%),
    radial-gradient(circle at 40% 85%, rgba(143, 163, 189, 0.28), transparent 40%),
    #f3f5fa;
  border: 1px solid rgba(51, 65, 86, 0.14);
}

.vivid-frame {
  position: relative;
  overflow: hidden;
}

.vivid-frame::before {
  display: none;
}

.vivid-frame::after {
  display: none;
}

.expertise-stack {
  position: relative;
}

.expertise-panel {
  position: sticky;
  top: 6.5rem;
  min-height: calc(100vh - 8rem);
  border-radius: 2rem;
  border: 1px solid rgba(51, 65, 86, 0.14);
  padding: clamp(1.75rem, 3vw, 3rem);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
  opacity: 0.4;
  transform: scale(0.975);
  transition: opacity 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}

.expertise-panel.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.2);
}

.expertise-panel + .expertise-panel {
  margin-top: 18vh;
}

.expertise-pin-shell {
  position: relative;
  min-height: calc(var(--count, 6) * 90vh);
}

.expertise-pin-sticky {
  position: sticky;
  top: 6.4rem;
  min-height: calc(100vh - 8rem);
  border-radius: 2rem;
  overflow: hidden;
}

.expertise-stage {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  border: 1px solid rgba(51, 65, 86, 0.18);
  padding: clamp(1.75rem, 3vw, 3rem);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

.expertise-stage.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.expertise-surface-a {
  background: #eef3fa;
}

.expertise-surface-b {
  background: #eef3fa;
}

.expertise-surface-c {
  background: #eef3fa;
}

.expertise-surface-d {
  background: #eef3fa;
}

.expertise-surface-e {
  background: #eef3fa;
}

.expertise-surface-f {
  background: #eef3fa;
}

.expertise-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(51, 65, 86, 0.15);
  background: rgba(255, 255, 255, 0.65);
}

.expertise-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.42), transparent 62%);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
}

body.theme-noir {
  --line: rgba(154, 174, 210, 0.2);
  background: radial-gradient(circle at 15% 5%, rgba(41, 74, 130, 0.38), transparent 42%),
    radial-gradient(circle at 82% 14%, rgba(51, 65, 86, 0.28), transparent 45%),
    radial-gradient(circle at 48% 75%, rgba(75, 89, 152, 0.32), transparent 42%),
    #080d14;
  color: #e8edf6;
}

body.theme-noir::before {
  display: none;
}

body.theme-noir::after {
  opacity: 0.11;
}


body.theme-noir .nav-shell {
  background: rgba(9, 14, 22, 0.7);
  border-color: rgba(146, 168, 210, 0.22);
}

body.theme-noir .nav-shell.is-scrolled {
  background: rgba(9, 14, 22, 0.9);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

body.theme-noir .hero-glow {
  border-color: rgba(142, 164, 210, 0.28);
  background: radial-gradient(circle at 18% 20%, rgba(77, 133, 220, 0.32), transparent 46%),
    radial-gradient(circle at 80% 34%, rgba(70, 191, 184, 0.26), transparent 44%),
    linear-gradient(130deg, rgba(14, 21, 34, 0.92), rgba(10, 15, 24, 0.84));
}

body.theme-noir .soft-card {
  background: linear-gradient(150deg, rgba(13, 22, 36, 0.95), rgba(17, 27, 44, 0.86));
  border-color: rgba(152, 176, 220, 0.2);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

body.theme-noir .luxe-card-a {
  background: linear-gradient(150deg, rgba(14, 25, 42, 0.95), rgba(51, 65, 86, 0.34));
}

body.theme-noir .luxe-card-b {
  background: linear-gradient(150deg, rgba(14, 25, 42, 0.95), rgba(41, 74, 130, 0.35));
}

body.theme-noir .luxe-card-c {
  background: linear-gradient(150deg, rgba(14, 25, 42, 0.95), rgba(88, 109, 143, 0.32));
}

body.theme-noir .liquid-pill {
  background: linear-gradient(120deg, rgba(63, 113, 182, 0.4), rgba(70, 95, 136, 0.34));
  border-color: rgba(146, 169, 214, 0.38);
  color: #e2eaf8;
}

body.theme-noir .luxe-band {
  background: radial-gradient(circle at 10% 10%, rgba(58, 118, 195, 0.42), transparent 42%),
    radial-gradient(circle at 88% 24%, rgba(74, 102, 145, 0.34), transparent 45%),
    linear-gradient(130deg, rgba(10, 18, 29, 0.94), rgba(10, 18, 29, 0.88));
  border-color: rgba(153, 174, 214, 0.28);
}

body.theme-noir .expertise-stage {
  border-color: rgba(154, 176, 216, 0.28);
  background: #f2f6fc;
}

body.theme-noir .expertise-media {
  border-color: rgba(82, 106, 146, 0.24);
  background: rgba(255, 255, 255, 0.75);
}

body.theme-noir .expertise-stage .text-brand-900,
body.theme-noir .expertise-stage .text-slate-700,
body.theme-noir .expertise-stage .text-brand-700,
body.theme-noir .expertise-stage .text-brand-600 {
  color: #1b2a3d;
}

body.theme-noir .text-brand-900,
body.theme-noir .text-slate-700,
body.theme-noir .text-slate-600,
body.theme-noir .text-slate-500 {
  color: #d6e0f1;
}

body.theme-noir .text-brand-700 {
  color: var(--lux-cyan);
}

body.theme-noir nav .text-brand-700 {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

body.theme-noir nav a:hover {
  color: var(--lux-cyan) !important;
}

body.theme-noir .editorial-serif.text-brand-700 {
  background: linear-gradient(90deg, #8fb5ff, #66d8d1 45%, #9fa9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}


body.theme-noir .text-brand-500,
body.theme-noir .text-brand-600 {
  color: #95afe2;
}

body.theme-noir .bg-brand-50 {
  background-color: rgba(25, 40, 64, 0.72);
}

body.theme-noir .bg-brand-100 {
  background-color: rgba(35, 58, 90, 0.88);
}

body.theme-noir .bg-slate-100 {
  background-color: rgba(38, 48, 65, 0.9);
}

body.theme-noir .border-brand-700\/10,
body.theme-noir .border-brand-700\/20 {
  border-color: rgba(153, 174, 214, 0.28);
}

body.theme-noir .bg-white\/90,
body.theme-noir .bg-white\/80 {
  background-color: rgba(11, 19, 31, 0.9);
}

body.theme-noir .mobile-nav-panel {
  background: rgba(9, 14, 22, 0.96);
  border-color: rgba(146, 169, 214, 0.28);
}

body.theme-noir .mobile-nav-panel a {
  color: #d8e3f5;
}

body.theme-noir a.bg-white,
body.theme-noir button.bg-white {
  color: #102038;
}

body.theme-noir .tab-chip,
body.theme-noir .filter-chip {
  background: rgba(12, 21, 36, 0.66);
  border-color: rgba(146, 169, 214, 0.28);
  color: #d3def3;
}

body.theme-noir .tab-chip[aria-selected="true"] {
  background: rgba(148, 173, 218, 0.24);
  border-color: rgba(165, 188, 228, 0.62);
  color: #eef3ff;
  box-shadow: inset 0 0 0 1px rgba(188, 208, 240, 0.24);
}

body.theme-noir .faq-item {
  background: #f2f6fc;
  border-color: rgba(82, 106, 146, 0.24);
}

body.theme-noir .faq-item .text-brand-900,
body.theme-noir .faq-item .text-slate-700,
body.theme-noir .faq-item .text-brand-600 {
  color: #1b2a3d;
}

body.theme-noir .faq-on-dark .faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

body.theme-noir .faq-on-dark .faq-item .text-brand-50,
body.theme-noir .faq-on-dark .faq-item .text-brand-50\/85,
body.theme-noir .faq-on-dark .faq-item .text-brand-200 {
  color: #e8edf6;
}

body.theme-noir .faq-on-brand {
  background: linear-gradient(145deg, rgba(44, 62, 90, 0.88), rgba(52, 73, 103, 0.9));
  border-color: rgba(173, 194, 229, 0.28);
}

body.theme-noir .faq-on-brand .faq-item {
  background: rgba(10, 20, 35, 0.68);
  border-color: rgba(173, 194, 229, 0.26);
}

body.theme-noir .faq-on-brand .faq-item .text-brand-900,
body.theme-noir .faq-on-brand .faq-item .text-slate-700,
body.theme-noir .faq-on-brand .faq-item .text-brand-600 {
  color: #e8eef9;
}

body.theme-noir .nav-submenu {
  background: rgba(10, 16, 27, 0.96);
  border-color: rgba(146, 169, 214, 0.24);
}

body.theme-noir .nav-submenu a {
  color: #d6e0f1;
}

body.theme-noir .nav-submenu a:hover {
  background: rgba(146, 169, 214, 0.12);
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 16px, 0);
  }
}

.project-stripe {
  background-image: linear-gradient(135deg, rgba(51, 65, 86, 0.06), rgba(143, 163, 189, 0.2));
}

.aurora-band {
  background: linear-gradient(120deg, rgba(51, 65, 86, 0.9), rgba(78, 100, 126, 0.96), rgba(143, 163, 189, 0.88), rgba(51, 65, 86, 0.9));
  background-size: 240% 240%;
  animation: auroraMove 16s ease infinite;
}

@keyframes auroraMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.metric-num {
  font-variant-numeric: tabular-nums;
}

.tilt-wrap {
  transform-style: preserve-3d;
  perspective: 900px;
}

.tilt-child {
  transform: translateZ(28px);
}

.tab-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: #334156;
  transition: all 220ms ease;
}

.tab-chip[aria-selected="true"] {
  background: rgba(51, 65, 86, 0.14);
  color: #1c2532;
  border-color: rgba(51, 65, 86, 0.46);
  box-shadow: inset 0 0 0 1px rgba(51, 65, 86, 0.18);
}

.nav-has-children {
  position: relative;
}

.nav-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-submenu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  min-width: 12rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(51, 65, 86, 0.15);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(17, 22, 29, 0.14);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  pointer-events: none;
  z-index: 70;
}

.nav-has-children:hover .nav-submenu,
.nav-has-children:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-submenu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 0.6rem;
  color: #334156;
  font-size: 0.82rem;
}

.nav-submenu a:hover {
  background: rgba(51, 65, 86, 0.08);
}

.menu-caret {
  transition: transform 180ms ease;
}

.nav-has-children:hover .menu-caret,
.nav-has-children:focus-within .menu-caret {
  transform: translateY(1px);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.filter-chip {
  border: 1px solid var(--line);
  transition: all 220ms ease;
}

.filter-chip.is-active {
  background: #2e4768;
  color: #fff;
  border-color: rgba(152, 176, 220, 0.45);
}

.project-tile {
  transition: opacity 260ms ease, transform 260ms ease;
}

.project-tile.is-hidden {
  display: none;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease, opacity 260ms ease, padding-top 260ms ease;
  opacity: 0;
}

[data-accordion-item].is-open .faq-answer,
.faq-item.is-open .faq-answer {
  max-height: 820px;
  opacity: 1;
  padding-top: 0.35rem;
}

.faq-plus {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 220ms ease;
}

[data-accordion-item].is-open .faq-plus,
.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
}

.service-expand {
  border: 1px solid rgba(82, 106, 146, 0.24);
  background: #f2f6fc;
}

.service-expand .text-brand-900,
.service-expand .text-slate-700,
.service-expand .text-brand-600,
.service-expand .text-brand-500 {
  color: #1b2a3d;
}

.service-visual {
  border: 1px dashed rgba(82, 106, 146, 0.35);
  background: linear-gradient(145deg, #ffffff, #e9f0fb);
}

.story-sticky {
  position: sticky;
  top: 7rem;
}

@media (max-width: 820px) {
  .story-sticky {
    position: static;
  }

  .expertise-panel {
    position: static;
    min-height: auto;
    opacity: 1;
    transform: none;
  }

  .expertise-pin-shell {
    min-height: auto;
  }

  .expertise-pin-sticky {
    position: static;
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .expertise-stage {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .soft-card:hover,
  .project-tile.is-hidden {
    transform: none;
  }

  .hero-glow::after,
  .aurora-band {
    animation: none;
  }

  .cursor-dot,
  .cursor-glow {
    display: none;
  }

  .expertise-panel {
    position: static;
    min-height: auto;
    opacity: 1;
    transform: none;
  }

  .expertise-pin-shell {
    min-height: auto;
  }

  .expertise-pin-sticky {
    position: static;
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .expertise-stage {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-height: auto;
  }

  .expertise-media::after {
    animation: none;
  }
}
