/* Wildcard Services
   Palette and type follow the brand guide: Wildcard Purple is reserved for
   the header, CTAs, and buttons. Marigold is not used on marketing pages. */

:root {
  /* Core */
  --purple: #550088;
  --purple-hover: #6e269a;
  --purple-bright: #7c2cb0;
  --blue-gray: #222233;
  /* Purple family */
  --plum: #33004f;
  --plum-deep: #26003b;
  --lilac: #e8d6f5;
  /* Surfaces */
  --slate: #1a1a28;
  --ink: #121219;
  --onyx: #0b0b10;
  --steel: #4a4a5e;
  --fog: #8a8a9e;
  /* Text on dark */
  --text: #f0eef5;
  --text-2: #ababc0;

  --font-display: "Red Hat Display", system-ui, sans-serif;
  --font-body: "Red Hat Text", system-ui, sans-serif;

  --radius: 20px;
  --wrap: 1200px;
  --line: rgba(240, 238, 245, 0.09);
  --line-strong: rgba(240, 238, 245, 0.16);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--onyx);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }

.wrap { width: min(100% - 32px, var(--wrap)); 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;
}
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--text); color: var(--onyx);
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -10px rgba(85,0,136,.9);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--purple-hover); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: rgba(240,238,245,.04);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}
.btn--ghost:hover { background: rgba(240,238,245,.09); }
.btn--block { width: 100%; }
.btn--block:hover svg { transform: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; }
.dev-banner { background: #fff; color: var(--ink); text-align: center; font-weight: 700; font-size: .9rem; padding: 8px 16px; }
.topbar { background: var(--plum); font-size: .9rem; }
.topbar__inner { display: flex; justify-content: center; gap: 40px; padding: 8px 0; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar svg { width: 15px; height: 15px; fill: currentColor; opacity: .85; }

.nav { background: var(--purple); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}
.nav__links a:hover { background: var(--purple-hover); }
.nav__links .nav__cta { margin-left: 8px; background: var(--text); color: var(--purple); }
.nav__links .nav__cta:hover { background: #fff; }

.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 112px;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(85,0,136,.35), transparent 60%),
    radial-gradient(700px 400px at 5% 90%, rgba(51,0,79,.55), transparent 60%),
    var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(240,238,245,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(240,238,245,.05);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 500;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lilac);
  box-shadow: 0 0 0 4px rgba(232,214,245,.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(232,214,245,0); } }

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.hl {
  background: linear-gradient(100deg, var(--lilac) 10%, #c9a3e6 60%, var(--lilac) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 50% { background-position: 100% 0; } }

.lede { max-width: 36rem; margin: 24px 0 36px; font-size: 1.2rem; color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero mockup */
.mock { position: relative; padding: 24px 24px 56px 0; }
.mock__window {
  border-radius: 16px;
  background: var(--slate);
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -30px rgba(0,0,0,.9), 0 0 120px -40px rgba(124,44,176,.6);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform .6s ease;
}
.mock:hover .mock__window { transform: perspective(1400px) rotateY(-3deg) rotateX(2deg); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--ink); border-bottom: 1px solid var(--line); }
.mock__bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--steel); }
.mock__url {
  display: flex; align-items: center; gap: 6px;
  margin-left: 14px; padding: 4px 12px;
  border-radius: 8px; background: var(--slate);
  font-size: .78rem; color: var(--fog);
}
.mock__url svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.mock__page { padding: 18px 22px 24px; }
.mock__page i { display: block; border-radius: 6px; background: rgba(240,238,245,.08); }
.mock__nav { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.mock__nav i { height: 8px; width: 38px; }
.mock__nav .mock__logo { width: 64px; height: 14px; margin-right: auto; background: rgba(240,238,245,.2); }
.mock__nav .mock__navbtn { width: 52px; height: 18px; background: var(--purple-bright); }
.mock__hero { display: grid; gap: 10px; padding: 26px; border-radius: 12px; background: linear-gradient(135deg, var(--plum) 0%, var(--blue-gray) 100%); }
.mock__hero .mock__h1 { height: 18px; width: 78%; background: rgba(240,238,245,.75); animation: build 5s ease-in-out infinite; }
.mock__hero .mock__h1--short { width: 52%; animation-delay: .2s; }
.mock__hero .mock__p { height: 8px; width: 88%; margin-top: 6px; background: rgba(240,238,245,.22); animation: build 5s ease-in-out .4s infinite; }
.mock__hero .mock__p--short { width: 64%; margin-top: 0; animation-delay: .55s; }
.mock__hero .mock__btn { height: 24px; width: 110px; margin-top: 8px; border-radius: 8px; background: var(--purple-bright); }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mock__cards i { height: 64px; border-radius: 10px; background: rgba(240,238,245,.05); box-shadow: 0 0 0 1px var(--line) inset; }
@keyframes build {
  0%, 12% { clip-path: inset(0 100% 0 0); }
  35%, 100% { clip-path: inset(0 0 0 0); }
}

.float {
  position: absolute;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(26,26,40,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -16px rgba(0,0,0,.8);
  font-size: .85rem;
  animation: float 7s ease-in-out infinite;
}
.float p { margin: 0; }
.float__title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.float__sub { color: var(--fog); font-size: .8rem; }
.float svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--lilac); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float--email { right: -8px; top: 38%; min-width: 210px; }
.float--email ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.float--email li { display: flex; justify-content: space-between; gap: 20px; color: var(--text-2); }
.float--email b {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--lilac);
  font-size: .75rem;
  font-weight: 600;
}
.float--phish { left: -28px; bottom: 8px; display: flex; align-items: center; gap: 12px; animation-delay: -3.5s; }
.float--phish svg { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: var(--plum); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding-bottom: 104px; background: var(--ink); }
.section--flush { background: var(--onyx); }

/* Section header band, carried over from the current site */
.band {
  margin-bottom: 64px;
  padding: 28px 0;
  background: var(--blue-gray);
  border-block: 1px solid var(--line);
  text-align: center;
}
.band__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.band__sub { margin: 6px auto 0; max-width: 44rem; color: var(--text-2); }

/* Services: three face cards (K, Q, J) that flip face-up in order.
   main.js turns them face-down, then flips them when they scroll into view. */
.court {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  perspective: 1600px;
}
.fcard { position: relative; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.fcard__inner {
  position: relative;
  height: 100%;
  border-radius: 20px;
  transform-style: preserve-3d;
}
.fcard__face,
.fcard__back {
  border-radius: 20px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.fcard__face {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 80px 30px 76px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(232,214,245,.08), transparent 55%),
    var(--slate);
  box-shadow:
    0 0 0 1px rgba(232,214,245,.2) inset,
    0 24px 48px -28px rgba(0,0,0,.95);
  transition: box-shadow .35s ease;
}
.fcard--lead .fcard__face {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(232,214,245,.1), transparent 55%),
    linear-gradient(160deg, var(--plum) 0%, var(--slate) 70%);
  box-shadow:
    0 0 0 1px rgba(232,214,245,.3) inset,
    0 24px 48px -28px rgba(0,0,0,.95),
    0 0 70px -30px rgba(124,44,176,.8);
}
/* Printed inner frame, matching the How We Work cards */
.fcard__face::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 14px;
  border: 1px solid rgba(232,214,245,.07);
  pointer-events: none;
}
/* Face-card "portrait": the service icon in a framed panel */
.fcard__portrait {
  display: grid;
  place-items: center;
  height: 112px;
  margin-bottom: 26px;
  border-radius: 14px;
  background:
    radial-gradient(60% 90% at 50% 50%, rgba(124,44,176,.35), transparent 70%),
    var(--plum-deep);
  box-shadow: 0 0 0 1px rgba(232,214,245,.16) inset;
}
.fcard__portrait svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--lilac);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fcard h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; }
.fcard p { margin: 12px 0 0; color: var(--text-2); }
.fcard .fcard__next {
  margin-top: auto;
  padding-top: 24px;
  font-size: .9rem;
  font-style: italic;
  color: var(--fog);
}
.fcard__next span { font-style: normal; color: var(--lilac); }

