/* =========================================================================
   Peemkay TECH — design system
   Clean, light corporate aesthetic — brand palette (blue/gold on white and
   light gray), Poppins throughout. Mobile-first, fluid type, no external
   UI framework — everything below is authored for this site.
   ========================================================================= */

:root {
  --bg-0: #ffffff;
  --bg-1: #f8fafc;
  --bg-2: #f8fafc;
  --bg-elevated: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --text-0: #111827;
  --text-1: #374151;
  --text-2: #6b7280;
  --text-3: #9ca3af;

  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --gold: #ffc107;
  --gold-2: #e6a800;
  --success: #16a34a;
  --danger: #dc2626;

  --grad-accent: linear-gradient(135deg, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
  --grad-gold: linear-gradient(135deg, #ffd54f 0%, var(--gold) 45%, var(--gold-2) 100%);

  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Elevation system — light-theme surfaces read as raised via a soft
     neutral shadow plus a hairline border, not a lit bevel (that trick
     only works against a near-black canvas). Kept intentionally simple:
     one or two soft shadow layers, no inset highlights. */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 8px 20px rgba(17, 24, 39, 0.1);
  --shadow-lg: 0 20px 40px rgba(17, 24, 39, 0.12);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 12px 28px rgba(37, 99, 235, 0.14);

  --container-w: 1180px;
  --nav-h: 76px;
  --perspective: 1400px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-tilt: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------ Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-0); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 4.5vw + 1rem, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 2.6vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }
p { color: var(--text-2); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: #ffffff; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

::selection { background: var(--accent); color: #ffffff; }

/* ------------------------------ Layout ---------------------------------- */
.container { width: 100%; max-width: var(--container-w); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-1); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 0.9rem; font-size: 1.05rem; }

.text-gradient { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gold { color: var(--gold-2); }

/* ------------------------------ Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; white-space: nowrap;
  transition: transform 0.2s var(--ease-tilt), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  border: 1px solid transparent;
  position: relative; isolation: isolate; overflow: hidden;
}
/* Glossy top highlight — still reads correctly on the saturated blue/gold
   button surfaces below regardless of page theme (it's a highlight on the
   button's own color, not on the page background). */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 55%);
  opacity: 0.55; mix-blend-mode: overlay; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.btn > * { position: relative; z-index: 2; }
.btn:hover::before { opacity: 0.8; }
.btn:active { transform: translateY(1px) scale(0.98); transition-duration: 0.08s; }

.btn--primary {
  background: var(--grad-accent); color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 2px rgba(17, 24, 39, 0.15), 0 10px 24px rgba(37, 99, 235, 0.25);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 1px 2px rgba(17, 24, 39, 0.15), 0 16px 36px rgba(37, 99, 235, 0.32); }
.btn--primary:active { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 6px 14px rgba(37, 99, 235, 0.24); }

.btn--ghost {
  background: var(--bg-0);
  border-color: var(--border-strong); color: var(--text-0);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.btn--ghost:hover { background: rgba(37, 99, 235, 0.06); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06); }

.btn--gold {
  background: var(--grad-gold); color: #111827;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 2px rgba(17, 24, 39, 0.15), 0 10px 24px rgba(255, 193, 7, 0.3);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 1px 2px rgba(17, 24, 39, 0.15), 0 16px 36px rgba(255, 193, 7, 0.4); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn .icon { width: 1.05em; height: 1.05em; }

/* ------------------------------ Navbar ---------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.navbar.is-scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06); }

.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.navbar__brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--text-0); }
.navbar__mark {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
/* logo-mark.png is a real gradient-blue icon (not a flat single-color
   shape), so it's rendered as a plain <img> at its own true colors rather
   than a currentColor-recolored CSS mask. */
.navbar__mark-icon {
  height: 30px; width: auto; aspect-ratio: 565 / 444; display: block;
  transition: transform 0.25s var(--ease-tilt);
}
.navbar__brand:hover .navbar__mark-icon { transform: scale(1.06); }
.footer__brand .navbar__mark-icon { height: 34px; }
.navbar__wordmark em { font-style: normal; color: var(--accent); }

.navbar__links { display: flex; align-items: center; gap: 0.35rem; }
.navbar__link { position: relative; padding: 0.55rem 0.9rem; border-radius: 8px; font-size: 0.94rem; color: var(--text-1); font-weight: 500; transition: color 0.2s, background 0.2s; }
.navbar__link:hover { color: var(--text-0); background: rgba(37, 99, 235, 0.06); }
.navbar__link.is-active { color: var(--accent); }
.navbar__link.is-active::after { content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.15rem; height: 2px; background: var(--grad-accent); border-radius: 2px; }

.navbar__actions { display: flex; align-items: center; gap: 0.7rem; }
.navbar__icon-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-1);
  box-shadow: var(--shadow-xs);
  color: var(--text-1); transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.25s var(--ease-tilt);
}
.navbar__icon-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(37, 99, 235, 0.08); transform: translateY(-2px); }
.navbar__icon-btn .icon { width: 18px; height: 18px; }

