/* PayTracc — Merit Legal layout with original brand colors */
:root {
  --bg: #070f1f;
  --bg-soft: #0c1628;
  --card: #111827;
  --ink: #eef2fa;
  --ink-muted: #94a3b8;
  --gold: #4d7cfe;
  --gold-deep: #2563ff;
  --gold-soft: #7aa2ff;
  --gold-wash: rgba(37, 99, 255, 0.16);
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(77, 124, 254, 0.4);
  --footer-bg: #050b16;
  --footer-text: #94a3b8;
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --max-width: 1120px;
  --radius: 4px;
  --section-gap: 5.5rem;

  /* Aliases for shared inner pages */
  --text-primary: var(--ink);
  --text-muted: var(--ink-muted);
  --card-bg: var(--card);
  --elevated-card: #172033;
  --border-subtle: var(--border);
  --action-blue: #2563ff;
  --accent-tint: #4d7cfe;
  --app-bg: var(--bg);
  --hero-primary: #091a36;
  --hero-secondary: #0f2b5c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* Animated premium section dividers */
.gold-divider {
  position: relative;
  display: block;
  border: 0;
  width: min(100% - 2.5rem, var(--max-width));
  height: 1px;
  margin: 0 auto;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.gold-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(122, 162, 255, 0.2) 18%,
    rgba(77, 124, 254, 0.55) 50%,
    rgba(122, 162, 255, 0.2) 82%,
    transparent 100%
  );
}

.gold-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 28%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(125, 168, 255, 0.45) 70%,
    transparent 100%
  );
  filter: blur(0.4px);
  animation: divider-shimmer 4.5s ease-in-out infinite;
}

.gold-divider:nth-of-type(2n)::after {
  animation-delay: -1.5s;
}

.gold-divider:nth-of-type(3n)::after {
  animation-delay: -3s;
}

@keyframes divider-shimmer {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(420%);
    opacity: 0;
  }
}

/* Header — floating tools + off-canvas nav */
.site-header {
  position: relative;
  z-index: 100;
  background: transparent;
}

.site-header--hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 200;
  min-height: 0;
  height: 0;
  overflow: visible;
}