/* Card back: plum with a lattice of suit asterisks inside a printed frame,
   and a medallion in the center */
.fcard__back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%);
  box-shadow:
    0 0 0 1px rgba(232,214,245,.25) inset,
    0 24px 48px -28px rgba(0,0,0,.95);
}
.fcard__back::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  border: 1px solid rgba(232,214,245,.18);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.5v9M8.1 9.75l7.8 4.5M8.1 14.25l7.8-4.5' stroke='%23e8d6f5' stroke-opacity='.14' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 34px 34px;
}
.fcard__back span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5v17M4.6 7.75l14.8 8.5M4.6 16.25l14.8-8.5' stroke='%23e8d6f5' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 44px 44px no-repeat,
    var(--plum-deep);
  box-shadow: 0 0 0 1px rgba(232,214,245,.3), 0 0 0 7px var(--plum-deep), 0 0 0 8px rgba(232,214,245,.15);
}

/* Face-down until revealed, then flip over with a slight lift */
.court[data-state] .fcard__inner { transform: rotateY(180deg); }
.court[data-state] .fcard.is-up .fcard__inner { animation: flip-up .9s cubic-bezier(.3,.7,.25,1) both; }
@keyframes flip-up {
  0%   { transform: rotateY(180deg); }
  45%  { transform: translateZ(60px) rotateY(95deg) scale(1.04); }
  100% { transform: rotateY(0deg); }
}

