:root {
  --black: #101010;
  --black-deep: #070809;
  --ink: #11181c;
  --fog: #dfe8ea;
  --paper: #edf7f9;
  --muted: rgba(237, 247, 249, 0.56);
  --muted-dark: rgba(17, 24, 28, 0.62);
  --cyan: #00e6ff;
  --blue: #0875ff;
  --royal: #1435cc;
  --violet: #6f64ff;
  --teal: #6bb4bf;
  --line: rgba(237, 247, 249, 0.16);
  --line-dark: rgba(17, 24, 28, 0.18);
  --radius: 20px;
  --ease: cubic-bezier(0.62, 0.16, 0.13, 1.01);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--black);
  color: var(--fog);
  font-family: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cyan);
  color: var(--black);
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

.site-header {
  align-items: center;
  display: flex;
  height: 86px;
  justify-content: space-between;
  left: 0;
  padding: 0 40px;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 60;
}

/* Dynamic Island state */
@keyframes island-in {
  0%   { opacity: 0; transform: translateX(-50%) scaleX(0.72) scaleY(0.6); filter: blur(8px); }
  60%  { opacity: 1; transform: translateX(-50%) scaleX(1.03) scaleY(1.04); filter: blur(0); }
  100% { transform: translateX(-50%) scaleX(1) scaleY(1); }
}

.site-header {
  transition:
    left   700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    right  700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    top    700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    width  700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    height 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    padding 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 700ms ease,
    box-shadow 700ms ease,
    border 700ms ease;
}

.site-header.is-island {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  min-width: 400px;
  max-width: 700px;
  height: 52px;
  top: 14px;
  padding: 0 18px 0 14px;
  border-radius: 100px;
  /* Liquid glass layers */
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.01) 100%),
    rgba(7, 10, 18, 0.65);
  backdrop-filter: blur(28px) saturate(1.8) brightness(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.8) brightness(1.1);
  /* Glass borders: top highlight + cyan glow */
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 0 0.5px rgba(0, 210, 245, 0.18),
    0 4px 6px rgba(0,0,0,0.25),
    0 16px 40px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.25);
  pointer-events: auto;
  animation: island-in 700ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* When going back to top, remove animation */
.site-header:not(.is-island) {
  animation: none;
  transform: none;
}

