/* =========================================================
   GHIT — SaaSable + Liquid Glass
   Light · translucent · refractive · primary #006397
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --primary: #006397;
  --primary-hover: #00527d;
  --accent: #0000ee;
  --surface: #f1f4f9;
  --elevated: #f2f2f2;
  --card: #ffffff;
  --text: #1a1c1e;
  --muted: #42474e;
  --border: #e2e2e5;
  --white: #ffffff;

  --radius-card: 40px;
  --radius-chip: 74px;
  --radius-pill: 100px;
  --radius-input: 14px;

  --font-display: Montserrat, system-ui, sans-serif;
  --font-body: Montserrat, system-ui, sans-serif;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --space-7: 48px;

  --nav-h: 72px;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Liquid glass — white-forward */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-bg-soft: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.88);
  --glass-border-soft: rgba(226, 232, 240, 0.9);
  --glass-highlight: rgba(255, 255, 255, 0.98);
  --glass-shadow:
    0 12px 40px rgba(15, 23, 42, 0.05),
    0 2px 8px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(148, 163, 184, 0.12);
  --glass-blur: blur(22px) saturate(140%);
  --glass-blur-strong: blur(32px) saturate(150%);
  --glass-sheen: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.2) 30%,
    transparent 52%,
    rgba(148, 163, 184, 0.04) 100%
  );

  /* aliases */
  --background: var(--surface);
  --foreground: var(--text);
  --bg: var(--surface);
  --bg-2: var(--elevated);
  --ink: var(--text);
  --muted-foreground: var(--muted);
  --line: var(--border);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-ready {
  animation: page-in 0.5s var(--ease) both;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 40%, #7eb8d8));
  pointer-events: none;
  transform-origin: left center;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.site-header .container {
  position: relative;
}

.mono {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, white);
  padding: 8px 16px;
  border-radius: var(--radius-chip);
  margin-bottom: 16px;
  border: none;
  box-shadow: none;
}

.section {
  padding: 80px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.8125rem);
  line-height: 1.16;
  letter-spacing: -0.25px;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: none;
  box-shadow: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease,
    border-color 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--btn-x, 50%) var(--btn-y, 50%),
    rgba(255, 255, 255, 0.28),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.is-magnetic {
  will-change: transform;
}

.btn-primary,
.btn-accent {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover,
.btn-accent:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--card);
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 16px 0;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease,
    padding 0.35s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.site-header.is-hidden {
  transform: none;
}

.site-header.is-scrolled {
  background: #ffffff;
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(26, 28, 30, 0.04);
  padding: 12px 0;
}

.nav {
  height: auto;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  justify-self: start;
  transition: transform 0.35s var(--ease-out);
}

.brand:hover {
  transform: scale(1.03);
}

.brand img {
  height: 32px;
  width: auto;
  transition: filter 0.35s ease;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px;
  background: rgba(220, 236, 248, 0.48);
  border: 1px solid rgba(186, 220, 240, 0.62);
  border-radius: var(--radius-pill);
  justify-self: center;
  box-shadow:
    0 8px 28px rgba(0, 99, 151, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(0, 99, 151, 0.06);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  transition: box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled .nav-pill {
  background: rgba(214, 232, 246, 0.62);
  border-color: rgba(176, 214, 236, 0.72);
  box-shadow:
    0 10px 32px rgba(0, 99, 151, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(0, 99, 151, 0.08);
}

.nav-pill a {
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--muted);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, transform 0.25s var(--ease);
}

.nav-pill a:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.nav-pill a.active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -0.5px 0 rgba(148, 163, 184, 0.12),
    0 4px 14px rgba(15, 23, 42, 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  justify-self: end;
}

.nav-links .mobile-cta,
.nav-pill .mobile-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.nav-toggle:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  transform: scale(1.05);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  margin-top: -104px;
  padding-top: 104px;
  display: flex;
  align-items: center;
  overflow: visible;
  border-bottom: none;
  text-align: left;
  background: transparent;
}

.hero::before,
.hero-glow,
.hero::after {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding: 56px 0 100px;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  overflow: visible;
  background: transparent;
}

.hero-inner > * {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
}

.hero .eyebrow {
  animation: rise 0.85s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 3.5625rem);
  font-weight: 400;
  letter-spacing: -0.25px;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--text);
  animation: rise 0.9s 0.06s var(--ease) both;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.25px;
  max-width: 12ch;
  margin: 0 0 18px;
  text-align: left;
  animation: rise 0.9s 0.1s var(--ease) both;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 32px;
  text-align: left;
  animation: rise 0.9s 0.18s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  animation: rise 0.9s 0.26s var(--ease) both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  justify-content: flex-start;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
  animation: rise 0.9s 0.34s var(--ease) both;
}