/* Picking a card up */
.fcard:hover { transform: translateY(-6px); }
.fcard:hover .fcard__face { box-shadow: 0 0 0 1px rgba(232,214,245,.4) inset, 0 34px 60px -28px rgba(0,0,0,.95), 0 0 50px -20px rgba(124,44,176,.7); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.tags li {
  padding: 4px 11px;
  border-radius: 8px;
  background: rgba(240,238,245,.05);
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
}
/* Testimonial: quote on the left, before/after card on the right */
.quote {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 56px;
  margin: 0;
  padding: 48px 56px;
  border-radius: var(--radius);
  background: var(--slate);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
}
.quote figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  color: var(--text-2);
}
.quote figcaption span { padding-left: 16px; border-left: 1px solid var(--line-strong); }
.quote__logo { display: block; }
.quote__logo img { display: block; width: auto; height: 56px; opacity: .92; transition: opacity .2s ease; }
.quote__logo:hover img { opacity: 1; }

/* Before/after card, framed as a browser window. Tapping it flips it over
   (main.js toggles .is-flipped), like the Ace card in the contact section. */
.flip {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  perspective: 1800px;
  -webkit-tap-highlight-color: transparent;
}
.flip__face {
  grid-area: 1 / 1;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-strong) inset, 0 24px 48px -28px rgba(0,0,0,.95);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.flip__face--back { transform: rotateY(180deg); }
.flip.is-flipped .flip__face { transform: rotateY(-180deg); }
.flip.is-flipped .flip__face--back { transform: rotateY(0deg); }
.flip__bar { display: flex; gap: 6px; padding: 10px 12px; }
.flip__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--steel); }
.flip__view { position: relative; display: block; aspect-ratio: 16 / 10; }
.flip__view img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.flip__tag,
.flip__hint {
  position: absolute;
  border-radius: 999px;
  color: var(--text);
  font: 600 .75rem/1.4 var(--font-body);
}
.flip__tag {
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: rgba(11,11,16,.72);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.flip__tag--after { background: var(--purple); }
.flip__hint {
  bottom: 12px; left: 50%;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  transform: translateX(-50%);
  background: rgba(11,11,16,.82);
  box-shadow: 0 0 0 1px var(--line-strong) inset, 0 6px 18px rgba(0,0,0,.4);
  font-size: .85rem;
  white-space: nowrap;
  transition: background .2s ease;
}
.flip__hint svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .flip:hover .flip__hint { background: var(--purple); } }
.flip:focus-visible { outline-offset: 4px; }

/* Process: four steps as a dealt hand of playing cards.
   main.js stacks them in the middle of the row, then deals them out. */
