/* ==========================================================================
   Plorix corporate website — design system
   ========================================================================== */

:root {
  --ink-900: #0a1424;
  --ink-800: #101f36;
  --ink-700: #1b2f4d;
  --ink-600: #33455f;
  --ink-500: #5a6b83;
  --ink-400: #8494a8;
  --ink-300: #b9c4d1;
  --ink-200: #dde4ec;
  --ink-100: #eef2f7;
  --ink-050: #f6f8fb;
  --white: #ffffff;

  --brand-700: #0b4fa8;
  --brand-600: #1263cf;
  --brand-500: #1e7bef;
  --brand-400: #4d9bf7;
  --brand-100: #e4efff;

  --accent-500: #00b8a9;
  --accent-100: #d9f6f3;

  --warn-500: #d97706;
  --warn-100: #fdf0dc;
  --danger-500: #d13b3b;
  --danger-100: #fbe4e4;
  --success-500: #1a8f5c;
  --success-100: #dcf3e8;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(10, 20, 36, .06), 0 1px 3px rgba(10, 20, 36, .04);
  --shadow: 0 4px 12px rgba(10, 20, 36, .07), 0 2px 4px rgba(10, 20, 36, .04);
  --shadow-lg: 0 18px 44px rgba(10, 20, 36, .13);

  --container: 1180px;
  --header-h: 74px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------- base --- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }

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

hr { border: 0; border-top: 1px solid var(--ink-200); margin: 2.5rem 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink-900);
  color: var(--white);
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------------------------------------------------------- utilities --- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow { max-width: 820px; }

.section { padding: 5rem 0; }
.section-sm { padding: 3.25rem 0; }
.section-tint { background: var(--ink-050); }
.section-ink { background: var(--ink-900); color: var(--ink-300); }
.section-ink h2, .section-ink h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.06rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: .9rem;
}
.section-ink .eyebrow { color: var(--brand-400); }

.lead { font-size: 1.13rem; color: var(--ink-600); }

.muted { color: var(--ink-500); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.stack > * + * { margin-top: 1rem; }

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

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--ink-200);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink-900);
  text-decoration: none;
}
.brand:hover { color: var(--ink-900); text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-dot { color: var(--brand-500); }

/* Flex row so the nav links and the CTA button share one line. Without this the button,
   being a block sibling of the list, drops onto a second row under the menu. */
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-cta { flex: none; }
.header-cta .btn { white-space: nowrap; }

.nav-list {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: .55rem .62rem;
  border-radius: var(--radius-sm);
  font-size: .935rem;
  font-weight: 600;
  color: var(--ink-600);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { background: var(--ink-100); color: var(--ink-900); text-decoration: none; }
.nav-link.active { color: var(--brand-600); }

.nav-item { position: relative; }

.nav-item.has-menu > .nav-link::after {
  content: "";
  display: inline-block;
  width: .38em;
  height: .38em;
  margin-left: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 265px;
  padding: .5rem;
  margin: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.nav-item:hover > .nav-menu,
.nav-item:focus-within > .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
}
.nav-menu a:hover { background: var(--brand-100); color: var(--brand-700); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: .5rem;
  background: none;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  cursor: pointer;
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary { background: var(--brand-600); color: var(--white); }
.btn-primary:hover { background: var(--brand-700); color: var(--white); }

.btn-outline { background: transparent; border-color: var(--ink-300); color: var(--ink-700); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-700); background: var(--brand-100); }

.btn-light { background: var(--white); color: var(--ink-900); }
.btn-light:hover { background: var(--ink-100); color: var(--ink-900); }

.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }

.btn-danger { background: var(--danger-500); color: var(--white); }
.btn-danger:hover { background: #b32f2f; color: var(--white); }

.btn-sm { padding: .42rem .85rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.75rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink-900) 0%, var(--ink-800) 45%, var(--brand-700) 130%);
  color: var(--ink-300);
  padding: 5.5rem 0 5rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(30, 123, 239, .38), transparent 46%),
    radial-gradient(circle at 12% 88%, rgba(0, 184, 169, .22), transparent 42%);
  pointer-events: none;
}

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

.hero h1 { color: var(--white); max-width: 15ch; }
.hero-page h1 { max-width: 22ch; }