.hero-meta > div {
  transition: transform 0.35s var(--ease);
}

.hero-meta > div:hover {
  transform: translateY(-3px);
}

.hero-meta strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.hero-meta span {
  font-weight: 500;
  color: var(--text);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 40vw, 460px);
  align-self: center;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  animation: rise 1s 0.2s var(--ease) both;
  z-index: 2;
}

.hero-visual img,
.hero-visual .hero-phone {
  position: relative;
  z-index: 1;
  width: min(135%, 560px);
  max-width: none;
  height: auto;
  margin-right: -8%;
  margin-top: -4%;
  margin-bottom: -10%;
  background: transparent;
  filter: drop-shadow(0 28px 50px rgba(0, 40, 80, 0.28));
  transform-origin: center center;
  animation:
    hero-visual-in 1.15s 0.2s var(--ease-out) both,
    hero-phone-float 7s 1.3s ease-in-out infinite;
  will-change: transform;
}

.hero-visual-glow {
  position: absolute;
  inset: 5% 0%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary) 28%, transparent),
    transparent 68%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow-pulse 5s ease-in-out infinite;
}

/* ---------- Capability ---------- */
.capabilities {
  background: transparent;
  color: var(--text);
  padding: 80px 0;
  border-bottom: none;
  position: relative;
  z-index: 1;
}

.capabilities .section-head h2 {
  color: var(--text);
}

.capabilities .section-head p {
  color: var(--muted);
}

.capabilities .mono {
  color: var(--primary);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cap-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  background: var(--surface);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.4s var(--ease-out);
}

.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    color-mix(in srgb, var(--primary) 12%, transparent),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cap-card:hover {
  background: var(--card);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 99, 151, 0.08);
}

.cap-card:hover::before {
  opacity: 1;
}

.cap-card .idx {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.35s var(--ease-spring);
}

.cap-card:hover .idx {
  transform: scale(1.12);
}

.cap-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.33;
  margin-bottom: 12px;
  color: var(--text);
}

.cap-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.svc-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, background 0.3s ease,
    box-shadow 0.35s ease;
}

.svc-item:hover {
  transform: translateY(-4px) translateX(2px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background: var(--white);
  box-shadow: 0 14px 32px rgba(0, 99, 151, 0.07);
}

.svc-item .code {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, white);
  color: var(--primary);
  border: none;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.4s var(--ease-spring), background 0.3s ease;
}

.svc-item:hover .code {
  transform: rotate(-8deg) scale(1.08);
  background: color-mix(in srgb, var(--primary) 20%, white);
}

.svc-item strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ---------- Industries ---------- */
.industries {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ind-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 28px 24px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}

.ind-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.4s var(--ease-spring), background 0.3s ease, box-shadow 0.3s ease;
}

.ind-icon svg {
  width: 22px;
  height: 22px;
}

.ind-item:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: 0 16px 36px rgba(0, 99, 151, 0.07);
}