.hand {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 84px 26px 76px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(232,214,245,.08), transparent 55%),
    var(--slate);
  box-shadow:
    0 0 0 1px rgba(232,214,245,.2) inset,
    0 24px 48px -28px rgba(0,0,0,.95);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
/* Inner frame, like the border printed on a real card */
.pcard::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  border: 1px solid rgba(232,214,245,.07);
  pointer-events: none;
}
.pcard__rank {
  position: absolute;
  top: 16px;
  left: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--lilac);
}
.pcard__rank svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: .8;
}
.pcard__rank--flip { top: auto; left: auto; bottom: 16px; right: 18px; transform: rotate(180deg); }
.pcard h3 { font-size: 1.35rem; font-weight: 800; }
.pcard p { margin: 10px 0 0; color: var(--text-2); }

/* Picking a card up, once the deal is finished */
.hand[data-state="done"] .pcard:hover,
.hand:not([data-state]) .pcard:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow:
    0 0 0 1px rgba(232,214,245,.4) inset,
    0 34px 60px -28px rgba(0,0,0,.95),
    0 0 50px -20px rgba(124,44,176,.7);
}

/* Stacked: every card sits in the deck at the middle of the row.
   --dx/--dy are set by main.js from each card's real position. */
.hand[data-state="stacked"] .pcard {
  transform:
    translate(var(--dx, 0px), var(--dy, 0px))
    translate(calc(var(--i) * -3px), calc(var(--i) * 3px))
    rotate(calc(-6deg + var(--i) * 3deg));
  z-index: calc(4 - var(--i));
  transition: none;
}
/* Dealing: cards fly to their spots one after another and settle straight */
.hand[data-state="dealt"] .pcard {
  transform: none;
  z-index: calc(4 - var(--i));
  transition: transform .75s cubic-bezier(.2,.85,.3,1.12);
  transition-delay: calc(150ms + var(--i) * 150ms);
}

/* Phones: one column, each card slides in from the side as it scrolls up */
.hand[data-state="single"] .pcard {
  opacity: 0;
  transform: translateX(-70%) rotate(-8deg);
  transition: transform .7s cubic-bezier(.2,.85,.3,1.12), opacity .5s ease;
}
.hand[data-state="single"] .pcard.is-dealt { opacity: 1; transform: none; }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.about__text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.about__text p { margin: 0 0 16px; color: var(--text-2); font-size: 1.1rem; }
.about__side {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--slate);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.about__label {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fog);
}
.certs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.certs li {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(240,238,245,.05);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  font-size: .88rem;
  font-weight: 500;
}
.about__area { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.about__area svg { width: 22px; height: 22px; fill: none; stroke: var(--lilac); stroke-width: 1.8; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.form {
  display: grid;
  gap: 18px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--slate);
  box-shadow: 0 0 0 1px var(--line) inset;
}

/* The contact form as the Ace: same card face as the others, with the
   single big pip moved up into a header so the fields stay clean. */
.acard {
  position: relative;
  padding: 40px 48px 76px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(124,44,176,.18), transparent 60%),
    var(--slate);
  box-shadow:
    0 0 0 1px rgba(232,214,245,.22) inset,
    0 30px 60px -30px rgba(0,0,0,.95);
}
.acard::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 14px;
  border: 1px solid rgba(232,214,245,.07);
  pointer-events: none;
}
.acard__head { display: grid; justify-items: center; gap: 14px; margin-bottom: 10px; text-align: center; }
.acard__pip {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--plum), var(--plum-deep) 70%);
  box-shadow:
    0 0 0 1px rgba(232,214,245,.32),
    0 0 0 7px var(--slate),
    0 0 0 8px rgba(232,214,245,.14),
    0 0 50px -10px rgba(124,44,176,.6);
}
.acard__pip svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--lilac);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.acard__head p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lilac);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; }
.form label > span, .form legend { font-size: .9rem; font-weight: 600; }
.form em { font-style: normal; font-weight: 400; color: var(--fog); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel);
  border-radius: 10px;
  background: var(--ink);
  color: var(--text);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 4px rgba(124,44,176,.25);
}
.form__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.form__topics legend { margin-bottom: 8px; }
.form__topics label { display: block; }
.form__topics input { position: absolute; opacity: 0; pointer-events: none; }
.form__topics span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--steel) inset;
  font-size: .9rem;
  color: var(--text-2);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.form__topics span:hover { color: var(--text); box-shadow: 0 0 0 1px var(--fog) inset; }