.navbar__toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; }
.navbar__toggle .icon { width: 24px; height: 24px; }
.navbar__toggle .icon--close { display: none; }
.navbar__toggle[aria-expanded="true"] .icon--menu { display: none; }
.navbar__toggle[aria-expanded="true"] .icon--close { display: block; }

/* Mobile slide-in menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2rem 1.5rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-menu__links li { opacity: 0; transform: translateY(12px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); transition-delay: calc(var(--i) * 0.04s); }
.mobile-menu.is-open .mobile-menu__links li { opacity: 1; transform: translateY(0); }
.mobile-menu__links a { display: block; padding: 0.9rem 0.25rem; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--text-1); border-bottom: 1px solid var(--border); }
.mobile-menu__links a.is-active { color: var(--accent); }
.mobile-menu__footer { display: flex; gap: 0.75rem; }
.mobile-menu__footer .btn { flex: 1; }

/* ------------------------------ Hero ---------------------------------- */
/* hero-bg.png (and the page-hero cover photos below) were painted for the
   old dark "signal grid" aesthetic — a near-black, glowing-cyan image. No
   amount of white overlay opacity turns a dark photo into "clean and
   light"; it just reads as gray mud. Rather than ship that half-migrated
   look, the hero/page-hero backdrops are a soft brand-color wash on white
   instead — no photo dependency. (These cover photos still need a real
   light-theme replacement pass — see the note left for that separately.) */
.hero {
  padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 8vw, 5rem); position: relative;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(50rem 30rem at -10% 10%, rgba(255, 193, 7, 0.07), transparent 55%),
    var(--bg-0);
}
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; perspective: var(--perspective); }
.hero__content h1 { margin-bottom: 1.3rem; }
.hero__content p.lead { font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem); max-width: 40rem; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 34rem; }
.hero__stats .stat b { display: block; font-family: var(--font-heading); font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem); color: var(--text-0); }
.hero__stats .stat span { font-size: 0.85rem; color: var(--text-2); }

.hero__panel {
  position: relative;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-1));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transform: perspective(var(--perspective)) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s var(--ease-tilt), box-shadow 0.5s var(--ease);
}
.hero__panel-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--bg-1); }
.hero__panel-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hero__panel-bar span:nth-child(1) { background: var(--danger); }
.hero__panel-bar span:nth-child(2) { background: var(--gold); }
.hero__panel-bar span:nth-child(3) { background: var(--success); }
.hero__panel-bar small { margin-left: 0.6rem; color: var(--text-3); font-family: var(--font-mono); font-size: 0.78rem; }
.hero__panel-body { padding: 1.4rem 1.3rem; font-family: var(--font-mono); font-size: 0.88rem; }
.hero__panel-body .line { margin-bottom: 0.55rem; opacity: 0; animation: typeIn 0.5s var(--ease) forwards; }
.hero__panel-body .line:nth-child(1) { animation-delay: 0.1s; }
.hero__panel-body .line:nth-child(2) { animation-delay: 0.35s; }
.hero__panel-body .line:nth-child(3) { animation-delay: 0.6s; }
.hero__panel-body .line:nth-child(4) { animation-delay: 0.85s; }
.hero__panel-body .line:nth-child(5) { animation-delay: 1.1s; }
.hero__panel-body .prompt { color: var(--accent); }
.hero__panel-body .out { color: var(--text-2); padding-left: 1.2rem; display: block; }
.hero__panel-body .ok { color: var(--success); }
.hero__panel-body .cursor { display: inline-block; width: 7px; height: 1em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s step-end infinite; }

