/* ==========================================================================
   Skillful Energy Ltd: design tokens
   Every file in this site (page, illustrations, logo intro) uses these values.

   PALETTE SOURCE: PROVISIONAL.
   ./inputs/ (the Skillful Business card image) was not present in the project.
   The hex values below come from the owners' own brandbook:
     Skillful_Energy_Development_Brandbook_RU.pdf, v0.9 (draft), 18.11.2026, p.10,
     where they were sampled from photos of the Skillful Business card with a
     white-balance correction and are marked approximate (≈).
   Confirm against the designer's original files or a print proof before launch.
   The brief's own fallback values were NOT used; they are kept here for reference:
     maroon #7A1F2B · navy #14213D · gold #C9A227
   ========================================================================== */

:root {
  /* ---- Brand colours (PROVISIONAL, see header) ---- */
  --c-maroon: #4F0C0E;      /* Energy colour. Mark, accents, dark grounds */
  --c-navy: #1F2139;        /* accent (Skillful Business family colour) */
  --c-gold: #D3C585;        /* accent, at most ~5% of any surface; never text on light */
  --c-graphite: #32312F;    /* text and wordmark */
  --c-warm-white: #F3EFEE;  /* page ground, cards */
  --c-warm-grey: #8C8582;   /* rules and lines only; 3.6:1 on white, so never body text */
  --c-white: #FFFFFF;

  /* ---- Derived shades (same hues, for states and depth) ---- */
  --c-maroon-deep: #3A0809;   /* maroon pressed/hover, deep grounds */
  --c-maroon-ink: #6E2427;    /* maroon used as link/heading accent on light (AA on warm white) */
  --c-graphite-soft: #5E5A57; /* secondary text, AA on warm white and white */

  /* ---- The two neutral tints allowed in the illustrations ---- */
  --c-tint-stone: #DDD5D1;    /* tint 1: light warm stone (ground planes, panels) */
  --c-tint-ash: #B5ADA9;      /* tint 2: mid warm ash (shadows on light, distant hills) */

  /* ---- Semantic roles ---- */
  --bg: var(--c-warm-white);
  --bg-raised: var(--c-white);
  --bg-dark: var(--c-maroon);
  --bg-dark-alt: var(--c-navy);
  --text: var(--c-graphite);
  --text-muted: var(--c-graphite-soft);
  --text-on-dark: var(--c-warm-white);
  --text-on-dark-muted: #D9CFCD;  /* AA on maroon and navy */
  --accent: var(--c-maroon);
  --accent-on-dark: var(--c-gold);
  --line: rgba(50, 49, 47, 0.14);
  --line-strong: var(--c-warm-grey);
  --line-on-dark: rgba(243, 239, 238, 0.18);
  --focus: var(--c-maroon);
  --focus-on-dark: var(--c-gold);
  --selection-bg: var(--c-maroon);
  --selection-text: var(--c-warm-white);

  /* ---- Type ----
     Brand face: Source Sans 3 (OFL), per the brandbook. It is not self-hosted yet,
     so the stack falls back to the system UI face and then to Arial (brandbook's
     named substitute). */
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* fluid scale, 375px -> 1440px */
  --fs-xs: 0.8125rem;                                   /* 13px  legal, small labels */
  --fs-sm: 0.9375rem;                                   /* 15px  captions, meta */
  --fs-base: 1.0625rem;                                 /* 17px  body */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);  /* 18 -> 21 */
  --fs-h4: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);       /* 18 -> 20 */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5625rem);     /* 20 -> 25 */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.85vw, 3rem);         /* 30 -> 48 */
  --fs-h1: clamp(2.375rem, 1.6rem + 3.4vw, 4.5rem);         /* 38 -> 72 */

  --lh-tight: 1.08;
  --lh-heading: 1.15;
  --lh-body: 1.6;
  --tracking-display: -0.022em;
  --tracking-heading: -0.012em;
  --tracking-caps: 0.14em;  /* spaced capitals, brandbook 10-15% */
  --measure: 66ch;

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */
  --space-10: 8rem;     /* 128 */
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);            /* page side gutter: 16 -> 32 */
  --section-pad: clamp(3rem, 2.2rem + 3.2vw, 5.25rem);    /* vertical section padding */
  --container: 80rem;                                     /* 1280px content width */
  --nav-height: 4.25rem;

  /* ---- Radii (brand motif: the mark's rounded square, R = 0.12 x height) ---- */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-mark: 12%;  /* use on square elements to echo the mark */
  --radius-pill: 999px;

  /* ---- Elevation (offset + soft blur, warm-tinted) ---- */
  --shadow-1: 0 1px 2px rgba(50, 20, 18, 0.06), 0 2px 6px rgba(50, 20, 18, 0.05);
  --shadow-2: 0 2px 4px rgba(50, 20, 18, 0.06), 0 10px 24px rgba(50, 20, 18, 0.09);

  /* ---- Motion ----
     Curves from the animate / emil-design-eng skills. Never ease-in on UI. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-standard: ease;          /* hover colour changes */
  --dur-press: 140ms;             /* button press */
  --dur-fast: 180ms;              /* hover, focus */
  --dur-base: 260ms;              /* nav state, small UI */
  --dur-reveal: 640ms;            /* section scroll-reveal (marketing, seen once) */
  --stagger-step: 70ms;           /* reveal stagger, shrinking per item in main.js */

  /* logo intro: total 1.8-2.5 s, hard stop at 2.5 s */
  --intro-draw: 900ms;            /* S stroke draws */
  --intro-fill: 320ms;            /* S fills maroon */
  --intro-pulse: 520ms;           /* gold energy pulse */
  --intro-wordmark: 420ms;        /* wordmark fades in (overlaps pulse) */
  --intro-dissolve: 420ms;        /* overlay dissolves into the hero */
  --intro-total: 2200ms;          /* planned length */
  --intro-max: 2500ms;            /* hard ceiling, enforced in JS and CSS */

  /* illustration loops (decorative, all stopped under reduced motion) */
  --loop-blade: 7s;               /* wind rotor, one turn */
  --loop-pulse: 3.2s;             /* energy pulse along a line */
  --loop-flow: 2.8s;              /* dashed flow lines */
  --loop-glow: 3.6s;              /* soft glow breathing */
  --loop-blink: 2.4s;             /* status LEDs */
}