.site-header.is-island .brand-logo-frame {
  height: 32px;
  transition: height 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-header.is-island .nav-links {
  gap: 20px;
  display: flex;
}

.site-header.is-island .nav-links a {
  font-size: 11px;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-logo-frame {
  display: inline-flex;
  height: 110px;
  width: auto;
}

.brand-logo {
  filter: saturate(1.18) contrast(1.08);
  height: 100%;
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

.nav-links a,
.eyebrow,
.corner-button,
.section-rail,
.hero-footer,
.tile-count,
.drag-cursor,
.stacked-panels span {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 48px;
}

.nav-links a {
  color: rgba(237, 247, 249, 0.82);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  position: relative;
}

.nav-links a::after {
  background: currentColor;
  bottom: -8px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
  width: 100%;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.scene {
  position: relative;
}

.hero-scene {
  background:
    radial-gradient(ellipse 58% 44% at 4% 6%,  rgba(0, 214, 242, 0.105), transparent 62%),
    radial-gradient(ellipse 52% 42% at 96% 94%, rgba(20, 53, 204, 0.22), transparent 58%),
    radial-gradient(ellipse 44% 36% at 52% 54%, rgba(8, 117, 255, 0.08), transparent 64%),
    var(--black);
  min-height: 112svh;
  overflow: hidden;
  padding: 110px 40px 34px;
}

#hero-canvas,
#focus-canvas,
#footer-canvas {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

#hero-canvas {
  opacity: 1;
}

.hero-meta {
  color: rgba(237, 247, 249, 0.34);
  display: grid;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  gap: 18px;
  grid-template-columns: 1fr 1fr auto;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.hero-meta span {
  white-space: nowrap;
}

.hero-meta span:nth-child(2) {
  justify-self: center;
}

.hero-title-stage {
  align-items: flex-end;
  display: flex;
  min-height: calc(112svh - 260px);
  padding-bottom: 70px;
  position: relative;
  z-index: 2;
}

.hero-title {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin: 0;
  pointer-events: none;
  width: 100%;
}

.hero-title > span {
  color: rgba(237, 247, 249, 0.96);
  display: block;
  font-size: clamp(32px, 3.6vw, 62px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.04;
  text-transform: uppercase;
  white-space: nowrap;
}

.title-left {
  grid-column: 1 / span 6;
}

.title-right {
  grid-column: 7 / span 6;
  text-align: right;
}

.hero-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(160px, 0.38fr) minmax(360px, 0.7fr) auto;
  padding-top: 22px;
  position: relative;
  z-index: 3;
}

.hero-footer p,
.hero-footer span {
  color: rgba(237, 247, 249, 0.82);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.hero-footer span {
  font-size: 13px;
  justify-self: end;
}

.corner-button {
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  min-width: 148px;
  padding: 14px 22px 0;
  position: relative;
  width: fit-content;
}

.corner-button::before,
.corner-button::after {
  border-color: currentColor;
  border-style: solid;
  content: "";
  height: 10px;
  position: absolute;
  width: 10px;
}

.corner-button::before {
  border-width: 1px 0 0 1px;
  left: 0;
  top: 0;
}

.corner-button::after {
  border-width: 0 1px 1px 0;
  bottom: 0;
  right: 0;
}

.light-panel {
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 230, 255, 0.09), transparent 30rem),
    radial-gradient(circle at 8% 86%, rgba(8, 117, 255, 0.07), transparent 25rem),
    #0d1214;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--fog);
  margin-top: -22px;
  overflow: hidden;
  z-index: 4;
}

.section-rail {
  color: rgba(237, 247, 249, 0.45);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.ethos-scene {
  padding: 46px 40px 130px;
}

.ethos-lockup {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.08fr 0.92fr;
  margin: 120px 0 64px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 18px;
}

.eyebrow.dark {
  color: #062d7c;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  font-size: clamp(38px, 5.8vw, 94px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 0;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(26px, 2.9vw, 46px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.ethos-copy {
  align-self: end;
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
}

.ethos-copy p {
  color: rgba(17, 24, 28, 0.72);
  font-size: clamp(20px, 1.65vw, 26px);
  line-height: 1.18;
  margin-bottom: 36px;
}

.corner-button.dark {
  color: var(--ink);
}

.ethos-cards {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  will-change: transform;
}

.service-tile {
  display: flex;
  flex: 1 1 25%;
  min-height: 610px;
  overflow: hidden;
  transition: flex-grow 560ms var(--ease), filter 420ms var(--ease);
  cursor: default;
}

.ethos-cards .service-tile[data-reveal] {
  opacity: 1;
  transform: none;
}

.service-tile.active,
.service-tile:hover {
  flex-grow: 1.7;
  filter: saturate(1.08);
}

.service-tile:first-child,
.service-tile:first-child .tile-inner {
  border-radius: var(--radius) 0 0 var(--radius);
}

.service-tile:last-child,
.service-tile:last-child .tile-inner {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tile-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  justify-content: flex-start;
  min-width: 300px;
  min-height: inherit;
  overflow: hidden;
  padding: 40px 28px 36px;
  position: relative;
  width: 100%;
}

.tile-inner h3 {
  align-self: center;
  margin: 0 auto;
  max-width: 360px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.tile-inner p:not(.tile-count) {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  max-width: 330px;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.tile-inner p:not(.tile-count) strong {
  display: block;
  font-size: 13px;
  line-height: 1.28;
  margin-bottom: 10px;
  opacity: 1;
}

.tile-count {
  font-size: 12px;
  margin: auto 0 12px;
  position: relative;
  z-index: 2;
}

.tile-dark {
  background: #101010;
  color: var(--fog);
}

.tile-teal {
  background: #0a1f24;
  color: var(--fog);
}

.tile-electric {
  background: linear-gradient(135deg, #1376ff, #00d6f3 62%, #55efd2);
  color: #101010;
}

.tile-fog {
  background: #0e1a1d;
  color: var(--fog);
}

.tile-pattern {
  inset: clamp(158px, 28%, 186px) 22px clamp(190px, 33%, 230px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
  opacity: 0.58;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  transition: opacity 420ms var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 84%, transparent 100%);
  will-change: opacity, transform;
  z-index: 1;
}

.tile-pattern::before,
.tile-pattern::after {
  content: "";
  position: absolute;
  will-change: opacity, transform, background-position;
}

.service-tile:hover .tile-pattern,
.service-tile.active .tile-pattern {
  opacity: 0.72;
}

.pattern-grid {
  animation: grid-drift 18s linear infinite alternate;
  background:
    linear-gradient(90deg, rgba(226, 234, 236, 0.08) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(226, 234, 236, 0.08) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle, rgba(226, 234, 236, 0.8) 0 1.4px, transparent 1.8px) 0 0 / 21px 21px;
  clip-path: polygon(0 22%, 100% 2%, 100% 78%, 0 100%);
}

.pattern-grid::before {
  animation: circuit-sweep 6.8s ease-in-out infinite;
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(0, 230, 255, 0.46) 43%, transparent 45%),
    linear-gradient(112deg, transparent 0 62%, rgba(226, 234, 236, 0.38) 63%, transparent 65%);
  inset: 0;
}

.pattern-grid::after {
  animation: node-breathe 5.2s ease-in-out infinite;
  background:
    radial-gradient(circle at 16% 68%, rgba(0, 230, 255, 0.95) 0 4px, transparent 5px),
    radial-gradient(circle at 58% 42%, rgba(226, 234, 236, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 26%, rgba(0, 230, 255, 0.82) 0 3px, transparent 4px);
  inset: 0;
}

.pattern-wave {
  animation: mesh-drift 16s linear infinite alternate;
  background:
    radial-gradient(circle, transparent 0 7px, rgba(16, 16, 16, 0.3) 8px, transparent 9px) 0 0 / 46px 46px,
    linear-gradient(90deg, transparent 0 8%, rgba(16, 16, 16, 0.22) 8% 9%, transparent 9% 100%) 0 0 / 46px 46px;
}

.pattern-wave::before {
  animation: signal-cross 7.6s ease-in-out infinite;
  background:
    linear-gradient(28deg, transparent 0 38%, rgba(16, 16, 16, 0.28) 39% 40%, transparent 41%),
    linear-gradient(152deg, transparent 0 48%, rgba(0, 230, 255, 0.34) 49% 50%, transparent 51%);
  inset: 10% 2%;
}

.pattern-wave::after {
  animation: mesh-nodes 6.4s ease-in-out infinite;
  border: 1px solid rgba(16, 16, 16, 0.34);
  border-radius: 999px;
  box-shadow:
    54px 24px 0 -1px rgba(16, 16, 16, 0.28),
    118px 74px 0 -1px rgba(16, 16, 16, 0.24),
    188px 38px 0 -1px rgba(0, 230, 255, 0.34);
  height: 18px;
  left: 13%;
  top: 38%;
  width: 18px;
}

.pattern-radial {
  animation: radar-turn 24s linear infinite;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(16, 16, 16, 0.5) 0 2px, transparent 3px 16px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.16) 1px, transparent 1px) 50% 50% / 44px 100%,
    linear-gradient(0deg, rgba(16, 16, 16, 0.13) 1px, transparent 1px) 50% 50% / 100% 44px;
  transform-origin: center;
}

.pattern-radial::before {
  animation: ring-breathe 5.8s ease-in-out infinite;
  border: 1px solid rgba(16, 16, 16, 0.44);
  border-radius: 50%;
  inset: 18%;
}

.pattern-radial::after {
  animation: radar-pulse 4.8s ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 16, 16, 0.72) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 49%, rgba(0, 230, 255, 0.34) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 0 49%, rgba(0, 230, 255, 0.26) 49% 51%, transparent 51%);
  inset: 0;
}

.pattern-orbit {
  animation: orbit-breathe 10s ease-in-out infinite;
  background:
    radial-gradient(ellipse at 50% 22%, transparent 47%, rgba(16, 16, 16, 0.2) 48%, transparent 50%),
    radial-gradient(ellipse at 50% 52%, transparent 47%, rgba(16, 16, 16, 0.2) 48%, transparent 50%),
    radial-gradient(ellipse at 50% 82%, transparent 47%, rgba(16, 16, 16, 0.2) 48%, transparent 50%);
}

.pattern-orbit::before {
  animation: growth-line 6.8s ease-in-out infinite;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(16, 16, 16, 0.18) 18% 82%, transparent 82%),
    linear-gradient(90deg, transparent 0 26%, rgba(0, 230, 255, 0.24) 26% 72%, transparent 72%);
  height: 1px;
  inset: 50% 8% auto;
}

.pattern-orbit::after {
  animation: orbit-points 7.2s ease-in-out infinite;
  background:
    radial-gradient(circle at 24% 49%, rgba(0, 230, 255, 0.52) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 22%, rgba(16, 16, 16, 0.34) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 82%, rgba(16, 16, 16, 0.28) 0 4px, transparent 5px);
  inset: 0;
}

@keyframes grid-drift {
  to {
    background-position: 42px -26px, -26px 42px, 21px 21px;
  }
}

@keyframes circuit-sweep {
  0%, 100% {
    opacity: 0.45;
    transform: translateX(-5%);
  }
  50% {
    opacity: 0.95;
    transform: translateX(5%);
  }
}

@keyframes node-breathe {
  0%, 100% {
    opacity: 0.62;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes mesh-drift {
  to {
    background-position: 23px 23px, 46px 0;
  }
}

@keyframes signal-cross {
  0%, 100% {
    opacity: 0.42;
    transform: translate(-4%, 2%);
  }
  50% {
    opacity: 0.9;
    transform: translate(4%, -2%);
  }
}

@keyframes mesh-nodes {
  0%, 100% {
    opacity: 0.5;
    transform: translate(0, 0);
  }
  50% {
    opacity: 0.85;
    transform: translate(12px, -8px);
  }
}

@keyframes radar-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ring-breathe {
  0%, 100% {
    opacity: 0.46;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.04);
  }
}

@keyframes radar-pulse {
  0%, 100% {
    opacity: 0.48;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.96;
    transform: scale(1.02);
  }
}

@keyframes orbit-breathe {
  0%, 100% {
    transform: scaleY(0.96);
  }
  50% {
    transform: scaleY(1.04);
  }
}

@keyframes growth-line {
  0%, 100% {
    opacity: 0.38;
    transform: translateX(-6%);
  }
  50% {
    opacity: 0.82;
    transform: translateX(6%);
  }
}

@keyframes orbit-points {
  0%, 100% {
    opacity: 0.52;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-10px);
  }
}

.focus-scene {
  min-height: auto;
  padding: 46px 40px 92px;
}

#focus-canvas {
  opacity: 0.26;
  pointer-events: none;
}

.focus-heading {
  margin: 62px auto 72px;
  max-width: 860px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.focus-heading h2 {
  font-size: clamp(26px, 2.65vw, 44px);
  line-height: 1.05;
}

.focus-heading p:last-child {
  color: var(--muted-dark);
  font-size: 18px;
  line-height: 1.34;
  margin: 26px auto 0;
  max-width: 620px;
}

.focus-list {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.focus-item {
  color: rgba(17, 24, 28, 0.38);
  display: block;
  font-size: clamp(24px, 3.45vw, 54px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.96;
  max-width: 1180px;
  padding: 7px 34px 10px;
  position: relative;
  text-transform: uppercase;
  transition: color 320ms var(--ease), transform 320ms var(--ease);
  width: min(100%, 1180px);
  cursor: default;
}

.focus-item.active,
.focus-item:hover {
  color: var(--fog);
  transform: translateY(-2px);
}

.focus-item span {
  display: block;
}

.focus-item small {
  color: rgba(17, 24, 28, 0.66);
  display: block;
  font-size: clamp(13px, 1.08vw, 17px);
  font-weight: 450;
  line-height: 1.28;
  margin: 0 auto;
  max-height: 0;
  max-width: 620px;
  opacity: 0;
  overflow: hidden;
  text-transform: none;
  transition: max-height 360ms var(--ease), opacity 260ms var(--ease), margin-top 360ms var(--ease);
}

.focus-item.active small,
.focus-item:hover small {
  margin-top: 10px;
  max-height: 80px;
  opacity: 1;
}

.focus-item.active::before,
.focus-item.active::after {
  border-color: rgba(17, 24, 28, 0.48);
  border-style: solid;
  content: "";
  height: 30px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
}

.focus-item.active::before {
  border-width: 2px 0 0 2px;
  left: -18px;
}

.focus-item.active::after {
  border-width: 0 2px 2px 0;
  right: -18px;
}

.team-scene {
  background:
    radial-gradient(circle at 68% 76%, rgba(0, 230, 255, 0.07), transparent 30rem),
    #101010;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: -22px;
  overflow: hidden;
  padding: 46px 40px 110px;
  z-index: 5;
}

.team-scene .section-rail {
  color: rgba(237, 247, 249, 0.56);
}

.team-intro {
  margin: 78px 0 44px;
  max-width: 1080px;
  text-align: left;
}

.team-intro h2 {
  font-size: clamp(42px, 4.45vw, 78px);
  max-width: 920px;
}

.team-intro p:last-child {
  color: rgba(237, 247, 249, 0.56);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  margin: 24px 0 0;
  max-width: 680px;
  text-transform: uppercase;
}

.team-stage {
  scroll-margin-top: 108px;
}

.team-stage .leader-card[data-reveal] {
  opacity: 1;
  transform: none;
}

.team-gallery {
  --team-card-height: 132px;
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-auto-rows: var(--team-card-height);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transition: grid-template-columns 620ms cubic-bezier(0.2, 0.78, 0.24, 1), grid-auto-rows 620ms cubic-bezier(0.2, 0.78, 0.24, 1);
}

.team-stage:not([data-active="none"]) .team-gallery {
  --team-card-height: clamp(540px, 74vh, 760px);
}

.team-stage[data-active="0"] .team-gallery {
  grid-template-columns: 2.55fr 0.26fr 0.26fr;
}

.team-stage[data-active="1"] .team-gallery {
  grid-template-columns: 0.26fr 2.55fr 0.26fr;
}

.team-stage[data-active="2"] .team-gallery {
  grid-template-columns: 0.26fr 0.26fr 2.55fr;
}

.leader-card {
  align-self: stretch;
  background: #151515;
  border: 1px solid rgba(237, 247, 249, 0.12);
  border-radius: var(--radius);
  cursor: pointer;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 360ms var(--ease), filter 360ms var(--ease), height 620ms cubic-bezier(0.2, 0.78, 0.24, 1), min-height 620ms cubic-bezier(0.2, 0.78, 0.24, 1), transform 360ms var(--ease);
}

.leader-card.active {
  border-color: rgba(0, 230, 255, 0.72);
}

.leader-card.active,
.leader-card:hover,
.leader-card:focus {
  border-color: rgba(0, 230, 255, 0.38);
  filter: saturate(1.08);
  transform: none;
}

/* sliver label: shown when gallery is in expanded mode and card is NOT active */
.team-stage:not([data-active="none"]) .leader-card:not(.active) .leader-sliver-label {
  opacity: 1;
}

.leader-sliver-label {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 360ms var(--ease);
  z-index: 4;
}

.leader-sliver-label span {
  color: rgba(237,247,249,0.78);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
/* sliver hover: invite click */
.team-stage:not([data-active="none"]) .leader-card:not(.active):hover .leader-sliver-label span {
  color: var(--cyan);
}
.team-stage:not([data-active="none"]) .leader-card:not(.active):hover {
  border-color: rgba(0, 230, 255, 0.55);
}
.team-stage:not([data-active="none"]) .leader-card:not(.active) img {
  filter: grayscale(1) contrast(1.1) brightness(0.62);
  transition: filter 360ms var(--ease), object-position 520ms cubic-bezier(0.2, 0.78, 0.24, 1), transform 520ms cubic-bezier(0.2, 0.78, 0.24, 1);
}
.team-stage:not([data-active="none"]) .leader-card:not(.active):hover img {
  filter: grayscale(0.7) contrast(1.05) brightness(0.78);
}

.leader-card img {
  filter: grayscale(1) contrast(1.12) brightness(0.82);
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 31%;
  position: absolute;
  transition: filter 420ms var(--ease), opacity 140ms var(--ease), transform 520ms var(--ease);
  width: 100%;
}











.leader-card:not(.active):first-child img {
  filter: grayscale(1) contrast(1.14) brightness(0.9);
  object-position: center 32%;
}

.leader-card:not(.active):nth-child(2) img {
  object-position: center 31%;
}

.team-stage:not([data-active="none"]) .leader-card:nth-child(2):not(.active) img {
  object-position: 68% 31%;
}

.leader-card:not(.active):nth-child(3) img {
  object-position: center 30%;
}

.leader-card::after {
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.08), transparent 38%, rgba(16, 16, 16, 0.18)),
    linear-gradient(90deg, rgba(0, 230, 255, 0.08), transparent 48%, rgba(111, 100, 255, 0.1));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.leader-card.active::after {
  background:
    linear-gradient(180deg, transparent 42%, rgba(16, 16, 16, 0.14) 62%, rgba(16, 16, 16, 0.82)),
    linear-gradient(90deg, rgba(0, 230, 255, 0.16), transparent 46%, rgba(111, 100, 255, 0.16));
}

.leader-card.active img {
  filter: grayscale(0.18) contrast(1.08) brightness(0.94);
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.leader-image-label {
  bottom: 0;
  left: 0;
  opacity: 0;
  padding: 96px 26px 36px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(10px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
  z-index: 2;
}

.leader-card.active .leader-image-label {
  opacity: 1;
  transform: translateY(0);
}

.leader-image-label h3 {
  font-size: clamp(24px, 2.1vw, 38px);
  margin: 0 0 8px;
  max-width: min(100%, 420px);
}

.leader-image-label p {
  color: rgba(237, 247, 249, 0.9);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: clamp(10px, 0.7vw, 12px);
  font-weight: 900;
  line-height: 1.28;
  margin: 0;
  max-width: 320px;
  text-transform: uppercase;
  text-wrap: balance;
}

.team-detail-panel {
  background:
    radial-gradient(circle at 84% 12%, rgba(0, 230, 255, 0.2), transparent 19rem),
    linear-gradient(135deg, #f3fbfc, #d9f4f8 58%, #c4edf3);
  border: 1px solid rgba(0, 230, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 34px;
  position: relative;
  transform: none;
  transition: max-height 620ms var(--ease), opacity 360ms var(--ease), margin-top 420ms var(--ease), padding 420ms var(--ease), transform 420ms var(--ease);
  z-index: 3;
}

.team-stage:not([data-active="none"]) .team-detail-panel {
  margin-top: 44px;
  max-height: min(64vh, 640px);
  opacity: 1;
  padding: 34px;
  transform: none;
}

.leader-copy {
  background: transparent;
  color: var(--fog);
  display: grid;
  gap: 8px 34px;
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
  opacity: 1;
  padding: 0;
  position: relative;
  transform: none;
}

.leader-copy[hidden] {
  display: none !important;
}

.leader-role {
  color: rgba(17, 24, 28, 0.92);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: clamp(12px, 0.86vw, 15px);
  font-weight: 950;
  grid-column: 1;
  grid-row: 2;
  line-height: 1.28;
  margin: 0;
  max-width: 440px;
  text-transform: uppercase;
}

.leader-copy h3 {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 54px);
  grid-column: 1;
  grid-row: 1;
  line-height: 0.98;
  margin: 0;
}

.leader-bio {
  color: rgba(237, 247, 249, 0.78);
  grid-column: 2;
  grid-row: 1 / span 2;
  max-height: min(44vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 0 0;
  scrollbar-color: rgba(237, 247, 249, 0.46) rgba(17, 24, 28, 0.08);
  scrollbar-width: thin;
}

.leader-bio p {
  color: rgba(17, 24, 28, 0.96);
  font-family: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.08vw, 17px);
  font-weight: 520;
  line-height: 1.72;
  margin: 0 0 16px;
}

.leader-bio p:last-child {
  margin-bottom: 0;
}

.split-scene {
  background: #101010;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  min-height: 122svh;
  overflow: hidden;
}

.split-copy {
  align-self: start;
  padding: 170px 40px;
  position: sticky;
  top: 0;
}

.split-copy p:not(.eyebrow) {
  border-top: 1px solid var(--line);
  color: rgba(237, 247, 249, 0.6);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  margin: 34px 0 0;
  padding-top: 24px;
  text-transform: uppercase;
}

.stacked-panels {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 40px 130px 0;
}

.stacked-panels article {
  background: linear-gradient(135deg, #77aeb6, #bfe5e9);
  border-radius: var(--radius);
  color: #101010;
  min-height: 360px;
  padding: 44px 40px;
}

.stacked-panels article:nth-child(2) {
  background: linear-gradient(135deg, #00d7ff, #217bff 66%, #6f64ff);
}

.stacked-panels article:nth-child(3) {
  background: var(--paper);
}

.stacked-panels span {
  display: block;
  font-size: 13px;
  margin-bottom: 82px;
}

.stacked-panels p {
  border-top: 1px solid rgba(16, 16, 16, 0.22);
  font-size: 20px;
  line-height: 1.22;
  margin: 48px 0 0;
  padding-top: 22px;
}

.footer-scene {
  background: #101010;
  min-height: 88svh;
  overflow: hidden;
  padding: 140px 0 40px;
}

#footer-canvas {
  opacity: 0.34;
}

.footer-cta {
  max-width: 1120px;
  margin-left: 0;
  margin-right: auto;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.footer-cta h2 {
  margin-bottom: 42px;
}

.drag-cursor {
  align-items: center;
  background: var(--paper);
  border-radius: 999px;
  color: #101010;
  display: none;
  font-size: 11px;
  height: 34px;
  justify-content: center;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate(-50%, -50%);
  width: 72px;
  z-index: 100;
}

.drag-cursor.visible {
  display: flex;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(56px);
  filter: blur(6px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ============ ENHANCED MOTION LAYER ============ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; background: rgba(237,247,249,0.08); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--royal)); box-shadow: 0 0 16px rgba(0,230,255,0.6); }

.cursor-ring,
.cursor-dot {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  z-index: 120;
}

.cursor-ring {
  background: url("assets/system-cursor.svg") center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 7px rgba(0, 230, 255, 0.20));
  height: 30px;
  margin: -1px 0 0 -10px;
  transform-origin: 50% 2px;
  transition: opacity 160ms var(--ease), width 160ms var(--ease), height 160ms var(--ease), margin 160ms var(--ease), filter 160ms var(--ease);
  width: 21px;
  will-change: transform;
}

.cursor-dot {
  display: none;
}

.cursor-ready .cursor-ring {
  opacity: 1;
}

.cursor-ring.is-hover {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 10px rgba(0, 230, 255, 0.38));
  height: 34px;
  margin: -1px 0 0 -12px;
  width: 24px;
}

@media (hover: none), (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }

.hero-title .word { display: inline-block; overflow: hidden; padding-bottom: 0.1em; vertical-align: top; }
.hero-title .char { display: inline-block; transform: translateY(112%) rotate(6deg); opacity: 0; will-change: transform, opacity; }
.hero-title.chars-in .char { animation: char-rise 0.95s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes char-rise { to { transform: translateY(0) rotate(0); opacity: 1; } }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 5; font-family: "Cascadia Mono", Consolas, monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(237,247,249,0.55); text-decoration: none; }
.scroll-hint-line { position: relative; width: 1px; height: 54px; background: rgba(237,247,249,0.18); overflow: hidden; }
.scroll-hint-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--cyan)); animation: scroll-trail 1.9s var(--ease) infinite; }
@keyframes scroll-trail { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.focus-list { --indi-top: 0px; --indi-height: 0px; }
.focus-indicator { position: absolute; left: -2px; top: var(--indi-top); height: var(--indi-height); width: 2px; background: linear-gradient(180deg, var(--cyan), var(--blue) 55%, var(--royal)); border-radius: 2px; opacity: 0; transition: top 420ms var(--ease), height 420ms var(--ease), opacity 320ms var(--ease); pointer-events: none; box-shadow: 0 0 14px rgba(0,230,255,0.5); }
.focus-indicator.is-on { opacity: 1; }
.focus-item { will-change: transform; }
.focus-item-counter { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; font-weight: 800; color: rgba(8,117,255,0.6); opacity: 0; transition: opacity 320ms var(--ease); }
.focus-item.active .focus-item-counter { opacity: 1; }

.leader-bio .reveal-line { display: block; opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 720ms var(--ease), transform 720ms var(--ease), filter 720ms var(--ease); }
.leader-copy.detail-in .leader-bio .reveal-line { opacity: 1; transform: translateY(0); filter: blur(0); }

 to { filter: grayscale(0.08) contrast(1.06) brightness(0.96); } }

@media (hover: hover) and (pointer: fine) {
  body,
  body *,
  body a,
  body button,
  body input,
  body select,
  body textarea,
  body label {
    cursor: none !important;
  }

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

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .hero-title > span {
    font-size: clamp(44px, 8.2vw, 82px);
  }

  .title-left {
    grid-column: 1 / span 8;
  }

  .title-right {
    grid-column: 5 / span 8;
  }

  .ethos-lockup,
  .split-scene {
    grid-template-columns: 1fr;
  }

  .ethos-cards {
    flex-direction: column;
    gap: 14px;
  }

  .service-tile,
  .service-tile.active,
  .service-tile:hover {
    flex: none;
    min-height: 470px;
  }

  .service-tile,
  .service-tile .tile-inner {
    border-radius: var(--radius) !important;
  }

  .team-gallery {
    --team-card-height: 118px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-stage:not([data-active="none"]) .team-gallery {
    --team-card-height: clamp(500px, 70vh, 680px);
  }

  .team-stage[data-active="0"] .team-gallery,
  .team-stage[data-active="1"] .team-gallery,
  .team-stage[data-active="2"] .team-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leader-card {
    height: 100%;
    min-height: 0;
  }

  .leader-copy {
    grid-template-columns: 1fr;
  }

  .leader-bio {
    grid-column: 1;
    grid-row: auto;
    max-height: min(46vh, 420px);
  }

  .split-copy {
    position: relative;
  }

  .stacked-panels {
    padding: 0 40px 120px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 70px;
    padding: 0 20px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo-frame {
    height: 80px;
    width: auto;
  }

  .hero-scene,
  .ethos-scene,
  .focus-scene,
  .team-scene,
  .split-copy,
  .stacked-panels,
  .footer-scene {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-scene {
    min-height: 104svh;
    padding-top: 92px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .hero-meta span:nth-child(2) {
    justify-self: start;
  }

  .hero-title-stage {
    min-height: 62svh;
    padding-bottom: 42px;
  }

  .hero-title {
    display: block;
    max-width: calc(100vw - 40px);
  }

  .hero-title > span {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.05;
    text-align: left;
  }

  .title-right {
    text-align: left;
  }

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

  .hero-footer span {
    justify-self: start;
  }

  .section-rail {
    gap: 18px;
  }

  .section-rail span:last-child {
    text-align: right;
  }

  .ethos-lockup {
    margin: 92px 0 58px;
  }

  h2 {
    font-size: clamp(34px, 11vw, 54px);
  }

  .tile-inner {
    min-width: 0;
  }

  .focus-heading {
    margin-top: 52px;
  }

  .focus-item {
    font-size: clamp(21px, 7.2vw, 32px);
    overflow-wrap: anywhere;
    padding-inline: 12px;
  }

  .focus-item small {
    font-size: 13px;
    max-width: 310px;
  }

  .focus-item.active::before,
  .focus-item.active::after {
    height: 20px;
    width: 20px;
  }

  .team-intro {
    margin-top: 92px;
  }

  .team-gallery {
    --team-card-height: 150px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-stage:not([data-active="none"]) .team-gallery {
    --team-card-height: min(64vh, 520px);
  }

  .leader-card {
    height: 100%;
    min-height: 0;
  }

  .leader-image-label {
    padding: 72px 22px 22px;
  }

  .leader-image-label h3 {
    font-size: 28px;
  }

  .team-stage:not([data-active="none"]) .team-detail-panel {
    margin-top: 30px;
    max-height: 72vh;
    padding: 24px;
  }

  .leader-bio p {
    font-size: 14px;
  }

  .stacked-panels {
    padding-bottom: 86px;
  }

  .stacked-panels article {
    min-height: 320px;
  }
}

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

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

/* ============ HIDE NUMBERING (refined) ============ */
/* Hide tile-count number only — keep as invisible spacer so description stays pinned to bottom */
.tile-count { font-size: 0 !important; line-height: 0 !important; overflow: hidden; padding: 0 !important; }
/* Hide section-level numbering */
.hero-footer > span { display: none !important; }
.section-rail span:last-child { display: none !important; }
.focus-item-counter { display: none !important; }
/* Hide stacked-panels numbers (01,02,03) but keep 82px spacing */
.stacked-panels span { font-size: 0 !important; line-height: 0 !important; overflow: hidden; padding: 0 !important; }


/* ============ TILE HEADING ENHANCEMENT ============ */

/* Left-align headings with a cyan accent bar */
.tile-inner h3 {
  align-self: flex-start !important;
  text-align: left !important;
  padding-left: 18px !important;
  position: relative !important;
  max-width: 100% !important;
  line-height: 1.05 !important;
}

.tile-inner h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6%;
  height: 88%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 10px rgba(0,230,255,0.55);
}

/* Adjust accent color for light tiles */
.tile-teal .tile-inner h3::before,
.tile-fog .tile-inner h3::before {
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 10px rgba(0,230,255,0.45);
}

.tile-electric .tile-inner h3::before {
  background: linear-gradient(180deg, rgba(16,16,16,0.5), rgba(16,16,16,0.2));
  box-shadow: none;
}

/* ============ ENHANCED PATTERN ANIMATIONS ============ */

/* ── Enterprise Systems (dark) ── scan-line sweep across circuit */
.pattern-grid {
  animation: grid-drift 20s linear infinite alternate;
}

.pattern-grid::before {
  animation: scan-sweep 3.8s cubic-bezier(0.45,0,0.55,1) infinite;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(0,230,255,0.0) 38%,
      rgba(0,230,255,0.55) 49%,
      rgba(0,230,255,0.55) 51%,
      rgba(0,230,255,0.0) 62%,
      transparent 100%);
  inset: 0;
}

@keyframes scan-sweep {
  0%   { transform: translateY(-110%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(110%); opacity: 0; }
}

.pattern-grid::after {
  animation: node-pulse 2.6s ease-in-out infinite;
  background:
    radial-gradient(circle at 18% 66%, rgba(0,230,255,1)    0 5px, transparent 6px),
    radial-gradient(circle at 56% 42%, rgba(226,234,236,0.9) 0 4px, transparent 5px),
    radial-gradient(circle at 80% 28%, rgba(0,230,255,0.85) 0 4px, transparent 5px),
    radial-gradient(circle at 38% 78%, rgba(226,234,236,0.7) 0 3px, transparent 4px);
  inset: 0;
}

@keyframes node-pulse {
  0%,100% { opacity: 0.55; transform: scale(0.97); }
  50%     { opacity: 1;    transform: scale(1.04); }
}

/* ── Automation & AI (teal) ── neural net wave firing */
.pattern-wave {
  animation: mesh-drift 18s linear infinite alternate;
  background:
    radial-gradient(circle, transparent 0 6px, rgba(16,16,16,0.28) 7px, transparent 8px) 0 0 / 44px 44px,
    linear-gradient(90deg, transparent 0 7%, rgba(16,16,16,0.18) 7% 8.5%, transparent 8.5% 100%) 0 0 / 44px 44px;
}

.pattern-wave::before {
  animation: neural-fire 5.2s ease-in-out infinite;
  background:
    linear-gradient(30deg,  transparent 0 34%, rgba(16,16,16,0.32) 35% 36.5%, transparent 37%),
    linear-gradient(150deg, transparent 0 44%, rgba(0,230,255,0.38) 45% 46.5%, transparent 47%),
    linear-gradient(90deg,  transparent 0 58%, rgba(16,16,16,0.22) 59% 60.5%, transparent 61%);
  inset: 8% 4%;
}

@keyframes neural-fire {
  0%,100% { opacity: 0.35; transform: scale(0.98) translateX(-3%); }
  33%     { opacity: 0.88; transform: scale(1.01) translateX(0%); }
  66%     { opacity: 0.6;  transform: scale(0.99) translateX(3%); }
}

.pattern-wave::after {
  animation: synapse-hop 4.2s ease-in-out infinite;
  border: 1.5px solid rgba(16,16,16,0.4);
  border-radius: 999px;
  box-shadow:
    62px 18px 0 -1px rgba(16,16,16,0.32),
    128px 68px 0 -1px rgba(16,16,16,0.26),
    198px 32px 0 -1px rgba(0,230,255,0.4),
    56px 96px 0 -1px rgba(16,16,16,0.2);
  height: 14px;
  left: 10%;
  top: 36%;
  width: 14px;
}

@keyframes synapse-hop {
  0%,100% { opacity: 0.45; transform: translate(0,0); }
  25%     { opacity: 0.9;  transform: translate(14px,-10px); }
  50%     { opacity: 0.6;  transform: translate(28px,4px); }
  75%     { opacity: 0.85; transform: translate(14px,14px); }
}

/* ── Digital Platforms (electric blue) ── radar conic sweep + sonar ping */
.pattern-radial {
  animation: none;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(16,16,16,0.45) 0 1.5px, transparent 2px 16px),
    linear-gradient(90deg,  rgba(16,16,16,0.14) 1px, transparent 1px) 50% 50% / 44px 100%,
    linear-gradient(0deg,   rgba(16,16,16,0.11) 1px, transparent 1px) 50% 50% / 100% 44px;
}

.pattern-radial::before {
  animation: ring-breathe 4.2s ease-in-out infinite;
  border: 1.5px solid rgba(16,16,16,0.5);
  border-radius: 50%;
  inset: 22%;
  box-shadow: 0 0 0 12px rgba(16,16,16,0.08), 0 0 0 28px rgba(16,16,16,0.04);
}

.pattern-radial::after {
  animation: radar-conic 3.2s linear infinite;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(16,16,16,0.52) 0deg,
    rgba(16,16,16,0.18) 22deg,
    transparent 48deg,
    transparent 360deg
  );
  border-radius: 50%;
  inset: 0;
  transform-origin: center;
}

@keyframes radar-conic {
  to { transform: rotate(360deg); }
}

/* sonar ping overlay — extra element via box-shadow on ::before */

/* ── Growth Engine (fog/light) ── ascending trend-line with dots */
.pattern-orbit {
  animation: none;
  background:
    linear-gradient(90deg, rgba(16,16,16,0.07) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgba(16,16,16,0.07) 1px, transparent 1px) 0 0 / 36px 36px;
}

.pattern-orbit::before {
  animation: trend-rise 3.6s cubic-bezier(0.4,0,0.2,1) infinite;
  background: none;
  border: none;
  height: 2px;
  inset: auto 10% auto 8%;
  top: 58%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(8,117,255,0.55) 15%,
    rgba(8,117,255,0.8)  45%,
    rgba(0,230,255,0.9)  70%,
    transparent 100%);
  clip-path: polygon(0 0, 0% 100%, 100% 100%, 100% 0);
  transform-origin: left center;
}

@keyframes trend-rise {
  0%   { clip-path: polygon(0 0, 0% 100%, 0%  100%, 0% 0); opacity:0.3; }
  30%  { clip-path: polygon(0 0, 0% 100%, 50% 100%, 50% 0); opacity:1; }
  70%  { clip-path: polygon(0 0, 0% 100%, 100% 100%, 100% 0); opacity:1; }
  85%,100% { clip-path: polygon(0 0, 0% 100%, 100% 100%, 100% 0); opacity:0; }
}

.pattern-orbit::after {
  animation: trend-dots 3.6s cubic-bezier(0.4,0,0.2,1) infinite;
  background:
    radial-gradient(circle at 18% 70%, rgba(8,117,255,0.9) 0 6px, transparent 7px),
    radial-gradient(circle at 42% 50%, rgba(8,117,255,0.85) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 36%, rgba(0,230,255,1) 0 6px, transparent 7px),
    radial-gradient(circle at 88% 26%, rgba(0,230,255,0.9) 0 5px, transparent 6px);
  inset: 0;
}

@keyframes trend-dots {
  0%,15% { opacity:0; transform: translateY(8px); }
  40%    { opacity:1; transform: translateY(0); }
  80%    { opacity:1; transform: translateY(0); }
  100%   { opacity:0; transform: translateY(-6px); }
}

/* ============ DARK THEME OVERRIDES FOR FORMER LIGHT PANELS ============ */

/* Ethos lockup heading */
.ethos-lockup h2 { color: var(--fog) !important; }
.ethos-lockup p  { color: rgba(237,247,249,0.68) !important; }

/* Ethos cards text */
.tile-inner h3   { color: var(--fog); }
.tile-inner p    { color: rgba(237,247,249,0.62); }

/* Focus scene text */
.focus-scene .section-rail { color: rgba(237,247,249,0.45); }
.focus-line-label  { color: rgba(237,247,249,0.55) !important; }
.focus-line-value  { color: var(--fog) !important; }
.focus-orbit-ring  { stroke: rgba(237,247,249,0.12) !important; }

/* Team scene section-rail */
.team-scene .section-rail { color: rgba(237,247,249,0.45); }

/* split-scene panel text already dark but ensure */
.stacked-panels .panel-title { color: var(--fog); }
.stacked-panels .panel-body  { color: rgba(237,247,249,0.68); }

/* tile-dark description text */
.tile-dark .tile-inner p {
  text-shadow: 0 1px 3px rgba(0,0,0,0.55); color: rgba(237,247,249,0.58); }

/* ============ LOGO-ALIGNED GRADIENT OVERLAYS ============ */

/* Hero floor glow: soft aurora wash, feathered into the space field */
.hero-scene::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -18% -10%;
  background:
    radial-gradient(ellipse 84% 34% at 22% 20%, rgba(0, 214, 242, 0.055), transparent 74%),
    radial-gradient(ellipse 72% 32% at 88% 82%, rgba(20, 53, 204, 0.15), transparent 78%),
    radial-gradient(ellipse 88% 30% at 42% 96%, rgba(8, 117, 255, 0.09), transparent 76%);
  filter: blur(48px);
  mix-blend-mode: screen;
  opacity: 0.82;
  z-index: 1;
}

/* light-panel top edge: cyan accent line matching logo top */
.light-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--blue) 65%, var(--royal), transparent);
  opacity: 0.45;
}