@keyframes typeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0; } }

.hero__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 1.3rem 1.4rem; }
.hero__badges span { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--bg-1); border: 1px solid var(--border); color: var(--text-2); }

/* ------------------------------ Sector strip ---------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-2)); color: var(--text-1); font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease-tilt), box-shadow 0.25s var(--ease);
}
.chip .icon { width: 16px; height: 16px; color: var(--accent); }
.chip:hover { border-color: var(--accent); color: var(--text-0); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

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

.card {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.75rem; box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease-tilt), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  position: relative; transform-style: preserve-3d; will-change: transform;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }

/* Cover image bled to the card's edges (negative-margins the padding away),
   rounded to match only the top corners, with a reactive hover zoom and a
   bottom gradient so it blends cleanly into the card content below. */
.card-cover {
  margin: -1.75rem -1.75rem 1.25rem; aspect-ratio: 16 / 9; overflow: hidden;
  position: relative; border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--bg-1);
}
.card-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease-tilt), filter 0.5s var(--ease);
  filter: saturate(1.05);
}
.card:hover .card-cover img { transform: scale(1.08) rotate(0.3deg); }
.card-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 45%, rgba(17, 24, 39, 0.55) 100%);
}
.card-cover::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 35%);
}

.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.16), rgba(29, 78, 216, 0.05));
  color: var(--accent); margin-bottom: 1.1rem;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12), 0 4px 10px rgba(37, 99, 235, 0.1);
  transition: transform 0.35s var(--ease-tilt), box-shadow 0.35s var(--ease);
}
.card:hover .card__icon { transform: translateZ(24px) scale(1.05); }
.card__icon .icon { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; }
.card__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; font-weight: 600; color: var(--accent); font-size: 0.9rem; }
.card__link .icon { width: 15px; height: 15px; transition: transform 0.2s; }
.card:hover .card__link .icon { transform: translateX(3px); }

.value-card { text-align: left; }

/* Sector card */
.sector-card { display: flex; flex-direction: column; height: 100%; }
.sector-card__badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.3rem 0.65rem; border-radius: 6px; margin-bottom: 0.9rem; }
.sector-card__badge--proven { color: var(--success); background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.3); }
.sector-card__badge--ready { color: var(--gold-2); background: rgba(255, 193, 7, 0.14); border: 1px solid rgba(255, 193, 7, 0.4); }
.sector-card__projects { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sector-card__projects span { font-size: 0.78rem; font-family: var(--font-body); font-weight: 600; color: var(--text-2); background: var(--bg-1); padding: 0.25rem 0.55rem; border-radius: 6px; }

/* ------------------------------ Stats ---------------------------------- */
.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
.stats-strip .stat b { display: block; font-family: var(--font-heading); font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); color: var(--text-0); }
.stats-strip .stat span { color: var(--text-2); font-size: 0.9rem; }

/* ------------------------------ Skills ---------------------------------- */
.skill-group {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.6rem;
  box-shadow: var(--shadow-xs); transition: transform 0.4s var(--ease-tilt), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.skill-group:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.skill-group__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem; }
.skill-group__head .card__icon { margin-bottom: 0; width: 44px; height: 44px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-pill { font-size: 0.85rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--border); color: var(--text-1); }

