/* ============================================================
   ABHAYLABS — DESIGN TOKENS
   ------------------------------------------------------------
   Every value the interface uses is declared here. Nothing in the
   stylesheets hard-codes a colour, radius or step.

   COLOUR ROLES
     canvas / canvas-alt  page and alternating band backgrounds
     surface / -2 / -3    cards, panels, raised controls
     line / line-strong   hairlines and emphasis borders
     text / -2 / -3       primary, secondary and muted copy
     accent / -hi / -ink  the single brand accent and its contrast

   The palette is deliberately narrow: one canvas family, one accent,
   one neutral ramp. No gradients doing the work of hierarchy.
   ============================================================ */

:root {
  /* ---------- Surfaces ---------- */
  --canvas:      #08080a;
  --canvas-alt:  #0b0b0e;   /* alternating section band */
  --surface:     #101014;   /* card */
  --surface-2:   #16161b;   /* nested panel */
  --surface-3:   #1d1d23;   /* control / chip */

  /* ---------- Lines ---------- */
  --line:        rgba(241, 238, 231, 0.09);
  --line-strong: rgba(241, 238, 231, 0.20);
  --line-soft:   rgba(241, 238, 231, 0.055);

  /* ---------- Text ---------- */
  --text:        #f4f1ea;   /* warm white */
  --text-2:      #b9b5ab;   /* secondary */
  --text-3:      #86827a;   /* muted / meta */

  /* ---------- Accent (single brand accent) ---------- */
  --accent:      #c9f24b;
  --accent-hi:   #dcff63;
  --accent-ink:  #0a0f02;   /* text on accent */
  --accent-soft: rgba(201, 242, 75, 0.11);
  --accent-line: rgba(201, 242, 75, 0.32);

  /* ---------- Typography ---------- */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale — 8 steps, fluid between a floor and a ceiling */
  --fs-display: clamp(2.9rem, 7.2vw, 6.6rem);
  --fs-h1:      clamp(2.35rem, 5.2vw, 4.5rem);
  --fs-h2:      clamp(1.85rem, 3.2vw, 2.9rem);
  --fs-h3:      clamp(1.12rem, 1.5vw, 1.45rem);
  --fs-lead:    clamp(1.02rem, 1.35vw, 1.2rem);
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.8125rem;
  --fs-micro:   0.6875rem;

  --lh-tight: 0.92;
  --lh-snug:  1.15;
  --lh-body:  1.65;

  --track-wide:  0.14em;
  --track-wider: 0.24em;

  /* ---------- Space scale ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 140px;

  --section-y:  clamp(5.5rem, 10vw, 10rem);
  --gutter:     clamp(1.25rem, 5vw, 4.5rem);
  --maxw:       1280px;
  --maxw-wide:  1440px;
  --maxw-text:  68ch;

  /* ---------- Radius ---------- */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 999px;

  /* ---------- Elevation ---------- */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px -14px rgba(0, 0, 0, 0.65);
  --shadow-3: 0 32px 72px -32px rgba(0, 0, 0, 0.9);
  --shadow-accent: 0 14px 44px -20px rgba(201, 242, 75, 0.42);

  /* ---------- Motion ---------- */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 160ms;
  --dur-mid:  300ms;
  --dur-slow: 620ms;

  --header-h: 72px;

  /* ---------- Breakpoints (documented for consistency) ----------
     sm  480px   mobile-large
     md  768px   tablet
     lg  1024px  laptop
     xl  1200px  desktop
     2xl 1440px  wide desktop                                */
}

/* Per-project accents — the same family, shifted a step.
   Keeps the case studies distinguishable without a rainbow. */
[data-accent="lime"]   { --pa: #c9f24b; --pa-soft: rgba(201, 242, 75, 0.11);  --pa-line: rgba(201, 242, 75, 0.30); }
[data-accent="cyan"]   { --pa: #5fd4e4; --pa-soft: rgba(95, 212, 228, 0.11);  --pa-line: rgba(95, 212, 228, 0.30); }
[data-accent="amber"]  { --pa: #f0a94b; --pa-soft: rgba(240, 169, 75, 0.11);  --pa-line: rgba(240, 169, 75, 0.30); }
[data-accent="violet"] { --pa: #a98cf5; --pa-soft: rgba(169, 140, 245, 0.11); --pa-line: rgba(169, 140, 245, 0.30); }
[data-accent="coral"]  { --pa: #f2746a; --pa-soft: rgba(242, 116, 106, 0.11); --pa-line: rgba(242, 116, 106, 0.30); }
