:root {
  --red: #c43b40;
  --red-dark: #a92f34;
  --navy: #2b3245;
  --navy-deep: #202636;
  --ink: #343b50;
  --slate: #5a6178;
  --mist: #eef0f5;
  --paper: #f7f8fb;
  --cream: #f8f7f3; /* warm off-white (megamenu, accents) */
  --white: #ffffff;
  --line: #e3e6ee;
  --radius: 14px;
  --container: 1320px;
  --measure: 48rem; /* used only by the centered hero, per approved line breaks */
  --shadow-sm: 0 1px 2px rgba(32, 38, 54, .06), 0 4px 12px rgba(32, 38, 54, .05);
  --shadow-md: 0 2px 4px rgba(32, 38, 54, .06), 0 12px 32px rgba(32, 38, 54, .10);
  /* type scale - every body/UI font-size maps to one of these */
  --text-xs: 13px;
  --text-sm: 15px;
  --text-md: 17px;
  --text-lg: 19px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: var(--text-md);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
h3 { font-size: var(--text-lg); margin-bottom: 8px; }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-lede { color: var(--slate); font-size: var(--text-lg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-secondary:hover { box-shadow: inset 0 0 0 2px var(--navy); transform: translateY(-2px); }

/* ---------- Top accent strip ---------- */
.top-strip {
  height: 8px;
  background: url("../images/top.jpg") repeat-x left top;
  /* tile at 400px instead of the image's native 720px for a tighter repeat */
  background-size: 400px 100%;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
/* soft shadow once the page is scrolled (class toggled in footer.php) */
header.scrolled { box-shadow: 0 6px 20px rgba(32, 38, 54, .08); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; align-self: stretch; gap: 32px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: var(--text-sm); }
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .15s ease;
  box-shadow: 0 4px 12px rgba(196, 59, 64, .25);
}
.nav-cta:hover { background: var(--red-dark); color: #fff !important; }

/* ---------- Mobile nav ---------- */
/* Hamburger, bar CTA, and submenu chevrons exist in the markup on every
   viewport but only show under 860px; desktop keeps the hover megamenu. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .15s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-cta-bar { display: none; margin-left: auto; margin-right: 8px; }
.sub-toggle { display: none; }
/* panel + accordion rules live at the end of the file, past the .mega/.drop
   base styles they override */

/* ---------- Services megamenu ---------- */
/* stretch the trigger to full nav height so there's no hover dead-zone
   between the link and the panel below it */
.has-mega {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.has-mega > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  margin-bottom: 2px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
  vertical-align: middle;
}
.has-mega:hover > a::after,
.has-mega:focus-within > a::after { transform: rotate(225deg); margin-bottom: -3px; }
.has-mega:hover > a,
.has-mega:focus-within > a { color: var(--red); }
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -12px rgba(32, 38, 54, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  /* .25s close delay: forgives briefly straying off the menu */
  transition: opacity .18s ease .25s, transform .18s ease .25s, visibility .18s .25s;
  pointer-events: none;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s; /* open instantly */
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 48px;
  padding: 36px 24px 40px;
}
.mega-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.mega ul { list-style: none; }
.mega li + li { margin-top: 2px; }
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background .14s ease;
}
.mega-item:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.mega-item .mi-icon { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.mega-item .mi-icon svg { width: 20px; height: 20px; stroke-width: 1.75; display: block; }
.mega-item .mi-text { display: block; min-width: 0; }
.mega-item .mi-title {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy);
  line-height: 1.35;
}
.mega-item:hover .mi-title { color: var(--red); }
.mega-item .mi-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--slate);
  line-height: 1.45;
}
.mega-col-stacked .mega-label { margin-top: 26px; }
.mega-col-stacked .mega-label:first-child { margin-top: 0; }


/* service-group icon colors (echoes the top-strip palette) */
.g-build    { color: var(--red); }
.g-grow     { color: #48876a; }
.g-protect  { color: #6d549c; }
.g-automate { color: #c1801f; }
.g-partner  { color: #5471a8; }

/* anchor jumps land below the sticky header */
section[id], .card[id] { scroll-margin-top: 110px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 96px 0 92px;
}
/* faint blueprint grid over the navy, echoing the drafting-table panel */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 4.8vw, 66px);
  margin: 0 0 24px;
  color: #fff;
}
.hero h1 em { font-style: normal; color: #e0646a; }
.hero .subhead {
  max-width: var(--measure);
  margin: 0 0 34px;
  font-size: var(--text-lg);
  color: #aeb5c8;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-secondary,
.page-hero .btn-secondary,
.svc-hero .btn-secondary { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover,
.svc-hero .btn-secondary:hover { box-shadow: inset 0 0 0 2px #fff; }

/* Live design viewport: the drafting-table animation, framed as an artboard */
.hero-panel {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: #313a53;
  box-shadow: 0 24px 64px -12px rgba(10, 14, 24, .55);
  overflow: hidden;
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.panel-dots { display: flex; gap: 6px; }
.panel-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.panel-dots i:first-child { background: rgba(229, 106, 112, .85); }
.panel-title {
  flex: 1;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #9aa3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9aa3b8;
}
.panel-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0646a;
  animation: panel-pulse 2s ease-in-out infinite;
}
@keyframes panel-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.panel-body {
  position: relative;
  height: 430px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1.4px);
  background-size: 24px 24px;
  background-position: center;
}
.panel-body canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.panel-zoom {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #9aa3b8;
  opacity: .75;
}
@media (prefers-reduced-motion: reduce) {
  .panel-live i { animation: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero .subhead { max-width: 620px; }
  .panel-body { height: 340px; }
}

/* ---------- Logo slider ---------- */
.press {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 34px 0 38px;
}
.press-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 26px;
}
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  padding-right: 72px; /* keeps the loop seam evenly spaced */
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 26px;
  width: auto;
  flex: none;
  filter: grayscale(1) opacity(.55);
  transition: filter .2s ease;
}
.marquee-track img:hover { filter: grayscale(0) opacity(1); }
.marquee-track img.lg { height: 34px; }
.marquee-track img.sm { height: 21px; }
/* visually heavy logos: shrink and fade a touch more */
.marquee-track img.soft { height: 21px; filter: grayscale(1) opacity(.38); }
.marquee-track img.lg.soft { height: 28px; }
.marquee-track img.soft:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Intro ---------- */
.intro { padding: 104px 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}
.intro p { color: var(--slate); margin-bottom: 18px; font-size: var(--text-md); }
.intro p strong { color: var(--navy); }

/* Inc 5000 card - light, matching the site's card language */
.inc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.inc-card a.badge {
  display: inline-block;
  background: var(--mist); /* just below the paper card so the white "0" in the seal stays visible */
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 24px;
  transition: transform .2s ease;
}
.inc-card a.badge:hover { transform: scale(1.04); }
.inc-card a.badge img { width: 168px; height: 168px; }
.inc-card h3 { color: var(--navy); font-size: 22px; margin-bottom: 10px; }
.inc-card p { font-size: var(--text-sm); margin-bottom: 18px; color: var(--slate); }
.inc-card .inc-link { color: var(--navy); font-weight: 600; font-size: var(--text-sm); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.inc-card .inc-link:hover { color: var(--red); }

/* ---------- Services ---------- */
.services { padding: 104px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-group { margin-top: 56px; }
.service-group-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.service-group-label span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.service-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d5d9e4; }
.card p { font-size: var(--text-sm); color: var(--slate); }
.card .icon svg { width: 26px; height: 26px; stroke-width: 1.75; display: block; }

/* ---------- Projects ---------- */
.projects { padding: 104px 0; }
.project-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card h3 { font-size: 21px; }
.project-card p { color: var(--slate); font-size: var(--text-sm); flex: 1; margin: 6px 0 18px; }
.project-card .plink { font-weight: 600; font-size: var(--text-sm); }
.project-card .plink:hover { text-decoration: underline; }
.closing-line {
  margin-top: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
}

/* ---------- Why ---------- */
.why { padding: 104px 0; background: var(--navy); }
.why h2, .why .eyebrow ~ h2 { color: #fff; }
.why .eyebrow { color: #e88a8d; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-top: 52px; }
/* number chip sits beside the text, spanning both heading and copy */
.why-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 18px;
  align-items: start;
}
.why-item h3 { color: #fff; grid-column: 2; }
.why-item p { color: #aeb5c8; font-size: var(--text-sm); grid-column: 2; }
.why-item .num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  color: #e0646a;
  background: rgba(255,255,255,.07);
  border-radius: 9px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.why .why-more { margin-top: 48px; text-align: center; }
.why .why-more a { color: #fff; font-weight: 600; font-size: var(--text-sm); }
.why .why-more a:hover { text-decoration: underline; }

/* ---------- Process ---------- */
.process { padding: 104px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.step .num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--red);
  font-size: var(--text-sm);
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.step p { font-size: var(--text-sm); color: var(--slate); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 112px 0; text-align: center; }
.final-cta h2 { font-size: clamp(30px, 4.4vw, 44px); }
.final-cta p { margin: 0 auto 36px; color: var(--slate); font-size: var(--text-lg); }
/* navy variant: a hard break after pages that end on a white section */
.final-cta-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.final-cta-navy h2 { color: #fff; }
.final-cta-navy p { color: #c3cadb; }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); padding: 56px 0 40px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner img { height: 32px; width: auto; filter: brightness(0) invert(1) opacity(.9); }
.footer-inner p { color: #8b93a9; font-size: var(--text-sm); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: #aeb5c8; font-size: var(--text-sm); }
.footer-links a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards, .cards.cols-2, .project-cards, .why-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .intro, .services, .projects, .why, .process { padding: 72px 0; }
}

/* ---------- Card layout: icon beside title, copy below ---------- */
.card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 13px;
  align-items: center;
}
.card .icon { grid-column: 1; grid-row: 1; }
.card h3 { grid-column: 2; grid-row: 1; margin-bottom: 0; }
.card p { grid-column: 1 / -1; grid-row: 2; align-self: start; margin-top: 12px; }
.card .read-more { grid-column: 1 / -1; grid-row: 3; margin-top: 16px; font-weight: 600; font-size: var(--text-sm); }
.card .read-more:hover { text-decoration: underline; }

/* ---------- Service pages ---------- */
/* boxed breadcrumb bar, directly below the sticky nav; a step lighter
   than the navy stage so the hero still reads as the main event */
.crumb-bar {
  background: linear-gradient(180deg, #3d455c 0%, #39415a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
/* 1px extra on top offsets the bar's bottom border for true optical centering */
.breadcrumbs { font-size: var(--text-sm); color: #8b93a9; padding: 13px 0 12px; }
.breadcrumbs a { color: #aeb5c8; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-current] { color: #fff; }
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 68px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .svc-icon { margin-bottom: 14px; }
.page-hero .svc-icon svg { width: 40px; height: 40px; stroke-width: 1.6; display: block; }
/* group colors brightened for the dark hero */
.page-hero .g-build    { color: #e0646a; }
.page-hero .g-grow     { color: #6fbf95; }
.page-hero .g-protect  { color: #a58fd8; }
.page-hero .g-automate { color: #e0a94e; }
.page-hero .g-partner  { color: #8fa9d8; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 16px; color: #fff; }
.page-hero .lede { font-size: var(--text-lg); color: #aeb5c8; max-width: 720px; }
.page-hero .lede a { color: #fff; text-decoration: underline; }
/* Why Pagelift page: award-badge bar on white, directly below the dark hero */
.awards-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
  text-align: center;
}
.awards-bar img { width: min(760px, 100%); height: auto; margin: 0 auto; }
.svc-body { padding: 72px 0; }
.svc-body h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 44px; }
.svc-body h2:first-child { margin-top: 0; }
.placeholder {
  border: 2px dashed #d5d9e4;
  border-radius: var(--radius);
  padding: 26px 28px;
  color: var(--slate);
  background: var(--paper);
  margin: 20px 0 8px;
  font-size: var(--text-sm);
}
.other-services { padding: 64px 0 72px; background: var(--paper); border-top: 1px solid var(--line); }
.other-services h2 { font-size: 24px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--navy); transform: translateY(-1px); }
.chip svg { width: 16px; height: 16px; stroke-width: 1.75; display: block; }

/* ---------- Custom service pages ---------- */
.sect { padding: 88px 0; }
.sect-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sect p { color: var(--slate); margin-bottom: 18px; font-size: var(--text-md); }
.sect p strong { color: var(--navy); }
.sect p:last-child { margin-bottom: 0; }

.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }

.band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 96px 0;
}
.band h2 { color: #fff; }
.band p { color: #c3cadb; font-size: var(--text-md); margin-bottom: 18px; }
.band .punch { color: #fff; font-weight: 600; font-size: 20px; font-family: var(--font-display); }

.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }

.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-top: 48px; }
.diff-item { border-top: 3px solid var(--red); padding-top: 20px; }
.diff-item p { font-size: var(--text-sm); margin-bottom: 0; }

.faq { margin-top: 44px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq .faq-a { padding: 0 24px 20px; color: var(--slate); font-size: var(--text-sm); }

@media (max-width: 1100px) {
  .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards.cols-4, .steps.steps-5, .diff-grid { grid-template-columns: 1fr; }
  .sect { padding: 64px 0; }
}

/* ---------- Rich service hero (two-column, browser art) ---------- */
.svc-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
/* faint blueprint grid, matching the homepage hero */
.svc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.svc-hero .wrap { position: relative; z-index: 1; }
.svc-hero .eyebrow { color: #e88a8d; }
.svc-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.svc-hero h1 { font-size: clamp(38px, 4.6vw, 58px); margin: 14px 0 20px; color: #fff; }
.svc-hero h1 em { font-style: normal; color: #e0646a; }
.svc-hero .lede { font-size: var(--text-lg); color: #aeb5c8; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-size: var(--text-sm); font-weight: 500; color: #dfe3ee; }
.hero-points svg { width: 17px; height: 17px; color: #6fbf95; flex: none; }
.svc-hero-art { position: relative; }

/* CSS browser mockup */
.browser {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  box-shadow: 0 24px 64px -12px rgba(10, 14, 24, .55);
  overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar i:nth-child(1) { background: #e5766c; }
.browser-bar i:nth-child(2) { background: #f0b429; }
.browser-bar i:nth-child(3) { background: #67ad5b; }
.bb-url { flex: 1; height: 22px; margin-left: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.browser-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.bw-nav { display: flex; align-items: center; gap: 10px; }
.bw-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--red); }
.bw-links { display: flex; gap: 8px; margin-left: auto; }
.bw-links i { width: 38px; height: 8px; border-radius: 4px; background: var(--mist); }
.bw-btn { width: 64px; height: 22px; border-radius: 999px; background: var(--navy); }
.bw-hero {
  border-radius: 12px;
  padding: 26px 22px 24px;
  background: linear-gradient(135deg, #fdf3ef, #f4ede1 55%, #eaf2ec);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.bw-line { height: 13px; border-radius: 6px; background: #c9cfdd; }
.bw-line.lg { width: 72%; height: 16px; background: #aeb7ca; }
.bw-line.md { width: 52%; }
.bw-cta { width: 92px; height: 26px; border-radius: 999px; background: var(--red); margin-top: 8px; box-shadow: 0 6px 14px rgba(196, 59, 64, .35); }
.bw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bw-cards div { height: 64px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: var(--shadow-sm); }
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy);
}
.float-chip svg { width: 15px; height: 15px; }
.fc1 { top: 7%; right: -16px; }
.fc2 { bottom: 20%; left: -24px; }
.fc3 { bottom: -18px; right: 9%; }

/* ---------- Editorial split (headline left, prose right) ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 72px; align-items: start; }

/* ---------- Inline icon + heading rows on cards ---------- */
.card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.card-head .icon { margin-bottom: 0; }
.card-head .icon svg { width: 22px; height: 22px; }
.card-head h3 { margin-bottom: 0; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; margin-top: 56px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 21px; left: 24px; right: 24px; height: 2px; background: #d9dde7; }
.t-step { position: relative; }
.t-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  margin-bottom: 18px;
}
.t-step h3 { font-size: var(--text-lg); }
.t-step p { font-size: var(--text-sm); color: var(--slate); margin: 0; }

/* ---------- Proof band accents ---------- */
.band { position: relative; overflow: hidden; }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(720px 320px at 85% 15%, rgba(196, 59, 64, .22), transparent 60%);
  pointer-events: none;
}
.band .wrap { position: relative; }
.band .eyebrow { color: #e88a8d; }
.band h2 { font-size: clamp(30px, 3.6vw, 44px); }
.band .punch { border-left: 4px solid var(--red); padding-left: 20px; margin-top: 28px; }
.band p a { color: #fff; text-decoration: underline; }
.band p strong { color: #fff; }
.sect .punch {
  color: var(--navy);
  font-weight: 600;
  font-size: 20px;
  font-family: var(--font-display);
  border-left: 4px solid var(--red);
  padding-left: 20px;
  margin-top: 28px;
}

/* ---------- Differentiator icon rows ---------- */
.diff-item h3 { display: flex; align-items: center; gap: 10px; }
.diff-item h3 svg { width: 20px; height: 20px; color: var(--red); flex: none; }

/* ---------- CTA panel ---------- */
.cta-panel {
  border-radius: 24px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  padding: 84px 40px;
  text-align: center;
}
.cta-panel h2 { color: #fff; font-size: clamp(30px, 3.8vw, 44px); }
.cta-panel p { color: #c3cadb; margin-bottom: 34px; font-size: var(--text-lg); }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; transform: translateY(-2px); }

@media (max-width: 1100px) {
  .svc-hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .split { grid-template-columns: 1fr; }
  .timeline, .timeline.t-4, .timeline.t-6 { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
}
@media (max-width: 640px) {
  .timeline, .timeline.t-4, .timeline.t-6 { grid-template-columns: 1fr; }
  .fc2 { left: -8px; }
  .fc1 { right: -8px; }
}

/* ---------- Process step background icons ---------- */
.step { position: relative; overflow: hidden; }
.step > * { position: relative; }
.step .step-bg {
  position: absolute;
  right: -22px;
  bottom: -26px;
  color: var(--red);
  opacity: .07;
  transform: rotate(-10deg);
  pointer-events: none;
}
.step .step-bg svg { width: 130px; height: 130px; stroke-width: 1.4; display: block; }

/* ---------- Project card favicons ---------- */
.project-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.project-head h3 { margin-bottom: 0; }
.project-favicon { width: 26px; height: 26px; border-radius: 6px; flex: none; }

/* ---------- Web design page (/services/web-design/) ---------- */
/* the wireframe page designs itself: url, nav, hero copy, CTA, cards; loop resets */
.wd-art .bb-url { position: relative; overflow: hidden; }
.wd-art .bb-url::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  height: 8px;
  border-radius: 4px;
  background: var(--mist);
  animation: wd-url 12s ease-in-out infinite;
}
.wd-art .bw-logo { animation: wd-pop 12s ease-in-out infinite; }
.wd-art .bw-links i:nth-child(1) { animation: wd-nav1 12s ease-in-out infinite; }
.wd-art .bw-links i:nth-child(2) { animation: wd-nav2 12s ease-in-out infinite; }
.wd-art .bw-links i:nth-child(3) { animation: wd-nav3 12s ease-in-out infinite; }
.wd-art .bw-btn { animation: wd-btn 12s ease-in-out infinite; }
.wd-art .bw-line { transform-origin: left center; }
.wd-art .bw-line.lg { animation: wd-line1 12s ease-in-out infinite; }
.wd-art .bw-line.md { animation: wd-line2 12s ease-in-out infinite; }
.wd-art .bw-cta { animation: wd-cta 12s ease-in-out infinite; }
.wd-art .bw-cards div:nth-child(1) { animation: wd-card1 12s ease-in-out infinite; }
.wd-art .bw-cards div:nth-child(2) { animation: wd-card2 12s ease-in-out infinite; }
.wd-art .bw-cards div:nth-child(3) { animation: wd-card3 12s ease-in-out infinite; }
@keyframes wd-url   { 0%, 2%  { width: 0; opacity: 1; } 14%, 91% { width: 52%; opacity: 1; } 96%, 100% { width: 52%; opacity: 0; } }
@keyframes wd-pop   { 0%, 4%  { opacity: 0; transform: scale(.5); } 9%, 91%  { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes wd-nav1  { 0%, 8%  { opacity: 0; transform: translateY(-6px); } 12%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes wd-nav2  { 0%, 11% { opacity: 0; transform: translateY(-6px); } 15%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes wd-nav3  { 0%, 14% { opacity: 0; transform: translateY(-6px); } 18%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes wd-btn   { 0%, 17% { opacity: 0; transform: scale(.8); } 22%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes wd-line1 { 0%, 24% { opacity: 0; transform: scaleX(0); } 31%, 91% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; } }
@keyframes wd-line2 { 0%, 31% { opacity: 0; transform: scaleX(0); } 38%, 91% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; } }
@keyframes wd-cta   { 0%, 42% { opacity: 0; transform: scale(.6); } 48%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes wd-card1 { 0%, 52% { opacity: 0; transform: translateY(10px); } 58%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes wd-card2 { 0%, 58% { opacity: 0; transform: translateY(10px); } 64%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes wd-card3 { 0%, 64% { opacity: 0; transform: translateY(10px); } 70%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
/* chips drift gently, out of phase with each other */
.wd-art .float-chip { animation: wd-bob 7s ease-in-out infinite; }
.wd-art .fc2 { animation-delay: -2.4s; }
.wd-art .fc3 { animation-delay: -4.8s; }
@keyframes wd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .wd-art .bb-url::after, .wd-art .browser-body *, .wd-art .float-chip { animation: none; }
  .wd-art .bb-url::after { width: 52%; }
}

/* ---------- Custom code page (/services/custom-code/) ---------- */
/* CSS code-editor mockup: reuses the .browser window chrome */
.code-tabs { display: flex; gap: 8px; padding: 12px 16px 0; background: var(--white); }
.code-tabs i {
  width: 74px;
  height: 24px;
  border-radius: 7px 7px 0 0;
  background: var(--mist);
}
.code-tabs i.active { background: var(--paper); border: 1px solid var(--line); border-bottom-color: var(--paper); }
.code-body { padding: 18px 20px; background: var(--paper); display: flex; flex-direction: column; gap: 11px; }
.code-line { display: flex; align-items: center; gap: 14px; }
.code-line i { flex: none; width: 16px; height: 7px; border-radius: 4px; background: #d9dde7; }
.code-line span { height: 9px; border-radius: 5px; background: #c9cfdd; }
.code-line .c-key  { background: #8fa9d8; }
.code-line .c-fn   { background: #e0646a; }
.code-line .c-str  { background: #6fbf95; }
.code-line .c-num  { background: #e0a94e; }
.code-line.ind-1 { padding-left: 26px; }
.code-line.ind-2 { padding-left: 52px; }
.code-term {
  margin: 4px 20px 20px;
  background: var(--navy-deep);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.code-term .t-row { display: flex; align-items: center; gap: 10px; }
.code-term .t-prompt { flex: none; width: 14px; height: 8px; border-radius: 4px; background: #6fbf95; }
.code-term .t-line { height: 8px; border-radius: 4px; background: #4a536e; }
.code-term .t-ok { background: #6fbf95; }
.code-term .t-cursor { flex: none; width: 9px; height: 14px; border-radius: 2px; background: #e0646a; animation: term-blink 1.1s steps(1) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }

/* Animated variant (.is-animated on .svc-hero-art): the code types itself in
 * once, then the terminal runs its command and succeeds on a loop. */
.is-animated .code-line {
  clip-path: inset(0 100% 0 0);
  animation: line-type .5s ease-out forwards;
}
.is-animated .code-line:nth-child(1) { animation-delay: .15s; }
.is-animated .code-line:nth-child(2) { animation-delay: .37s; }
.is-animated .code-line:nth-child(3) { animation-delay: .59s; }
.is-animated .code-line:nth-child(4) { animation-delay: .81s; }
.is-animated .code-line:nth-child(5) { animation-delay: 1.03s; }
.is-animated .code-line:nth-child(6) { animation-delay: 1.25s; }
.is-animated .code-line:nth-child(7) { animation-delay: 1.47s; }
@keyframes line-type { to { clip-path: inset(0 0 0 0); } }

/* Terminal loop: type the command, print the green result, hold, clear. */
.is-animated .code-term .t-row:first-child .t-line {
  clip-path: inset(0 100% 0 0);
  animation: term-type 5.5s linear infinite;
  animation-delay: 1.6s;
}
@keyframes term-type {
  0%, 6%    { clip-path: inset(0 100% 0 0); }
  28%, 90%  { clip-path: inset(0 0 0 0); }
  94%, 100% { clip-path: inset(0 100% 0 0); }
}
.is-animated .code-term .t-row + .t-row .t-line,
.is-animated .code-term .t-row + .t-row .t-prompt {
  opacity: 0;
  animation: term-result 5.5s ease-out infinite;
  animation-delay: 1.6s;
}
@keyframes term-result {
  0%, 38%   { opacity: 0; transform: translateY(4px); }
  46%, 90%  { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; }
}

/* Chips drift gently around the window. */
.is-animated .float-chip { animation: chip-drift 6s ease-in-out infinite; }
.is-animated .fc2 { animation-delay: -2s; }
.is-animated .fc3 { animation-delay: -4s; }
@keyframes chip-drift { 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .is-animated .code-line,
  .is-animated .code-term .t-line,
  .is-animated .code-term .t-prompt,
  .is-animated .float-chip,
  .code-term .t-cursor,
  .is-animated .scan-body > .scan-row,
  .is-animated .scan-row b,
  .is-animated .scan-verdict,
  .scan-row.s-alert i {
    animation: none;
    clip-path: none;
    opacity: 1;
    transform: none;
  }
  .is-animated .scan-body::after { animation: none; opacity: 0; }
  .is-animated .mig-old,
  .is-animated .mig-body > div {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .is-animated .mig-pkt { animation: none; opacity: 0; }
}

/* full-width emphasis cards in 2-col grids */
.cards .card-wide,
.diff-grid .diff-wide { grid-column: 1 / -1; }

/* ---------- Security page (/services/security/) ---------- */
/* CSS scan-log mockup: reuses the .browser window chrome */
.scan-body {
  padding: 20px 20px 22px;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scan-row { display: flex; align-items: center; gap: 12px; }
.scan-row i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #3f4a68; }
.scan-row span { height: 8px; border-radius: 4px; background: #4a536e; }
.scan-row b {
  flex: none;
  margin-left: auto;
  width: 46px;
  height: 16px;
  border-radius: 999px;
  background: rgba(111, 191, 149, .16);
  box-shadow: inset 0 0 0 1px rgba(111, 191, 149, .5);
}
.scan-row.s-ok i { background: #6fbf95; }
.scan-row.s-alert i { background: #e0646a; animation: scan-pulse 1.8s ease-out infinite; }
.scan-row.s-alert b { background: rgba(224, 100, 106, .16); box-shadow: inset 0 0 0 1px rgba(224, 100, 106, .6); }
.scan-row.s-warn i { background: #e0a94e; }
.scan-row.s-warn b { background: rgba(224, 169, 78, .16); box-shadow: inset 0 0 0 1px rgba(224, 169, 78, .55); }
.scan-row.ind { padding-left: 26px; }
.scan-row.ind span { background: #39415c; }
.scan-verdict {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.scan-verdict .scan-row i { background: #6fbf95; }
.scan-verdict .scan-row span { background: #6fbf95; }
@keyframes scan-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 100, 106, .55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(224, 100, 106, 0); }
}

/* Animated variant (.is-animated on the security hero art): the scan log
 * prints itself in, status pills stamp on, a beam keeps sweeping the log,
 * and the green verdict lands last. */
.is-animated .scan-body > .scan-row {
  clip-path: inset(0 100% 0 0);
  animation: line-type .5s ease-out forwards;
}
.is-animated .scan-body > .scan-row:nth-child(1) { animation-delay: .15s; }
.is-animated .scan-body > .scan-row:nth-child(2) { animation-delay: .37s; }
.is-animated .scan-body > .scan-row:nth-child(3) { animation-delay: .59s; }
.is-animated .scan-body > .scan-row:nth-child(4) { animation-delay: .81s; }
.is-animated .scan-body > .scan-row:nth-child(5) { animation-delay: 1.03s; }
.is-animated .scan-body > .scan-row:nth-child(6) { animation-delay: 1.25s; }
.is-animated .scan-body > .scan-row:nth-child(7) { animation-delay: 1.47s; }

/* Status pills pop on shortly after their row prints. */
.is-animated .scan-row b {
  opacity: 0;
  transform: scale(.4);
  animation: pill-stamp .35s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.is-animated .scan-body > .scan-row:nth-child(1) b { animation-delay: .7s; }
.is-animated .scan-body > .scan-row:nth-child(2) b { animation-delay: .92s; }
.is-animated .scan-body > .scan-row:nth-child(3) b { animation-delay: 1.14s; }
.is-animated .scan-body > .scan-row:nth-child(6) b { animation-delay: 1.8s; }
.is-animated .scan-body > .scan-row:nth-child(7) b { animation-delay: 2.02s; }
@keyframes pill-stamp {
  0% { opacity: 0; transform: scale(.4); }
  70% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

/* The alert pill keeps glowing after it lands. */
.is-animated .scan-row.s-alert b {
  animation: pill-stamp .35s cubic-bezier(.34, 1.56, .64, 1) 1.14s forwards,
             alert-glow 2.8s ease-in-out 1.6s infinite;
}
@keyframes alert-glow {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(224, 100, 106, .6), 0 0 0 0 rgba(224, 100, 106, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(224, 100, 106, .95), 0 0 12px 2px rgba(224, 100, 106, .35); }
}

/* Verdict rises in once the scan has printed. */
.is-animated .scan-verdict {
  opacity: 0;
  animation: verdict-in .6s ease-out 2.5s forwards;
}
@keyframes verdict-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Sweep beam loops down the log for as long as the page is open. */
.scan-body { position: relative; }
.is-animated .scan-body::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 6%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(111, 191, 149, .65), transparent);
  opacity: 0;
  animation: scan-sweep 5s ease-in-out 3s infinite;
}
@keyframes scan-sweep {
  0% { top: 5%; opacity: 0; }
  8% { opacity: .9; }
  62% { opacity: .9; }
  72%, 100% { top: 93%; opacity: 0; }
}

/* ---------- Migrations page (/services/migrations/) ---------- */
/* "Site in transit" mockup: two browser windows; content lifts out of the
 * dull old site, cargo packets cross the dashed route, the new site fills
 * up and goes live, then the loop resets. */
.mig-stage { position: relative; aspect-ratio: 10 / 8.6; }
.mig-win { position: absolute; }
.mig-old { top: 0; left: 0; width: 56%; z-index: 1; }
.mig-new { bottom: 0; right: 0; width: 64%; z-index: 3; box-shadow: 0 28px 70px -14px rgba(10, 14, 24, .65); }
.mig-old .browser-bar { background: #e3e1d8; }
.mig-old .bb-url { background: #efeee8; border-color: #d6d3c6; }
.mig-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mig-old .mig-body { background: #dfddd3; }
.mig-new .mig-body { background: var(--white); }

.mig-nav { display: flex; align-items: center; gap: 8px; }
.mig-nav i { width: 16px; height: 16px; border-radius: 5px; flex: none; }
.mig-nav span { height: 7px; border-radius: 4px; width: 34%; }
.mig-nav b { width: 40px; height: 14px; border-radius: 999px; margin-left: auto; }
.mig-hero { border-radius: 9px; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 7px; }
.mig-hero span { height: 8px; border-radius: 4px; width: 64%; }
.mig-hero span.short { width: 42%; }
.mig-hero b { width: 52px; height: 14px; border-radius: 999px; margin-top: 4px; }
.mig-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mig-cards b { height: 34px; border-radius: 7px; }

/* the old platform: dated and gray */
.mig-old .mig-nav i, .mig-old .mig-nav b, .mig-old .mig-hero b { background: #b1ae9f; }
.mig-old .mig-nav span, .mig-old .mig-hero span { background: #c2bfb1; }
.mig-old .mig-hero { background: #d3d1c5; }
.mig-old .mig-cards b { background: #cbc8bc; }

/* the new site: the pagelift palette */
.mig-new .mig-nav i { background: var(--red); }
.mig-new .mig-nav span { background: var(--mist); }
.mig-new .mig-nav b { background: var(--navy); }
.mig-new .mig-hero { background: linear-gradient(135deg, #fdf3ef, #f4ede1 55%, #eaf2ec); }
.mig-new .mig-hero span { background: #aeb7ca; }
.mig-new .mig-hero b { background: var(--red); box-shadow: 0 5px 12px rgba(196, 59, 64, .35); }
.mig-new .mig-cards b { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mig-live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(111, 191, 149, .14);
  box-shadow: inset 0 0 0 1px rgba(111, 191, 149, .5);
}
.mig-live i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4c9c72; }
.mig-live span { width: 44%; height: 7px; border-radius: 4px; background: #4c9c72; }

/* dashed route the cargo packets travel */
.mig-route {
  position: absolute;
  z-index: 2;
  top: 36%;
  left: 42%;
  width: 40%;
  border-top: 2px dashed rgba(255, 255, 255, .3);
  transform: rotate(26deg);
  transform-origin: left center;
}
.mig-pkt { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 4px; opacity: 0; }
.mig-art .float-chip { z-index: 4; }
.mig-art .fc3 { bottom: -30px; right: 14%; }
.pk-1 { background: #e0646a; }
.pk-2 { background: #e0a94e; }
.pk-3 { background: #6fbf95; }

/* One shared 12s loop: three pieces of the old site depart in turn, a packet
 * crosses per piece, the matching piece lands in the new site, the old window
 * dims, the green live bar pops, hold, reset. */
.is-animated .mo-1 { animation: mig-depart-1 12s ease-in-out infinite; }
.is-animated .mo-2 { animation: mig-depart-2 12s ease-in-out infinite; }
.is-animated .mo-3 { animation: mig-depart-3 12s ease-in-out infinite; }
@keyframes mig-depart-1 {
  0%, 10% { opacity: 1; transform: none; }
  16% { opacity: 0; transform: translate(20px, 8px) scale(.8); }
  20%, 90% { opacity: .22; transform: none; }
  96%, 100% { opacity: 1; transform: none; }
}
@keyframes mig-depart-2 {
  0%, 22% { opacity: 1; transform: none; }
  28% { opacity: 0; transform: translate(20px, 8px) scale(.8); }
  32%, 90% { opacity: .22; transform: none; }
  96%, 100% { opacity: 1; transform: none; }
}
@keyframes mig-depart-3 {
  0%, 34% { opacity: 1; transform: none; }
  40% { opacity: 0; transform: translate(20px, 8px) scale(.8); }
  44%, 90% { opacity: .22; transform: none; }
  96%, 100% { opacity: 1; transform: none; }
}

.is-animated .mn-1 { animation: mig-arrive-1 12s ease-in-out infinite; }
.is-animated .mn-2 { animation: mig-arrive-2 12s ease-in-out infinite; }
.is-animated .mn-3 { animation: mig-arrive-3 12s ease-in-out infinite; }
.is-animated .mn-4 { animation: mig-live-in 12s ease-in-out infinite; }
@keyframes mig-arrive-1 {
  0%, 14% { opacity: 0; transform: translate(-18px, -8px) scale(.8); }
  20%, 90% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translate(-18px, -8px) scale(.8); }
}
@keyframes mig-arrive-2 {
  0%, 26% { opacity: 0; transform: translate(-18px, -8px) scale(.8); }
  32%, 90% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translate(-18px, -8px) scale(.8); }
}
@keyframes mig-arrive-3 {
  0%, 38% { opacity: 0; transform: translate(-18px, -8px) scale(.8); }
  44%, 90% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translate(-18px, -8px) scale(.8); }
}
@keyframes mig-live-in {
  0%, 48% { opacity: 0; transform: scale(.7); }
  53% { opacity: 1; transform: scale(1.06); }
  56%, 90% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(.7); }
}

.is-animated .mig-old { animation: mig-old-dim 12s ease-in-out infinite; }
@keyframes mig-old-dim {
  0%, 44% { opacity: 1; }
  52%, 88% { opacity: .55; }
  96%, 100% { opacity: 1; }
}

.is-animated .pk-1 { animation: mig-pkt-1 12s ease-in-out infinite; }
.is-animated .pk-2 { animation: mig-pkt-2 12s ease-in-out infinite; }
.is-animated .pk-3 { animation: mig-pkt-3 12s ease-in-out infinite; }
@keyframes mig-pkt-1 {
  0%, 10% { opacity: 0; left: 0%; }
  12% { opacity: 1; }
  18% { opacity: 1; }
  20%, 100% { opacity: 0; left: 92%; }
}
@keyframes mig-pkt-2 {
  0%, 22% { opacity: 0; left: 0%; }
  24% { opacity: 1; }
  30% { opacity: 1; }
  32%, 100% { opacity: 0; left: 92%; }
}
@keyframes mig-pkt-3 {
  0%, 34% { opacity: 0; left: 0%; }
  36% { opacity: 1; }
  42% { opacity: 1; }
  44%, 100% { opacity: 0; left: 92%; }
}

/* "when custom makes sense" checklist */
.fit-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 48px;
  margin: 36px 0 32px;
}
.fit-list li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--text-md); color: var(--ink); font-weight: 500; }
.fit-list svg { width: 20px; height: 20px; color: #4c9c72; flex: none; margin-top: 4px; }

/* honesty callout */
.callout {
  border-left: 4px solid var(--red);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  font-size: var(--text-md);
  color: var(--slate);
}
.callout strong { color: var(--navy); }

@media (max-width: 640px) {
  .fit-list { grid-template-columns: 1fr; }
}

/* ---- WP theme: services not built yet (progress tracking) ---- */
.mega-item.mi-missing { opacity: .5; cursor: default; }
.mega-item.mi-missing:hover { background: none; box-shadow: none; }
.mega-item.mi-missing .mi-title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.mega-item.mi-missing:hover .mi-title { color: inherit; }
.card .read-more.rm-missing { text-decoration: line-through; opacity: .5; cursor: default; }
.card .read-more.rm-missing:hover { text-decoration: line-through; }
.chip.chip-missing { opacity: .5; text-decoration: line-through; cursor: default; }

/* ---- Hosting page: CSS server-rack mockup (reuses .browser chrome) ---- */
.srv-body {
  background: var(--navy-deep);
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.srv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.srv-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #9aa3b8;
}
.srv-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9aa3b8;
}
.srv-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fbf95;
  animation: panel-pulse 2s ease-in-out infinite;
}
.srv-unit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  background: #2b3245;
}
.su-leds { display: flex; gap: 7px; }
.su-leds i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fbf95;
  box-shadow: 0 0 6px rgba(111, 191, 149, .6);
  animation: srv-led 3.2s steps(1) infinite;
  animation-delay: calc(var(--i, 0) * -.45s);
}
.su-leds i.su-amber { background: #e0a94e; box-shadow: 0 0 6px rgba(224, 169, 78, .55); }
.su-slots { display: flex; gap: 6px; margin-left: 2px; }
.su-slots i { width: 22px; height: 14px; border-radius: 3px; background: #3a415a; border: 1px solid rgba(255, 255, 255, .07); }
.su-eq { display: flex; align-items: flex-end; gap: 4px; height: 20px; margin-left: auto; }
.su-eq i {
  width: 5px;
  height: 100%;
  border-radius: 2px;
  background: #4a536e;
  transform-origin: bottom;
  animation: srv-eq 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.23s);
}
.srv-stats {
  margin-top: 2px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ss-row { display: flex; align-items: center; gap: 12px; }
.ss-label, .ss-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #9aa3b8;
  flex: none;
}
.ss-label { width: 46px; }
.ss-val { color: #6fbf95; font-weight: 600; }
.ss-ticks { display: flex; gap: 3px; flex: 1; }
.ss-ticks i {
  flex: 1;
  height: 14px;
  border-radius: 2px;
  background: #4c9c72;
  animation: srv-tick 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.12s);
}
.ss-track { flex: 1; height: 8px; border-radius: 4px; background: #3a415a; overflow: hidden; }
.ss-fill {
  display: block;
  height: 100%;
  width: 22%;
  border-radius: 4px;
  background: #6fbf95;
  animation: srv-load 3.4s ease-in-out infinite;
}
@keyframes srv-led { 0%, 86% { opacity: 1; } 90%, 94% { opacity: .25; } 98%, 100% { opacity: 1; } }
@keyframes srv-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes srv-tick { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes srv-load { 0%, 100% { width: 22%; } 45% { width: 38%; } 70% { width: 28%; } }

/* 4- and 6-step variants of the process timeline */
.timeline.t-4 { grid-template-columns: repeat(4, 1fr); }
.timeline.t-6 { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.timeline.t-6::before { display: none; }

/* ---- SEO page: CSS SERP mockup (reuses .browser chrome) ---- */
.serp-body { background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.serp-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.serp-search svg { width: 16px; height: 16px; color: #8b93a9; flex: none; }
.ss-q { width: 46%; height: 9px; border-radius: 5px; background: #c9cfdd; }
.ss-caret { width: 2px; height: 15px; background: var(--red); animation: term-blink 1.1s steps(1) infinite; }
.serp-results { display: flex; flex-direction: column; gap: 12px; }
.serp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.sr-fav { flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--mist); }
.sr-you-fav { background: var(--red); }
.sr-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sr-title { height: 9px; width: 56%; border-radius: 5px; background: #8fa9d8; }
.sr-line { height: 7px; width: 82%; border-radius: 4px; background: #e0e4ed; }
.serp-you { position: relative; z-index: 1; border-color: rgba(196, 59, 64, .45); box-shadow: 0 4px 14px rgba(196, 59, 64, .16); }
.serp-you .sr-title { background: var(--red); opacity: .75; }
.sr-up {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #3d8a63;
  background: rgba(111, 191, 149, .16);
  border-radius: 999px;
  padding: 3px 9px;
}
.sr-up svg { width: 13px; height: 13px; }
/* your result climbs two slots to #1, holds, then the demo resets */
.serp-you { animation: serp-rise 9s ease-in-out infinite; }
.serp-row.sr-shift { animation: serp-fall 9s ease-in-out infinite; }
@keyframes serp-rise {
  0%, 16%   { transform: translateY(0); opacity: 1; }
  30%, 88%  { transform: translateY(-116px); opacity: 1; }
  94%       { transform: translateY(-116px); opacity: 0; }
  95%       { transform: translateY(0); opacity: 0; }
  100%      { transform: translateY(0); opacity: 1; }
}
@keyframes serp-fall {
  0%, 16%   { transform: translateY(0); opacity: 1; }
  30%, 88%  { transform: translateY(58px); opacity: 1; }
  94%       { transform: translateY(58px); opacity: 0; }
  95%       { transform: translateY(0); opacity: 0; }
  100%      { transform: translateY(0); opacity: 1; }
}
.serp-you .sr-up { animation: sr-up-reveal 9s ease-in-out infinite; }
@keyframes sr-up-reveal {
  0%, 28%  { opacity: 0; }
  36%, 88% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
.serp-graph {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 72px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.serp-graph i {
  flex: 1;
  height: var(--h, 30%);
  border-radius: 3px 3px 0 0;
  background: #c9cfdd;
  animation: srv-tick 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.2s);
}
.serp-graph i:nth-last-child(-n+3) { background: #4c9c72; }
.sg-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #3d8a63;
  background: rgba(111, 191, 149, .16);
  border-radius: 999px;
  padding: 2px 9px;
}

/* ---- AEO page: CSS AI-chat mockup (reuses .browser chrome) ---- */
.ai-body { background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ai-user {
  align-self: flex-end;
  width: 62%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
  background: var(--navy);
  border-radius: 14px 14px 4px 14px;
}
.au-line { height: 8px; border-radius: 4px; background: #7d879f; width: 92%; }
.au-line.au-short { width: 58%; }
.ai-bot { display: flex; align-items: flex-start; gap: 10px; }
.ai-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-avatar svg { width: 15px; height: 15px; color: #fff; }
.ai-answer {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  box-shadow: var(--shadow-sm);
  min-height: 148px;
}
.ai-dots { position: absolute; top: 18px; left: 16px; display: flex; gap: 5px; animation: aeo-dots 11s ease infinite; }
.ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: #aeb7ca; animation: aeo-bounce .9s ease-in-out infinite; }
.ai-dots i:nth-child(2) { animation-delay: .15s; }
.ai-dots i:nth-child(3) { animation-delay: .3s; }
.aa-line { height: 8px; border-radius: 4px; background: #dfe3ec; }
.aa-l1 { width: 92%; animation: aeo-e1 11s ease infinite; }
.aa-l2 { width: 74%; animation: aeo-e2 11s ease infinite; }
.aa-l4 { width: 84%; animation: aeo-e4 11s ease infinite; }
.aa-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid rgba(196, 59, 64, .4);
  border-radius: 999px;
  background: rgba(196, 59, 64, .07);
  animation: aeo-eb 11s ease infinite;
}
.ab-fav { width: 14px; height: 14px; border-radius: 5px; background: var(--red); }
.ab-name { width: 64px; height: 8px; border-radius: 4px; background: var(--red); opacity: .65; }
.aa-brand svg { width: 13px; height: 13px; color: #3d8a63; }
.aa-sources {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  animation: aeo-e5 11s ease infinite;
}
.as-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a9;
  margin-right: 2px;
}
.aa-sources i { width: 16px; height: 16px; border-radius: 6px; background: var(--mist); border: 1px solid var(--line); }
.aa-sources i.as-you { background: var(--red); border-color: var(--red); box-shadow: 0 0 8px rgba(196, 59, 64, .4); }
.ai-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.ai-q { width: 34%; height: 8px; border-radius: 4px; background: #c9cfdd; }
/* the answer assembles line by line, holds, then the demo resets */
@keyframes aeo-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes aeo-dots { 0%, 12% { opacity: 1; } 15%, 100% { opacity: 0; } }
@keyframes aeo-e1 { 0%, 15% { opacity: 0; transform: translateY(4px); } 18%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes aeo-e2 { 0%, 24% { opacity: 0; transform: translateY(4px); } 27%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes aeo-eb { 0%, 33% { opacity: 0; transform: scale(.7); } 38%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes aeo-e4 { 0%, 44% { opacity: 0; transform: translateY(4px); } 47%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes aeo-e5 { 0%, 54% { opacity: 0; } 58%, 91% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* ---------- Simple nav dropdown (Resources) ---------- */
/* .has-drop items also carry .has-mega so the caret + full-height trigger
   styles apply; the panel itself is a compact card instead of the megamenu */
.has-drop { position: relative; }
.drop {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 300px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -12px rgba(32, 38, 54, .18);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  /* same forgiving close delay as the megamenu */
  transition: opacity .18s ease .25s, transform .18s ease .25s, visibility .18s .25s;
  pointer-events: none;
}
.has-drop:hover .drop,
.has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.drop ul { list-style: none; }
.drop li + li { margin-top: 2px; }
.drop a { display: block; padding: 10px 14px; border-radius: 10px; transition: background .14s ease; }
.drop a:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.drop-title { display: block; font-weight: 600; font-size: var(--text-sm); color: var(--navy); line-height: 1.35; }
.drop a:hover .drop-title { color: var(--red); }
.drop-desc { display: block; font-size: var(--text-xs); color: var(--slate); line-height: 1.45; }

/* ---------- Single post: hero ---------- */
.post-hero { padding-bottom: 68px; }
.post-hero-cat {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e0646a;
  background: rgba(224, 100, 106, .14);
  border: 1px solid rgba(224, 100, 106, .35);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.post-hero-cat:hover { color: #fff; border-color: #e0646a; }

/* byline row: author, published / updated dates, reading time */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; color: #c3cadb; font-size: var(--text-sm); }
.post-meta a { color: #fff; }
.pm-author { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }
.pm-author:hover span { color: #e0646a; }
.pm-author img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.pm-item { display: inline-flex; align-items: center; gap: 7px; }
.pm-item svg { width: 15px; height: 15px; stroke-width: 1.75; opacity: .7; }
.pm-updated { color: #6fbf95; }
.pm-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .3); }

/* ---------- Single post: article shell ---------- */
.post-article { padding: 56px 0 84px; }
.post-featured { margin: 0 0 56px; position: relative; z-index: 2; }
.post-featured img { width: 100%; border-radius: 18px; box-shadow: 0 24px 64px -12px rgba(10, 14, 24, .35); }
/* when there's a featured image, deepen the hero and pull the image up over it */
body:has(.post-featured) .post-hero { padding-bottom: 140px; }
body:has(.post-featured) .post-featured { margin-top: -104px; }

/* ---------- Single post: content typography ---------- */
.post-content { line-height: 1.75; }
.post-content > *:first-child { margin-top: 0; }
.post-content p { margin: 0 0 22px; }
.post-content > p:first-of-type { font-size: var(--text-lg); color: var(--ink); }
.post-content a { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(196, 59, 64, .35); text-underline-offset: 3px; transition: text-decoration-color .14s ease; }
.post-content a:hover { text-decoration-color: var(--red); }
.post-content strong { color: var(--navy); }

.post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 44px 0 16px;
}
.post-content h2 { font-size: clamp(24px, 3vw, 30px); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 18px; }
.post-content h5 { font-size: var(--text-md); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.post-content h6 { font-size: var(--text-sm); color: var(--slate); text-transform: uppercase; letter-spacing: .08em; }

/* lists: red square bullets, navy counters */
.post-content ul, .post-content ol { margin: 0 0 22px; padding-left: 26px; }
.post-content li { margin-bottom: 10px; }
.post-content li > ul, .post-content li > ol { margin: 10px 0 0; }
.post-content ul li::marker { color: var(--red); content: "\25AA\00A0\00A0"; }
.post-content ul ul li::marker { content: "\25AB\00A0\00A0"; color: var(--slate); }
.post-content ol { counter-reset: pl-ol; list-style: none; }
.post-content ol li { counter-increment: pl-ol; position: relative; padding-left: 8px; }
.post-content ol > li::before {
  content: counter(pl-ol);
  position: absolute;
  left: -26px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-content ol ol > li::before { background: var(--mist); color: var(--navy); }

/* blockquote: committed cream block with an oversized quote mark */
.post-content blockquote {
  position: relative;
  margin: 32px 0;
  padding: 26px 30px 26px 34px;
  background: var(--cream);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 1;
  color: rgba(196, 59, 64, .16);
}
.post-content blockquote p { font-size: var(--text-lg); color: var(--navy); font-weight: 500; margin-bottom: 14px; }
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content blockquote cite { display: block; font-style: normal; font-size: var(--text-sm); color: var(--slate); margin-top: 12px; }
.post-content blockquote cite::before { content: "\2014\00A0"; }

/* code: inline chips and navy terminal blocks */
.post-content code, .post-content kbd {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85em;
}
.post-content code { background: var(--mist); color: var(--red-dark); padding: 3px 7px; border-radius: 6px; }
.post-content kbd { background: var(--white); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--navy); }
.post-content pre {
  background: var(--navy-deep);
  color: #dfe3ee;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 22px;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  line-height: 1.6;
  font-size: var(--text-sm);
}
.post-content pre code { background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }

/* tables */
.post-content table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: var(--text-sm); }
.post-content th, .post-content td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-content thead th, .post-content table tr:first-child th { background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 600; border-color: var(--navy); }
.post-content tbody tr:nth-child(even) { background: var(--paper); }
.post-content .wp-block-table { margin: 0 0 22px; overflow-x: auto; }
.post-content .wp-block-table table { margin: 0; }

/* images, figures, embeds */
.post-content img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 0 auto; }
.post-content figure, .post-content .wp-caption { margin: 32px auto; max-width: 100%; }
.post-content figcaption, .post-content .wp-caption-text { font-size: var(--text-xs); color: var(--slate); text-align: center; margin-top: 10px; }
.post-content .alignleft { float: left; margin: 6px 28px 18px 0; }
.post-content .alignright { float: right; margin: 6px 0 18px 28px; }
.post-content .aligncenter { margin-left: auto; margin-right: auto; }
.post-content iframe { max-width: 100%; }

/* misc elements */
.post-content hr { border: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--red); margin: 44px auto; }
.post-content mark { background: rgba(240, 180, 41, .28); padding: 1px 5px; border-radius: 4px; }
.post-content dl { margin: 0 0 22px; }
.post-content dt { font-weight: 600; color: var(--navy); }
.post-content dd { margin: 4px 0 14px 22px; color: var(--slate); }
.post-content details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); padding: 16px 22px; margin: 0 0 22px; }
.post-content summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.post-content abbr[title] { text-decoration-color: var(--red); text-underline-offset: 3px; cursor: help; }

/* ---------- Single post: tags, author bio, prev/next ---------- */
.post-tags { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pt-label { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-right: 6px; }
.pt-label svg { width: 14px; height: 14px; }

.author-bio {
  margin: 40px 0 0;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--shadow-md);
}
.bio-avatar { flex: none; }
.bio-avatar img { width: 88px; height: 88px; border-radius: 50%; border: 3px solid rgba(224, 100, 106, .6); }
.bio-label { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e0646a; margin-bottom: 6px; }
.bio-name { color: #fff; font-size: 22px; margin-bottom: 8px; }
.bio-desc { color: #c3cadb; font-size: var(--text-sm); margin-bottom: 12px; }
.bio-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--text-sm); }
.bio-links a { color: #fff; font-weight: 600; }
.bio-links a:hover { color: #e0646a; }

.post-nav { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn-link { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 18px 22px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.pn-link:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pn-next { text-align: right; }
.pn-label { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.pn-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--navy); line-height: 1.4; }
.pn-link:hover .pn-title { color: var(--red); }

/* ---------- Related posts / post grids ---------- */
.related-posts { padding: 72px 0 84px; background: var(--paper); border-top: 1px solid var(--line); }
.related-posts h2 { margin-bottom: 32px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.pc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.pc-placeholder svg { width: 42px; height: 42px; stroke-width: 1.4; color: #e0646a; }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.pc-cat { display: inline-block; align-self: flex-start; font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.pc-title { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.pc-title a { color: var(--navy); }
.pc-title a:hover { color: var(--red); }
.pc-excerpt { font-size: var(--text-sm); color: var(--slate); margin-bottom: 18px; }
.pc-meta { display: flex; align-items: center; gap: 9px; margin-top: auto; font-size: var(--text-xs); color: var(--slate); }
.pc-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--slate); }

/* ---------- Blog index ---------- */
.blog-listing { padding: 64px 0 84px; }
.blog-empty { color: var(--slate); font-size: var(--text-lg); }

/* featured latest post: two-panel card above the grid */
.post-feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-feature:hover { transform: translateY(-3px); }
.pf-media { display: block; min-height: 320px; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; }
.pf-media .pc-placeholder { min-height: 320px; }
.pf-body { display: flex; flex-direction: column; padding: 38px 42px; }
.pf-tag { align-self: flex-start; font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); border-radius: 999px; padding: 4px 13px; margin-bottom: 16px; }
.post-feature .pc-cat { margin-bottom: 8px; }
.pf-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 14px; }
.post-feature:hover .pf-title { color: var(--red); }
.pf-excerpt { color: var(--slate); font-size: var(--text-md); margin-bottom: 20px; }
.post-feature .pc-meta { margin-top: auto; }

/* pagination */
.blog-pagination { margin-top: 52px; }
.blog-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.blog-pagination .page-numbers {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: border-color .15s ease, transform .15s ease;
}
.blog-pagination a.page-numbers:hover { border-color: var(--navy); transform: translateY(-1px); }
.blog-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Blog responsive ---------- */
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .post-feature { grid-template-columns: 1fr; }
  .pf-media { min-height: 240px; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
  .author-bio { flex-direction: column; padding: 26px 24px; }
  .post-article { padding-top: 40px; }
  .post-featured { margin-bottom: 36px; }
  body:has(.post-featured) .post-hero { padding-bottom: 108px; }
  .pf-body { padding: 28px 24px; }
  .post-content .alignleft, .post-content .alignright { float: none; margin: 24px auto; }
}

/* ---- Content Marketing page: CSS article-editor mockup (reuses .browser chrome) ---- */
.doc-body { background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.doc-page {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc-title { height: 14px; width: 68%; border-radius: 6px; background: #aeb7ca; }
.doc-line { height: 8px; width: var(--w, 90%); border-radius: 4px; background: #dfe3ec; transform-origin: left center; }
.doc-img {
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fdf3ef, #f4ede1 55%, #eaf2ec);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9852f;
}
.doc-img svg { width: 20px; height: 20px; }
.doc-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.ds-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a9;
  flex: none;
}
.ds-track { flex: 1; height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.ds-fill { display: block; height: 100%; border-radius: 4px; animation: doc-seo 12s ease-in-out infinite; }
.ds-pub {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #3d8a63;
  background: rgba(111, 191, 149, .16);
  border-radius: 999px;
  padding: 3px 10px;
  animation: doc-pub 12s ease-in-out infinite;
}
.ds-pub svg { width: 13px; height: 13px; }
/* the article types itself: title, lines, image, then score + publish; loop resets */
.doc-title { animation: doc-t 12s ease-in-out infinite; }
.doc-line.dw1 { animation: doc-w1 12s ease-in-out infinite; }
.doc-line.dw2 { animation: doc-w2 12s ease-in-out infinite; }
.doc-img.dw3  { animation: doc-w3 12s ease-in-out infinite; }
.doc-line.dw4 { animation: doc-w4 12s ease-in-out infinite; }
.doc-line.dw5 { animation: doc-w5 12s ease-in-out infinite; }
@keyframes doc-t  { 0%, 2%  { opacity: 0; transform: scaleX(0); } 7%, 91%  { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; } }
@keyframes doc-w1 { 0%, 9%  { opacity: 0; transform: scaleX(0); } 15%, 91% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; } }
@keyframes doc-w2 { 0%, 17% { opacity: 0; transform: scaleX(0); } 23%, 91% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; } }
@keyframes doc-w3 { 0%, 26% { opacity: 0; transform: translateY(6px); } 32%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes doc-w4 { 0%, 35% { opacity: 0; transform: scaleX(0); } 41%, 91% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; } }
@keyframes doc-w5 { 0%, 43% { opacity: 0; transform: scaleX(0); } 49%, 91% { opacity: 1; transform: scaleX(1); } 96%, 100% { opacity: 0; } }
@keyframes doc-seo {
  0%, 50%   { width: 10%; background: #e0a94e; }
  62%       { width: 55%; background: #e0a94e; }
  70%, 91%  { width: 92%; background: #6fbf95; }
  96%, 100% { width: 10%; background: #e0a94e; }
}
@keyframes doc-pub { 0%, 74% { opacity: .25; transform: scale(.92); } 79%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: .25; } }


/* ---- Link Building page: link-constellation mockup (SVG in .browser chrome) ---- */
.lb-body { background: var(--navy-deep); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.lb-svg { display: block; width: 100%; height: auto; }
.lb-site circle { fill: #2b3245; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.lb-site rect { fill: #8b93a9; }
.lb-you { fill: var(--red); filter: drop-shadow(0 0 10px rgba(196, 59, 64, .55)); }
.lb-ring {
  fill: none;
  stroke: rgba(224, 100, 106, .45);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: lb-ring 2.6s ease-in-out infinite;
}
@keyframes lb-ring { 0%, 100% { transform: scale(.92); opacity: .4; } 50% { transform: scale(1.1); opacity: 1; } }
/* each earned link draws in, then the demo resets */
.lb-line { stroke: #6fbf95; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.lb-line.ll1 { animation: lb-d1 12s linear infinite; }
.lb-line.ll2 { animation: lb-d2 12s linear infinite; }
.lb-line.ll3 { animation: lb-d3 12s linear infinite; }
.lb-line.ll4 { animation: lb-d4 12s linear infinite; }
.lb-line.ll5 { animation: lb-d5 12s linear infinite; }
@keyframes lb-d1 { 0%, 6%  { stroke-dashoffset: 1; opacity: .85; } 12%, 91% { stroke-dashoffset: 0; opacity: .85; } 95% { stroke-dashoffset: 0; opacity: 0; } 96%, 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes lb-d2 { 0%, 20% { stroke-dashoffset: 1; opacity: .85; } 26%, 91% { stroke-dashoffset: 0; opacity: .85; } 95% { stroke-dashoffset: 0; opacity: 0; } 96%, 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes lb-d3 { 0%, 36% { stroke-dashoffset: 1; opacity: .85; } 42%, 91% { stroke-dashoffset: 0; opacity: .85; } 95% { stroke-dashoffset: 0; opacity: 0; } 96%, 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes lb-d4 { 0%, 52% { stroke-dashoffset: 1; opacity: .85; } 58%, 91% { stroke-dashoffset: 0; opacity: .85; } 95% { stroke-dashoffset: 0; opacity: 0; } 96%, 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes lb-d5 { 0%, 66% { stroke-dashoffset: 1; opacity: .85; } 72%, 91% { stroke-dashoffset: 0; opacity: .85; } 95% { stroke-dashoffset: 0; opacity: 0; } 96%, 100% { stroke-dashoffset: 1; opacity: 0; } }
.lb-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
}
.lb-label, .lb-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #9aa3b8;
  flex: none;
}
.lb-val { color: #6fbf95; font-weight: 600; }
.lb-track { flex: 1; height: 8px; border-radius: 4px; background: #3a415a; overflow: hidden; }
.lb-fill { display: block; height: 100%; border-radius: 4px; background: #6fbf95; animation: lb-fill 12s ease-in-out infinite; }
@keyframes lb-fill {
  0%, 6%    { width: 12%; }
  12%, 20%  { width: 27%; }
  26%, 36%  { width: 42%; }
  42%, 52%  { width: 57%; }
  58%, 66%  { width: 72%; }
  72%, 91%  { width: 88%; }
  96%, 100% { width: 12%; }
}

/* ---- PPC page: CSS ads-console mockup (reuses .browser chrome) ---- */
.ads-body { background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ads-ad {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  animation: ppc-ad 11s ease-in-out infinite;
}
.aa-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a9;
}
.aa-tag i { width: 6px; height: 6px; border-radius: 50%; background: #6fbf95; animation: panel-pulse 2s ease-in-out infinite; }
.aa-head { height: 11px; width: 62%; border-radius: 5px; background: #8fa9d8; }
.aa-desc { height: 7px; width: 92%; border-radius: 4px; background: #e0e4ed; }
.aa-desc.aa-short { width: 70%; }
.aa-cta { width: 84px; height: 22px; border-radius: 999px; background: var(--red); margin-top: 3px; box-shadow: 0 4px 10px rgba(196, 59, 64, .3); }
.ads-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.as-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
}
.as-lab {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a9;
}
.as-delta { display: flex; align-items: center; }
.as-delta svg { width: 15px; height: 15px; }
.as-delta.as-good { color: #3d8a63; }
.as-tile.at1 { animation: ppc-t1 11s ease-in-out infinite; }
.as-tile.at2 { animation: ppc-t2 11s ease-in-out infinite; }
.as-tile.at3 { animation: ppc-t3 11s ease-in-out infinite; }
.ads-chart {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 14px 16px 12px;
  height: 92px;
}
.ac-bars { position: absolute; inset: 14px 16px 12px; display: flex; align-items: flex-end; gap: 10px; animation: ppc-chart 11s ease-in-out infinite; }
.ac-pair { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.ac-pair i { flex: 1; height: var(--h, 30%); border-radius: 3px 3px 0 0; }
.ac-spend { background: #c9cfdd; }
.ac-return { background: #6fbf95; }
.ac-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #3d8a63;
  background: rgba(111, 191, 149, .16);
  border-radius: 999px;
  padding: 2px 9px;
  animation: ppc-badge 11s ease-in-out infinite;
}
.ads-legend { display: flex; gap: 18px; padding: 0 4px; }
.ads-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a9;
}
.ads-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-spend { background: #c9cfdd; }
.lg-return { background: #6fbf95; }
/* the ad runs, metrics land, return outgrows spend; loop resets */
@keyframes ppc-ad    { 0%, 3%  { opacity: 0; transform: translateY(6px); } 8%, 91%  { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes ppc-t1    { 0%, 12% { opacity: 0; transform: scale(.92); } 16%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes ppc-t2    { 0%, 17% { opacity: 0; transform: scale(.92); } 21%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes ppc-t3    { 0%, 22% { opacity: 0; transform: scale(.92); } 26%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes ppc-chart { 0%, 28% { clip-path: inset(0 100% 0 0); opacity: 1; } 62%, 91% { clip-path: inset(0 0 0 0); opacity: 1; } 96%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes ppc-badge { 0%, 66% { opacity: 0; transform: scale(.8); } 72%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }

/* ---- Social Media page: shared-calendar mockup (reuses .browser chrome) ---- */
.soc-body { background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.soc-cal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 14px 16px 16px;
}
.soc-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 10px; }
.soc-days span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a9;
  text-align: center;
}
.soc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.soc-cell {
  min-height: 118px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.soc-post {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
  padding: 8px;
}
.sp-dot { width: 8px; height: 8px; border-radius: 50%; }
.sp-dot.d-blue { background: #4867aa; }
.sp-dot.d-pink { background: #c13584; }
.sp-dot.d-sky  { background: #4aa3d8; }
.sp-dot.d-ink  { background: #2b3245; }
.sp-line { height: 6px; border-radius: 3px; background: #dfe3ec; }
.sp-line.sp-short { width: 64%; }
/* posts land on the calendar one by one, then one ships */
.soc-post.sp1 { animation: soc-p1 12s ease-in-out infinite; }
.soc-post.sp2 { animation: soc-p2 12s ease-in-out infinite; }
.soc-post.sp3 { animation: soc-p3 12s ease-in-out infinite; }
.soc-post.sp4 { animation: soc-p4 12s ease-in-out infinite; }
.soc-post.sp5 { animation: soc-p5 12s ease-in-out infinite; }
.soc-post.sp6 { animation: soc-p6 12s ease-in-out infinite; }
@keyframes soc-p1 { 0%, 6%  { opacity: 0; transform: translateY(-8px); } 10%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes soc-p2 { 0%, 13% { opacity: 0; transform: translateY(-8px); } 17%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes soc-p3 { 0%, 20% { opacity: 0; transform: translateY(-8px); } 24%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes soc-p4 { 0%, 27% { opacity: 0; transform: translateY(-8px); } 31%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes soc-p5 { 0%, 34% { opacity: 0; transform: translateY(-8px); } 38%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes soc-p6 { 0%, 41% { opacity: 0; transform: translateY(-8px); } 45%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.soc-toast {
  position: absolute;
  top: 30px;
  right: 32px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #3d8a63;
  background: var(--white);
  border: 1px solid rgba(111, 191, 149, .5);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 6px 12px;
  animation: soc-toast 12s ease-in-out infinite;
}
.soc-toast svg { width: 13px; height: 13px; }
@keyframes soc-toast { 0%, 52% { opacity: 0; transform: translateY(-6px); } 57%, 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; } }
.soc-engage {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 10px 16px;
  position: relative;
}
.soc-hearts { position: relative; width: 20px; height: 20px; flex: none; }
.soc-hearts i { position: absolute; inset: 0; display: flex; color: var(--red); opacity: 0; }
.soc-hearts svg { width: 15px; height: 15px; fill: currentColor; }
.soc-hearts .sh1 { animation: soc-heart 3.6s ease-in infinite; }
.soc-hearts .sh2 { animation: soc-heart 3.6s ease-in infinite; animation-delay: 1.2s; }
.soc-hearts .sh3 { animation: soc-heart 3.6s ease-in infinite; animation-delay: 2.4s; }
@keyframes soc-heart {
  0%       { opacity: 0; transform: translateY(6px) scale(.8); }
  12%      { opacity: 1; }
  38%      { opacity: 0; transform: translateY(-14px) scale(1.05); }
  39%, 100% { opacity: 0; transform: translateY(6px) scale(.8); }
}
.se-label, .se-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a9;
  flex: none;
}
.se-val { color: #3d8a63; font-weight: 700; }
.se-track { flex: 1; height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.se-fill { display: block; height: 100%; border-radius: 4px; background: #6fbf95; animation: soc-fill 12s ease-in-out infinite; }
@keyframes soc-fill { 0%, 8% { width: 14%; } 50% { width: 46%; } 62%, 91% { width: 84%; } 96%, 100% { width: 14%; } }

/* bold list inside dark .band sections (client-name roll calls) */
.band .band-list { list-style: none; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 10px; }
.band .band-list li { color: #c3cadb; font-size: var(--text-md); padding-left: 22px; position: relative; }
.band .band-list li::before { content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
.band .band-list strong { color: #fff; }

/* ---- AI Automation page: pipeline mockup (reuses .browser chrome) ---- */
.aiw-body { background: var(--navy-deep); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.aiw-canvas { display: flex; align-items: center; gap: 14px; }
.aiw-col { display: flex; flex-direction: column; gap: 9px; width: 128px; flex: none; }
.aiw-col-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9aa3b8;
  margin-bottom: 2px;
}
.aiw-task, .aiw-out {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #2b3245;
  border: 1px solid rgba(255, 255, 255, .09);
}
.at-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e0a94e; }
.aiw-task:nth-child(3) .at-dot { animation: panel-pulse 1.6s ease-in-out infinite; }
.aiw-task:nth-child(4) .at-dot { animation: panel-pulse 1.6s ease-in-out infinite; animation-delay: .5s; }
.at-line { height: 7px; border-radius: 4px; background: #4a536e; flex: 1; }
.at-line.at-short { flex: none; width: 60%; }
.aiw-pipe {
  position: relative;
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #4a536e 0 6px, transparent 6px 12px);
  animation: aiw-march .6s linear infinite;
}
@keyframes aiw-march { to { background-position: 12px 0; } }
.aiw-pipe::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fbf95;
  box-shadow: 0 0 8px rgba(111, 191, 149, .7);
  animation: aiw-dot 2.2s ease-in-out infinite;
}
@keyframes aiw-dot { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.aiw-core-wrap { position: relative; flex: none; }
.aiw-ring {
  position: absolute;
  inset: -9px;
  border-radius: 18px;
  border: 1.5px solid rgba(224, 100, 106, .45);
  animation: lb-ring 2.6s ease-in-out infinite;
}
.aiw-core {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 22px rgba(196, 59, 64, .55);
}
.aiw-core svg { width: 24px; height: 24px; }
.ao-check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(111, 191, 149, .2);
  color: #6fbf95;
}
.ao-check svg { width: 11px; height: 11px; }
/* tasks come out done one at a time; loop resets */
.aiw-out.ao1 .ao-check { animation: aiw-c1 12s ease-in-out infinite; }
.aiw-out.ao2 .ao-check { animation: aiw-c2 12s ease-in-out infinite; }
.aiw-out.ao3 .ao-check { animation: aiw-c3 12s ease-in-out infinite; }
@keyframes aiw-c1 { 0%, 18% { opacity: 0; transform: scale(.5); } 23%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes aiw-c2 { 0%, 44% { opacity: 0; transform: scale(.5); } 49%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes aiw-c3 { 0%, 70% { opacity: 0; transform: scale(.5); } 75%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
.aiw-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
}
.aiw-label, .aiw-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #9aa3b8;
  flex: none;
}
.aiw-val { color: #6fbf95; font-weight: 600; }
.aiw-track { flex: 1; height: 8px; border-radius: 4px; background: #3a415a; overflow: hidden; }
.aiw-fill { display: block; height: 100%; border-radius: 4px; background: #6fbf95; animation: aiw-fill 12s ease-in-out infinite; }
@keyframes aiw-fill {
  0%, 18%   { width: 10%; }
  23%, 44%  { width: 34%; }
  49%, 70%  { width: 58%; }
  75%, 91%  { width: 86%; }
  96%, 100% { width: 10%; }
}

/* ---------- Related Services (bottom of service pages) ---------- */
.related-services { padding: 72px 0 84px; background: var(--paper); border-top: 1px solid var(--line); }
.related-services h2 { margin-bottom: 32px; }
/* whole card is the link; keep the front-page card look */
.card-link { color: inherit; }
.card-link h3 { transition: color .15s ease; }
.card-link:hover h3 { color: var(--red); }
.card-link .read-more { color: var(--red); font-weight: 600; font-size: var(--text-sm); grid-column: 1 / -1; grid-row: 3; margin-top: 16px; }
.card-link:hover .read-more { text-decoration: underline; }

/* ---- Whitelabel page: backstage-to-branded-report mockup (reuses .browser chrome) ---- */
.wl-body { background: var(--paper); padding: 18px 20px 20px; display: flex; flex-direction: column; }
.wl-backstage {
  background: var(--navy-deep);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.wl-bs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.wl-bs-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #9aa3b8;
}
.wl-bs-title svg { width: 13px; height: 13px; }
.wl-bs-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9aa3b8;
}
.wl-bs-live i { width: 7px; height: 7px; border-radius: 50%; background: #e0646a; animation: panel-pulse 2s ease-in-out infinite; }
.wl-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #2b3245;
  border: 1px solid rgba(255, 255, 255, .09);
}
.wl-t-line { flex: 1; height: 7px; border-radius: 4px; background: #4a536e; }
.wl-t-line.wl-t-short { flex: none; width: 58%; }
.wl-t-check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(111, 191, 149, .2);
  color: #6fbf95;
}
.wl-t-check svg { width: 10px; height: 10px; }
.wl-task.wt1 .wl-t-check { animation: aiw-c1 12s ease-in-out infinite; }
.wl-task.wt2 .wl-t-check { animation: aiw-c2 12s ease-in-out infinite; }
.wl-task.wt3 .wl-t-check { animation: wl-c3 12s ease-in-out infinite; }
@keyframes wl-c3 { 0%, 32% { opacity: 0; transform: scale(.5); } 37%, 91% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
.wl-flow {
  width: 2px;
  height: 26px;
  margin: 4px auto;
  background: repeating-linear-gradient(180deg, #c1c7d6 0 6px, transparent 6px 12px);
  animation: wl-march .6s linear infinite;
  position: relative;
}
@keyframes wl-march { to { background-position: 0 12px; } }
.wl-flow::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fbf95;
  box-shadow: 0 0 8px rgba(111, 191, 149, .7);
  animation: wl-drop 2.2s ease-in-out infinite;
}
@keyframes wl-drop { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
.wl-report {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wl-r-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.wl-brand { display: flex; align-items: center; gap: 8px; animation: wl-brand 12s ease-in-out infinite; }
.wl-b-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--navy); }
.wl-b-lines { display: flex; flex-direction: column; gap: 4px; }
.wl-b-lines i { display: block; height: 6px; border-radius: 3px; background: #aeb7ca; }
.wl-b-lines i:first-child { width: 54px; background: var(--navy); opacity: .8; }
.wl-b-lines i:last-child { width: 38px; }
.wl-b-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a9;
  animation: wl-brand 12s ease-in-out infinite;
}
@keyframes wl-brand { 0%, 44% { opacity: 0; transform: translateY(4px); } 50%, 91% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.wl-r-line { height: 8px; width: var(--w, 90%); border-radius: 4px; background: #dfe3ec; }
.wl-stamp {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #3d8a63;
  background: rgba(111, 191, 149, .16);
  border: 1px solid rgba(111, 191, 149, .5);
  border-radius: 999px;
  padding: 4px 11px;
  transform: rotate(-4deg);
  animation: wl-stamp 12s ease-in-out infinite;
}
.wl-stamp svg { width: 13px; height: 13px; }
@keyframes wl-stamp {
  0%, 64%  { opacity: 0; transform: rotate(-4deg) scale(1.6); }
  70%, 91% { opacity: 1; transform: rotate(-4deg) scale(1); }
  96%, 100% { opacity: 0; }
}

/* ---- Our Projects page: full project writeups ---- */
.proj-list { display: flex; flex-direction: column; gap: 28px; }
.proj-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px 60px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 44px 48px;
  scroll-margin-top: 120px;
}
.proj-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.proj-head h2 { font-size: 24px; margin: 0; }
.proj-id .plink { font-weight: 600; font-size: var(--text-sm); }
.proj-id .plink:hover { text-decoration: underline; }
.proj-proves { margin-top: 26px; }
.proj-proves-label {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8b93a9;
  margin-bottom: 10px;
}
.proj-proves .chip-row { margin: 0; }
.proj-tagline { font-weight: 600; color: var(--navy); }
.proj-prose p { margin-bottom: 14px; }
.proj-prose p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .proj-row { grid-template-columns: 1fr; padding: 32px 26px; }
}

/* ---- Center the shared page hero (projects, services overview, 404) ---- */
.page-hero .wrap { text-align: center; }
.page-hero .lede { margin-left: auto; margin-right: auto; }
.page-hero .svc-icon { margin-left: auto; margin-right: auto; }

/* ---- Footer redesign: brand + link columns + bottom bar ---- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px 56px;
  padding-bottom: 44px;
}
.footer-brand img { height: 32px; width: auto; filter: brightness(0) invert(1) opacity(.9); margin-bottom: 18px; }
.footer-brand p { color: #8b93a9; font-size: var(--text-sm); max-width: 34ch; margin-bottom: 16px; }
.footer-mail { color: #dfe3ee; font-size: var(--text-sm); font-weight: 600; }
.footer-mail:hover { color: #fff; text-decoration: underline; }
.footer-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e88a8d;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #aeb5c8; font-size: var(--text-sm); }
.footer-col a:hover { color: #fff; }
.footer-col .footer-all { color: #dfe3ee; font-weight: 600; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 26px;
}
.footer-bottom p { color: #8b93a9; font-size: var(--text-sm); margin: 0; }
.footer-top { color: #8b93a9; font-size: var(--text-sm); }
.footer-top:hover { color: #fff; }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- Contact page: Calendly embed ---- */
.contact-body { padding: 72px 0 96px; background: var(--paper); }
.contact-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px;
}
/* desktop: lift the card up over the dark hero, with extra hero depth to compensate */
@media (min-width: 901px) {
  .contact-panel { margin-top: -108px; }
  .page-hero-contact { padding-bottom: 108px; }
}
.contact-note { text-align: center; margin-top: 28px; color: var(--slate); font-size: var(--text-sm); }

/* ---------- Mobile nav panel ----------
   Kept at the end of the file: these rules restyle .mega/.drop and must win
   over the desktop hover styles declared earlier. The hamburger itself is in
   the Header section. */
@media (max-width: 860px) {
  body.nav-open { overflow: hidden; }
  .nav-toggle { display: flex; }
  .nav-cta-bar { display: inline-block; }

  /* the desktop backdrop blur makes <header> the containing block for
     fixed descendants, which would trap the panel inside the header box */
  header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .97);
  }

  /* full-screen panel below the sticky header (8px strip + 76px bar + 1px border) */
  .nav-links {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 10px 20px 48px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  body.nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }

  .nav-links > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav-links a { color: #fff; }
  .nav-links a:hover { color: #fff; }
  .nav-links > li > a {
    display: block;
    padding: 16px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-md);
  }

  /* parent rows: link + chevron button side by side, panel wraps below */
  .has-mega {
    align-self: auto;
    flex-wrap: wrap;
  }
  .has-mega > a { flex: 1; }
  .has-mega > a::after { display: none; }
  .sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -14px;
    background: none;
    border: 0;
    cursor: pointer;
    color: #aeb5c8;
  }
  .sub-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
  }
  li.sub-open > .sub-toggle::before { transform: rotate(225deg); }

  /* submenus become in-flow accordions; display:none overrides the
     desktop hover/focus opacity rules entirely */
  .mega,
  .drop {
    display: none;
    position: static;
    min-width: 0;
    width: 100%;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
  li.sub-open > .mega,
  li.sub-open > .drop { display: block; }
  /* the desktop hover/focus rules re-apply centering transforms and delays
     at (0,3,0) specificity; cancel them at equal specificity, later in file */
  .has-mega:hover .mega,
  .has-mega:focus-within .mega,
  .has-drop:hover .drop,
  .has-drop:focus-within .drop { transform: none; transition: none; }
  .has-mega:hover > a,
  .has-mega:focus-within > a { color: #fff; }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 20px;
  }
  .mega-label { margin-top: 20px; color: #e88a8d; border-color: rgba(255, 255, 255, .14); }
  .mega-col-stacked .mega-label,
  .mega-col-stacked .mega-label:first-child { margin-top: 20px; }
  .mega-item { padding: 9px 0; margin: 0; }
  .mega-item:hover { background: none; box-shadow: none; }
  .mega-item .mi-title { color: #fff; }
  .mega-item:hover .mi-title { color: #fff; }
  .mega-item .mi-desc { color: #aeb5c8; }
  .mi-missing .mi-title,
  .mi-missing .mi-desc { color: rgba(255, 255, 255, .38); }

  .drop { padding: 0; }
  .drop ul { padding: 0 0 18px; }
  .drop a { padding: 9px 0; }
  .drop a:hover { background: none; box-shadow: none; }
  .drop-title { color: #fff; }
  .drop a:hover .drop-title { color: #fff; }
  .drop-desc { color: #aeb5c8; }

  /* the CTA renders as a full-width button at the bottom of the panel */
  .nav-links > li:last-child { border-bottom: 0; margin-top: 24px; }
  .nav-links > li:last-child > a.nav-cta {
    display: block;
    text-align: center;
    padding: 14px 22px;
  }
}

@media (max-width: 420px) {
  .nav-logo img { height: 38px; }
  .nav-cta-bar { padding: 8px 16px; }
}

/* ---- Our Team page ---- */
.team-lead {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px 56px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 48px;
}
.team-photo img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-md); display: block; }
.team-role {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.team-bio h2 { margin-bottom: 16px; }
.team-bio p { margin-bottom: 14px; }
.team-bylines { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 12px; }
.team-bylines-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b93a9;
  margin-bottom: 18px;
}
.byline-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 56px; }
.byline { display: flex; align-items: center; gap: 18px; }
.byline-logo { flex: none; }
.byline-logo img { width: 98px; height: auto; display: block; border-radius: 8px; }
.byline p { margin: 0; font-size: var(--text-md); color: var(--slate); line-height: 1.55; }
.byline p a { font-weight: 600; }
/* team member cards below the founder lead card */
.team-members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 48px; }
.team-member {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px 34px;
}
/* name + role share one header line, role pushed to the right */
.tm-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tm-head h2, .tm-head h3 { margin: 0; font-size: clamp(24px, 2.8vw, 30px); }
/* founder lead card keeps its larger name but shares the one-line header */
.team-bio .tm-head h2 { font-size: clamp(28px, 4vw, 40px); }
.tm-head .team-role { margin: 0; }
.team-member p { color: var(--slate); font-size: var(--text-md); margin: 0; }
@media (max-width: 900px) {
  .team-lead { grid-template-columns: 1fr; padding: 30px 24px; }
  .team-photo { max-width: 320px; }
  .byline-list { grid-template-columns: 1fr; }
  .team-members { grid-template-columns: 1fr; }
}