/* ------------------------------ Timeline / process ---------------------------------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; counter-reset: step; }
.process-step {
  position: relative; padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs); transition: transform 0.4s var(--ease-tilt), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.process-step:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; color: var(--accent);
  display: inline-block; margin-bottom: 0.9rem;
}

/* ------------------------------ Projects filter ---------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.55rem 1.15rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-1);
  color: var(--text-2); font-size: 0.88rem; font-weight: 500; transition: all 0.2s var(--ease);
}
.filter-btn:hover { color: var(--text-0); border-color: var(--accent); transform: translateY(-2px); }
.filter-btn.is-active { background: var(--grad-accent); color: #ffffff; border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 8px 20px rgba(37, 99, 235, 0.24); }

.project-card { display: flex; flex-direction: column; }
.project-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.project-card__tag { font-size: 0.72rem; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent); }
.project-card__confidential { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: var(--gold-2); border: 1px solid rgba(255, 193, 7, 0.4); background: rgba(255, 193, 7, 0.1); padding: 0.2rem 0.5rem; border-radius: 6px; }
.project-card__confidential .icon { width: 12px; height: 12px; }
.project-card__tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.project-card__tech span { font-size: 0.75rem; font-family: var(--font-body); font-weight: 600; background: var(--bg-1); border: 1px solid var(--border); padding: 0.25rem 0.55rem; border-radius: 6px; color: var(--text-2); }
.project-card__highlights { margin: 0.75rem 0 1.1rem; display: grid; gap: 0.45rem; }
.project-card__highlights li { display: flex; gap: 0.55rem; font-size: 0.87rem; color: var(--text-2); }
.project-card__highlights li .icon { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; margin-top: 0.2rem; }
.project-card__footer { margin-top: auto; display: flex; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ------------------------------ Services detail ---------------------------------- */
.service-card { display: flex; flex-direction: column; }
.service-card ul { margin-top: 1rem; display: grid; gap: 0.5rem; }
.service-card ul li { display: flex; gap: 0.55rem; font-size: 0.88rem; color: var(--text-2); }
.service-card ul li .icon { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 0.2rem; }

/* ------------------------------ CTA banner ---------------------------------- */
/* Solid brand-blue block rather than a photo + dark scrim — the scrim trick
   that worked on the old near-black canvas just leaves a dark box floating
   in an otherwise white page here. A bold blue panel with white text is
   also exactly the "Flutterwave-style" corporate CTA the brand kit calls
   for, and it pairs naturally with a gold button (this brand's own second
   accent color) for the highest-stakes CTA. */
.cta-banner {
  border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--grad-accent);
  border: 1px solid transparent; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #ffffff; margin-bottom: 0.9rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); max-width: 34rem; margin-inline: auto; margin-bottom: 2rem; }
.cta-banner .eyebrow { color: #ffffff; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.32); }
.cta-banner .eyebrow::before { background: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
.cta-banner .btn--primary { background: #ffffff; color: var(--accent); box-shadow: 0 4px 14px rgba(17, 24, 39, 0.16); }
.cta-banner .btn--primary:hover { background: #ffffff; box-shadow: 0 8px 22px rgba(17, 24, 39, 0.2); }
.cta-banner .btn--ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); color: #ffffff; }
.cta-banner .btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #ffffff; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ------------------------------ Forms ---------------------------------- */
.form-grid { display: grid; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-1); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--bg-0); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text-0); transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.04);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-error { color: var(--danger); font-size: 0.82rem; margin-top: 0.4rem; }
.field--honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-info { display: grid; gap: 1.25rem; align-content: start; }
.contact-info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem;
  box-shadow: var(--shadow-xs); transition: transform 0.3s var(--ease-tilt), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-info-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.contact-info-card .card__icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card h4 { color: var(--text-0); font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.3rem; }
.contact-info-card p { font-size: 0.88rem; margin: 0; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); margin-right: 0.4rem; }

.faq { display: grid; gap: 1rem; }
.faq-item {
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-xs); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item h4 { color: var(--text-0); font-family: var(--font-heading); font-size: 1.02rem; margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.92rem; margin: 0; }

/* ------------------------------ Flash / alerts ---------------------------------- */
.flash-stack { padding-top: 1.5rem; display: grid; gap: 0.75rem; }
.flash { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.92rem; }
.flash--success { background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.3); color: var(--success); }
.flash .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ------------------------------ Footer ---------------------------------- */
.footer { border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 4.5rem); background: var(--bg-1); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__brand p { max-width: 26rem; margin: 1rem 0 1.2rem; font-size: 0.92rem; }
.footer__social { display: flex; gap: 0.7rem; }
.footer__social a {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg-0);
  color: var(--text-2); font-size: 0.85rem; font-weight: 700;
  box-shadow: var(--shadow-xs); transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease-tilt), box-shadow 0.25s var(--ease);
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.footer__social .icon { width: 17px; height: 17px; }
.footer__col h4 { color: var(--text-0); font-size: 0.95rem; margin-bottom: 1.1rem; }
.footer__col ul { display: grid; gap: 0.7rem; }
.footer__col a { color: var(--text-2); font-size: 0.92rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--accent); }
.footer__col li { font-size: 0.92rem; color: var(--text-2); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding: 1.5rem 0; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-3); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer__legal a { color: var(--text-3); font-size: 0.85rem; transition: color 0.2s; }
.footer__legal a:hover { color: var(--accent); }

