/* ============================================================
   3edia — shared site styles. 3edia Design System tokens +
   kinetic, scroll-driven direction (UI/UX Pro Max).
   Used by index / work / what-we-do / contact.
   ============================================================ */
:root {
  --navy: #27429e;
  --navy-deep: #1b2e72;
  --blue: #186dbd;
  --blue-bright: #1082ce;
  --cyan: #01adee;
  --cyan-soft: #6fcdf2;
  --grad-charge: linear-gradient(135deg, #27429e 0%, #1082ce 52%, #01adee 100%);
  --grad-panel: linear-gradient(120deg, #1b2e72 0%, #27429e 45%, #1082ce 100%);
  --n0: #ffffff;
  --n50: #f5f8fc;
  --n100: #eaf1f8;
  --n200: #d7e2ee;
  --n300: #b9c8da;
  --n400: #8c9cb2;
  --n500: #61718a;
  --n600: #45556e;
  --n700: #2c3a52;
  --n800: #1a2334;
  --n900: #0e1422;
  --text-body: #2c3a52;
  --text-heading: #1a2334;
  --text-muted: #61718a;
  --success: #16a36b;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.snap {
  scroll-snap-type: y proximity;
}
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--n900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
::selection {
  background: rgba(1, 173, 238, 0.3);
  color: #fff;
}

/* ---------- Scroll progress ---------- */
.scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 120;
}
.scrollbar__fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad-charge);
  box-shadow: 0 0 14px rgba(1, 173, 238, 0.6);
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 52px);
  transition:
    background 0.4s,
    backdrop-filter 0.4s,
    padding 0.4s;
}
.topbar.solid {
  background: rgba(14, 20, 34, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  padding-top: 13px;
  padding-bottom: 13px;
}
.topbar.light-page {
  background: rgba(14, 20, 34, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
}
.topbar__logo {
  height: 30px;
  width: auto;
  opacity: 0.96;
}
.topbar__nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.topbar__nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.2s;
  position: relative;
}
.topbar__nav a:hover,
.topbar__nav a.active {
  color: #fff;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.topbar__nav a:hover::after,
.topbar__nav a.active::after {
  transform: scaleX(1);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--grad-charge);
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 24px rgba(1, 173, 238, 0.28);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.3s;
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(1, 173, 238, 0.45);
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.2s;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 860px) {
  .topbar__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(14, 20, 34, 0.97);
    backdrop-filter: blur(16px);
    padding: 16px clamp(20px, 4vw, 52px) 26px;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: stretch;
  }
  .topbar__nav.open {
    transform: translateY(0);
  }
  .topbar__nav a {
    padding: 14px 0;
    font-size: 14px;
  }
  .nav-cta {
    margin-top: 10px;
    justify-content: center;
    height: 48px;
  }
  .burger {
    display: flex;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.3s,
    background 0.3s,
    border-color 0.3s;
  will-change: transform;
}
.btn--charge {
  background: var(--grad-charge);
  color: #fff;
  box-shadow: 0 10px 30px rgba(1, 173, 238, 0.32);
}
.btn--charge:hover {
  box-shadow: 0 16px 44px rgba(1, 173, 238, 0.5);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--n300);
}
.btn--outline:hover {
  border-color: var(--blue);
  background: var(--n50);
}
.btn--sm {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

/* ============================================================ HERO DECK ============================================================ */
.deck {
  position: relative;
}
.scene {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  isolation: isolate;
}
.scene__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--grad-panel);
}
.scene__mesh {
  position: absolute;
  inset: -20%;
  z-index: -2;
  opacity: 0.9;
  filter: saturate(115%);
  background:
    radial-gradient(
      40% 50% at 18% 26%,
      rgba(1, 173, 238, 0.5),
      transparent 60%
    ),
    radial-gradient(
      45% 55% at 82% 30%,
      rgba(16, 130, 206, 0.45),
      transparent 62%
    ),
    radial-gradient(50% 60% at 60% 88%, rgba(39, 66, 158, 0.6), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1.05) rotate(0);
  }
  100% {
    transform: translate3d(4%, 3%, 0) scale(1.18) rotate(8deg);
  }
}
.scene__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 0
  );
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    #000 18%,
    #000 82%,
    transparent
  );
  mask-image: linear-gradient(
    180deg,
    transparent,
    #000 18%,
    #000 82%,
    transparent
  );
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scene__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px clamp(20px, 4vw, 52px);
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.scene__ghost {
  position: absolute;
  right: clamp(8px, 2vw, 30px);
  bottom: -2%;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 26vw, 24rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  transform: translateY(var(--py, 0));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--scene-accent, var(--cyan-soft));
  margin-bottom: 22px;
}
.eyebrow .bar {
  width: 34px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.scene h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  color: #fff;
  max-width: 13ch;
}
.scene h1 .ln {
  display: block;
  overflow: hidden;
}
.scene h1 .ln > span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.scene .sub {
  margin-top: 24px;
  max-width: 42ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease 0.35s,
    transform 0.7s var(--ease-out) 0.35s;
}
.scene .meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease 0.5s,
    transform 0.7s var(--ease-out) 0.5s;
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.04);
}
.scene .cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease 0.62s,
    transform 0.7s var(--ease-out) 0.62s;
}
.scene.active h1 .ln > span {
  transform: translateY(0);
}
.scene.active h1 .ln:nth-child(2) > span {
  transition-delay: 0.08s;
}
.scene.active .sub,
.scene.active .meta,
.scene.active .cta {
  opacity: 1;
  transform: translateY(0);
}
.overture-line {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

/* hero art cluster */
.scene__art {
  position: relative;
  height: clamp(320px, 52vh, 560px);
  transform: translateY(var(--pa, 0));
}
.art-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}
.art-orb.a {
  width: 280px;
  height: 280px;
  right: 6%;
  top: 2%;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
}
.art-orb.b {
  width: 220px;
  height: 220px;
  left: 0;
  bottom: 6%;
  background: radial-gradient(circle, var(--navy), transparent 70%);
  opacity: 0.7;
}
.art-mock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(440px, 90%);
  transform: translate(-50%, -50%) rotate(-5deg) scale(0.92);
  opacity: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1322;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transition:
    opacity 0.8s var(--ease-out) 0.2s,
    transform 0.9s var(--ease-out) 0.2s;
}
.scene.active .art-mock {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-5deg) scale(1);
}
.art-mock__bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.art-mock__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.art-mock img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
}
.art-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease 0.55s,
    transform 0.6s var(--ease-out) 0.55s;
}
.scene.active .art-chip {
  opacity: 1;
  transform: translateY(0);
}
.art-chip.c1 {
  left: -2%;
  top: 14%;
}
.art-chip.c2 {
  right: -1%;
  bottom: 12%;
  transition-delay: 0.7s;
}
.art-chip__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.art-chip__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}
.art-badge {
  position: absolute;
  right: 8%;
  top: -3%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-charge);
  box-shadow: 0 14px 34px rgba(1, 173, 238, 0.45);
  opacity: 0;
  transform: scale(0.6) rotate(-12deg);
  transition:
    opacity 0.5s ease 0.8s,
    transform 0.6s var(--ease-out) 0.8s;
}
.scene.active .art-badge {
  opacity: 1;
  transform: scale(1) rotate(-8deg);
}
.art-badge svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