.hero-sub {
  max-width: 58ch;
  font-size: 1.14rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}

.hero-panel {
  padding: 1.6rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
}

.hero-panel h3 { font-size: 1rem; color: var(--white); margin-bottom: 1rem; }

.hero-panel-list { list-style: none; margin: 0; padding: 0; }
.hero-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .5rem 0;
  font-size: .93rem;
  color: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.hero-panel-list li:last-child { border-bottom: 0; }
.hero-panel-list .icon { flex: none; color: var(--accent-500); margin-top: 2px; }

.hero-page {
  padding: 3.5rem 0 3.25rem;
}
.hero-page .hero-sub { margin-bottom: 0; }

/* ------------------------------------------------------------ crumbs --- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; opacity: .5; }

/* -------------------------------------------------------------- cards --- */

.card {
  display: flex;
  flex-direction: column;
  padding: 1.65rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

a.card, .card-link { text-decoration: none; color: inherit; }
a.card:hover, .card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-400);
  text-decoration: none;
}

.card h3 { margin-bottom: .5rem; font-size: 1.12rem; }
.card p { color: var(--ink-500); font-size: .95rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 11px;
  background: var(--brand-100);
  color: var(--brand-600);
}

.card-more {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
a.card:hover .card-more .icon { transform: translateX(3px); }
.card-more .icon { transition: transform .18s ease; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .9rem;
}

/* ---------------------------------------------------------------- tag --- */

.tag {
  display: inline-block;
  padding: .22rem .6rem;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-600);
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.tag-brand { background: var(--brand-100); color: var(--brand-700); }
.tag-accent { background: var(--accent-100); color: #0a7b71; }

/* ------------------------------------------------------------ feature --- */

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .42rem 0;
  font-size: .96rem;
}
.feature-list .icon { flex: none; margin-top: 4px; color: var(--accent-500); }

.feature-columns { columns: 2; column-gap: 2.5rem; }
.feature-columns li { break-inside: avoid; }

/* ------------------------------------------------------------- steps --- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 1.4rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: .6rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--brand-500);
}

.steps strong { display: block; color: var(--ink-900); margin-bottom: .25rem; }
.steps span { font-size: .89rem; color: var(--ink-500); }

/* -------------------------------------------------------------- stats --- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stat-label { font-size: .9rem; color: var(--ink-400); }

/* ------------------------------------------------------------- techs --- */

.tech-group { margin-bottom: 2rem; }
.tech-group h3 {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: .9rem;
}
.tech-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.tech-chip {
  padding: .5rem 1rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-700);
}
.section-ink .tech-chip {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.9);
}

/* ------------------------------------------------------------ clients --- */

.client-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-item {
  display: grid;
  place-items: center;
  min-width: 130px;
  height: 76px;
  padding: .75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
}

.client-item a { display: grid; place-items: center; width: 100%; height: 100%; }

.client-logo {
  max-height: 46px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  /* Muted by default so mismatched logos read as one set; full colour on hover. */
  filter: grayscale(100%);
  opacity: .72;
  transition: filter .18s ease, opacity .18s ease;
}
.client-item:hover .client-logo { filter: none; opacity: 1; }

.client-wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink-600);
  text-align: center;
}
.client-item:hover .client-wordmark { color: var(--ink-900); }

.section-ink .client-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.section-ink .client-wordmark { color: rgba(255,255,255,.85); }

.client-strip-more { margin: 1.5rem 0 0; text-align: center; }
.client-strip-more .card-more { margin-top: 0; padding-top: 0; }

/* Client tiles on the /clients page — logo and name only. The mark sits in a fixed-height box so
   a mixed set of logos and monograms still lines up across the grid. */
.client-count {
  margin: 0 0 1.75rem;
  font-size: .87rem;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.15rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  /* Tiles arrive in sequence; the script replays this when the filter changes. */
  animation: client-tile-in .34s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.client-tile:hover {
  transform: translateY(-4px);
  border-color: var(--brand-400);
  box-shadow: var(--shadow);
}

/* Accent underline that fades in on hover. */
.client-tile::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-500));
  opacity: 0;
  transition: opacity .2s ease;
}
.client-tile:hover::after { opacity: 1; }

