/* ==========================================================================
   Noah Vice · design tokens
   Every visual decision lives here. Colours, fonts, radius and width come
   from Canopy's Theme panel (theme.json → --color-*, --font-*, …).
   Layers, lowest to highest: tokens → base → components → sections → motion
   ========================================================================== */

@layer tokens, base, components, sections, motion;

@layer tokens {
  :root {
    /* Colour */
    --bg: var(--color-bg, #05070d);
    --surface: var(--color-surface, #0b101d);
    --ink: var(--color-text, #f5f7fb);
    --muted: var(--color-muted, #a3abbd);
    --line: var(--color-border, #1d2436);
    --accent: var(--color-accent, #3c69fa);
    --on-accent: var(--color-accentText, #fff);
    --ink-soft: color-mix(in srgb, var(--ink) 88%, var(--bg));
    --soft-text: color-mix(in srgb, var(--ink) 58%, var(--bg));   /* secondary display text */
    --positive: #4ade80;                                        /* availability dot */

    /* Metallic fill for display type (white at the top, steel at the bottom) */
    --metal: linear-gradient(180deg, #ffffff 0%, #f2f4f9 36%, #c3c9d6 74%, #959db0 100%);

    /* Type */
    --font-display: var(--font-heading, "Inter Tight", "Inter Display", Inter, system-ui, sans-serif);
    --font-text: var(--font-body, Inter, system-ui, sans-serif);
    --weight-display: 700;
    --tracking-display: -0.045em;
    --tracking-caps: 0.32em;
    --text-nav: clamp(15px, 1.1vw, 19px);
    --text-small: clamp(12px, 0.95vw, 16px);
    --text-caps: clamp(11px, 0.85vw, 14px);
    --text-body: clamp(16px, 1.25vw, 20px);
    --text-statement: clamp(30px, 4.3vw, 76px);
    --text-section: clamp(56px, 10.5vw, 184px);     /* section headings like "Featured Work" */
    --text-card-title: clamp(22px, 1.9vw, 32px);
    --text-h2: clamp(44px, 6.6vw, 120px);           /* Services, How it works */
    --text-lead: clamp(24px, 2.7vw, 46px);          /* About opening line */
    --text-row: clamp(28px, 3.4vw, 58px);           /* service titles */

    /* Layout */
    --gutter: clamp(20px, 3.7vw, 72px);
    --page-max: var(--max-width, 1440px);
    --section-space: clamp(96px, 12vw, 200px);
    --block-gap: clamp(40px, 5vw, 88px);
    --grid-gap: clamp(20px, 2.4vw, 40px);

    /* Shape */
    --radius-card: var(--radius, 12px);
    --radius-pill: 999px;
    --radius-media: clamp(16px, 1.6vw, 26px);       /* project cards */
    --border: 1px;

    /* Motion */
    --duration: 200ms;                               /* hover colours, underlines */
    --duration-slow: 700ms;                          /* card image zoom, button fills */
    --duration-reveal: 1100ms;                       /* things entering on scroll */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);         /* fast start, long soft landing */
    --ease-in-out: cubic-bezier(.76, 0, .24, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);  /* slight overshoot: magnetic release, pops */
  }

  @media (prefers-reduced-motion: reduce) {
    :root { --duration: 0s; --duration-slow: 0s; --duration-reveal: 0s; }
  }
}