.ind-item:hover .ind-icon {
  transform: translateY(-2px) scale(1.06);
  background: color-mix(in srgb, var(--primary) 18%, white);
  box-shadow: 0 8px 20px rgba(0, 99, 151, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ind-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.33;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.ind-item:hover h3 {
  color: var(--primary);
}

.ind-item p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ---------- Work slider (cover-flow gallery) ---------- */
.work-section {
  overflow: hidden;
}

.work-slider-wrap {
  width: 100%;
  margin-top: 8px;
}

.work-slider {
  position: relative;
  width: 100%;
}

.work-slider-viewport {
  overflow: hidden;
  width: 100%;
  padding: 28px 0 36px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.work-slider-viewport.is-dragging {
  cursor: grabbing;
}

.work-slider-viewport.is-dragging .work-card {
  pointer-events: none;
}

.work-slider-track {
  display: flex;
  gap: 24px;
  align-items: center;
  will-change: transform;
}

.work-slider-track .work-card {
  flex: 0 0 auto;
  display: block;
  color: inherit;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transform: scale(0.9);
  transform-origin: center center;
  filter: blur(0.6px);
  opacity: 0.88;
  z-index: 1;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease;
}

.work-slider-track .work-card.is-side {
  transform: scale(0.9);
  filter: blur(0.6px);
  opacity: 0.88;
  z-index: 2;
}

.work-slider-track .work-card.is-active {
  transform: scale(1.08);
  filter: none;
  opacity: 1;
  z-index: 5;
  box-shadow:
    0 24px 52px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.work-slider-track .work-card img {
  border-bottom: none;
  display: block;
}

.work-slider-track .work-card .body {
  background: transparent;
}

.work-slider-track .work-card.is-active:hover {
  box-shadow:
    0 28px 56px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.work-slider-nav {
  position: absolute;
  top: 42%;
  z-index: 8;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--glass-border-soft, rgba(226, 232, 240, 0.9));
  border-radius: 50%;
  background: var(--glass-bg-strong, rgba(255, 255, 255, 0.78));
  backdrop-filter: var(--glass-blur, blur(22px) saturate(140%));
  -webkit-backdrop-filter: var(--glass-blur, blur(22px) saturate(140%));
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
  color: var(--primary);
  transform: translateY(-50%);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.work-slider-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.work-slider-prev {
  left: 16px;
}

.work-slider-prev::before {
  transform: translate(-40%, -50%) rotate(-135deg);
}

.work-slider-next {
  right: 16px;
}

.work-slider-next::before {
  transform: translate(-60%, -50%) rotate(45deg);
}

.work-slider-nav:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow:
    0 14px 32px rgba(0, 99, 151, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transform: translateY(-50%) scale(1.05);
}

.work-slider-nav:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.work-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 1.25rem;
}

.work-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 18%, var(--border));
  cursor: pointer;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.work-slider-dot.is-active {
  width: 28px;
  background: var(--primary);
}

.work-slider-footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding: 0 1.25rem 4px;
}

@media (max-width: 639px) {
  .work-slider-viewport {
    padding: 20px 0 28px;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
  }

  .work-slider-track .work-card {
    transform: scale(0.94);
    filter: blur(0.4px);
    opacity: 0.9;
  }

  .work-slider-track .work-card.is-side {
    transform: scale(0.94);
    filter: blur(0.4px);
  }

  .work-slider-track .work-card.is-active {
    transform: scale(1.04);
  }

  .work-slider-track .work-card:hover {
    transform: scale(0.94);
  }

  .work-slider-track .work-card.is-side:hover {
    transform: scale(0.94);
  }

  .work-slider-track .work-card.is-active:hover {
    transform: scale(1.04);
  }

  .work-slider-nav {
    width: 40px;
    height: 40px;
  }

  .work-slider-prev {
    left: 8px;
  }

  .work-slider-next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-slider-track .work-card {
    transition: none;
  }

  .work-slider-nav {
    transition: none;
  }
}

/* Legacy grid fallback (other pages) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: 0 20px 44px rgba(0, 99, 151, 0.1);
}

.work-slider-track .work-card {
  position: relative;
}

.work-slider-track .work-card:hover {
  transform: scale(0.9);
  border-color: rgba(255, 255, 255, 0.55);
}

.work-slider-track .work-card.is-side:hover {
  transform: scale(0.9);
}

.work-slider-track .work-card.is-active:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.78);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--elevated);
  border-bottom: 1px solid var(--border);
  transition: transform 0.7s var(--ease-out);
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-card .body {
  padding: 24px;
  transition: transform 0.4s var(--ease);
}

.work-card:hover .body {
  transform: translateY(-2px);
}

.work-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.33;
  margin-bottom: 8px;
}

.work-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ---------- Technologies marquee ---------- */
.tech-section {
  overflow: hidden;
  padding-top: 24px;
  padding-bottom: 24px;
}

.tech-head {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 36px;
}

.tech-head p {
  margin-inline: auto;
}

.tech-slider-wrap {
  width: 100%;
  position: relative;
}

.tech-slider-wrap::before,
.tech-slider-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(8vw, 96px);
  z-index: 2;
  pointer-events: none;
}

.tech-slider-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0));
}

.tech-slider-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0));
}

.tech-slider-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tech-slider-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  will-change: transform;
  animation: tech-marquee 55s linear infinite;
}

.tech-slider-wrap:hover .tech-slider-track,
.tech-slider-wrap.is-paused .tech-slider-track {
  animation-play-state: paused;
}

.tech-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(112px, 14vw, 148px);
  height: 88px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.tech-logo img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.92;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.tech-logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

@keyframes tech-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-slider-track {
    animation: none;
    flex-wrap: wrap;
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
    justify-content: center;
  }
}

/* ---------- Proof ---------- */
.proof {
  background: transparent;
  color: var(--text);
  border-top: none;
  border-bottom: none;
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.proof h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.8125rem);
  font-weight: 400;
  line-height: 1.16;
  max-width: 14ch;
  margin: 0;
  color: var(--text);
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.25px;
  line-height: 1.12;
  margin-bottom: 8px;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-weight: 500;
  color: var(--muted);
}

.stat.is-counting strong {
  animation: pulse-soft 0.6s var(--ease);
}

