/**
 * v2 design tokens.
 *
 * Source: Figma Home frames (desktop 1440, mobile 390). Type values are exact from the Figma
 * specs; colours marked "sampled" were picked from exported images and should be confirmed in
 * Figma before launch.
 *
 * Breakpoints (custom properties can't drive media queries, so these are documented here and
 * used as literals): 48rem (768px) tablet, 80rem (1280px) desktop, 90rem (1440px) wide.
 */
@layer tokens {
	:root {
		/* Colour */
		--lb-v2-color-ink: #16202b;          /* exact: headings and body text */
		--lb-v2-color-accent: #e3396a;       /* exact: Figma icon fills */
		--lb-v2-color-hero-blue: #4063aa;    /* exact: hero color wash (Home + Careers) */
		--lb-v2-color-accent-overlay: color-mix(in srgb, var(--lb-v2-color-accent) 40%, transparent);
		--lb-v2-color-navy: #314f65;         /* exact: logo */
		--lb-v2-color-slate: #354a5e;        /* exact: careers stat card, footer details */
		--lb-v2-color-indigo: #4d5d9e;       /* exact: profile card, audience hover */
		--lb-v2-color-grey-600: #464d53;     /* sampled: dialog text */
		--lb-v2-color-grey-400: #adb6c5;     /* exact: news dates (Figma "Astute Grey") */
		--lb-v2-color-grey-300: #afafaf;     /* exact: news card border */
		--lb-v2-color-grey-200: #e3e5e8;     /* sampled: image placeholders */
		--lb-v2-color-grey-100: #f3f4f6;
		--lb-v2-color-mist: #f6f7f9; /* Job filter fields, migrated from Careers. */
		--lb-v2-color-white: #fff;
		--lb-v2-color-neutral-600: #6d758f;  /* exact: Round 2 Neutral/600, Careers hero */
		--lb-v2-color-scrim: rgb(22 32 43 / 0.45);
		--lb-v2-color-indigo-overlay: rgb(77 93 158 / 0.92);

		/* Font families */
		--lb-v2-font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
		--lb-v2-font-display: "Manrope", var(--lb-v2-font-sans);

		/* Type: display (hero heading). 72px mobile → 108px desktop (Round 2). */
		--lb-v2-text-display-size: clamp(4.5rem, 3.6643rem + 3.4286vw, 6.75rem);
		--lb-v2-text-display-leading: 1;
		--lb-v2-text-display-weight: 600;

		/* Type: h2 (every section heading). 48px mobile → 55px desktop. */
		--lb-v2-text-h2-size: clamp(3rem, 2.8375rem + 0.6667vw, 3.4375rem);
		--lb-v2-text-h2-leading: 1;
		--lb-v2-text-h2-weight: 500;

		/* Type: hero intro. Mobile is 20px medium uppercase; desktop switches to 28px semibold (Round 2). */
		--lb-v2-text-intro-size: 1.25rem;
		--lb-v2-text-intro-leading: 1;        /* Figma 100% */
		--lb-v2-text-intro-weight: 500;
		--lb-v2-text-intro-case: uppercase;

		/* Type: audience card text and hover text. 24px / 100% at every width. */
		--lb-v2-text-card-lg-size: 1.5rem;    /* 24px */
		--lb-v2-text-card-lg-leading: 1;
		--lb-v2-text-card-lg-weight: 500;

		/* Type: careers card text */
		--lb-v2-text-card-size: 1.5rem;      /* 24px */
		--lb-v2-text-card-leading: 1.3333;   /* 32px */
		--lb-v2-text-card-weight: 600;

		/* Type: news card title */
		--lb-v2-text-card-title-size: 1.75rem;  /* 28px */
		--lb-v2-text-card-title-leading: 1;
		--lb-v2-text-card-title-weight: 700;

		/* Type: body */
		--lb-v2-text-body-size: 1.125rem;    /* 18px */
		--lb-v2-text-body-leading: 1.4444;   /* 26px */
		--lb-v2-text-body-weight: 400;

		/* Type: CTA links */
		--lb-v2-text-cta-size: 1.125rem;     /* 18px */
		--lb-v2-text-cta-lg-size: 1.25rem;   /* 20px, hero */
		--lb-v2-text-cta-leading: 1;
		--lb-v2-text-cta-weight: 800;
		--lb-v2-text-link-weight: 700;       /* news card "View article" */
		--lb-v2-text-link-leading: 1.1111;   /* 20px */

		/* Type: eyebrow */
		--lb-v2-text-eyebrow-size: 1.125rem; /* 18px */
		/* Intentionally not Figma's 60px: that value relies on Figma's cap-height leading trim,
		   which CSS doesn't have. The same spacing comes from the heading's gap and margins. */
		--lb-v2-text-eyebrow-leading: 1.2;
		--lb-v2-text-eyebrow-weight: 500;
		--lb-v2-text-eyebrow-tracking: 0.1111em; /* 2px */

		/* Type: news label (category) and meta (date) */
		--lb-v2-text-label-size: 1rem;       /* 16px */
		--lb-v2-text-label-leading: 0.9375;  /* 15px */
		--lb-v2-text-label-weight: 700;
		--lb-v2-text-label-tracking: 0.0875em; /* 1.4px */
		--lb-v2-text-meta-size: 1rem;
		--lb-v2-text-meta-leading: 1;

		/* Type: stat (Manrope) */
		--lb-v2-text-stat-size: 7.5rem;      /* 120px */
		--lb-v2-text-stat-leading: 1;
		--lb-v2-text-stat-weight: 700;
		--lb-v2-text-stat-tracking: -0.032em; /* -3.84px */

		/* Type: micro (Manrope): stat label, profile card eyebrow */
		--lb-v2-text-micro-size: 0.75rem;    /* 12px */
		--lb-v2-text-micro-leading: 1.3333;  /* 16px */
		--lb-v2-text-micro-weight: 700;
		--lb-v2-text-micro-tracking: 0.18em; /* 2.16px */

		/* Type: small (header utility bar, footer details) */
		--lb-v2-text-small-size: 0.875rem;   /* 14px */
		--lb-v2-text-small-leading: 1.4286;  /* 20px */

		/* Spacing scale */
		--lb-v2-space-1: 0.25rem;   /* 4 */
		--lb-v2-space-2: 0.5rem;    /* 8 */
		--lb-v2-space-3: 0.75rem;   /* 12 */
		--lb-v2-space-4: 1rem;      /* 16 */
		--lb-v2-space-5: 1.5rem;    /* 24 */
		--lb-v2-space-6: 2rem;      /* 32 */
		--lb-v2-space-7: 2.5rem;    /* 40 */
		--lb-v2-space-8: 3rem;      /* 48 */
		--lb-v2-space-9: 4rem;      /* 64 */
		--lb-v2-space-10: 5rem;     /* 80 */
		--lb-v2-space-11: 6.25rem;  /* 100 */

		/* Layout */
		--lb-v2-container-max: 80rem;                                      /* 1280px content */
		--lb-v2-banner-max: 90rem;                                         /* 1440px: Purpose and Keep exploring stop here, centered */
		--lb-v2-gutter: clamp(1.25rem, -0.1429rem + 5.7143vw, 5rem);       /* 20px → 80px */
		--lb-v2-section-space: clamp(3.75rem, 2.8214rem + 3.8095vw, 6.25rem); /* 60px → 100px */
		--lb-v2-section-space-sm: 4.6875rem;                               /* 75px: the shorter edge of People, News, Careers */
		--lb-v2-grid-gap: 1.25rem;                                         /* 20px; 24px from 80rem */
		--lb-v2-heading-gap: 0.625rem;                                     /* eyebrow → title: 10px; 20px from 80rem */
		--lb-v2-stack-gap: 1.25rem;                                        /* heading → body: 20px; 40px from 80rem */
		--lb-v2-cta-gap: 1.875rem;                                         /* body → CTA: 30px; 40px from 80rem */

		/* Radius */
		--lb-v2-radius-sm: 0.75rem;  /* 12px buttons */
		--lb-v2-radius-card: 1.25rem; /* 20px news cards */
		--lb-v2-radius-md: 2rem;     /* 32px image and content cards */
		--lb-v2-radius-lg: 2rem;     /* disease focus card */
		--lb-v2-radius-pill: 999px;

		/* Opacity (hover / muted overlays) */
		--lb-v2-opacity-muted: 0.85;
		--lb-v2-opacity-hover: 0.88;
		--lb-v2-opacity-soft: 0.94;

		/* Breakthroughs home module. */
		--lb-v2-careers-pad: 3.75rem;                              /* 60px */
		--lb-v2-careers-pad-desktop: 4.375rem;                     /* 70px */
		--lb-v2-careers-gap: 1.125rem;                             /* 18px */
		--lb-v2-careers-card-min: 23.15625rem;                     /* 370.5px */
		--lb-v2-careers-heading-size: var(--lb-v2-text-h2-size);
		--lb-v2-careers-heading-leading: var(--lb-v2-text-h2-leading);
		--lb-v2-careers-eyebrow-size: 1rem;                        /* 16px */
		--lb-v2-careers-eyebrow-leading: 1.375rem;                 /* 22px */
		--lb-v2-careers-number-size: clamp(3.25rem, 2.5rem + 2vw, 5rem); /* 52px → 80px */
		--lb-v2-careers-number-leading: 1;
		--lb-v2-careers-body-size: 1.125rem;                       /* 18px */
		--lb-v2-careers-body-leading: 1.4444;                      /* 26px */
		--lb-v2-careers-quote-size: 1.25rem;                       /* 20px */
		--lb-v2-careers-quote-leading: 1.4;
		--lb-v2-careers-stat-pad-start: 1.875rem;                  /* 30px */
		--lb-v2-careers-stat-pad-inline: 1.25rem;                  /* 20px */
		--lb-v2-careers-stat-pad-end: 2.75rem;                     /* 44px */
		--lb-v2-careers-profile-pad-start: 2.125rem;               /* 34px */
		--lb-v2-careers-profile-pad-end: 1.375rem;                 /* 22px */
		--lb-v2-careers-person-gap: 0.9375rem;                     /* 15px */
		--lb-v2-careers-avatar-border: 0.09375rem;                 /* 1.5px */
		--lb-v2-careers-media-overlay-end: color-mix(in srgb, var(--lb-v2-color-ink) 55%, transparent);

		/* People: 10.5px mobile avatar gap; keeps four tabs on narrow screens. */
		--lb-v2-people-tabs-gap: 0.65625rem;

		/* Pipeline geometry not represented by the shared tokens (Figma px / 16). */
		--lb-v2-pipeline-title-size: 2rem;
		--lb-v2-pipeline-intro-max: 41.6875rem;
		--lb-v2-pipeline-grid-height: 47.4375rem;
		--lb-v2-pipeline-grid-inset: 0.625rem;
		--lb-v2-pipeline-radius: 0.9375rem;
		--lb-v2-pipeline-card-image-overlay: rgb(0 0 0 / 0.2);

		/* Careers page hero (Round 2 Careers 1440×500). Root font-size 16px → rem. */
		--lb-v2-careers-hero-min-height-mobile: 22.5rem; /* mobile floor */
		--lb-v2-careers-hero-min-height: 31.25rem; /* 500px desktop Careers frame */
		/* Round 2 Careers hero title: ~40px mobile → 74px desktop. */
		--lb-v2-careers-hero-title-size: clamp(2.5rem, 1.7108rem + 3.2381vw, 4.625rem);
		--lb-v2-careers-hero-title-leading: 1;
		/* 1024px: second line "OTHERS BECOME A LEGEND." fits; the comma still breaks the first line. */
		--lb-v2-careers-hero-title-max: 64rem;
		--lb-v2-careers-hero-stack-gap: 0.625rem; /* 10px Figma vertical gap */
		/* Optional hero paragraph (desktop only when editors set intro). */
		--lb-v2-careers-hero-intro-size: 1.125rem; /* 18px Medium Body Copy */
		--lb-v2-careers-hero-intro-leading: 1.4444; /* 26px */
		--lb-v2-careers-hero-intro-weight: 400;
		--lb-v2-careers-hero-intro-max: 48.875rem; /* 782px */

		/* Home hero overlay (Round 2): pink→blue + overlay blend; light black readability at top. */
		--lb-v2-hero-overlay-blend-mode: overlay;
		--lb-v2-hero-overlay-color: linear-gradient(135deg, var(--lb-v2-color-accent), var(--lb-v2-color-hero-blue));
		--lb-v2-hero-overlay-readability: linear-gradient(
			to bottom,
			rgb(0 0 0 / 0.1),
			transparent 45%,
			transparent
		);

		/* Careers: Why join us geometry (overlay cards, four-up desktop). */
		--lb-v2-careers-job-text-size: 0.875rem;                   /* 14px */
		--lb-v2-careers-job-text-leading: 1.5714;                  /* 22px */
		--lb-v2-careers-row-shadow: 0 0.03125rem 0.125rem rgb(25 33 61 / 0.1);
		--lb-v2-careers-value-title-size: 2rem; /* 32px */
		--lb-v2-careers-intro-max: 41.6875rem; /* 667px */
		--lb-v2-why-join-card-min: 26.25rem; /* 420px tall overlay cards */
		--lb-v2-why-join-stack-gap: 1.375rem; /* 22px — Figma Frame 21 heading→cards */
		--lb-v2-why-join-controls-gap: 1.875rem; /* 30px */
		--lb-v2-why-join-card-scrim: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.08) 55%, transparent);

		/* Careers award panel (#ADB6C5 @ 20%). */
		--lb-v2-careers-award-panel: color-mix(in srgb, var(--lb-v2-color-grey-400) 20%, transparent);
		--lb-v2-careers-award-pad: 6.25rem; /* 100px */

		/* Lines and motion */
		--lb-v2-underline: 0.25rem;  /* 4px CTA underline */
		--lb-v2-ease: cubic-bezier(0.2, 0, 0, 1);
		--lb-v2-duration: 250ms;
		--lb-v2-duration-fade: 250ms; /* opacity-only fades: not movement, so reduced motion keeps them */
		--lb-v2-duration-fade-md: 400ms; /* medium fade: People avatars and profiles */
		--lb-v2-header-height: 5rem; /* ~80px measured mobile bar; hero tucks under it */
	}

	/* Every v2 transition reads this token, so reduced motion is handled in one place. */
	@media (prefers-reduced-motion: reduce) {
		:root {
			--lb-v2-duration: 0.01ms;
		}
	}

	@media (min-width: 80rem) {
		:root {
			--lb-v2-header-height: 9.25rem; /* 148px measured desktop bar */
			--lb-v2-text-display-leading: 1.0446; /* ~113px at 108px */
			--lb-v2-text-h2-leading: 1.1;
			--lb-v2-text-intro-size: 1.75rem; /* 28px Round 2 */
			--lb-v2-text-intro-weight: 600;
			--lb-v2-text-intro-case: none;
			--lb-v2-grid-gap: 1.5rem;
			--lb-v2-heading-gap: 1.25rem;
			--lb-v2-stack-gap: 2.5rem;
			--lb-v2-cta-gap: 2.5rem;
		}
	}
}