/* Team scene: royal hint bottom */
.team-scene {
  background:
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(20,53,204,0.10), transparent 55%),
    var(--black);
}

/* CTA / primary buttons: logo gradient */
.cta-primary, .nav-cta, [data-cta] {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 55%, var(--royal) 100%) !important;
  color: #fff !important;
  border: none !important;
}

/* ============ HERO CIRCUIT TRACES ============ */
.hero-circuit {
  position: absolute;
  left: -18px;
  top: 8%;
  width: clamp(180px, 28vw, 380px);
  height: auto;
  opacity: 0.38;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* animated data-packet dash traveling along traces */
.circuit-traces polyline,
.circuit-traces line {
  stroke-dasharray: 6 14;
  stroke-dashoffset: 0;
  animation: trace-flow 3.8s linear infinite;
}

.circuit-traces polyline:nth-child(2) { animation-delay: -0.8s; }
.circuit-traces polyline:nth-child(3) { animation-delay: -1.6s; }
.circuit-traces polyline:nth-child(4) { animation-delay: -2.2s; }
.circuit-traces polyline:nth-child(5) { animation-delay: -0.4s; }
.circuit-traces line { animation-delay: -1.1s; }

@keyframes trace-flow {
  to { stroke-dashoffset: -80; }
}

/* node pulse */
.circuit-nodes circle {
  animation: node-glow 3.2s ease-in-out infinite;
}
.circuit-nodes circle:nth-child(2)  { animation-delay: -0.6s; }
.circuit-nodes circle:nth-child(3)  { animation-delay: -1.2s; }
.circuit-nodes circle:nth-child(4)  { animation-delay: -1.8s; }
.circuit-nodes circle:nth-child(5)  { animation-delay: -2.4s; }
.circuit-nodes circle:nth-child(6)  { animation-delay: -0.3s; }
.circuit-nodes circle:nth-child(7)  { animation-delay: -0.9s; }
.circuit-nodes circle:nth-child(8)  { animation-delay: -1.5s; }
.circuit-nodes circle:nth-child(9)  { animation-delay: -2.1s; }
.circuit-nodes circle:nth-child(10) { animation-delay: -2.7s; }
.circuit-nodes circle:nth-child(11) { animation-delay: -0.5s; }

@keyframes node-glow {
  0%, 100% { opacity: 0.45; r: attr(r); }
  50%       { opacity: 1;    filter: drop-shadow(0 0 6px currentColor); }
}

/* ============ FOCUS + ETHOS TEXT VISIBILITY FIXES ============ */
/* Force focus items visible regardless of GSAP state */
.focus-scene .focus-item { color: rgba(237,247,249,0.42) !important; }
.focus-scene .focus-item.active,
.focus-scene .focus-item:hover { color: var(--fog) !important; }
.focus-scene .focus-item small { color: rgba(237,247,249,0.6) !important; }
.focus-item.active::before,
.focus-item.active::after { border-color: rgba(0,230,255,0.55) !important; }

/* Ethos h2: don't let GSAP opacity drop below 1 after reveal */
.ethos-lockup h2 { opacity: 1 !important; }

/* ============ LEADER BIO DARK FIX ============ */
.leader-bio,
.leader-bio p,
.leader-bio span,
.leader-bio small { color: rgba(237, 247, 249, 0.78) !important; }
.leader-detail h3 { color: var(--fog) !important; }
.leader-detail .role { color: rgba(237, 247, 249, 0.55) !important; }

/* ============ SECTION LABELS — LOGO GRADIENT ============ */
.section-rail span:first-child,
.eyebrow,
.eyebrow:not(.dark) {
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--royal)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* ============ LEADER COPY READABILITY ============ */
.leader-copy {
  color: var(--fog) !important;
  background: rgba(10, 16, 18, 0.72) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 12px !important;
  padding: 24px 28px !important;
}
.leader-copy h2,
.leader-copy h3,
.leader-copy .leader-name { color: var(--fog) !important; }
.leader-copy .leader-role,
.leader-copy small       { color: rgba(237,247,249,0.58) !important; }
.leader-copy p,
.leader-bio p            { color: rgba(237,247,249,0.82) !important; }

/* ============ HERO NEBULA / SPACE FEEL ============ */

/* Nebula cloud layers behind canvas — pure CSS, GPU compositor */
.hero-scene::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 38% at 12% 22%,  rgba(0, 214, 242, 0.035) 0%, transparent 72%),
    radial-gradient(ellipse 40% 32% at 88% 72%,  rgba(20, 53, 204, 0.115) 0%, transparent 68%),
    radial-gradient(ellipse 30% 28% at 62% 18%,  rgba(8, 117, 255, 0.075) 0%, transparent 62%),
    radial-gradient(ellipse 35% 25% at 28% 78%,  rgba(0, 214, 242, 0.04) 0%, transparent 58%),
    radial-gradient(ellipse 22% 18% at 76% 40%,  rgba(20, 53, 204, 0.075) 0%, transparent 54%);
  animation: nebula-drift 28s ease-in-out infinite alternate;
}

