/* ============================================================
   VisuaCore Technology Limited — Design System
   visuacore.com
   ============================================================
   One file. No framework. No build step.

   Structure:
     1  Fonts
     2  Tokens (custom properties)
     3  Reset
     4  Typography
     5  Layout
     6  Sections
     7  Viewfinder brackets  (signature element)
     8  Buttons
     9  Header + navigation
    10  Cards
    11  Before / after grid
    12  Engine list
    13  Case study cards
    14  Process steps
    15  Forms
    16  Footer
    17  Motion + accessibility
   ============================================================ */


/* ============================================================
   1  FONTS
   ------------------------------------------------------------
   Self-hosted WOFF2. No request to Google, which is worth
   200-400ms on a Nigerian mobile connection.

   Download once from fonts.google.com, convert to woff2, and
   place in /assets/fonts/. Two files only.

   font-display: swap means text paints immediately in a
   fallback and reflows when the font lands, instead of showing
   nothing. Always swap.
   ============================================================ */

@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   2  TOKENS
   ------------------------------------------------------------
   Every colour, size and space in the site is defined once,
   here. Change a value in this block and it updates everywhere.
   This is what a design system is — nothing more mysterious.
   ============================================================ */

:root {

  /* --- Colour ------------------------------------------- */

  --ink:            #0A0A0B;   /* text, dark sections, footer */
  --ink-80:         #3A3A3D;   /* strong secondary on light  */
  --slate:          #5C5C5F;   /* body secondary text        */
  --slate-40:       #9A9A9E;   /* secondary on dark          */

  --gold:           #C9962C;   /* the accent                 */
  --gold-dark:      #A87A1E;   /* hover                      */
  --gold-ink:       #2A1F08;   /* text sitting on gold       */

  --bone:           #F4F2ED;   /* alternating sections       */
  --paper:          #FFFFFF;   /* default background         */

  --line:           #E4E1DA;   /* hairline on light          */
  --line-dark:      #26262A;   /* hairline on dark           */

  /* --- Type --------------------------------------------- */

  --font-display:   'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid type. clamp(min, preferred, max) lets the browser
     scale between a phone and a desktop with no media query.
     The vw unit in the middle is what does the scaling.       */

  --step-hero:      clamp(2.5rem, 7vw, 4.75rem);
  --step-h1:        clamp(2.125rem, 5.5vw, 3.5rem);
  --step-h2:        clamp(1.75rem, 4vw, 2.75rem);
  --step-h3:        clamp(1.25rem, 2.2vw, 1.5rem);
  --step-lede:      clamp(1.0625rem, 1.8vw, 1.3125rem);
  --step-body:      1.0625rem;
  --step-small:     0.9375rem;
  --step-label:     0.8125rem;

  /* --- Space -------------------------------------------- */
  /* One scale, used everywhere. Consistent rhythm is most of
     what separates a premium site from an ordinary one.       */

  --space-2xs:      0.5rem;
  --space-xs:       0.75rem;
  --space-sm:       1rem;
  --space-md:       1.5rem;
  --space-lg:       2.5rem;
  --space-xl:       4rem;
  --space-2xl:      6rem;
  --space-3xl:      clamp(4.5rem, 10vw, 9rem);   /* between sections */

  /* --- Layout ------------------------------------------- */

  --measure:        1180px;    /* max content width          */
  --measure-text:   62ch;      /* max width of a paragraph   */
  --gutter:         clamp(1.25rem, 5vw, 2.5rem);

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

  /* --- Motion ------------------------------------------- */

  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --dur:            220ms;
}


/* ============================================================
   3  RESET
   ------------------------------------------------------------
   Minimal. Only what actually causes problems.
   ============================================================ */

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

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Always set width and height on <img> in the HTML too.
   It reserves the space before the image loads and stops
   the page jumping — which Google measures as CLS.          */

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}


/* ============================================================
   4  TYPOGRAPHY
   ------------------------------------------------------------
   Large serif headlines, tight tracking. The negative
   letter-spacing on big type is important — at display sizes
   default spacing looks loose and amateur.
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;          /* stops orphan words on headings */
}

.t-hero {
  font-size: var(--step-hero);
  letter-spacing: -0.03em;
  max-width: 17ch;
}

.t-h1  { font-size: var(--step-h1); max-width: 20ch; }
.t-h2  { font-size: var(--step-h2); max-width: 22ch; }