/* ---------- CTA / Contact band ---------- */
.cta-band {
  border-bottom: none;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: none;
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.16;
  margin-bottom: 12px;
}

.cta-panel > div > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid #c9d0d8;
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font: inherit;
  background: #ffffff;
  color: var(--text);
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    transform 0.25s var(--ease);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #6b7380;
  opacity: 1;
}

.form-grid input:hover,
.form-grid textarea:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, #c9d0d8);
  background: #ffffff;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
  transform: translateY(-1px);
}

.form-note.ok {
  color: var(--primary);
  animation: rise 0.5s var(--ease) both;
}

.form-grid textarea {
  min-height: 110px;
  resize: vertical;
  padding: 12px;
}

.form-note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: none;
  background: transparent;
}

.page-hero .crumbs {
  animation: rise 0.7s var(--ease) both;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5625rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.25px;
  margin-bottom: 12px;
  animation: rise 0.85s 0.08s var(--ease) both;
}

.page-hero p {
  color: var(--muted);
  max-width: 36rem;
  font-size: 16px;
  line-height: 1.5;
  animation: rise 0.85s 0.16s var(--ease) both;
}

.crumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--primary);
}

/* ---------- About ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-visual {
  display: grid;
  place-items: center;
}

.about-split img,
.about-split .about-phone {
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: min(100%, 460px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.14));
}

.about-copy .lead {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 16px 0;
  color: var(--text);
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 32px 28px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}

.mv-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: 0 16px 36px rgba(0, 99, 151, 0.07);
}

.mv-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.33;
  margin-bottom: 12px;
}

.mv-card p {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.5;
}

/* ---------- Projects list ---------- */
.project-list {
  display: grid;
  gap: 40px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}

.project-row:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: 0 18px 40px rgba(0, 99, 151, 0.09);
}

.project-row img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  background: var(--elevated);
  border-right: 1px solid var(--border);
  transition: transform 0.7s var(--ease-out);
}

.project-row:hover img {
  transform: scale(1.05);
}

.project-row .body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 36px 40px 40px;
}

.project-row .body > .mono {
  margin-bottom: 10px;
}

.project-row .body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.project-blocks {
  display: grid;
  gap: 22px;
}

.project-block h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}

.project-block p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
  max-width: 58ch;
}

.project-block.project-tech p {
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- Contact page ---------- */
.contact-section {
  padding-top: 24px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-card) + 4px);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  backdrop-filter: var(--glass-blur-strong);
}

.contact-aside {
  padding: clamp(28px, 4vw, 44px);
  border-right: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(241, 247, 252, 0.45) 100%
  );
}

.contact-aside h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text);
}

.contact-aside-lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34ch;
  line-height: 1.55;
}

.contact-channels {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}

.contact-channel:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.contact-channel-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, white);
  color: var(--primary);
}

.contact-channel-icon svg {
  width: 18px;
  height: 18px;
}

.contact-channel strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2px;
}

.contact-channel span span {
  display: block;
  font-weight: 500;
  color: var(--text);
  font-size: 0.975rem;
}

.contact-offices {
  display: grid;
  gap: 16px;
}

.contact-office strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-office p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-form-panel {
  padding: clamp(28px, 4vw, 44px);
}

.contact-form-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--text);
}

.contact-form-panel > p {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.contact-form-actions .form-note {
  margin: 0;
}

/* Legacy contact styles (homepage / older markup) */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.info-stack {
  display: grid;
  gap: 12px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: none;
  padding: 20px;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
  box-shadow: 0 12px 28px rgba(0, 99, 151, 0.06);
}

.info-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.info-card a:hover,
.info-card strong {
  font-weight: 600;
}

.info-card a:hover {
  color: var(--primary);
}

.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: none;
  padding: 32px;
}

@media (max-width: 900px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    border-right: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  }
}

/* ---------- Legal ---------- */
.legal {
  max-width: 48rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 32px 0 12px;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.legal ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin-bottom: 16px;
}

.legal a {
  color: var(--primary);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--card);
  color: var(--muted);
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
}

.site-footer h3 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text) !important;
  background: var(--surface);
  transition: transform 0.35s var(--ease-spring), background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

.socials a svg,
.socials a .social-icon {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
  flex-shrink: 0;
  pointer-events: none;
}

.socials a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-3px) scale(1.08);
}

