/* ============================================================
   Valley PC Ltd — design system
   Palette: navy #03274A · orange #F05836 · white
   Type: Bricolage Grotesque (display) · Inter (body) · JetBrains Mono (labels)
   ============================================================ */
:root {
  --navy:       #03274A;
  --navy-deep:  #021B33;
  --navy-soft:  #0A3E6E;
  --orange:     #F05836;
  --orange-dark:#C43D18; /* ≥4.5:1 on white — used wherever orange carries small text */
  --orange-deep:#A93512;
  --paper:      #FFFFFF;
  --paper-2:    #F4F7FA;
  --ink:        #122A42;
  --muted:      #4A6078;
  --line:       #DCE5EE;
  --dark-text:  #C6D6E4;
  --dark-muted: #8FA9BF;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(3, 39, 74, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
.vpc-site, .vpc-site *, .vpc-site *::before, .vpc-site *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

.vpc-site {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.vpc-site img { max-width: 100%; height: auto; display: block; }
.vpc-site a { color: var(--orange-dark); }

.vpc-site h1, .vpc-site h2, .vpc-site h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.vpc-site h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); font-weight: 800; }
.vpc-site h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
.vpc-site h3 { font-size: 1.2rem; font-weight: 700; }

.vpc-site .accent { color: var(--orange); }

.vpc-site .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.vpc-site .sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.vpc-site .skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--orange-dark); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 600;
  transition: top 0.2s;
}
.vpc-site .skip-link:focus { top: 0; }

.vpc-site :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.vpc-site .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.vpc-site .eyebrow.light { color: #FF7D5C; }

.vpc-site .section { padding: 96px 0; }
.vpc-site .section-sub { max-width: 640px; color: var(--muted); margin: 14px 0 48px; }
.vpc-site .section-sub--wide { max-width: none; }
.vpc-site .title-wide { text-wrap: initial; }

/* ---------- Buttons ---------- */
.vpc-site .btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s, color 0.25s, border-color 0.25s;
}
.vpc-site .btn:hover { transform: translateY(-2px); }
.vpc-site .btn:active { transform: translateY(0); }

.vpc-site .btn-accent {
  background: var(--orange-dark); color: #fff;
  box-shadow: 0 8px 20px rgba(240, 88, 54, 0.35);
}
.vpc-site .btn-accent:hover { background: var(--orange-deep); box-shadow: 0 12px 26px rgba(240, 88, 54, 0.45); }

.vpc-site .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.vpc-site .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.vpc-site .btn-light { background: #fff; color: var(--navy); }
.vpc-site .btn-light:hover { background: var(--paper-2); }

.vpc-site .btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.vpc-site .btn-ghost-light:hover { border-color: #fff; }

.vpc-site .btn-sm { padding: 9px 20px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.vpc-site .site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 39, 74, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}
.vpc-site .site-header.scrolled { box-shadow: 0 6px 24px rgba(2, 27, 51, 0.4); }

.vpc-site .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
}
.vpc-site .brand img { width: 200px; height: auto; }
@media (max-width: 1100px) { .vpc-site .brand img { width: 165px; } }
@media (max-width: 640px) { .vpc-site .brand img { width: 150px; } }

.vpc-site .nav-menu {
  display: flex; align-items: center; gap: 30px; list-style: none;
}
.vpc-site .nav-menu a:not(.btn) {
  color: var(--dark-text); text-decoration: none; font-weight: 500;
  font-size: 0.98rem; padding: 6px 2px; position: relative;
}
.vpc-site .nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.vpc-site .nav-menu a:not(.btn):hover::after, .vpc-site .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.vpc-site .nav-menu a:not(.btn):hover, .vpc-site .nav-menu a[aria-current="page"] { color: #fff; }

.vpc-site .nav-toggle { display: none; }

/* ---------- Hero ---------- */
.vpc-site .hero, .vpc-site .page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 90%);
  color: #fff;
  overflow: hidden;
}

.vpc-site .hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 30%, transparent 75%);
}
.vpc-site .hero::after {
  content: ""; position: absolute; width: 560px; height: 560px;
  right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,88,54,0.22), transparent 65%);
  pointer-events: none;
}

.vpc-site .hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
  padding-block: 110px 120px;
}