.client-tile-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 78px;
  padding: .5rem;
  background: linear-gradient(180deg, var(--ink-050), var(--white));
  border-radius: var(--radius);
}
.client-tile-mark .client-logo { max-height: 58px; max-width: 100%; }
.client-tile:hover .client-logo { filter: none; opacity: 1; }

.client-monogram {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(18, 99, 207, .25);
}

.client-tile-name {
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-800);
}
.client-tile-name a { color: inherit; }
.client-tile-name a:hover { color: var(--brand-600); }

@keyframes client-tile-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .client-tile { animation: none; }
  .client-tile:hover { transform: none; }
}

.client-empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.65rem;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  color: var(--ink-500);
  text-align: center;
}

/* -------------------------------------------------------- testimonial --- */

.quote {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--radius);
}
.quote blockquote { margin: 0 0 1rem; font-size: 1rem; color: var(--ink-700); }
.quote cite { font-style: normal; font-size: .88rem; color: var(--ink-500); }
.quote cite strong { display: block; color: var(--ink-900); }

/* -------------------------------------------------------------- prose --- */

.prose { font-size: 1.03rem; color: var(--ink-600); }
.prose h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: .35em; }

/* ------------------------------------------------------------ project --- */

.project-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin: -1.65rem -1.65rem 1.3rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(140deg, var(--ink-800), var(--brand-700));
  color: rgba(255, 255, 255, .92);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; }

.team-photo {
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ink-200);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.project-gallery-item { margin: 0; }
.project-gallery-item a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  background: var(--ink-050);
  box-shadow: var(--shadow-sm);
}
.project-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .25s ease;
}
.project-gallery-item a:hover img { transform: scale(1.03); }
.project-gallery-item figcaption {
  margin-top: .5rem;
  font-size: .86rem;
  color: var(--ink-500);
}

.project-shot {
  margin: 0 0 2.5rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-050);
  box-shadow: var(--shadow-sm);
}
/* Capped so a very tall or very small screenshot cannot blow out the page. */
.project-shot img { display: block; width: 100%; max-height: 620px; object-fit: contain; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
}
.spec-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: .25rem;
}
.spec-value { font-weight: 600; color: var(--ink-900); font-size: .96rem; }

/* --------------------------------------------------------------- plan --- */

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.plan-featured {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -.75rem;
  left: 1.9rem;
  padding: .2rem .75rem;
  background: var(--brand-600);
  color: var(--white);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan h3 { margin-bottom: .3rem; }
.plan-audience { font-size: .92rem; color: var(--ink-500); min-height: 3em; }
.plan-price {
  margin: 1rem 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ink-200);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-900);
}
.plan .btn { margin-top: auto; }
.plan .feature-list { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------- cta --- */

.cta-band {
  padding: 3.25rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink-900), var(--brand-700));
  color: rgba(255, 255, 255, .85);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 60ch; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-band .btn-row { justify-content: center; }

/* -------------------------------------------------------------- forms --- */

.form-field { margin-bottom: 1.15rem; }

.form-field label,
.field-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-700);
}

.required-mark { color: var(--danger-500); }

.form-control {
  display: block;
  width: 100%;
  padding: .68rem .85rem;
  font-family: inherit;
  font-size: .96rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(30, 123, 239, .16);
}
.form-control::placeholder { color: var(--ink-400); }

textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-hint { display: block; margin-top: .3rem; font-size: .82rem; color: var(--ink-500); }

/* .field-validation-error / .input-validation-error are applied by jQuery unobtrusive validation. */
.field-error,
.field-validation-error { display: block; margin-top: .3rem; font-size: .84rem; color: var(--danger-500); }
.field-validation-valid:empty { display: none; }
.form-control.input-invalid,
.form-control.input-validation-error { border-color: var(--danger-500); }

/* Password field with a reveal button sitting inside the input */
.password-field { position: relative; }
.password-field .form-control { padding-right: 2.85rem; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: .3rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink-500);
  cursor: pointer;
}
.password-toggle:hover { color: var(--ink-900); background: var(--ink-100); }
.password-toggle .icon { display: block; }

/* Gallery editor in the admin form */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: .4rem 0 1rem;
}