.copyright {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

/* ---------- Reveal & motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal-scale {
  transform: scale(0.94);
}

.reveal-left.in,
.reveal-right.in,
.reveal-scale.in {
  transform: none;
}

.section-head.reveal.in h2 {
  animation: text-focus 0.7s 0.05s var(--ease) both;
}

.about-split img,
.about-split .about-phone {
  border-radius: 0;
  transition: transform 0.7s var(--ease-out);
}

.about-split .reveal.in img {
  animation: image-in 0.9s var(--ease-out) both;
}

.footer-links a {
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

@keyframes page-in {
  from {
    opacity: 0.01;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes drift-dots {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 24px 24px;
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.02);
  }
}

@keyframes hero-phone-float-mobile {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes hero-phone-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.5deg) scale(1);
  }
  33% {
    transform: translate3d(6px, -16px, 0) rotate(1deg) scale(1.03);
  }
  66% {
    transform: translate3d(-4px, -8px, 0) rotate(-0.5deg) scale(1.015);
  }
}

@keyframes hero-visual-in {
  from {
    opacity: 0;
    transform: translate3d(24px, 36px, 0) scale(0.88) rotate(4deg);
    filter: blur(10px) drop-shadow(0 24px 40px rgba(0, 40, 80, 0.28));
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(-1.5deg);
    filter: blur(0) drop-shadow(0 28px 50px rgba(0, 40, 80, 0.28));
  }
}

@keyframes hero-visual-in-mobile {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.94);
    filter: none;
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
  }
}

@keyframes hero-mesh-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2%, 1.5%, 0) scale(1.04);
  }
}

@keyframes hero-glow-a {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.5;
  }
  50% {
    transform: translate(4%, 6%);
    opacity: 0.7;
  }
}

@keyframes hero-glow-b {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.45;
  }
  50% {
    transform: translate(-5%, 4%);
    opacity: 0.65;
  }
}

@keyframes hero-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes pulse-soft {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes text-focus {
  from {
    letter-spacing: -0.05em;
    opacity: 0.6;
  }
  to {
    letter-spacing: -0.25px;
    opacity: 1;
  }
}

@keyframes image-in {
  from {
    transform: scale(1.06);
    filter: saturate(0.85);
  }
  to {
    transform: none;
    filter: none;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    overflow-x: clip;
  }

  .cap-grid,
  .svc-grid,
  .ind-grid,
  .work-grid,
  .cta-panel,
  .about-split,
  .mv-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner {
    padding: 40px 0 80px;
    width: min(100% - 1.5rem, var(--container));
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-lead {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 220px;
    order: -1;
    margin-bottom: 0;
    width: 100%;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .hero-visual img,
  .hero-visual .hero-phone {
    width: min(92%, 320px);
    max-width: 100%;
    margin: 0 auto;
    filter: none;
    animation:
      hero-visual-in-mobile 1s 0.15s var(--ease-out) both,
      hero-phone-float-mobile 7s 1.2s ease-in-out infinite;
  }

  .hero-visual-glow {
    display: none;
  }

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

  .project-row {
    grid-template-columns: 1fr;
  }

  .project-row img {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 200px;
    max-height: 240px;
  }

  .project-row .body {
    padding: 28px 24px 32px;
  }

  .project-row .body h2 {
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  .project-blocks {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .site-header,
  .site-header.is-scrolled {
    padding: 12px 0;
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-pill {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    justify-self: end;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px;
    z-index: 120;
    gap: 4px;
  }

  .nav-pill.open {
    display: flex;
    animation: menu-in 0.35s var(--ease-out) both;
  }

  body.liquid-glass .nav-pill {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 2rem));
    justify-self: end;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(186, 220, 240, 0.75);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    backdrop-filter: var(--glass-blur-strong);
    box-shadow:
      0 16px 40px rgba(0, 99, 151, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.liquid-glass .nav-pill.open {
    z-index: 130;
  }

  .nav-pill a {
    text-align: left;
    padding: 12px 14px;
  }

  .nav-pill .mobile-cta {
    display: inline-flex;
    margin-top: 6px;
    justify-content: center;
    text-align: center;
    color: #ffffff !important;
    background: var(--primary);
    border-color: transparent;
  }

  .nav-pill .mobile-cta:hover,
  .nav-pill .mobile-cta:focus,
  .nav-pill .mobile-cta:active {
    color: #ffffff !important;
    background: var(--primary-hover);
    border-color: transparent;
    transform: none;
  }

  body.liquid-glass .nav-pill .mobile-cta,
  body.liquid-glass .nav-pill .mobile-cta:hover,
  body.liquid-glass .nav-pill .mobile-cta:focus,
  body.liquid-glass .nav-pill .mobile-cta:active {
    color: #ffffff !important;
  }

  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body.liquid-glass .site-header.is-hidden {
    transform: none;
  }
}

@media (max-width: 760px) {
  .cap-grid,
  .svc-grid,
  .ind-grid,
  .work-grid,
  .cta-panel,
  .about-split,
  .mv-grid,
  .contact-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 40px 0 56px;
  }

  .hero-visual {
    min-height: 220px;
  }

  .hero-meta {
    gap: 20px 28px;
  }

  .section {
    padding: 56px 0;
  }

  .cta-panel,
  .contact-form-wrap {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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

  .site-header.is-hidden {
    transform: none;
  }

  .liquid-blobs .blob,
  .atm-mesh,
  .atm-orb,
  .atm-path,
  .atm-particles span,
  .hero-phone-float,
  .hero-phone-float-mobile {
    animation: none !important;
  }

  .atm-video,
  .atm-silk-canvas {
    display: none !important;
  }

  .atm-mesh {
    display: block !important;
  }
}

/* =========================================================
   Seamless white atmosphere + liquid glass surfaces
   ========================================================= */

.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.atm-base {
  position: absolute;
  inset: 0;
  background: #ffffff;
}

/* EloByte-style flowing white silk (local WebGL only) */
.atm-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 1;
}