.hero .hero-brand-anchor {
  position: absolute;
  top: 3.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.hero .hero-brand-anchor-inner {
  position: relative;
  width: 14ch;
  max-width: min(14ch, calc(100% - 3rem));
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  pointer-events: none;
}

.hero .hero-brand {
  position: absolute;
  top: 0;
  right: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  color: #fff;
  margin: 0;
  text-decoration: none;
  pointer-events: auto;
  animation: brandSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .hero-brand:hover {
  color: #fff;
  opacity: 0.9;
}

.hero .hero-brand img {
  width: 64px;
  height: 64px;
  align-self: flex-start;
}

.hero .hero-brand-name {
  align-self: flex-end;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  text-align: right;
  margin-right: -0.16em;
}

.hero .hero-eyebrow {
  align-self: flex-start;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.site-header--hero .site-nav {
  position: absolute;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 120;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.55);
  border: 1px solid rgba(125, 168, 255, 0.22);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: headerFadeDown 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header--hero .site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header--hero .site-nav li {
  animation: navItemIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.12s + (var(--i, 0) * 0.06s));
}

.site-nav a {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(180, 205, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(77, 124, 254, 0.14);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.site-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.site-nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-nav a[aria-current="true"]::after,
.site-nav a.is-active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"],
.site-nav a.is-active {
  color: #fff;
}

.site-nav a[aria-current="page"]::before,
.site-nav a[aria-current="true"]::before,
.site-nav a.is-active::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(77, 124, 254, 0.22);
}

.header-tools {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: auto;
  animation: toolsFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.28s;
  z-index: 110;
}

.site-header--hero .header-tools {
  position: absolute;
  top: 1.35rem;
  right: 1.5rem;
  z-index: 130;
}

.header-tool {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(77, 124, 254, 0.35);
  background: rgba(7, 15, 31, 0.4);
  color: var(--gold);
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
  padding: 0;
  font: inherit;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-tool::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 25%, rgba(125, 168, 255, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.header-tool:hover {
  background: rgba(37, 99, 255, 0.35);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 10px 22px rgba(37, 99, 255, 0.28);
}

.header-tool:hover::before {
  opacity: 1;
}

.header-tool:active {
  transform: translateY(0) scale(0.96);
}

.header-tool svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-tool--scroll svg {
  animation: chevronPulse 2.2s ease-in-out infinite;
}

.header-tool:hover svg {
  transform: scale(1.08);
}

.header-tool--scroll:hover svg {
  animation: none;
  transform: translateY(2px);
}

/* Site search overlay */
.site-search {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1.25rem 2rem;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-search.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-search-panel {
  width: min(100%, 36rem);
  border-radius: 22px;
  border: 1px solid rgba(125, 168, 255, 0.28);
  background: linear-gradient(165deg, rgba(23, 37, 84, 0.92), rgba(10, 18, 36, 0.96));
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-search.is-open .site-search-panel {
  transform: translateY(0) scale(1);
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(125, 168, 255, 0.16);
}

.site-search-form svg {
  flex-shrink: 0;
  color: var(--gold-soft);
}

.site-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 400;
}

.site-search-input::placeholder {
  color: rgba(180, 205, 255, 0.45);
}

.site-search-kbd {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(125, 168, 255, 0.22);
  background: rgba(7, 15, 31, 0.55);
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.site-search-results {
  list-style: none;
  margin: 0;
  padding: 0.55rem;
  max-height: min(50vh, 22rem);
  overflow: auto;
}

.site-search-empty {
  margin: 0;
  padding: 1.35rem 1rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.site-search-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.site-search-item:hover,
.site-search-item.is-active {
  background: rgba(77, 124, 254, 0.16);
}

.site-search-item-label {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.site-search-item-meta {
  display: block;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.4;
}

.site-search-item-type {
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--gold-soft);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
}

.nav-toggle-bars {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 16px;
  height: 14px;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  transform-origin: center;
}

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

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

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

/* Compact header for inner pages */
.site-header--compact {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: 4.25rem;
  padding: 1rem 0;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(7, 15, 31, 0.92) 0%, rgba(7, 15, 31, 0.72) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(125, 168, 255, 0.1);
}

.site-header--compact .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
}

.site-header--compact .site-nav {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.45);
  border: 1px solid rgba(125, 168, 255, 0.22);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: headerFadeDown 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header--compact .header-tools {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  animation: none;
  z-index: 2;
}

.site-header--compact .site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header--compact .site-nav li {
  animation: navItemIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.12s + (var(--i, 0) * 0.06s));
}

.site-header--compact .site-nav a {
  color: rgba(180, 205, 255, 0.78);
}

.site-header--compact .site-nav a:hover,
.site-header--compact .site-nav a[aria-current="page"],
.site-header--compact .site-nav a[aria-current="true"],
.site-header--compact .site-nav a.is-active {
  color: #fff;
}

.site-header--compact .nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(77, 124, 254, 0.35);
  background: rgba(7, 15, 31, 0.4);
  color: var(--gold);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Legacy brand helpers used in footers */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 40px;
  height: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 45%, var(--gold-deep));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--border-gold);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-block {
  width: 100%;
}

/* Hero — big typography composition */
.hero {
  position: relative;
  padding: 7.5rem 0 4.5rem;
  text-align: center;
  overflow: visible;
  background: linear-gradient(180deg, var(--hero-primary) 0%, var(--bg) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
  width: 100%;
  padding-top: 0;
}

.hero-focus {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding-top: 0;
  text-align: center;
}

.hero-title {
  margin: 0 auto;
  max-width: 14ch;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
}

.hero-lead {
  margin: 0 auto 2.75rem;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.75;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 58rem;
  margin: 0 auto;
  width: 100%;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.hero-stat-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(23, 37, 84, 0.55), rgba(17, 24, 39, 0.72));
  border: 1px solid rgba(125, 168, 255, 0.22);
  border-radius: 150px 0 150px 0;
  padding: 2.75rem 1.75rem 2.5rem;
  min-height: 10.5rem;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  z-index: 0;
}

/* White line that travels around the card, following border-radius */
.hero-stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 320deg,
    rgba(255, 255, 255, 0.2) 340deg,
    #fff 352deg,
    rgba(255, 255, 255, 0.2) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: hero-border-spin 3.5s linear infinite;
}

.hero-stat-card:nth-child(2)::after {
  animation-delay: -1.15s;
}

.hero-stat-card:nth-child(3)::after {
  animation-delay: -2.3s;
}

.hero-stat-card:hover {
  border-color: rgba(125, 168, 255, 0.45);
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(77, 124, 254, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-stat-card .stat-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.75rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes hero-border-spin {
  to {
    --border-angle: 360deg;
  }
}

@keyframes card-border-top {
  0% {
    transform: translateX(-100%);
  }
  25%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes card-border-right {
  0%,
  25% {
    transform: translateY(-100%);
  }
  50%,
  100% {
    transform: translateY(100%);
  }
}

@keyframes card-border-bottom {
  0%,
  50% {
    transform: translateX(100%);
  }
  75%,
  100% {
    transform: translateX(-100%);
  }
}

@keyframes card-border-left {
  0%,
  75% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

.anim-rise {
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes headerFadeDown {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chevronPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@keyframes brandSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toolsFadeIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mobileNavIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: var(--section-gap) 0;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-header p {
  color: var(--ink-muted);
  margin: 0;
  font-weight: 300;
}

.section-header--left {
  text-align: left;
  margin: 0 0 2rem;
  max-width: 36rem;
}

/* About PayTracc section */
.section-about-panel {
  position: relative;
}

.who-header {
  margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
  max-width: 40rem;
}

.who-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.who-lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 34rem;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) 1.2fr;
  gap: clamp(2.25rem, 5vw, 4.25rem);
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 1.5rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  width: 100%;
  max-width: 18.5rem;
  margin-inline: auto;
}

.about-portrait-inner {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.15rem 1.35rem;
  border-radius: 28px 10px 28px 10px;
  background:
    linear-gradient(165deg, rgba(30, 48, 92, 0.55), rgba(17, 24, 39, 0.92) 55%);
  border: 1px solid rgba(125, 168, 255, 0.28);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.about-portrait-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(125, 168, 255, 0.55),
    transparent 35%,
    transparent 65%,
    rgba(77, 124, 254, 0.35)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.about-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.45);
  border: 1px solid rgba(125, 168, 255, 0.18);
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.about-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
  flex-shrink: 0;
  animation: status-pulse 2.8s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--gold-wash);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(77, 124, 254, 0.12);
  }
}

.about-portrait-frame {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(125, 168, 255, 0.35);
  border-radius: 1.75rem;
  overflow: hidden;
  background: #070f1f;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  max-height: 22rem;
}

.about-portrait-frame img {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: center top;
}

.about-portrait-meta {
  position: relative;
  z-index: 1;
  margin-top: 1.2rem;
  text-align: center;
}

.about-portrait-logo {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.55rem;
  object-fit: contain;
}

.about-portrait-meta h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.about-portrait-meta p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
}

.about-portrait-meta a {
  color: var(--gold-soft);
}

.about-portrait-meta a:hover {
  color: #fff;
}

.about-portrait-social {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.05rem;
}

.about-portrait-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(125, 168, 255, 0.35);
  border-radius: 50%;
  color: var(--gold-soft);
  background: rgba(7, 15, 31, 0.35);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.about-portrait-social a:hover {
  background: var(--gold-wash);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.about-panel-copy {
  display: grid;
  gap: 2.5rem;
  min-width: 0;
}

.about-block-label {
  margin: 0 0 0.9rem;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.who-header .about-block-label {
  margin-bottom: 0.7rem;
}

.about-firm-title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.about-firm p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 38rem;
}

.about-firm p:last-child {
  margin-bottom: 0;
}

#top,
#trusted,
#features,
#why,
#showcase,
#faq,
#workflow,
#contact {
  scroll-margin-top: 5.5rem;
}

.about-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.about-value-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(125, 168, 255, 0.14);
  border-radius: 12px;
  padding: 1.2rem 1.15rem 1.25rem 1.3rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-value-card:hover {
  border-color: rgba(125, 168, 255, 0.32);
  transform: translateY(-2px);
}

.about-value-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
}

.about-value-card h3 {
  margin: 0 0 0.55rem;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
}

.about-value-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.55;
}

.about-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-check-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.85rem;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
}