@keyframes nebula-drift {
  0%   { transform: translate(0,    0)    scale(1); }
  33%  { transform: translate(18px,-12px) scale(1.03); }
  66%  { transform: translate(-12px,16px) scale(0.98); }
  100% { transform: translate(10px,  8px) scale(1.02); }
}

/* Make sure canvas sits above the nebula */
#hero-canvas { z-index: 1; }

/* ============ HERO META ALWAYS VISIBLE ============ */
.hero-meta[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.hero-meta span {
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--royal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* hero-footer always visible */
.hero-footer[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}
.hero-footer p {
  font-size: 14px !important;
  color: rgba(237, 247, 249, 0.82) !important;
  max-width: 520px;
}

/* logo image fills frame naturally */
.brand-logo-frame .brand-logo {
  height: 100% !important;
  width: auto !important;
  max-width: none !important;
}

/* Hero title accent words */
.title-accent {
  font-weight: 300 !important;
  opacity: 0.55 !important;
  font-size: clamp(20px, 2.2vw, 38px) !important;
  letter-spacing: 0.06em !important;
  margin-top: 4px !important;
}

/* ============ SCRAMBLE TEXT STYLES ============ */
.sc-scramble {
  color: var(--cyan);
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: none;
}
.sc-locked {
  color: rgba(237, 247, 249, 0.96);
  display: inline-block;
  animation: lock-snap 0.12s cubic-bezier(0.2,0,0.2,1) forwards;
}
@keyframes lock-snap {
  0%   { color: var(--cyan); opacity: 0.7; transform: scaleY(1.08); }
  60%  { color: var(--fog);  opacity: 1;   transform: scaleY(1); }
  100% { color: rgba(237,247,249,0.96); opacity: 1; transform: none; }
}

/* ============ HERO TITLE CSS GLITCH (removed — used aria-label overlay) ============ */

.hero-title {
  position: relative;
}

/* ============ FORCE HERO TITLE HORIZONTAL ============ */
.hero-title > span,
.hero-title .title-left,
.hero-title .title-right {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
}

/* ============ HERO TITLE - SEQUENTIAL LETTER GLITCH ============ */
.hero-title { position: relative; overflow: visible; }

.hero-title .glitch-char {
  color: inherit;
  display: inline-block;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  position: relative;
  text-transform: inherit;
  will-change: transform, filter, text-shadow, color;
}

.hero-title .glitch-char.is-glitching {
  animation: letter-glitch 190ms steps(2, end) forwards;
}

.hero-title .glitch-char.is-glitching::before,
.hero-title .glitch-char.is-glitching::after {
  content: attr(data-char);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.hero-title .glitch-char.is-glitching::before {
  animation: letter-glitch-before 190ms steps(2, end) forwards;
  color: rgba(0,230,255,0.95);
  clip-path: inset(0 0 52% 0);
}

.hero-title .glitch-char.is-glitching::after {
  animation: letter-glitch-after 190ms steps(2, end) forwards;
  color: rgba(20,53,204,0.95);
  clip-path: inset(46% 0 0 0);
}

@keyframes letter-glitch {
  0%   { color: rgba(237,247,249,0.96); filter: none; text-shadow: none; transform: translateX(0) skewX(0); }
  28%  { color: rgba(0,230,255,1); filter: brightness(1.35); text-shadow: -3px 0 rgba(0,230,255,0.85), 3px 0 rgba(20,53,204,0.72); transform: translateX(-2px) skewX(-8deg); }
  58%  { color: rgba(255,255,255,1); filter: brightness(1.2); text-shadow: 3px 0 rgba(8,117,255,0.75), -2px 0 rgba(0,230,255,0.45); transform: translateX(2px) skewX(7deg); }
  82%  { color: rgba(237,247,249,0.9); filter: brightness(1.1); text-shadow: -1px 0 rgba(0,230,255,0.55); transform: translateX(-1px) skewX(-3deg); }
  100% { color: rgba(237,247,249,0.96); filter: none; text-shadow: none; transform: translateX(0) skewX(0); }
}

@keyframes letter-glitch-before {
  0%, 100% { opacity: 0; transform: translateX(0); }
  25%      { opacity: 0.9; transform: translate(-4px, -1px); }
  58%      { opacity: 0.55; transform: translate(3px, 1px); }
}

@keyframes letter-glitch-after {
  0%, 100% { opacity: 0; transform: translateX(0); }
  30%      { opacity: 0.8; transform: translate(4px, 1px); }
  62%      { opacity: 0.6; transform: translate(-3px, -1px); }
}

/* ── Team card motion system ── */

/* 1. Inactive cards recede when one is active */
.team-stage:not([data-active="none"]) .leader-card:not(.active) {
  opacity: 0.68;
  filter: brightness(0.75) saturate(0.4);
  transform: scale(0.976);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter  700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-stage:not([data-active="none"]) .leader-card:not(.active):hover {
  opacity: 0.86;
  filter: brightness(0.88) saturate(0.7);
  transform: scale(0.984);
}

/* 2. Active card comes forward */
.leader-card.active {
  transform: scale(1);
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(0,210,245,0.55), 0 24px 60px rgba(0,0,0,0.55);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter  700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Diagonal shimmer sweep on activation */
.leader-card.active img {
  animation: img-colorize 900ms cubic-bezier(0.16,1,0.3,1) forwards;
}


  to   { filter: grayscale(0.08) contrast(1.06) brightness(0.96); }
}







/* 4. Photo zoom on active */
.leader-card img {
  transition: filter 620ms var(--ease), opacity 200ms var(--ease), transform 820ms cubic-bezier(0.16, 1, 0.3, 1), object-position 820ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}



/* 5. Parallax container */
.leader-card .leader-img-wrap {
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ── Visitor-perspective team motion ── */
/* Inactive cards recede when one is active */
.team-stage:not([data-active="none"]) .leader-card:not(.active) {
  opacity: 0.62;
  filter: brightness(0.7) saturate(0.3);
  transition: opacity 600ms cubic-bezier(0.4,0,0.2,1), filter 600ms cubic-bezier(0.4,0,0.2,1);
}
.team-stage:not([data-active="none"]) .leader-card:not(.active):hover {
  opacity: 0.82;
  filter: brightness(0.88) saturate(0.65);
}
/* Active card — subtle cyan glow elevation */
.leader-card.active {
  box-shadow: 0 0 0 1.5px rgba(0,210,245,0.6), 0 20px 50px rgba(0,0,0,0.5);
  transition: box-shadow 600ms cubic-bezier(0.4,0,0.2,1);
}


/* ── Footer dual CTA buttons ── */
.footer-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}

/* ── LinkedIn link in leader bio ── */
.leader-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid rgba(0,119,181,0.4);
  background: rgba(0,119,181,0.08);
  color: rgba(0,170,255,0.9);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.leader-linkedin:hover {
  background: rgba(0,119,181,0.18);
  border-color: rgba(0,119,181,0.7);
  color: #fff;
}

}


/* ════════════════════════════════════════
   HOW WE WORK
════════════════════════════════════════ */
.how-scene {
  background: var(--black);
  padding: 120px 80px;
  position: relative;
}
.how-heading {
  margin-bottom: 72px;
}
.how-heading h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--fog);
  margin: 8px 0 0;
  line-height: 1.1;
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.how-step {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.how-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  opacity: 0.7;
}
.how-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fog);
  margin: 0 0 10px;
}
.how-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ════════════════════════════════════════
   FAQ