.atm-silk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  image-rendering: auto;
}

.atm-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.28) 85%, #ffffff 100%);
  pointer-events: none;
  z-index: 2;
}

/* Soft fallback mesh when WebGL unavailable / reduced motion */
.atm-mesh {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 50% 40% at 15% 18%, rgba(148, 163, 184, 0.12), transparent 62%),
    radial-gradient(ellipse 45% 35% at 85% 12%, rgba(148, 163, 184, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 72% 78%, rgba(148, 163, 184, 0.1), transparent 65%),
    radial-gradient(ellipse 35% 28% at 22% 82%, rgba(226, 232, 240, 0.55), transparent 60%);
  animation: atm-mesh-drift 26s ease-in-out infinite alternate;
  display: none;
  z-index: 0;
}

.page-atmosphere:not(:has(.atm-silk-canvas)) .atm-mesh,
.atm-video.is-fallback ~ .atm-mesh {
  display: block;
}

.atm-grid,
.atm-orb,
.atm-lines,
.atm-particles {
  display: none;
}

@keyframes atm-mesh-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-1.5%, 1%, 0) scale(1.03); }
}

body.liquid-glass {
  background: #ffffff;
}

body.liquid-glass .liquid-blobs {
  display: none !important;
}

body.liquid-glass .site-header,
body.liquid-glass main,
body.liquid-glass .site-footer {
  position: relative;
  z-index: 1;
}

body.liquid-glass .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.liquid-glass .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: transparent;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  backdrop-filter: var(--glass-blur-strong);
}

body.liquid-glass .site-header.is-scrolled::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}

body.liquid-glass .nav-pill {
  background: rgba(220, 236, 248, 0.44);
  border: 1px solid rgba(186, 220, 240, 0.58);
  box-shadow:
    0 10px 30px rgba(0, 99, 151, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(0, 99, 151, 0.07);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  overflow: hidden;
  isolation: isolate;
}

body.liquid-glass .site-header:not(.is-scrolled) .nav-pill {
  background: rgba(220, 236, 248, 0.38);
}

body.liquid-glass .site-header.is-scrolled .nav-pill {
  background: rgba(214, 232, 246, 0.56);
  border-color: rgba(176, 214, 236, 0.68);
}

body.liquid-glass .capabilities,
body.liquid-glass .section,
body.liquid-glass .industries,
body.liquid-glass .cta-band,
body.liquid-glass .proof,
body.liquid-glass .hero {
  background: transparent !important;
}

body.liquid-glass .capabilities,
body.liquid-glass .industries {
  background: transparent !important;
}

body.liquid-glass .hero::after,
body.liquid-glass .hero::before,
body.liquid-glass .hero-glow {
  display: none !important;
}

body.liquid-glass .site-footer {
  background: rgba(220, 236, 248, 0.48);
  border-top: 1px solid rgba(186, 220, 240, 0.65);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 -8px 28px rgba(0, 99, 151, 0.04);
}

body.liquid-glass .ind-icon,
body.liquid-glass .svc-item .code {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(226, 232, 240, 0.95);
  color: var(--primary);
}

body.liquid-glass .proof-grid {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(226, 232, 240, 0.95);
}

@media (min-width: 981px) {
  body.liquid-glass .nav-pill {
    position: relative;
  }
}

body.liquid-glass .nav-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(186, 220, 240, 0.22) 35%,
    transparent 55%,
    rgba(0, 99, 151, 0.06) 100%
  );
  pointer-events: none;
  z-index: 0;
}

body.liquid-glass .nav-pill a {
  position: relative;
  z-index: 1;
}