.about-check-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.about-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.about-pay-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.about-pay-lead {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.55;
}

.about-pay-grid {
  display: grid;
  gap: 0.85rem;
}

.about-pay-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(12.5rem, 14rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(125, 168, 255, 0.18);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-pay-card:hover {
  border-color: rgba(125, 168, 255, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.about-pay-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
}

.about-pay-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(125, 168, 255, 0.2);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(77, 124, 254, 0.12), transparent 70%),
    #070f1f;
  height: 17.5rem;
  max-height: 17.5rem;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.55rem 0.55rem 0;
}

.about-pay-media img {
  position: static;
  display: block;
  width: min(100%, 9.75rem);
  max-width: 9.75rem;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  transform: none;
  flex-shrink: 0;
  background: none;
  background-repeat: no-repeat;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.about-pay-media--timesheet img,
.about-pay-media--payslip img {
  width: min(100%, 9.75rem);
  max-width: 9.75rem;
  top: auto;
}

.about-pay-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.25rem 0.4rem 0.25rem 0;
}

.about-pay-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.about-pay-card .about-pay-body > p {
  margin: 0 0 0.7rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
}

.about-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.about-pay-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
}

.about-pay-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.28rem;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .about-pay-card {
    grid-template-columns: 1fr;
  }

  .about-pay-media {
    height: 16rem;
    max-height: 16rem;
    margin-inline: auto;
    width: min(100%, 12rem);
  }

  .about-pay-media--timesheet img,
  .about-pay-media--payslip img {
    width: min(100%, 9.25rem);
    max-width: 9.25rem;
  }
}

.about-track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.about-track-card {
  position: relative;
  overflow: hidden;
  z-index: 0;
  text-align: left;
  padding: 1.2rem 1rem 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.about-track-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  z-index: 1;
}

.about-track-card .card-border {
  position: absolute;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.about-track-card .card-border:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  animation: card-border-top 4s linear infinite;
}

.about-track-card .card-border:nth-child(2) {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: card-border-right 4s linear infinite;
}

.about-track-card .card-border:nth-child(3) {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #fff);
  animation: card-border-bottom 4s linear infinite;
}

.about-track-card .card-border:nth-child(4) {
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(0deg, transparent, #fff);
  animation: card-border-left 4s linear infinite;
}

.about-track-card:nth-child(2) .card-border {
  animation-delay: 0.35s;
}

.about-track-card:nth-child(3) .card-border {
  animation-delay: 0.7s;
}

.about-track-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.about-track-card .stat-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.45rem;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Merit-style journey timeline */
.about-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.35rem;
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(77, 124, 254, 0.15));
}

.about-timeline li {
  position: relative;
}

.about-timeline-marker {
  position: absolute;
  left: -1.35rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.05rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-wash);
}

.about-timeline-body {
  min-width: 0;
}

.about-timeline-body h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.about-timeline-date {
  margin: 0 0 0.45rem !important;
  color: var(--gold-soft) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-timeline-body p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.55;
}

.gold-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.gold-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  font-size: 0.9375rem;
}

.gold-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* Practice / features 3x3 (legacy / other pages) */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.practice-card {
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.practice-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--card-shadow);
}

.practice-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.practice-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.practice-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.15rem 1.25rem 0.5rem;
}

.practice-card p {
  margin: 0 1.25rem 1.35rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 300;
}

/* Expertise grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.expertise-card {
  text-align: center;
}

.expertise-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card);
  margin-bottom: 1.75rem;
  border: 1px solid var(--border);
}

.expertise-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.expertise-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 99, 255, 0.4);
}

.expertise-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.expertise-card p {
  margin: 0 auto;
  max-width: 18rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 300;
}

/* Quote */
.section-quote {
  text-align: center;
  padding: 4.5rem 0;
}

.quote-block {
  max-width: 40rem;
}

.quote-block blockquote {
  margin: 0 0 1.25rem;
}

.quote-block blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

.quote-block cite {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}

.quote-mark {
  margin: 0 auto;
  width: 40px;
  height: 40px;
  opacity: 0.85;
}