.t-h3 {
  font-size: var(--step-h3);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

/* Eyebrow — the small uppercase label above a headline.
   Gold, wide tracking, small. Used once per section.        */

.t-eyebrow {
  font-family: var(--font-body);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

/* Lede — the sentence under a headline. Never full width. */

.t-lede {
  font-size: var(--step-lede);
  line-height: 1.55;
  color: var(--slate);
  max-width: 54ch;
}

p { max-width: var(--measure-text); }

p + p { margin-top: var(--space-sm); }

.t-small { font-size: var(--step-small); }

.t-muted { color: var(--slate); }

strong, b { font-weight: 600; }


/* ============================================================
   5  LAYOUT
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 800px; }

/* Stack — vertical rhythm without margin guesswork.
   Every direct child gets the same gap above it.            */

.stack > * + * { margin-top: var(--space-md); }
.stack-sm > * + * { margin-top: var(--space-sm); }
.stack-lg > * + * { margin-top: var(--space-lg); }

/* Grid — auto-fit means the browser decides how many columns
   fit. No breakpoints needed, and it degrades to one column
   on a phone automatically.                                  */

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }


/* ============================================================
   6  SECTIONS
   ------------------------------------------------------------
   Three surfaces: paper (default), bone (alternate), ink
   (the one dark band). Padding comes from a single token so
   the vertical rhythm never drifts.
   ============================================================ */

.section {
  padding-block: var(--space-3xl);
}

.section--bone { background: var(--bone); }

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink .t-lede,
.section--ink .t-muted { color: var(--slate-40); }

.section--ink a:not(.btn) { color: var(--gold); }

/* Section head — eyebrow, headline, lede. Repeated everywhere,
   defined once.                                              */

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

.section-head .t-lede { margin-top: var(--space-sm); }


/* ============================================================
   7  VIEWFINDER BRACKETS          ← signature element
   ------------------------------------------------------------
   The corner marks from a camera viewfinder. Bidemi spent six
   years behind a lens; this is his vernacular, not decoration
   borrowed from a template.

   Two thin gold rules per corner, drawn with pseudo-elements
   so no extra markup is needed. Used sparingly: hero, dark
   band, case study cards. Nowhere else — that restraint is
   what keeps it a signature rather than a pattern.
   ============================================================ */

.frame {
  position: relative;
  padding: var(--space-lg);
}

.frame::before,
.frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
}

.frame::before {
  top: 0; left: 0;
  border-width: 1.5px 0 0 1.5px;
}

.frame::after {
  bottom: 0; right: 0;
  border-width: 0 1.5px 1.5px 0;
}

/* Four corners instead of two, for the hero.
   Needs one empty <span class="frame-mark"> inside.          */

.frame--full .frame-mark::before,
.frame--full .frame-mark::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
}

.frame--full .frame-mark::before {
  top: 0; right: 0;
  border-width: 1.5px 1.5px 0 0;
}

.frame--full .frame-mark::after {
  bottom: 0; left: 0;
  border-width: 0 0 1.5px 1.5px;
}


/* ============================================================
   8  BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 48px;              /* thumb-sized. Non-negotiable. */
  padding: 0 var(--space-md);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: var(--step-small);
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold);
  color: var(--gold-ink);
}

.btn--primary:hover { background: var(--gold-dark); color: var(--paper); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

.section--ink .btn--ghost {
  border-color: var(--line-dark);
  color: var(--paper);
}

.section--ink .btn--ghost:hover { border-color: var(--slate-40); }

/* Text link with a moving arrow. Cheap, and it feels alive. */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
}

.link-arrow span {
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover span { transform: translateX(4px); }


/* ============================================================
   9  HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 72px;
}

/* Wordmark. No logo file needed — this is the logo. */

.wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark span { color: var(--gold); }

.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav a {
  font-size: var(--step-small);
  color: var(--slate);
  transition: color var(--dur) var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

/* Mobile: hide the inline nav, show the toggle.
   The panel markup and JS live in header.php.               */

.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--space-sm) var(--gutter) var(--space-md);
  }
  .nav__links.is-open a {
    padding-block: var(--space-xs);
    font-size: 1.0625rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
}


/* ============================================================
   10  CARDS
   ============================================================ */

