/* ===================================================================
   Shipright.space — "Lumen" theme
   Light, premium, restrained. Near-white canvas, near-black ink, one
   deliberate Cobalt Violet brand accent (Galaxy S26 Ultra), navy for structure.
   Separation by hairline borders and whitespace, not
   glass or shadow. Synthesis of Samsung discipline + Promethean calm +
   OneScreen's purposeful accent.
   Order: reset, tokens, base, layout, components, portfolio,
          utilities, animations, media queries.
   Type: Archivo (headings) + Inter (body).
   =================================================================== */

/* -------------------------------------------------------------------
   1. RESET
   ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input,
a {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

/* -------------------------------------------------------------------
   2. TOKENS
   ------------------------------------------------------------------- */
:root {
  /* Neutrals (cool gray ramp) */
  --canvas: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef0f4;
  --border: #e2e5eb;
  --border-strong: #cdd2db;
  --ink-muted: #5a6172;
  --ink-soft: #353b49;
  --ink: #0e1116;
  --navy: #101b2d;

  /* Accents */
  --accent: #4e447e;        /* Cobalt Violet (Galaxy S26 Ultra) — signature brand color */
  --accent-deep: #3e3666;   /* hover / pressed */
  --accent-tint: #efeef5;   /* subtle fills (flat, no gradients) */
  --accent-on-dark: #bcb6dc;/* violet legible on the navy band */
  --teal: #0f766e;          /* secondary — the QA / testing side */
  --teal-tint: #e6f4f2;

  /* Semantic */
  --info: #1d4ed8;
  --success: #15803d;
  --warning: #b45309;
  --error: #b91c1c;

  /* Typography */
  --font-heading: "Archivo", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --fs-base: 17px;

  /* Spacing (4 / 8 base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii (small, consistent) */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Elevation (used sparingly) */
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(14, 17, 22, 0.18);
  --ring: 0 0 0 3px rgba(78, 68, 126, 0.4);

  /* Motion */
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 320ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  /* Misc */
  --maxw: 1400px;
  --nav-h: 72px;
}

/* -------------------------------------------------------------------
   3. BASE
   ------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--ink-soft);
  background-color: var(--canvas);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--ink-soft);
}

strong {
  color: var(--ink);
  font-weight: 600;
}

::selection {
  background: var(--accent-tint);
  color: var(--accent-deep);
}

/* -------------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--loose {
  padding-block: clamp(80px, 12vw, 144px);
}

.section--tight {
  padding-block: clamp(48px, 7vw, 80px);
}

/* Light surface band — adds rhythm without a gradient blob */
.section--band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-7);
}

.section-head p {
  margin-top: var(--space-4);
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 560px;
}

header {
  position: relative;
  z-index: 3;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 300;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--dur) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

/* -------------------------------------------------------------------
   5. COMPONENTS
   ------------------------------------------------------------------- */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-standard),
    border-color var(--dur) var(--ease-standard),
    color var(--dur) var(--ease-standard),
    transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.btn-filled,
.btn-accent {
  background-color: var(--accent);
  color: #fff;
}

.btn-filled:hover,
.btn-accent:hover {
  background-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background-color: var(--canvas);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background-color: var(--surface);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* --- Eyebrow (letter-spaced label, no mono) --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--canvas);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-standard),
    box-shadow var(--dur) var(--ease-standard);
}

.site-nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-logo .logo-dot {
  color: var(--accent);
}

.nav-logo .logo-tld {
  font-weight: 600;
  color: var(--ink-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}

.nav-link {
  position: relative;
  padding-block: var(--space-2);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  transition: color var(--dur) var(--ease-standard);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--dur-slow) var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-link.is-active {
  color: var(--ink);
}

.nav-cta {
  display: none;
  background-color: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 0;
  transition: background-color var(--dur) var(--ease-standard),
    transform var(--dur) var(--ease-out);
}

.nav-cta:hover {
  background-color: var(--accent-deep);
  transform: translateY(-2px);
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  transition: transform var(--dur) var(--ease-standard),
    opacity var(--dur) var(--ease-standard);
}

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

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

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

/* Mobile overlay menu — sits BELOW the sticky nav (z-index 100) so the logo and
   the close (X) button stay visible and clickable while it's open. */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  padding: calc(var(--nav-h) + var(--space-6)) var(--space-6) var(--space-8);
  background-color: var(--canvas);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.nav-overlay.is-open {
  transform: translateX(0);
}

.nav-overlay a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--ink);
}