@media (max-width: 900px) {
  .scene__inner {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }
  .scene__art {
    display: none;
  }
  .scene h1 {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }
}

/* ---------- Progress rail ---------- */
.rail {
  position: fixed;
  right: clamp(14px, 2.2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail button {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}
.rail .num {
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 22px;
  text-align: right;
  opacity: 0;
  transform: translateX(6px);
  transition: 0.3s;
}
.rail .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s var(--ease);
}
.rail button:hover {
  color: #fff;
}
.rail button:hover .num {
  opacity: 0.8;
  transform: translateX(0);
}
.rail button.on {
  color: #fff;
}
.rail button.on .num {
  opacity: 1;
  transform: translateX(0);
}
.rail button.on .dot {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(1, 173, 238, 0.22);
  transform: scale(1.1);
}
@media (max-width: 900px) {
  .rail {
    display: none;
  }
}

/* ---------- Scroll cue ---------- */
.cue {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: opacity 0.4s;
}
.cue .line {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.cue .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}
.cue.hide {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Client logo scroller ---------- */
.clients {
  background: var(--n50);
  border-top: 1px solid var(--n200);
  border-bottom: 1px solid var(--n200);
  padding: 34px 0;
  overflow: hidden;
}
.clients__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--n500);
  margin-bottom: 22px;
}
.logo-row {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 18px;
  animation: scrollx 42s linear infinite;
}
.logo-row:hover {
  animation-play-state: paused;
}
.logo-chip {
  flex: none;
  display: grid;
  place-items: center;
  height: 74px;
  min-width: 158px;
  padding: 0 28px;
  background: var(--n0);
  border: 1px solid var(--n200);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(27, 46, 114, 0.05);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    border-color 0.25s;
}
.logo-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(27, 46, 114, 0.12);
  border-color: var(--n300);
}
.logo-chip img {
  max-height: 42px;
  max-width: 128px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}