/* Showcase — compact 2×2 card grid */
.section-showcase {
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(125, 168, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover {
  border-color: rgba(125, 168, 255, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.showcase-card-media {
  background: #070f1f;
  border-bottom: 1px solid rgba(125, 168, 255, 0.14);
}

.showcase-card-media--phone {
  height: 18.5rem;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.85rem 0.85rem 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(77, 124, 254, 0.12), transparent 70%),
    #070f1f;
}

.showcase-card-media--phone img {
  display: block;
  width: min(100%, 10.25rem);
  max-width: 10.25rem;
  height: auto;
  max-height: none;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  object-position: center top;
  background: none;
  background-repeat: no-repeat;
}

.showcase-card-media--web {
  height: 18.5rem;
  padding: 0.75rem;
  display: flex;
  align-items: stretch;
  background: #070f1f;
}

.showcase-card-media--web .showcase-browser {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(125, 168, 255, 0.28);
  background: rgba(17, 24, 39, 0.92);
  box-shadow: none;
}

.showcase-browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  background: rgba(7, 15, 31, 0.85);
  border-bottom: 1px solid rgba(125, 168, 255, 0.16);
}

.showcase-browser-chrome > span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(125, 168, 255, 0.35);
}

.showcase-browser-chrome > span:nth-child(1) { background: #ff5f57; }
.showcase-browser-chrome > span:nth-child(2) { background: #febc2e; }
.showcase-browser-chrome > span:nth-child(3) { background: #28c840; }

.showcase-browser-url {
  margin-left: 0.4rem;
  flex: 1;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(125, 168, 255, 0.12);
  color: var(--ink-muted);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-browser-body {
  flex: 1;
  padding: 0.55rem;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(77, 124, 254, 0.16), transparent 55%),
    linear-gradient(180deg, #0a1428, #070f1f 70%);
}

.showcase-site-mini {
  height: 100%;
  border-radius: 8px;
  border: 1px solid rgba(125, 168, 255, 0.16);
  overflow: hidden;
  background: rgba(7, 15, 31, 0.65);
  display: flex;
  flex-direction: column;
}

.showcase-site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(125, 168, 255, 0.12);
}

.showcase-site-nav img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.showcase-site-nav strong {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
}

.showcase-site-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem 0.65rem;
  text-align: center;
}

.showcase-site-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.showcase-site-hero h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

.showcase-site-hero > p {
  margin: 0 auto 0.55rem;
  max-width: 28ch;
  font-size: 0.62rem;
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink-muted);
}

.showcase-site-cta {
  display: flex;
  justify-content: center;
}

.showcase-site-btn {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 500;
}

.showcase-site-strip {
  display: none;
}

.showcase-card-body {
  padding: 0.95rem 1rem 1.1rem;
  text-align: center;
}

.showcase-card-label {
  margin: 0 0 0.3rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.showcase-card-body h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.showcase-card-body > p:last-child {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Team / showcase cards (legacy) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.team-card {
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--card-shadow);
}

.team-media {
  aspect-ratio: 9 / 14;
  max-height: 16rem;
  overflow: hidden;
  background: #070f1f;
}

.team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-meta {
  padding: 1.25rem 1.35rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-gold);
}

.team-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.team-meta a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

.team-meta a:hover {
  color: var(--ink);
}

/* Accreditation badge */
.section-badge {
  text-align: center;
  padding: 4rem 0;
}

.badge-inner {
  max-width: 36rem;
}

.crest {
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.badge-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 1rem;
}

.badge-inner p {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 300;
}

/* Stats duo — matches hero stat cards + traveling border */
.stats-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 42rem;
  margin-inline: auto;
}

.stat-box {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(125, 168, 255, 0.22);
  border-radius: 150px 0 150px 0;
  background: linear-gradient(160deg, rgba(23, 37, 84, 0.55), rgba(17, 24, 39, 0.72));
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  overflow: hidden;
  z-index: 0;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 320deg,
    rgba(255, 255, 255, 0.2) 340deg,
    #fff 352deg,
    rgba(255, 255, 255, 0.2) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: hero-border-spin 3.5s linear infinite;
}

.stat-box:nth-child(2)::after {
  animation-delay: -1.75s;
}

.stat-box:hover {
  border-color: rgba(125, 168, 255, 0.45);
  transform: translateY(-4px);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(77, 124, 254, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-box-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: var(--gold);
  margin-bottom: 1rem;
}

.stat-box .stat-value {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-box .stat-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.5rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* FAQ — Merit accordion style */
.section-faq .faq-list {
  max-width: 44rem;
  margin-inline: auto;
  gap: 0;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-gold);
  border-radius: 0;
  overflow: hidden;
}

.section-faq .faq-item {
  border-bottom: 1px solid rgba(197, 160, 89, 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-question:hover {
  background: transparent;
  color: var(--gold-deep);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 1px;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 9px;
  left: 4px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 4px;
  left: 9px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-item.is-open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  display: none;
  padding: 0 0.25rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 300;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Support page FAQ cards keep light border treatment */
.support-layout .faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding-inline: 1rem;
  margin-bottom: 0.5rem;
}

/* Process grid — glass cards + traveling border */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: process-step;
}

.process-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(125, 168, 255, 0.22);
  border-radius: 72px 0 72px 0;
  background: linear-gradient(160deg, rgba(23, 37, 84, 0.55), rgba(17, 24, 39, 0.72));
  padding: 1.85rem 1.4rem 1.7rem;
  text-align: center;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  overflow: hidden;
  z-index: 0;
  min-width: 0;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.process-card::before {
  counter-increment: process-step;
  content: counter(process-step, decimal-leading-zero);
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto 0.85rem;
  width: fit-content;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

.process-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 320deg,
    rgba(255, 255, 255, 0.2) 340deg,
    #fff 352deg,
    rgba(255, 255, 255, 0.2) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: hero-border-spin 4s linear infinite;
}

.process-card:nth-child(1)::after { animation-delay: 0s; }
.process-card:nth-child(2)::after { animation-delay: -0.65s; }
.process-card:nth-child(3)::after { animation-delay: -1.3s; }
.process-card:nth-child(4)::after { animation-delay: -1.95s; }
.process-card:nth-child(5)::after { animation-delay: -2.6s; }
.process-card:nth-child(6)::after { animation-delay: -3.25s; }

.process-card:hover {
  border-color: rgba(125, 168, 255, 0.45);
  transform: translateY(-4px);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(77, 124, 254, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.process-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: var(--gold-soft);
  background:
    radial-gradient(circle at 30% 25%, rgba(125, 168, 255, 0.22), transparent 55%),
    rgba(77, 124, 254, 0.14);
  border: 1px solid rgba(125, 168, 255, 0.28);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.process-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.process-card:hover .process-icon {
  color: #fff;
  border-color: rgba(125, 168, 255, 0.45);
  background:
    radial-gradient(circle at 30% 25%, rgba(125, 168, 255, 0.3), transparent 55%),
    rgba(77, 124, 254, 0.22);
  transform: translateY(-2px);
}

.process-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.process-card p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 28ch;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
}

/* Newsletter */
.section-newsletter {
  text-align: center;
  padding: 4.5rem 0;
}

.newsletter-inner {
  max-width: 36rem;
}

.newsletter-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.newsletter-inner p {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  font-weight: 300;
}

.newsletter-form {
  display: flex;
  max-width: 28rem;
  margin: 0 auto;
  border: 1px solid var(--border-gold);
  background: var(--card);
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 0.95rem 1.15rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--ink-muted);
}

.newsletter-form .btn {
  border-radius: 0;
}

/* Contact */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(125, 168, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(23, 37, 84, 0.35), rgba(17, 24, 39, 0.45));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.contact-item:hover {
  border-color: rgba(125, 168, 255, 0.32);
  transform: translateY(-2px);
  background: linear-gradient(160deg, rgba(23, 37, 84, 0.48), rgba(17, 24, 39, 0.55));
}

.contact-icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(125, 168, 255, 0.28);
  border-radius: 12px;
  background: rgba(77, 124, 254, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: #fff;
}

.contact-item p {
  margin: 0;
  font-size: 0.9rem;
}

.contact-item a {
  color: var(--gold-soft);
  font-weight: 500;
}

.contact-item a:hover {
  color: #fff;
}

.contact-item .muted {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-weight: 300;
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-form {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.05rem;
  border: 1px solid rgba(125, 168, 255, 0.22);
  border-radius: 28px;
  padding: 1.85rem 1.75rem 1.75rem;
  background: linear-gradient(160deg, rgba(23, 37, 84, 0.55), rgba(17, 24, 39, 0.72));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  overflow: hidden;
  z-index: 0;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(77, 124, 254, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(77, 124, 254, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.contact-form > * {
  position: relative;
  z-index: 1;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form label span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(125, 168, 255, 0.18);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: rgba(7, 15, 31, 0.55);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(196, 210, 240, 0.35);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(125, 168, 255, 0.3);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(125, 168, 255, 0.55);
  background: rgba(7, 15, 31, 0.72);
  box-shadow:
    0 0 0 3px rgba(77, 124, 254, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-form .btn {
  margin-top: 0.25rem;
  border-radius: 999px;
}

/* Page hero (inner pages) — matches home atmosphere */
.page-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.75rem, 5vw, 3.75rem);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 50% -10%, rgba(77, 124, 254, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 50% at 12% 40%, rgba(37, 99, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 35% 45% at 90% 60%, rgba(77, 124, 254, 0.08), transparent 65%),
    linear-gradient(180deg, var(--hero-primary, #0a1428) 0%, var(--bg) 100%);
  border-bottom: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.page-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto 1.5rem;
  text-decoration: none;
  color: #fff;
}

.page-hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.page-hero-brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.page-hero-eyebrow {
  margin: 0;
  color: rgba(180, 205, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-hero-label {
  display: inline-flex;
  margin: 0 0 0.95rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 255, 0.28);
  background: rgba(7, 15, 31, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-family: var(--font-sans);
  margin: 0 0 0.85rem;
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
}

.page-hero p:not(.page-hero-label):not(.page-hero-eyebrow) {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--ink-muted);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

.page-hero + .gold-divider {
  margin-top: 0;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  padding: 1.5rem 0 4.5rem;
}

.about-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 0;
  min-width: 0;
  background: linear-gradient(160deg, rgba(23, 37, 84, 0.55), rgba(17, 24, 39, 0.72));
  border: 1px solid rgba(125, 168, 255, 0.22);
  border-radius: 28px;
  padding: 1.85rem 1.65rem 1.9rem;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 320deg,
    rgba(255, 255, 255, 0.2) 340deg,
    #fff 352deg,
    rgba(255, 255, 255, 0.2) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: hero-border-spin 4.5s linear infinite;
}

.about-card:nth-child(1)::after { animation-delay: 0s; }
.about-card:nth-child(2)::after { animation-delay: -0.75s; }
.about-card:nth-child(3)::after { animation-delay: -1.5s; }
.about-card:nth-child(4)::after { animation-delay: -2.25s; }
.about-card:nth-child(5)::after { animation-delay: -3s; }
.about-card:nth-child(6)::after { animation-delay: -3.75s; }

.about-card:hover {
  border-color: rgba(125, 168, 255, 0.45);
  transform: translateY(-4px);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(77, 124, 254, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.about-card > * {
  position: relative;
  z-index: 1;
}

.about-card .card-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(125, 168, 255, 0.22), transparent 55%),
    rgba(77, 124, 254, 0.14);
  border: 1px solid rgba(125, 168, 255, 0.28);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.about-card .card-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.about-card h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.about-card p,
.about-card li {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
}

.about-card p {
  margin: 0;
}

.about-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.about-card li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0;
}

.about-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(77, 124, 254, 0.15);
}

.about-card li strong {
  color: #fff;
  font-weight: 500;
}

/* Support page */
.support-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  padding: 2.75rem 0 4.5rem;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.support-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 0;
  min-width: 0;
  background: linear-gradient(160deg, rgba(23, 37, 84, 0.55), rgba(17, 24, 39, 0.72));
  border: 1px solid rgba(125, 168, 255, 0.22);
  border-radius: 72px 0 72px 0;
  padding: 1.85rem 1.4rem 1.7rem;
  text-align: center;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.support-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 320deg,
    rgba(255, 255, 255, 0.2) 340deg,
    #fff 352deg,
    rgba(255, 255, 255, 0.2) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: hero-border-spin 4s linear infinite;
}

.support-card:nth-child(1)::after { animation-delay: 0s; }
.support-card:nth-child(2)::after { animation-delay: -1.3s; }
.support-card:nth-child(3)::after { animation-delay: -2.6s; }

.support-card:hover {
  border-color: rgba(125, 168, 255, 0.45);
  transform: translateY(-4px);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(77, 124, 254, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.support-card > * {
  position: relative;
  z-index: 1;
}

.support-card h3 {
  font-family: var(--font-serif);
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.support-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
}

.support-card a {
  color: var(--gold-soft);
}

.support-card a:hover {
  color: #fff;
}

/* Legal pages */
.legal-shell {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 0;
  margin: 2.5rem 0 4.5rem;
  border: 1px solid rgba(125, 168, 255, 0.2);
  border-radius: 22px;
  overflow: visible;
  background: linear-gradient(165deg, rgba(23, 37, 84, 0.48), rgba(17, 24, 39, 0.72));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.legal-layout {
  display: contents;
}

.legal-nav {
  position: sticky;
  top: 5.75rem;
  align-self: start;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  background: rgba(7, 15, 31, 0.55);
  border-right: 1px solid rgba(125, 168, 255, 0.14);
  border-radius: 22px 0 0 22px;
  padding: 1.35rem 1.1rem;
}

.legal-nav h2 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  margin: 0 0 0.85rem;
  font-weight: 500;
}

.legal-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.legal-nav a {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.legal-nav a:hover,
.legal-nav a.is-active,
.legal-nav a[aria-current="true"] {
  color: #fff;
  background: rgba(77, 124, 254, 0.16);
  transform: translateX(3px);
}

.legal-content {
  min-width: 0;
  padding: 1.75rem 1.75rem 2rem;
}

.legal-content .updated {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
}

.legal-section {
  background: rgba(7, 15, 31, 0.35);
  border: 1px solid rgba(125, 168, 255, 0.14);
  border-radius: 12px;
  padding: 1.45rem 1.35rem;
  margin-bottom: 1rem;
  scroll-margin-top: 6.5rem;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.legal-section:hover {
  border-color: rgba(125, 168, 255, 0.28);
}

.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
  color: var(--ink);
}

.legal-section h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.15rem 0 0.45rem;
  color: var(--ink);
}

.legal-section p,
.legal-section li {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.55;
}

.legal-section ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.legal-section p {
  margin: 0 0 0.75rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-intro {
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  position: relative;
  width: 100%;
  margin-top: auto;
  padding: 3.25rem 0 1.75rem;
  border-top: 1px solid rgba(125, 168, 255, 0.16);
  background:
    radial-gradient(ellipse 50% 80% at 10% 0%, rgba(77, 124, 254, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 60% at 90% 100%, rgba(77, 124, 254, 0.07), transparent 50%),
    linear-gradient(180deg, rgba(10, 18, 36, 0.98), #050b16);
  color: var(--footer-text);
}

.footer-panel {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-footer .brand,
.footer-brand-link {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-brand-link img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.site-footer .brand-text {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  padding-bottom: 2rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(125, 168, 255, 0.14);
}

.footer-brand p {
  color: var(--footer-text);
  font-size: 0.9rem;
  margin: 1rem 0 0;
  max-width: 24rem;
  font-weight: 300;
  line-height: 1.55;
  opacity: 0.85;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 255, 0.22);
  background: rgba(77, 124, 254, 0.1);
  color: var(--gold-soft) !important;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-email:hover {
  border-color: rgba(125, 168, 255, 0.4);
  background: rgba(77, 124, 254, 0.16);
  color: #fff !important;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.footer-col h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  margin: 0 0 1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-col a:hover {
  color: #fff;
  opacity: 1;
  transform: translateX(2px);
}

.footer-col a:hover::after {
  transform: scaleX(1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 1.35rem;
}

.footer-copy {
  color: var(--footer-text);
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 255, 0.22);
  background: rgba(77, 124, 254, 0.08);
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links a:hover {
  border-color: rgba(125, 168, 255, 0.45);
  background: rgba(77, 124, 254, 0.18);
  color: #fff;
  opacity: 1;
  transform: translateY(-1px);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

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

/* Inner page stat cards */
.inner-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.75rem 0 2rem;
}

.inner-stat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 0;
  text-align: center;
  padding: 2.35rem 1.35rem 2.15rem;
  min-height: 10.5rem;
  border-radius: 72px 0 72px 0;
  border: 1px solid rgba(125, 168, 255, 0.22);
  background: linear-gradient(160deg, rgba(23, 37, 84, 0.55), rgba(17, 24, 39, 0.72));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.inner-stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    transparent 320deg,
    rgba(255, 255, 255, 0.2) 340deg,
    #fff 352deg,
    rgba(255, 255, 255, 0.2) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: hero-border-spin 4s linear infinite;
}

.inner-stat-card:nth-child(1)::after { animation-delay: 0s; }
.inner-stat-card:nth-child(2)::after { animation-delay: -1s; }
.inner-stat-card:nth-child(3)::after { animation-delay: -2s; }
.inner-stat-card:nth-child(4)::after { animation-delay: -3s; }

.inner-stats.is-visible .inner-stat-card {
  opacity: 1;
  transform: translateY(0);
}

.inner-stat-card:hover {
  border-color: rgba(125, 168, 255, 0.45);
  transform: translateY(-4px);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(77, 124, 254, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.inner-stats.is-visible .inner-stat-card:hover {
  transform: translateY(-4px);
}

.inner-stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
}

.inner-stat-card span {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  color: var(--gold-soft);
  background: rgba(77, 124, 254, 0.14);
  border: 1px solid rgba(125, 168, 255, 0.22);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.card-icon--soft {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-card:hover .card-icon,
.support-card:hover .card-icon {
  transform: translateY(-2px) scale(1.06);
  background: rgba(77, 124, 254, 0.24);
}

.about-card,
.support-card,
.legal-section {
  transition:
    border-color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .anim-rise,
  .header-tools,
  .site-header--hero .site-nav li,
  .header-tool--scroll svg,
  .inner-stat-card {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .site-header--hero .site-nav,
  .site-header--compact .site-nav {
    opacity: 1;
    animation: none;
    transition: none;
    transform: translateX(-50%);
  }

  .hero .hero-brand {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .hero-stat-card::after,
  .stat-box::after,
  .process-card::after,
  .support-card::after,
  .inner-stat-card::after,
  .about-card::after,
  .gold-divider::after,
  .about-status-dot,
  .about-track-card .card-border {
    animation: none;
  }

  .hero-stat-card::after,
  .stat-box::after,
  .process-card::after,
  .support-card::after,
  .inner-stat-card::after,
  .about-card::after,
  .gold-divider::after {
    opacity: 0;
  }

  .btn:hover,
  .hero-stat-card:hover,
  .stat-box:hover,
  .process-card:hover,
  .support-card:hover,
  .inner-stat-card:hover,
  .about-card:hover,
  .contact-item:hover,
  .about-value-card:hover,
  .about-portrait-social a:hover,
  .header-tool:hover {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .practice-grid,
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .showcase-card-media--phone,
  .showcase-card-media--web {
    height: 17rem;
  }

  .showcase-card-media--phone img {
    max-width: 9.5rem;
    width: min(100%, 9.5rem);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid .team-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-title {
    max-width: 16ch;
  }
}

@media (max-width: 768px) {
  .hero .hero-brand-anchor {
    top: 0;
    left: 0;
    right: 0;
    justify-content: flex-start;
    align-items: center;
    min-height: 4.5rem;
    padding: 0.75rem 4.5rem 0.75rem 1.15rem;
    background: linear-gradient(180deg, rgba(7, 15, 31, 0.72), transparent);
  }

  .hero .hero-brand-anchor-inner {
    width: auto;
    max-width: 100%;
    font-size: inherit;
  }

  .hero .hero-brand {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    animation: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.7rem;
  }

  .hero .hero-brand img {
    width: 40px;
    height: 40px;
  }

  .hero .hero-brand-name {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    align-self: center;
    text-align: left;
    margin-right: 0;
  }

  .hero .hero-eyebrow {
    display: none;
  }

  .header-tools {
    top: 0.7rem;
    right: 0.85rem;
    flex-direction: row;
    gap: 0.45rem;
  }

  .header-tools .header-tool--scroll {
    display: none;
  }

  .site-header--hero .header-tools {
    position: absolute;
    top: 0.7rem;
    right: 0.85rem;
    flex-direction: row;
    gap: 0.45rem;
  }

  .header-tool {
    width: 42px;
    height: 42px;
    background: rgba(7, 15, 31, 0.55);
    border-color: rgba(125, 168, 255, 0.35);
    backdrop-filter: blur(8px);
  }

  .site-header--hero .nav-toggle {
    display: inline-flex;
  }

  .site-header--hero .site-nav {
    display: none;
    position: absolute;
    top: 4.35rem;
    left: 0.85rem;
    right: 0.85rem;
    transform: none;
    width: auto;
    background: rgba(7, 15, 31, 0.97);
    border: 1px solid rgba(125, 168, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    padding: 0.65rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .site-header--hero .site-nav.is-open {
    display: block;
    animation: mobileNavIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .site-header--hero .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    flex-wrap: nowrap;
  }

  .site-header--hero .site-nav li {
    animation: none;
    opacity: 1;
  }

  .site-header--hero .site-nav.is-open li {
    animation: navItemIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(0.04s + (var(--i, 0) * 0.045s));
  }

  .site-header--hero .site-nav a {
    display: flex;
    justify-content: flex-start;
    padding: 0.8rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .site-header--hero .site-nav a::after {
    left: 0.9rem;
    bottom: 0.45rem;
    transform: translateX(0) scaleX(0);
    transform-origin: left;
  }

  .site-header--hero .site-nav a:hover::after,
  .site-header--hero .site-nav a[aria-current="page"]::after,
  .site-header--hero .site-nav a.is-active::after {
    transform: translateX(0) scaleX(1);
  }

  .site-header--compact .header-inner {
    justify-content: flex-end;
    min-height: 2.75rem;
  }

  .site-header--compact .header-tools {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
  }

  .site-header--compact .nav-toggle {
    display: inline-flex;
  }

  .site-header--compact .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.55rem);
    transform: none;
    animation: none;
    margin: 0;
    padding: 0.65rem;
    border-radius: 16px;
    background: rgba(7, 15, 31, 0.97);
    border: 1px solid rgba(125, 168, 255, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
  }

  .site-header--compact .site-nav.is-open {
    display: block;
    animation: mobileNavIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .site-header--compact .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .site-header--compact .site-nav a {
    justify-content: flex-start;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
  }

  .site-search {
    padding: 18vh 0.85rem 1.5rem;
  }

  .site-search-kbd {
    display: none;
  }

  .about-grid,
  .support-cards {
    grid-template-columns: 1fr;
  }

  .inner-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .inner-stat-card {
    border-radius: 48px 0 48px 0;
    min-height: 8.5rem;
    padding: 1.75rem 1.1rem 1.6rem;
  }

  .inner-stat-card strong {
    font-size: clamp(1.85rem, 6vw, 2.35rem);
  }

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

  .legal-nav {
    position: static;
    max-height: none;
    border-right: 0;
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid rgba(125, 168, 255, 0.14);
  }

  .hero {
    padding: 6.25rem 0 2.75rem;
    min-height: auto;
  }

  .hero-inner {
    text-align: center;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.05rem, 9.5vw, 2.75rem);
    text-align: center;
    line-height: 1.12;
  }

  .hero-lead {
    margin: 0 auto 1.75rem;
    max-width: 28rem;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
  }

  .hero-focus {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    padding-top: 0;
    text-align: center;
  }

  .hero-stats-strip {
    grid-template-columns: 1fr;
    max-width: 19rem;
    gap: 0.85rem;
  }

  .hero-stat-card {
    border-radius: 64px 0 64px 0;
    min-height: 7.5rem;
    padding: 1.75rem 1.25rem 1.55rem;
    text-align: center;
  }

  .stat-box {
    border-radius: 64px 0 64px 0;
    padding: 2rem 1.5rem;
  }

  .hero-stat-card strong {
    font-size: clamp(2.1rem, 9vw, 2.6rem);
  }

  .hero-stat-card .stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

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

  .gold-divider {
    width: min(100% - 1.75rem, var(--max-width));
  }

  section {
    padding: 3rem 0;
  }

  .section-header {
    margin: 0 auto 2rem;
    text-align: center;
  }

  .section-header h2,
  .who-title,
  .about-firm-title,
  .about-pay-title {
    line-height: 1.18;
  }

  .section-header h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .who-header {
    margin-bottom: 1.75rem;
    max-width: none;
    text-align: left;
  }

  .who-title {
    font-size: clamp(1.85rem, 7.5vw, 2.45rem);
  }

  .who-lead {
    font-size: 0.95rem;
    max-width: none;
  }

  .about-panel,
  .contact-split,
  .stats-duo {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-panel-copy {
    gap: 1.85rem;
  }

  .about-portrait {
    position: static;
    max-width: 16.5rem;
    margin-inline: auto;
    width: 100%;
  }

  .about-portrait-inner {
    padding: 1rem 1rem 1.15rem;
    border-radius: 22px 8px 22px 8px;
  }

  .about-portrait-frame {
    border-radius: 1.35rem;
    max-height: 18rem;
  }

  .about-portrait-frame img {
    height: 18rem;
  }

  .about-value-grid,
  .about-track-grid,
  .about-pay-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-value-card {
    padding: 1rem 1rem 1.1rem 1.15rem;
  }

  .about-pay-card {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    gap: 0.9rem;
  }

  .about-pay-media {
    height: 16rem;
    max-height: 16rem;
    margin-inline: auto;
    width: min(100%, 12rem);
  }

  .about-pay-media--timesheet img,
  .about-pay-media--payslip img {
    width: min(100%, 9.25rem);
    max-width: 9.25rem;
  }

  .about-pay-title {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  }

  .about-pay-lead {
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
  }

  .about-check-list li {
    font-size: 0.9rem;
    padding: 0.8rem 0 0.8rem 1.7rem;
  }

  .about-timeline {
    padding-left: 1.1rem;
    gap: 1.15rem;
  }

  .about-firm p {
    font-size: 0.95rem;
  }

  .section-quote {
    padding: 2.75rem 0;
  }

  .quote-block blockquote p {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
  }

  .practice-grid,
  .expertise-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .showcase-card-media--phone,
  .showcase-card-media--web {
    height: 15.5rem;
  }

  .showcase-card-media--phone img {
    max-width: 8.75rem;
    width: min(100%, 8.75rem);
  }

  .team-grid .team-card:last-child {
    max-width: none;
  }

  .team-card,
  .practice-card,
  .expertise-card {
    max-width: none;
  }

  .process-card {
    border-radius: 48px 0 48px 0;
    padding: 1.45rem 1rem 1.35rem;
  }

  .support-card {
    border-radius: 48px 0 48px 0;
    padding: 1.45rem 1rem 1.35rem;
  }

  .process-card::before {
    margin-bottom: 0.65rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 1rem 0.15rem;
    gap: 0.75rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }

  .newsletter-inner {
    text-align: center;
  }

  .newsletter-inner h2 {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem);
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-form input,
  .newsletter-form .btn {
    width: 100%;
  }

  .contact-details {
    gap: 0.85rem;
  }

  .contact-item {
    padding: 0.9rem 0.95rem;
  }

  .contact-form {
    gap: 0.85rem;
    padding: 1.45rem 1.25rem 1.35rem;
    border-radius: 22px;
  }

  .contact-form .btn {
    width: 100%;
  }

  .stats-duo {
    gap: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-links {
    gap: 0.85rem 1.15rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }

  .legal-shell {
    margin: 1.75rem 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-shell {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 520px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .showcase-card-media--phone,
  .showcase-card-media--web {
    height: 13.5rem;
  }

  .showcase-card-media--phone img {
    max-width: 7.5rem;
    width: min(100%, 7.5rem);
  }

  .showcase-card-body {
    padding: 0.75rem 0.7rem 0.85rem;
  }

  .showcase-card-body h3 {
    font-size: 0.95rem;
  }

  .showcase-card-body > p:last-child {
    display: none;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1rem;
  }
}