.nav-overlay a.is-active {
  color: var(--accent);
}

.nav-overlay .btn {
  align-self: flex-start;
  font-size: 1rem;
}

/* the filled button is an <a>, so override the overlay link colour */
.nav-overlay .btn-filled {
  color: #fff;
}

/* --- Hero --- */
.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
  width: 100%;
}

.hero-copy > * {
  opacity: 0;
}

.hero h1 {
  margin-bottom: 32px;
}

/* deliberate cobalt-violet underline behind the key verbs */
.hero h1 .hl {
  position: relative;
  white-space: nowrap;
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: 0.06em;
  height: 0.1em;
  background: var(--accent);
  border-radius: 2px;
  z-index: -1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* --- Step Ring Orbit (re-skinned for light; motion preserved) --- */
.oring-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  container-type: inline-size;
  --oaccent: var(--accent);
  --oink: #ffffff;
  --otrack: var(--border-strong);
  --oidle: var(--ink-muted);
}

.oring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.oring-track {
  fill: none;
  stroke: var(--otrack);
  stroke-width: 2;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
}

.oring-cap {
  fill: none;
  stroke: var(--oaccent);
  stroke-width: 9;
  stroke-linecap: round;
}

.oring-rot {
  transform-box: view-box;
  transform-origin: 380px 312px;
  transition: transform 0.9s cubic-bezier(0.6, 0, 0.2, 1);
}

.oring-upright {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.6, 0, 0.2, 1);
}