.gallery-item {
  padding: .6rem;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--ink-200);
  margin-bottom: .5rem;
}
.gallery-item .form-control { font-size: .85rem; padding: .4rem .55rem; }

.gallery-item-row { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.gallery-item-row .form-control { width: 4.5rem; }

.gallery-remove {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--danger-500);
  cursor: pointer;
}
.gallery-remove input { accent-color: var(--danger-500); }

.form-check { display: flex; align-items: center; gap: .55rem; }
.form-check input { width: 17px; height: 17px; accent-color: var(--brand-600); }
.form-check label { margin-bottom: 0; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* -------------------------------------------------------------- alert --- */

.alert {
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: .93rem;
}
.alert-success { background: var(--success-100); border-color: #b6e2cd; color: #12633f; }
.alert-danger { background: var(--danger-100); border-color: #f2c2c2; color: #9c2c2c; }
.alert-warning { background: var(--warn-100); border-color: #f3ddb6; color: #8a5108; }
.alert-info { background: var(--brand-100); border-color: #c2dcff; color: var(--brand-700); }
.alert ul { margin: .4rem 0 0; padding-left: 1.15rem; }

/* ------------------------------------------------------------ contact --- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 3rem;
  align-items: start;
}

.contact-card {
  padding: 1.75rem;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
}

.contact-item { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--ink-200); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon { flex: none; color: var(--brand-600); margin-top: 3px; }
.contact-item dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.contact-item dd { margin: 0; font-size: .96rem; color: var(--ink-800); white-space: pre-line; }

.map-frame {
  width: 100%;
  height: 320px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
}

.social-row { display: flex; gap: .6rem; }
.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  color: var(--ink-300);
}
.social-row a:hover { background: var(--brand-600); color: var(--white); }

/* ---------------------------------------------------------------- toc --- */

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.pill {
  padding: .4rem .95rem;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-600);
  background: var(--white);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.pill:hover { border-color: var(--brand-500); color: var(--brand-700); text-decoration: none; }
.pill.active { background: var(--brand-600); border-color: var(--brand-600); color: var(--white); }

/* Count badge inside a filter pill (client industries). */
.pill-count {
  margin-left: .35rem;
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}
.pill:hover .pill-count { color: var(--brand-500); }
.pill.active .pill-count { color: rgba(255, 255, 255, .75); }

/* ------------------------------------------------------------- footer --- */

.site-footer {
  padding: 3.75rem 0 1.75rem;
  background: var(--ink-900);
  color: var(--ink-400);
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--ink-400); }
.site-footer a:hover { color: var(--white); text-decoration: none; }

.footer-brand { color: var(--white); }
.footer-brand .brand { color: var(--white); margin-bottom: .9rem; }
.footer-about { color: var(--ink-400); max-width: 40ch; margin-bottom: 1.25rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: .87rem;
  color: var(--ink-500);
}

/* -------------------------------------------------------- error page --- */

.error-page { padding: 6rem 0; text-align: center; }
.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--brand-100);
}

/* ============================================================== admin === */

.admin-body { background: var(--ink-050); }

.admin-shell { display: grid; grid-template-columns: 245px 1fr; min-height: 100vh; }

.admin-side {
  background: var(--ink-900);
  color: var(--ink-400);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}
.admin-side .brand { color: var(--white); font-size: 1.2rem; margin-bottom: 1.75rem; padding-inline: .5rem; }

.admin-nav { list-style: none; margin: 0; padding: 0; flex: 1; }
.admin-nav li { margin-bottom: .15rem; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .58rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-400);
  font-size: .92rem;
  font-weight: 500;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: var(--white); text-decoration: none; }
.admin-nav a.active { background: var(--brand-600); color: var(--white); }
.admin-nav .icon { flex: none; opacity: .85; }

.admin-nav-head {
  padding: 1.25rem .75rem .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.admin-main { display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--ink-200);
}
.admin-topbar h1 { font-size: 1.25rem; margin: 0; }
.admin-topbar .spacer { margin-left: auto; }

.admin-content { padding: 2rem; flex: 1; }

.admin-panel {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.admin-panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--ink-200);
}
.admin-panel-head h2 { margin: 0; font-size: 1.05rem; }
.admin-panel-head .spacer { margin-left: auto; }
.admin-panel-body { padding: 1.5rem; }

