/* ==========================================================================
   TOKENS: the single source of truth for colour, type, space and shape.
   Change a value here and it changes everywhere.
   ========================================================================== */
:root {
  /* Colour: brand */
  --teal-900: #032f33;   /* deepest panels, footer, hero shade */
  --teal-800: #044c52;   /* page heads, dark tiles (gold text passes 4.5:1) */
  --teal-700: #05636b;   /* primary brand teal, headings on light */
  --teal-500: #008f98;   /* decorative only (fails 4.5:1 as small text on white) */
  --gold:     #f4a900;   /* accent, buttons, highlights */
  --pale:     #eff8fa;   /* page background */
  --white:    #ffffff;
  --ink:      #202a2d;   /* body text, dark tiles */

  /* Colour: roles */
  --bg:            var(--pale);
  --surface:       var(--white);
  --text:          var(--ink);
  --heading:       var(--teal-700);
  --focus:         var(--gold);
  --on-dark:       var(--white);
  --line-on-dark:  rgb(255 255 255 / 0.3);

  /* Woven pattern tiles: original geometry built from quarter-circles and
     discs, drawn in the brand palette. Used as backgrounds, never as content. */
  --weave-band: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><rect width='80' height='80' fill='%2305636b'/><path d='M0 80A40 40 0 0 1 40 40V80Z' fill='%23008f98'/><path d='M80 0A40 40 0 0 0 40 40V0Z' fill='%23008f98'/><circle cx='40' cy='40' r='10' fill='%23f4a900'/><path d='M0 0H40A40 40 0 0 1 0 40Z' fill='%23eff8fa' opacity='.9'/><path d='M80 80H40A40 40 0 0 1 80 40Z' fill='%23eff8fa' opacity='.9'/></svg>");
  --weave-1: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><rect width='60' height='60' fill='%2305636b'/><path d='M0 60A30 30 0 0 1 30 30V60Z' fill='%23f4a900'/><path d='M60 0A30 30 0 0 0 30 30V0Z' fill='%23008f98'/></svg>");
  --weave-2: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><rect width='60' height='60' fill='%23008f98'/><circle cx='30' cy='30' r='20' fill='%2305636b'/><circle cx='30' cy='30' r='8' fill='%23f4a900'/></svg>");
  --weave-3: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><rect width='60' height='60' fill='%23f4a900'/><path d='M0 0H30A30 30 0 0 1 0 30Z' fill='%2305636b'/><path d='M60 60H30A30 30 0 0 1 60 30Z' fill='%2305636b'/></svg>");
  --weave-4: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><rect width='60' height='60' fill='%2305636b'/><path d='M0 30A30 30 0 0 1 60 30' fill='%23eff8fa'/><path d='M0 60A30 30 0 0 1 60 60' fill='%23008f98'/></svg>");

  /* Type */
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs:      0.8125rem;                                   /* 13px labels */
  --fs-sm:      0.9375rem;                                   /* 15px */
  --fs-base:    1.0625rem;                                   /* 17px body */
  --fs-lead:    clamp(1.125rem, 1rem + 0.5vw, 1.4rem);
  --fs-h3:      clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem);
  --fs-h2:      clamp(2rem, 1.2rem + 3.2vw, 4rem);
  --fs-h1:      clamp(2.6rem, 1rem + 6.4vw, 7rem);
  --fs-display: clamp(2.75rem, 0.9rem + 7.6vw, 8rem);        /* home hero */
  --fs-statement: clamp(1.6rem, 1rem + 2.2vw, 2.9rem);       /* vision / mission */
  --lh-tight: 0.96;
  --lh-snug: 1.15;
  --lh-body: 1.6;
  --tracking-display: -0.045em;
  --tracking-heading: -0.03em;
  --tracking-label: 0.16em;

  /* Space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 7rem);

  /* Shape */
  --radius-sm: 0.875rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-pill: 999px;
  --shadow-lift: 0 18px 40px -18px rgb(3 47 51 / 0.45);

  /* Layout */
  --container: 1760px;
  --header-h: 5.25rem;
  --touch: 2.75rem;      /* 44px minimum target */

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --dur: 0.7s;

  /* Stacking */
  --z-header: 100;
  --z-curtain: 300;
  --z-lightbox: 400;
}