.card {
  padding: var(--space-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.card__num {
  font-family: var(--font-body);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.card .t-h3 { margin-bottom: var(--space-xs); }

.card p { color: var(--slate); font-size: var(--step-small); }

.section--bone .card { background: var(--paper); border-color: transparent; }


/* ============================================================
   11  BEFORE / AFTER GRID
   ------------------------------------------------------------
   The problem on the left, the fix on the right. This is the
   clearest thing on the site — it does the selling without
   any adjectives.
   ============================================================ */

.ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--line);
}

.ba:last-child { border-bottom: 1px solid var(--line); }

.ba__before {
  color: var(--slate);
  font-size: var(--step-small);
}

.ba__mark {
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
}

.ba__after {
  color: var(--ink);
  font-weight: 500;
  font-size: var(--step-small);
}

@media (max-width: 640px) {
  .ba {
    grid-template-columns: 1fr;
    gap: var(--space-2xs);
  }
  .ba__mark { transform: rotate(90deg); width: 1.25rem; }
}


/* ============================================================
   12  ENGINE LIST
   ------------------------------------------------------------
   The six named builds. A rule above each, generous space.
   Deliberately not cards — these are achievements, and a list
   reads more confident than a grid of boxes.
   ============================================================ */

.engine {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--line-dark);
}

.engine__name {
  font-family: var(--font-display);
  font-size: var(--step-h3);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-xs);
}

.engine p { color: var(--slate-40); font-size: var(--step-small); }

.engine__running {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--step-label);
  letter-spacing: 0.06em;
  color: var(--gold);
}


/* ============================================================
   13  CASE STUDY CARDS
   ============================================================ */

.case {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.case:hover { border-color: var(--ink); transform: translateY(-3px); }

.case__shot {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--bone);
}

.case__body { padding: var(--space-md) var(--space-md) var(--space-lg); }

.case__client {
  font-size: var(--step-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2xs);
}

.case__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: var(--space-2xs);
}

.case__body p { font-size: var(--step-small); color: var(--slate); }


/* ============================================================
   14  PROCESS STEPS
   ------------------------------------------------------------
   Numbered, because this genuinely is a sequence. Numbering
   anything that isn't a sequence is decoration pretending to
   be structure.
   ============================================================ */

.step { border-top: 2px solid var(--gold); padding-top: var(--space-md); }

.step__n {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.step h3 { margin-bottom: var(--space-2xs); }

.step p { font-size: var(--step-small); color: var(--slate); }


/* ============================================================
   15  FORMS
   ============================================================ */

.field { display: block; margin-bottom: var(--space-md); }

.field label {
  display: block;
  font-size: var(--step-small);
  font-weight: 500;
  margin-bottom: var(--space-2xs);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;              /* comfortable on a phone */
  padding: var(--space-xs) var(--space-sm);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.field textarea { min-height: 160px; padding-top: var(--space-sm); resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,150,44,0.18);
}

/* Honeypot. Bots fill it, humans never see it.
   Never use display:none — better bots check for that.       */

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}


/* ============================================================
   16  FOOTER
   ============================================================ */

.footer {
  background: var(--ink);
  color: var(--slate-40);
  padding-block: var(--space-2xl) var(--space-lg);
  font-size: var(--step-small);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line-dark);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--step-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: var(--space-sm);
}

.footer li + li { margin-top: var(--space-2xs); }

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

.footer .wordmark { color: var(--paper); }

.footer .wordmark small { color: var(--slate-40); }

/* The legal line. RC number lives here, on every page.
   Flutterwave and Paddle both look for it.                   */

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  padding-top: var(--space-lg);
  font-size: var(--step-label);
}


/* ============================================================
   17  MOTION + ACCESSIBILITY
   ============================================================ */

/* Visible focus for keyboard users. Never remove this. */

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

/* Skip link — first thing in the tab order. */

.skip {
  position: absolute;
  left: -9999px;
  padding: var(--space-xs) var(--space-sm);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.skip:focus { left: var(--gutter); top: var(--space-xs); z-index: 100; }

/* Screen-reader only text. */

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

/* Scroll reveal. JS adds .is-in when the element enters view.
   Deliberately subtle — 12px and a fade. Anything more reads
   as a template.                                              */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

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

/* Anyone who has asked their system for less motion gets none.
   This is not optional.                                       */

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

/* Print — legal pages get printed and filed by real people. */

@media print {
  .header, .footer, .btn { display: none; }
  body { color: #000; background: #fff; }
}