.logo-chip--dark {
  background: var(--navy-deep);
  border-color: transparent;
}
.logo-chip--dark img {
  opacity: 1;
}
@keyframes scrollx {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Keyword marquee (dark) ---------- */
.marquee {
  background: var(--n900);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 24px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: scrollx 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 0 26px;
  color: rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}
.marquee__track .hot {
  -webkit-text-fill-color: transparent;
  background: var(--grad-charge);
  -webkit-background-clip: text;
  background-clip: text;
}
.marquee__track .star {
  color: var(--cyan);
}

/* ============================================================ LIGHT SECTIONS ============================================================ */
.light {
  background: var(--n0);
  color: var(--text-body);
}
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 52px);
}
.wrap--narrow {
  max-width: 880px;
}
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.sec-head {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: var(--text-heading);
  line-height: 1.02;
  max-width: 18ch;
}
.sec-sub {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--n600);
  font-size: 1.05rem;
  line-height: 1.6;
}
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--n200);
  border: 1px solid var(--n200);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}
.stat {
  background: var(--n0);
  padding: 34px 26px;
}
.stat .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;
  background: var(--grad-charge);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n500);
  margin-top: 12px;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.proc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.proc .step {
  border-top: 2px solid var(--n200);
  padding-top: 18px;
}
.proc .step .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}
.proc .step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text-heading);
  margin: 8px 0;
}
.proc .step p {
  font-size: 0.95rem;
  color: var(--n600);
  line-height: 1.55;
}
@media (max-width: 820px) {
  .proc {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.work-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--n100);
  aspect-ratio: 4/3;
  box-shadow: 0 2px 8px rgba(27, 46, 114, 0.08);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(27, 46, 114, 0.18);
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease);
}
.work-card:hover img {
  transform: scale(1.06);
}
.work-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(0deg, rgba(14, 20, 34, 0.88), transparent);
}
.work-card__meta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.work-card__meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.work-card__plus {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: 0.3s var(--ease);
}
.work-card:hover .work-card__plus {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.ctaband {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: var(--grad-panel);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px);
  text-align: center;
}
.ctaband::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 0
  );
  background-size: 28px 28px;
}
.ctaband > * {
  position: relative;
  z-index: 1;
}
.ctaband h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
}
.ctaband p {
  margin: 18px auto 32px;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}