body.liquid-glass .nav-pill a:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.liquid-glass .nav-pill a.active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(148, 163, 184, 0.1),
    0 6px 18px rgba(15, 23, 42, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

body.liquid-glass .nav-toggle {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(226, 232, 240, 0.95);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

body.liquid-glass .btn-primary,
body.liquid-glass .btn-accent {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--primary) 82%, white) 0%,
    var(--primary) 48%,
    var(--primary-hover) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 28px rgba(0, 99, 151, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

body.liquid-glass .btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.95);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 18px rgba(15, 23, 42, 0.04);
}

body.liquid-glass .btn-ghost:hover {
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Shared glass material for cards/panels */
body.liquid-glass .cap-card,
body.liquid-glass .svc-item,
body.liquid-glass .ind-item,
body.liquid-glass .work-card,
body.liquid-glass .cta-panel,
body.liquid-glass .mv-card,
body.liquid-glass .project-row,
body.liquid-glass .info-card,
body.liquid-glass .contact-form-wrap,
body.liquid-glass .glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.liquid-glass .cap-card::after,
body.liquid-glass .svc-item::after,
body.liquid-glass .ind-item::after,
body.liquid-glass .cta-panel::after,
body.liquid-glass .glass-panel::after,
body.liquid-glass .work-card::after,
body.liquid-glass .mv-card::after,
body.liquid-glass .project-row::after,
body.liquid-glass .info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-sheen);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.liquid-glass .cap-card > *,
body.liquid-glass .svc-item > *,
body.liquid-glass .ind-item > *,
body.liquid-glass .cta-panel > *,
body.liquid-glass .glass-panel > *,
body.liquid-glass .work-card > * {
  position: relative;
  z-index: 1;
}

body.liquid-glass .cap-card:hover,
body.liquid-glass .svc-item:hover,
body.liquid-glass .ind-item:hover,
body.liquid-glass .work-card:hover,
body.liquid-glass .mv-card:hover {
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 18px 48px rgba(26, 60, 90, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 99, 151, 0.08);
  transform: translateY(-6px);
}

body.liquid-glass .glass-panel {
  padding: clamp(28px, 4vw, 48px);
  border-radius: calc(var(--radius-card) + 8px);
  max-width: none;
  width: 100%;
}

body.liquid-glass .hero-visual {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.liquid-glass .hero {
  background: transparent;
  overflow: visible;
}

body.liquid-glass .hero::before,
body.liquid-glass .hero-glow,
body.liquid-glass .hero::after {
  display: none !important;
}

body.liquid-glass .hero-inner {
  padding-top: 56px;
  background: transparent;
}

body.liquid-glass .hero-meta {
  border-top-color: rgba(226, 232, 240, 0.85);
}

body.liquid-glass .hero-visual img,
body.liquid-glass .hero-visual .hero-phone {
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.12));
  background: transparent;
}

@media (max-width: 960px) {
  body.liquid-glass .hero-visual-glow {
    display: none;
  }

  body.liquid-glass .hero-visual img,
  body.liquid-glass .hero-visual .hero-phone {
    filter: none;
  }
}

body.liquid-glass .capabilities,
body.liquid-glass .section,
body.liquid-glass .industries,
body.liquid-glass .cta-band,
body.liquid-glass .proof {
  background: transparent !important;
}

body.liquid-glass .proof-grid {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: calc(var(--radius-card) + 8px);
  padding: 44px 40px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  backdrop-filter: var(--glass-blur-strong);
  position: relative;
  overflow: hidden;
  align-items: center;
}

body.liquid-glass .proof-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass-sheen);
  pointer-events: none;
}

body.liquid-glass .proof-grid > * {
  position: relative;
  z-index: 1;
}

body.liquid-glass .svc-item .code,
body.liquid-glass .ind-icon,
body.liquid-glass .socials a {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 16px rgba(0, 99, 151, 0.06);
}

body.liquid-glass .socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white) !important;
  box-shadow: 0 8px 22px rgba(0, 99, 151, 0.28);
}

body.liquid-glass .ind-item:hover .ind-icon {
  background: rgba(255, 255, 255, 0.72);
}

body.liquid-glass .work-card img {
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

body.liquid-glass .work-slider-track .work-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.liquid-glass .work-slider-track .work-card::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 38%,
    transparent 62%
  );
  opacity: 0.85;
}

body.liquid-glass .work-slider-track .work-card img {
  border-bottom: none;
}

body.liquid-glass .work-slider-track .work-card:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

body.liquid-glass .tech-logo {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

body.liquid-glass .tech-slider-wrap::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0));
}