════════════════════════════════════════ */
.faq-scene {
  padding: 120px 80px;
}
.faq-heading {
  margin-bottom: 56px;
}
.faq-heading h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 0;
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
}
.faq-item {
  border-top: 1px solid var(--line-dark);
  padding: 28px 0 28px 0;
}
.faq-item:nth-child(odd) { padding-right: 40px; }
.faq-item:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line-dark); }
.faq-item dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  cursor: default;
}
.faq-item dd {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted-dark);
  margin: 0;
}

/* ════════════════════════════════════════
   CONTACT FORM
════════════════════════════════════════ */
.contact-form {
  margin: 48px 0 40px;
  max-width: 640px;
  width: 100%;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.cf-row[hidden] { display: none; }
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.cf-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237,247,249,0.5);
}
.cf-field label span {
  color: var(--cyan);
}
.cf-field input,
.cf-field input,
.cf-field select,
.cf-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(237,247,249,0.12);
  border-radius: 6px;
  color: var(--fog);
  font: inherit;
  font-size: 12.5px;
  padding: 0 12px;
  height: 36px;
  line-height: 36px;
  transition: border-color 200ms ease, background 200ms ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.cf-field textarea {
  height: auto;
  padding: 10px 12px;
  line-height: 1.6;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(237,247,249,0.25);
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: rgba(0,210,245,0.5);
  background: rgba(0,210,245,0.04);
}
.cf-field select option {
  background: #101820;
  color: var(--fog);
}
.cf-field textarea {
  resize: vertical;
  min-height: 110px;
}
.cf-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cf-submit {
  pointer-events: auto;
}
.cf-note {
  font-size: 12px;
  color: rgba(237,247,249,0.36);
  margin: 0;
}
/* Privacy notice: PII is processed by a third-party form provider (Formspree). */
.cf-privacy {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(237,247,249,0.34);
  margin: 14px 0 0;
  max-width: 60ch;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(237,247,249,0.4);
}
.footer-links a {
  color: rgba(237,247,249,0.55);
  transition: color 180ms ease;
}
.footer-links a:hover { color: var(--cyan); }