.vpc-site .hero h1, .vpc-site .page-hero h1 { color: #fff; }
.vpc-site .hero h1 em, .vpc-site .page-hero h1 em {
  font-style: normal; color: var(--orange); position: relative; white-space: nowrap;
}
.vpc-site .hero h1 em::after, .vpc-site .page-hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em;
  height: 0.1em; background: rgba(240, 88, 54, 0.35); border-radius: 2px;
}

.vpc-site .hero-sub { color: var(--dark-text); max-width: 560px; margin: 22px 0 34px; font-size: 1.13rem; }
.vpc-site .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.vpc-site .page-hero .wrap { position: relative; padding-block: 88px; max-width: var(--wrap); }
.vpc-site .page-hero .hero-sub { margin-bottom: 0; }

/* ---------- Terminal ---------- */
.vpc-site .hero-terminal {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  transform: rotate(1.2deg);
}
.vpc-site .term-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.vpc-site .term-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.vpc-site .term-chrome .term-dot:first-child { background: var(--orange); }
.vpc-site .term-title { margin-left: auto; color: var(--dark-muted); font-size: 0.75rem; }

.vpc-site .term-body { padding: 20px 22px 24px; min-height: 190px; color: var(--dark-text); }
.vpc-site .term-line { white-space: pre; overflow: hidden; min-height: 1.7em; }
.vpc-site .term-line:first-child { color: #fff; }
.vpc-site .term-ok { color: #5BD99A; }
.vpc-site .term-cursor {
  display: inline-block; width: 9px; height: 1.1em;
  background: var(--orange); vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Stats ---------- */
.vpc-site .stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.vpc-site .stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding-block: 44px;
}
.vpc-site .stat strong {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--navy); line-height: 1.1;
}
.vpc-site .stat span {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--muted); letter-spacing: 0.03em;
}

/* ---------- Services ---------- */
.vpc-site .services { background: var(--paper-2); }

.vpc-site .card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
/* Six cards sit better as two rows of three than as four plus a stub row. */
.vpc-site .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .vpc-site .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .vpc-site .card-grid--3 { grid-template-columns: 1fr; } }
.vpc-site .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.vpc-site .card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.vpc-site .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vpc-site .card:hover::before { transform: scaleX(1); }

.vpc-site .card-icon {
  width: 40px; height: 40px; color: var(--orange); margin-bottom: 18px;
  transition: transform 0.35s var(--ease);
}
.vpc-site .card:hover .card-icon { transform: translateY(-3px) scale(1.06); }

.vpc-site .card h3 { margin-bottom: 10px; }
.vpc-site .card > p { font-size: 0.94rem; color: var(--muted); margin-bottom: 16px; }

.vpc-site .card-list { list-style: none; }
.vpc-site .card-list li {
  font-size: 0.88rem; color: var(--ink);
  padding: 5px 0 5px 20px; position: relative;
}
.vpc-site .card-list li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--orange); font-family: var(--font-mono); font-size: 0.8rem;
}

.vpc-site .card-cta {
  background: var(--navy); border-color: var(--navy);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.vpc-site .card-cta::before { background: var(--orange); transform: scaleX(1); }
.vpc-site .card-cta h3 { color: #fff; }
.vpc-site .card-cta > p { color: var(--dark-text); }
.vpc-site .card-cta .btn { align-self: flex-start; }

/* ---------- Work / showcase ---------- */
.vpc-site .work { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.vpc-site .work h2 { color: #fff; }
.vpc-site .work .section-sub { color: var(--dark-muted); }

.vpc-site .work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.vpc-site .work-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease);
}
.vpc-site .work-card:hover { transform: translateY(-6px); }

.vpc-site .browser {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s;
}
.vpc-site .work-card:hover .browser { border-color: rgba(240,88,54,0.6); box-shadow: 0 26px 52px rgba(0,0,0,0.5); }

.vpc-site .browser-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy-deep); padding: 9px 12px;
}
.vpc-site .browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.vpc-site .browser-bar em {
  font-family: var(--font-mono); font-style: normal; font-size: 0.7rem;
  color: var(--dark-muted); margin-left: 10px;
  background: rgba(255,255,255,0.06); border-radius: 5px; padding: 2px 10px;
}

.vpc-site .browser-shot { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }

.vpc-site .browser-cover {
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px;
  background:
    linear-gradient(150deg,
      hsl(var(--hue) 55% 26%) 0%,
      hsl(var(--hue) 60% 16%) 100%);
  position: relative; overflow: hidden;
}
.vpc-site .browser-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.vpc-site .cover-mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; color: #fff; position: relative; z-index: 1;
  line-height: 1.15; max-width: 80%;
}
.vpc-site .cover-lines { display: flex; flex-direction: column; gap: 7px; position: relative; z-index: 1; }
.vpc-site .cover-lines i {
  height: 7px; border-radius: 4px; background: rgba(255,255,255,0.22);
}
.vpc-site .cover-lines i:nth-child(1) { width: 62%; }
.vpc-site .cover-lines i:nth-child(2) { width: 44%; background: rgba(240,88,54,0.75); }
.vpc-site .cover-lines i:nth-child(3) { width: 30%; }

.vpc-site .work-meta { padding: 18px 6px 0; }
.vpc-site .work-meta h3 { color: #fff; display: inline; }

/* Work cards on light sections (plugins.php, extensions.php) — the defaults
   above assume the navy .work band and are unreadable on white. */
.vpc-site .section:not(.work) .work-meta h3 { color: var(--navy); }
.vpc-site .section:not(.work) .work-sector { color: var(--orange-dark); }
.vpc-site .section:not(.work) .work-meta p:last-child { color: var(--muted); }
.vpc-site .section:not(.work) .browser { border-color: rgba(3, 39, 74, 0.12); box-shadow: 0 18px 40px rgba(3, 39, 74, 0.16); }
.vpc-site .section:not(.work) .work-card:hover .browser { box-shadow: 0 26px 52px rgba(3, 39, 74, 0.24); }
.vpc-site .work-sector {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em;
  color: #FF7D5C; text-transform: uppercase; margin: 4px 0 6px;
}
.vpc-site .work-meta p:last-child { font-size: 0.92rem; color: var(--dark-muted); }

/* ---------- Legal pages ---------- */
.vpc-site .legal-copy { max-width: 760px; }
.vpc-site .legal-copy h2 { font-size: 1.45rem; margin: 38px 0 12px; }
.vpc-site .legal-copy h2:first-child { margin-top: 0; }
.vpc-site .legal-copy p, .vpc-site .legal-copy li { color: var(--muted); margin-bottom: 14px; }
.vpc-site .legal-copy ul, .vpc-site .legal-copy ol { padding-left: 22px; margin-bottom: 16px; }

/* ---------- Values ---------- */
.vpc-site .values-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start;
}
.vpc-site .values-intro > p:last-child { color: var(--muted); margin-top: 16px; }

.vpc-site .values-list { display: grid; gap: 10px; }
.vpc-site .value {
  padding: 26px 28px;
  border-left: 3px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.vpc-site .value:hover { border-left-color: var(--orange); background: var(--paper-2); }
.vpc-site .value h3 { margin-bottom: 6px; }
.vpc-site .value p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Process ---------- */
.vpc-site .process { background: var(--paper-2); }
.vpc-site .process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 26px; margin-top: 48px; list-style: none;
  counter-reset: step;
}
.vpc-site .process-steps li { position: relative; padding-top: 18px; }
.vpc-site .process-steps li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--line);
}
.vpc-site .process-steps li::after {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 10px; height: 10px; border-radius: 50%; background: var(--orange);
}
.vpc-site .step-no {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--orange-dark);
  display: block; margin-bottom: 8px;
}
.vpc-site .process-steps h3 { margin-bottom: 8px; }
.vpc-site .process-steps p { font-size: 0.94rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.vpc-site .cta-band {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
}
.vpc-site .cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-block: 72px; flex-wrap: wrap;
}
.vpc-site .cta-band h2 { color: #fff; }
.vpc-site .cta-band p { color: rgba(255,255,255,0.85); margin-top: 8px; }
.vpc-site .cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- About page ---------- */
.vpc-site .about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.vpc-site .about-main h2 { margin: 36px 0 16px; }
.vpc-site .about-main h2:first-child { margin-top: 0; }
.vpc-site .about-main > p { color: var(--muted); margin-bottom: 16px; }

.vpc-site .about-list { list-style: none; margin-top: 20px; }
.vpc-site .about-list li {
  padding: 14px 0 14px 26px; position: relative;
  border-bottom: 1px solid var(--line); color: var(--muted);
}
.vpc-site .about-list li strong { color: var(--navy); }
.vpc-site .about-list li::before {
  content: "→"; position: absolute; left: 0; top: 14px;
  color: var(--orange); font-family: var(--font-mono);
}

.vpc-site .about-side { display: grid; gap: 20px; position: sticky; top: 100px; }
.vpc-site .fact-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.vpc-site .fact-card h3 { margin-bottom: 14px; }
.vpc-site .fact-card dt {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-top: 12px;
}
.vpc-site .fact-card dd { color: var(--ink); }
.vpc-site .fact-card p { color: var(--muted); font-size: 0.95rem; }
.vpc-site .fact-card-accent { background: var(--navy); border-color: var(--navy); }
.vpc-site .fact-card-accent h3 { color: #fff; }
.vpc-site .fact-card-accent p { color: var(--dark-text); }

/* ---------- Contact page ---------- */
.vpc-site .contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.vpc-site .contact-side { display: grid; gap: 20px; position: sticky; top: 100px; }

.vpc-site .field { margin-bottom: 22px; }
.vpc-site .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.vpc-site label {
  display: block; font-weight: 600; font-size: 0.92rem;
  color: var(--navy); margin-bottom: 7px;
}
.vpc-site input, .vpc-site select, .vpc-site textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vpc-site input:focus, .vpc-site select:focus, .vpc-site textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 88, 54, 0.15);
}
.vpc-site textarea { resize: vertical; }