.form__topics input:checked + span { background: var(--plum); color: var(--lilac); box-shadow: 0 0 0 1px var(--purple-bright) inset; }
.form__topics input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.form__status { margin: -4px 0 0; min-height: 1.5em; font-size: .92rem; text-align: center; color: var(--text-2); }
.form__status.is-error { color: var(--text); font-weight: 600; }
.form__status a { color: var(--lilac); }
.form__status button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lilac);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form .btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.form .btn[aria-busy="true"] svg { animation: pulse-icon 1s ease-in-out infinite; }
@keyframes pulse-icon { 50% { opacity: .3; } }
.turnstile:empty { display: none; }
/* Honeypot: off-screen for people, still in the form for bots */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The Ace flips over to its back once the message is sent */
.ace { display: grid; perspective: 1800px; }
.ace > .acard,
.ace > .acard__back {
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform .9s cubic-bezier(.3,.7,.25,1);
}
.acard__back {
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px;
  border-radius: var(--radius);
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%);
  box-shadow: 0 0 0 1px rgba(232,214,245,.25) inset, 0 30px 60px -30px rgba(0,0,0,.95);
}
.acard__back::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px solid rgba(232,214,245,.18);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.5v9M8.1 9.75l7.8 4.5M8.1 14.25l7.8-4.5' stroke='%23e8d6f5' stroke-opacity='.14' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center / 34px 34px;
}
.acard__done {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 380px;
  padding: 36px 32px;
  border-radius: 18px;
  text-align: center;
  background: rgba(38,0,59,.94);
  box-shadow: 0 0 0 1px rgba(232,214,245,.22), 0 20px 50px -20px rgba(0,0,0,.8);
}
.acard__done h3 { margin-top: 6px; font-size: 1.7rem; font-weight: 800; outline: none; }
.acard__done p { margin: 0 0 8px; color: var(--text-2); }
.ace.is-sent > .acard { transform: rotateY(-180deg); }
.ace.is-sent > .acard__back { transform: rotateY(0deg); }

.contact__direct { display: grid; gap: 14px; }
.direct {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--slate);
  box-shadow: 0 0 0 1px var(--line) inset;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.direct:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.direct__icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--plum); }
.direct__icon svg { width: 20px; height: 20px; fill: var(--lilac); }
.direct small { display: block; font-size: .8rem; color: var(--fog); }
.direct > span:last-child { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }

/* ---------- Incident page and 404 ---------- */
/* Marigold is reserved for incident/breach alert pages (brand guide); it is not used anywhere else. */
:root { --marigold: #ffb400; }
.alert-band {
  padding: 56px 0;
  background: repeating-linear-gradient(135deg, rgba(255,180,0,.2) 0 24px, var(--onyx) 24px 48px), var(--onyx);
  border-bottom: 1px solid rgba(255,180,0,.4);
}
.alert-band__kicker {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--marigold);
}
.alert-band h1 {
  display: inline-block;
  padding: 12px 22px;
  border-left: 6px solid var(--marigold);
  background: var(--onyx);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section--page { padding-top: 0; }
.section--page .band { margin-bottom: 40px; }

.archive__label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .95rem; }
.archive input[type="search"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--steel);
  border-radius: 12px;
  background: var(--slate);
  color: var(--text);
  font: inherit;
}
.archive input[type="search"]::placeholder { color: var(--fog); }
.archive input[type="search"]:focus { outline: none; border-color: var(--purple-bright); box-shadow: 0 0 0 4px rgba(124,44,176,.25); }
.archive__status { min-height: 1.6em; margin: 8px 0 14px; font-size: .9rem; color: var(--text-2); }
.archive__text {
  max-height: min(70vh, 720px);
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--slate);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  font: .88rem/1.65 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.archive__text mark { padding: .05rem .2rem; border-radius: .2rem; background: var(--purple); color: #fff; }
.archive__raw { margin: 14px 0 0; font-size: .9rem; }
.archive__raw a, .sources a { color: var(--lilac); text-underline-offset: 3px; }

.media { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.media a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform .25s ease, box-shadow .25s ease;
}
.media a:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(232,214,245,.4), 0 24px 40px -24px rgba(0,0,0,.9); }
.media img { display: block; width: 100%; height: auto; }