body.liquid-glass .tech-slider-wrap::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0));
}

body.liquid-glass .form-grid input,
body.liquid-glass .form-grid textarea {
  background: #ffffff;
  border: 1px solid #c5ccd6;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

body.liquid-glass .form-grid input:hover,
body.liquid-glass .form-grid textarea:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, #c5ccd6);
  background: #ffffff;
}

body.liquid-glass .form-grid input:focus,
body.liquid-glass .form-grid textarea:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

body.liquid-glass .site-footer {
  background: rgba(220, 236, 248, 0.42);
  border-top: 1px solid rgba(186, 220, 240, 0.62);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  backdrop-filter: var(--glass-blur-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 -8px 28px rgba(0, 99, 151, 0.05);
}

body.liquid-glass .btn-ghost {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 24px rgba(26, 60, 90, 0.08);
}

body.liquid-glass .page-hero .container,
body.liquid-glass .legal {
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  backdrop-filter: var(--glass-blur-strong);
}

body.liquid-glass .scroll-progress {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7),
    var(--primary),
    color-mix(in srgb, var(--primary) 50%, #9ec9e4)
  );
  height: 2.5px;
  box-shadow: 0 0 12px rgba(0, 99, 151, 0.35);
}

/* Specular light follow */
body.liquid-glass .cap-card::before,
body.liquid-glass .glass-panel::before {
  content: "";
  position: absolute;
  width: 180%;
  height: 180%;
  top: -40%;
  left: -40%;
  background: radial-gradient(
    circle at var(--spot-x, 50%) var(--spot-y, 40%),
    rgba(255, 255, 255, 0.5),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

body.liquid-glass .cap-card:hover::before,
body.liquid-glass .glass-panel:hover::before {
  opacity: 1;
}

@keyframes liquid-drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8%, 12%) scale(1.12);
  }
}

@keyframes liquid-drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10%, 8%) scale(1.08);
  }
}

@keyframes liquid-drift-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6%, -10%) scale(1.15);
  }
}

body.liquid-glass .page-hero {
  background: transparent;
}

body.liquid-glass .page-hero .container {
  background: rgba(220, 236, 248, 0.48);
  border: 1px solid rgba(186, 220, 240, 0.65);
  border-radius: calc(var(--radius-card) + 4px);
  padding: 40px 36px;
  box-shadow:
    0 12px 40px rgba(0, 99, 151, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 99, 151, 0.06);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}

body.liquid-glass .page-hero .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(186, 220, 240, 0.22) 40%,
    transparent 55%,
    rgba(0, 99, 151, 0.06) 100%
  );
  pointer-events: none;
}

body.liquid-glass .page-hero .container > * {
  position: relative;
  z-index: 1;
}

body.liquid-glass .legal-content,
body.liquid-glass .prose-card,
body.liquid-glass .legal {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  padding: 36px 32px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.liquid-glass .nav-pill,
  body.liquid-glass .cap-card,
  body.liquid-glass .svc-item,
  body.liquid-glass .ind-item,
  body.liquid-glass .work-card,
  body.liquid-glass .cta-panel,
  body.liquid-glass .glass-panel,
  body.liquid-glass .proof-grid,
  body.liquid-glass .page-hero .container,
  body.liquid-glass .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.88);
  }
}

/* Mobile dropdown — match clean contact/about menu on every page including home */
@media (max-width: 980px) {
  body.liquid-glass .nav-pill,
  body.liquid-glass .site-header:not(.is-scrolled) .nav-pill,
  body.liquid-glass .site-header.is-scrolled .nav-pill {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 2rem));
    justify-self: end;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
      0 18px 44px rgba(15, 23, 42, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
  }

  body.liquid-glass .nav-pill::before {
    display: none;
  }

  body.liquid-glass .nav-pill a {
    color: var(--text);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.liquid-glass .nav-pill a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.55);
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  body.liquid-glass .nav-pill a.active {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 4px 14px rgba(15, 23, 42, 0.05);
  }

  body.liquid-glass .nav-pill .mobile-cta,
  body.liquid-glass .nav-pill .mobile-cta:hover,
  body.liquid-glass .nav-pill .mobile-cta:focus,
  body.liquid-glass .nav-pill .mobile-cta:active {
    color: #ffffff !important;
    background: var(--primary) !important;
    border: 1px solid transparent !important;
    box-shadow:
      0 8px 22px rgba(0, 99, 151, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.liquid-glass .nav-pill .mobile-cta:hover,
  body.liquid-glass .nav-pill .mobile-cta:focus,
  body.liquid-glass .nav-pill .mobile-cta:active {
    background: var(--primary-hover) !important;
  }
}