/* ════════════════════════════════════════
   MOBILE RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-list {
    grid-template-columns: 1fr;
  }
  .faq-item:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
  .cf-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .site-header {
    padding: 0 20px;
    height: 64px;
  }
  .nav-links {
    display: none;
  }
  .corner-button.header-cta {
    display: flex;
  }

  /* Hero */
  .hero-title { font-size: clamp(36px, 10vw, 72px); }
  .hero-footer { flex-direction: column; gap: 16px; padding: 0 20px 32px; }

  /* Sections */
  .how-scene,
  .faq-scene { padding: 80px 24px; }
  .ethos-scene,
  .focus-scene,
  .team-scene,
  .split-scene,
  .footer-scene { padding-left: 24px; padding-right: 24px; }

  /* How steps */
  .how-steps { grid-template-columns: 1fr; gap: 24px; }

  /* Team */
  .leader-card { min-height: 0; }

  /* Footer form */
  .contact-form { max-width: 100%; }
  .cf-actions { flex-direction: column; align-items: flex-start; }

  /* Social sidebar */
  .social-sidebar { display: none; }
}

@media (max-width: 480px) {
  .how-scene,
  .faq-scene { padding: 60px 16px; }
  .hero-title { font-size: clamp(28px, 9vw, 52px); }
  .footer-links { gap: 8px; font-size: 12px; }
}

