/* ==========================================================================
   DESIGN TOKENS
   --------------------------------------------------------------------------
   The one place to change colours, type, spacing, radii and motion.
   Values come from the Claude Design handoff (board "3g Tokens") and the
   1440px mockups. Sizes marked "unitless" are pixel values at the 1440px
   design width; styles.css scales them down smoothly on smaller screens.
   ========================================================================== */

:root {
  /* ---- Colour ---------------------------------------------------------- */
  --bg:            #070B16;   /* page background: navy-black */
  --bg-deep:       #04070F;   /* mobile menu */
  --ink:           #EDEDEB;   /* main text, 16.4:1 on --bg */
  --ink-hi:        #FFFFFF;   /* headline over the photo only */
  --ink-2:         #A7B0C0;   /* secondary text, 5.75:1 at the brightest glow */
  --ink-3:         #A3ACBC;   /* small meta lines (dates, captions): 4.6:1 at the brightest glow */
  --ink-4:         #A3ACBC;   /* footer text */
  --ink-nav:       rgba(237, 237, 235, .8);  /* nav links */
  --accent:        #4DA3FF;   /* underlines, focus ring, borders */
  --accent-2:      #8CC4FF;   /* labels, figures, links */
  --link-hover:    #BBDBFF;
  --error:         #FF9E80;
  --error-ink:     #FFD3C4;
  --error-bg:      rgba(255, 158, 128, .08);

  /* Background glows ("halos") - decorative only, never behind text alone */
  --halo-1:        #2F7FE6;
  --halo-2:        #18C5C9;
  --halo-3:        #4C46C8;

  /* Lines, overlays and tints */
  --rule:          rgba(237, 237, 235, .12);
  --rule-row:      rgba(237, 237, 235, .14);
  --rule-strong:   rgba(237, 237, 235, .18);
  --field-border:  rgba(237, 237, 235, .28);
  --button-border: rgba(237, 237, 235, .3);
  --toggle-border: rgba(167, 176, 192, .35);
  --chip-border:   rgba(77, 163, 255, .4);
  --ghost:         rgba(140, 196, 255, .09);  /* large faint numerals */
  --tint-hover:    rgba(140, 196, 255, .06);
  --scrim-hero:    rgba(7, 11, 22, .5);      /* darkens the glow behind text */
  --scrim-section: rgba(7, 11, 22, .6);

  /* ---- Type ------------------------------------------------------------ */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Display sizes (unitless px at 1440 / smallest size on phones) */
  --fs-hero: 78;           --fs-hero-min: 38;       /* hero headline (38 = size on a 390px phone) */
  --fs-hero-mono: 78;      --fs-hero-mono-min: 26;  /* "ship -> learn -> iterate" */
  --fs-page: 72;           --fs-page-min: 40;       /* h1 on inner pages */
  --fs-contact: 58;        --fs-contact-min: 34;    /* "Let's talk about a graduate role." */
  --fs-project: 46;        --fs-project-min: 30;    /* work titles */
  --fs-hack-title: 40;     --fs-hack-title-min: 28;
  --fs-leader: 38;         --fs-leader-min: 26;
  --fs-ghost: 170;         --fs-ghost-min: 84;      /* faint background numerals */
  --fs-metric: 52;         --fs-metric-min: 36;     /* stat blocks */
  --fs-404: 96;            --fs-404-min: 72;

  /* Text sizes (fixed) */
  --fs-row: 25px;          /* experience titles */
  --fs-question: 22px;
  --fs-teaser: 22px;       /* hackathon teaser titles */
  --fs-ledger: 30px;       /* leadership figures */
  --fs-sent: 30px;
  --fs-lead: 19px;         /* about paragraph, recommendation */
  --fs-hero-body: 18px;
  --fs-body: 17px;
  --fs-body-sm: 16.5px;
  --fs-small: 14.5px;
  --fs-detail: 13.5px;
  --fs-meta: 13px;         /* mono meta lines */
  --fs-label: 12px;        /* mono section labels, nav */
  --fs-label-sm: 11.5px;
  --fs-micro: 10.5px;

  --lh-tight: 1.04;
  --lh-body: 1.6;
  --lh-relaxed: 1.65;
  --tracking-display: -.035em;
  --tracking-label: .2em;
  --measure: 56ch;         /* prose */
  --measure-wide: 72ch;    /* case-study body */

  /* ---- Space ----------------------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 18px;
  --space-5: 26px;
  --space-6: 36px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 88px;
  --gutter: clamp(20px, 3.34vw, 48px);  /* 48 desktop, 20 mobile */
  --stagger: min(180px, 12.5vw);          /* offset between work blocks */
  --max-width: 1440px;

  /* ---- Radii ----------------------------------------------------------- */
  --radius: 0;
  --radius-img: 2px;

  /* ---- Motion ---------------------------------------------------------- */
  --dur-hover: 160ms;
  --dur-reveal: 240ms;
  --dur-logo: 240ms;          /* logos fading from black and white to colour */
  --ease-hover: ease-out;
  --ease-parallax: cubic-bezier(.22, .61, .36, 1);
  --hover-shift: 6px;

  /* Pointer parallax (read by js/background.js) */
  --parallax-lerp: .075;      /* easing per frame */
  --parallax-y-ratio: .6;     /* vertical movement = 0.6 x horizontal */

  /* Liquid background (js/background.js) */
  --glow-colour: #3F87C8;     /* the blue of the liquid (the base is --bg) */
  --glow-max-luminance: .048; /* brightest the background may get (0-1). .048 keeps every text
                                 colour at 4.5:1 or more. The full blue above is .226: setting .23
                                 shows it at full strength, but some text then fails 4.5:1 */
  --glow-trail-seconds: 3;    /* how long stirred shapes take to melt back */
  --glow-swirl: 1;            /* how curly the liquid is (0 = no extra curl) */
  --glow-size: .035;          /* size of the cursor's push, as a share of the screen height */
  --glow-strength: 1;         /* how hard the cursor pushes */
  --glow-drift-seconds: 24;   /* speed of the slow drift at rest (higher = slower) */

  /* CSS glows (shown until the WebGL glow starts, or if it can't run) */
  --drift-hero-a: 70s;
  --drift-hero-b: 92s;
  --drift-work: 84s;
  --breathe-leadership: 62s;
  --drift-about: 88s;
  --drift-case: 76s;
  --drift-hackathons: 78s;
  --drift-contact: 84s;
  --drift-404: 70s;
}