.ctaband .row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--n900);
  color: var(--n300);
  padding: 64px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer img {
  height: 30px;
  margin-bottom: 18px;
}
.footer p {
  font-size: 0.95rem;
  color: var(--n400);
  max-width: 32ch;
  line-height: 1.6;
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n500);
  margin-bottom: 14px;
}
.footer a {
  display: block;
  color: var(--n300);
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer a:hover {
  color: #fff;
}
.footer__bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--n500);
}
@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}
@media (max-width: 460px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(1, 173, 238, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 200;
  transition:
    width 0.25s,
    height 0.25s,
    background 0.25s;
  mix-blend-mode: difference;
}
.cursor.big {
  width: 64px;
  height: 64px;
  background: rgba(1, 173, 238, 0.15);
}
@media (hover: none), (pointer: coarse) {
  .cursor,
  .cue {
    display: none;
  }
}

/* ============================================================ INNER PAGE HERO (work / what-we-do / contact) ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad-panel);
  padding: clamp(120px, 18vh, 180px) 0 clamp(56px, 8vw, 90px);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.09) 1px,
    transparent 0
  );
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.page-hero__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      40% 50% at 80% 10%,
      rgba(1, 173, 238, 0.5),
      transparent 60%
    ),
    radial-gradient(40% 50% at 10% 90%, rgba(39, 66, 158, 0.6), transparent 60%);
  animation: drift 24s ease-in-out infinite alternate;
}
.page-hero > .wrap {
  position: relative;
  z-index: 1;
}
.page-hero .eyebrow {
  color: var(--cyan-soft);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  color: #fff;
}
.page-hero p {
  margin-top: 20px;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

/* ---------- Work filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}
.filter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n600);
  border: 1px solid var(--n300);
  border-radius: 999px;
  padding: 9px 16px;
  transition: 0.25s;
}
.filter:hover {
  border-color: var(--blue);
  color: var(--navy);
}
.filter.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ---------- Modal / lightbox ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open {
  display: flex;
}
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.74);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.modal.open .modal__scrim {
  opacity: 1;
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--n0);
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(10, 16, 28, 0.5);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.4s var(--ease-out),
    opacity 0.3s;
}
.modal.open .modal__panel {
  transform: none;
  opacity: 1;
}
.modal__media {
  background: var(--n100);
}
.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  min-height: 240px;
}
.modal__body {
  padding: clamp(24px, 3vw, 40px);
}
.modal__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.modal__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}
.modal__body p {
  color: var(--n600);
  line-height: 1.65;
  margin-bottom: 18px;
}
.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.modal__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--n600);
  background: var(--n100);
  border-radius: 999px;
  padding: 6px 12px;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(10, 16, 28, 0.2);
  display: grid;
  place-items: center;
  color: var(--navy);
  z-index: 2;
  transition: 0.2s;
}
.modal__close:hover {
  transform: rotate(90deg);
  background: #fff;
}
@media (max-width: 720px) {
  .modal__panel {
    grid-template-columns: 1fr;
  }
  .modal__media img {
    min-height: 200px;
    max-height: 240px;
  }
}

/* ---------- Services (what-we-do) ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--n200);
}
.svc-row:nth-child(even) .svc-row__visual {
  order: -1;
}
.svc-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.svc-row h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 8px 0 14px;
}
.svc-row .lead {
  color: var(--n600);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 48ch;
}
.svc-list {
  list-style: none;
  margin: 22px 0 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--text-body);
}
.svc-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  margin-top: 2px;
}
.svc-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--grad-panel);
  box-shadow: 0 24px 60px rgba(27, 46, 114, 0.2);
  display: grid;
  place-items: center;
}
.svc-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 0
  );
  background-size: 26px 26px;
}
.svc-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.svc-visual .ico {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.svc-visual .ico svg {
  width: 44px;
  height: 44px;
  stroke: #fff;
}
@media (max-width: 820px) {
  .svc-row {
    grid-template-columns: 1fr;
  }
  .svc-row:nth-child(even) .svc-row__visual {
    order: 0;
  }
  .svc-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact / offices ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 8px;
}
@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.office {
  border: 1px solid var(--n200);
  border-radius: 20px;
  overflow: hidden;
  background: var(--n0);
  box-shadow: 0 2px 10px rgba(27, 46, 114, 0.06);
}
.office__map {
  height: 200px;
  background: var(--n100);
  position: relative;
}
.office__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.2);
}
.office__body {
  padding: 26px 28px;
}
.office__city {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-heading);
}
.office__flag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  padding: 4px 8px;
}
.office__addr {
  margin-top: 12px;
  color: var(--n600);
  line-height: 1.6;
  font-size: 1.02rem;
}
.office__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.office__link:hover {
  color: var(--navy);
}

.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-cols {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-heading);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-heading);
  background: var(--n0);
  border: 1.5px solid var(--n300);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(1, 173, 238, 0.25);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.calendly-card {
  background: var(--grad-panel);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.calendly-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 0
  );
  background-size: 26px 26px;
}
.calendly-card > * {
  position: relative;
  z-index: 1;
}
.calendly-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.calendly-card p {
  color: rgba(255, 255, 255, 0.82);
  margin: 12px 0 22px;
  line-height: 1.6;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--n200);
}
.contact-line:last-child {
  border-bottom: none;
}
.contact-line svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  flex: none;
}
.contact-line .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n500);
}
.contact-line .v {
  font-weight: 600;
  color: var(--text-heading);
}
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #e4f6ee;
  color: #0d6b46;
  font-weight: 600;
}
.form-success.show {
  display: flex;
}

/* ---------- Team (photo-forward, hover-reveal) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
}
@media (max-width: 1000px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
.tm {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(27, 46, 114, 0.14);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.tm:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(27, 46, 114, 0.26);
}
.tm img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition:
    transform 0.7s var(--ease),
    filter 0.5s;
  filter: saturate(0.94) contrast(1.02);
}
.tm:hover img {
  transform: scale(1.06);
  filter: saturate(1.06);
}
.tm::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: background 0.45s var(--ease);
  background: linear-gradient(
    0deg,
    rgba(10, 16, 28, 0.92) 6%,
    rgba(10, 16, 28, 0.32) 46%,
    rgba(10, 16, 28, 0.04) 72%
  );
}
.tm:hover::after {
  background: linear-gradient(
    0deg,
    rgba(14, 20, 34, 0.96) 16%,
    rgba(27, 66, 158, 0.5) 62%,
    rgba(14, 20, 34, 0.12) 100%
  );
}
.tm__c {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px;
}
.tm__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.tm__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 5px 0 3px;
}
.tm__loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.62);
}
.tm__loc svg {
  width: 11px;
  height: 11px;
  flex: none;
}
.tm__bio {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    max-height 0.55s var(--ease),
    opacity 0.4s,
    margin-top 0.4s;
}
.tm__social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    max-height 0.4s,
    opacity 0.4s,
    margin-top 0.4s;
}
.tm__social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.tm__social:hover {
  color: var(--cyan-soft);
}
.tm:hover .tm__bio,
.tm:focus-within .tm__bio {
  max-height: 200px;
  opacity: 1;
  margin-top: 12px;
}
.tm:hover .tm__social,
.tm:focus-within .tm__social {
  max-height: 40px;
  opacity: 1;
  margin-top: 14px;
}
@media (hover: none) {
  .tm::after {
    background: linear-gradient(
      0deg,
      rgba(14, 20, 34, 0.96) 18%,
      rgba(27, 66, 158, 0.4) 70%,
      rgba(14, 20, 34, 0.1) 100%
    );
  }
  .tm__bio {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
  }
  .tm__social {
    max-height: 40px;
    opacity: 1;
    margin-top: 14px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html,
  html.snap {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  .scene__mesh,
  .page-hero__mesh,
  .marquee__track,
  .logo-row,
  .cue .line::after {
    animation: none !important;
  }
  .scene h1 .ln > span,
  .scene .sub,
  .scene .meta,
  .scene .cta,
  .reveal,
  .art-mock,
  .art-chip,
  .art-badge {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .scene__ghost,
  .scene__art {
    transform: none !important;
  }
}

/* ============================================================ CASE STUDIES (redesigned) ============================================================ */
/* ---------- index grid ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
}
@media (max-width: 820px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--n0);
  border: 1px solid var(--n200);
  box-shadow: 0 2px 12px rgba(27, 46, 114, 0.06);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s,
    border-color 0.3s;
  text-decoration: none;
  color: inherit;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 62px rgba(27, 46, 114, 0.2);
  border-color: var(--cyan-soft);
}
.case-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--grad-panel);
}
.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease);
}
.case-card:hover .case-card__media img {
  transform: scale(1.06);
}
.case-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 20, 34, 0.42), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.case-card:hover .case-card__media::after {
  opacity: 1;
}
.case-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(14, 20, 34, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
}
.case-card__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.case-card__ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 0
  );
  background-size: 24px 24px;
}
.case-card__ph span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 24px;
}
.case-card__body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-card__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  line-height: 1.15;
  margin: 0 0 8px;
}
.case-card__body p {
  color: var(--n600);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.case-card__read {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    gap 0.3s,
    color 0.3s;
}
.case-card:hover .case-card__read {
  color: var(--cyan);
  gap: 11px;
}
/* ---------- case hero + factbar ---------- */
.case-hero .eyebrow {
  color: var(--cyan-soft);
}
.case-kicker {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cyan-soft);
}
.case-hero h1 {
  max-width: 20ch;
  margin-top: 8px;
}
.case-hero__sub {
  margin-top: 16px;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}