/* FAQ dark theme override */
.faq-scene {
  background: var(--black) !important;
  padding: 120px 80px;
}
.faq-heading h2 {
  color: var(--fog) !important;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  margin: 8px 0 0;
}
.faq-heading .eyebrow {
  color: var(--cyan) !important;
  opacity: 0.8;
}
.faq-item {
  border-top: 1px solid var(--line) !important;
  padding: 28px 0;
}
.faq-item:nth-child(even) {
  border-left: 1px solid var(--line) !important;
}
.faq-item dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--fog) !important;
  margin-bottom: 10px;
}
.faq-item dd {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(237,247,249,0.55) !important;
  margin: 0;
}

/* Compact nav for more items */
.nav-links a {
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.site-header.is-island {
  min-width: 520px;
}

/* tile-electric text contrast fix */
.tile-electric .tile-inner p {
  color: rgba(10, 10, 10, 0.85);
  text-shadow: none;
}
.tile-electric .tile-inner p strong {
  color: rgba(10, 10, 10, 0.95);
}
.tile-electric .tile-inner .tile-count {
  color: rgba(10, 10, 10, 0.55);
}

/* Tile sub-services line */
.tile-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 12px;
  line-height: 1.8;
}
.tile-electric .tile-sub {
  color: rgba(10,10,10,0.7);
  opacity: 1;
}

/* How We Work — improve text visibility */
.how-body h3 {
  color: var(--fog) !important;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}
.how-body p {
  color: rgba(237,247,249,0.65) !important;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.how-num {
  color: var(--cyan) !important;
  opacity: 1 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.how-step {
  border-top: 1px solid rgba(237,247,249,0.15) !important;
}
.how-heading h2 {
  color: var(--fog) !important;
}

/* Start With Us button — dark mode override */
.corner-button.dark {
  border-color: rgba(17,24,28,0.5) !important;
  background: rgba(17,24,28,0.08) !important;
}
.corner-button.dark:hover {
  background: rgba(17,24,28,0.18) !important;
  border-color: rgba(17,24,28,0.8) !important;
}

/* ════════════════════════════════════════
   CARD FLIP 3D
════════════════════════════════════════ */
.service-tile {
  perspective: 1200px;
  cursor: pointer;
  overflow: hidden;
}
.tile-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.service-tile.is-flipped .tile-flip {
  transform: rotateY(180deg);
}
.tile-front,
.tile-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.tile-front {
  transform: rotateY(0deg);
}
.tile-back {
  transform: rotateY(180deg);
  background: rgba(0, 210, 245, 0.06);
  border: 1px solid rgba(0,210,245,0.2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  overflow: hidden;
}
/* tile-electric back needs dark text */
.tile-electric .tile-back {
  background: rgba(0,0,0,0.55);
  border-color: rgba(0,0,0,0.3);
}
.tb-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.7;
  margin: 0 0 10px;
}
.tile-back h3 {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 600;
  color: var(--fog);
  line-height: 1.3;
  margin: 0 0 16px;
}
.tb-benefits {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.tb-benefits li {
  font-size: 12px;
  color: rgba(237,247,249,0.65);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}
.tb-benefits li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 10px;
  top: 1px;
}
.tb-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: rgba(237,247,249,0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.tb-stats > div {
  background: rgba(10,14,20,0.85);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}
.tb-stats strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.tb-stats span {
  font-size: 9px;
  color: rgba(237,247,249,0.4);
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.tb-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-decoration: none;
  border-top: 1px solid rgba(0,210,245,0.2);
  padding-top: 14px;
  transition: color 200ms, letter-spacing 200ms;
}
.tb-cta:hover {
  color: var(--fog);
  letter-spacing: 0.14em;
}
/* Flip hint on hover */
.service-tile:not(.is-flipped):hover .tile-flip {
  transform: rotateY(8deg);
}

/* LinkedIn button — force to left column (col 1) */
.leader-copy .leader-linkedin {
  grid-column: 1;
  margin-top: 6px;
  margin-bottom: 0;
  align-self: start;
}

/* Name block — flex column keeps name + LinkedIn together */
.leader-name-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: 1;
}
.leader-name-block h3 {
  margin: 0;
}
.leader-copy .leader-linkedin {
  grid-column: unset;
  margin-top: 0;
  margin-bottom: 0;
  align-self: start;
}

/* Contact form success message */
.cf-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid rgba(0,210,245,0.25);
  background: rgba(0,210,245,0.06);
  color: rgba(237,247,249,0.85);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
}
.cf-success[hidden] { display: none; }

/* ── Social Sidebar — Modern Floating ── */
.social-sidebar {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.social-sidebar__icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  border-radius: 50%;
  background: none;
  border: none;
  transition: color 250ms ease, transform 250ms cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.social-sidebar__link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,210,245,0.08);
  opacity: 0;
  transition: opacity 250ms ease;
}
.social-sidebar__link:hover {
  color: rgba(0,210,245,0.95);
  transform: scale(1.2);
}
.social-sidebar__link:hover::before {
  opacity: 1;
}
/* Vertical line connector */
.social-sidebar::before {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18));
  margin-bottom: 12px;
}
.social-sidebar::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to top, transparent, rgba(255,255,255,0.18));
  margin-top: 12px;
}
@media (max-width: 768px) {
  .social-sidebar { display: none; }
}