.vpc-site .field-error { color: #C0281C; font-size: 0.85rem; margin-top: 5px; }
.vpc-site .hp-field { position: absolute; left: -9999px; }

.vpc-site .form-success {
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 4px solid #2E9E63;
  border-radius: var(--radius); padding: 34px;
}
.vpc-site .form-success h2 { margin-bottom: 8px; }
.vpc-site .form-success p { color: var(--muted); }

/* ---------- Footer ---------- */
.vpc-site .site-footer { background: var(--navy-deep); color: var(--dark-text); }
.vpc-site .footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; padding-block: 72px 48px;
}
.vpc-site .footer-brand img { width: 170px; margin-bottom: 18px; }
.vpc-site .footer-brand p { font-size: 0.95rem; color: var(--dark-muted); max-width: 400px; }

.vpc-site .footer-social { margin-top: 18px; display: flex; gap: 18px; }
.vpc-site .footer-social a, .vpc-site .footer-col a { color: var(--dark-text); text-decoration: none; }
.vpc-site .footer-social a:hover, .vpc-site .footer-col a:hover { color: var(--orange); }

.vpc-site .footer-col h2 {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dark-muted); margin-bottom: 16px;
}
.vpc-site .footer-col ul { list-style: none; display: grid; gap: 9px; font-size: 0.96rem; }
.vpc-site .footer-note { font-size: 0.85rem; color: var(--dark-muted); margin-top: 14px; }

.vpc-site .footer-legal {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 22px; font-size: 0.82rem; color: var(--dark-muted);
}
.vpc-site .footer-legal ul { list-style: none; display: flex; gap: 22px; }
.vpc-site .footer-legal a { color: var(--dark-muted); text-decoration: none; }
.vpc-site .footer-legal a:hover { color: #fff; }

/* ---------- Reveal animations ---------- */
.vpc-site .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.vpc-site .reveal.d1 { transition-delay: 0.12s; }
.vpc-site .reveal.d2 { transition-delay: 0.24s; }
.vpc-site .reveal.d3 { transition-delay: 0.36s; }
.vpc-site .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vpc-site .reveal { opacity: 1; transform: none; transition: none; }
  .vpc-site .term-cursor { animation: none; }
  .vpc-site *, .vpc-site *::before, .vpc-site *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  /* Eight items plus the CTA stop fitting here — collapse to the menu button. */
.vpc-site .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .vpc-site .nav-toggle-bar {
    width: 24px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .vpc-site .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(7px) rotate(45deg); }
  .vpc-site .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-7px) rotate(-45deg); }

  .vpc-site .nav-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--navy-deep);
    padding: 18px 24px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .vpc-site .nav-menu.open { display: flex; }
  .vpc-site .nav-menu li { width: 100%; }
  .vpc-site .nav-menu a:not(.btn) { display: block; padding: 10px 0; font-size: 1.05rem; }
  .vpc-site .nav-menu .btn { margin-top: 10px; }

  .vpc-site .card-grid { grid-template-columns: repeat(2, 1fr); }
  .vpc-site .work-grid { grid-template-columns: repeat(2, 1fr); }
  .vpc-site .process-steps { grid-template-columns: repeat(2, 1fr); gap: 36px 26px; }
  .vpc-site .hero-inner { grid-template-columns: 1fr; padding-block: 80px; }
  .vpc-site .hero-terminal { max-width: 560px; transform: none; }
  .vpc-site .values-grid, .vpc-site .about-grid, .vpc-site .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .vpc-site .about-side, .vpc-site .contact-side { position: static; }
  .vpc-site .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .vpc-site .section { padding: 68px 0; }
  .vpc-site .card-grid, .vpc-site .work-grid, .vpc-site .process-steps { grid-template-columns: 1fr; }
  .vpc-site .field-row { grid-template-columns: 1fr; }
  .vpc-site .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .vpc-site .cta-inner { flex-direction: column; align-items: flex-start; }

}

