/* ==========================================================================
   Golog Nexus Design System: tokens (site revamp 2.0, docs/adr/0001)
   Colours: 04_GOLOG_Nexus_Brand_Guidelines.pdf. Type scale, spacing and motion: the Golog revamp playbook,
   shared with the Golog Holdings site. Every derived value is marked "derived".
   ========================================================================== */

/* Manrope (variable, 200–800), self-hosted and preloaded so text paints without a trip to Google Fonts. SIL Open Font License. */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* ---- Brand colour (guideline HEX values; never sample from the metallic logo) ---- */
  --nx-plum: #5B314F;          /* Primary, 60%: buttons, labels, headings on light */
  --nx-bronze: #B47A43;        /* Secondary, 30%: architectural accents, accent underlines on light */
  --nx-gold: #D7B983;          /* Tertiary, 10%: fine lines, accent text on dark surfaces */
  --nx-ink: #2B1A28;           /* Text */
  --nx-white: #FFFFFF;         /* Background */
  --nx-night: #2A1628;         /* Dark background (logo dark-bg spec): hero scrims, closing band */

  /* ---- Derived steps ---- */
  --nx-deep: #1E0F1C;          /* derived: deepest surface, footer */
  --nx-plum-700: #4A2741;      /* derived: hover on primary */
  --nx-paper: #FBF8F3;         /* derived: off-white for the calm sections between */
  --nx-ink-muted: #6E5C6A;     /* derived: secondary text on white or paper (6.2:1) */
  --nx-on-dark: #F6EFE9;       /* derived: primary text on night */
  --nx-on-dark-muted: #C2B1BF; /* derived: secondary text on night (8:1) */
  --nx-line: rgba(91, 49, 79, 0.16);         /* hairlines on light: plum at 16% */
  --nx-line-dark: rgba(215, 185, 131, 0.28); /* hairlines on dark: gold at 28% */
  --nx-scrim: 42, 22, 40;                    /* night as r, g, b for photo scrims: rgba(var(--nx-scrim), a) */

  /* ---- Semantic roles ---- */
  --color-bg: var(--nx-white);
  --color-bg-alt: var(--nx-paper);
  --color-text: var(--nx-ink);
  --color-text-muted: var(--nx-ink-muted);
  --color-label: var(--nx-plum);     /* small labels on light; gold on dark (.on-dark) */
  --color-primary: var(--nx-plum);
  --color-accent: var(--nx-bronze);  /* accent lines on light; gold takes over on dark */
  --color-focus: var(--nx-plum);

  /* ---- Typography ---- */
  /* Manrope only (team decision, Oct 2026). It has no italic, so accent words are set upright and carried by colour. */
  --font-body: "Manrope", Arial, system-ui, sans-serif;
  --font-display: var(--font-body);

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --tracking-ui: 0.15em;       /* menus, buttons, labels */
  --tracking-tagline: 0.06em;  /* taglines */
  --tracking-details: 0.28em;  /* company details ("wide") */
  --tracking-display: -0.01em;

  /* Type scale (playbook). Body is 18px with 1.6 line height, up from the guideline's 16px with 1.7. */
  --text-xs: 0.75rem;                                   /* 12: labels, buttons */
  --text-sm: 0.875rem;                                  /* 14 */
  --text-base: 1.125rem;                                /* 18: body */
  --text-md: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); /* 18–20 */
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);    /* 20–24: lead lines */
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);      /* 24–32: card titles */
  --text-2xl: clamp(2rem, 4vw, 3.5rem);                 /* 32–56: section headlines */
  --text-3xl: clamp(2.5rem, 5vw, 4.5rem);               /* 40–72: inner page titles */
  --text-hero: clamp(2.75rem, 6vw, 5.5rem);             /* 44–88: Home hero */

  --leading-body: 1.6;
  --leading-snug: 1.35;
  --leading-display: 1.04;

  /* ---- 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: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-section: clamp(4.5rem, 1.5rem + 7.5vw, 8rem); /* 72px on phones, 120px at 1280px, 128px max */

  /* ---- Layout: 1280px content on a 12-column grid ---- */
  --container: 1280px;
  --container-narrow: 880px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem); /* 16px at phone width */
  --header-h: 88px;  /* 10px offset + 68px floating bar + breathing room */

  /* ---- Shape ---- */
  --radius: 3px;          /* guideline: buttons, radius 3px */
  --radius-pill: 999px;   /* chips */
  /* Media-led design (team request, Oct 2026): pill buttons and 14px media cards. Set both to var(--radius) to revert. */
  --radius-btn: 999px;
  --radius-lg: 14px;
  --border-hair: 1px solid var(--nx-line);

  /* ---- Elevation (used sparingly; the brand is flat and architectural) ---- */
  --shadow-1: 0 1px 2px rgba(43, 26, 40, 0.06), 0 4px 16px rgba(43, 26, 40, 0.05);
  --shadow-2: 0 2px 6px rgba(43, 26, 40, 0.08), 0 24px 60px rgba(43, 26, 40, 0.14);

  /* ---- Motion (playbook): restrained; only transform and opacity animate ---- */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);   /* GSAP power2.out: reveals and hovers */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* transitions between states */
  --dur-fast: 180ms;
  --dur-base: 400ms;
  --dur-slow: 900ms;
  --dur-reveal: 600ms;
  --reveal-shift: 24px;
  --stagger: 80ms;

  /* ---- Z ---- */
  --z-header: 50;
  --z-menu: 60;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur-base: 1ms;
    --dur-slow: 1ms;
    --dur-reveal: 1ms;
  }
}