.case-facts {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.case-facts__col .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.case-facts__col .v {
  margin-top: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  max-width: 30ch;
}
.case-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5f4dd;
  background: rgba(22, 163, 107, 0.2);
  border: 1px solid rgba(60, 201, 138, 0.5);
  border-radius: 999px;
  padding: 5px 11px;
}
.case-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3cc98a;
  box-shadow: 0 0 0 3px rgba(60, 201, 138, 0.22);
}

/* ---------- cover (framed) ---------- */
.case-cover {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 46px) clamp(20px, 4vw, 52px) 0;
  position: relative;
  z-index: 2;
}
.case-cover__frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 44px 96px -34px rgba(14, 20, 34, 0.55);
  border: 1px solid var(--n200);
  background: #fff;
}
.case-cover__bar {
  height: 34px;
  background: var(--n100);
  border-bottom: 1px solid var(--n200);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
}
.case-cover__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--n300);
}
.case-cover__frame img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top;
}

/* ---------- body: two-column ---------- */
.case-body {
  padding: clamp(46px, 6vw, 76px) 0 clamp(24px, 3vw, 44px);
}
.case-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: clamp(30px, 5vw, 66px);
  align-items: start;
}
@media (max-width: 900px) {
  .case-layout {
    grid-template-columns: 1fr;
  }
}
.case-side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 900px) {
  .case-side {
    position: static;
  }
}
.case-side__back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--n500);
  text-decoration: none;
  display: inline-flex;
  gap: 7px;
  transition:
    color 0.2s,
    gap 0.2s;
}
.case-side__back:hover {
  color: var(--blue);
  gap: 11px;
}
.case-side__pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--n200);
  border-radius: 12px;
  padding: 13px 18px;
  background: var(--n0);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.case-side__pdf svg {
  color: var(--blue);
  transition: transform 0.2s;
}
.case-side__pdf:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 4px 16px rgba(24, 109, 189, 0.12);
}
.case-side__pdf:hover svg {
  transform: translateY(2px);
}
.case-meta {
  border: 1px solid var(--n200);
  border-radius: 16px;
  padding: 22px 24px;
  background: var(--n0);
  box-shadow: 0 2px 14px rgba(27, 46, 114, 0.05);
}
.case-meta h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.case-meta__row {
  padding: 12px 0;
  border-top: 1px solid var(--n100);
}
.case-meta__row:first-of-type {
  border-top: none;
  padding-top: 0;
}
.case-meta__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n500);
}
.case-meta__v {
  margin-top: 5px;
  font-size: 0.95rem;
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.4;
}
.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.case-chips span {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--navy);
  background: var(--n100);
  border-radius: 6px;
  padding: 5px 9px;
}
.case-side__cta {
  border-radius: 16px;
  padding: 24px;
  background: var(--grad-panel);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.case-side__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 0
  );
  background-size: 20px 20px;
  opacity: 0.5;
}
.case-side__cta > * {
  position: relative;
  z-index: 1;
}
.case-side__cta h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}
.case-side__cta p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 9px 0 15px;
  line-height: 1.5;
}
.case-side__cta a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  color: var(--navy);
  border-radius: 9px;
  padding: 11px 17px;
  text-decoration: none;
  transition: transform 0.2s;
}
.case-side__cta a:hover {
  transform: translateY(-2px);
}