.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sources li { display: grid; gap: 2px; padding: 16px 20px; border-radius: 14px; background: var(--slate); box-shadow: 0 0 0 1px var(--line) inset; }
.sources span { font-size: .85rem; color: var(--fog); }

.notfound { padding: 96px 0 120px; text-align: center; background: radial-gradient(700px 360px at 50% 0%, rgba(85,0,136,.35), transparent 70%), var(--ink); }
.notfound__inner { display: grid; justify-items: center; gap: 18px; }
.notfound__rank { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--lilac); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.notfound p:not(.notfound__rank) { max-width: 34rem; margin: 0; color: var(--text-2); font-size: 1.1rem; }
.notfound__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }

@media (max-width: 640px) {
  .alert-band { padding: 40px 0; }
  .archive__text { padding: 16px; font-size: .8rem; }
  .media { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--purple); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.footer p { margin: 0; font-size: .95rem; }
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; transition: background .2s ease; }
.social a:hover { background: var(--purple-hover); }
.social svg { width: 22px; height: 22px; fill: var(--text); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .mock { max-width: 620px; margin-inline: auto; width: 100%; }
  .court { grid-template-columns: 1fr 1fr; }
  .fcard--lead { grid-column: 1 / -1; }
  .hand { grid-template-columns: 1fr 1fr; }
  .pcard { min-height: 250px; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .quote { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
}

@media (max-width: 820px) {
  /* Menu button on the left, logo centered */
  .nav__inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 12px;
    height: 84px;
  }
  .nav__toggle { grid-column: 1; grid-row: 1; justify-self: start; }
  .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .nav nav { grid-column: 3; grid-row: 1; }
  .brand img { height: 52px; }
  .nav__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }
  .nav__toggle:hover { background: var(--purple-hover); }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: var(--purple);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,.7);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__links .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav { position: relative; }
}

@media (max-width: 640px) {
  .topbar__inner { gap: 20px; font-size: .82rem; }
  .hero { padding: 56px 0 72px; }
  .pill { font-size: .78rem; gap: 8px; }
  .lede { font-size: 1.1rem; }
  .hero__cta .btn { width: 100%; }
  .mock { padding: 0 0 44px; }
  .mock__window { transform: none; }
  /* Same layout as desktop, scaled down: email card over the right edge,
     phishing card over the bottom-left corner. */
  .float { padding: 10px 12px; border-radius: 12px; font-size: .75rem; }
  .float svg { width: 15px; height: 15px; }
  .float__sub { font-size: .7rem; }
  .float--email { right: -6px; top: 26%; min-width: 0; }
  .float--email ul { margin-top: 6px; gap: 3px; }
  .float--email li { gap: 14px; }
  .float--email b { padding: 0 8px; font-size: .68rem; }
  .float--phish { left: -6px; bottom: 0; gap: 10px; }
  .float--phish svg { width: 26px; height: 26px; padding: 4px; }
  .band { margin-bottom: 40px; padding: 22px 0; }
  .band__title { font-size: 1rem; letter-spacing: .22em; }
  .section { padding-bottom: 72px; }
  .court, .hand { grid-template-columns: 1fr; }
  .pcard { min-height: 0; padding: 80px 24px 72px; }
  .fcard__face { padding: 76px 24px 72px; }
  .about__side { padding: 26px 22px; }
  .quote { padding: 28px 22px; }
  .quote figcaption { flex-direction: column; align-items: flex-start; gap: 10px; }
  .quote figcaption span { padding-left: 0; border-left: 0; }
  .quote__logo img { height: 44px; }
  .form { padding: 24px 18px; }
  .acard { padding: 36px 22px 72px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