/* ── Custom Multi-Select Dropdown ── */
.cf-field--multiselect { position: relative; }

.cf-multiselect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  cursor: pointer;
  color: rgba(237,247,249,0.38);
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: border-color 200ms ease, background 200ms ease;
  outline: none;
}
.cf-multiselect:hover,
.cf-multiselect:focus {
  border-color: rgba(0,210,245,0.35);
  background: rgba(255,255,255,0.06);
}
.cf-multiselect.is-open {
  border-color: rgba(0,210,245,0.55);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.cf-multiselect.has-value { color: rgba(237,247,249,0.85); }
.cf-multiselect__arrow {
  color: rgba(237,247,249,0.3);
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.cf-multiselect.is-open .cf-multiselect__arrow { transform: rotate(180deg); }
.cf-multiselect__placeholder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cf-multiselect__dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgb(14,18,28);
  border: 1px solid rgba(0,210,245,0.35);
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,210,245,0.2) transparent;
}
.cf-multiselect__dropdown[hidden] { display: none; }

.cf-ms-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(237,247,249,0.6);
  transition: background 150ms ease, color 150ms ease;
}
.cf-ms-opt:hover { background: rgba(0,210,245,0.07); color: rgba(237,247,249,0.9); }
.cf-ms-opt input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms ease, border-color 150ms ease;
  position: relative;
}
.cf-ms-opt input[type="checkbox"]:checked {
  background: rgba(0,210,245,0.8);
  border-color: rgba(0,210,245,0.8);
}
.cf-ms-opt input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px; top: 1px;
  width: 5px; height: 8px;
  border: 1.5px solid #0d1018;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* Full-width field in a cf-row */
.cf-row > .cf-field--empty { visibility: hidden; }
.cf-row:has(> .cf-field--empty) > .cf-field:not(.cf-field--empty) {
  grid-column: 1 / -1;
}
/* Fallback for browsers without :has */
.cf-field--full { grid-column: 1 / -1; }

/* ════════════════════════════════════════
   MOBILE NAV — hamburger + overlay menu
════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 70;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--fog, #edf7f9);
  border-radius: 2px;
  transition: transform 360ms cubic-bezier(0.16,1,0.3,1), opacity 220ms ease;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(0,210,245,0.04), rgba(0,0,0,0) 60%),
    rgba(7, 10, 18, 0.86);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 0s;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0 28px;
}
.mobile-menu-links a {
  font-family: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(28px, 9vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fog, #edf7f9);
  text-decoration: none;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 600ms cubic-bezier(0.16,1,0.3,1), color 200ms ease;
}
body.menu-open .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
}
body.menu-open .mobile-menu-links a:nth-child(1) { transition-delay: 90ms; }
body.menu-open .mobile-menu-links a:nth-child(2) { transition-delay: 150ms; }
body.menu-open .mobile-menu-links a:nth-child(3) { transition-delay: 210ms; }
body.menu-open .mobile-menu-links a:nth-child(4) { transition-delay: 270ms; }
body.menu-open .mobile-menu-links a:nth-child(5) { transition-delay: 330ms; }
body.menu-open .mobile-menu-links a:nth-child(6) { transition-delay: 390ms; }
.mobile-menu-links a:active { color: var(--cyan, #00d2f5); }

.mobile-menu-social {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease 460ms, transform 600ms cubic-bezier(0.16,1,0.3,1) 460ms;
}
body.menu-open .mobile-menu-social {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(237,247,249,0.14);
  color: var(--fog, #edf7f9);
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.mobile-menu-social a:active {
  background: rgba(0,210,245,0.18);
  color: var(--cyan, #00d2f5);
  transform: scale(1.08);
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .site-header.is-island .nav-links,
  .nav-links { display: none; }
  .site-header.is-island .nav-toggle { display: flex; }
}

@media (max-width: 460px) {
  .site-header.is-island {
    min-width: 0;
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding: 0 8px 0 12px;
  }
}

@media (max-width: 768px) {
  /* Social sidebar: smaller on mobile, bottom-right corner */
  .social-sidebar {
    right: 12px;
    top: auto;
    bottom: 24px;
    transform: none;
    z-index: 60;
  }
  .social-sidebar__link {
    width: 40px;
    height: 40px;
    background: rgba(7,10,18,0.72) !important;
    border: 1px solid rgba(237,247,249,0.14) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: rgba(255,255,255,0.55) !important;
  }

  /* Reduce animated blue dots in service cards (pattern-wave synapse nodes) */
  .pattern-wave::after {
    box-shadow:
      62px 18px 0 -1px rgba(16,16,16,0.22),
      128px 68px 0 -1px rgba(16,16,16,0.18),
      198px 32px 0 -1px rgba(0,230,255,0.15),
      56px 96px 0 -1px rgba(16,16,16,0.14) !important;
    opacity: 0.35 !important;
  }
  .pattern-wave::before { opacity: 0.28 !important; }
}
@media (min-width: 1101px) {
  .mobile-menu { display: none; }
}
body.menu-open { overflow: hidden; }

/* ════════════════════════════════════════
   MOBILE LAYOUT FIXES (≤768px)
════════════════════════════════════════ */
@media (max-width: 768px) {
@media (max-width: 768px) {
  /* Fix service tiles padding & overflow on mobile */
  .ethos-scene,
  .ethos-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden;
  }
  .ethos-cards {
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    width: 100%;
  }
  .service-tile {
    flex: none !important;
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
    overflow: hidden !important;
  }
  /* preserve-3d breaks overflow:hidden — clip the inner faces instead */
  .tile-front,
  .tile-back {
    overflow: hidden !important;
    clip-path: inset(0 round var(--radius, 16px));
  }
  .tile-back {
    padding: 22px 18px !important;
  }
  .tile-back ul,
  .tile-back p {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
  .service-tile .tile-front h3,
  .service-tile .tile-back h3 {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.06 !important;
  }

  /* Fix stats row overflow */
  .tile-stats {
    gap: 8px !important;
  }
  .tile-stat {
    min-width: 0 !important;
    padding: 14px 10px !important;
  }
  .tile-stat-num {
    font-size: clamp(22px, 7vw, 38px) !important;
  }
  .tile-stat-label {
    font-size: 10px !important;
  }
  .leader-image-label { opacity: 1 !important; }
  /* Shrink name label text for narrow columns */
  .leader-image-label h3 {
    font-size: clamp(11px, 3.2vw, 16px) !important;
    margin: 0 0 3px !important;
  }
  .leader-image-label p {
    font-size: 9px !important;
    letter-spacing: 0.04em !important;
  }
  .leader-image-label {
    padding: 40px 10px 12px !important;
  }
  /* Remove excess space below the gallery */
  .team-stage { padding-bottom: 0 !important; }
  .team-intro { margin-bottom: 24px !important; }

  /* ── Service / stacked panels: contained height, legible titles ── */
  .stacked-panels article {
    min-height: 0 !important;
    padding: 30px 24px 34px !important;
  }
  .stacked-panels span { margin-bottom: 36px !important; }
  .stacked-panels .panel-title,
  .stacked-panels article > .tile-heading,
  .stacked-panels article h3 {
    font-size: clamp(30px, 9vw, 46px) !important;
    line-height: 1.04 !important;
  }
  .stacked-panels p { margin-top: 28px !important; }

  /* ── Reveal: gentler on mobile so titles never sit blurred mid-scroll ── */
  [data-reveal] {
    transform: translateY(28px);
    filter: none;
  }

  /* ── Anchored sections clear the fixed island header ── */
  section[id], footer[id], [id="services"], [id="team"],
  [id="how-we-work"], [id="faq"], [id="why"], [id="contact"] {
    scroll-margin-top: 96px;
  }
}