/* ------------------------------ Cookie consent ---------------------------------- */
.cookie-banner {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 90; width: min(360px, calc(100vw - 2.5rem));
  display: flex; flex-direction: column; gap: 0.6rem;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-2)); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 1.2rem 1.3rem;
  animation: cookie-slide-in 0.4s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__close {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 26px; height: 26px; display: flex; align-items: center;
  justify-content: center; border-radius: 999px; color: var(--text-3); transition: color 0.2s, background 0.2s;
}
.cookie-banner__close:hover { color: var(--text-0); background: var(--bg-1); }
.cookie-banner__close .icon { width: 14px; height: 14px; }
.cookie-banner__icon {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1); color: var(--accent); margin-bottom: 0.2rem;
}
.cookie-banner__icon .icon { width: 17px; height: 17px; }
.cookie-banner__title { font-family: var(--font-heading); font-weight: 600; color: var(--text-0); font-size: 0.98rem; margin-bottom: 0.35rem; }
.cookie-banner__body p { margin: 0 0 0.9rem; font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }
.cookie-banner a { color: var(--accent); }
@keyframes cookie-slide-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* ------------------------------ Legal pages (Terms / Privacy / FAQ) ---------------------------------- */
.legal-content { max-width: 46rem; }
.legal-content .legal-updated { font-size: 0.85rem; color: var(--text-3); margin-bottom: 2.2rem; }
.legal-content h2 { font-size: 1.35rem; margin: 2.2rem 0 0.8rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.legal-content li { color: var(--text-2); font-size: 0.98rem; }
.legal-content a { color: var(--accent); }

/* ------------------------------ Back to top ---------------------------------- */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 999px; background: var(--grad-accent); color: #ffffff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top .icon { width: 20px; height: 20px; }

/* ------------------------------ Reveal-on-scroll ---------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ------------------------------ Error pages ---------------------------------- */
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1.5rem; }
.error-page .code { font-family: var(--font-heading); font-weight: 700; font-size: clamp(3.5rem, 10vw, 6rem); color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.error-page p { max-width: 28rem; margin: 1rem auto 2rem; }

/* ------------------------------ Page hero (inner pages) ---------------------------------- */
.page-hero {
  padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); text-align: center;
  position: relative; isolation: isolate;
  background:
    radial-gradient(50rem 30rem at 15% 0%, rgba(37, 99, 235, 0.07), transparent 60%),
    radial-gradient(40rem 24rem at 100% 10%, rgba(255, 193, 7, 0.06), transparent 55%),
    var(--bg-1);
}
.page-hero .eyebrow { display: inline-flex; }
.page-hero h1 { max-width: 46rem; margin-inline: auto; }
.page-hero p.lead { max-width: 38rem; margin: 1.1rem auto 0; font-size: 1.05rem; }

/* About page: hero splits into copy + a floating avatar badge */
.page-hero--split .page-hero__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; text-align: left; }
.page-hero--split .page-hero__grid > div:first-child { text-align: left; }
.page-hero--split h1, .page-hero--split p.lead { margin-inline: 0; }
.avatar-frame {
  justify-self: center; width: min(240px, 60vw); aspect-ratio: 1; position: relative;
  perspective: var(--perspective);
}
.avatar-frame img {
  width: 100%; height: 100%; border-radius: 50%; display: block;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(37, 99, 235, 0.1);
  transition: transform 0.5s var(--ease-tilt);
}
.avatar-frame:hover img { transform: rotateY(10deg) rotateX(-4deg) scale(1.03); }

/* ------------------------------ Utility ---------------------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); margin-block: 3rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (min-width: 640px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .form-row--2 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 859px) {
  .hero__panel { transform: none; }
}

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .page-hero--split .page-hero__grid { grid-template-columns: 1.3fr 0.7fr; }
}

@media (min-width: 992px) {
  .navbar__toggle { display: none; }
  .navbar__nav { display: block; }
  .navbar__icon-btn { display: inline-flex; }
  .mobile-menu { display: none; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (max-width: 991px) {
  .navbar__nav { display: none; }
}

@media (max-width: 639px) {
  .navbar__cta { display: none; }
  .container { padding-inline: 1.25rem; }
}

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