/* ==========================================================================
   Clients we have worked with — card grid with an attribution ribbon
   ========================================================================== */
.vpc-site .client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.vpc-site .client-card {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 18px;
  padding: 24px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.vpc-site .client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

/* The initial tile, tinted from the client's own hue. */
.vpc-site .client-mark {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, hsl(var(--hue) 55% 30%) 0%, hsl(var(--hue) 62% 18%) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.vpc-site .client-body { min-width: 0; }

.vpc-site .client-card h3 {
  font-size: 19px;
  margin: 0 0 3px;
  padding-right: 70px; /* keeps the title clear of the ribbon */
}

.vpc-site .client-sector {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 9px;
}

.vpc-site .client-summary {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}

.vpc-site .client-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-soft);
}

.vpc-site .client-card:hover .client-more { color: var(--orange); }
.vpc-site .client-more span { transition: transform 0.2s ease; display: inline-block; }
.vpc-site .client-card:hover .client-more span { transform: translateX(4px); }

/* Corner ribbon: who did the work. */
.vpc-site .client-ribbon {
  position: absolute;
  top: 20px;
  right: -52px;
  width: 178px;
  transform: rotate(45deg);
  text-align: center;
  padding: 5px 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 2px 6px rgba(3, 39, 74, 0.18);
  pointer-events: none;
}

.vpc-site .client-ribbon--vpc { background: var(--navy); }
.vpc-site .client-ribbon--simon { background: var(--orange-dark); }

@media (max-width: 560px) {
  .vpc-site .client-card { flex-direction: column; gap: 14px; }
  .vpc-site .client-card h3 { padding-right: 88px; }
}

/* ==========================================================================
   Case study
   ========================================================================== */
.vpc-site .case-hero { background: var(--navy); color: var(--dark-text); padding: 74px 0 66px; }
.vpc-site .case-hero h1 { color: #fff; max-width: 900px; }
.vpc-site .case-hero .case-client { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.vpc-site .case-hero .case-brief { max-width: 720px; font-size: 18px; line-height: 1.65; margin-top: 14px; }

.vpc-site .case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 54px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.vpc-site .case-fact strong { display: block; font-family: var(--font-display); font-size: 17px; color: #fff; }
.vpc-site .case-fact span { font-size: 12.5px; color: var(--dark-muted); }

.vpc-site .case-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 42px; }
.vpc-site .case-col h2 { font-size: 21px; margin-bottom: 14px; }
.vpc-site .case-col ul { list-style: none; padding: 0; margin: 0; }
.vpc-site .case-col li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.vpc-site .case-col li::before { content: "▸"; position: absolute; left: 0; color: var(--orange); }

.vpc-site .case-stack { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.vpc-site .case-stack span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.vpc-site .case-quote {
  margin: 44px 0 0;
  padding: 28px 32px;
  background: var(--paper-2);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.vpc-site .case-quote p { font-family: var(--font-display); font-size: 20px; line-height: 1.5; color: var(--ink); margin: 0 0 8px; }
.vpc-site .case-quote cite { font-style: normal; font-size: 13.5px; color: var(--muted); }

@media (max-width: 860px) { .vpc-site .case-cols { grid-template-columns: 1fr; gap: 26px; } }