.admin-hint { font-size: .9rem; color: var(--ink-500); margin: -.4rem 0 1.25rem; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.kpi {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.kpi-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: .4rem;
}
.kpi-value { font-size: 1.9rem; font-weight: 800; color: var(--ink-900); line-height: 1.1; }
.kpi-note { font-size: .84rem; color: var(--ink-500); margin-top: .25rem; }

.table-wrap { overflow-x: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th {
  text-align: left;
  padding: .7rem 1rem;
  background: var(--ink-050);
  border-bottom: 1px solid var(--ink-200);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}
.data-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--ink-050); }
.data-table .col-actions { text-align: right; white-space: nowrap; }
.data-table .cell-truncate { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
}
.badge-yes { background: var(--success-100); color: #12633f; }
.badge-no { background: var(--ink-100); color: var(--ink-500); }
.badge-new { background: var(--brand-100); color: var(--brand-700); }
.badge-progress { background: var(--warn-100); color: #8a5108; }
.badge-won { background: var(--success-100); color: #12633f; }
.badge-lost { background: var(--danger-100); color: #9c2c2c; }

.inline-form { display: inline; }

/* Image upload field in the admin edit form */
.image-field { display: flex; gap: 1.25rem; align-items: flex-start; }

.image-preview {
  flex: none;
  display: grid;
  place-items: center;
  width: 150px;
  height: 105px;
  overflow: hidden;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-empty { font-size: .8rem; color: var(--ink-400); }

.image-controls { flex: 1; min-width: 0; }
.image-controls input[type="file"] { padding: .5rem; font-size: .9rem; cursor: pointer; }

@media (max-width: 620px) {
  .image-field { flex-direction: column; }
  .image-preview { width: 100%; height: 160px; }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filter-bar .form-control { width: auto; min-width: 200px; }

.pager { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; margin-top: 1.25rem; }

.pipeline { display: grid; gap: .55rem; }
.pipeline-row { display: grid; grid-template-columns: 175px 1fr 44px; gap: .75rem; align-items: center; font-size: .89rem; }
.pipeline-bar { height: 9px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.pipeline-fill { height: 100%; background: var(--brand-500); border-radius: 999px; }
.pipeline-count { text-align: right; font-weight: 700; color: var(--ink-900); }

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  background: linear-gradient(160deg, var(--ink-900), var(--brand-700));
}
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.auth-card .brand { margin-bottom: 1.5rem; }

.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }

.definition-list { margin: 0; }
.definition-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--ink-100); }
.definition-list > div:last-child { border-bottom: 0; }
.definition-list dt { font-size: .82rem; font-weight: 700; color: var(--ink-500); }
.definition-list dd { margin: 0; color: var(--ink-800); word-break: break-word; }

.message-box {
  padding: 1rem 1.15rem;
  background: var(--ink-050);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  white-space: pre-line;
  font-size: .95rem;
}

/* -------------------------------------------------------- responsive --- */

@media (max-width: 992px) {
  .hero-grid, .contact-layout, .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .85rem 1.25rem; }
  .admin-side .brand { margin-bottom: 0; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1 1 100%; }
  .admin-nav-head { display: none; }
  .admin-nav a { padding: .4rem .65rem; font-size: .86rem; }
  .admin-content, .admin-topbar { padding-inline: 1.25rem; }
}

@media (max-width: 1200px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: .75rem 1.25rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: .7rem .5rem; }
  .nav-item.has-menu > .nav-link::after { float: right; margin-top: .5em; }

  .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--ink-200);
    border-radius: 0;
    padding: 0 0 .5rem .75rem;
    margin-left: .5rem;
    min-width: 0;
    display: none;
  }
  .nav-item.expanded > .nav-menu { display: block; }

  .header-cta { margin-top: .75rem; }
  .header-cta .btn { width: 100%; }

  .feature-columns { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .cta-band { padding: 2.25rem 1.5rem; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero { padding: 3.5rem 0; }
  .pipeline-row { grid-template-columns: 120px 1fr 36px; font-size: .82rem; }
  .definition-list > div { grid-template-columns: 1fr; gap: .1rem; }
}

@media print {
  .site-header, .site-footer, .admin-side, .btn { display: none !important; }
}