/* ---------- article ---------- */
.case-article {
  max-width: 760px;
  min-width: 0;
}
.case-sec {
  margin-bottom: clamp(34px, 4vw, 52px);
}
.case-sec__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.case-sec__n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  flex: none;
}
.case-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
  color: var(--text-heading);
  line-height: 1.1;
  margin: 0;
}
.case-article p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 16px;
}
.case-article p.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-heading);
}
.case-article p strong,
.case-article li strong {
  color: var(--text-heading);
  font-weight: 700;
}
.case-article a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.case-article code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--n100);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--navy);
}
.case-article ul {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.case-article ul li {
  position: relative;
  padding-left: 30px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-body);
}
.case-article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-charge);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center/11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center/11px no-repeat;
}
/* results panel */
.case-sec--results {
  background: linear-gradient(135deg, #effbf4, #eaf5ff);
  border: 1px solid #cfeade;
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
}
.case-sec--results .case-sec__n {
  color: #16a36b;
}
.case-sec--results ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 26px;
  margin-bottom: 0;
}
@media (max-width: 620px) {
  .case-sec--results ul {
    grid-template-columns: 1fr;
  }
}
.case-sec--results ul li::before {
  background: linear-gradient(135deg, #16a36b, #3cc98a);
}
/* slot / to-add note */
.case-slot {
  display: block;
  margin: 8px 0 18px;
  padding: 14px 18px;
  border: 1px dashed var(--n300);
  border-radius: 12px;
  background: var(--n50);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--n500);
  line-height: 1.6;
}
.case-slot b {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

/* ---------- next case ---------- */
.case-next {
  background: #0e1422;
}
.case-next a {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(32px, 4vw, 46px) clamp(20px, 4vw, 52px);
  text-decoration: none;
  color: #fff;
}
.case-next .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.case-next .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin-top: 9px;
}
.case-next .arr {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cyan);
  transition: transform 0.3s;
  flex: none;
}
.case-next a:hover .arr {
  transform: translateX(9px);
}
