/* NorthBeam — design tokens
   Source: Figma "Northbeam-Final", node 83:8290 (breakpoints=+1440).
   [figma]   = value read directly from the Figma file
   [derived] = responsive/fluid value added for this build */
:root {
  /* ---------- Color [figma] ---------- */
  --color-bg: #efebe4;          /* page / secondary button fill */
  --color-ink: #171b20;         /* text, primary button, borders */
  --color-accent: #b35334;      /* highlighted headline words */
  --color-cream: #f3ede1;       /* text and background tints on the dark bars */
  --color-white: #ffffff;       /* text on nav button */

  /* Placeholder for images not yet supplied [user request] */

  /* ---------- Typography [figma] ---------- */
  --type-family-display: "Caladea", Georgia, "Times New Roman", serif;
  --type-family-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --type-weight-regular: 400;
  --type-weight-medium: 500;
  --type-weight-semibold: 600;

  --type-size-64: 64px;
  --type-size-18: 18px;
  --type-size-14: 14px;

  --type-line-height-72: 72px;
  --type-line-height-28: 28px;
  --type-line-height-body: 1.5;   /* nav + buttons (21px at 14px) */

  --type-tracking-minus-1: -1px;
  --type-tracking-0: 0px;
  --type-tracking-14: 0.14px;     /* nav + buttons */

  /* Fluid headline [derived]: 64px/72px at >=1024px, scales down */
  --type-size-h1: clamp(2.25rem, 1.2rem + 4.5vw, 4rem);
  --type-line-height-h1: 1.125;   /* 72 / 64 */

  /* ---------- Spacing [figma] ---------- */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --space-80: 80px;
  --space-100: 100px;
  --space-120: 120px;
  --space-140: 140px;
  --space-160: 160px;

  /* ---------- Radius / border [figma] ---------- */
  --radius-button: 6px;
  --border-button: 1px;

  /* ---------- Layout [figma] ---------- */
  --header-height: 85px;
  --header-padding-x: 40px;
  --hero-max-width: 1280px;
  --hero-gap: 80px;
  --hero-columns: minmax(0, 4fr) minmax(0, 2fr);
  --panel-aspect: 1316 / 2800;    /* decorative right-hand panel */

  /* Hero images [derived from the Figma frame, rules set by the client]
     Skyline: sits on the bottom edge of the hero, spans the full width up to 2000px.
     Its height follows the 1440 x 680 proportion of the Figma frame. */
  --skyline-ratio: 0.4722;              /* 680 / 1440 */
  --skyline-max-width: 2000px;
  --skyline-offset: 40px;               /* pushed below the bottom edge of the hero; the section wrapper crops the overhang */
  --skyline-min-height: 532px;          /* keeps the desktop height continuous with the tablet rule */
  --skyline-lift-tablet: 40px;          /* at 1024px and below the skyline moves up by this much (it overhangs the hero by 40px less) */
  --panel-nudge-mobile: 20px;           /* at 768px and below the hero panel moves this far to the right */
  --skyline-focus-x: 0%;                /* which part of the image stays visible when it is cropped (desktop) */
  --skyline-focus-x-small: 75%;         /* same, tablet and mobile: keeps the right-hand towers in view */
  /* Panel: slides off the right edge as the screen narrows.
     0% out at --panel-shift-start, --panel-shift-max out at --panel-shift-end and below. */
  --panel-shift-start: 1024px;
  --panel-shift-end: 390px;
  --panel-shift-max: 25%;

  /* ---------- Responsive [derived] ---------- */
  --bp-tablet: 1024px;
  --bp-mobile: 768px;
  --hero-pad-x: clamp(1.5rem, 9.7vw, 8.75rem);   /* 140px at 1440 */
  --hero-pad-top: clamp(4rem, 8.3vw, 7.5rem);    /* 120px at 1440 */
  --hero-pad-bottom: var(--space-160);           /* 160px; raised on small screens in styles.css */

  /* ---------- Motion [derived] ---------- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  /* Scroll reveal + counter [derived] */
  --reveal-distance: 24px;      /* how far an element slides while it fades in */
  --reveal-duration: 700ms;
  --reveal-stagger: 100ms;      /* delay between elements that appear together */
  --counter-duration: 1600ms;   /* count-up time */

  /* ---------- Trusted-by bar [figma: node 65:6731] ---------- */
  --color-snow: #faf8f6;          /* "Trusted by:" label */
  --type-size-12: 12px;
  --type-line-height-20: 20px;
  --trusted-pad-y: 20px;
  --trusted-label-gap: 60px;
  --marquee-fade: 30px;
  /* Scaled down on small screens [derived]; equal to the Figma value at 1440px */
  --trusted-pad-x: clamp(1.5rem, 18.06vw, 16.25rem);   /* 260px */
  --marquee-inset: clamp(1.5rem, 4.17vw, 3.75rem);     /* 60px */
  --marquee-speed: 40;                                  /* px per second [derived] */

  /* ---------- Stats section [figma: node 52:4232] ---------- */
  --color-paper: #f4f1ec;                       /* section background */
  --color-ink-70: rgba(23, 27, 32, 0.7);        /* notes and footnote */
  --type-size-88: 88px;
  --type-line-height-96: 96px;
  --type-line-height-26: 26px;                  /* stat caption */
  --type-line-height-18: 18px;                  /* footnote */
  --type-tracking-minus-2: -2px;
  --type-tracking-03: 0.3px;
  --stats-max-width: 1240px;                    /* includes the 80px inner padding */
  /* Fluid sizes [derived]: 88px / 64px at 1440px, 56px / 40px at 390px */
  --type-size-stat-xl: clamp(3.5rem, 2.756rem + 3.048vw, 5.5rem);
  --type-size-stat: clamp(2.5rem, 1.943rem + 2.286vw, 4rem);
  --type-line-height-stat-xl: 1.0909;           /* 96 / 88 */
  --type-line-height-stat: 1;                   /* 64 / 64 */
  --stats-pad-y: clamp(5rem, 8.333vw, 7.5rem);          /* 120px at 1440px */
  --stats-pad-x: clamp(1.5rem, 6.944vw, 6.25rem);       /* 100px at 1440px */
  --stats-inner-pad-x: clamp(1.5rem, 5.556vw, 5rem);    /* 80px at 1440px */
  --stats-gap: clamp(2rem, 4.167vw, 3.75rem);           /* 60px at 1440px */

  /* ---------- Outputs section [Figma 52:4300, component 69:7072] ---------- */
  /* Image-holder backgrounds are the colour + texture surfaces (--color-surface-*, see below) */
  --color-ink-80: rgba(23, 27, 32, 0.8);
  --type-size-16: 16px;
  --type-size-32: 2rem;
  --type-size-section-title: clamp(2.5rem, 1.943rem + 2.286vw, 4rem);  /* 64px at 1440px, 40px at 390px */
  --type-tracking-minus-064: -0.64px;
  --type-tracking-12: 1.2px;                    /* uppercase format label */
  --type-line-height-22: 22px;
  --type-line-height-36: 36px;
  --radius-card: 16px;
  --shadow-output-inset: inset -26px -26px 60px 0 rgba(0, 0, 0, 0.05);
  --outputs-pad-y: clamp(5rem, 8.333vw, 7.5rem);        /* 120px at 1440px */
  --outputs-pad-x: clamp(1.5rem, 6.944vw, 6.25rem);     /* 100px at 1440px */
  --outputs-inner-pad-x: clamp(0rem, 5.556vw, 5rem);    /* 80px at 1440px */
  --outputs-max-width: 1240px;
  --outputs-gap: clamp(3rem, 5.556vw, 5rem);            /* 80px: title to cards */
  --outputs-card-gap: clamp(1.5rem, 2.778vw, 2.5rem);   /* 40px */
  --outputs-breakpoint: 1024px;                          /* reference only: cards switch large -> small here (see outputs.css) */
  /* Large card, as % of the card width (600px design): holder height and padding scale with the card */
  --output-holder-h: 65cqw;                     /* 390 */
  --output-holder-pad: 10.667cqw;               /* 64, left */
  --output-holder-pad-top: 13.333cqw;           /* 80 */

  /* ---------- Method section [Figma 52:4282] ---------- */
  --method-pad-bottom: clamp(2.5rem, 4.444vw, 4rem);    /* 64px at 1440px: the chart sits close to the section end */
  --method-chart-width: 80.403%;                         /* 997 of 1240 */
  --method-chart-headroom: 72px;                         /* canvas strip above the chart box (keep equal to data-headroom on the canvas) */
  --method-chart-overlap: calc(var(--outputs-gap) * -1); /* chart tucks up by the 80px gap under the text block */

  /* ---------- Callout section [Figma 52:4404] ---------- */
  --color-callout-bg: #2e3236;                   /* shows until / if the background image loads (sampled from dark-panel.webp) */
  --color-ivory: #f7f5f1;                        /* text and button on the dark callout */
  --callout-pad: clamp(3.5rem, 6.944vw, 6.25rem); /* 100px at 1440px */
  --callout-text-width: 400px;                   /* description width */

  /* ---------- Client cases section [Figma 65:6448, component 69:6870] ---------- */
  --color-step: #d9d9d9;                         /* slider step, inactive */
  --color-step-active: #0a1316;                  /* slider step, active / progress */
  --color-case-image: #171b20;                   /* image card behind the photo */
  --type-size-cases-title: clamp(2.25rem, 3.333vw, 3rem);               /* 48px at 1440px */
  --type-size-metric: clamp(3.5rem, 2.9rem + 2.4vw, 4rem);              /* 64px at 1440px, large slide */
  --type-size-metric-unit: clamp(2.25rem, 1.9rem + 1.4vw, 2.5rem);      /* 40px */
  --type-size-36: clamp(1.75rem, 0.945rem + 1.45vw, 2.25rem);           /* case title, 36px at 1440px (large slide) */
  --type-line-height-44: 1.2222;                 /* 44 / 36 */
  --type-tracking-minus-036: -0.36px;
  --type-tracking-minus-048: -0.48px;
  --cases-slide-gap: 100px;                      /* space between slides in the track */
  --cases-interval: 5000ms;                      /* autoplay time per slide (also drives the progress bar) */
  --cases-transition: 1000ms;                    /* slide movement */

  /* ---------- Impact section [Figma 52:4428] ---------- */
  --color-divider: #cbc9c6;                      /* editorial rule between the rows */
  --type-weight-bold: 700;                       /* benefit headline */
  --type-size-20: 1.25rem;
  --type-size-impact-audience: clamp(1.75rem, 1.2rem + 1.4vw, 2rem);   /* 32px at 1440px: audience name */
  --impact-row-pad-y: 30px;
  --impact-col-gap: clamp(1.5rem, 2.778vw, 2.5rem);   /* 40px at 1440px: gap between the three columns */
  --impact-cols: minmax(0, 250fr) minmax(0, 270fr) minmax(0, 440fr);   /* 250 / 270 / 440 in Figma */

  /* ---------- Contact section [Figma 90:9415] ---------- */
  --color-contact-bg: #171b20;                   /* section background (shows behind / instead of the illustration) */
  --contact-backdrop-opacity: 0.25;              /* illustration opacity, as in Figma */
  /* Colour + texture surfaces [Figma 100:12333]: used with the .surface classes (css/components/surfaces.css) */
  --color-surface-wine: #764a48;                 /* Waves */
  --color-surface-moss: #4c564d;                 /* Waves */
  --color-surface-clay: #806752;                 /* Diagonal */
  --color-surface-stone: #bdbab4;                /* Diagonal */
  --color-surface-slate: #3c464b;                /* Zig */
  --color-surface-linen: #f4f1ec;                /* Zig */
  --texture-size: 800px;                         /* the texture PNGs are 800 x 800 and are shown at their own size */

  /* Buttons [Figma 102:12389] */
  --color-ink-hover: #3b3f43;                    /* hover of Primary and Nav buttons (fill), navigation links and text buttons (text); border of Secondary and Outline on hover */
  --color-secondary-hover: #dbd7d0;              /* hover fill of the Secondary button */
  --color-outline-hover: rgba(209, 205, 198, 0.3);   /* hover fill of the Outline (transparent) button */
  --color-panel: #e4e2dd;                        /* light form panel */
  --color-field: #f7f5f1;                        /* input fill */
  --color-field-border: #cbc9c6;                 /* input border (same grey as the Impact rules) */
  --color-cta: #b35334;                          /* accent button (same value as --color-accent) */
  --color-cta-text: #f7f5f1;
  --color-cta-hover-light: #c76748;              /* accent button hover on a light surface [Figma 103:12570] */
  --color-cta-hover-dark: #9f3f20;               /* accent button hover on a dark surface [Figma 103:12575] */
  /* Dark contact panel [Figma 103:12536] */
  --color-panel-dark: #171b20;
  --color-field-dark: #45494d;                   /* input fill on the dark panel */
  --color-field-dark-border: #2a2d31;
  --color-field-dark-text: #cbc9c6;              /* placeholder / content colour on the dark panel */
  --radius-field: 4px;
  --type-size-contact-title: clamp(2.5rem, 1.6rem + 3.6vw, 3.5rem);   /* 56px at 1440px, 40px at 390px */
  --type-tracking-minus-056: -0.56px;
  --type-line-height-24: 24px;
  --contact-gap: clamp(3rem, 5.556vw, 5rem);     /* 80px between text and panel */
  --contact-panel-pad-x: clamp(1.5rem, 2.778vw, 2.5rem);   /* 40px at 1440px */

  /* ---------- Footer [Figma 52:4514] ---------- */
  --footer-pad-y: 40px;
  --footer-pad-x: clamp(1.5rem, 5.556vw, 5rem);      /* 80px at 1440px */
  --footer-gap: 40px;                                 /* between the links */
  --footer-logo-width: 131px;                         /* 131 x 16 in Figma (smaller than the header logo) */
  --footer-logo-height: 16px;

  /* ---------- Method page [Figma 100:9858] ---------- */
  --mfig-h: clamp(460px, calc(100vh - 148px), 737px);                           /* pinned chart height: 737px at 1440 x 900 (Figma), smaller on short screens */
  --mfig-top: 124px;                                                           /* where the chart pins (the header does not stick on this page): the title sits 144px from the top of the screen */
  --mfig-pad: 40px;                                                            /* inset of the number / title (left) and the progress ring (right) */
  --mstep-scale: 1.8;                                                          /* scroll distance per step, as a multiple of the chart height */
  --mcard-width: 440px;                                                        /* Figma 100:9836 */
  --mcard-pad: 32px;
  --mcard-inset-right: 80px;                                                   /* the card sits 80px in from the right edge of the chart */
  --mring-size: 32px;
  --mcard-rest: 0.563;                                                         /* card top as a share of the chart height (415 / 737) */
  --shadow-card: 0 8px 10px rgba(0, 0, 0, 0.2);
  --type-size-step-number: clamp(3.5rem, 2.4rem + 3.4vw, 5.125rem);            /* 82px at 1440px */
  --type-line-height-66: 66px;
  --type-tracking-minus-082: -0.82px;
  --type-size-24: 1.5rem;
  --type-line-height-32: 32px;
  --mintro-pad-bottom: clamp(5rem, 11.1vw, 10rem);                             /* gap between the intro text and the first chart: 160px at 1440px */
  --mback-pad-bottom: clamp(6rem, 11.1vw, 10rem);                              /* gap under the back link, before Contact */
  --mscroll-pad-bottom: clamp(3rem, 5vw, 5rem);                                /* space under the last step, above the back button */
}