.oring-chip {
  fill: var(--oaccent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.oring-step.is-active .oring-chip {
  opacity: 1;
}

.oring-glyph {
  color: var(--oidle);
  transition: color 0.5s ease;
}

.oring-glyph g {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oring-step.is-active .oring-glyph {
  color: var(--oink);
}

/* clean white hub (no glass) */
.ohub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 51.4cqw;
  height: 51.4cqw;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.ohub-title {
  font-family: var(--font-heading);
  font-size: max(20px, 9cqw);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.ohub-pips {
  display: flex;
  gap: max(4px, 1.6cqw);
  justify-content: center;
  margin-top: 4cqw;
}

.ohub-pip {
  width: max(5px, 1.6cqw);
  height: max(5px, 1.6cqw);
  border-radius: 99px;
  background: var(--border-strong);
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    background 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.ohub-pip.is-active {
  width: max(16px, 5cqw);
  background: var(--oaccent);
}

@media (prefers-reduced-motion: no-preference) {
  .ohub-title.is-entering {
    animation: ohubIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes ohubIn {
  from { transform: translateY(9px); }
  to { transform: none; }
}

/* --- Stats strip --- */
.stats-strip {
  padding-block: 8px;
}

.stats-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-block: 44px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.stat-num::after {
  content: attr(data-suffix);
  color: var(--accent);
  font-size: 0.5em;
  margin-left: 2px;
  vertical-align: super;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* --- Results / metrics --- */
.results-split {
  display: grid;
  gap: var(--space-6);
}

.results-card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--canvas);
}

.result {
  padding: 32px 28px;
  border-bottom: 1px solid var(--border);
}

.result:last-child {
  border-bottom: none;
}

.result-client {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.result-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 3.4vw, 2.875rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.result-num::after {
  content: attr(data-suffix);
  color: var(--accent);
  font-size: 1em;
  margin-left: 1px;
}

.result-desc {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 24ch;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.testimonial {
  margin: 0;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.testimonial blockquote {
  position: relative;
  margin: 0 0 26px;
  padding-top: 28px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
}

.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: -2px;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
}

.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}

.testimonial-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
}

.testimonial-org {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --- Service rows (editorial list, not a 3-card grid) --- */
.card-grid {
  display: flex;
  flex-direction: column;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding-block: 40px;
  border-top: 1px solid var(--border);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.icon-circle svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* --- FAQ (hairline list, not frosted cards) --- */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform var(--dur) var(--ease-out);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 72ch;
}

/* --- CTA banner (cobalt-violet gradient anchor, Galaxy S26 finish) --- */
.cta-banner {
  background:
    radial-gradient(70% 120% at 80% 4%, rgba(116, 102, 174, 0.26), transparent 55%),
    linear-gradient(152deg, #1c1c44 0%, #2f2c5b 48%, #423d73 100%);
}

.cta-banner .container {
  text-align: center;
  padding-block: clamp(64px, 9vw, 104px);
  max-width: 760px;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.025em;
}

.cta-banner p {
  margin-top: 20px;
  margin-inline: auto;
  max-width: 520px;
  font-size: 1.0625rem;
  color: #cbc9e0;
}

.cta-banner .btn-accent {
  margin-top: 32px;
  background: #fff;
  color: var(--navy);
  font-size: 1rem;
  padding: 14px 28px;
}

.cta-banner .btn-accent:hover {
  background: var(--accent-on-dark);
  color: var(--navy);
}

/* --- Footer --- */
.site-footer {
  padding: 64px 0 48px;
  background: var(--canvas);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.footer-inner .nav-logo {
  font-size: 1.375rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  transition: color var(--dur) var(--ease-standard);
}

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

/* -------------------------------------------------------------------
   6. PORTFOLIO
   ------------------------------------------------------------------- */
.page-hero {
  padding-top: 56px;
}

.page-hero .eyebrow {
  margin-bottom: 20px;
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 560px;
}

.stat-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: var(--space-7);
}

.stat-card {
  padding: 28px;
  background-color: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.stat-card .stat-num {
  font-size: clamp(2.25rem, 4vw, 2.875rem);
}

.stat-card .stat-label {
  margin-top: 8px;
}

/* --- Filter bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-7);
}

.filter-btn {
  min-height: 42px;
  padding: 9px 18px;
  background-color: var(--canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: background-color var(--dur) var(--ease-standard),
    color var(--dur) var(--ease-standard),
    border-color var(--dur) var(--ease-standard);
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Project cards --- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background-color: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-standard),
    box-shadow var(--dur) var(--ease-out), opacity var(--dur) var(--ease-standard);
}

/* one restrained accent on every project card (the management navy), so the grid
   reads as intentional rather than a multicolour AI palette */
.project-card { --cat: var(--navy); --cat-tint: var(--surface-2); }

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.project-card.is-hidden {
  display: none;
}

.project-card.is-filtering {
  opacity: 0;
  transform: scale(0.99);
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.project-head .icon-circle {
  color: var(--cat, var(--accent));
}

.project-head .icon-circle svg {
  width: 26px;
  height: 26px;
}

.badge {
  font-family: var(--font-body);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cat, var(--accent));
  background-color: var(--cat-tint, var(--accent-tint));
  white-space: nowrap;
}

.project-card h3 {
  margin-bottom: var(--space-3);
}

.project-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

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

.no-scroll {
  overflow: hidden;
}

/* -------------------------------------------------------------------
   8. ANIMATIONS
   ------------------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp var(--dur-slow) var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.13s; }
.delay-3 { animation-delay: 0.22s; }
.delay-4 { animation-delay: 0.3s; }

/* Scroll reveal (subtle; JS staggers grid children via transition-delay) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-copy > * {
    opacity: 1;
  }

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

/* -------------------------------------------------------------------
   9. MEDIA QUERIES (mobile-first)
   ------------------------------------------------------------------- */
@media (min-width: 640px) {
  .stats-track {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .result {
    border-right: 1px solid var(--border);
  }

  .result:nth-child(2n) {
    border-right: none;
  }

  .result:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .result:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-end;
  }

  .footer-meta {
    align-items: flex-end;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }

  .nav-links {
    display: flex;
  }

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

  .nav-toggle {
    display: none;
  }

  .nav-overlay {
    display: none;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }

  /* service rows: title left, prose right, both top-aligned */
  .service-card {
    grid-template-columns: 4fr 8fr;
    column-gap: 56px;
    align-items: start;
    padding-block: 52px;
  }

  .service-card h3 {
    grid-column: 1;
  }

  .service-card p {
    grid-column: 2;
  }

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

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

@media (min-width: 900px) {
  .results-split {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: center;
  }

  .results-intro {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
